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

 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 Bd,odd,eNZ,eq,tA,Xdd,DK,fZ,z_,wx,pdS,YS_,T_,tqZ,WIN,KZ,j5Y,SSp,HZp,th,DYx,fKY,zN_,wdK,TxZ,MT,zG,x5,LR,KIK,v2,IKd,KR,qT,r4,Q5x,mb,CR,cAq,FIK,rA_,oN,ZZx,RN,mYS,XU,gdZ,pe,$Yu,ndN,B4q,Le,RlA,VJY,elu,X2x,p2u,xm,upd,aN,OZu,o5S,j4d,N4p,GGo,qj,yhA,SoI,HRx,MJY,DTd,fSK,aSN,Ce,T4d,LbS,KbS,qod,chA,u4,V5,Ahu,g5p,pf,ZRo,P_A,$T_,hD,C_K,Yv,kGp,bI,jz,UY,Wy,NS,ORq,n5u,uaq,MS,omN,BeI,RzS,ezS,V2o,wq,Xo_,poY,Sz,hzu,t2p,vy,bex,Ned,EY,M2I,JrS,kiS,Djd,f7o,Te_,a7Z,iI,Fx,L6N,K6p,I7d,crp,rrd,nmp,Bqx,YYx,X5,tzZ,bfo,tR,bD,
JR,U8,NV,f$,aa,dc,SYS,Ia,MzA,fYp,F5,mL,zkq,C$,PB,n$,uD,dSZ,wyp,Tqd,xSq,Lld,vvA,KlA,IYA,Ev5,qYI,VJ,Rb,cDS,AD5,if5,Flo,smo,rDd,Jq,ZfS,jn,U0,NI,G4,Sn,$S5,HR,PI5,BcK,DX,RJ5,V4Y,eJp,l3,XBS,pBo,z4,ab,t4N,wP,JRK,jaK,T4,NcN,UV5,Gmu,yRK,S8Y,H$p,vR,M4I,kmu,Kr,DVY,fMK,Ib,E0,QJ,qI,lMq,aMq,zJ_,cR,wBo,TcA,xVA,i3,Ff,rP,gP,ZX,mC,Cr,LLd,vqZ,KLd,IMd,Eqp,Qao,q85,cR_,ARN,i$I,saA,nr,FLq,rRA,oJ,gqd,RJ,Vc,Z$A,CDx,PDY,nqN,O$Y,obo,BPI,XRI,pRZ,Y0q,hOZ,tnx,WCK,brN,NPd,px,G4I,yqK,S0S,Hru,Mnp,k4d,fXd,Ebd,QbS,q0_,AqK,irq,Uh,sbx,
N_,mI_,$IN,C3x,P3K,nbo,ufN,Oro,olS,kl,RCq,gbq,VDN,eCq,XHS,pHx,YhY,hCo,tDN,WON,bxI,U_o,jJd,yFd,NkI,GgN,MDu,kg_,D_S,Shq,lON,Hxx,aOK,Qc,d_N,cH,ig,wH5,x_5,LOq,IOS,glp,QJS,ElA,cFd,ixx,qhI,CgZ,m_A,Pgo,nlK,uDo,Ox_,o0A,RQq,BzA,VrI,eQu,Xn5,pno,hQo,Wqo,bdu,J4x,U2Y,jIu,avd,d2p,wnd,$l,Tzx,Lq5,v0K,Kqx,Ivp,E0p,qJd,c4q,A4o,RI,VI,idZ,m2Y,pd,Y0,n0o,OdK,tA5,SZS,by,cIu,Foo,iWI,sKA,G$,rIK,gR_,mWu,$WK,CJA,PJN,nRZ,uBA,OWZ,Bgx,R7q,e7_,VvZ,YzY,z$,T$,tvA,WnS,bQY,JSx,jP5,UNp,GMZ,SzN,ySp,sJ,rz,wEN,gz,mq,vjS,$0,KnZ,Ikd,nd,QPI,
Ejd,ZQZ,mNx,Cjd,uWx,OQ5,BSK,R4Y,VCd,X8d,YBY,h4u,eA,Juo,NSN,GKZ,yuA,SBd,Hqp,Unp,bqq,WkZ,pW,tCp,MC_,DnN,lNo,dnI,z4S,tI,TSS,Lk5,vzo,KkA,INI,jA,EzA,qBA,QCY,cuo,iqZ,Ga,CNo,nz_,Oqo,BVq,Rtp,etd,MW,fW,kR,htA,Vbp,tbd,dA,juI,Ta,xR,GLZ,H6Z,kL5,DCp,ftd,LW,lt_,zto,atZ,wfd,TVp,xCo,L4d,K4A,KW,ItY,EWd,EZ,cU,c$Z,A$Y,i6p,iJ,r$o,gWZ,mCY,PU,O6o,oD_,Bnd,Rbo,VGp,oP,BE,RP,Vh,p5S,XW,YdS,hbu,tGZ,WA_,JKu,jqd,bEK,Yj,Ueu,Sdx,hS,yK5,HEu,NnA,MGI,WE,De_,fhd,lhx,zbx,deo,ahd,w5I,LAd,TnY,KAY,AKx,sqq,rKx,ZEK,Ceq,$eq,meq,PeN,uod,o_p,
OEx,BBZ,V6x,eWS,kj,hW_,lj,bnd,Whd,Jmo,aP,dg,jAI,wg,UKo,G8p,SqN,k8Y,fpA,DKu,PE,lpd,ymY,LhZ,v_K,Khd,B8,Ip5,QAq,AmZ,FhY,sAK,mKN,$Kd,CA_,PAN,uiu,VkS,OnZ,BTZ,R6o,e6Y,XJA,YIK,pJ_,tkK,h6o,jC,Wcx,JZx,jLu,yZp,kz,DN,SId,HpA,fq,fgd,dS,wS,TK,drN,xz,xrZ,Kq,LcZ,vad,Kcp,IgK,Q_,EaZ,qIS,cZI,ipx,Fc_,ZpZ,$rN,ZN,Cs5,PsN,nau,uOd,OpY,o8o,Bix,Rep,Cq,Xzp,pzp,YVI,he5,tOd,Wyu,b0o,JE_,jFN,Ud5,NiI,Gp_,yEd,VX,Tid,xdp,eb,Xy,p6,LyA,v8d,Kyx,II_,E8_,QFS,qVd,Fyp,rEI,g8q,Z0S,mdS,Wf,jb,U7,NC,Hf,MC,kW,CFd,f6,n8d,lf,uTA,O0A,zL,oGS,B6p,
RAI,b7Y,jrd,S$p,DRd,kzA,Jsu,fz5,az5,i75,vGq,Z7q,Iz_,gGx,mRx,L6,Czd,K6,nGI,uFd,oAZ,Brp,RZp,eZZ,QX,p$q,YXN,hZx,tcA,W5K,bkA,Jz5,X$d,Nrp,GF5,yz_,cf,axu,d1d,zZu,TrS,x1q,vAu,K5q,L5I,ikd,F5A,gAY,m1q,O7,Okq,usI,e15,pcx,Yxx,h1o,tmN,WaS,bJu,hK,Mm5,DUA,SxY,yMI,kvN,j_q,lqZ,EpN,dUx,wc5,THK,ZJY,$UN,gpS,oTu,rMK,JMd,OJd,aqd,Iqu,mUS,fqS,NH5,UU_,Gvq,HJd,FaN,zn,Nlp,yJI,S5d,HcZ,MRZ,TlA,ETu,QTp,qe,cJd,sT_,Zcx,gT5,$9u,Caq,uc5,nTS,Oc_,Rqd,B1d,$D,VQd,eqK,prq,Xr5,CE,J3A,bD5,W3d,GjK,jOA,y3x,N1_,Ssd,nE,HDp,fPN,kjN,DxI,zqS,
aPA,wrI,Bw,L3o,T1d,vBd,QOo,qsq,iDI,F3_,Xi,pn,mxu,$xp,Y_,hm,CPS,tm,Ww,PPK,bA,nB5,Jm,uES,ODo,Uq,oxp,Bbp,RwY,VXd,ewZ,p7d,X7I,hwS,bO5,WJI,Jvd,jVK,YQu,UoY,yvI,GrK,tXq,SQN,HOx,Hw,MXI,Dod,krd,fEI,lE_,aES,zwN,do_,k_,TbY,xoI,w7x,KJo,IEN,ExA,Avu,FJS,$oZ,utd,Dp,BLd,RuZ,fn,VBu,dB,wB,tBx,z8,Ln,W2S,bw5,j7u,UsI,GPN,Syx,Hw_,MBS,kPx,ld_,TLS,dsu,fd_,xsp,L2N,Eq,wIK,v1I,cw,K2q,Idd,E1u,Q7d,iwI,qyu,AkN,g1K,Zw_,n1d,PHu,oQd,pSI,YTq,tVN,biq,JnI,Ul5,N2I,GTI,STx,HiS,MVp,foA,dld,wSq,lou,xlN,vQ5,LN5,T2x,KNZ,EQN,QHp,qTI,cnd,Anu,
nn,uA,BJ,VT,FNo,rnS,Zio,C5x,ek,XO,P5o,pp,Oio,oUu,BXZ,hZ,pbN,Wgd,JoK,j6o,U65,NXp,GoN,HUA,WJ,MYN,f4d,bs,l4u,d6x,wbI,TXN,a4u,EUI,cod,Q6I,AoZ,Fg_,gUx,m6S,nUS,P8S,BE_,GE,RoI,V9A,yT,eoK,Sk,XxZ,pxY,YOo,t9p,ho_,WKS,bYx,J_d,jpA,M9_,Dm5,l1d,f1I,y_x,NEx,a1q,wxd,KKZ,I1A,qOY,r_u,ZY5,fp,mmq,C9o,P9q,uKA,REA,eEY,p_x,YnN,hEI,tIZ,Uup,Wtx,Snu,HTd,kHx,aL,fGI,lGS,zE_,aGK,duo,w_N,TKS,LtS,v3A,xa,IGS,E3Z,c8I,Lp,qnA,iTo,g3q,Kp,ZTq,mu5,$up,n3d,udd,CKq,o$q,e55,XTd,pTp,AZ,YeA,baI,JHx,rT,NUq,jjo,UES,yHx,Hao,Mp5,l$q,dEd,a$Y,z5d,
wTo,xES,LHx,qeY,v$p,cHu,sjI,AHI,$EZ,n$N,OaZ,BOx,WBu,JwY,jkp,ywI,Hgd,DI,K0,zMd,TOS,wWu,LBq,vXu,IAp,KBN,EXp,Qk_,IF,H7u,aAS,xpS,dpu,L0,gi,Awq,igZ,gXq,ZgN,mpu,$po,CCN,PCd,nX5,$8,uCI,C0,Ogd,o6S,BpZ,RPA,uF,VHo,p9o,hPu,tHp,Gsq,Sjq,H8x,MHd,D7Y,fr5,YG,zPq,aro,d7o,w9u,Tp_,x7Z,v6I,Ir_,Qc_,qjp,rfo,scu,g6q,$7Y,CxN,U$,PxI,n6p,uJx,BvZ,VoI,RXx,X6N,Yrx,Su,tod,Wpo,hXS,bCY,JTo,gId,mkp,ZCS,$k_,rTu,Cvo,PvN,nIq,u3o,OCN,oio,Bfd,RrA,VEd,pLu,XLI,YNd,tEo,hrd,Hk,W8x,jiq,SNo,btI,Htq,MES,kl_,DfI,xfI,vix,K8S,Eid,Qid,L7,ito,giZ,
mfI,vk,niZ,PWK,umZ,QW,OtY,oJq,B3o,V8I,eVq,XCI,pC_,hV5,t8p,Hyq,N35,yyo,keo,M8S,DyA,f0N,zVY,dyY,T3p,Lfo,s8x,gJK,myN,$yI,CRA,PR_,nJA,Oyd,oZp,VSp,eiZ,XDY,pDu,Ybd,hix,tSd,WD5,jDd,yp_,Pk,n7,uz,O$,SbK,RG,MSN,TM5,EZu,KDK,ukp,OF5,oEA,Dq5,wDY,zi5,BYY,R$5,VjZ,LDd,XPA,YHY,tjq,Jd_,joA,UX,Mjd,HjA,lbI,dGZ,TYA,LzY,vEp,EEd,qHK,QoN,ij5,Fzx,P$5,$GK,gES,C$S,Zjp,nES,BtY,aG,WVx,Y_x,JUN,j$o,NtN,GYK,wr,yU_,M5Y,kYu,Dax,fFY,LVp,xaA,QV,Fs,cU_,AUd,gr,iLo,s$d,FVq,rUo,gcZ,ZLx,maq,$ax,CTS,PTo,ncu,u2d,OLZ,o2u,B0u,Zx,Rso,VfA,esu,
XO_,pOY,YW5,hsS,tfY,WmI,bIq,JQK,jfS,$A,N0I,yQK,HII,D3K,zsK,aCu,d3u,T0q,LmN,v25,KmK,E2q,AQA,qWq,iIZ,sfd,FmI,ZId,n2S,uqZ,ogd,Ux,Rd_,JM,edI,X0Z,NU,p0_,YLu,hdK,t_p,yL,jWI,No5,M_S,Hu_,DDd,faA,lp,laI,zdq,dD_,ToA,xDd,vgS,KZS,w0_,Iad,A5o,r5o,ggK,zv,ZuZ,mDp,uPx,$DK,P2Z,ngp,e2o,onx,XMA,Yup,tFo,WMd,b_5,J7Y,j0o,U4o,Gfq,y7A,Suo,H_q,MFo,D4A,lfd,d4p,LMS,Ifq,Q0I,A7o,vc,i__,s0x,FMS,r7p,gnd,m4d,$4Y,CEN,PEZ,nnK,ul5,O_x,oyp,BFZ,RHA,VZA,XsY,eHp,hHI,WEY,Ex,b3N,U$q,j3x,qU,y0p,SAK,D$x,zHA,fZ_,kRI,wsA,d$I,KEp,TFx,FX,LEx,
i3d,Q3K,qAZ,c0_,A0u,s3Z,r0d,FEd,rH,gH,nyS,Z3A,PMu,CMo,m$I,$$d,o4I,RDu,eD_,VWo,hDK,Ygu,bbd,JLS,UZ5,Na_,jeo,G5p,Sgd,yLK,MWS,fsS,Ox,lsZ,zDd,wgN,Kuu,AL5,BK,seK,Zbp,Pdd,Cdu,mZ_,$ZN,pc,B_5,uAZ,ObK,Rgq,egK,V$u,Ym5,hgI,WsI,bop,JXI,j1A,U0d,GD_,yXN,HK,HoI,kT,M$d,lDo,zgd,z2,aDq,whq,qmu,xT,v7q,Q1S,Ks_,IDp,s1x,Fsp,ioN,rX5,g7o,COu,Zop,POZ,n7I,vK,Oo5,orx,BIu,uhp,VNd,RLZ,Kc,YwY,U8d,NIu,G9S,yeA,Swp,HAZ,fwu,k9A,D8d,MNY,zLd,wZ5,LxY,vrI,Iwo,cK,ErA,Qnp,qwZ,AeZ,iAS,sn5,FxK,reI,gr5,m8Z,rl,$8o,nr5,Pcx,OAu,u4_,oeZ,BQS,RYS,
gl,eYY,NQA,jEZ,SlN,HhS,zYA,ayd,dgS,waI,TQN,xgd,K9x,IyS,EeA,QES,AbI,ih5,sEd,F9q,rbY,gep,ZhZ,mgp,$g5,Cqp,Pqp,uSZ,Ohx,o9u,RaI,eaq,peq,WYp,tyd,haS,Y1q,JNo,jRd,bP,UcA,NdI,Gud,yNq,Myo,S1N,kuo,H2x,DcK,Nx,flu,llx,zaA,alo,dcZ,LYd,v9d,KYo,QRN,E9_,Ilu,Mx,q1q,cN_,AN5,i2p,sRq,FY5,g9A,Z2S,mcx,$co,n9S,Pwo,RFN,Cwq,DP,VgY,uRx,Bhp,pqZ,hFu,jYK,bSI,Jjd,W1A,tgp,Tj,UbI,GyZ,yju,Sip,HS5,MgN,LD,vr,zFA,Dbu,kyq,fjp,QYN,IjA,ljp,K1q,rju,gFK,ZS_,m3,mbN,$bd,CLY,ujo,otZ,RB_,eBZ,X1Y,p1Y,W_5,tKN,bNq,jZu,oV,Gc5,yWN,S9_,HNd,RV,V1,DOY,
zBZ,L_Y,Etu,QZp,q9K,cWu,AWp,sZo,rWI,F_q,gtu,ZNq,$Od,C7N,P7S,ntd,uYo,ONq,tv,V1q,oSp,W7,XGq,eyu,pGK,jQ_,U5d,WWx,t1q,Jl5,bXZ,HXd,M1_,kqN,UQ,D5q,fU_,lUx,zyK,aUN,Tmx,d5S,wGK,x5x,vSZ,IUS,QQA,clu,iXI,gSS,ZXp,m5u,$5x,CYA,Gr,nSx,PYq,y1,uzo,oL5,Bw5,RS5,Vao,hSK,ta5,WFI,bsZ,Jc_,jsd,UJY,fO,GJY,ycd,Sfu,MaS,Hsp,kJY,f3S,l3d,zSd,dJq,wAY,a3S,I3x,qfI,ccd,Acd,isd,FFY,ss5,rcd,$JA,CuS,Pu5,nLA,OsA,uru,Bjq,p4A,X4d,h9d,twN,W7q,NjZ,GUK,y1p,StN,f_o,DMx,kUA,a_u,w4x,dMZ,Tj5,il,xMq,L7A,QSo,EkZ,qt_,c15,i4q,sSS,gkN,Z4o,mMA,$M_,
Cko,Pk5,nkx,uN_,O45,oud,BN_,R85,e8S,VdZ,XVK,pVN,Y35,h8N,tdu,WwK,bHA,JgS,Uw_,NNS,jvN,CO,S3K,Mdu,kNu,Dwq,fBq,z8d,aBI,vuN,KwS,cgp,iHA,svd,gu5,ZH_,mwx,$wu,CUd,PUA,u7Z,OHS,B8Y,V7I,XXp,t7I,YvZ,pXx,hRu,Wjd,jtY,bMx,JCp,N8d,Svd,HMZ,M7Z,DL_,fLN,lLp,aLI,wXN,zRd,T8p,xLZ,Ljq,vK_,KjY,EK5,Qt_,qv5,cCI,iMo,ACq,sto,Fju,rCI,gKZ,ZMu,mLd,$L5,CZp,u$x,OMu,PZp,nKY,RKS,XlS,plY,yBu,jdo,GI5,SCq,NRK,hk,HvK,MTo,DBY,zK_,lJd,aJS,dBp,tk,bH,TRZ,xBp,Uy,Ns,IJq,Liq,vMI,qCx,ivK,Fiu,rBx,gMo,Zvp,mB_,CXp,PXS,nMS,uvN,Ovu,oCd,B9_,SB,R3_,
Vlq,Ms,e3x,XmZ,pmp,YGd,h3u,tlK,fw,lH,WS5,b1_,zP,JVS,jX5,UtN,N95,yVZ,SGK,Mlp,z3Z,lnZ,fnu,anY,dtK,KSK,xtN,LSK,T9S,vCI,dL,qGq,cVx,AV_,i1A,sXS,rVS,$tN,Z1u,wL,gCA,O1A,BJZ,Rvd,V0q,evZ,XFZ,hvx,t0I,Jtu,jy_,Uhu,NJA,ytp,SPN,H95,M0K,Dho,fcZ,lcx,ac5,dhd,TJ_,xh_,EoY,qPY,Qyq,AtN,gop,Z9I,mhS,$hp,I7,QN,Ey,ChK,Phu,nox,ue5,O9u,BZp,Rpq,VMo,epd,pvY,hpI,tMp,WdA,qs,bG5,jxI,UPd,yOd,S2_,cI,Ak,kQS,HGZ,DPK,zpA,f6p,a6S,sy,wvp,TZu,vH_,I6d,FH,QxN,q25,cOS,AON,iGu,sxx,Fdd,gHZ,C1d,P1o,OGo,nHo,ubA,osA,B5I,XNA,RcA,ecu,pNZ,YKu,hc_,
bBo,JY_,jMp,Uzo,N55,khI,M3o,dzA,xzx,BS,LrK,x2S,vsu,Kr_,Esd,qKS,cYY,ZBu,mz_,pi,$zd,Ctu,PtI,ns_,u9q,oh_,RhN,OBN,BWu,Xpp,ehY,YRS,hh_,tUp,WUd,b5Z,J9_,jlZ,UFp,SRZ,kCo,H5o,DFo,fe_,leI,tn,zhA,aep,b5,wpK,dFu,TWd,xFo,vh_,KU5,EhN,QlS,qRx,c9N,A9I,FUu,Z55,CVd,$Fd,PVS,nhq,ofI,W0K,e05,J2S,j95,Ns_,GO_,S6q,kOY,fQp,Dio,z0Y,aQI,diq,w3Y,TsZ,xiN,vfZ,EfS,Q9_,q6o,c2q,s95,ilA,ZlA,miK,$io,CmY,Pmq,nfo,OlN,d2,BGN,Li,VLN,Xtq,ptd,bPI,jwu,yxp,HP_,ML_,DXd,fH_,lHp,aHq,wt_,TGp,vNZ,IHA,qFY,QwY,ENo,ql,Axq,cxN,iPI,swY,Feo,rxd,gNx,
ZPu,mX_,Cr_,PrA,nNd,OPd,Rmu,uZ_,oOo,Vx_,emI,XQo,pQu,hmI,txu,yPu,SES,HVo,MxI,kSu,lR5,g2,xvq,LvN,vOd,Kvo,IRK,Zo,mN,Fn,Fvo,Ci,rPp,$vK,PnK,CnY,PS,nON,uQp,gvS;_.o5=function(B,R){if(Error.captureStackTrace)Error.captureStackTrace(this,_.o5);else{var V=Error().stack;V&&(this.stack=V)}B&&(this.message=String(B));R!==void 0&&(this.cause=R)};
Bd=function(){throw Error("B");};
odd=function(B,R){R=String.fromCharCode.apply(null,R);return B==null?R:B+R};
eNZ=function(B){var R=!1;R=R===void 0?!1:R;if(Bxq){if(R&&(RN_?!B.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(B)))throw Error("C");B=(VqN||(VqN=new TextEncoder)).encode(B)}else{for(var V=0,e=new Uint8Array(3*B.length),X=0;X<B.length;X++){var Y=B.charCodeAt(X);if(Y<128)e[V++]=Y;else{if(Y<2048)e[V++]=Y>>6|192;else{if(Y>=55296&&Y<=57343){if(Y<=56319&&X<B.length){var t=B.charCodeAt(++X);if(t>=56320&&t<=57343){Y=(Y-55296)*1024+t-56320+65536;e[V++]=Y>>18|
240;e[V++]=Y>>12&63|128;e[V++]=Y>>6&63|128;e[V++]=Y&63|128;continue}else X--}if(R)throw Error("C");Y=65533}e[V++]=Y>>12|224;e[V++]=Y>>6&63|128}e[V++]=Y&63|128}}B=V===e.length?e:e.subarray(0,V)}return B};
eq=function(B){_.R5.setTimeout(function(){throw B;},0)};
_.pZ=function(B,R){return B.lastIndexOf(R,0)==0};
tA=function(B,R){var V=B.length-R.length;return V>=0&&B.indexOf(R,V)==V};
_.Wd=function(B){return/^[\s\xa0]*$/.test(B)};
_.bo=function(B,R){return B.indexOf(R)!=-1};
_.jq=function(B,R){return _.bo(B.toLowerCase(),R.toLowerCase())};
_.NY=function(B,R){var V=0;B=US(String(B)).split(".");R=US(String(R)).split(".");for(var e=Math.max(B.length,R.length),X=0;V==0&&X<e;X++){var Y=B[X]||"",t=R[X]||"";do{Y=/(\d*)(\D*)(.*)/.exec(Y)||["","","",""];t=/(\d*)(\D*)(.*)/.exec(t)||["","","",""];if(Y[0].length==0&&t[0].length==0)break;V=Xdd(Y[1].length==0?0:parseInt(Y[1],10),t[1].length==0?0:parseInt(t[1],10))||Xdd(Y[2].length==0,t[2].length==0)||Xdd(Y[2],t[2]);Y=Y[3];t=t[3]}while(V==0)}return V};
Xdd=function(B,R){return B<R?-1:B>R?1:0};
_.G_=function(){var B=_.R5.navigator;return B&&(B=B.userAgent)?B:""};
DK=function(B){if(!yu||!Hd)return!1;for(var R=0;R<Hd.brands.length;R++){var V=Hd.brands[R].brand;if(V&&_.bo(V,B))return!0}return!1};
fZ=function(B){return _.bo(_.G_(),B)};
z_=function(){return yu?!!Hd&&Hd.brands.length>0:!1};
wx=function(){return z_()?!1:fZ("Opera")};
pdS=function(){return z_()?!1:fZ("Trident")||fZ("MSIE")};
YS_=function(){return z_()?DK("Microsoft Edge"):fZ("Edg/")};
T_=function(){return fZ("Firefox")||fZ("FxiOS")};
_.LZ=function(){return fZ("Safari")&&!(_.xd()||(z_()?0:fZ("Coast"))||wx()||(z_()?0:fZ("Edge"))||YS_()||(z_()?DK("Opera"):fZ("OPR"))||T_()||fZ("Silk")||fZ("Android"))};
_.xd=function(){return z_()?DK("Chromium"):(fZ("Chrome")||fZ("CriOS"))&&!(z_()?0:fZ("Edge"))||fZ("Silk")};
_.hNZ=function(){return fZ("Android")&&!(_.xd()||T_()||wx()||fZ("Silk"))};
tqZ=function(B){var R={};B.forEach(function(V){R[V[0]]=V[1]});
return function(V){return R[V.find(function(e){return e in R})]||""}};
WIN=function(B){var R=_.G_();if(B==="Internet Explorer"){if(pdS())if((B=/rv: *([\d\.]*)/.exec(R))&&B[1])R=B[1];else{B="";var V=/MSIE +([\d\.]+)/.exec(R);if(V&&V[1])if(R=/Trident\/(\d.\d)/.exec(R),V[1]=="7.0")if(R&&R[1])switch(R[1]){case "4.0":B="8.0";break;case "5.0":B="9.0";break;case "6.0":B="10.0";break;case "7.0":B="11.0"}else B="7.0";else B=V[1];R=B}else R="";return R}var e=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");V=[];for(var X;X=e.exec(R);)V.push([X[1],X[2],X[3]||void 0]);
R=tqZ(V);switch(B){case "Opera":if(wx())return R(["Version","Opera"]);if(z_()?DK("Opera"):fZ("OPR"))return R(["OPR"]);break;case "Microsoft Edge":if(z_()?0:fZ("Edge"))return R(["Edge"]);if(YS_())return R(["Edg"]);break;case "Chromium":if(_.xd())return R(["Chrome","CriOS","HeadlessChrome"])}return B==="Firefox"&&T_()||B==="Safari"&&_.LZ()||B==="Android Browser"&&_.hNZ()||B==="Silk"&&fZ("Silk")?(R=V[2])&&R[1]||"":""};
_.bZS=function(B){if(z_()&&B!=="Silk"){var R=Hd.brands.find(function(V){return V.brand===B});
if(!R||!R.version)return NaN;R=R.version.split(".")}else{R=WIN(B);if(R==="")return NaN;R=R.split(".")}return R.length===0?NaN:Number(R[0])};
KZ=function(){return yu?!!Hd&&!!Hd.platform:!1};
_.JAS=function(){return KZ()?Hd.platform==="Android":fZ("Android")};
j5Y=function(){return fZ("iPhone")&&!fZ("iPod")&&!fZ("iPad")};
_.I5=function(){return j5Y()||fZ("iPad")||fZ("iPod")};
_.UYp=function(){return KZ()?Hd.platform==="macOS":fZ("Macintosh")};
_.Nxo=function(){return KZ()?Hd.platform==="Windows":fZ("Windows")};
_.G_x=function(){return KZ()?Hd.platform==="Chrome OS":fZ("CrOS")};
_.qY=function(B){return B[B.length-1]};
_.AA=function(B,R,V){R=_.yAK(B,R,V);return R<0?null:typeof B==="string"?B.charAt(R):B[R]};
_.yAK=function(B,R,V){for(var e=B.length,X=typeof B==="string"?B.split(""):B,Y=0;Y<e;Y++)if(Y in X&&R.call(V,X[Y],Y,B))return Y;return-1};
SSp=function(B){for(var R=_.sS,V=typeof B==="string"?B.split(""):B,e=B.length-1;e>=0;e--)if(e in V&&R.call(void 0,V[e],e,B))return e;return-1};
_.gx=function(B,R){return _.rx(B,R)>=0};
_.ZK=function(B,R){_.gx(B,R)||B.push(R)};
_.uo=function(B,R){R=_.rx(B,R);var V;(V=R>=0)&&_.mI(B,R);return V};
_.mI=function(B,R){Array.prototype.splice.call(B,R,1)};
_.OS=function(B){var R=B.length;if(R>0){for(var V=Array(R),e=0;e<R;e++)V[e]=B[e];return V}return[]};
_.Vv=function(B,R){for(var V=1;V<arguments.length;V++){var e=arguments[V];if(_.R4(e)){var X=B.length||0,Y=e.length||0;B.length=X+Y;for(var t=0;t<Y;t++)B[X+t]=e[t]}else B.push(e)}};
_.MqN=function(B,R,V,e){Array.prototype.splice.apply(B,HZp(arguments,1))};
HZp=function(B,R,V){return arguments.length<=2?Array.prototype.slice.call(B,R):Array.prototype.slice.call(B,R,V)};
th=function(B,R){R=R||B;for(var V=0,e=0,X={};e<B.length;){var Y=B[e++],t=_.Xa(Y)?"o"+_.Y5(Y):(typeof Y).charAt(0)+Y;Object.prototype.hasOwnProperty.call(X,t)||(X[t]=!0,R[V++]=Y)}R.length=V};
_.k_A=function(B,R,V){V=V||_.b_;for(var e=0,X=B.length,Y;e<X;){var t=e+(X-e>>>1);var b=V(R,B[t]);b>0?e=t+1:(X=t,Y=!b)}return Y?e:-e-1};
_.Jh=function(B,R,V){if(!_.R4(B)||!_.R4(R)||B.length!=R.length)return!1;var e=B.length;V=V||DYx;for(var X=0;X<e;X++)if(!V(B[X],R[X]))return!1;return!0};
_.b_=function(B,R){return B>R?1:B<R?-1:0};
DYx=function(B,R){return B===R};
fKY=function(B,R,V){R=Array.prototype.splice.call(B,R,1);Array.prototype.splice.call(B,V,0,R[0])};
zN_=function(B){return lKx[B]||""};
wdK=function(B){if(!aKq)return _.Uo(B);B=dYN.test(B)?B.replace(dYN,zN_):B;B=atob(B);for(var R=new Uint8Array(B.length),V=0;V<B.length;V++)R[V]=B.charCodeAt(V);return R};
TxZ=function(B,R){B.__closure__error__context__984382||(B.__closure__error__context__984382={});B.__closure__error__context__984382.severity=R};
_.yv=function(B){B=Error(B);TxZ(B,"warning");return B};
MT=function(B,R){if(B!=null){var V;var e=(V=xY_)!=null?V:xY_={};V=e[B]||0;V>=R||(e[B]=V+1,B=Error(),TxZ(B,"incident"),eq(B))}};
zG=function(B,R,V){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(V===void 0?0:V)&&Symbol.for&&B?Symbol.for(B):B!=null?Symbol(B):Symbol():R};
x5=function(B,R){a4||_.w4 in B||LI5(B,vd_);B[_.w4]|=R};
LR=function(B,R){a4||_.w4 in B||LI5(B,vd_);B[_.w4]=R};
KIK=function(B){if(4&B)return 512&B?512:1024&B?1024:0};
v2=function(B){x5(B,34);return B};
IKd=function(B){x5(B,32);return B};
KR=function(){return typeof BigInt==="function"};
qT=function(B,R){return R===void 0?B.copyOnWrite!==I4&&!!(2&(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.w4]|0)):!!(2&R)&&B.copyOnWrite!==I4};
_.Fa=function(B,R){if(B!=null)if(typeof B==="string")B=B?new c2(B,Ah):_.i_();else if(B.constructor!==c2)if(EdA&&B!=null&&B instanceof Uint8Array)B=B.length?new c2(new Uint8Array(B),Ah):_.i_();else{if(!R)throw Error();B=void 0}return B};
r4=function(B,R){if(typeof R!=="number"||R<0||R>=B.length)throw Error();};
Q5x=function(B,R,V){R=R&128?0:-1;var e=B.length,X;if(X=!!e)X=B[e-1],X=X!=null&&typeof X==="object"&&X.constructor===Object;for(var Y=e+(X?-1:0),t=0;t<Y;t++)V(t-R,B[t]);if(X){B=B[e-1];for(var b in B)!isNaN(b)&&V(+b,B[b])}};
mb=function(B){return B&128?g4:void 0};
CR=function(B){B.isGuard_doNotManuallySetPrettyPlease=!0;return B};
cAq=function(){var B=qSS;return CR(function(R){for(var V in B)if(R===B[V]&&!/^[0-9]+$/.test(V))return!0;return!1})};
_.nR=function(B){var R=B;if(AAI(R)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(R))throw Error(String(R));}else if(iZo(R)&&!Number.isSafeInteger(R))throw Error(String(R));return P2?BigInt(B):B=s5q(B)?B?"1":"0":AAI(B)?B.trim()||"0":String(B)};
FIK=function(B,R){if(B.length>R.length)return!1;if(B.length<R.length||B===R)return!0;for(var V=0;V<B.length;V++){var e=B[V],X=R[V];if(e>X)return!1;if(e<X)return!0}};
rA_=function(B){var R=B>>>0;u_=R;Oo=(B-R)/4294967296>>>0};
oN=function(B){if(B<0){rA_(-B);var R=_.h(gdZ(u_,Oo));B=R.next().value;R=R.next().value;u_=B>>>0;Oo=R>>>0}else rA_(B)};
ZZx=function(B,R){var V=R*4294967296+(B>>>0);return Number.isSafeInteger(V)?V:_.Bo(B,R)};
RN=function(B,R){var V=R&2147483648;V&&(B=~B+1>>>0,R=~R>>>0,B==0&&(R=R+1>>>0));B=ZZx(B,R);return typeof B==="number"?V?-B:B:V?"-"+B:B};
_.Bo=function(B,R){R>>>=0;B>>>=0;if(R<=2097151)var V=""+(4294967296*R+B);else KR()?V=""+(BigInt(R)<<BigInt(32)|BigInt(B)):(V=(B>>>24|R<<8)&16777215,R=R>>16&65535,B=(B&16777215)+V*6777216+R*6710656,V+=R*8147497,R*=2,B>=1E7&&(V+=B/1E7>>>0,B%=1E7),V>=1E7&&(R+=V/1E7>>>0,V%=1E7),V=R+mYS(V)+mYS(B));return V};
mYS=function(B){B=String(B);return"0000000".slice(B.length)+B};
_.Vn=function(B,R){R&2147483648?KR()?B=""+(BigInt(R|0)<<BigInt(32)|BigInt(B>>>0)):(R=_.h(gdZ(B,R)),B=R.next().value,R=R.next().value,B="-"+_.Bo(B,R)):B=_.Bo(B,R);return B};
XU=function(B){if(B.length<16)oN(Number(B));else if(KR())B=BigInt(B),u_=Number(B&BigInt(4294967295))>>>0,Oo=Number(B>>BigInt(32)&BigInt(4294967295));else{var R=+(B[0]==="-");Oo=u_=0;for(var V=B.length,e=R,X=(V-R)%6+R;X<=V;e=X,X+=6)e=Number(B.slice(e,X)),Oo*=1E6,u_=u_*1E6+e,u_>=4294967296&&(Oo+=Math.trunc(u_/4294967296),Oo>>>=0,u_>>>=0);R&&(R=_.h(gdZ(u_,Oo)),B=R.next().value,R=R.next().value,u_=B,Oo=R)}};
gdZ=function(B,R){R=~R;B?B=~B+1:R+=1;return[B,R]};
pe=function(B){return Array.prototype.slice.call(B)};
_.Ym=function(B,R){throw Error(R===void 0?"unexpected value "+B+"!":R);};
_.hr=function(B){if(B!=null&&typeof B!=="number")throw Error("I`"+typeof B+"`"+B);return B};
_.Wo=function(B){if(B==null||typeof B==="number")return B;if(B==="NaN"||B==="Infinity"||B==="-Infinity")return Number(B)};
$Yu=function(B){if(B!=null&&typeof B!=="boolean")throw Error("J`"+_.U4(B)+"`"+B);return B};
_.CoA=function(B){if(B==null||typeof B==="boolean")return B;if(typeof B==="number")return!!B};
_.Ho=function(B){switch(typeof B){case "bigint":return!0;case "number":return yn(B);case "string":return Pop.test(B);default:return!1}};
_.Mj=function(B){if(!yn(B))throw _.yv("enum");return B|0};
_.km=function(B){return B==null?B:yn(B)?B|0:void 0};
ndN=function(B){if(typeof B!=="number")throw _.yv("int32");if(!yn(B))throw _.yv("int32");return B|0};
_.D7=function(B){return B==null?B:ndN(B)};
_.l4=function(B){if(B==null)return B;if(typeof B==="string"&&B)B=+B;else if(typeof B!=="number")return;return yn(B)?B|0:void 0};
_.zi=function(B){if(B==null)return B;if(typeof B==="string"&&B)B=+B;else if(typeof B!=="number")return;return yn(B)?B>>>0:void 0};
B4q=function(B){var R=0;R=R===void 0?0:R;if(!_.Ho(B))throw _.yv("int64");var V=typeof B;switch(R){case 512:switch(V){case "string":return aN(B);case "bigint":return String(de(64,B));default:return upd(B)}case 1024:switch(V){case "string":return OZu(B);case "bigint":return _.nR(de(64,B));default:return o5S(B)}case 0:switch(V){case "string":return aN(B);case "bigint":return _.nR(de(64,B));default:return xm(B)}default:return _.Ym(R,"Unknown format requested type for int64")}};
Le=function(B){return B==null?B:B4q(B)};
RlA=function(B){if(B[0]==="-")return!1;var R=B.length;return R<20?!0:R===20&&Number(B.substring(0,6))<184467};
VJY=function(B){var R=B.length;return B[0]==="-"?R<20?!0:R===20&&Number(B.substring(0,7))>-922337:R<19?!0:R===19&&Number(B.substring(0,6))<922337};
elu=function(B){if(B<0){oN(B);var R=_.Bo(u_,Oo);B=Number(R);return vo(B)?B:R}R=String(B);if(RlA(R))return R;oN(B);return ZZx(u_,Oo)};
X2x=function(B){if(VJY(B))return B;XU(B);return _.Vn(u_,Oo)};
p2u=function(B){if(RlA(B))return B;XU(B);return _.Bo(u_,Oo)};
xm=function(B){B=Ke(B);vo(B)||(oN(B),B=RN(u_,Oo));return B};
_.Yo5=function(B){B=Ke(B);return B>=0&&vo(B)?B:elu(B)};
upd=function(B){B=Ke(B);if(vo(B))B=String(B);else{var R=String(B);VJY(R)?B=R:(oN(B),B=_.Vn(u_,Oo))}return B};
_.hlA=function(B){B=Ke(B);if(B>=0&&vo(B))B=String(B);else{var R=String(B);RlA(R)?B=R:(oN(B),B=_.Bo(u_,Oo))}return B};
aN=function(B){var R=Ke(Number(B));if(vo(R))return String(R);R=B.indexOf(".");R!==-1&&(B=B.substring(0,R));return X2x(B)};
OZu=function(B){var R=Ke(Number(B));if(vo(R))return _.nR(R);R=B.indexOf(".");R!==-1&&(B=B.substring(0,R));return KR()?_.nR(de(64,BigInt(B))):_.nR(X2x(B))};
o5S=function(B){return vo(B)?_.nR(xm(B)):_.nR(upd(B))};
_.tJI=function(B){return vo(B)?_.nR(_.Yo5(B)):_.nR(_.hlA(B))};
_.WbN=function(B){var R=Ke(Number(B));if(vo(R)&&R>=0)return String(R);R=B.indexOf(".");R!==-1&&(B=B.substring(0,R));return p2u(B)};
_.bRS=function(B){var R=Ke(Number(B));if(vo(R)&&R>=0)return _.nR(R);R=B.indexOf(".");R!==-1&&(B=B.substring(0,R));return KR()?_.nR((0,_.IN)(64,BigInt(B))):_.nR(p2u(B))};
_.Jhx=function(B){if(B==null)return B;if(typeof B==="bigint")return E4(B)?B=Number(B):(B=de(64,B),B=E4(B)?Number(B):String(B)),B;if(_.Ho(B))return typeof B==="number"?xm(B):aN(B)};
j4d=function(B,R){R=R===void 0?!1:R;var V=typeof B;if(B==null)return B;if(V==="bigint")return String(de(64,B));if(_.Ho(B))return V==="string"?aN(B):R?upd(B):xm(B)};
_.UTS=function(B){var R=typeof B;if(B==null)return B;if(R==="bigint")return _.nR(de(64,B));if(_.Ho(B))return R==="string"?OZu(B):o5S(B)};
N4p=function(B){if(B==null)return B;var R=typeof B;if(R==="bigint")return String(de(64,B));if(_.Ho(B)){if(R==="string")return aN(B);if(R==="number")return xm(B)}};
GGo=function(B){if(B==null)return B;var R=typeof B;if(R==="bigint")return String((0,_.IN)(64,B));if(_.Ho(B)){if(R==="string")return _.WbN(B);if(R==="number")return _.Yo5(B)}};
_.Qn=function(B){if(typeof B!=="string")throw Error();return B};
qj=function(B){if(B!=null&&typeof B!=="string")throw Error();return B};
_.co=function(B){return B==null||typeof B==="string"?B:void 0};
yhA=function(B,R,V,e){if(B!=null&&B[Ar]===FU)return B;if(!Array.isArray(B))return V?e&2?((B=R[re])||(B=new R,v2(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),B=R[re]=B),R=B):R=new R:R=void 0,R;V=B[_.w4]|0;e=V|e&32|e&2;e!==V&&LR(B,e);return new R(B)};
SoI=function(B,R,V){B=R?ndN(B):_.l4(B);return B==null?V?0:void 0:B|0};
HRx=function(B){return B};
MJY=function(B){return B};
DTd=function(B,R,V,e,X,Y){B=yhA(B,e,V,Y);X&&(B=kGp(B));return B};
fSK=function(B){return[B,this.get(B)]};
aSN=function(){return lSA||(lSA=new ge(v2([]),void 0,void 0,void 0,zlx))};
Ce=function(B){var R=m6($m);return R?B[R]:void 0};
T4d=function(B,R){var V=V===void 0?!1:V;if(m6(dTo)&&m6($m)&&void 0===dTo){var e=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=e[$m];if(!X)return;if(X=X.reviveUnknownFields)try{X(e,R,w2d);return}catch(Y){eq(Y)}}V&&(B=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(V=m6($m))&&V in B&&(B=B[V])&&delete B[R])};
LbS=function(B,R){var V=m6($m),e;a4&&V&&((e=B[V])==null?void 0:e[R])!=null&&MT(xTx,3)};
KbS=function(B,R){R<100||MT(v5Y,1)};
qod=function(B,R,V,e){var X=e!==void 0;e=!!e;var Y=m6($m),t;!X&&a4&&Y&&(t=B[Y])&&ne(t,KbS);Y=[];var b=B.length;t=4294967295;var J=!1,G=!!(R&64),y=G?R&128?0:-1:void 0;if(!(R&1)){var S=b&&B[b-1];S!=null&&typeof S==="object"&&S.constructor===Object?(b--,t=b):S=void 0;if(G&&!(R&128)&&!X){J=!0;var M;t=((M=ISd)!=null?M:HRx)(t-y,y,B,S)+y}}R=void 0;for(M=0;M<b;M++){var f=B[M];if(f!=null&&(f=V(f,e))!=null)if(G&&M>=t){var z=M-y,T=void 0;((T=R)!=null?T:R={})[z]=f}else Y[M]=f}if(S)for(var L in S)b=S[L],b!=null&&
(b=V(b,e))!=null&&(M=+L,f=void 0,G&&!Number.isNaN(M)&&(f=M+y)<t?Y[f]=b:(M=void 0,((M=R)!=null?M:R={})[L]=b));R&&(J?Y.push(R):Y[t]=R);X&&m6($m)&&(B=Ce(B))&&B instanceof E5q&&(Y[$m]=Q4x(B));return Y};
chA=function(B){B[0]=u4(B[0]);B[1]=u4(B[1]);return B};
u4=function(B){switch(typeof B){case "number":return Number.isFinite(B)?B:""+B;case "bigint":return E4(B)?Number(B):""+B;case "boolean":return B?1:0;case "object":if(Array.isArray(B)){var R=B[_.w4]|0;return B.length===0&&R&1?void 0:qod(B,R,u4)}if(B!=null&&B[Ar]===FU)return Ahu(B);if(B instanceof c2){R=B.JSC$6718_value_;if(R==null)B="";else if(typeof R==="string")B=R;else{if(aKq){for(var V="",e=0,X=R.length-10240;e<X;)V+=String.fromCharCode.apply(null,R.subarray(e,e+=10240));V+=String.fromCharCode.apply(null,
e?R.subarray(e):R);R=btoa(V)}else R=_.O4(R);B=B.JSC$6718_value_=R}return B}if(B instanceof ge)return B=B.size!==0?Array.from(om.prototype.entries.call(B),chA):void 0,B;return}return B};
V5=function(B,R){if(R){ISd=R==null||R===HRx||R[iRd]!==s4Z?HRx:R;try{return Ahu(B)}finally{ISd=void 0}}return Ahu(B)};
Ahu=function(B){B=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return qod(B,B[_.w4]|0,u4)};
g5p=function(B){switch(typeof B){case "boolean":return Fb_||(Fb_=[0,void 0,!0]);case "number":return B>0?void 0:B===0?rhN||(rhN=[0,void 0]):[-B,void 0];case "string":return[0,B];case "object":return B}};
pf=function(B,R,V){return B=_.ez(B,R[0],R[1],V?1:2)};
_.ez=function(B,R,V,e){e=e===void 0?0:e;if(B==null){var X=32;V?(B=[V],X|=128):B=[];R&&(X=X&-8380417|(R&1023)<<13)}else{if(!Array.isArray(B))throw Error("L");X=B[_.w4]|0;2048&X&&!(2&X)&&ZRo();if(X&256)throw Error("N");if(X&64)return e!==0||X&2048||LR(B,X|2048),B;if(V&&(X|=128,V!==B[0]))throw Error("O");a:{V=B;X|=64;var Y=V.length;if(Y){var t=Y-1,b=V[t];if(b!=null&&typeof b==="object"&&b.constructor===Object){R=X&128?0:-1;t-=R;if(t>=1024)throw Error("Q");for(var J in b)Y=+J,Y<t&&(V[Y+R]=b[J],delete b[J]);
X=X&-8380417|(t&1023)<<13;break a}}if(R){J=Math.max(R,Y-(X&128?0:-1));if(J>1024)throw Error("R");X=X&-8380417|(J&1023)<<13}}}X|=64;e===0&&(X|=2048);LR(B,X);return B};
ZRo=function(){MT(mT5,5)};
P_A=function(B,R){if(typeof B!=="object")return B;if(Array.isArray(B)){var V=B[_.w4]|0;return B.length===0&&V&1?void 0:$T_(B,V,R)}if(B!=null&&B[Ar]===FU)return C_K(B);if(B instanceof ge){R=B.arrayState;if(R&2)return B;if(!B.size)return;V=v2(Array.from(om.prototype.entries.call(B)));if(B.valueCtor)for(B=0;B<V.length;B++){var e=V[B],X=e[1];X==null||typeof X!=="object"?X=void 0:X!=null&&X[Ar]===FU?X=C_K(X):Array.isArray(X)?X=$T_(X,X[_.w4]|0,!!(R&32)):X=void 0;e[1]=X}return V}if(B instanceof c2)return B};
$T_=function(B,R,V){if(R&2)return B;!V||4096&R||16&R?B=Yv(B,R,!1,V&&!(R&16)):(x5(B,34),R&4&&Object.freeze(B));return B};
hD=function(B,R,V){B=new B.constructor(R);V&&(B.copyOnWrite=I4);B.noLegacyNull=I4;return B};
C_K=function(B){var R=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=R[_.w4]|0;return qT(B,V)?B:Wy(B,R,V)?hD(B,R):Yv(R,V)};
Yv=function(B,R,V,e){e!=null||(e=!!(34&R));B=qod(B,R,P_A,e);e=32;V&&(e|=2);R=R&8380609|e;LR(B,R);return B};
kGp=function(B){var R=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=R[_.w4]|0;return qT(B,V)?Wy(B,R,V)?hD(B,R,!0):new B.constructor(Yv(R,V,!1)):B};
bI=function(B){if(B.copyOnWrite!==I4)return!1;var R=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=Yv(R,R[_.w4]|0);x5(R,2048);B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=R;B.copyOnWrite=void 0;B.noLegacyNull=void 0;return!0};
jz=function(B){if(!bI(B)&&qT(B,B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.w4]|0))throw Error();};
UY=function(B,R){R===void 0&&(R=B[_.w4]|0);R&32&&!(R&4096)&&LR(B,R|4096)};
Wy=function(B,R,V){return V&2?!0:V&32&&!(V&4096)?(LR(R,V|2),B.copyOnWrite=I4,!0):!1};
NS=function(B,R,V,e,X){var Y=V+(X?0:-1),t=B.length-1;if(t>=1+(X?0:-1)&&Y>=t){var b=B[t];if(b!=null&&typeof b==="object"&&b.constructor===Object)return b[V]=e,R}if(Y<=t)return B[Y]=e,R;if(e!==void 0){var J;t=((J=R)!=null?J:R=B[_.w4]|0)>>13&1023||536870912;V>=t?e!=null&&(Y={},B[t+(X?0:-1)]=(Y[V]=e,Y)):B[Y]=e}return R};
_.Hy=function(B,R,V,e,X){var Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=Y[_.w4]|0;e=qT(B,t)?1:e;X=!!X||e===3;e===2&&bI(B)&&(Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=Y[_.w4]|0);B=n5u(Y,R);var b=B===GX?7:B[_.w4]|0,J=uaq(b,t);var G=4&J?!1:!0;if(G){4&J&&(B=pe(B),b=0,J=Sz(J,t),t=NS(Y,t,R,B));for(var y=0,S=0;y<B.length;y++){var M=V(B[y]);M!=null&&(B[S++]=M)}S<y&&(B.length=S);V=(J|4)&-513;J=V&=-1025;J&=-4097}J!==b&&(LR(B,J),2&J&&Object.freeze(B));return B=ORq(B,J,Y,
t,R,e,G,X)};
ORq=function(B,R,V,e,X,Y,t,b){var J=R;Y===1||(Y!==4?0:2&R||!(16&R)&&32&e)?MS(R)||(R|=!B.length||t&&!(4096&R)||32&e&&!(4096&R||16&R)?2:256,R!==J&&LR(B,R),Object.freeze(B)):(Y===2&&MS(R)&&(B=pe(B),J=0,R=Sz(R,e),e=NS(V,e,X,B)),MS(R)||(b||(R|=16),R!==J&&LR(B,R)));2&R||!(4096&R||16&R)||UY(V,e);return B};
n5u=function(B,R,V){B=kv(B,R,V);return Array.isArray(B)?B:GX};
uaq=function(B,R){2&R&&(B|=2);return B|1};
MS=function(B){return!!(2&B)&&!!(4&B)||!!(256&B)};
omN=function(B){return _.Fa(B,!0)};
BeI=function(B,R){var V=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=V[_.w4]|0;a:{var X=e;e=qT(B,e);!e&&bI(B)&&(V=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=V[_.w4]|0);var Y=kv(V,R);B=!1;if(Y==null){if(e){R=aSN();break a}Y=[]}else if(Y.constructor===ge)if(Y.arrayState&2&&!e)Y=Array.from(om.prototype.entries.call(Y));else{R=Y;break a}else Array.isArray(Y)?B=!!((Y[_.w4]|0)&2):Y=[];if(e){if(!Y.length){R=aSN();break a}B||(B=!0,v2(Y))}else if(B){B=!1;e=Y;e=pe(e);for(Y=0;Y<
e.length;Y++){var t=e[Y]=pe(e[Y]);Array.isArray(t[1])&&(t[1]=v2(t[1]))}Y=e}!B&&X&32&&IKd(Y);e=new ge(Y,void 0,SoI,SoI);X=NS(V,X,R,e);B||UY(V,X);R=e}return R};
_.ff=function(B,R,V,e){jz(B);var X=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=X[_.w4]|0;if(V==null)return NS(X,Y,R),B;var t=V===GX?7:V[_.w4]|0,b=t,J=MS(t),G=J||Object.isFrozen(V);J||(t=0);G||(V=pe(V),b=0,t=Sz(t,Y),G=!1);t|=5;var y;J=(y=KIK(t))!=null?y:0;for(y=0;y<V.length;y++){var S=V[y],M=e(S,J);Object.is(S,M)||(G&&(V=pe(V),b=0,t=Sz(t,Y),G=!1),V[y]=M)}t!==b&&(G&&(V=pe(V),t=Sz(t,Y)),LR(V,t));NS(X,Y,R,V);return B};
_.lI=function(B,R,V,e,X){jz(B);var Y=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;NS(Y,Y[_.w4]|0,R,(e==="0"?Number(V)===0:V===e)?void 0:V,X);return B};
_.am=function(B,R,V){if(R&2)throw Error();var e=mb(R),X=n5u(B,V,e),Y=X===GX?7:X[_.w4]|0,t=uaq(Y,R);if(2&t||MS(t)||16&t)X=pe(X),Y=0,t=Sz(t,R),NS(B,R,V,X,e);t&=-13;t!==Y&&LR(X,t);return X};
RzS=function(B){if(a4){var R;return(R=B[dq])!=null?R:B[dq]=new Map}if(dq in B)return B[dq];R=new Map;Object.defineProperty(B,dq,{value:R});return R};
ezS=function(B,R,V,e,X){var Y=RzS(B),t=V2o(Y,B,R,V,X);t!==e&&(t&&(R=NS(B,R,t,void 0,X)),Y.set(V,e));return R};
V2o=function(B,R,V,e,X){var Y=B.get(e);if(Y!=null)return Y;for(var t=Y=0;t<e.length;t++){var b=e[t];kv(R,b,X)!=null&&(Y!==0&&(V=NS(R,V,Y,void 0,X)),Y=b)}B.set(e,Y);return Y};
wq=function(B,R,V,e,X){var Y=!1;e=kv(B,e,X,function(t){var b=yhA(t,V,!1,R);Y=b!==t&&b!=null;return b});
if(e!=null)return Y&&!qT(e)&&UY(B,R),e};
Xo_=function(B,R,V,e,X,Y,t,b){var J=qT(B,V);Y=J?1:Y;t=!!t||Y===3;J=b&&!J;(Y===2||J)&&bI(B)&&(R=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=R[_.w4]|0);B=n5u(R,X);var G=B===GX?7:B[_.w4]|0,y=uaq(G,V);if(b=!(4&y)){var S=B,M=V,f=!!(2&y);f&&(M|=2);for(var z=!f,T=!0,L=0,Q=0;L<S.length;L++){var q=yhA(S[L],e,!1,M);if(q instanceof e){if(!f){var m=qT(q);z&&(z=!m);T&&(T=m)}S[Q++]=q}}Q<L&&(S.length=Q);y|=4;y=T?y&-4097:y|4096;y=z?y|8:y&-9}y!==G&&(LR(B,y),2&y&&Object.freeze(B));if(J&&!(8&y||!B.length&&
(Y===1||(Y!==4?0:2&y||!(16&y)&&32&V)))){MS(y)&&(B=pe(B),y=Sz(y,V),V=NS(R,V,X,B));e=B;J=y;for(G=0;G<e.length;G++)S=e[G],y=kGp(S),S!==y&&(e[G]=y);J|=8;y=J=e.length?J|4096:J&-4097;LR(B,y)}return B=ORq(B,y,R,V,X,Y,b,t)};
poY=function(B){B==null&&(B=void 0);return B};
Sz=function(B,R){return B=(2&R?B|2:B&-3)&-273};
_.Y45=function(B,R,V,e,X){jz(B);R=_.Hy(B,R,X,2,!0);var Y;X=(Y=KIK(R===GX?7:R[_.w4]|0))!=null?Y:0;R.push(V(e,X));return B};
hzu=function(B,R,V,e,X,Y,t){jz(B);var b=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;B=Xo_(B,b,b[_.w4]|0,V,R,2,!0);if(Y&&t)X!=null||(X=B.length-1),r4(B,X),B.splice(X,Y),B.length||(B[_.w4]&=-4097);else{if(Y){if(typeof X!=="number"||X<0||X>B.length)throw Error();}else e=e!=null?e:new V;X!=void 0?B.splice(X,Y,e):B.push(e);X=V=B===GX?7:B[_.w4]|0;(e=qT(e))?(V&=-9,B.length===1&&(V&=-4097)):V|=4096;V!==X&&LR(B,V);e||UY(b)}};
t2p=function(B,R){if(typeof B==="string")return new TX(wdK(B),R);if(Array.isArray(B))return new TX(new Uint8Array(B),R);if(B.constructor===Uint8Array)return new TX(B,!1);if(B.constructor===ArrayBuffer)return B=new Uint8Array(B),new TX(B,!1);if(B.constructor===c2)return R=xv(B)||new Uint8Array(0),new TX(R,!0,B);if(B instanceof Uint8Array)return B=B.constructor===Uint8Array?B:new Uint8Array(B.buffer,B.byteOffset,B.byteLength),new TX(B,!1);throw Error();};
vy=function(){var B=function(){throw Error();};
Object.setPrototypeOf(B,B.prototype);return B};
bex=function(B,R){var V=V===void 0?W6Z:V;return new Im(B,R,V)};
Ned=function(B,R,V,e,X){R=JrS(R,e);R!=null&&(V=_.jNu(B,V),X(R,B),_.UjS(B,V))};
EY=function(B,R,V,e){var X=e[B];if(X)return X;X={};X.binaryFields=e;X.messageMetadata=g5p(e[0]);var Y=e[1],t=1;Y&&Y.constructor===Object&&(X.extensions=Y,Y=e[++t],typeof Y==="function"&&(X.isMessageSet=!0,GiN!=null||(GiN=Y),yrp!=null||(yrp=e[t+1]),Y=e[t+=2]));for(var b={};Y&&Array.isArray(Y)&&Y.length&&typeof Y[0]==="number"&&Y[0]>0;){for(var J=0;J<Y.length;J++)b[Y[J]]=Y;Y=e[++t]}for(J=1;Y!==void 0;){typeof Y==="number"&&(J+=Y,Y=e[++t]);var G=void 0;if(Y instanceof Im)var y=Y;else y=S45,t--;Y=void 0;
if((Y=y)==null?0:Y.$$isMsg){Y=e[++t];G=e;var S=t;typeof Y==="function"&&(Y=Y(),G[S]=Y);G=Y}Y=e[++t];S=J+1;typeof Y==="number"&&Y<0&&(S-=Y,Y=e[++t]);for(;J<S;J++){var M=b[J];G?V(X,J,y,G,M):R(X,J,y,M)}}return e[B]=X};
M2I=function(B){return Array.isArray(B)?B[0]instanceof Im?B:[Heq,B]:[B,void 0]};
JrS=function(B,R){if(B instanceof _.qS)return B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(B))return pf(B,R,!1)};
kiS=function(B,R,V,e){var X=V.$$binaryReaderFn;B[R]=e?function(Y,t,b){return X(Y,t,b,e)}:X};
Djd=function(B,R,V,e,X){var Y=V.$$binaryReaderFn,t,b;B[R]=function(J,G,y){return Y(J,G,y,b||(b=EY(cy,kiS,Djd,e).messageMetadata),t||(t=f7o(e)),X)}};
f7o=function(B){var R=B[l7x];if(R!=null)return R;var V=EY(cy,kiS,Djd,B);R=V.isMessageSet?function(e,X){return GiN(e,X,V)}:function(e,X){for(;zzA(X)&&X.nextWireType_!=4;){var Y=X.nextField_,t=V[Y];
if(t==null){var b=V.extensions;b&&(b=b[Y])&&(b=a7Z(b),b!=null&&(t=V[Y]=b))}if(t==null||!t(X,e,Y)){b=X;t=b.fieldCursor_;AD(b);if(b.discardUnknownFields)var J=void 0;else{var G=b.decoder_.cursor_-t;b.decoder_.cursor_=t;J=djx(b.decoder_,G)}G=b=t=void 0;var y=e;J&&((t=(b=(G=y[$m])!=null?G:y[$m]=new E5q)[Y])!=null?t:b[Y]=[]).push(J)}}if(e=Ce(e))e.reviveUnknownFields=V.binaryFields[wox];return!0};
B[l7x]=R;B[wox]=Te_.bind(B);return R};
Te_=function(B,R,V,e){var X=this[cy],Y=this[l7x],t=pf(void 0,X.messageMetadata,!1),b=Ce(B);if(b){var J=!1,G=X.extensions;if(G){X=function(z,T,L){if(L.length!==0)if(G[T])for(z=_.h(L),T=z.next();!T.done;T=z.next()){T=xju(T.value);try{J=!0,Y(t,T)}finally{T.free()}}else e==null||e(B,T,L)};
if(R==null)ne(b,X);else if(b!=null){var y=b[R];y&&X(b,R,y)}if(J){var S=B[_.w4]|0;if(S&2&&S&2048&&(V==null||!V.reviveIntoImmutable))throw Error();var M=mb(S),f=function(z,T){if(kv(B,z,M)!=null)switch(V==null?void 0:V.resolutionBehavior){case 1:return;default:throw Error();}T!=null&&(S=NS(B,S,z,T,M));delete b[z]};
R==null?Q5x(t,t[_.w4]|0,function(z,T){f(z,T)}):f(R,kv(t,R,M))}}}};
a7Z=function(B){B=M2I(B);var R=B[0].$$binaryReaderFn;if(B=B[1]){var V=f7o(B),e=EY(cy,kiS,Djd,B).messageMetadata;return function(X,Y,t){return R(X,Y,t,e,V)}}return R};
iI=function(B,R,V){B[R]=V.$$binaryWriterFn};
Fx=function(B,R,V,e){var X,Y,t=V.$$binaryWriterFn;B[R]=function(b,J,G){return t(b,J,G,Y||(Y=EY(sY,iI,Fx,e).messageMetadata),X||(X=L6N(e)))}};
L6N=function(B){var R=B[vmA];if(!R){var V=EY(sY,iI,Fx,B);R=function(e,X){return K6p(e,X,V)};
B[vmA]=R}return R};
K6p=function(B,R,V){Q5x(B,B[_.w4]|0,function(e,X){if(X!=null){var Y=I7d(V,e);Y?Y(R,X,e):e<500||MT(Emo,3)}});
(B=Ce(B))&&ne(B,function(e,X,Y){rq(R,R.encoder_.end());for(e=0;e<Y.length;e++)rq(R,xv(Y[e])||new Uint8Array(0))})};
I7d=function(B,R){var V=B[R];if(V)return V;if(V=B.extensions)if(V=V[R]){V=M2I(V);var e=V[0].$$binaryWriterFn;if(V=V[1]){var X=L6N(V),Y=EY(sY,iI,Fx,V).messageMetadata;V=B.isMessageSet?yrp(Y,X):function(t,b,J){return e(t,b,J,Y,X)}}else V=e;
return B[R]=V}};
_.QN5=function(B,R,V){if(Array.isArray(R)){var e=R[_.w4]|0;if(e&4)return R;for(var X=0,Y=0;X<R.length;X++){var t=B(R[X]);t!=null&&(R[Y++]=t)}Y<X&&(R.length=Y);V&&(LR(R,(e|5)&-1537),e&2&&Object.freeze(R));return R}};
_.gq=function(B,R,V){return new Im(B,R,V)};
_.q4x=function(B,R,V){return new Im(B,R,V)};
_.ZY=function(B,R,V){NS(B,B[_.w4]|0,R,V,mb(B[_.w4]|0))};
crp=function(B,R,V){R=_.Wo(R);R!=null&&(_.ml(B,V,1),B=B.encoder_,V=Cf||(Cf=new DataView(new ArrayBuffer(8))),V.setFloat64(0,+R,!0),u_=V.getUint32(0,!0),Oo=V.getUint32(4,!0),_.Py(B,u_),_.Py(B,Oo))};
_.nf=function(B,R,V){R=N4p(R);if(R!=null){switch(typeof R){case "string":Ar_(R)}if(R!=null)switch(_.ml(B,V,0),typeof R){case "number":B=B.encoder_;oN(R);ieY(B,u_,Oo);break;case "bigint":V=BigInt.asUintN(64,R);V=new sNd(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));ieY(B.encoder_,V.JSC$6770_lo,V.JSC$6770_hi);break;default:V=Ar_(R),ieY(B.encoder_,V.JSC$6770_lo,V.JSC$6770_hi)}}};
rrd=function(B,R,V){R=_.l4(R);R!=null&&R!=null&&(_.ml(B,V,0),_.F6p(B.encoder_,R))};
_.ZeS=function(B,R,V){gmd(B,V,GGo(R))};
_.$jd=function(B,R,V){R=_.CoA(R);R!=null&&(_.ml(B,V,0),B.encoder_.JSC$6772_buffer_.push(R?1:0))};
_.P4N=function(B,R,V){R=_.co(R);R!=null&&C4S(B,V,eNZ(R))};
nmp=function(B,R,V,e,X){R=JrS(R,e);R!=null&&(V=_.jNu(B,V),X(R,B),_.UjS(B,V))};
_.uUY=function(B,R,V){R=R==null||typeof R=="string"||R instanceof c2?R:void 0;R!=null&&C4S(B,V,t2p(R,!0).buffer)};
_.OeY=function(B,R,V){R=_.l4(R);R!=null&&(R=parseInt(R,10),_.ml(B,V,0),_.F6p(B.encoder_,R))};
_.uI=function(B,R){return function(V,e){var X={treatNewDataAsImmutable:!0};e&&Object.assign(X,e);V=xju(V,void 0,void 0,X);try{var Y=new B,t=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f7o(R)(t,V);var b=Y}finally{V.free()}return b}};
_.OY=function(B){return function(R){return ovZ(R,B)}};
Bqx=function(B){return function(){return ovZ(this,B)}};
_.Rkd=function(B){return CR(function(R){return R instanceof B&&!qT(R)})};
_.oa=function(B){return function(R){return VzI(B,R)}};
YYx=function(B,R){return ekZ({child:B,origin:R||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Xyq,getPayloadCase:function(V){return V.getPayloadCase()},
createInitMessage:function(V){var e=new BB,X=new pyZ;V=_.Ra(X,1,V);return _.Vm(e,5,e4,V)}})};
X5=function(B){return{valueOf:B}.valueOf()};
tzZ=function(){var B=null;if(!hkd)return B;try{var R=function(V){return V};
B=hkd.createPolicy("goog#html",{createHTML:R,createScript:R,createScriptURL:R})}catch(V){}return B};
bfo=function(){WlZ===void 0&&(WlZ=tzZ());return WlZ};
_.Yq=function(B){var R=bfo();B=R?R.createScriptURL(B):B;return new p$(B)};
_.hR=function(B){if(B instanceof p$)return B.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
tR=function(B){return B.toString().indexOf("`")===-1};
bD=function(B){return new _.WB(JDq,B)};
JR=function(B){return B instanceof _.WB};
_.j4=function(B){if(JR(B))return B.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
U8=function(B){return new jmp(function(R){return R.substr(0,B.length+1).toLowerCase()===B+":"})};
NV=function(B,R){R=R===void 0?USp:R;if(JR(B))return B;for(var V=0;V<R.length;++V){var e=R[V];if(e instanceof jmp&&e.isValid(B))return bD(B)}};
_.ym=function(B,R){R=R===void 0?USp:R;return NV(B,R)||Gm};
_.S4=function(B){var R=window;if(typeof MediaSource!=="undefined"&&B instanceof MediaSource||typeof R.ManagedMediaSource!=="undefined"&&B instanceof R.ManagedMediaSource)return bD(URL.createObjectURL(B));R=B.type;R.toLowerCase()==="application/octet-stream"?R=!0:(R=R.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),R=(R==null?void 0:R.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(R[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(R[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(R[1])||/^font\/[\w-]+$/i.test(R[1])));if(!R)throw Error("da");return bD(URL.createObjectURL(B))};
_.MV=function(B){for(var R=_.HB.apply(1,arguments),V=[B[0]],e=0;e<R.length;e++)V.push(String(R[e])),V.push(B[e+1]);return bD(V.join(""))};
_.GXq=function(B){if(!Nq5){a:{var R=document.createElement("a");try{R.href=B}catch(V){B=void 0;break a}B=R.protocol;B=B===":"||B===""?"https:":B}return B}try{R=new URL(B)}catch(V){return"https:"}return R.protocol};
_.kq=function(B){B instanceof _.WB?B=_.j4(B):B=yDZ.test(B)?B:void 0;return B};
f$=function(B,R){R=_.kq(R);R!==void 0&&(B.href=R)};
aa=function(B){var R=bfo();B=R?R.createHTML(B):B;return new zm(B)};
dc=function(B){if(B instanceof zm)return B.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.wc=function(B,R){B.src=_.hR(R).toString()};
SYS=function(B,R){B.setAttribute("sandbox","");for(var V=0;V<R.length;V++)B.sandbox.supports&&!B.sandbox.supports(R[V])||B.sandbox.add(R[V])};
_.Hfo=function(B,R,V){B.removeAttribute("srcdoc");switch(R){case 0:if(V instanceof p$)throw new Tm("TrustedResourceUrl",0);SYS(B,[]);R=_.kq(V);R!==void 0&&(B.src=R);break;case 1:if(!(V instanceof p$))throw new Tm(typeof V,1);SYS(B,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.wc(B,V);break;case 2:if(V instanceof p$)throw new Tm("TrustedResourceUrl",2);SYS(B,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
R=_.kq(V);R!==void 0&&(B.src=R);break;default:_.Ym(R)}};
_.xq=function(B,R,V,e){R=_.kq(R);return R!==void 0?B.open(R,V,e):null};
_.L$=function(B){B=B===void 0?document:B;var R,V;B=(V=(R=B).querySelector)==null?void 0:V.call(R,"script[nonce]");return B==null?"":B.nonce||B.getAttribute("nonce")||""};
_.K$=function(B){var R=bfo();B=R?R.createScript(B):B;return new _.vB(B)};
Ia=function(B){if(B instanceof _.vB)return B.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
MzA=function(B){var R=_.L$(B.ownerDocument);R&&B.setAttribute("nonce",R)};
_.E8=function(B,R){B.textContent=Ia(R);MzA(B)};
_.Qm=function(B,R){B.src=_.hR(R);MzA(B)};
_.qV=function(B,R){if(B.nodeType===1&&/^(script|style)$/i.test(B.tagName))throw Error("da");B.innerHTML=dc(R)};
_.cB=function(B,R,V,e){if(B.length===0)throw Error("da");B=B.map(function(Y){if(Y instanceof kXd)Y=Y.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return Y});
var X=V.toLowerCase();if(B.every(function(Y){return X.indexOf(Y)!==0}))throw Error("ea`"+V);
R.setAttribute(V,e)};
_.AR=function(B,R,V){if(R instanceof p$)B.href=_.hR(R).toString(),B.rel=V;else{if(DSY.indexOf(V)===-1)throw Error("fa`"+V);R=_.kq(R);R!==void 0&&(B.href=R,B.rel=V)}};
fYp=function(B){return"function"==typeof _.iD&&B instanceof _.iD};
_.lYp=function(B){if(fYp(B))return B.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.s8=function(B,R){R=_.kq(R);R!==void 0&&(B.href=R)};
F5=function(B,R){B&&(R=B.indexOf(R),0<=R&&B.splice(R,1))};
mL=function(B){return typeof B==="function"};
zkq=function(B){return B instanceof $q||B&&"closed"in B&&mL(B.remove)&&mL(B.add)&&mL(B.unsubscribe)};
C$=function(){};
PB=function(B){aYo(function(){throw B;})};
n$=function(B){return B};
uD=function(){return dSZ(_.HB.apply(0,arguments))};
dSZ=function(B){return B.length===0?n$:B.length===1?B[0]:function(R){return B.reduce(function(V,e){return e(V)},R)}};
wyp=function(B){var R;return(R=B!=null?B:void 0)!=null?R:Promise};
Tqd=function(B,R){return new O8(function(V){var e=0;return R.schedule(function(){e===B.length?V.complete():(V.next(B[e++]),V.closed||this.schedule())})})};
xSq=function(B,R){if(!B)throw Error("ga");return new O8(function(V){var e=new $q;e.add(R.schedule(function(){var X=B[Symbol.asyncIterator]();e.add(R.schedule(function(){var Y=this;X.next().then(function(t){t.done?V.complete():(V.next(t.value),Y.schedule())})}))}));
return e})};
Lld=function(B,R,V){R=R.schedule(function(){try{V.call(this)}catch(e){B.error(e)}},0);
B.add(R)};
vvA=function(B,R){return new O8(function(V){var e;V.add(R.schedule(function(){e=B[ob]();Lld(V,R,function(){var X=e.next(),Y=X.value;X.done?V.complete():(V.next(Y),this.schedule())})}));
return function(){var X;return mL((X=e)==null?void 0:X.return)&&e.return()}})};
KlA=function(B,R){return new O8(function(V){var e=new $q;e.add(R.schedule(function(){var X=B[BR]();e.add(X.subscribe({next:function(Y){e.add(R.schedule(function(){return V.next(Y)}))},
error:function(Y){e.add(R.schedule(function(){return V.error(Y)}))},
complete:function(){e.add(R.schedule(function(){return V.complete()}))}}))}));
return e})};
IYA=function(B,R){return new O8(function(V){return R.schedule(function(){return B.then(function(e){V.add(R.schedule(function(){V.next(e);V.add(R.schedule(function(){return V.complete()}))}))},function(e){V.add(R.schedule(function(){return V.error(e)}))})})})};
Ev5=function(B){return new TypeError("ha`"+(B!==null&&typeof B==="object"?"an invalid object":"'"+B+"'"))};
qYI=function(B,R){if(B!=null){if(mL(B[BR]))return KlA(B,R);if(QmN(B))return Tqd(B,R);if(mL(B==null?void 0:B.then))return IYA(B,R);if(Symbol.asyncIterator&&mL(B==null?void 0:B[Symbol.asyncIterator]))return xSq(B,R);if(mL(B==null?void 0:B[ob]))return vvA(B,R)}throw Ev5(B);};
VJ=function(B,R){return R?qYI(B,R):Rb(B)};
Rb=function(B){if(B instanceof O8)return B;if(B!=null){if(mL(B[BR]))return cDS(B);if(QmN(B))return AD5(B);if(mL(B==null?void 0:B.then))return if5(B);if(Symbol.asyncIterator&&mL(B==null?void 0:B[Symbol.asyncIterator]))return smo(B);if(mL(B==null?void 0:B[ob]))return Flo(B)}throw Ev5(B);};
cDS=function(B){return new O8(function(R){var V=B[BR]();if(mL(V.subscribe))return V.subscribe(R);throw new TypeError("ia");})};
AD5=function(B){return new O8(function(R){for(var V=0;V<B.length&&!R.closed;V++)R.next(B[V]);R.complete()})};
if5=function(B){return new O8(function(R){B.then(function(V){R.closed||(R.next(V),R.complete())},function(V){return R.error(V)}).then(null,PB)})};
Flo=function(B){return new O8(function(R){for(var V=B[ob]();!R.closed;){var e=V.next(),X=e.value;e.done?R.complete():R.next(X)}return function(){return mL(V==null?void 0:V.return)&&V.return()}})};
smo=function(B){return new O8(function(R){rDd(B,R).catch(function(V){return R.error(V)})})};
rDd=function(B,R){var V,e,X,Y,t,b;return _.W(function(J){switch(J.nextAddress){case 1:_.en(J,2,3);var G=B[Symbol.asyncIterator];Y=G!==void 0?G.call(B):new gvS(_.h(B));case 5:return _.U(J,Y.next(),8);case 8:e=J.yieldResult;if(e.done){J.jumpTo(3);break}t=e.value;R.next(t);J.jumpTo(5);break;case 3:_.pr(J);_.Yb(J,9);if(!e||e.done||!(X=Y.return)){J.jumpTo(9);break}return _.U(J,X.call(Y),9);case 9:_.pr(J,0,0,1);if(V)throw V.error;_.tq(J,10,1);break;case 10:_.tq(J,4);break;case 2:b=_.WR(J);V={error:b};J.jumpTo(3);
break;case 4:R.complete(),_.b3(J)}})};
Jq=function(B,R){return R?Tqd(B,R):AD5(B)};
ZfS=function(B){return mL(B[B.length-1])?B.pop():void 0};
jn=function(B){var R=B[B.length-1];return R&&mL(R.schedule)?B.pop():void 0};
U0=function(){var B=_.HB.apply(0,arguments),R=jn(B);return R?Tqd(B,R):Jq(B)};
NI=function(B){var R=mL(B)?B:function(){return B};
return new O8(function(V){return V.error(R())})};
G4=function(B){return function(R){if(mL(R==null?void 0:R.lift))return R.lift(function(V){try{return B(V,this)}catch(e){this.error(e)}});
throw new TypeError("ja");}};
Sn=function(){return G4(function(B,R){var V=null;B._refCount++;var e=new yJ(R,void 0,void 0,void 0,function(){if(!B||B._refCount<=0||0<--B._refCount)V=null;else{var X=B._connection,Y=V;V=null;!X||Y&&X!==Y||X.unsubscribe();R.unsubscribe()}});
B.subscribe(e);e.closed||(V=B.connect())})};
$S5=function(){var B=mSY;var R=R===void 0?0:R;return G4(function(V,e){e.add(B.schedule(function(){return V.subscribe(e)},R))})};
HR=function(B){return G4(function(R,V){var e=0;R.subscribe(new yJ(V,function(X){V.next(B.call(void 0,X,e++))}))})};
PI5=function(B){return HR(function(R){return CId(R)?B.apply(null,_.MI(R)):B(R)})};
BcK=function(B){if(B.length===1){var R=B[0];if(nvd(R))return{args:R,keys:null};if(R&&typeof R==="object"&&ux5(R)===OfZ)return B=oqK(R),{args:B.map(function(V){return R[V]}),
keys:B}}return{args:B,keys:null}};
DX=function(){var B=_.HB.apply(0,arguments),R=jn(B),V=ZfS(B);B=BcK(B);var e=B.args,X=B.keys;if(e.length===0)return VJ([],R);R=new O8(RJ5(e,R,X?function(Y){for(var t={},b=0;b<Y.length;b++)t[X[b]]=Y[b];return t}:n$));
return V?R.pipe(PI5(V)):R};
RJ5=function(B,R,V){V=V===void 0?n$:V;return function(e){V4Y(R,function(){for(var X=B.length,Y=Array(X),t=X,b=B.map(function(){return!1}),J=!0,G={i$jscomp$260:0};G.i$jscomp$260<X;G={i$jscomp$260:G.i$jscomp$260},G.i$jscomp$260++)V4Y(R,function(y){return function(){VJ(B[y.i$jscomp$260],R).subscribe(new fr(e,function(S){Y[y.i$jscomp$260]=S;
J&&(b[y.i$jscomp$260]=!0,J=!b.every(n$));J||e.next(V(Y.slice()))},function(){return--t===0}))}}(G),e)},e)}};
V4Y=function(B,R,V){B?V.add(B.schedule(R)):R()};
eJp=function(B,R,V,e){var X=[],Y=0,t=0,b=!1,J=function(G){Y++;Rb(V(G,t++)).subscribe(new yJ(R,function(y){R.next(y)},void 0,function(){Y--;
for(var y={};X.length&&Y<e;y={bufferedValue:void 0})y.bufferedValue=X.shift(),J(y.bufferedValue);!b||X.length||Y||R.complete()}))};
B.subscribe(new yJ(R,function(G){return Y<e?J(G):X.push(G)},void 0,function(){b=!0;
!b||X.length||Y||R.complete()}));
return function(){X=null}};
l3=function(B,R){var V=V===void 0?Infinity:V;if(mL(R))return l3(function(e,X){return HR(function(Y,t){return R(e,Y,X,t)})(Rb(B(e,X)))},V);
typeof R==="number"&&(V=R);return G4(function(e,X){return eJp(e,X,B,V)})};
XBS=function(B){B=B===void 0?Infinity:B;return l3(n$,B)};
pBo=function(){var B=_.HB.apply(0,arguments);return XBS(1)(Jq(B,jn(B)))};
z4=function(B){return new O8(function(R){Rb(B()).subscribe(R)})};
ab=function(B,R,V){if(mL(V)){var e=V;V=void 0}if(e)return ab(B,R,V).pipe(PI5(e));e=_.h(mL(B.addEventListener)&&mL(B.removeEventListener)?Y8d.map(function(t){return function(b){return B[t](R,b,V)}}):mL(B.addListener)&&mL(B.removeListener)?hJZ.map(t4N(B,R)):mL(B.on)&&mL(B.off)?WLx.map(t4N(B,R)):[]);
var X=e.next().value,Y=e.next().value;return!X&&QmN(B)?l3(function(t){return ab(t,R,V)})(Jq(B)):new O8(function(t){if(!X)throw new TypeError("ka");
var b=function(){var J=_.HB.apply(0,arguments);return t.next(1<J.length?J:J[0])};
X(b);return function(){return Y(b)}})};
t4N=function(B,R){return function(V){return function(e){return B[V](R,e)}}};
wP=function(){var B=_.HB.apply(0,arguments),R=jn(B);var V=typeof B[B.length-1]==="number"?B.pop():Infinity;return B.length?B.length===1?Rb(B[0]):XBS(V)(Jq(B,R)):dP};
JRK=function(B){return B.length===1&&b$5(B[0])?B[0]:B};
jaK=function(){var B=JRK(_.HB.apply(0,arguments));return G4(function(R,V){var e=[R].concat(_.MI(B)),X=function(){if(!V.closed)if(e.length>0){try{var Y=Rb(e.shift())}catch(b){X();return}var t=new yJ(V,void 0,C$,C$);V.add(Y.subscribe(t));t.add(X)}else V.complete()};
X()})};
T4=function(B){return G4(function(R,V){var e=0;R.subscribe(new yJ(V,function(X){return B.call(void 0,X,e++)&&V.next(X)}))})};
NcN=function(){var B=_.HB.apply(0,arguments);B=JRK(B);return B.length===1?Rb(B[0]):new O8(UV5(B))};
UV5=function(B){return function(R){for(var V=[],e={i$jscomp$263:0};V&&!R.closed&&e.i$jscomp$263<B.length;e={i$jscomp$263:e.i$jscomp$263},e.i$jscomp$263++)V.push(Rb(B[e.i$jscomp$263]).subscribe(new yJ(R,function(X){return function(Y){if(V){for(var t=0;t<V.length;t++)t!==X.i$jscomp$263&&V[t].unsubscribe();V=null}R.next(Y)}}(e))))}};
Gmu=function(){var B=_.HB.apply(0,arguments),R=ZfS(B),V=JRK(B);return V.length?new O8(function(e){var X=V.map(function(){return[]}),Y=V.map(function(){return!1});
e.add(function(){X=Y=null});
for(var t={sourceIndex$jscomp$1:0};!e.closed&&t.sourceIndex$jscomp$1<V.length;t={sourceIndex$jscomp$1:t.sourceIndex$jscomp$1},t.sourceIndex$jscomp$1++)Rb(V[t.sourceIndex$jscomp$1]).subscribe(new yJ(e,function(b){return function(J){X[b.sourceIndex$jscomp$1].push(J);X.every(function(G){return G.length})&&(J=X.map(function(G){return G.shift()}),e.next(R?R.apply(null,_.MI(J)):J),X.some(function(G,y){return!G.length&&Y[y]})&&e.complete())}}(t),void 0,function(b){return function(){Y[b.sourceIndex$jscomp$1]=
!0;
!X[b.sourceIndex$jscomp$1].length&&e.complete()}}(t)));
return function(){X=Y=null}}):dP};
yRK=function(B){var R,V,e;return!!B&&typeof B.active==="boolean"&&typeof((R=B.clock)==null?void 0:R.now)==="function"&&((V=B.clock)==null?void 0:V.timeline)!==void 0&&!((e=B.lastMeasurement)==null||!e.timestamp)&&typeof B.equivalentTo==="function"&&typeof B.extrapolateToNow==="function"&&typeof B.extrapolateToTime==="function"&&typeof B.map==="function"&&typeof B.joinWith==="function"};
S8Y=function(B){function R(V){return typeof V==="boolean"||typeof V==="string"||typeof V==="number"||V===void 0||V===null}
return R(B)?!0:Array.isArray(B)?B.every(R):typeof B==="object"?Object.keys(B).every(function(V){return typeof V==="string"})&&Object.values(B).every(function(V){return Array.isArray(V)?V.every(R):R(V)}):!1};
H$p=function(B){if(S8Y(B))return B;if(yRK(B))return{lastMeasurement:{value:H$p(B.lastMeasurement.value),timestamp:xb(B.lastMeasurement.timestamp,new Lr(0,B.lastMeasurement.timestamp.timeline))},active:B.active};try{return JSON.parse(JSON.stringify(B))}catch(R){}return String(B)};
vR=function(B,R){return function(V){return new O8(function(e){return V.subscribe(function(X){B.timeExecution(R,function(){e.next(X)})()},function(X){B.timeExecution(R,function(){e.error(X)})()},function(){B.timeExecution(R,function(){e.complete()})()})})}};
M4I=function(B,R){var V=!1;return new O8(function(e){var X=B.setTimeout(function(){V=!0;e.next(!0);e.complete()},R);
return function(){V||B.clearTimeout(X)}})};
kmu=function(B){B=B.global;if(B.fetchLater)return B.fetchLater.bind(B)};
Kr=function(B){return G4(function(R,V){var e=null,X=!1,Y;e=R.subscribe(new yJ(V,void 0,function(t){Y=Rb(B(t,Kr(B)(R)));e?(e.unsubscribe(),e=null,Y.subscribe(V)):X=!0}));
X&&(e.unsubscribe(),e=null,Y.subscribe(V))})};
DVY=function(B,R,V){return function(e,X){var Y=V,t=R,b=0;e.subscribe(new yJ(X,function(J){var G=b++;t=Y?B(t,J,G):(Y=!0,J);X.next(t)},void 0,void 0))}};
fMK=function(B){B=B===void 0?null:B;return G4(function(R,V){var e=!1;R.subscribe(new yJ(V,function(X){e=!0;V.next(X)},void 0,function(){e||V.next(B);
V.complete()}))})};
Ib=function(){return G4(function(B,R){B.subscribe(new yJ(R,C$))})};
E0=function(B){return G4(function(R,V){R.subscribe(new yJ(V,function(){return V.next(B)}))})};
QJ=function(B){return B<=0?function(){return dP}:G4(function(R,V){var e=0;
R.subscribe(new yJ(V,function(X){++e<=B&&(V.next(X),B<=e&&V.complete())}))})};
qI=function(B){var R=R===void 0?n$:R;var V;B=(V=B)!=null?V:lMq;return G4(function(e,X){var Y,t=!0;e.subscribe(new yJ(X,function(b){var J=R(b);if(t||!B(Y,J))t=!1,Y=J,X.next(b)}))})};
lMq=function(B,R){return B===R};
aMq=function(B){B=B===void 0?zJ_:B;return G4(function(R,V){var e=!1;R.subscribe(new yJ(V,function(X){e=!0;V.next(X)},void 0,function(){return e?V.complete():V.error(B())}))})};
zJ_=function(){return new dVI};
cR=function(){var B=_.HB.apply(0,arguments);return function(R){return pBo(R,U0.apply(null,_.MI(B)))}};
wBo=function(B){return G4(function(R,V){var e=0;R.subscribe(new yJ(V,function(X){B.call(void 0,X,e++,R)||(V.next(!1),V.complete())},void 0,function(){V.next(!0);
V.complete()}))})};
TcA=function(){return G4(function(B,R){var V=[];B.subscribe(new yJ(R,function(e){V.push(e);1<V.length&&V.shift()},void 0,function(){for(var e=_.h(V),X=e.next();!X.done;X=e.next())R.next(X.value);
R.complete()},function(){V=null}))})};
xVA=function(B,R){var V=arguments.length>=2;return function(e){return e.pipe(B?T4(function(X,Y){return B(X,Y,e)}):n$,TcA(),V?fMK(R):aMq(function(){return new dVI}))}};
i3=function(B){var R=mL(B)?B:function(){return B};
return mL()?G4(function(V,e){var X=R();(void 0)(X).subscribe(e).add(V.subscribe(X))}):function(V){var e=new Aq(V,R);
mL(V==null?void 0:V.lift)&&(e.lift=V.lift);e.source=V;e.subjectFactory=R;return e}};
Ff=function(B){var R=new s0(B,void 0,void 0);return function(V){return i3(function(){return R})(V)}};
rP=function(B,R){return G4(DVY(B,R,arguments.length>=2))};
gP=function(){var B=_.HB.apply(0,arguments),R=jn(B);return G4(function(V,e){(R?pBo(B,V,R):pBo(B,V)).subscribe(e)})};
ZX=function(B){return G4(function(R,V){var e=null,X=0,Y=!1;R.subscribe(new yJ(V,function(t){var b;(b=e)==null||b.unsubscribe();b=X++;Rb(B(t,b)).subscribe(e=new yJ(V,function(J){return V.next(J)},void 0,function(){e=null;
Y&&!e&&V.complete()}))},void 0,function(){(Y=!0,!e)&&V.complete()}))})};
mC=function(B,R){R=R===void 0?!1:R;return G4(function(V,e){var X=0;V.subscribe(new yJ(e,function(Y){var t=B(Y,X++);(t||R)&&e.next(Y);!t&&e.complete()}))})};
Cr=function(B,R,V){var e=mL(B)||R||V?{next:B,error:R,complete:V}:B;return e?G4(function(X,Y){X.subscribe(new yJ(Y,function(t){var b;(b=e.next)==null||b.call(e,t);Y.next(t)},function(t){var b;
(b=e.error)==null||b.call(e,t);Y.error(t)},function(){var t;
(t=e.complete)==null||t.call(e);Y.complete()}))}):n$};
LLd=function(){var B=_.HB.apply(0,arguments),R=ZfS(B);return G4(function(V,e){for(var X=B.length,Y=Array(X),t=B.map(function(){return!1}),b=!1,J={i$jscomp$273:0};J.i$jscomp$273<X;J={i$jscomp$273:J.i$jscomp$273},J.i$jscomp$273++)Rb(B[J.i$jscomp$273]).subscribe(new yJ(e,function(G){return function(y){Y[G.i$jscomp$273]=y;
b||t[G.i$jscomp$273]||(t[G.i$jscomp$273]=!0,(b=t.every(n$))&&(t=null))}}(J),void 0,C$));
V.subscribe(new yJ(e,function(G){b&&(G=[G].concat(_.MI(Y)),e.next(R?R.apply(null,_.MI(G)):G))}))})};
vqZ=function(B){var R=[],V=0,e;for(e in B)R[V++]=e;return R};
KLd=function(B,R){for(var V in B)if(B[V]==R)return!0;return!1};
IMd=function(B,R,V){for(var e in B)if(R.call(V,B[e],e,B))return e};
Eqp=function(B){if(!B||typeof B!=="object")return B;if(typeof B.clone==="function")return B.clone();if(typeof Map!=="undefined"&&B instanceof Map)return new Map(B);if(typeof Set!=="undefined"&&B instanceof Set)return new Set(B);if(B instanceof Date)return new Date(B.getTime());var R=Array.isArray(B)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(B)||B instanceof DataView?{}:new B.constructor(B.length),V;for(V in B)R[V]=Eqp(B[V]);return R};
Qao=function(B){var R=arguments.length;if(R==1&&Array.isArray(arguments[0]))return Qao.apply(null,arguments[0]);if(R%2)throw Error("oa");for(var V={},e=0;e<R;e+=2)V[arguments[e]]=arguments[e+1];return V};
q85=function(B){var R=arguments.length;if(R==1&&Array.isArray(arguments[0]))return q85.apply(null,arguments[0]);for(var V={},e=0;e<R;e++)V[arguments[e]]=!0;return V};
_.PR=function(B){return new kXd(B[0].toLowerCase())};
cR_=function(B){try{return new URL(B,window.document.baseURI)}catch(R){return new URL("about:invalid")}};
ARN=function(B,R){var V=R.createRange();V.selectNode(R.body);B=aa(B);return V.createContextualFragment(dc(B))};
i$I=function(B){B=B.nodeName;return typeof B==="string"?B:"FORM"};
saA=function(B){B=B.nodeType;return B===1||typeof B!=="number"};
nr=function(B,R,V){B.setAttribute(R,V)};
FLq=function(B){return B.parts.map(function(R){var V=R.descriptor;return""+R.url+(V?" "+V:"")}).join(" , ")};
_.u3=function(B){var R=_.HB.apply(1,arguments);if(R.length===0)return _.Yq(B[0]);for(var V=B[0],e=0;e<R.length;e++)V+=encodeURIComponent(R[e])+B[e+1];return _.Yq(V)};
_.O0=function(B,R){B=_.hR(B).toString();var V=B.split(/[?#]/),e=/[?]/.test(B)?"?"+V[1]:"";return rRA(V[0],e,/[#]/.test(B)?"#"+(e?V[2]:V[1]):"",R)};
rRA=function(B,R,V,e){function X(t,b){t!=null&&(Array.isArray(t)?t.forEach(function(J){return X(J,b)}):(R+=Y+encodeURIComponent(b)+"="+encodeURIComponent(t),Y="&"))}
var Y=R.length?"&":"?";e.constructor===Object&&(e=Object.entries(e));Array.isArray(e)?e.forEach(function(t){return X(t[1],t[0])}):e.forEach(X);
return _.Yq(B+R+V)};
oJ=function(B,R,V,e){this.top=B;this.right=R;this.bottom=V;this.left=e};
gqd=function(B){B=B.global;if(B.PendingGetBeacon)return B.PendingGetBeacon};
RJ=function(B){return function(R){return R.pipe(Z$A(B,i3(new BH)))}};
Vc=function(B){return function(R){return R.pipe(Z$A(B,Ff(1)))}};
Z$A=function(B,R){function V(e){return new O8(function(X){return e.subscribe(function(Y){eD(B,function(){return void X.next(Y)},3)},function(Y){eD(B,function(){return void X.error(Y)},3)},function(){eD(B,function(){return void X.complete()},3)})})}
return uD(V,$S5(),R,Sn(),V)};
CDx=function(B){var R=mVI(B);return R===null?new XD(null):R.pipe(HR(function(V){V=V.serialize();if($VN)V=_.R5.btoa(V);else{for(var e=[],X=0,Y=0;Y<V.length;Y++){var t=V.charCodeAt(Y);t>255&&(e[X++]=t&255,t>>=8);e[X++]=t}V=_.O4(e)}return V}),QJ(1),Vc(B.queue))};
PDY=function(B){var R=R===void 0?{}:R;if(typeof Event==="function")return new Event(B,R);if(typeof document!=="undefined"){var V=document.createEvent("CustomEvent");V.initCustomEvent(B,R.bubbles||!1,R.cancelable||!1,R.detail);return V}throw Error();};
nqN=function(B){return typeof B==="string"?document.getElementById(B):B};
O$Y=function(B){var R=!1;R=R===void 0?!1:R;if(B.tagName==="IMG"){if(B.complete&&(!B.naturalWidth||!B.naturalHeight))return!0;var V;if(R&&((V=B.style)==null?void 0:V.display)==="none")return!0}var e,X;return u5Z.test((e=B.getAttribute("width"))!=null?e:"")&&u5Z.test((X=B.getAttribute("height"))!=null?X:"")};
obo=function(B,R){if(B.tagName==="IMG")return B.naturalWidth&&B.naturalHeight?!0:!1;try{if(B.readyState)var V=B.readyState;else{var e,X;V=(e=B.contentWindow)==null?void 0:(X=e.document)==null?void 0:X.readyState}return V==="complete"}catch(Y){return R===void 0?!1:R}};
BPI=function(B){B||(B=function(R,V,e){R.addEventListener(V,e)});
return B};
XRI=function(B,R){var V=ROK();V=V===void 0?new VnY:V;if(B=nqN(B)){var e=BPI(e);for(var X=!1,Y=function(L){X||(X=!0,R(L))},t,b=2,J=0;J<eOx.length;++J)if(eOx[J]===B.tagName){b=3;
t=[B];break}t||(t=B.querySelectorAll(eOx.join(",")));var G=0,y=0,S=!0,M=B=!1;J={};for(var f=0;f<t.length;J={isImg:void 0},f++){var z=t[f];if(!O$Y(z))if(J.isImg=z.tagName==="IMG",obo(z,V.crossDomainLoadedDefault))B=!0,J.isImg&&(S=!0);else{G++;var T=function(L){return function(Q){G--;!G&&S&&Y(b);L.isImg&&(Q=Q&&Q.type==="error",y--,Q||(S=!0),!y&&M&&S&&Y(b))}}(J);
e(z,"load",T);J.isImg&&(y++,e(z,"error",T))}}y===0&&(S=!0);t=null;t=_.R5.document.readyState==="complete";if(G===0&&!B&&t)b=5;else if(G||!B){e(_.R5,"load",function(){!V.pendingImagesBlockLoad||!y&&S?Y(4):M=!0});
return}Y(b)}};
pRZ=function(B,R,V){if(B)for(var e=0;B!=null&&e<500&&!V(B);++e)B=R(B)};
Y0q=function(B,R){pRZ(B,function(V){try{return V===V.parent?null:V.parent}catch(e){}return null},R)};
hOZ=function(B,R){if(B.tagName=="IFRAME")R(B);else{B=B.querySelectorAll("IFRAME");for(var V=0;V<B.length&&!R(B[V]);++V);}};
tnx=function(B){return(B=B.ownerDocument)&&(B.parentWindow||B.defaultView)||null};
WCK=function(B,R,V){try{var e=JSON.parse(V.data)}catch(t){}if(typeof e==="object"&&e&&e.type==="creativeLoad"){var X=tnx(B);if(V.source&&X){var Y;Y0q(V.source,function(t){try{if(t.parent===X)return Y=t,!0}catch(b){}});
Y&&hOZ(B,function(t){if(t.contentWindow===Y)return R(e),!0})}}};
brN=function(B){return typeof B==="string"?document.getElementById(B):B};
NPd=function(){var B={};return B[0]=_.u3(Jqd,"current"),B[1]=_.u3(jbd),B[2]=_.u3(UId),B};
px=function(B,R){return B.left===R.left&&B.top===R.top&&B.width===R.width&&B.height===R.height};
G4I=function(B,R){return{left:Math.max(B.left,R.left),top:Math.max(B.top,R.top),width:Math.max(0,Math.min(B.left+B.width,R.left+R.width)-Math.max(B.left,R.left)),height:Math.max(0,Math.min(B.top+B.height,R.top+R.height)-Math.max(B.top,R.top))}};
yqK=function(B,R){return{left:Math.round(B.left+R.x),top:Math.round(B.top+R.y),width:B.width,height:B.height}};
S0S=function(B,R,V){if(B&&R!==null&&R!=R.top){if(!R.top)return new _.Yl(-12245933,-12245933);R=R.top}try{return(V===void 0?0:V)?(new _.Yl(R.innerWidth,R.innerHeight)).round():_.hF(R).round()}catch(e){return new _.Yl(-12245933,-12245933)}};
Hru=function(B,R,V){try{if(B){if(!R.top)return new oJ(-12245933,-12245933,-12245933,-12245933);R=R.top}var e=S0S(B,R,V),X=e.height,Y=e.width;if(Y===-12245933)return new oJ(Y,Y,Y,Y);var t=tF(WH(R.document)),b=t.x,J=t.y;return new oJ(J,b+Y,J+X,b)}catch(G){return new oJ(-12245933,-12245933,-12245933,-12245933)}};
Mnp=function(B){var R;return(R=B.google_tag_data)!=null?R:B.google_tag_data={}};
k4d=function(B){var R,V;return typeof((R=B.navigator)==null?void 0:(V=R.userAgentData)==null?void 0:V.getHighEntropyValues)==="function"};
fXd=function(B){if(!k4d(B))return null;var R=Mnp(B);if(R.uach_promise)return R.uach_promise;B=B.navigator.userAgentData.getHighEntropyValues(DIK).then(function(V){R.uach!=null||(R.uach=V);return V});
return R.uach_promise=B};
Ebd=function(B){var R;return lXx(zOS(aX5(dIo(wRN(TPq(xId(LCS(vbA(new KCK,B.architecture||""),B.bitness||""),B.mobile||!1),B.model||""),B.platform||""),B.platformVersion||""),B.uaFullVersion||""),((R=B.fullVersionList)==null?void 0:R.map(function(V){var e=new IXK;e=_.bg(e,1,V.brand);return _.bg(e,2,V.version)}))||[]),B.wow64||!1)};
QbS=function(B){var R,V;return(V=(R=fXd(B))==null?void 0:R.then(function(e){return Ebd(e)}))!=null?V:null};
q0_=function(B,R){return new O8(function(V){var e=!1,X=Array(R.length);X.fill(void 0);var Y=new Set,t=new Set,b=function(S,M){B.running?(X[M]=S,Y.add(M),e||(e=!0,eD(B,function(){e=!1;V.next(_.OS(X))},1))):V.error(new JF(M))},J=function(S,M){t.add(M);
Y.add(M);eD(B,function(){V.error(S)},1)},G=function(S){t.add(S);
eD(B,function(){t.size===R.length&&V.complete()},1)},y=R.map(function(S,M){return S.subscribe(function(f){return void b(f,M)},function(f){return void J(f,M)},function(){return void G(M)})});
return function(){y.forEach(function(S){return void S.unsubscribe()})}})};
AqK=function(B,R,V){function e(){if(R.debugChannel){var L=R.debugChannel,Q=L.next;var q={creativeId:R.debugNames.getName(V),requiredSignals:X,signals:Object.assign({},Y),hasPrematurelyCompleted:t,errorMessage:b,erroredSignalKey:J};q={specMajor:2,specMinor:0,specPatch:0,timestamp:xb(R.timeProvider.now(),new Lr(0,R.timeProvider.timeline)),instanceId:R.debugNames.getName(R.symbol),creativeState:q};Q.call(L,q)}}
for(var X=Object.keys(B),Y={},t=!1,b=null,J=null,G={},y=new Set,S=[],M=[],f=_.h(X),z=f.next(),T={};!z.done;T={key$jscomp$374:void 0},z=f.next())T.key$jscomp$374=z.value,z=B[T.key$jscomp$374],z instanceof XD?(G[T.key$jscomp$374]=z.value,y.add(T.key$jscomp$374),R.debugChannel&&(Y[String(T.key$jscomp$374)]=H$p(z.value))):(z=z.pipe(qI(function(L,Q){return yRK(L)||yRK(Q)?!1:L===Q}),HR(function(L){return function(Q){R.debugChannel&&(Y[String(L.key$jscomp$374)]=H$p(Q),e());
var q={};return q[L.key$jscomp$374]=Q,q}}(T)),Kr(function(L){return function(Q){if(Q instanceof JF)throw new cqo(String(L.key$jscomp$374));
throw Q;}}(T)),Cr(function(L){return function(){y.add(L.key$jscomp$374)}}(T),function(L){return function(Q){J=String(L.key$jscomp$374);
b=String(Q);e()}}(T),function(L){return function(){y.has(L.key$jscomp$374)||(t=!0,e())}}(T))),M.push(T.key$jscomp$374),S.push(z));
(B=Object.keys(Y).length>0)&&e();f=q0_(R.queue,S).pipe(Kr(function(L){if(L instanceof JF)throw new jD(String(M[L.inputObservableIndex]));throw L;}),HR(function(L){return Object.freeze(Object.assign.apply(Object,[{},
G].concat(_.MI(L))))}));
return(S=S.length>0)&&B?wP(U0(Object.freeze(G)),f):S?f:U0(Object.freeze(G))};
irq=function(B,R,V,e,X){return B.performanceMonitor.timeExecution.bind(B.performanceMonitor)(733,function(){var Y={};try{return R.pipe(Kr(function(t){e(Object.assign({},Y,{error:t}));return dP}),l3(function(t){try{var b=V(B,t)}catch(G){return e(Object.assign({},Y,{error:G instanceof Error?G:String(G)})),dP}var J={};
return AqK(b,B,t.symbol).pipe(Cr(function(G){J=G}),Ff(1),Sn()).pipe(X,Kr(function(G){e(Object.assign({},J,{error:G}));
return dP}),cR(void 0),HR(function(){return!0}))})).pipe(rP(function(t){return t+1},0),Kr(function(t){e(Object.assign({},Y,{error:t}));
return dP}))}catch(t){return e(Object.assign({},Y,{error:t})),dP}})()};
Uh=function(B){var R=new Map;if(typeof B!=="object"||B===null)return R;Object.values(B).forEach(function(V){V&&typeof V.extrapolateToNow==="function"&&(R.has(V.clock.timeline)||R.set(V.clock.timeline,V.clock.now()))});
return R};
sbx=function(B,R){return typeof B==="string"?encodeURIComponent(B):typeof B==="number"?String(B):Array.isArray(B)?B.map(function(V){return sbx(V,R)}).join(","):B instanceof Lr?B.toString():B&&typeof B.extrapolateToNow==="function"?sbx(B.extrapolateUsingTimestampMap(R).value,R):B===!0?"1":B===!1?"0":B===void 0||B===null?null:B instanceof FCY?rqd(B):[B.top,
B.left,B.top+B.height,B.left+B.width].join()};
N_=function(B,R){B=Object.entries(B).map(function(V){var e=_.h(V);V=e.next().value;e=e.next().value;e=sbx(e,R);return e===null?"":V+"="+e}).filter(function(V){return V!==""});
return B.length?B.join("&"):""};
mI_=function(B,R){var V=gbq,e=ZrI;R=R===void 0?.01:R;return function(X){R>0&&Math.random()<=R&&(B.global.HTMLFencedFrameElement&&B.global.fence&&typeof B.global.fence.reportEvent==="function"&&B.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(B.performanceMonitor.timedFunctionContext),errorEscapedQueryId:X.escapedQueryId}),V(Object.assign({},X,{payloadMapper:function(){return function(Y){try{return e(Object.assign({},Y))}catch(t){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Uh(X)).forEach(function(Y){B.beaconFactory.makeBeacon(Y).sendNow()}))}};
$IN=function(){var B=_.HB.apply(0,arguments);return function(R){var V=R.pipe(Ff(1),Sn());R=B.map(function(e){return V.pipe(e,cR(!0))});
return DX(R).pipe(QJ(1),Ib())}};
C3x=function(){var B=_.HB.apply(0,arguments);return function(R){var V=R.pipe(Ff(1),Sn());R=B.map(function(e){return V.pipe(e,cR(!0))});
return wP.apply(null,_.MI(R)).pipe(QJ(1),Ib())}};
P3K=function(B,R){return function(V){var e=V.pipe(Ff(1),Sn());V=e.pipe(B,cR(!0));e=e.pipe(uD(R,Ff(),Sn()),cR(!0));V=DX([V,e]);return NcN(V,e).pipe(QJ(1),Ib())}};
nbo=function(B,R,V){V(!0)};
ufN=function(B,R){return uD(ZX(function(V){var e=B(V),X=R(V),Y={};return e&&X&&Y?new O8(function(t){X(e,Y,function(b){t.next(Object.assign({},V,{canEmit:b}));t.complete()});
return function(){}}):Gg}),T4(function(V){return V.canEmit}))};
Oro=function(B){var R={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(V){return V.pipe(ZX(function(e){return new O8(function(X){function Y(){b.disconnect();J.unsubscribe()}
var t=B.MutationObserver;if(t&&e.ref!==void 0){var b=new t(function(G){X.next(G)});
b.observe(e.ref,R);var J=e.JSC$7267_released.subscribe(Y);return Y}})}))}};
olS=function(B){if(B.measurementDeferralState===3)return null;if(B.timeOnScreenReason!==void 0){var R=B.creativeFound===!1?"n":null;if(R!==null)return R}return B.geometricMeasurementErrors instanceof SD?"msf":B.contextValidationErrors instanceof HH?"c":B.contextVisibilityKnown===!1?"pv":B.geometricMeasurementErrors||B.contextValidationErrors?"x":null};
kl=function(B,R){return B.replace(BkS,function(V,e){try{var X=_.M_.get(R,e);if(X==null||X.toString()==null)return V;X=X.toString();if(X==""||!_.Wd(X==null?"":String(X)))return encodeURIComponent(X).replace(/%2C/g,",")}catch(Y){}return V})};
RCq=function(B,R){var V=Object.assign({},B),e=B.userAgentClientHints;V=(delete V.userAgentClientHints,V);V=B.payloadMapper(V);var X=N_(V,R);return _.DO(B.urlPrefixes,function(Y){var t="";typeof e==="string"&&(t="&"+N_({uach:e},R));var b={};return kl(Y,(b.VIEWABILITY=X,b))+t})};
gbq=function(B,R){var V=B.payloadMapper(B),e=N_(V,R);return e?_.DO(B.urlPrefixes,function(X){X=X.indexOf("?")>=0?X:X+"?";X="?&".indexOf(X.slice(-1))>=0?X:X+"&";return X+e}):B.urlPrefixes};
VDN=function(){return uD(T4(function(B){return B!==void 0}),HR(function(B){return B}))};
eCq=function(B){return uD(HR(function(){return!0}),gP(!1),Vc(B))};
XHS=function(B){return B.length<=0?dP:DX(B.map(function(R){var V=0;return R.pipe(HR(function(e){return{index:V++,value:e}}))})).pipe(T4(function(R){return R.every(function(V){return V.index===R[0].index})}),HR(function(R){return R.map(function(V){return V.value})}))};
pHx=function(B,R){B.currentState&&(B.previousState=B.currentState);B.currentState=R;B.previousState&&B.previousState.value?(R=Math.max(0,xb(R.timestamp,B.previousState.timestamp)),B.totalTime+=R,B.consecutiveTime+=R):B.consecutiveTime=0;return B};
YhY=function(){return uD(rP(pHx,{totalTime:0,consecutiveTime:0}),HR(function(B){return B.totalTime}))};
hCo=function(){return uD(rP(pHx,{totalTime:0,consecutiveTime:0}),HR(function(B){return B.consecutiveTime}))};
tDN=function(B,R){return function(V){return XHS(R.map(function(e){return V.pipe(B(e))}))}};
WON=function(){var B;return uD(Cr(function(R){return void(B=R.timestamp)}),hCo(),HR(function(R){return{timestamp:B,
value:Math.round(R)}}))};
bxI=function(B,R){return px(B.topWindowViewportExternalGeometry,R.topWindowViewportExternalGeometry)&&px(B.elementGeometry,R.elementGeometry)&&px(B.exposedViewportLocalGeometry,R.exposedViewportLocalGeometry)&&px(B.intersectionGeometry,R.intersectionGeometry)&&B.elementGeometrySourceName===R.elementGeometrySourceName&&B.measurementRequests===R.measurementRequests&&B.viewportGeometrySourceName===R.viewportGeometrySourceName&&B.viewportLocalAppOffset.x===R.viewportLocalAppOffset.x&&B.viewportLocalAppOffset.y===
R.viewportLocalAppOffset.y};
U_o=function(B,R){return function(V){return function(e){var X=e.pipe(i3(new BH),Sn());e=V.element.pipe(qI());X=X.pipe(HR(function(Y){return Y.value}));
return DX([e,X,R]).pipe(HR(function(Y){var t=_.h(Y);Y=t.next().value;var b=t.next().value;t=t.next().value;if(Y.ref===void 0)var J={top:0,left:0,width:0,height:0};else{J=Y.ref.getBoundingClientRect();var G=Y.ref,y=B.global,S=new _.fx(0,0),M=lg(_.zg(G));if(aJ(M,"parent")){do{if(M==y)var f=_.wk(G);else f=JFd(G),f=new _.fx(f.left,f.top);S.x+=f.x;S.y+=f.y}while(M&&M!=y&&M!=M.parent&&(G=M.frameElement)&&(M=M.parent))}J={top:S.y,left:S.x,width:J.width,height:J.height}}J=yqK(J,b.viewportLocalAppOffset);
y=G4I(J,b.exposedViewportLocalGeometry);S=B.timeProvider.now();M=Object;G=M.assign;if(t!==2||B.inCrossDomainIframe||y.width<=0||y.height<=0)var z=!1;else try{var T=B.document.elementFromPoint(y.left+y.width/2,y.top+y.height/2);z=T?!jJd(T,Y):!1}catch(L){z=!1}return{timestamp:S,value:G.call(M,{},b,{elementGeometrySourceName:"geo",intersectionGeometry:z?Tg.intersectionGeometry:y,elementGeometry:J})}}),RJ(B.queue))}}};
jJd=function(B,R,V){V=V===void 0?0:V;return B.ref===void 0||R.ref===void 0?!1:B.ref===R.ref||_.xl(R.ref,function(e){return e===B.ref})?!0:R.ref.ownerDocument&&R.ref.ownerDocument.defaultView&&R.ref.ownerDocument.defaultView===R.ref.ownerDocument.defaultView.top?!1:V<10&&R.ref.ownerDocument&&R.ref.ownerDocument.defaultView&&R.ref.ownerDocument.defaultView.frameElement?jJd(B,new Lx(R.ref.ownerDocument.defaultView.frameElement),V+1):!0};
yFd=function(B){return function(R){return R.pipe(B.ResizeObserver?NkI(B):GgN(B),Ff(1),Sn())}};
NkI=function(B){return function(R){return R.pipe(ZX(function(V){var e=B.ResizeObserver;if(!e||V.ref===void 0)return U0(Tg.elementGeometry);var X=(new O8(function(Y){function t(){V.ref!==void 0&&b.unobserve(V.ref);b.disconnect();J.unsubscribe()}
if(V.ref===void 0)return Y.complete(),function(){};
var b=new e(function(G){G.forEach(function(y){Y.next(y)})});
b.observe(V.ref);var J=V.JSC$7267_released.subscribe(t);return t})).pipe(vR(B.performanceMonitor,736),HR(function(Y){return Y.contentRect}));
return wP(U0(V.ref.getBoundingClientRect()),X)}),qI(px))}};
GgN=function(B){return function(R){var V=R.pipe(Oro(B)),e=B.onResize;V=wP(R.pipe(HR(function(){return PDY("resize")})),V,e);
return DX(R,V).pipe(vR(B.performanceMonitor,737),HR(function(X){X=_.h(X).next().value;return X.ref===void 0?void 0:X.ref.getBoundingClientRect()}),VDN(),qI(px))}};
MDu=function(B,R){var V=Shq(B,R).pipe(Ff(1),Sn());return function(e){return function(X){X=X.pipe(ZX(function(Y){return Y.element}),qI());
return DX([V,X]).pipe(ZX(function(Y){var t=_.h(Y);Y=t.next().value;t=t.next().value;return Hxx(B,Y.intersectionObserver,yFd(B),Y.observations,e,Y.flushRecords,t)}),RJ(B.queue))}}};
kg_=function(B){return HR(function(R){return R.value.viewportGeometrySourceName!=="nio"?R:Object.assign({},R,{value:Object.assign({},R.value,{exposedViewportLocalGeometry:vH(B,!0),topWindowViewportExternalGeometry:vH(B,!0)})})})};
D_S=function(B,R){return U0(R).pipe(B,HR(function(){return R}))};
Shq=function(B,R){return B.timeProvider.timeline!==fOd?NI(new SD(2)):B.MutationObserver?typeof IntersectionObserver==="undefined"?NI(new SD(0)):(new O8(function(V){var e=new BH,X=new Kx(e.next.bind(e),{threshold:[].concat(_.MI(R))});V.next({observations:e.pipe(vR(B.performanceMonitor,735)),intersectionObserver:X,flushRecords:function(Y){Y=X.takeRecords(Y);Y.length>0&&e.next(Y)}})})).pipe(QJ(1),Ff(1),Sn()):NI(new SD(1))};
lON=function(B){return qYI(B.sort(function(R,V){return R.time-V.time}),mSY)};
Hxx=function(B,R,V,e,X,Y,t){return new O8(function(b){function J(){z||(z=!0,t.ref!==void 0&&R.unobserve(X,t.ref),y.unsubscribe(),f.unsubscribe(),M.unsubscribe(),T.unsubscribe())}
if(t.ref!==void 0){zCS(R,X);R.observe(X,t.ref);var G=new IJ({timestamp:B.timeProvider.now(),value:Object.assign({},Tg,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),y=e.pipe(l3(function(L){return lON(L)}),T4(function(L){return L.target===t.ref}),HR(function(L){return{timestamp:new Lr(L.time,fOd),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:L.rootBounds||Eh,topWindowViewportExternalGeometry:L.rootBounds||vH(B,!0),measurementRequests:S,elementGeometrySourceName:"nio",intersectionGeometry:L.intersectionRect,elementGeometry:L.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:L.isIntersecting,isV2Visible:L.isVisible}}}),i3(G),Sn()).subscribe(b),S=new BH,M=S.subscribe(function(){Y(X);
b.next({timestamp:B.timeProvider.now(),value:G.value.value});t.ref!==void 0&&(R.unobserve(X,t.ref),R.observe(X,t.ref))}),f=D_S(V,t).subscribe(function(){S.next()}),z=!1,T=t.JSC$7267_released.subscribe(function(){return J()});
return J}})};
aOK=function(B,R){var V=B.getOnBackgrounded().pipe(HR(function(){return"b"}));
return NcN(R,V).pipe(QJ(1),Vc(B.queue))};
Qc=function(B){return function(R){var V;return R.pipe(Cr(function(e){return void(V=e.timestamp)}),HR(function(e){return e.value}),B,HR(function(e){return{timestamp:V,
value:e}}))}};
d_N=function(B){return B.intersectionGeometry.width*B.intersectionGeometry.height/(B.elementGeometry.width*B.elementGeometry.height)};
cH=function(B,R,V){V=V===void 0?function(e,X){return e===X}:V;
return B.timestamp.equals(R.timestamp)&&V(B.value,R.value)};
ig=function(B,R){return R.pipe(HR(function(V){return new AF(B.timeProvider,{timestamp:B.timeProvider.now(),value:V})}))};
wH5=function(B){return function(R){return R.pipe(LLd(B),HR(function(V){var e=_.h(V);V=e.next().value;e=e.next().value;var X=V.value;return{timestamp:V.timestamp,value:X>=1?!0:X<=0?!1:X>=e}}))}};
x_5=function(){return uD(T4(function(B,R){return R>0}),TkS,gP(-1),qI())};
LOq=function(B,R,V){return B?DX([R,V]).pipe(T4(function(e){var X=_.h(e);e=X.next().value;X=X.next().value;return e.timestamp.equals(X.timestamp)}),HR(function(e){var X=_.h(e);
e=X.next().value;X=X.next().value;return e.value>X.value?e:X})):R};
IOS=function(B){return function(R){var V=R.pipe(vlx),e=R.pipe(KOd);return B instanceof O8?B.pipe(ZX(function(X){return LOq(X,V,e)})):LOq(B.value,V,e)}};
glp=function(B,R,V,e){var X=e.geometryIsOccluded,Y=e.exposureThreshold,t=e.wasLargeAdAtRender,b=e.allowLargeAdThreshold,J=e.largeAdExposureThreshold,G=e.mayUseViewportShareExposure,y=e.hasMeasurementStarted;e=e.useIntersectionObserverV2;R=ElA(B,V,R);V=QJS(B,V);e=qhI(R,e);var S=cFd(B,X,G,R),M=S.pipe(HR(function(Vu){return Vu.value}),qI(),Vc(B),rP(function(Vu,n){return Math.max(Vu,n)},0)),f=S.pipe(HR(function(Vu){return Vu.value}),x_5(),Vc(B)),z=R.pipe(AFd,HR(function(Vu){return Vu.value}),QJ(2),qI(),
Vc(B));
t=ixx(B,R,t,b);var T=t.pipe(gP(!1),qI(),HR(function(Vu){return Vu?J:Y}));
b=S.pipe(wH5(T),qI(),Vc(B));var L=DX([b,R]).pipe(T4(function(Vu){var n=_.h(Vu);Vu=n.next().value;n=n.next().value;return Vu.timestamp.equals(n.timestamp)}),HR(function(Vu){var n=_.h(Vu);
Vu=n.next().value;n=n.next().value;return{visible:Vu.value,geometry:n.value.elementGeometry}}),rP(function(Vu,n){return!n.visible&&Vu.visible?Vu:n},{visible:!1,
geometry:Eh}),HR(function(Vu){return Vu.geometry}),gP(Eh),Vc(B),qI(px));
G=G instanceof O8?G.pipe(qI(),E0()):Gg;T=DX([G,T]).pipe(E0());var Q=R.pipe(T4(function(Vu){return Vu.value.viewportGeometrySourceName!=="ns"&&Vu.value.elementGeometrySourceName!=="ns"}),rP(function(Vu){return Vu+1},0),gP(0),Vc(B)),q=V.pipe(E0(!0),gP(!1),Vc(B));
q=DX([y,q]).pipe(HR(function(Vu){var n=_.h(Vu);Vu=n.next().value;n=n.next().value;return Vu&&!n}),Vc(B));
var m=R.pipe(sJp,qI()),g=m.pipe(HR(function(Vu){return Vu.value}),rP(function(Vu,n){return Math.max(Vu,n)},0),qI(),Vc(B));
B=m.pipe(HR(function(Vu){return Vu.value}),x_5(),Vc(B));
return{shouldResetExposureSignals:G,shouldResetViewabilitySignals:T,geometrySignals:{readyGeometryWithDefault:R,measurementStrategy:R.pipe(FOZ),creativePosition:L.pipe(qI(px)),visible:b.pipe(qI(cH)),timestampedExposure:S.pipe(qI(cH)),maximumExposure:M,minimumExposure:f,browserSize:R.pipe(rFZ,qI(_.Jh)),timestampedScreenShare:m,maxScreenShare:g,minScreenShare:B,geometricMeasurementErrors:V,measurementRequests:R.pipe(HR(function(Vu){return Vu.value.measurementRequests})),
isLargeAd:t,geometryIsOccluded:X,hasMeasurementStarted:y,geometryMeasurable:q,validMeasurementCount:Q,loadTimeExposure:z,v2VisibilityBitVector:e}}};
QJS=function(B,R){return R.pipe(T4(function(){return!1}),HR(function(V){return V}),Kr(function(V){return sh(new XD(V),B)}))};
ElA=function(B,R,V){return R.pipe(jaK(Gg),Vc(B)).pipe(qI(function(e,X){return cH(e,X,bxI)}),gP({timestamp:V.now(),
value:Tg}),Vc(B))};
cFd=function(B,R,V,e){V=e.pipe(IOS(V),Qc(HR(function(X){return Math.round(X*100)/100})),Vc(B));
return R instanceof XD?V:DX([V,R]).pipe(HR(function(X){var Y=_.h(X);X=Y.next().value;Y=Y.next().value;return{timestamp:Y.timestamp.maximum(X.timestamp),value:Y.value?0:X.value}}),qI(cH),Vc(B))};
ixx=function(B,R,V,e){R=[R.pipe(HR(function(X){return X.value.elementGeometry.width*X.value.elementGeometry.height>=242500}))];
V instanceof O8&&R.push(V.pipe(HR(function(X){return!!X})));
V=DX(R);return e?V.pipe(HR(function(X){return X.some(function(Y){return Y})}),gP(!1),qI(),Vc(B)):sh(new XD(!1),B)};
qhI=function(B,R){B=DX([B,R]).pipe(HR(function(X){var Y=_.h(X);X=Y.next().value;if(Y.next().value&&X.value.isIntersecting)return X.value.isV2Visible}),qI());
var V=B.pipe(HR(function(X){return X===void 0?!0:X}),rP(function(X,Y){return X||!Y},!1)),e=B.pipe(rP(function(X,Y){return Y===void 0?X:Y?!1:X!=null?X:!0},void 0),HR(function(X){return!!X}));
return DX([R,Gmu(B,V,e)]).pipe(HR(function(X){var Y=_.h(X);X=Y.next().value;var t=_.h(Y.next().value);Y=t.next().value;var b=t.next().value;t=t.next().value;var J=0;if(!X)return 0;if(Y===void 0)return 16;Y&&(J|=1);Y||(J|=2);b&&(J|=4);t&&(J|=8);return J}))};
CgZ=function(B,R,V,e,X){var Y=FD.timeThresholdMs;var t=t===void 0?new Zxu(R,e):t;return(new O8(function(b){var J=V.pipe(gP(void 0),ZX(function(){return m_A(X)})).pipe(HR(function(G){var y=G.value;
G=G.timestamp;var S=y.visible;y=y.consecutiveViewTime;var M=y>=Y;M||!S?rk(t):(G=Math.max(0,xb(R.now(),G)),$_N(t,Math.max(0,Y-y-G)));return M}),rP(function(G,y){return y||G},!1),qI()).subscribe(b);
return function(){t.dispose();J.unsubscribe()}})).pipe(mC(function(b){return!b},!0),Vc(B))};
m_A=function(B){return XHS([B,B.pipe(WON())]).pipe(HR(function(R){var V=_.h(R);R=V.next().value;V=V.next().value;return{timestamp:R.timestamp,value:{visible:R.value,consecutiveViewTime:V.value}}}),qI(function(R,V){return cH(R,V,function(e,X){return e.consecutiveViewTime===X.consecutiveViewTime&&e.visible===X.visible})}))};
Pgo=function(){return uD(hCo(),rP(function(B,R){return Math.max(B,R)},0),HR(function(B){return Math.round(B)}))};
nlK=function(B){return uD(wH5(U0(B)),Pgo())};
uDo=function(B,R){return R instanceof O8?R.pipe(ZX(function(V){return(V=V?15:null)?NI(new SD(V)):B})):(R=R.value?15:null)?NI(new SD(R)):B};
Ox_=function(B){var R=new SD(13);if(B.length<1)return{chain:dP,capturedErrors:dP};var V=new BH,e=B[0];return{chain:B.slice(1).reduce(function(X,Y){return X.pipe(Kr(function(t){V.next(t);return Y}))},e).pipe(Kr(function(X){V.next(X);
return NI(R)}),i3(new BH),Sn()),
capturedErrors:V}};
o0A=function(B,R){var V=B.pipe(i3(new BH),Sn());return ZX(function(e){return V.pipe(R(e))})};
RQq=function(B,R){if(B.inCrossDomainIframe)return NI(new SD(6));var V=new BH;return wP(U0({}),R,V).pipe(HR(function(){return{timestamp:B.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:BzA(B),topWindowViewportExternalGeometry:vH(B,!0),measurementRequests:V,viewportLocalAppOffset:{x:0,y:0}}}}),RJ(B.queue))};
BzA=function(B){var R=vH(B,!1);if(!B.inIframe||!gk(B.global.parent)||B.global.parent===B.global)return R;var V=new ZO(B.global.parent,B.debugChannel);V.beaconFactory=B.beaconFactory;V=BzA(V);B=B.global.frameElement.getBoundingClientRect();return G4I(yqK(G4I(V,B),{x:R.left-B.left,y:R.top-B.top}),R)};
VrI=function(B){if(B.prerendering)return 3;var R;return(R={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[B.visibilityState||B.webkitVisibilityState||B.mozVisibilityState||""])!=null?R:0};
eQu=function(B){return B.document.JSC$7278_onVisibilityChange.pipe(HR(function(R){return R==="visible"}),qI(),Vc(B.queue))};
Xn5=function(B,R,V){var e;return R.pipe(qI(),ZX(function(X){return V.pipe(HR(function(){if(!e){e=!0;try{X.next()}finally{e=!1}}return!0}))}),gP(!1),Vc(B.queue))};
pno=function(B){return uD(Qc(HR(function(R){return R>=1?!0:R<=0?!1:R>=B})),YhY(),HR(function(R){return Math.round(R)}))};
hQo=function(B,R,V,e,X){var Y=YJ_;if(Y.length>1)for(var t=0;t<Y.length-1;t++)if(Y[t]<Y[t+1])throw Error();t=X.pipe(gP(void 0),ZX(function(){return V.pipe(WON())}),qI(),Vc(B));
X=X.pipe(gP(void 0),ZX(function(){return V.pipe(Pgo())}),qI(),Vc(B));
return{totalMeasurementTime:e.pipe(gP(void 0),ZX(function(){return R.pipe(HR(function(b){return{timestamp:b.timestamp,value:!0}}),YhY())}),qI(),Vc(B)),
totalUnviewedTime:e.pipe(gP(void 0),ZX(function(){return R.pipe(HR(function(b){return{timestamp:b.timestamp,value:b.value===0}}),YhY())}),qI(),Vc(B)),
maxTimeOnScreen:e.pipe(gP(void 0),ZX(function(){return R.pipe(tDN(nlK,Y))}),qI(_.Jh),Vc(B)),
timeOnScreen:e.pipe(gP(void 0),ZX(function(){return R.pipe(tDN(pno,Y),HR(function(b){return b.map(function(J,G){return G>0?J-b[G-1]:J})}))}),qI(_.Jh),Vc(B)),
maxConsecutiveViewTime:X,consecutiveViewTime:t.pipe(qI(cH),Vc(B))}};
Wqo=function(B){var R=!0;R=R===void 0?!1:R;return uD(ZX(function(V){return tr5(B.document,V,R)}),Vc(B.queue))};
bdu=function(B,R,V){var e=V.pipe(HR(function(X){return{value:X,timestamp:B.timeProvider.now()}}),qI(cH));
return R instanceof O8?R.pipe(qI(),ZX(function(X){return X?sh(new XD({value:!1,timestamp:B.timeProvider.now()}),B.queue):e})):R.value===!1?e:new XD(!1)};
J4x=function(B,R,V,e,X,Y,t){var b=FD;R=R instanceof O8?R.pipe(gP(!1),qI()):R;var J=!B.isMobile();V=bdu(B,V,e);B=t.measurableCreative.pipe(eCq(B.queue));return Object.assign({},b,{geometryIsOccluded:V,wasLargeAdAtRender:X,allowLargeAdThreshold:J,mayUseViewportShareExposure:R,hasMeasurementStarted:B,useIntersectionObserverV2:Y})};
U2Y=function(B,R,V,e,X,Y){var t=1;Y=Y===void 0?!0:Y;t=t===void 0?.01:t;var b=b===void 0?B.timeProvider.intervalObservable(100).pipe(Vc(B.queue)):b;return B.performanceMonitor.timeExecution(916,function(){return jIu(B,R.pipe(RJ(B.queue)),V.pipe(RJ(B.queue)),e,X,Y,t,b)})()};
jIu=function(B,R,V,e,X,Y,t,b){var J=eQu(B).pipe(HR(function(y){return!y})),G=new Nzx(B,[new G$u(B,YJ_),
new y4d(B,b)]);b=$IN(SJd,Hdo);return irq(B,R,function(y,S){var M=sh(new XD(S.element),y.queue).pipe(Wqo(y),Vc(y.queue)),f={loadedElement:M,shouldMeasure:M.pipe(E0(!0)),measurableCreative:M.pipe(HR(function(Vu){var n=n===void 0?Symbol():n;return Object.freeze({symbol:n,element:sh(new XD(Vu),y.queue)})})),
creativeSearchResult:sh(new XD("mue"),y.queue)},z=new XD(!1),T=new XD(!1),L=new XD(17),Q=new XD(!1),q=new XD(!1),m=sh(mO,y.queue);z=G.buildGeometrySource(f,{inApp:z,useV2:!1,requestSource:sh(L,y.queue)}).geometrySource;f=J4x(y,Q,T,J,q,m,f);T=glp(y.queue,y.timeProvider,z,f);f=T.geometrySignals;Q=T.shouldResetViewabilitySignals;T=hQo(y.queue,f.timestampedExposure,f.visible,T.shouldResetExposureSignals,Q);Q=CgZ(y.queue,y.timeProvider,Q,f.measurementRequests,f.visible);q=V.pipe(T4(function(Vu){return Vu===
S.element.ref}),HR(function(){return"ur"}));
m=M4I(y.timeProvider,X).pipe(E0("t"));q=aOK(y,wP(q,m));m=Xn5(y,f.measurementRequests,q.pipe(T4(function(Vu){return Vu!==null})));
z=q.pipe(T4(function(Vu){return Vu!==null}),HR(function(){return VrI(y.global.document)===1}));
var g=MrY(y.document);return Object.assign({},{beaconFactory:new XD(y.beaconFactory),context:new XD(y),inferredPingId:new XD("lidar2"),timeOnScreenPingId:new XD("lidartos"),binaryContext:new XD(17),binaryVersion:new XD(e),requestSource:L,contextValidationErrors:new XD(y.validate()?null:new HH),contextVisibilityKnown:new XD(g),payloadMapper:new XD(ZrI),endOfSessionReason:q,timeOnScreenReason:q,requestMeasurementOnEndOfSession:m,hasImpressionFired:k$_,crossDomainIframeState:new XD(y.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:mO,inFetchLaterBeaconExperiment:mO,isTurtlex:mO,turtlexReportEventData:new XD(""),reportFencedFrameEvent:Gg,isViewableAttributionEnabled:mO,inViewableAttributionExperiment:new XD(0),fetchBeaconFactory:Gg,supportsPendingBeacon:mO,supportsFetchLater:mO,emit:new XD(nbo),beginToRenderEvent:new XD(Symbol()),activeViewUnmeasurableEvent:new XD(Symbol()),activeViewViewableEvent:new XD(Symbol()),creativeFound:k$_,immediateUrlPrefixes:new XD(S.immediateUrls),timeOnScreenUrlPrefixes:new XD(S.timeOnScreenUrls),
cpmavUrls:Gg,viewableRelayUrls:Gg,measurementDeferralState:new XD(2),urlSerializer:new XD(RCq),viewUrlSerializer:new XD(D2d),isCreativeLoaded:M.pipe(eCq(y.queue)),pageVisible:J.pipe(HR(function(Vu){return!Vu})),
eosPageVisible:z,timestampedExposureHistory:f.timestampedExposure.pipe(rP(function(Vu,n){Vu.push(n);return Vu},[]))},f,{viewable:ig(y,Q),
maxTimeOnScreen:ig(y,T.maxTimeOnScreen),timeOnScreen:ig(y,T.timeOnScreen),maxConsecutiveViewTime:ig(y,T.maxConsecutiveViewTime),consecutiveViewTime:T.consecutiveViewTime.pipe(HR(function(Vu){return new AF(y.timeProvider,Vu)})),
totalMeasurementTime:ig(y,T.totalMeasurementTime),totalUnviewedTime:ig(y,T.totalUnviewedTime),userAgentClientHints:CDx(y),clientOrderPingCounter:new XD(new FCY)})},mI_(B,t),C3x(Y?P3K(b,fvA):P3K(b,lvS),zQI))};
avd=function(B){return new RegExp("[^#]*[?&]"+B+"=([^&#]*)")};
d2p=function(B,R){return(B=R.exec(B))?B[1]:null};
wnd=function(B){var R=_.HB.apply(1,arguments).filter(Boolean).join("&");if(!R)return B;var V=B.match(/[?&]adurl=/);return V?B.slice(0,V.index+1)+R+"&"+B.slice(V.index+1):B+(B.indexOf("?")<0?"?":"&")+R};
$l=function(B,R){return R?"&"+B+"="+encodeURIComponent(R):""};
Tzx=function(){try{var B,R;return!!((B=window)==null?0:(R=B.top)==null?0:R.location.href)&&!1}catch(V){return!0}};
_.Cx=function(B){B&&typeof B.dispose=="function"&&B.dispose()};
_.PH=function(B){for(var R=0,V=arguments.length;R<V;++R){var e=arguments[R];_.R4(e)?_.PH.apply(null,e):_.Cx(e)}};
Lq5=function(){var B=x2S();B=B===void 0?"bevasrsg":B;return new Promise(function(R){var V=window===window.top?window:Tzx()?window:window.top,e=V[B],X;((X=e)==null?0:X.bevasrs)?R(new ug(e.bevasrs)):(e||(e={},e=(e.nqfbel=[],e),V[B]=e),e.nqfbel.push(function(Y){R(new ug(Y))}))})};
v0K=function(B){var R={c:B.m6,e:B.ieL,mc:B.pR0,me:B.rTq};B.sQ&&(R.co={c:B.sQ.pkl,a:B.sQ.g2q,s:B.sQ.e53});return R};
Kqx=function(B){var R,V,e={m6:B.c,ieL:B.e,pR0:(R=B.mc)!=null?R:!1,rTq:(V=B.me)!=null?V:!1};B.co&&(e.sQ={pkl:B.co.c,g2q:B.co.a,e53:B.co.s});return e};
Ivp=function(B){return function(){var R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,B(),2);R=V.yieldResult;return V.return({f:function(){return R.d5r()},
c:function(e){return R.uHY(e)},
m:function(e){return R.zJ(Kqx(e))},
mws:function(e){return R.qO(Kqx(e))}})})}};
E0p=function(B,R){var V=x2S();V=V===void 0?"bevasrsg":V;R={s:function(Y){var t;return B.snapshot(Object.assign({},Y.c&&{m6:Y.c},Y.s&&{xrO:Y.s},{ixE:(t=Y.p)!=null?t:!0}))},
e:function(Y){var t;return void((t=B.ede)==null?void 0:t.call(B,Y))},
c:function(Y,t){return B.hjO(Y,t)},
p:B.j3j,l:function(){return B.iDe()},
wpc:R?Ivp(R):void 0};var e=window===window.top?window:Tzx()?window:window.top,X=e[V];if(X){X.bevasrs=R;if(X.nqfbel!==void 0)for(V=_.h(X.nqfbel),e=V.next();!e.done;e=V.next())e=e.value,e(R);X.nqfbel=void 0}else X={},X=(X.bevasrs=R,X.nqfbel=void 0,X),e[V]=X};
qJd=function(B){var R=R===void 0?49:R;var V=[];_.Oh(B,QII,6,_.oI()).forEach(function(e){_.Bn(e,2)<=R&&V.push(_.Bn(e,1))});
return V};
c4q=function(B){var R=R===void 0?49:R;var V=[];_.Oh(B,QII,6,_.oI()).forEach(function(e){_.Bn(e,2)>R&&V.push(_.Bn(e,1))});
return V};
A4o=function(B){B.then(function(){},function(){})};
RI=function(B){return{fieldType:1,fieldName:B}};
VI=function(B){return{fieldType:2,fieldName:B}};
_.er=function(B){return{fieldType:3,fieldName:B}};
idZ=function(){function B(){X[0]=1732584193;X[1]=4023233417;X[2]=2562383102;X[3]=271733878;X[4]=3285377520;y=G=0}
function R(S){for(var M=t,f=0;f<64;f+=4)M[f/4]=S[f]<<24|S[f+1]<<16|S[f+2]<<8|S[f+3];for(f=16;f<80;f++)S=M[f-3]^M[f-8]^M[f-14]^M[f-16],M[f]=(S<<1|S>>>31)&4294967295;S=X[0];var z=X[1],T=X[2],L=X[3],Q=X[4];for(f=0;f<80;f++){if(f<40)if(f<20){var q=L^z&(T^L);var m=1518500249}else q=z^T^L,m=1859775393;else f<60?(q=z&T|L&(z|T),m=2400959708):(q=z^T^L,m=3395469782);q=((S<<5|S>>>27)&4294967295)+q+Q+m+M[f]&4294967295;Q=L;L=T;T=(z<<30|z>>>2)&4294967295;z=S;S=q}X[0]=X[0]+S&4294967295;X[1]=X[1]+z&4294967295;X[2]=
X[2]+T&4294967295;X[3]=X[3]+L&4294967295;X[4]=X[4]+Q&4294967295}
function V(S,M){if(typeof S==="string"){S=unescape(encodeURIComponent(S));for(var f=[],z=0,T=S.length;z<T;++z)f.push(S.charCodeAt(z));S=f}M||(M=S.length);f=0;if(G==0)for(;f+64<M;)R(S.slice(f,f+64)),f+=64,y+=64;for(;f<M;)if(Y[G++]=S[f++],y++,G==64)for(G=0,R(Y);f+64<M;)R(S.slice(f,f+64)),f+=64,y+=64}
function e(){var S=[],M=y*8;G<56?V(b,56-G):V(b,64-(G-56));for(var f=63;f>=56;f--)Y[f]=M&255,M>>>=8;R(Y);for(f=M=0;f<5;f++)for(var z=24;z>=0;z-=8)S[M++]=X[f]>>z&255;return S}
for(var X=[],Y=[],t=[],b=[128],J=1;J<64;++J)b[J]=0;var G,y;B();return{reset:B,update:V,digest:e,digestString:function(){for(var S=e(),M="",f=0;f<S.length;f++)M+="0123456789ABCDEF".charAt(Math.floor(S[f]/16))+"0123456789ABCDEF".charAt(S[f]%16);return M}}};
m2Y=function(B,R){R=R===void 0?sIN:R;if(!FqN){var V;B=(V=B.navigator)==null?void 0:V.userAgentData;if(!B||typeof B.getHighEntropyValues!=="function"||B.brands&&typeof B.brands.map!=="function")return Promise.reject(Error("ya"));r4d((B.brands||[]).map(function(X){var Y=new g0p;Y=_.bg(Y,1,X.brand);return _.bg(Y,2,X.version)}));
typeof B.mobile==="boolean"&&_.Xn(Zdx,2,B.mobile);FqN=B.getHighEntropyValues(R)}var e=new Set(R);return FqN.then(function(X){var Y=Zdx.clone();e.has("platform")&&_.bg(Y,3,X.platform);e.has("platformVersion")&&_.bg(Y,4,X.platformVersion);e.has("architecture")&&_.bg(Y,5,X.architecture);e.has("model")&&_.bg(Y,6,X.model);e.has("uaFullVersion")&&_.bg(Y,7,X.uaFullVersion);return Y.serialize()}).catch(function(){return Zdx.serialize()})};
pd=function(B,R,V,e){this.initialValue_=B;this.maxValue_=R;this.currBaseValue_=this.currValue_=B;this.randomFactor_=V||0;this.backoffFactor_=e||2};
Y0=function(B){this.src=B;this.listeners={};this.typeCount_=0};
n0o=function(){for(var B;B=$2A.remove();){try{B.fn.call(B.scope)}catch(R){eq(R)}Cyd.put(B)}Py5=!1};
_.unq=function(B){switch(B){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}};
OdK=function(B){switch(B){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""}};
_.oRZ=function(){};
tA5=function(B){return{r0R:new BAq(B),errorCount:new RTp(B),eventCount:new VAI(B),m8n:new eTp(B),bSY:new XUI(B),tP0:new pUu(B),f2r:new YZK(B),mdn:new hTI(B)}};
SZS=function(B,R,V,e){B=Wop(bWd(JI_(new _.h4(1828,"0"),B),new jKK));R.length&&UWp(B,NAd(new Gaq,R));e!==void 0&&(B.destinationUrl=e);var X=new yIx(1828,"","",!1,"",B.build());_.t4(X,B);var Y=new Wn({flush:function(t){try{X.flush(t)}catch(b){V(b)}}});
Y.addOnDisposeCallback(function(){setTimeout(function(){try{Y.snapshotAndFlush()}finally{X.dispose()}})});
Y.invocationLimit=1E5;Y.flushInterval=3E4;Y.JSC$7694_flushTimer.setInterval(3E4);return Y};
by=function(){var B,R,V;return(V=(B=globalThis.performance)==null?void 0:(R=B.now)==null?void 0:R.call(B))!=null?V:Date.now()};
cIu=function(B,R,V){if(B.disable)return new HWZ;R=R?qJd(R):[];if(V)return V.ruL(R),V.share();B={kq:B.kq,cH5:B.k2p,sXr:B.sG3,destinationUrl:B.destinationUrl,lkz:B.lkz,cP:B.cP};V=R;V=V===void 0?[]:V;return new MAN(B,V)};
_.AIN=function(B){if(!B)return null;B=_.J4(B,4);return B===null||B===void 0?null:_.Yq(B)};
Foo=function(B,R){return R?iWI(R):B?sKA(B):Promise.resolve()};
iWI=function(B){return new Promise(function(R,V){var e=_.jr("SCRIPT"),X=_.AIN(B);_.Qm(e,X);e.onload=function(){_.UJ(e);R()};
e.onerror=function(){_.UJ(e);V(Error("Ja"))};
(N2("HEAD")[0]||document.documentElement).appendChild(e)})};
sKA=function(B){return new Promise(function(R){var V=_.jr("SCRIPT");if(B){var e=_.J4(B,6);e=e===null||e===void 0?null:_.K$(e)}else e=null;_.E8(V,e);(N2("HEAD")[0]||document.documentElement).appendChild(V);_.UJ(V);R()})};
G$=function(B,R,V){var e,X=new Promise(function(Y){e=setTimeout(Y,R)});
return Promise.race([B.finally(function(){return void clearTimeout(e)}),
X.then(V)])};
rIK=function(B,R){try{return globalThis.sessionStorage.setItem(B,R),!0}catch(V){return!1}};
gR_=function(B,R,V,e){R=R===void 0?0:R;V=V===void 0?B.length:V;var X=0;for(e&&(X=gR_(e));R<V;R++)e=typeof B==="string"?B.charCodeAt(R):B[R],X=ZWI(31,X)+e|0;return X};
mWu=function(B,R){return[gR_(B,0,B.length>>1,R),gR_(B,B.length>>1)]};
$WK=function(B){var R=_.h(mWu(B,yI));B=R.next().value;R=R.next().value;return B.toString(16)+R.toString(16)};
CJA=function(B,R){var V=mWu(R);B=new Uint32Array(B.buffer);R=B[0];var e=_.h(V);V=e.next().value;e=e.next().value;for(var X=1;X<B.length;X+=2){for(var Y=R,t=X,b=V,J=e,G=0;G<22;G++)t=t>>>8|t<<24,t+=Y|0,t^=b+38293,Y=Y<<3|Y>>>29,Y^=t,J=J>>>8|J<<24,J+=b|0,J^=G+38293,b=b<<3|b>>>29,b^=J;Y=[Y,t];B[X]^=Y[0];X+1<B.length&&(B[X+1]^=Y[1])}};
PJN=function(B,R,V,e,X){var Y=(4-(yI.length+V.length)%4)%4,t=new Uint8Array(4+Y+yI.length+4+V.length),b=new DataView(t.buffer),J=0;b.setUint32(J,Math.random()*4294967295);J=J+4+Y;t.set(yI,J);J+=yI.length;b.setUint32(J,X);t.set(V,J+4);CJA(t,e);return B.insert(R,function(G){return void globalThis.sessionStorage.removeItem(G)})?rIK(R,_.O4(t))?"s":"t":"i"};
nRZ=function(B,R){var V=globalThis.sessionStorage.getItem(B);if(!V)return["m"];try{var e=_.Uo(V);CJA(e,R)}catch(X){return globalThis.sessionStorage.removeItem(B),["c"]}for(R=4;R<7&&e[R]===0;)R++;for(V=0;V<yI.length;V++)if(e[R++]!==yI[V])return globalThis.sessionStorage.removeItem(B),["d"];V=(new DataView(e.buffer)).getUint32(R);return Math.floor(Date.now()/1E3)>=V?(globalThis.sessionStorage.removeItem(B),["e"]):["a",new Uint8Array(e.buffer,R+4)]};
uBA=function(B){return globalThis.TextEncoder?(new TextEncoder).encode(B):_.Sr(B)};
OWZ=function(B){var R=B,V;return function(){if(R){var e=R;R=void 0;V=e.apply(this,arguments)}return V}};
Bgx=function(B){return CR(function(R){if(R instanceof B)return!0;var V,e,X=R==null?void 0:(V=R.ownerDocument)==null?void 0:(e=V.defaultView)==null?void 0:e[B.name];return ojS(X)&&R instanceof X})};
_.k0=function(B,R,V){_.Hn.call(this);this.JSC$7909_listener_=B;this.JSC$7909_interval_=R||0;this.handler_=V;this.callback_=(0,_.M2)(this.JSC$7911_doAction_,this)};
_.Dv=function(B){B=R7q(B);return _.Yq(B)};
R7q=function(B){return B===null?"null":B===void 0?"undefined":B};
e7_=function(B){if(B&&B.focus)if(B!==document.activeElement)B.focus();else return VvZ(function(){return _.W(function(R){document.activeElement&&document.activeElement.blur();return R.return(VvZ(function(){B.focus()}))})})};
_.XE_=function(B){var R=R===void 0?5:R;setTimeout(function(){var V;return _.W(function(e){e.nextAddress==1&&(V=document.activeElement);if(e.nextAddress!=5)return(document.activeElement===V||document.activeElement===document.body)&&R>=0&&B?_.U(e,e7_(B),5):e.jumpTo(0);if(document.activeElement===B)return e.return();B=B.parentElement;--R;return e.jumpTo(2)})},15)};
VvZ=function(B){return new Promise(function(R){requestAnimationFrame(function(){R(B())})})};
YzY=function(B){if(_.fd)B(_.fd);else{var R;((R=pE5)!=null?R:pE5=[]).push(B)}};
z$=function(){!_.fd&&_.ly&&_.h7d(_.ly());return _.fd};
_.h7d=function(B){_.fd=B;var R;(R=pE5)==null||R.forEach(YzY);pE5=void 0};
_.aI=function(B){_.fd&&_.fd.beforeLoadModuleCode(B)};
_.wz=function(){_.fd&&_.fd.JSC$8860_setLoaded()};
T$=function(B){return E4(B)?Number(B):String(B)};
tvA=function(B){this.action=B;this.wfv=!1};
WnS=function(B,R){tvA.call(this,"set-drive-options");this.appId=B;this.appOrigin=R};
bQY=function(B){tvA.call(this,"visibility");this.visible=B};
JSx=function(B,R,V){x0.call(this,B,R,V)};
jP5=function(B){Ld.call(this,B)};
UNp=function(B){B=B&&B.getWindow()||window;return B.gadgets&&B.gadgets.rpc};
GMZ=function(B,R){var V=R&&R.getWindow()||window;if(UNp(R))B();else if(NgS)NgS.push(B);else var e=NgS=[B],X=V.setInterval(function(){if(UNp(R)){V.clearInterval(X);for(var Y=0;Y<e.length;Y++)e[Y]();NgS=null}},100)};
SzN=function(B,R){var V=new vn(B);_.t4(R,V);var e={passive:!1};R.listen(V,"mousewheel",function(X){return void ySp(B,X)},e).listen(B,"scroll",function(X){return void ySp(B,X)},e)};
ySp=function(B,R){var V;a:{for(V=R.target;V;){if(V.nodeType==1){var e=_.Kd(V,"overflowY");if(e=="auto"||e=="scroll")break a}V=V.parentNode}V=null}if(!V||!_.II(B,V)||V.scrollHeight==V.clientHeight||R.deltaY>0&&Math.abs(V.scrollTop-(V.scrollHeight-V.clientHeight))<=1||R.deltaY<0&&V.scrollTop==0)R.preventDefault(),R.stopPropagation()};
sJ=function(B,R,V,e,X,Y,t,b,J){b=b===void 0?!1:b;J=J===void 0?!1:J;x0.call(this,void 0,void 0,void 0);x0.call(this,Y?Y+" picker modal-dialog":"picker modal-dialog",!0,V);_.EJ(B,"protocol");this.iframeManager_=new HQS;this.targetId_=QI();this.rpcToken_=QI();B=_.q2(B);_.cn(B,"hostId");V=_.cn(B,"parent");this.useGapi_=!J&&!0||(V==null?void 0:V.includes("onepick.corp.google.com"));b&&_.A4(B,"fv2","true");this.setUrl(B.toString());this.preferredDialogWidth_=e;this.preferredDialogHeight_=X;e!==void 0||
X!==void 0?e=!0:(e=_.cn(_.q2(B.toString()),"hostId"),MvI||(MvI=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),e=!MvI.has(e));this.autoSizeDialog_=e;this.JSC$8099_gadgetsDomHelper_=t||this.JSC$8050_dom_;R&&(t=this.JSC$8099_gadgetsDomHelper_,R=_.cn(_.q2(this.JSC$8101_url_),"grugl")=="true"?kMN:DNK,UNp(t)||(t=t||WH(document),e=t.createElement("SCRIPT"),_.Qm(e,R),e.type="text/javascript",t.JSC$7233_document_.body.appendChild(e)));
B=B.toString();R=null;t=B.indexOf("/picker?");t>-1?R=B.substring(0,t+8-1):tA(B,"/picker")&&(R=B);R&&this.setRelayUrl(R+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(B=this.buttons_,B.JSC$8084_element_=this.buttonEl_,B.render()):_.qV(this.buttonEl_,fkS),_.iy(this.buttonEl_,!!this.buttons_))};
_.dNp=function(B){var R=R===void 0?lkd:R;var V=_.Y5(B),e=function(Y){Y=_.h(Y);Y.next();Y=Fn(Y);return R(V,Y)},X=function(Y){var t=_.h(Y);
Y=t.next().value;t=Fn(t);return B.apply(Y,t)};
return function(){var Y=_.HB.apply(0,arguments),t=this||_.R5,b=z7q.get(t);b||(b={},z7q.set(t,b));return akx(b,[this].concat(_.MI(Y)),X,e)}};
rz=function(B){var R={};B=B.replace(/\r/g,"").split("\n");for(var V=0;V<B.length;V++){var e=B[V],X=e.indexOf(":");X<0||(R[e.substring(0,X)]=e.substring(X+2,e.length))}return R};
wEN=function(B,R,V){V=V===void 0?function(){}:V;
R=_.h(R);for(var e=R.next();!e.done;e=R.next()){var X=_.h(e.value);e=X.next().value;X=X.next().value;if(e instanceof Array&&e.includes(B)||e===B)return X()}return V()};
gz=function(B,R,V){V=V===void 0?function(){}:V;
return B?R():V()};
_.xNZ=function(B){var R;return((R=TgA.documentOverride)!=null?R:B).__wizdispatcher};
mq=function(B){var R=Zv;Zv=B;return R};
vjS=function(B,R){var V;if((V=B)==null?0:V.isDisposed)throw Error("nb`"+String(B.debugName));for(;B!==void 0;){V=B;if(V.retrieve)return V.retrieve(R,{optional:!0});B=B.parent}return LnY};
$0=function(B){return{"\u0275prov":{providedIn:"root",token:Symbol(B),factory:void 0,value:void 0}}};
KnZ=function(B){var R=mq(B);B={};return B[Symbol.dispose]=function(){mq(R)},B};
Ikd=function(B,R){B.disposables||(B.disposables=[]);B.disposables.push(R)};
nd=function(B){var R=Zv;R&&!R.isDisposed&&(Ikd(R,B),B.parent=R)};
QPI=function(B){if(B.disposables){for(var R=_.h(B.disposables),V=R.next();!V.done;V=R.next())V=V.value,typeof V==="function"?V():Ejd(V);B.disposables.length=0}};
Ejd=function(B){if(!B.isDisposed){B.isDisposed=!0;var R;(R=B[Symbol.dispose])==null||R.call(B);delete B.parent;QPI(B)}};
ZQZ=function(B){var R={retrieve:function(V){switch(V.\u0275prov.token){case qzp.\u0275prov.token:var e=B.asyncDeps;break;case cSd.\u0275prov.token:e=B.rootElement;break;case ASo.\u0275prov.token:e=B.modelRootElement;break;case iQd.\u0275prov.token:e=B.appContext;break;case sPd.\u0275prov.token:e=B.rendererData;break;case Fnd.\u0275prov.token:e=B.injectingConstructor;break;case rSp.\u0275prov.token:e=B.dispatcher}if(e)V=e;else a:{for(e=R.parent;e;){var X=e;if(X.retrieve){V=X.retrieve(V);break a}e=
e.parent}e=V.\u0275prov.token;X=gjK[e];X!==void 0?V=X:(X=V.\u0275prov.providedIn,V.\u0275prov.factory?(V=V.\u0275prov.factory(),e&&X==="root"&&(gjK[e]=V)):V=LnY)}return V}};
nd(R);return R};
mNx=function(B){if(typeof document!=="undefined"&&document&&document.getElementById&&(B=document.getElementById(B))){var R=B.tagName.toUpperCase();if(R=="SCRIPT"||R=="LINK")return B}return null};
Cjd=function(B,R){if((B=B===void 0?"":B)&&R)throw Error("ub");var V="";var e=_.R5._F_jsUrl;(B=R||mNx(B))&&(V=B.src?B.src:B.getAttribute("href"));if(e&&V){if(e!=V)throw Error("vb`"+e+"`"+V);V=e}else V=e||V;if(!$Nu(V))throw Error("wb");return V};
uWx=function(){if(!Pjq){Pjq=!0;try{var B=Cjd(_.R5._F_jsUrl?"":"base-js")}catch(e){return}var R=njK(uy(B)),V=Object.keys(R);V.length!==0&&YzY(function(e){for(var X=_.h(V),Y=X.next();!Y.done;Y=X.next()){Y=Y.value;for(var t=_.h(Object.keys(R[Y])),b=t.next();!b.done;b=t.next())e.addExtraEdge(Y,b.value)}})}};
OQ5=function(B,R,V){var e;return B&&R?B+"__"+R:(e=B!=null?B:R)!=null?e:V};
BSK=function(){var B=Object.assign({},ozN);Object.getOwnPropertyNames(ozN).forEach(function(R){OJ[R]!==void 0&&(B[R]=OJ[R])});
return B};
R4Y=function(B,R){if(OJ.enablePerformanceTiming){var V,e;(e=(V=performance).mark)==null||e.call(V,B+"Start__"+R)}};
VCd=function(B,R){if(OJ.enablePerformanceTiming){var V,e;(e=(V=performance).measure)==null||e.call(V,B+"__"+R,B+"Start__"+R)}};
X8d=function(B,R){var V=Object.create(e4S);V.debugName=R;!Zv||nd(V);R=mq(V);try{B(V)}finally{mq(R)}return function(){return void Ejd(V)}};
YBY=function(B){return RK(B)&&p8S in B};
h4u=function(B,R){return Object.is(B,R)};
eA=function(B){var R=VP;VP=B;return R};
Juo=function(B){if(XB)throw Error("da");if(VP!==null){var R=VP.nextProducerIndex++;tCp(VP);R<VP.producerNode.length&&VP.producerNode[R]!==B&&pW(VP)&&WkZ(VP.producerNode[R],VP.producerIndexOfThis[R]);VP.producerNode[R]!==B&&(VP.producerNode[R]=B,VP.producerIndexOfThis[R]=pW(VP)?bqq(B,VP,R):0);VP.producerLastReadVersion[R]=B.version}};
NSN=function(B){if(!pW(B)||B.dirty)if(B.dirty||B.lastCleanEpoch!==jCp)(B.producerMustRecompute(B)||Unp(B))&&B.producerRecomputeValue(B),B.dirty=!1,B.lastCleanEpoch=jCp};
GKZ=function(B){if(B.liveConsumerNode!==void 0){var R=XB;XB=!0;try{for(var V=_.h(B.liveConsumerNode),e=V.next();!e.done;e=V.next()){var X=e.value;X.dirty||(B=void 0,X.dirty=!0,GKZ(X),(B=X.consumerMarkedDirty)==null||B.call(X,X))}}finally{XB=R}}};
yuA=function(){var B;return((B=VP)==null?void 0:B.consumerAllowSignalWrites)!==!1};
SBd=function(B){B&&(B.nextProducerIndex=0);return eA(B)};
Hqp=function(B,R){eA(R);if(B&&B.producerNode!==void 0&&B.producerIndexOfThis!==void 0&&B.producerLastReadVersion!==void 0){if(pW(B))for(R=B.nextProducerIndex;R<B.producerNode.length;R++)WkZ(B.producerNode[R],B.producerIndexOfThis[R]);for(;B.producerNode.length>B.nextProducerIndex;)B.producerNode.pop(),B.producerLastReadVersion.pop(),B.producerIndexOfThis.pop()}};
Unp=function(B){tCp(B);for(var R=0;R<B.producerNode.length;R++){var V=B.producerNode[R],e=B.producerLastReadVersion[R];if(e!==V.version)return!0;NSN(V);if(e!==V.version)return!0}return!1};
bqq=function(B,R,V){MC_(B);if(B.liveConsumerNode.length===0&&B.producerNode!==void 0)for(var e=0;e<B.producerNode.length;e++)B.producerIndexOfThis[e]=bqq(B.producerNode[e],B,e);B.liveConsumerIndexOfThis.push(V);return B.liveConsumerNode.push(R)-1};
WkZ=function(B,R){MC_(B);if(B.liveConsumerNode.length===1&&B.producerNode!==void 0)for(var V=0;V<B.producerNode.length;V++)WkZ(B.producerNode[V],B.producerIndexOfThis[V]);V=B.liveConsumerNode.length-1;B.liveConsumerNode[R]=B.liveConsumerNode[V];B.liveConsumerIndexOfThis[R]=B.liveConsumerIndexOfThis[V];B.liveConsumerNode.length--;B.liveConsumerIndexOfThis.length--;R<B.liveConsumerNode.length&&(V=B.liveConsumerIndexOfThis[R],B=B.liveConsumerNode[R],tCp(B),B.producerIndexOfThis[V]=R)};
pW=function(B){var R,V;return B.consumerIsAlwaysLive||((V=B==null?void 0:(R=B.liveConsumerNode)==null?void 0:R.length)!=null?V:0)>0};
tCp=function(B){B.producerNode!=null||(B.producerNode=[]);B.producerIndexOfThis!=null||(B.producerIndexOfThis=[]);B.producerLastReadVersion!=null||(B.producerLastReadVersion=[])};
MC_=function(B){B.liveConsumerNode!=null||(B.liveConsumerNode=[]);B.liveConsumerIndexOfThis!=null||(B.liveConsumerIndexOfThis=[])};
DnN=function(B){var R=Object.create(kKo);R.computation=B;B=function(){NSN(R);Juo(R);if(R.value===YR)throw R.error;return R.value};
B[hI]=R;return B};
lNo=function(B,R){var V=Object.create(fNd);V.value=B;R!==void 0&&(V.equal=R);B=function(){Juo(V);return V.value};
B[hI]=V;return B};
dnI=function(B,R){B=lNo(B,R);var V=B[hI];return[B,function(e){return z4S(V,e)},
function(e){yuA()||aNd(V);z4S(V,e(V.value))}]};
z4S=function(B,R){yuA()||aNd(B);if(!B.equal(B.value,R)){B.value=R;B.version++;jCp++;GKZ(B);var V;(V=w85)==null||V(B)}};
tI=function(B){var R=eA(null);try{return B()}finally{eA(R)}};
_.WU=function(B,R,V){V=V===void 0?"":V;B=dnI(B,R==null?void 0:R.equals);var e=B[0],X=e[hI];X.debugName=OQ5(R==null?void 0:R.debugName,V,"[signal]");if(!OJ.enablePerformanceTiming)return B;var Y=B[1],t=B[2];return[e,function(b){TSS(function(){return void Y(b)},X)},
function(b){TSS(function(){return void t(b)},X)}]};
TSS=function(B,R){R4Y("signalSet",R.debugName);try{B()}finally{VCd("signalSet",R.debugName)}};
Lk5=function(B,R){var V=_.h(_.WU(B,void 0,"cPpJzc"));B=V.next().value;V=V.next().value;B[xnu]=V;B[bJ]=R;return B};
vzo=function(B){return!!B&&typeof B==="object"&&Object.getPrototypeOf(B)===Object.prototype};
KkA=function(B){return typeof B==="function"&&xnu in B&&typeof B[xnu]==="function"};
INI=function(B,R){Object.defineProperty(B,bJ,{get:function(){return R}})};
jA=function(B,R){if(JI(B)){var V=B.map(function(Y){return jA(Y,R)});
INI(V,R);return V}if(vzo(B)){V={};B=_.h(Object.entries(B));for(var e=B.next();!e.done;e=B.next()){var X=_.h(e.value);e=X.next().value;X=X.next().value;V[e]=jA(X,R)}INI(V,R);return V}return Lk5(B,R)};
EzA=function(B){if(JI(B))return B.map(function(X){return EzA(X)});
if(vzo(B)){var R={};B=_.h(Object.entries(B));for(var V=B.next();!V.done;V=B.next()){var e=_.h(V.value);V=e.next().value;e=e.next().value;R[V]=EzA(e)}return R}return KkA(B)?B():B};
qBA=function(){var B={height:0,width:0};if(!vzo(B))throw Error("Ib");var R=Symbol("Jb");return[jA(B,R),function(V,e){if(V[bJ]===R)if(typeof e==="function"){var X=[].concat(_.MI(EzA(V)));e=e(X)||X;QCY(V,[].concat(_.MI(e)))}else QCY(V,e);else throw Error("Kb");}]};
QCY=function(B,R){if(KkA(B))B[xnu](R);else if(JI(B)&&JI(R))R=jA(R,B[bJ]),B.length=0,B.push.apply(B,_.MI(R));else if((vzo(B)||JI(B))&&(JI(R)||typeof R==="object"&&R!==null)){R=_.h(Object.entries(R));for(var V=R.next();!V.done;V=R.next()){var e=_.h(V.value);V=e.next().value;e=e.next().value;var X=B,Y=X[V];Object.hasOwn(B,V)?QCY(Y,e):X[V]=jA(e,B[bJ])}}else throw Error("Lb");};
cuo=function(B){return Object.create(Object.assign({},UZ,B))};
iqZ=function(){var B;return(B=AuI)!=null?B:AuI=cuo({consumerAllowSignalWrites:!0})};
_.NW=function(B,R,V){V=V===void 0?"":V;B=DnN(B);var e=B[hI];e.debugName=OQ5(R==null?void 0:R.debugName,V,"[computed]");(R==null?void 0:R.equals)!=null&&(e.equal=R.equals);return B};
Ga=function(B){var R=eA(sCp);try{B()}finally{eA(R)}};
CNo=function(B){if(!B.isDisposed)switch(B.effectType){case Fku:ruY.schedule(B);break;case gzN:ZqI.schedule(B);break;case mnp:$n_.schedule(B);break;default:_.Ym(B.effectType)}};
nz_=function(B){PNq.push(B);return function(){var R=PNq.indexOf(B);R!==-1&&PNq.splice(R,1)}};
Oqo=function(){if(yP>0)ruY.flush();else for(var B=_.h(u0Z),R=B.next();!R.done;R=B.next())R.value.flush()};
BVq=function(B){for(var R=_.h(B),V=R.next();!V.done;V=R.next()){var e=V.value;for(V=[e];e.parent!==void 0;)e=e.parent,oWd(e)&&B.has(e)&&V.push(e);for(;V.length>0;){e=V.pop();try{e.run()}finally{B.delete(e)}}}};
Rtp=function(B){yP--;if(B){B=_.h(u0Z);for(var R=B.next();!R.done;R=B.next())R.value.clear()}else yP>0||Oqo()};
etd=function(B){var R=B.component;var V=B.debugInstance;B=B.fn;var e=Vbp(R);SA={name:V?e+" ("+V+")":e,isReactive:R.componentType!==HU,parent:SA};R=B();SA=SA.parent;return R};
MW=function(){var B=SA;return B?B.isReactive:!1};
fW=function(B,R){var V=SA;R&&(SA=R);try{return B()}catch(Y){B=Y;kR(B,SA);if(B!==XfI){pf5=SA;R=[];for(var e=Zv;e;){var X=void 0;R.push((X=e.debugName)!=null?X:"[context]");X=void 0;e=(X=e.parent)!=null?X:null}Y7Y=R.reverse()}XfI=B;throw B;}finally{SA=V}};
kR=function(B,R){try{var V=htA(R===void 0?null:R);if(V&&!B.componentStack&&(B.componentStack=V,OJ.enableComponentStacksInErrorMessages)){var e=B.message+"\n\nComponent stack: "+V;B.stack&&(B.stack=B.stack.replace(B.message,e));B.message=e}}catch(X){}};
htA=function(B){if(RK(B)&&B.name!==void 0&&B.isReactive!==void 0&&B.parent!==void 0||B===null){for(var R=0,V="";R<20&&B;)V+=B.name+" > ",B=B.parent,R++;B=V.slice(0,-3)}else if(OJ.enableContextBasedComponentStacks){a:{for(B=B===void 0?Zv:B;B;){if(YBY(B))break a;R=void 0;B=(R=B.parent)!=null?R:null}B=null}B=B.getComponentStack().slice(0,20).join(" > ")}else B="";return B};
Vbp=function(B){return B.debugName||B.name||"[component]"};
tbd=function(B,R,V){R=Object.create(R);R.effectFn=B;V&&(R.debugName=V);nd(R);OJ.enableContextBasedComponentStacks||(R.componentStack=SA);return R};
_.lJ=function(B,R){B=tbd(B,W4q,R);CNo(B)};
_.za=function(B,R){B=tbd(B,b6d,R);CNo(B)};
_.aK=function(B){var R=Zv;if(R){var V=OJ.enableContextBasedComponentStacks?void 0:SA;Ikd(R,function(){var e=eA(iqZ());try{OJ.enableContextBasedComponentStacks?B():fW(function(){return void B()},V)}catch(X){throw OJ.enableContextBasedComponentStacks&&kR(X),X;
}finally{eA(e)}})}};
dA=function(B,R){var V={};(R===void 0||R)&&nd(V);R=mq(V);try{B(V)}finally{mq(R)}return function(){return void Ejd(V)}};
_.wA=function(B){return typeof B==="function"?B():(B==null?0:B[J$q])?B.get():B};
juI=function(B){if(Zv)throw Error("rb");dA(B,!1)};
Ta=function(B,R){B=mq(B);try{return tI(R)}finally{mq(B)}};
xR=function(B,R,V){V=V===void 0?3:V;var e=htA(pf5),X,Y;var t=(Y=(X=Y7Y)==null?void 0:X.slice())!=null?Y:[];R={componentStack:e,contextTrace:t,errorSeverity:V,featureFlags:BSK(),tagName:R};return[B,R]};
GLZ=function(B,R,V){if(Object.hasOwnProperty.call(UCZ,B)&&(B=UCZ[B],Object.hasOwnProperty.call(B,R)&&(B=B[R],B instanceof Array))){for(var e=null,X=!1,Y=0,t=B.length;Y<t;++Y){var b=B[Y],J=b.contingentAttribute;if(!J)return b.contract;e===null&&(e={});J=Object.hasOwnProperty.call(e,J)?e[J]:e[J]=V(J);if(J===b.requiredValue)return b.contract;J==null&&(X=!0)}if(X)return null}R=NVK[R];return typeof R==="number"?R:null};
H6Z=function(B,R,V){var e=null;(B=y$u[B])&&(e=B[R]);return typeof e!=="number"&&((B=y$u["*"])&&(e=B[R]),typeof e!=="number")?!1:!0===S7u[e][String(V).toLowerCase()]};
kL5=function(B,R){R=GLZ(B.toLowerCase(),R,function(){var e;(e=OJ.handleError)==null||e.call.apply(e,[OJ].concat(_.MI(xR(Error("Qb"),B.toLowerCase()))))});
if(R===null)return null;var V;return(V=Mbq[R])!=null?V:null};
DCp=function(B,R,V){if(V===null||V===void 0)return V;B=kL5(B,R);return B===null?V:B(R,V)};
ftd=function(){};
LW=function(B,R){for(;B.length>R;)B.pop()};
lt_=function(B){B=Array(B);LW(B,0);return B};
zto=function(B,R,V){if(V==null)B.removeAttribute(R);else{var e;(e=R.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":R.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?B.setAttributeNS(e,R,V):B.setAttribute(R,V)}};
atZ=function(B,R,V){B[R]=V};
wfd=function(B,R,V){B=B.style;if(typeof V==="string")B.cssText=V;else{B.cssText="";for(var e in V)if(dC5.call(V,e)){R=B;var X=e,Y=V[e];X.indexOf("-")>=0?R.setProperty(X,Y):R[X]=Y}}};
TVp=function(B,R,V){var e=typeof V;e==="object"||e==="function"?B[R]=V:zto(B,R,V)};
xCo=function(){var B=new ftd;B[vU.default]=TVp;B.style=wfd;return B};
L4d=function(B,R,V,e){(e[R]||e[vU.default])(B,R,V)};
K4A=function(B,R,V){R=new vWK(R,V);return B.__incrementalDOMData=R};
KW=function(B,R){if(B.__incrementalDOMData)return B.__incrementalDOMData;var V=B.nodeType===1?B.localName:B.nodeName,e=B.nodeType===1?B.getAttribute("key"):null;R=K4A(B,V,B.nodeType===1?e||R:null);if(B.nodeType===1&&(B=B.attributes,V=B.length)){e=R._attrsArr||(R._attrsArr=lt_(V*2));for(var X=0,Y=0;X<V;X+=1,Y+=2){var t=B[X],b=t.value;e[Y]=t.name;e[Y+1]=b}}return R};
ItY=function(B,R,V,e,X){return R==V&&e==X};
EWd=function(B){for(var R=IK,V=EZ();V!==B;){var e=V.nextSibling;R.removeChild(V);QP.deleted.push(V);V=e}};
EZ=function(){return qW?qW.nextSibling:IK.firstChild};
cU=function(){qW=EZ()};
c$Z=function(B,R,V){cU();var e;a:{if(e=qW){do{var X=e,Y=B,t=R,b=KW(X,t);if(Quu(X,Y,b.nameOrCtor,t,b.key))break a}while(R&&(e=e.nextSibling))}e=null}e||(B==="#text"?(V=AI.createTextNode(""),K4A(V,"#text",null),B=V):(e=AI,X=IK,typeof B==="function"?e=new B:e=(X=B==="svg"?"http://www.w3.org/2000/svg":B==="math"?"http://www.w3.org/1998/Math/MathML":X==null||KW(X).nameOrCtor==="foreignObject"?null:X.namespaceURI)?e.createElementNS(X,B):e.createElement(B),K4A(e,B,R),B=e,V&&B.setAttribute("nonce",V)),QP.created.push(B),
e=B);V=e;if(V!==qW){if(q7_.indexOf(V)>=0)for(B=IK,R=V.nextSibling,e=qW;e!==null&&e!==V;)X=e.nextSibling,B.insertBefore(e,R),e=X;else IK.insertBefore(V,qW);qW=V}};
A$Y=function(B,R,V){c$Z(B,R,V);IK=qW;qW=null;return IK};
i6p=function(){EWd(null);qW=IK;IK=IK.parentNode};
iJ=function(){qW=IK.lastChild};
r$o=function(B,R){R=R===void 0?{}:R;var V=R.matches===void 0?ItY:R.matches;return function(e,X,Y){var t=QP,b=AI,J=q7_,G=FB,y=rA,S=qW,M=IK,f=Quu;AI=e.ownerDocument;QP=new su5(e);Quu=V;FB=[];rA=[];qW=null;var z=IK=e.parentNode,T,L=F4_.call(e);if((T=L.nodeType===11||L.nodeType===9?L.activeElement:null)&&e.contains(T)){for(L=[];T!==z;)L.push(T),T=T.parentNode||(z?T.host:null);z=L}else z=[];q7_=z;try{return B(e,X,Y)}finally{e=QP,gA&&e.deleted.length>0&&gA(e.deleted),AI=b,QP=t,Quu=f,FB=G,rA=y,qW=S,IK=M,
q7_=J}}};
gWZ=function(B,R,V,e){Zm.push(L4d);Zm.push(B);Zm.push(R);Zm.push(V);Zm.push(e)};
mCY=function(B,R,V){var e=rA;R=R._attrsArr||(R._attrsArr=lt_(e.length));for(var X=!R.length||!1,Y=0;Y<e.length;Y+=2){var t=e[Y];if(X)R[Y]=t;else if(R[Y]!==t)break;var b=e[Y+1];if(X||R[Y+1]!==b)R[Y+1]=b,gWZ(B,t,b,V)}if(Y<e.length||Y<R.length){for(Y=X=Y;Y<R.length;Y+=2)CW[R[Y]]=R[Y+1];for(Y=X;Y<e.length;Y+=2)X=e[Y],t=e[Y+1],CW[X]!==t&&gWZ(B,X,t,V),R[Y]=X,R[Y+1]=t,delete CW[X];LW(R,e.length);for(var J in CW)gWZ(B,J,void 0,V),delete CW[J]}B=Z6u;Z6u=V=Zm.length;for(J=B;J<V;J+=5)(0,Zm[J])(Zm[J+1],Zm[J+
2],Zm[J+3],Zm[J+4]);Z6u=B;LW(Zm,B);LW(e,0)};
PU=function(B){c$Z("#text",null);var R=qW;var V=KW(R);if(V.text!==B){V=V.text=B;for(var e=1;e<arguments.length;e+=1)V=(0,arguments[e])(V);R.data!==V&&(R.data=V)}};
O6o=function(B,R,V){if(V===!1&&$CA.has(R))zto(B,R,null);else if(R!=="idomKey"&&R!=="skip"&&R!=="skipchildren"&&R!=="children"&&R!=="el"){if(R.startsWith("on"))if(R[2]===":"){if(V===void 0||V===null){var e;(e=OJ.handleError)==null||e.call.apply(e,[OJ].concat(_.MI(xR(Error("Wb`"+R),B.tagName))));B[R]=void 0;return}if(typeof V!=="object"||V===null)throw Error("Xb`"+R+"`"+typeof V);if(typeof V.getFn!=="function")throw Error("Yb`"+R+"`"+Object.keys(V));var X=V.getFn(0),Y=R.slice(3);if((e=MW())&&B["on"+
Y]===void 0)B.addEventListener(Y,X),_.aK(function(){return void B.removeEventListener(Y,X)});
else if(e||!CfK.includes(Y))B["on"+Y]=X}else{Pfd(B,R,V);return}else if(R.startsWith("data-")&&typeof V==="string")try{V=nWd(V)}catch(t){V="zSoyz"}typeof V!=="function"||B._disposeEffects!=null?(OJ.enableAttributeSanitization&&(V=DCp(B.tagName,R,V)),R==="style"?uyY(B,R,V):R.startsWith("prop:")?(R=R.slice(5),B[R]=V):Pfd(B,R,V)):(B._signalProps||(B._signalProps=[]),B._signalValues||(B._signalValues=[]),B._signalProps.push(R))}};
oD_=function(B,R,V){V=(V===void 0?{}:V).isReactive;if(R==null?0:R.el){var e=R.el;if(typeof e==="function")e(B);else{var X;(X=e.onRender)==null||X.call(e,B);B._disposeRef||(B._disposeRef=function(){var Y;(Y=e.onUnmount)==null||Y.call(e);delete B._disposeRef},V&&_.aK(function(){var Y;
return void((Y=B._disposeRef)==null?void 0:Y.call(B))}))}}};
Bnd=function(B){return RK(B)&&nW in B};
Rbo=function(B){return Bnd(B)?B[nW].flattened:B};
VGp=function(B,R){var V=_.HB.apply(2,arguments),e;R=(e=R)!=null?e:{};e={};return e.type=B,e.props=R,e.children=V,e[uJ]=!0,e};
_.OZ=function(B){return B.children};
oP=function(B){var R=ebx!==VGp;ebx=B?X5p:VGp;return R};
BE=function(B){return _.Xa(B)?"nodeType"in B:!1};
RP=function(){return document.createTextNode("")};
Vh=function(B){B=document.createTextNode(String(B));B._isSignalTextNode=!0;return B};
p5S=function(B){var R=document.createElement("div");if(!(B instanceof zm)){if(B.contentKind!==ev)throw Error("Ub");B=aa(B.toString())}_.qV(R,B);B=_.h(R.childNodes);for(var V=B.next();!V.done;V=B.next())V.value._isSafeOrSanitizedHtmlNode=!0;return R};
XW=function(B){B=typeof B;return B==="string"||B==="number"||B==="boolean"};
YdS=function(B){return B instanceof p$||JR(B)||"function"==typeof _.iD&&B instanceof _.iD||!1};
hbu=function(B,R){var V=B.parentElement;if(!V)return R;V.replaceChild(R,B);return R};
tGZ=function(B,R){var V=B[0].parentElement;if(V)if(B[0].previousSibling||B[B.length-1].nextSibling){V.insertBefore(R,B[0]);for(var e=B.length-1;e>=0;e--)V.removeChild(B[e])}else V.textContent="",V.appendChild(R);return R};
WA_=function(B,R){if(B[0].parentElement)for(var V=B[0].parentElement,e=R.length,X=B.length,Y=e,t=0,b=0,J=B[X-1].nextSibling,G=null;t<X||b<Y;)if(B[t]===R[b])t++,b++;else{for(;B[X-1]===R[Y-1];)X--,Y--;if(X===t)for(var y=Y<e?b?R[b-1].nextSibling:R[Y-b]:J;b<Y;){var S=R[b++];V.insertBefore(S,y)}else if(Y===b)for(;t<X;)y=B[t],G&&G.has(y)||V.removeChild(y),t++;else if(B[t]===R[Y-1]&&R[b]===B[X-1])y=B[--X].nextSibling,V.insertBefore(R[b++],B[t++].nextSibling),V.insertBefore(R[--Y],y),B[X]=R[Y];else{if(!G)for(G=
new Map,y=b;y<Y;)G.set(R[y],y++);y=G.get(B[t]);if(y==null)V.removeChild(B[t]),t++;else if(b<y&&y<Y){S=t;for(var M=1,f=void 0;++S<X&&S<Y&&(f=G.get(B[S]))!=null&&f===y+M;)M++;if(M>y-b)for(S=B[t];b<y;)V.insertBefore(R[b++],S);else V.replaceChild(R[b++],B[t++])}else t++}}return R};
JKu=function(B){if(Array.isArray(B)){if(B.length>1)throw Error("gc`"+B.length+"`"+B.map(bEK).join(", "));B=B[0]}if(B==null)return null;if(!(B instanceof _.vB)){var R,V;if((R=window)==null?0:(V=R.trustedTypes)==null?0:V.isScript(B))throw Error("fc");if(String(B).trim().length===0)return null;throw Error("hc`"+bEK(B));}return B};
jqd=function(B){if(Array.isArray(B)){if(B.length>1)throw Error("ic`"+B.length+"`"+B.map(bEK).join(", "));B=B[0]}if(B==null)return null;if(!fYp(B)){if(String(B).trim().length===0)return null;throw Error("jc`"+bEK(B));}return B};
bEK=function(B){return"("+typeof B+") "+(B!=null&&typeof B==="object"?B.constructor.name:typeof B)+" "+B};
Yj=function(B,R){function V(){X=!1;R.isControlFlowComponent&&yP++;var Y=e[0],t=e[nW].flattened,b=oP(!0);try{var J=B(),G=Ueu(Y,J,e);Array.isArray(G)||(e[nW].flattened=[G]);var y=e[nW].flattened;if(t&&(!Array.isArray(t)||t.length!==0)){var S=Array.isArray(t)?t[0]:t,M=S[pQ],f=S._disposeEffects;S._disposeEffects=void 0;S=Array.isArray(y)?y[0]:y;S[pQ]=M;S[pQ]&&(S[pQ].numNodes=S===y?1:y.length);S._disposeEffects=f}e[0]=G;R.isControlFlowComponent&&Rtp(!1)}catch(z){throw R.isControlFlowComponent&&Rtp(!0),
z;}finally{oP(b)}}
R=R===void 0?{}:R;var e=NnA(),X=!0;_.za(function(){(GnS==null?0:GnS.logger)&&!X?GnS.logger.logGraft(e[0],V):V()},R.debugName);
return e};
Ueu=function(B,R,V){for(;typeof R==="function";)R=R();if(R!=null&&R[uJ]){var e,X,Y;(Y=OJ.handleError)==null||Y.call.apply(Y,[OJ].concat(_.MI(xR(Error("kc`"+((e=R.type)==null?void 0:e.TAG_NAME)),(X=R.type)==null?void 0:X.TAG_NAME))))}if(B==null)return R==null?RP():XW(R)?Vh(R):YdS(R)?Vh(R.toString()):BE(R)?R:R.length===0?RP():yK5(R,V);if(BE(B)){if(R==null)return hbu(B,RP());if(XW(R))return Sdx(B,R);if(YdS(R))return Sdx(B,R.toString());if(BE(R))return hbu(B,R);if(R.length===0)return hbu(B,RP());R=yK5(R,
V);WA_([B],V[nW].flattened);return R}B=hS(B);if(R==null)return tGZ(B,RP());if(XW(R))return tGZ(B,Vh(R));if(YdS(R))return tGZ(B,Vh(R.toString()));if(BE(R))return WA_(B,[R])[0];if(R.length===0)return tGZ(B,RP());R=yK5(R,V);WA_(B,V[nW].flattened);return R};
Sdx=function(B,R){B.nodeType===Node.TEXT_NODE?B.textContent!==String(R)&&(B.textContent=String(R)):B=hbu(B,Vh(R));return B};
hS=function(B,R,V){return HEu(B,R!=null?R:[],V===void 0?!1:V)};
yK5=function(B,R){var V=hS(B,void 0,!0);if(V.length===0)return RP();R[nW].flattened=V;return B};
HEu=function(B,R,V,e,X){R=R===void 0?[]:R;V=V===void 0?!1:V;X=X===void 0?-1:X;if(B==null)return R;if(B instanceof tS)return B=B.render(),HEu(B,R,V,e,X);if(BE(R)&&R.nodeType===Node.ELEMENT_NODE)switch(R.tagName){case "SCRIPT":V=JKu(B);V!==null&&_.E8(R,V);return;case "STYLE":V=jqd(B);V!==null&&(R.textContent=_.lYp(V));return}XW(B)&&(B=Vh(B),e&&V&&(e[X]=B));if(B!=null&&B.contentKind===ev||B instanceof zm){V=p5S(B);V=Array.from(V.childNodes);V=_.h(V);for(B=V.next();!B.done;B=V.next())MGI(R,B.value);return R}YdS(B)&&
(B=Vh(B.toString()),e&&V&&(e[X]=B));if(BE(B))return MGI(R,B);if(Array.isArray(B)){for(var Y=0;Y<B.length;Y++)HEu(B[Y],R,V,B,Y);return R}if(typeof B==="function"){B=Yj(B,{debugName:"qmF2ne"})[0];if(Array.isArray(B)){V=_.h(B);for(B=V.next();!B.done;B=V.next())MGI(R,B.value);return R}e&&V&&(e[X]=B);return MGI(R,B)}if(B!=null&&B[uJ]){e=oP(!0);X=ebx;try{Y=X.apply(null,[B.type,B.props].concat(_.MI(B.children)))}finally{oP(e)}return HEu(Y,R,V)}var t;(t=OJ.handleError)==null||t.call.apply(t,[OJ].concat(_.MI(xR(Error("lc")))));
return R};
NnA=function(B){var R={};R=Object.assign([],(R[nW]={flattened:[]},R));if(!B)return R;R[0]=yK5(B,R);return R};
MGI=function(B,R){Array.isArray(B)?B.push(R):B.appendChild(R);return B};
WE=function(B){if(!OJ.enableLazyTsx)return B;if(Array.isArray(B)){for(var R=0;R<B.length;R++)B[R]=WE(B[R]);return B}return B instanceof tS?(B=B.render(),WE(B)):B};
De_=function(B,R){var V,e,X=Vbp(B),Y=function(f){e=f;f=oP(!0);var z=eA(bj);R4Y("render",X);try{V=WE(B(R))}finally{VCd("render",X),eA(z),oP(f)}};
Y=OJ.enableContextPerComponent?X8d(Y,X):dA(Y,OJ.alwaysTrackContexts||!!Zv);YBY(e);if(!R.renderedFromIdom){var t=mq(e);try{return knx(B,R,V),V}finally{mq(t)}}!Bnd(V)&&Array.isArray(V)&&(V=NnA(V));var b=Rbo(V);t=Array.isArray(b)?b[0]:b;var J=!1;if(t){var G,y=(G=R==null?void 0:R.idomKey)!=null?G:B;G=b!==t;t._disposeEffects=Y;var S=t[pQ]||{},M=Bnd(V)?V:S.sourceDynamicRange;Object.assign(S,{key:y,numNodes:G?b.length:1,context:e,higherOrder:!!t[pQ],sourceDynamicRange:M});t[pQ]=S}else J=!0;(function(){var f=
mq(e);try{knx(B,R,b)}finally{mq(f)}})();
J&&Y();return V};
fhd=function(B){var R={},V;for(V in B)R={prev$jscomp$23:void 0,next$jscomp$32:void 0},R.prev$jscomp$23=JS[V],R.next$jscomp$32=B[V],JS[V]=function(e){return function(){var X=_.HB.apply(0,arguments);e.prev$jscomp$23.apply(null,_.MI(X));e.next$jscomp$32.apply(null,_.MI(X))}}(R)};
lhx=function(){if(MW())throw Error("mc");return jv};
zbx=function(B,R){if(!B.__unmounted&&R){B.__unmounted=!0;try{B.didUnmount()}catch(X){var V,e;(e=OJ.handleError)==null||e.call.apply(e,[OJ].concat(_.MI(xR(X,(V=B.JSC$8174___type)==null?void 0:V.TAG_NAME))))}JS.didUnmount(B);B.el=null;R.__instance&&delete R.__instance}};
deo=function(B,R,V){B._signalProps!=null&&B._disposeEffects==null&&((V===void 0?0:V)?B._disposeEffects=dA(function(){return void ahd(B,R)},OJ.alwaysTrackContexts||!!Zv):ahd(B,R))};
ahd=function(B,R){_.za(function(){for(var V=B._signalProps,e=B._signalValues,X=0;X<V.length;X++){var Y=V[X],t=R[Y]();e[X]!==t&&(e[X]=t,O6o(B,Y,t))}},"e3YVbb")};
w5I=function(B,R,V){var e,X=[];B._disposeEffects=dA(function(){_.za(function(){var Y=V();if(Y===null||Y===void 0)Y="";if(XW(Y)||Y===null)e!=null||(e=document.createTextNode("")),e.parentNode!==B&&(e._isSignalTextNode=!0,B.insertBefore(e,R)),e.textContent=String(Y);else if(Y!=null&&Y.contentKind===ev||Y instanceof zm){for(var t=X.length>0?X[X.length-1].nextSibling:R,b=_.h(X),J=b.next();!J.done;J=b.next())B.removeChild(J.value);Y=p5S(Y);X=Array.from(Y.childNodes);Y=_.h(X);for(b=Y.next();!b.done;b=Y.next())B.insertBefore(b.value,
t)}else throw J=(b=(t=SA)==null?void 0:t.name)!=null?b:"unknown",Error("bc`"+J+"`"+typeof Y);},"VvDgC")},OJ.alwaysTrackContexts||!!Zv)};
LAd=function(B,R){var V=_.HB.apply(2,arguments);R!=null||(R={});return!OJ.enableLazyTsx||SA!=null&&!MW()?TnY(B,R,V):new xex(B,R,V)};
TnY=function(B,R,V){if(B===_.OZ)return V;if(typeof B==="function"){SA&&!MW()&&(R.renderedFromIdom=!0);var e=function(){var Y=vDK(B,R,V);if(Y)return Y;V.length>0&&(R.children=V.length===1?V[0]:V);if(B.componentType===HU){var t;X8d(function(){var b=R;if(B.componentType!==HU)t=!1;else{b||(b={});var J=new Uz(b,B),G=eA(bj);try{var y=J.render(b)}finally{eA(G)}y instanceof HTMLElement?(y.__instance=J,J.el=y,J.JSC$8174___type=B,B.TAG_NAME=y.tagName.toLowerCase(),JS.didPatch(J),t=y):t=y}},B.name);
if(t)return t}return De_(B,R)};
return OJ.enableContextBasedComponentStacks?e():etd({component:B,debugInstance:R.debugInstance,fn:e})}e=KAY(B,R);for(var X in R)O6o(e,X,R[X]);deo(e,R);hS(V,e);oD_(e,R,{isReactive:!0});IhI(e,R);return e};
KAY=function(B,R){B=(EDu.has(B.toLowerCase())?0:QqN.has(B.startsWith("svg:")?B.replace("svg:",""):B))?document.createElementNS("http://www.w3.org/2000/svg",B.startsWith("svg:")?B.replace("svg:",""):B):qd5(B,R)||document.createElement(B);B[cKN]=!0;return B};
AKx=function(B){if(B){var R;(R=B._disposeRef)==null||R.call(B);var V;(V=B._disposeEffects)==null||V.call(B);B.__instance&&B.__instance instanceof GM&&(R=B.__instance,zbx(R,B),R instanceof Uz&&R.disposeEffects());for(R=0;R<B.childNodes.length;R++)AKx(B.childNodes[R])}};
sqq=function(B){iE5.push(B)===1&&requestAnimationFrame(function(){setTimeout(function(){var R=[].concat(_.MI(iE5));iE5=[];R=_.h(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;try{for(var e=0;e<V.length;e++)AKx(V[e])}catch(X){e=V=void 0,(e=(V=OJ).handleError)==null||e.call.apply(e,[V].concat(_.MI(xR(X))))}}})})};
_.N=function(B,R){return ebx.apply(null,[B,R].concat(_.MI(_.HB.apply(2,arguments))))};
rKx=function(){var B=document.body.firstElementChild;window.ng||B.__ngContext__||(B.__ngContext__={},B.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=FAS)};
_.H=function(B){var R=B.cond;if(R===void 0)return B.else&&B.else();var V=_.NW(function(){return!!R()},void 0,"y0Xknf"),e=function(){var X=R();
if(!X){var Y;(Y=OJ.handleError)==null||Y.call.apply(Y,[OJ].concat(_.MI(xR(gDo.nonNullableCondIsNull()))))}return X};
return Yj(function(){var X=V(),Y;dA(function(){var t=eA(bj);try{Y=WE(X?B.then(e):B.else&&B.else())}finally{eA(t)}},!0);
return Y},{debugName:B.debugInstance,
isControlFlowComponent:!0})};
ZEK=function(B){return _.H(B)};
_.yh=function(B){return B.keyBy==="INDEX"?meq(B):$eq(B)};
Ceq=function(B){B=_.h(B);for(var R=B.next();!R.done;R=B.next()){var V=void 0;(V=R.value)==null||V()}};
$eq=function(B){var R=B.keyBy===void 0||B.keyBy==="REFERENCE",V=R?function(y){return y}:B.keyBy,e=[],X=[],Y=[],t=[],b=[],J=[],G=!0;
_.aK(function(){Ceq(t)});
return Yj(function(){var y=B.each(),S=y.length;if(S===0){if(e.length===0&&!G)return Y;Ceq(t);e=y;X=[];for(y=0;y<e.length;y++)X.push(V(e[y]));Y=[];t=[];b=[];J=[];B.fallback&&(t[0]=PeN(function(){Y[0]=WE(B.fallback())}));
G=!1;return Y}for(var M=new nDu,f=e.length-1;f>=0;f--)M.push(X[f],f);f=Array(S);for(var z=Array(S),T=Array(S),L=Array(S),Q=Array(R?0:S),q={i$jscomp$485:0};q.i$jscomp$485<S;q={i$jscomp$485:q.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},q.i$jscomp$485++){q.item$jscomp$103=y[q.i$jscomp$485];q.key$jscomp$523=V(q.item$jscomp$103);var m=M.pop(q.key$jscomp$523);m!=null?(T[q.i$jscomp$485]=Y[m],z[q.i$jscomp$485]=X[m],f[q.i$jscomp$485]=t[m],L[q.i$jscomp$485]=b[m],R||(Q[q.i$jscomp$485]=J[m]),Ga(function(g){return function(){L[g.i$jscomp$485](g.i$jscomp$485);
if(!R)Q[g.i$jscomp$485](g.item$jscomp$103)}}(q)),delete t[m]):f[q.i$jscomp$485]=PeN(function(g){return function(){var Vu=_.h(_.WU(g.i$jscomp$485,void 0,"g4fKif")),n=Vu.next().value;
Vu=Vu.next().value;L[g.i$jscomp$485]=Vu;z[g.i$jscomp$485]=g.key$jscomp$523;if(R)T[g.i$jscomp$485]=WE(B.children(g.item$jscomp$103,n));else{var Yd=_.h(_.WU(g.item$jscomp$103,void 0,"Ile0Kc"));Vu=Yd.next().value;Yd=Yd.next().value;Q[g.i$jscomp$485]=Yd;T[g.i$jscomp$485]=WE(B.children(Vu,n))}}}(q))}Ceq(t);
e=y;X=z;Y=T;t=f;b=L;J=Q;G=!1;return T},{debugName:B.debugInstance,
isControlFlowComponent:!0})};
meq=function(B){var R=[],V=[],e=[],X=[],Y=!1;_.aK(function(){for(var t=_.h(X),b=t.next();!b.done;b=t.next())b=b.value,b()});
return Yj(function(){var t=B.each();Y&&t.length>0&&(X.pop()(),R.pop(),Y=!1);for(var b=Array(t.length),J={i$jscomp$486:0};J.i$jscomp$486<t.length;J={i$jscomp$486:J.i$jscomp$486},J.i$jscomp$486++)if(J.i$jscomp$486<R.length)R[J.i$jscomp$486]!==t[J.i$jscomp$486]&&(Ga(function(y){return function(){return void V[y.i$jscomp$486](t[y.i$jscomp$486])}}(J)),R[J.i$jscomp$486]=t[J.i$jscomp$486]),b[J.i$jscomp$486]=e[J.i$jscomp$486];
else{var G=PeN(function(y){return function(){R[y.i$jscomp$486]=t[y.i$jscomp$486];var S=_.h(_.WU(t[y.i$jscomp$486],void 0,"QVJXFd")),M=S.next().value;S=S.next().value;V[y.i$jscomp$486]=S;b[y.i$jscomp$486]=WE(B.children(M,y.i$jscomp$486))}}(J));
X[J.i$jscomp$486]=G}for(;R.length>t.length;)R.pop(),X.pop()(),V.pop();t.length===0&&!Y&&B.fallback&&(J=PeN(function(){b[0]=WE(B.fallback())}),X[0]=J,Y=!0);
return e=b},{debugName:B.debugInstance,
isControlFlowComponent:!0})};
PeN=function(B){var R=Zv;return dA(function(V){var e=eA(bj);try{V.parent=R,B(V)}finally{eA(e)}},!1)};
_.Sv=function(B){return B};
_.HE=function(B){return{isDefault:!0,children:B.children}};
_.MN=function(B){var R=uod(B),V=_.NW(function(){return OEx(R)},void 0,"BHmkEe");
return Yj(function(){var e=V(),X;dA(function(){var Y=eA(bj);try{X=WE(e())}finally{eA(Y)}});
return X},{debugName:B.debugInstance,
isControlFlowComponent:!0})};
uod=function(B){B=B.children;return Array.isArray(B)?B:[B]};
o_p=function(B){var R=B.props;B=B.getChildren()[0];return R.when?{when:R.when,children:B}:{isDefault:!0,children:B}};
OEx=function(B){var R=function(){return null};
B=_.h(B);for(var V=B.next();!V.done;V=B.next())if(V=V.value,V!=null&&V[uJ]&&(V=V.type===_.HE?{isDefault:!0,children:V.children[0]}:{when:V.props.when,children:V.children[0]}),V instanceof tS&&(V=o_p(V)),V.isDefault)R=V.children;else if(V.when())return V.children;return R};
BBZ=function(B){var R=null,V;return{value:null,onRender:function(e){if(V&&e!==V){var X;(X=R)==null||X();V._disposeRef=void 0}V=e;R=B(e)||null},
onUnmount:function(){var e;(e=R)==null||e();R=null}}};
V6x=function(B){var R=lhx();if(R==null)throw RWx.PRIMITIVE_INVALID_HOOK_CALL();var V=R.hookCounter++;R.hooks||(R.hooks=[]);var e=R.hooks;e[V]||(e[V]={key:B,host:R});if(B!==e[V].key){if(R.JSC$8174___type){var X;B=(X=R.JSC$8174___type)==null?void 0:X.name}else B=R instanceof Uz?Vbp(R.functionComponent):"<"+R.el.tagName.toLowerCase()+">";throw RWx.OUT_OF_ORDER_HOOK_CALL(B);}return e[V]};
eWS=function(B,R){return!B||B.length!==(R==null?void 0:R.length)||B.some(function(V,e){return V!==R[e]})};
kj=function(B,R){var V=V6x("onChange"),e=lhx();eWS(V.deps,R)&&(V.deps=R,V.pendingEffect=B,e.__syncEffects||(e.__syncEffects=[]),e.__syncEffects.push(V))};
hW_=function(B,R){var V;R!=null?V=R:V=_.xNZ(document).getAppContext();V.get(Xwq).JSC$25370_getEventTarget().dispatchEvent(new pw5(Yqu,B,ev))};
_.Dk=function(B,R){var V=V===void 0?{enableDevtools:!1}:V;var e=function(){var Y=eA(bj);try{return dA(function(){var t=_.xNZ(_.zg(B)),b;var J=ZQZ({rootElement:{value:B},appContext:V.appContext||(t==null?void 0:(b=t.getOptionalAppContext)==null?void 0:b.call(t)),dispatcher:t});t=mq(J);J=oP(!0);yP++;try{hS(R(),B),Rtp(!1)}catch(G){throw Rtp(!0),G;}finally{oP(J),mq(t)}},!1)}catch(t){throw OJ.enableContextBasedComponentStacks&&kR(t),t;
}finally{eA(Y)}},X=OJ.enableContextBasedComponentStacks?e():fW(e);
B[t65]=!0;V.legacyTriggerSoyRendererEvents&&hW_(B,V.appContext);return function(){B.textContent="";X();B[t65]=!1}};
_.fQ=function(B){if(oWd(VP)){var R;(R=OJ.handleError)==null||R.call.apply(R,[OJ].concat(_.MI(xR(Error("ac")))))}var V=Zv,e=OJ.enableContextBasedComponentStacks?void 0:SA;Promise.resolve().then(function(){if(V&&!V.isDisposed){var X=mq(V);try{OJ.enableContextBasedComponentStacks?B():fW(function(){return void B()},e)}catch(Y){throw OJ.enableContextBasedComponentStacks&&kR(Y),Y;
}finally{mq(X)}}})};
lj=function(B,R){kj(function(){return tI(B)},R)};
_.zM=function(B){MW()?_.fQ(function(){tI(B)}):kj(function(){return tI(B)},[])};
bnd=function(B){var R=[].concat(_.MI(B));B.length=0;B=_.h(R);for(R=B.next();!R.done;R=B.next()){R=R.value;Whd(R);var V=R.pendingEffect;R.pendingEffect=null;if(V=V==null?void 0:V())R.pendingCleanup=V}};
Whd=function(B){var R=B.pendingCleanup;B.pendingCleanup=null;R==null||R()};
Jmo=function(B,R){if(MW())return B();var V=V6x("useMemoInternal");eWS(V.deps,R)&&(V.deps=R,V.value=B());return V.value};
aP=function(B,R){return Jmo(B,R)};
dg=function(B){return Jmo(B,[])};
jAI=function(){var B=_.HB.apply(0,arguments),R=dg(function(){return B.map(function(V){return _.WU(V,void 0,"lnSD0c")})});
lj(function(){for(var V=0;V<B.length;V++)(0,R[V][1])(B[V])},B);
return R.map(function(V){return _.h(V).next().value})};
wg=function(B){return dg(function(){return{value:B}})};
_.TM=function(B,R){if(!B)return null;B=Object.keys(B);B=_.h(B);for(var V=B.next();!V.done;V=B.next()){V=V.value;var e=V.toLowerCase();if(e.indexOf(R,e.length-R.length)>-1)return V}return null};
_.LQ=function(){var B=arguments,R=_.xj;B.length>1?R[B[0]]=B[1]:B.length===1&&Object.assign(R,B[0])};
_.vE=function(B,R){return B in _.xj?_.xj[B]:R};
_.KQ=function(B,R){return!!_.vE(B,R)};
UKo=function(B){var R=_.xj.EXPERIMENT_FLAGS;return R?R[B]:void 0};
G8p=function(B){NBp.forEach(function(R){return R(B)})};
_.Qh=function(B){return B&&window.yterr?function(){try{return B.apply(this,arguments)}catch(R){_.IP(R)}}:B};
_.IP=function(B){var R=_.qN("yt.logging.errors.log");R?R(B,"ERROR",void 0,void 0,void 0,void 0,void 0):(R=_.vE("ERRORS",[]),R.push([B,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.LQ("ERRORS",R));G8p(B)};
_.cE=function(B,R,V,e,X){var Y=_.qN("yt.logging.errors.log");Y?Y(B,"WARNING",R,V,e,void 0,X):(Y=_.vE("ERRORS",[]),Y.push([B,"WARNING",R,V,e,void 0,X]),_.LQ("ERRORS",Y))};
SqN=function(B,R){R=B.split(R);for(var V={},e=0,X=R.length;e<X;e++){var Y=R[e].split("=");if(Y.length===1&&Y[0]||Y.length===2)try{var t=ymY(Y[0]||""),b=ymY(Y[1]||"");if(t in V){var J=V[t];Array.isArray(J)?_.Vv(J,b):V[t]=[J,b]}else V[t]=b}catch(M){var G=M,y=Y[0],S=String(SqN);G.args=[{key:y,value:Y[1],query:B,method:Hnx===S?"unchanged":S}];M6q.hasOwnProperty(y)||_.cE(G)}}return V};
k8Y=function(B){var R=[];_.M_.forEach(B,function(V,e){var X=_.AS(e);_.ij(Array.isArray(V)?V:[V],function(Y){Y==""?R.push(X):R.push(X+"="+_.AS(Y))})});
return R.join("&")};
_.sz=function(B){B.charAt(0)==="?"&&(B=B.substring(1));return SqN(B,"&")};
_.FW=function(B){return B.indexOf("?")!==-1?(B=(B||"").split("#")[0],B=B.split("?",2),_.sz(B.length>1?B[1]:B[0])):{}};
_.rg=function(B,R){return DKu(B,R||{},!0)};
fpA=function(B,R){return DKu(B,R||{},!1)};
DKu=function(B,R,V){var e=B.split("#",2);B=e[0];e=e.length>1?"#"+e[1]:"";var X=B.split("?",2);B=X[0];X=_.sz(X[1]||"");for(var Y in R)if(V||!_.M_.containsKey(X,Y))X[Y]=R[Y];return _.gg(B,X)+e};
PE=function(B){if(!R)var R=window.location.href;var V=_.Zk(B)[1]||null,e=_.mn(B);return V&&e?CQ(B,R):e?_.mn(R)===e&&(Number(_.Zk(R)[4]||null)||null)===(Number(_.Zk(B)[4]||null)||null):!0};
_.zWK=function(B){B=lpd(B);return B===null?!1:B[0]==="com"&&B[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
lpd=function(B){B=_.mn(B);return B!==null?B.split(".").reverse():null};
ymY=function(B){return B&&B.match(apo)?B:nQ(B)};
_.uj=function(B){return new dK_(B)};
_.Oz=function(){wwI||(wwI=new TBo);return wwI};
LhZ=function(B){var R=_.oC,V,e;_.W(function(X){V=_.Oz();return(e=V.resolve(_.uj(R)))?(B(e),X.return(Promise.resolve(e))):X.return(V.resolve(new xKK(R)).then(function(Y){B(Y);return Y}))})};
_.k=function(B){B=B8(B);return typeof B==="string"&&B==="false"?!1:!!B};
_.RC=function(B,R){B=B8(B);return B===void 0&&R!==void 0?R:Number(B||0)};
v_K=function(B){B=B8(B);return Array.isArray(B)?_.DO(B,function(R){return Number(R||0)}):[Number(B||0)]};
_.V_=function(B){B=B8(B);return B!==void 0?String(B):""};
_.eC=function(B){B=B8(B);return Array.isArray(B)?_.DO(B,function(R){return String(R||"")}):[String(B||"")]};
Khd=function(){return _.vE("EXPERIMENTS_TOKEN","")};
B8=function(B){return _.vE("EXPERIMENT_FLAGS",{})[B]};
Ip5=function(){for(var B=[],R=_.vE("EXPERIMENTS_FORCED_FLAGS",{}),V=_.h(Object.keys(R)),e=V.next();!e.done;e=V.next())e=e.value,B.push({key:e,value:String(R[e])});V=_.vE("EXPERIMENT_FLAGS",{});e=_.h(Object.keys(V));for(var X=e.next();!X.done;X=e.next())X=X.value,X.startsWith("force_")&&R[X]===void 0&&B.push({key:X,value:String(V[X])});return B};
QAq=function(){if(!E_q)return null;var B=E_q();return"open"in B?B:null};
_.qqd=function(B){switch(_.X0(B)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.X0=function(B){return B&&"status"in B?B.status:-1};
_.pq=function(B,R){typeof B==="function"&&(B=_.Qh(B));return window.setTimeout(B,R)};
_.Yz=function(B,R){typeof B==="function"&&(B=_.Qh(B));return window.setInterval(B,R)};
_.hu=function(B){window.clearTimeout(B)};
AmZ=function(B){B=_.FW(B);for(var R=_.h(cm_),V=R.next();!V.done;V=R.next())if(B[V.value]!==void 0)return!0;return!1};
FhY=function(B,R,V,e,X,Y,t,b){V=V===void 0?"GET":V;e=e===void 0?"":e;b=b===void 0?!1:b;var J=QAq();if(!J)return null;var G=function(){(J&&"readyState"in J?J.readyState:0)===4&&R&&_.Qh(R)(J)};
"onloadend"in J?J.addEventListener("loadend",G,!1):J.onreadystatechange=G;_.k("debug_forward_web_query_parameters")&&(B=inS(B,window.location.search));J.open(V,B,!0);Y&&(J.responseType=Y);t&&(J.withCredentials=!0);V=V==="POST"&&(window.FormData===void 0||!(e instanceof FormData));if(X=sAK(B,X))for(var y in X)J.setRequestHeader(y,X[y]),"content-type"===y.toLowerCase()&&(V=!1);V&&J.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(b&&"setAttributionReporting"in XMLHttpRequest.prototype){B=
{eventSourceEligible:!0,triggerEligible:!1};try{J.setAttributionReporting(B)}catch(S){_.cE(S)}}J.send(e);return J};
sAK=function(B,R){R=R===void 0?{}:R;var V=PE(B),e=_.vE("INNERTUBE_CLIENT_NAME"),X=_.k("web_ajax_ignore_global_headers_if_set"),Y;for(Y in rmN){var t=_.vE(rmN[Y]),b=Y==="X-Goog-AuthUser"||Y==="X-Goog-PageId";Y!=="X-Goog-Visitor-Id"||t||(t=_.vE("VISITOR_DATA"));var J;if(!(J=!t)){if(!(J=V||(_.mn(B)?!1:!0))){J=B;var G;if(G=_.k("add_auth_headers_to_remarketing_google_dot_com_ping")&&Y==="Authorization"&&(e==="TVHTML5"||e==="TVHTML5_UNPLUGGED"||e==="TVHTML5_SIMPLY"))G=lpd(J),G=G===null?!1:G[1]==="google"?
!0:G[2]==="google"?G[0]==="au"&&G[1]==="com"?!0:G[0]==="uk"&&G[1]==="co"?!0:!1:!1;G&&(J=_.tu(J)||"",J=J.split("/"),J="/"+(J.length>1?J[1]:""),G=J==="/pagead");J=G?!0:!1}J=!J}J||X&&R[Y]!==void 0||e==="TVHTML5_UNPLUGGED"&&b||(R[Y]=t)}"X-Goog-EOM-Visitor-Id"in R&&"X-Goog-Visitor-Id"in R&&delete R["X-Goog-Visitor-Id"];if(V||!_.mn(B))R["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(V||!_.mn(B)){try{var y=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(S){}y&&(R["X-YouTube-Time-Zone"]=
y)}document.location.hostname.endsWith("youtubeeducation.com")||!V&&_.mn(B)||(R["X-YouTube-Ad-Signals"]=k8Y(g_p()));return R};
_.ZnY=function(B,R){var V=_.mn(B);_.k("debug_handle_relative_url_for_query_forward_killswitch")||!V&&PE(B)&&(V=document.location.hostname);var e=_.tu(B);e=(V=V&&(V.endsWith("youtube.com")||V.endsWith("youtube-nocookie.com")))&&e&&e.startsWith("/api/");if(!V||e)return B;var X=_.sz(R),Y={};_.ij(cm_,function(t){X[t]&&(Y[t]=X[t])});
return fpA(B,Y)};
mKN=function(B,R){R.method="POST";R.postParams||(R.postParams={});return _.W8(B,R)};
$Kd=function(B,R){var V=_.vE("XSRF_FIELD_NAME"),e;R.headers&&(e=R.headers["Content-Type"]);return!R.excludeXsrf&&(!_.mn(B)||R.withCredentials||_.mn(B)===document.location.hostname)&&R.method==="POST"&&(!e||e==="application/x-www-form-urlencoded")&&!(R.postParams&&R.postParams[V])};
_.W8=function(B,R){var V=R.format||"JSON";B=CA_(B,R);var e=PAN(B,R),X=!1,Y=n_u(B,function(J){if(!X){X=!0;b&&_.hu(b);var G=_.qqd(J),y=null,S=400<=J.status&&J.status<500,M=500<=J.status&&J.status<600;if(G||S||M)y=uiu(B,V,J,R.convertToSafeHtml);G&&(G=OnZ(V,J,y));y=y||{};S=R.context||_.R5;G?R.onSuccess&&R.onSuccess.call(S,J,y):R.onError&&R.onError.call(S,J,y);R.onFinish&&R.onFinish.call(S,J,y)}},R.method,e,R.headers,R.responseType,R.withCredentials);
e=R.timeout||0;if(R.onTimeout&&e>0){var t=R.onTimeout;var b=_.pq(function(){X||(X=!0,Y.abort(),_.hu(b),t.call(R.context||_.R5,Y))},e)}return Y};
CA_=function(B,R){R.includeDomain&&(B=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+B);var V=_.vE("XSRF_FIELD_NAME");if(R=R.urlParams)R[V]&&delete R[V],B=_.rg(B,R);return B};
PAN=function(B,R){var V=_.vE("XSRF_FIELD_NAME"),e=_.vE("XSRF_TOKEN"),X=R.postBody||"",Y=R.postParams;$Kd(B,R)&&(Y||(Y={}),Y[V]=e);(_.k("ajax_parse_query_data_only_when_filled")&&Y&&Object.keys(Y).length>0||Y)&&typeof X==="string"&&(X=_.sz(X),_.M_.extend(X,Y),X=R.postBodyFormat&&R.postBodyFormat==="JSON"?JSON.stringify(X):_.bN(X));Y=X||Y&&!_.M_.isEmpty(Y);!oaZ&&Y&&R.method!=="POST"&&(oaZ=!0,_.IP(Error("Gc")));return X};
uiu=function(B,R,V,e){var X=null;switch(R){case "JSON":try{var Y=V.responseText}catch(t){throw e=Error("Hc"),e.params=B,_.cE(e),t;}B=V.getResponseHeader("Content-Type")||"";Y&&B.indexOf("json")>=0&&(Y.substring(0,5)===")]}'\n"&&(Y=Y.substring(5)),X=JSON.parse(Y));break;case "XML":if(B=(B=V.responseXML)?BTZ(B):null)X={},_.ij(B.getElementsByTagName("*"),function(t){X[t.tagName]=R6o(t)})}e&&VkS(X);
return X};
VkS=function(B){if(_.Xa(B))for(var R in B)R==="html_content"||tA(R,"_html")?B[R]=aa(B[R]):VkS(B[R])};
OnZ=function(B,R,V){if(R&&R.status===204)return!0;switch(B){case "JSON":return!!V;case "XML":return Number(V&&V.return_code)===0;case "RAW":return!0;default:return!!V}};
BTZ=function(B){return B?(B=("responseXML"in B?B.responseXML:B).getElementsByTagName("root"))&&B.length>0?B[0]:null:null};
R6o=function(B){var R="";_.ij(B.childNodes,function(V){R+=V.nodeValue});
return R};
e6Y=function(B){if(B.name==="JavaException")return!0;B=B.stack;return B.includes("chrome://")||B.includes("chrome-extension://")||B.includes("moz-extension://")};
XJA=function(B){if(!B.stack)return!0;var R=!B.stack.includes("\n");return R&&B.stack.includes("ErrorType: ")||R&&B.stack.includes("Anonymous function (Unknown script")||B.stack.toLowerCase()==="not available"?!0:!1};
_.Ju=function(B){_.Hn.call(this);this.JSC$8352_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!B};
YIK=function(B,R){var V=B.length,e=0,X=function(){return B.charCodeAt(e++)};
do{var Y=pJ_(X);if(Y===Infinity)break;var t=Y>>3;switch(Y&7){case 0:Y=pJ_(X);if(t===R)return Y;break;case 1:if(t===R)return;e+=8;break;case 2:Y=pJ_(X);if(t===R)return B.substr(e,Y);e+=Y;break;case 5:if(t===R)return;e+=4;break;default:return}}while(e<V)};
pJ_=function(B){var R=B(),V=R&127;if(R<128)return V;R=B();V|=(R&127)<<7;if(R<128)return V;R=B();V|=(R&127)<<14;if(R<128)return V;R=B();return R<128?V|(R&127)<<21:Infinity};
tkK=function(B,R,V,e){if(B)if(Array.isArray(B)){var X=e;for(e=0;e<B.length&&!(B[e]&&(X+=h6o(e,B[e],R,V),X>500));e++);e=X}else if(typeof B==="object")for(X in B){if(B[X]){var Y=X;var t=B[X],b=R,J=V;Y=typeof t!=="string"||Y!=="clickTrackingParams"&&Y!=="trackingParams"?0:(t=YIK(atob(t.replace(/-/g,"+").replace(/_/g,"/")),2))?h6o(Y+".ve",t,b,J):0;e+=Y;e+=h6o(X,B[X],R,V);if(e>500)break}}else V[R]=jC(B),e+=V[R].length;else V[R]=jC(B),e+=V[R].length;return e};
h6o=function(B,R,V,e){V+="."+B;B=jC(R);e[V]=B;return V.length+B.length};
jC=function(B){try{return(typeof B==="string"?B:String(JSON.stringify(B))).substr(0,500)}catch(R){return"unable to serialize "+typeof B+" ("+R.message+")"}};
Wcx=function(B){switch(B){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}};
_.Nn=function(B,R,V,e,X){_.UB.set(B,R,{maxAge:V,path:"/",domain:e===void 0?"youtube.com":e,secure:X===void 0?!1:X})};
_.bpN=function(B,R,V){_.UB.remove(B,R===void 0?"/":R,V===void 0?"youtube.com":V)};
_.GK=function(){if(_.k("embeds_web_enable_cookie_detection_fix")){if(!_.R5.navigator.cookieEnabled)return!1}else if(!_.UB.isEnabled())return!1;if(!_.UB.isEmpty())return!0;_.k("embeds_web_enable_cookie_detection_fix")?_.UB.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.UB.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.UB.get("TESTCOOKIESENABLED")!=="1")return!1;_.UB.remove("TESTCOOKIESENABLED");return!0};
JZx=function(){var B=_.R5.navigator;return B?B.connection:void 0};
jLu=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(B){}};
_.NTZ=function(){var B=JZx();if(B){var R=UrS[B.type||"unknown"]||"CONN_UNKNOWN";B=UrS[B.effectiveType||"unknown"]||"CONN_UNKNOWN";R==="CONN_CELLULAR_UNKNOWN"&&B!=="CONN_UNKNOWN"&&(R=B);if(R!=="CONN_UNKNOWN")return R;if(B!=="CONN_UNKNOWN")return B}};
yZp=function(){var B=JZx();if(B!=null&&B.effectiveType)return GEd.hasOwnProperty(B.effectiveType)?GEd[B.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.SC=function(){try{return _.y_(),!0}catch(B){return!1}};
_.y_=function(B){if(_.vE("DATASYNC_ID")!==void 0)return _.vE("DATASYNC_ID");throw new _.H8("Datasync ID not set",B===void 0?"unknown":B);};
_.Mn=function(B){this.mechanism=B};
kz=function(B){this.mechanism=B};
DN=function(B){this.storage_=B;this.cachedIsStorageAvailable_=null};
SId=function(){var B=null;try{B=_.R5.localStorage||null}catch(R){}DN.call(this,B)};
HpA=function(){var B=null;try{B=_.R5.sessionStorage||null}catch(R){}DN.call(this,B)};
fq=function(B,R){this.mechanism_=B;this.JSC$8454_prefix_=R+"::"};
_.MkN=function(B){var R=new SId;return R.isAvailable()?B?new fq(R,B):R:null};
_.kEA=function(B){var R=new HpA;return R.isAvailable()?B?new fq(R,B):R:null};
fgd=function(){var B;return(B=Drd())==null?void 0:B.get("LAST_RESULT_ENTRY_KEY",!0)};
_.aC=function(B){lg_||(_.lN?_.lN.logError(B):(_.zK.push({type:"ERROR",payload:B}),_.zK.length>10&&_.zK.shift()))};
dS=function(B,R){lg_||(_.lN?_.lN.logEvent(B,R):(_.zK.push({type:"EVENT",eventType:B,payload:R}),_.zK.length>10&&_.zK.shift()))};
wS=function(B){if(B.indexOf(":")>=0)throw Error("Oc");};
TK=function(B){return B.substr(0,B.indexOf(":"))||B};
drN=function(){return(z6S||agd)&&xz("applewebkit")&&!xz("version")&&(!xz("safari")||xz("gsa/"))};
xz=function(B){var R=_.G_();return R?R.toLowerCase().indexOf(B)>=0:!1};
xrZ=function(B,R,V,e){R=TK(R);var X=B instanceof Error?B:Error("Pc`"+B);if(X instanceof Lq)return X;B={objectStoreNames:V,dbName:R,dbVersion:e};if(X.name==="QuotaExceededError")return new Lq("QUOTA_EXCEEDED",B);if(_.v8&&X.name==="UnknownError")return new Lq("QUOTA_MAYBE_EXCEEDED",B);if(X instanceof wJo)return new Lq("MISSING_INDEX",Object.assign({},B,{objectStore:X.objectStore,index:X.index}));if(X.name==="InvalidStateError"&&TTx.some(function(Y){return X.message.includes(Y)}))return new Lq("EXECUTE_TRANSACTION_ON_CLOSED_DB",
B);
if(X.name==="AbortError")return new Lq("UNKNOWN_ABORT",B,X.message);X.args=[Object.assign({},B,{name:"IdbError",originalName:X.name})];X.level="WARNING";return X};
Kq=function(B,R,V){var e=fgd();return new Lq("IDB_NOT_SUPPORTED",{context:{caller:B,publicName:R,version:V,hasSucceededOnce:e==null?void 0:e.hasSucceededOnce}})};
LcZ=function(B){if(!B)throw Error();throw B;};
vad=function(B){return B};
Kcp=function(B,R,V){var e=function(){try{B.removeEventListener("success",X),B.removeEventListener("error",Y)}catch(t){}},X=function(){R(B.result);
e()},Y=function(){V(B.error);
e()};
B.addEventListener("success",X);B.addEventListener("error",Y)};
IgK=function(B){return new Promise(function(R,V){Kcp(B,R,V)})};
Q_=function(B){return new IC(new EB(function(R,V){Kcp(B,R,V)}))};
EaZ=function(B,R){return new IC(new EB(function(V,e){var X=function(){var Y=B?R(B):null;Y?Y.then(function(t){B=t;X()},e):V()};
X()}))};
qIS=function(B,R,V){return new Promise(function(e,X){var Y=R!==void 0?self.indexedDB.open(B,R):self.indexedDB.open(B);var t=V.blocked,b=V.blocking,J=V.terminated,G=V.upgrade,y=V.closed,S,M=function(){S||(S=new qn(Y.result,{closed:y}));return S};
Y.addEventListener("upgradeneeded",function(f){try{if(f.newVersion===null)throw Error("Uc");if(Y.transaction===null)throw Error("Vc");f.dataLoss&&f.dataLoss!=="none"&&dS("IDB_DATA_CORRUPTED",{reason:f.dataLossMessage||"unknown reason",dbName:TK(B)});var z=M(),T=new QLA(Y.transaction);G&&G(z,function(L){return f.oldVersion<L&&f.newVersion>=L},T);
T.done.catch(function(L){X(L)})}catch(L){X(L)}});
Y.addEventListener("success",function(){var f=Y.result;b&&f.addEventListener("versionchange",function(){b(M())});
f.addEventListener("close",function(){dS("IDB_UNEXPECTEDLY_CLOSED",{dbName:TK(B),dbVersion:f.version});J&&J()});
e(M())});
Y.addEventListener("error",function(){X(Y.error)});
t&&Y.addEventListener("blocked",function(){t()})})};
cZI=function(B,R,V){V=V===void 0?{}:V;return qIS(B,R,V)};
_.Au=function(B,R){R=R===void 0?{}:R;var V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return _.en(t,2),V=self.indexedDB.deleteDatabase(B),e=R,(X=e.blocked)&&V.addEventListener("blocked",function(){X()}),_.U(t,IgK(V),4);
if(t.nextAddress!=2)return _.c8(t,0);Y=_.WR(t);throw xrZ(Y,B,"",-1);})};
ipx=function(B,R){var V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,_.iN(AZd,R),2);V=e.yieldResult;return e.return(_.sB(V,["databases"],{enableRetries:!0,mode:"readwrite"},function(X){var Y=X.objectStore("databases");return Y.get(B.actualName).then(function(t){if(t?B.actualName!==t.actualName||B.publicName!==t.publicName||B.userIdentifier!==t.userIdentifier:1)return Y.put(B).then(function(){})})}))})};
_.F0=function(B,R){var V;return _.W(function(e){if(e.nextAddress==1)return B?_.U(e,_.iN(AZd,R),2):e.return();V=e.yieldResult;return e.return(V.delete("databases",B))})};
_.sL_=function(B,R){var V,e;return _.W(function(X){return X.nextAddress==1?(V=[],_.U(X,_.iN(AZd,R),2)):X.nextAddress!=3?(e=X.yieldResult,_.U(X,_.sB(e,["databases"],{enableRetries:!0,mode:"readonly"},function(Y){V.length=0;return rS(Y.objectStore("databases"),{},function(t){B(t.getValue())&&V.push(t.getValue());return t.continue()})}),3)):X.return(V)})};
Fc_=function(B,R){return _.sL_(function(V){return V.publicName===B&&V.userIdentifier!==void 0},R)};
ZpZ=function(){var B,R,V,e;return _.W(function(X){switch(X.nextAddress){case 1:B=fgd();if((R=B)==null?0:R.hasSucceededOnce)return X.return(!0);var Y;if(Y=rZp)Y=/WebKit\/([0-9]+)/.exec(_.G_()),Y=!!(Y&&parseInt(Y[1],10)>=600);Y&&(Y=/WebKit\/([0-9]+)/.exec(_.G_()),Y=!(Y&&parseInt(Y[1],10)>=602));if(Y||gS)return X.return(!1);try{if(V=self,!(V.indexedDB&&V.IDBIndex&&V.IDBKeyRange&&V.IDBObjectStore))return X.return(!1)}catch(t){return X.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return X.return(!1);
_.en(X,2);e={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.U(X,ipx(e,gad),4);case 4:return _.U(X,_.F0("yt-idb-test-do-not-use",gad),5);case 5:return X.return(!0);case 2:return _.WR(X),X.return(!1)}})};
$rN=function(){if(mru!==void 0)return mru;lg_=!0;return mru=ZpZ().then(function(B){lg_=!1;var R;if((R=Drd())!=null&&R.expiringStorage_){var V;R={hasSucceededOnce:((V=fgd())==null?void 0:V.hasSucceededOnce)||B};var e;(e=Drd())==null||e.set("LAST_RESULT_ENTRY_KEY",R,2592E3,!0)}return B})};
ZN=function(){return _.qN("ytglobal.idbToken_")||void 0};
_.$z=function(){var B=ZN();return B?Promise.resolve(B):$rN().then(function(R){(R=R?gad:void 0)&&_.mk("ytglobal.idbToken_",R);return R})};
Cs5=function(B){if(!_.SC())throw B=new Lq("AUTH_INVALID",{dbName:B}),_.aC(B),B;var R=_.y_();return{actualName:B+":"+R,publicName:B,userIdentifier:R}};
PsN=function(B,R,V,e){var X,Y,t,b,J,G;return _.W(function(y){switch(y.nextAddress){case 1:return Y=(X=Error().stack)!=null?X:"",_.U(y,_.$z(),2);case 2:t=y.yieldResult;if(!t)throw b=Kq("openDbImpl",B,R),_.k("ytidb_async_stack_killswitch")||(b.stack=b.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),_.aC(b),b;wS(B);J=V?{actualName:B,publicName:B,userIdentifier:void 0}:Cs5(B);_.en(y,3);return _.U(y,ipx(J,t),5);case 5:return _.U(y,cZI(J.actualName,R,e),6);case 6:return y.return(y.yieldResult);case 3:return G=
_.WR(y),_.en(y,7),_.U(y,_.F0(J.actualName,t),9);case 9:_.c8(y,8);break;case 7:_.WR(y);case 8:throw G;}})};
nau=function(B,R,V){V=V===void 0?{}:V;return PsN(B,R,!1,V)};
uOd=function(B,R,V){V=V===void 0?{}:V;return PsN(B,R,!0,V)};
OpY=function(B,R){R=R===void 0?{}:R;var V,e;return _.W(function(X){if(X.nextAddress==1)return _.U(X,_.$z(),2);if(X.nextAddress!=3){V=X.yieldResult;if(!V)return X.return();wS(B);e=Cs5(B);return _.U(X,_.Au(e.actualName,R),3)}return _.U(X,_.F0(e.actualName,V),0)})};
o8o=function(B,R,V){B=B.map(function(e){return _.W(function(X){return X.nextAddress==1?_.U(X,_.Au(e.actualName,R),2):_.U(X,_.F0(e.actualName,V),0)})});
return Promise.all(B).then(function(){})};
Bix=function(B){var R=R===void 0?{}:R;var V,e;return _.W(function(X){if(X.nextAddress==1)return _.U(X,_.$z(),2);if(X.nextAddress!=3){V=X.yieldResult;if(!V)return X.return();wS(B);return _.U(X,Fc_(B,V),3)}e=X.yieldResult;return _.U(X,o8o(e,R,V),0)})};
Rep=function(B,R){R=R===void 0?{}:R;var V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,_.$z(),2);if(e.nextAddress!=3){V=e.yieldResult;if(!V)return e.return();wS(B);return _.U(e,_.Au(B,R),3)}return _.U(e,_.F0(B,V),0)})};
Cq=function(B,R){return VOx(B,R)};
Xzp=function(B){return _.iN(ee5(),B)};
pzp=function(B,R,V,e){var X,Y,t;return _.W(function(b){switch(b.nextAddress){case 1:return X={config:B,hashData:R,timestamp:e!==void 0?e:(0,_.P8)()},_.U(b,Xzp(V),2);case 2:return Y=b.yieldResult,_.U(b,Y.clear("hotConfigStore"),3);case 3:return _.U(b,Y.put("hotConfigStore",X),4);case 4:return t=b.yieldResult,b.return(t)}})};
YVI=function(B,R,V,e,X){var Y,t,b;return _.W(function(J){switch(J.nextAddress){case 1:return Y={config:B,hashData:R,configData:V,timestamp:X!==void 0?X:(0,_.P8)()},_.U(J,Xzp(e),2);case 2:return t=J.yieldResult,_.U(J,t.clear("coldConfigStore"),3);case 3:return _.U(J,t.put("coldConfigStore",Y),4);case 4:return b=J.yieldResult,J.return(b)}})};
he5=function(B){var R,V;return _.W(function(e){return e.nextAddress==1?_.U(e,Xzp(B),2):e.nextAddress!=3?(R=e.yieldResult,V=void 0,_.U(e,_.sB(R,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(X){return _.nq(X.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(Y){V=Y.getValue()})}),3)):e.return(V)})};
tOd=function(B){var R,V;return _.W(function(e){return e.nextAddress==1?_.U(e,Xzp(B),2):e.nextAddress!=3?(R=e.yieldResult,V=void 0,_.U(e,_.sB(R,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(X){return _.nq(X.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(Y){V=Y.getValue()})}),3)):e.return(V)})};
Wyu=function(){return _.W(function(B){return _.U(B,Bix("ytGcfConfig"),0)})};
b0o=function(){return"INNERTUBE_API_KEY"in _.xj&&"INNERTUBE_API_VERSION"in _.xj};
_.uN=function(){return{innertubeApiKey:_.vE("INNERTUBE_API_KEY"),innertubeApiVersion:_.vE("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.vE("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.vE("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.vE("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.vE("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.vE("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.vE("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.vE("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.KQ("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.KQ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.vE("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.SVK=function(B){var R={client:{hl:B.innertubeContextHostLanguage,gl:B.innertubeContextGeoLocation,clientName:B.innertubeContextClientName,clientVersion:B.innertubeContextClientVersion,configInfo:B.innertubeContextClientConfigInfo}};navigator.userAgent&&(R.client.userAgent=String(navigator.userAgent));var V=_.R5.devicePixelRatio;V&&V!=1&&(R.client.screenDensityFloat=String(V));V=Khd();V!==""&&(R.client.experimentsToken=V);V=Ip5();V.length>0&&(R.request={internalExperimentFlags:V});JE_(B,void 0,R);
jFN(void 0,R);Ud5(void 0,R);NiI(B,void 0,R);Gp_(void 0,R);_.k("start_client_gcf")&&yEd(void 0,R);_.vE("DELEGATED_SESSION_ID")&&!_.k("pageid_as_header_web")&&(R.user={onBehalfOfUser:_.vE("DELEGATED_SESSION_ID")});!_.k("fill_delegate_context_in_gel_killswitch")&&(B=_.vE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(R.user=Object.assign({},R.user,{serializedDelegationContext:B}));B=_.vE("INNERTUBE_CONTEXT");var e;if(_.k("enable_persistent_device_token")&&(B==null?0:(e=B.client)==null?0:e.rolloutToken)){var X;
R.client.rolloutToken=B==null?void 0:(X=B.client)==null?void 0:X.rolloutToken}e=Object;X=e.assign;B=R.client;V={};for(var Y=_.h(Object.entries(_.sz(_.vE("DEVICE","")))),t=Y.next();!t.done;t=Y.next()){var b=_.h(t.value);t=b.next().value;b=b.next().value;t==="cbrand"?V.deviceMake=b:t==="cmodel"?V.deviceModel=b:t==="cbr"?V.browserName=b:t==="cbrver"?V.browserVersion=b:t==="cos"?V.osName=b:t==="cosver"?V.osVersion=b:t==="cplatform"&&(V.platform=b)}R.client=X.call(e,B,V);return R};
JE_=function(B,R,V){B=B.innertubeContextClientName;if(B==="WEB"||B==="MWEB"||B===1||B===2)if(R){V=_.OB(R,H0A,96)||new H0A;var e=MOY();e=Object.keys(kpY).indexOf(e);e=e===-1?null:e;e!==null&&_.ou(V,3,e);_.Ra(R,96,V)}else V&&(V.client.mainAppWebInfo=(e=V.client.mainAppWebInfo)!=null?e:{},V.client.mainAppWebInfo.webDisplayMode=MOY())};
jFN=function(B,R){var V=_.qN("yt.embedded_player.embed_url");V&&(B?(R=_.OB(B,DdI,7)||new DdI,_.bg(R,4,V),_.Ra(B,7,R)):R&&(R.thirdParty={embedUrl:V}))};
Ud5=function(B,R){var V;if(_.k("web_log_memory_total_kbytes")&&((V=_.R5.navigator)==null?0:V.deviceMemory)){var e;V=(e=_.R5.navigator)==null?void 0:e.deviceMemory;B?_.Bf(B,95,Le(V*1E6)):R&&(R.client.memoryTotalKbytes=""+V*1E6)}};
NiI=function(B,R,V){if(B.appInstallData)if(R){var e;V=(e=_.OB(R,Ru,62))!=null?e:new Ru;_.bg(V,6,B.appInstallData);_.Ra(R,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},V.client.configInfo.appInstallData=B.appInstallData)};
Gp_=function(B,R){var V=_.NTZ();V&&(B?_.ou(B,61,fIZ[V]):R&&(R.client.connectionType=V));_.k("web_log_effective_connection_type")&&(V=yZp())&&(B?_.ou(B,94,lI_[V]):R&&(R.client.effectiveConnectionType=V))};
_.ddI=function(B,R,V){V=V===void 0?{}:V;var e={};_.vE("EOM_VISITOR_DATA")?e={"X-Goog-EOM-Visitor-Id":_.vE("EOM_VISITOR_DATA")}:e={"X-Goog-Visitor-Id":V.visitorData||_.vE("VISITOR_DATA","")};if(R&&R.includes("www.youtube-nocookie.com"))return e;R=V.authorization||_.vE("AUTHORIZATION");R||(B?R="Bearer "+_.qN("gapi.auth.getToken")().access_token:(zeo.instance||(zeo.instance=new zeo),B=aId(),_.k("pageid_as_header_web")||delete B["X-Goog-PageId"],e=Object.assign({},e,B)));R&&(e.Authorization=R);return e};
yEd=function(B,R){var V=wzx();if(V){var e=V.coldConfigData,X=V.coldHashData;V=V.hotHashData;if(B){var Y;R=(Y=_.OB(B,Ru,62))!=null?Y:new Ru;e=_.bg(R,1,e);_.bg(e,3,X).setHotHashData(V);_.Ra(B,62,R)}else R&&(R.client.configInfo=R.client.configInfo||{},e&&(R.client.configInfo.coldConfigData=e),X&&(R.client.configInfo.coldHashData=X),V&&(R.client.configInfo.hotHashData=V))}};
VX=function(B){for(var R=B.length;--R>=0;)B[R]=0};
Tid=function(B,R,V,e,X){this.static_tree=B;this.extra_bits=R;this.extra_base=V;this.elems=e;this.max_length=X;this.has_stree=B&&B.length};
xdp=function(B,R){this.dyn_tree=B;this.max_code=0;this.stat_desc=R};
eb=function(B,R){B.pending_buf[B.pending++]=R&255;B.pending_buf[B.pending++]=R>>>8&255};
Xy=function(B,R,V){B.bi_valid>16-V?(B.bi_buf|=R<<B.bi_valid&65535,eb(B,B.bi_buf),B.bi_buf=R>>16-B.bi_valid,B.bi_valid+=V-16):(B.bi_buf|=R<<B.bi_valid&65535,B.bi_valid+=V)};
p6=function(B,R,V){Xy(B,V[R*2],V[R*2+1])};
LyA=function(B,R){var V=0;do V|=B&1,B>>>=1,V<<=1;while(--R>0);return V>>>1};
v8d=function(B,R,V){var e=Array(16),X=0,Y;for(Y=1;Y<=15;Y++)e[Y]=X=X+V[Y-1]<<1;for(V=0;V<=R;V++)X=B[V*2+1],X!==0&&(B[V*2]=LyA(e[X]++,X))};
Kyx=function(B){var R;for(R=0;R<286;R++)B.dyn_ltree[R*2]=0;for(R=0;R<30;R++)B.dyn_dtree[R*2]=0;for(R=0;R<19;R++)B.bl_tree[R*2]=0;B.dyn_ltree[512]=1;B.opt_len=B.static_len=0;B.last_lit=B.matches=0};
II_=function(B){B.bi_valid>8?eb(B,B.bi_buf):B.bi_valid>0&&(B.pending_buf[B.pending++]=B.bi_buf);B.bi_buf=0;B.bi_valid=0};
E8_=function(B,R,V){II_(B);eb(B,V);eb(B,~V);YW.arraySet(B.pending_buf,B.window,R,V,B.pending);B.pending+=V};
QFS=function(B,R,V,e){var X=R*2,Y=V*2;return B[X]<B[Y]||B[X]===B[Y]&&e[R]<=e[V]};
qVd=function(B,R,V){for(var e=B.heap[V],X=V<<1;X<=B.heap_len;){X<B.heap_len&&QFS(R,B.heap[X+1],B.heap[X],B.depth)&&X++;if(QFS(R,e,B.heap[X],B.depth))break;B.heap[V]=B.heap[X];V=X;X<<=1}B.heap[V]=e};
Fyp=function(B,R,V){var e=0;if(B.last_lit!==0){do{var X=B.pending_buf[B.d_buf+e*2]<<8|B.pending_buf[B.d_buf+e*2+1];var Y=B.pending_buf[B.l_buf+e];e++;if(X===0)p6(B,Y,R);else{var t=h$[Y];p6(B,t+256+1,R);var b=cEx[t];b!==0&&(Y-=AEY[t],Xy(B,Y,b));X--;t=X<256?t$[X]:t$[256+(X>>>7)];p6(B,t,V);b=i0_[t];b!==0&&(X-=sFN[t],Xy(B,X,b))}}while(e<B.last_lit)}p6(B,256,R)};
rEI=function(B,R){var V=R.dyn_tree,e=R.stat_desc.static_tree,X=R.stat_desc.has_stree,Y=R.stat_desc.elems,t,b=-1;B.heap_len=0;B.heap_max=573;for(t=0;t<Y;t++)V[t*2]!==0?(B.heap[++B.heap_len]=b=t,B.depth[t]=0):V[t*2+1]=0;for(;B.heap_len<2;){var J=B.heap[++B.heap_len]=b<2?++b:0;V[J*2]=1;B.depth[J]=0;B.opt_len--;X&&(B.static_len-=e[J*2+1])}R.max_code=b;for(t=B.heap_len>>1;t>=1;t--)qVd(B,V,t);J=Y;do t=B.heap[1],B.heap[1]=B.heap[B.heap_len--],qVd(B,V,1),e=B.heap[1],B.heap[--B.heap_max]=t,B.heap[--B.heap_max]=
e,V[J*2]=V[t*2]+V[e*2],B.depth[J]=(B.depth[t]>=B.depth[e]?B.depth[t]:B.depth[e])+1,V[t*2+1]=V[e*2+1]=J,B.heap[1]=J++,qVd(B,V,1);while(B.heap_len>=2);B.heap[--B.heap_max]=B.heap[1];t=R.dyn_tree;J=R.max_code;e=R.stat_desc.static_tree;X=R.stat_desc.has_stree;Y=R.stat_desc.extra_bits;var G=R.stat_desc.extra_base,y=R.stat_desc.max_length,S,M=0;for(S=0;S<=15;S++)B.bl_count[S]=0;t[B.heap[B.heap_max]*2+1]=0;for(R=B.heap_max+1;R<573;R++){var f=B.heap[R];S=t[t[f*2+1]*2+1]+1;S>y&&(S=y,M++);t[f*2+1]=S;if(!(f>
J)){B.bl_count[S]++;var z=0;f>=G&&(z=Y[f-G]);var T=t[f*2];B.opt_len+=T*(S+z);X&&(B.static_len+=T*(e[f*2+1]+z))}}if(M!==0){do{for(S=y-1;B.bl_count[S]===0;)S--;B.bl_count[S]--;B.bl_count[S+1]+=2;B.bl_count[y]--;M-=2}while(M>0);for(S=y;S!==0;S--)for(f=B.bl_count[S];f!==0;)e=B.heap[--R],e>J||(t[e*2+1]!==S&&(B.opt_len+=(S-t[e*2+1])*t[e*2],t[e*2+1]=S),f--)}v8d(V,b,B.bl_count)};
g8q=function(B,R,V){var e,X=-1,Y=R[1],t=0,b=7,J=4;Y===0&&(b=138,J=3);R[(V+1)*2+1]=65535;for(e=0;e<=V;e++){var G=Y;Y=R[(e+1)*2+1];++t<b&&G===Y||(t<J?B.bl_tree[G*2]+=t:G!==0?(G!==X&&B.bl_tree[G*2]++,B.bl_tree[32]++):t<=10?B.bl_tree[34]++:B.bl_tree[36]++,t=0,X=G,Y===0?(b=138,J=3):G===Y?(b=6,J=3):(b=7,J=4))}};
Z0S=function(B,R,V){var e,X=-1,Y=R[1],t=0,b=7,J=4;Y===0&&(b=138,J=3);for(e=0;e<=V;e++){var G=Y;Y=R[(e+1)*2+1];if(!(++t<b&&G===Y)){if(t<J){do p6(B,G,B.bl_tree);while(--t!==0)}else G!==0?(G!==X&&(p6(B,G,B.bl_tree),t--),p6(B,16,B.bl_tree),Xy(B,t-3,2)):t<=10?(p6(B,17,B.bl_tree),Xy(B,t-3,3)):(p6(B,18,B.bl_tree),Xy(B,t-11,7));t=0;X=G;Y===0?(b=138,J=3):G===Y?(b=6,J=3):(b=7,J=4)}}};
mdS=function(B){var R=4093624447,V;for(V=0;V<=31;V++,R>>>=1)if(R&1&&B.dyn_ltree[V*2]!==0)return 0;if(B.dyn_ltree[18]!==0||B.dyn_ltree[20]!==0||B.dyn_ltree[26]!==0)return 1;for(V=32;V<256;V++)if(B.dyn_ltree[V*2]!==0)return 1;return 0};
Wf=function(B,R,V){B.pending_buf[B.d_buf+B.last_lit*2]=R>>>8&255;B.pending_buf[B.d_buf+B.last_lit*2+1]=R&255;B.pending_buf[B.l_buf+B.last_lit]=V&255;B.last_lit++;R===0?B.dyn_ltree[V*2]++:(B.matches++,R--,B.dyn_ltree[(h$[V]+256+1)*2]++,B.dyn_dtree[(R<256?t$[R]:t$[256+(R>>>7)])*2]++);return B.last_lit===B.lit_bufsize-1};
jb=function(B,R){B.msg=bf[R];return R};
U7=function(B){for(var R=B.length;--R>=0;)B[R]=0};
NC=function(B){var R=B.state,V=R.pending;V>B.avail_out&&(V=B.avail_out);V!==0&&(YW.arraySet(B.output,R.pending_buf,R.pending_out,V,B.next_out),B.next_out+=V,R.pending_out+=V,B.total_out+=V,B.avail_out-=V,R.pending-=V,R.pending===0&&(R.pending_out=0))};
Hf=function(B,R){var V=B.block_start>=0?B.block_start:-1,e=B.strstart-B.block_start,X=0;if(B.level>0){B.strm.data_type===2&&(B.strm.data_type=mdS(B));rEI(B,B.l_desc);rEI(B,B.d_desc);g8q(B,B.dyn_ltree,B.l_desc.max_code);g8q(B,B.dyn_dtree,B.d_desc.max_code);rEI(B,B.bl_desc);for(X=18;X>=3&&B.bl_tree[$dd[X]*2+1]===0;X--);B.opt_len+=3*(X+1)+5+5+4;var Y=B.opt_len+3+7>>>3;var t=B.static_len+3+7>>>3;t<=Y&&(Y=t)}else Y=t=e+5;if(e+4<=Y&&V!==-1)Xy(B,R?1:0,3),E8_(B,V,e);else if(B.strategy===4||t===Y)Xy(B,2+(R?
1:0),3),Fyp(B,yX,Sb);else{Xy(B,4+(R?1:0),3);V=B.l_desc.max_code+1;e=B.d_desc.max_code+1;X+=1;Xy(B,V-257,5);Xy(B,e-1,5);Xy(B,X-4,4);for(Y=0;Y<X;Y++)Xy(B,B.bl_tree[$dd[Y]*2+1],3);Z0S(B,B.dyn_ltree,V-1);Z0S(B,B.dyn_dtree,e-1);Fyp(B,B.dyn_ltree,B.dyn_dtree)}Kyx(B);R&&II_(B);B.block_start=B.strstart;NC(B.strm)};
MC=function(B,R){B.pending_buf[B.pending++]=R};
kW=function(B,R){B.pending_buf[B.pending++]=R>>>8&255;B.pending_buf[B.pending++]=R&255};
CFd=function(B,R){var V=B.max_chain_length,e=B.strstart,X=B.prev_length,Y=B.nice_match,t=B.strstart>B.w_size-262?B.strstart-(B.w_size-262):0,b=B.window,J=B.w_mask,G=B.prev,y=B.strstart+258,S=b[e+X-1],M=b[e+X];B.prev_length>=B.good_match&&(V>>=2);Y>B.lookahead&&(Y=B.lookahead);do{var f=R;if(b[f+X]===M&&b[f+X-1]===S&&b[f]===b[e]&&b[++f]===b[e+1]){e+=2;for(f++;b[++e]===b[++f]&&b[++e]===b[++f]&&b[++e]===b[++f]&&b[++e]===b[++f]&&b[++e]===b[++f]&&b[++e]===b[++f]&&b[++e]===b[++f]&&b[++e]===b[++f]&&e<y;);
f=258-(y-e);e=y-258;if(f>X){B.match_start=R;X=f;if(f>=Y)break;S=b[e+X-1];M=b[e+X]}}}while((R=G[R&J])>t&&--V!==0);return X<=B.lookahead?X:B.lookahead};
f6=function(B){var R=B.w_size,V;do{var e=B.window_size-B.lookahead-B.strstart;if(B.strstart>=R+(R-262)){YW.arraySet(B.window,B.window,R,R,0);B.match_start-=R;B.strstart-=R;B.block_start-=R;var X=V=B.hash_size;do{var Y=B.head[--X];B.head[X]=Y>=R?Y-R:0}while(--V);X=V=R;do Y=B.prev[--X],B.prev[X]=Y>=R?Y-R:0;while(--V);e+=R}if(B.strm.avail_in===0)break;X=B.strm;V=B.window;Y=B.strstart+B.lookahead;var t=X.avail_in;t>e&&(t=e);t===0?V=0:(X.avail_in-=t,YW.arraySet(V,X.input,X.next_in,t,Y),X.state.wrap===
1?X.adler=PFp(X.adler,V,t,Y):X.state.wrap===2&&(X.adler=Dt(X.adler,V,t,Y)),X.next_in+=t,X.total_in+=t,V=t);B.lookahead+=V;if(B.lookahead+B.insert>=3)for(e=B.strstart-B.insert,B.ins_h=B.window[e],B.ins_h=(B.ins_h<<B.hash_shift^B.window[e+1])&B.hash_mask;B.insert&&!(B.ins_h=(B.ins_h<<B.hash_shift^B.window[e+3-1])&B.hash_mask,B.prev[e&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=e,e++,B.insert--,B.lookahead+B.insert<3););}while(B.lookahead<262&&B.strm.avail_in!==0)};
n8d=function(B,R){for(var V;;){if(B.lookahead<262){f6(B);if(B.lookahead<262&&R===0)return 1;if(B.lookahead===0)break}V=0;B.lookahead>=3&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,V=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart);V!==0&&B.strstart-V<=B.w_size-262&&(B.match_length=CFd(B,V));if(B.match_length>=3)if(V=Wf(B,B.strstart-B.match_start,B.match_length-3),B.lookahead-=B.match_length,B.match_length<=B.max_lazy_match&&B.lookahead>=3){B.match_length--;
do B.strstart++,B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart;while(--B.match_length!==0);B.strstart++}else B.strstart+=B.match_length,B.match_length=0,B.ins_h=B.window[B.strstart],B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+1])&B.hash_mask;else V=Wf(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++;if(V&&(Hf(B,!1),B.strm.avail_out===0))return 1}B.insert=B.strstart<2?B.strstart:2;return R===4?(Hf(B,
!0),B.strm.avail_out===0?3:4):B.last_lit&&(Hf(B,!1),B.strm.avail_out===0)?1:2};
lf=function(B,R){for(var V,e;;){if(B.lookahead<262){f6(B);if(B.lookahead<262&&R===0)return 1;if(B.lookahead===0)break}V=0;B.lookahead>=3&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,V=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart);B.prev_length=B.match_length;B.prev_match=B.match_start;B.match_length=2;V!==0&&B.prev_length<B.max_lazy_match&&B.strstart-V<=B.w_size-262&&(B.match_length=CFd(B,V),B.match_length<=5&&(B.strategy===1||B.match_length===3&&
B.strstart-B.match_start>4096)&&(B.match_length=2));if(B.prev_length>=3&&B.match_length<=B.prev_length){e=B.strstart+B.lookahead-3;V=Wf(B,B.strstart-1-B.prev_match,B.prev_length-3);B.lookahead-=B.prev_length-1;B.prev_length-=2;do++B.strstart<=e&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart);while(--B.prev_length!==0);B.match_available=0;B.match_length=2;B.strstart++;if(V&&(Hf(B,!1),B.strm.avail_out===0))return 1}else if(B.match_available){if((V=
Wf(B,0,B.window[B.strstart-1]))&&Hf(B,!1),B.strstart++,B.lookahead--,B.strm.avail_out===0)return 1}else B.match_available=1,B.strstart++,B.lookahead--}B.match_available&&(Wf(B,0,B.window[B.strstart-1]),B.match_available=0);B.insert=B.strstart<2?B.strstart:2;return R===4?(Hf(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(Hf(B,!1),B.strm.avail_out===0)?1:2};
uTA=function(B,R){for(var V,e,X,Y=B.window;;){if(B.lookahead<=258){f6(B);if(B.lookahead<=258&&R===0)return 1;if(B.lookahead===0)break}B.match_length=0;if(B.lookahead>=3&&B.strstart>0&&(e=B.strstart-1,V=Y[e],V===Y[++e]&&V===Y[++e]&&V===Y[++e])){for(X=B.strstart+258;V===Y[++e]&&V===Y[++e]&&V===Y[++e]&&V===Y[++e]&&V===Y[++e]&&V===Y[++e]&&V===Y[++e]&&V===Y[++e]&&e<X;);B.match_length=258-(X-e);B.match_length>B.lookahead&&(B.match_length=B.lookahead)}B.match_length>=3?(V=Wf(B,1,B.match_length-3),B.lookahead-=
B.match_length,B.strstart+=B.match_length,B.match_length=0):(V=Wf(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++);if(V&&(Hf(B,!1),B.strm.avail_out===0))return 1}B.insert=0;return R===4?(Hf(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(Hf(B,!1),B.strm.avail_out===0)?1:2};
O0A=function(B,R){for(var V;;){if(B.lookahead===0&&(f6(B),B.lookahead===0)){if(R===0)return 1;break}B.match_length=0;V=Wf(B,0,B.window[B.strstart]);B.lookahead--;B.strstart++;if(V&&(Hf(B,!1),B.strm.avail_out===0))return 1}B.insert=0;return R===4?(Hf(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(Hf(B,!1),B.strm.avail_out===0)?1:2};
zL=function(B,R,V,e,X){this.good_length=B;this.max_lazy=R;this.nice_length=V;this.max_chain=e;this.func=X};
oGS=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 YW.Buf16(1146);this.dyn_dtree=new YW.Buf16(122);this.bl_tree=new YW.Buf16(78);U7(this.dyn_ltree);U7(this.dyn_dtree);U7(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new YW.Buf16(16);this.heap=new YW.Buf16(573);U7(this.heap);this.heap_max=this.heap_len=0;this.depth=new YW.Buf16(573);U7(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};
B6p=function(B,R){if(!B||!B.state||R>5||R<0)return B?jb(B,-2):-2;var V=B.state;if(!B.output||!B.input&&B.avail_in!==0||V.status===666&&R!==4)return jb(B,B.avail_out===0?-5:-2);V.strm=B;var e=V.last_flush;V.last_flush=R;if(V.status===42)if(V.wrap===2)B.adler=0,MC(V,31),MC(V,139),MC(V,8),V.gzhead?(MC(V,(V.gzhead.text?1:0)+(V.gzhead.hcrc?2:0)+(V.gzhead.extra?4:0)+(V.gzhead.name?8:0)+(V.gzhead.comment?16:0)),MC(V,V.gzhead.time&255),MC(V,V.gzhead.time>>8&255),MC(V,V.gzhead.time>>16&255),MC(V,V.gzhead.time>>
24&255),MC(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),MC(V,V.gzhead.os&255),V.gzhead.extra&&V.gzhead.extra.length&&(MC(V,V.gzhead.extra.length&255),MC(V,V.gzhead.extra.length>>8&255)),V.gzhead.hcrc&&(B.adler=Dt(B.adler,V.pending_buf,V.pending,0)),V.gzindex=0,V.status=69):(MC(V,0),MC(V,0),MC(V,0),MC(V,0),MC(V,0),MC(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),MC(V,3),V.status=113);else{var X=8+(V.w_bits-8<<4)<<8;X|=(V.strategy>=2||V.level<2?0:V.level<6?1:V.level===6?2:3)<<6;V.strstart!==0&&(X|=
32);V.status=113;kW(V,X+(31-X%31));V.strstart!==0&&(kW(V,B.adler>>>16),kW(V,B.adler&65535));B.adler=1}if(V.status===69)if(V.gzhead.extra){for(X=V.pending;V.gzindex<(V.gzhead.extra.length&65535)&&(V.pending!==V.pending_buf_size||(V.gzhead.hcrc&&V.pending>X&&(B.adler=Dt(B.adler,V.pending_buf,V.pending-X,X)),NC(B),X=V.pending,V.pending!==V.pending_buf_size));)MC(V,V.gzhead.extra[V.gzindex]&255),V.gzindex++;V.gzhead.hcrc&&V.pending>X&&(B.adler=Dt(B.adler,V.pending_buf,V.pending-X,X));V.gzindex===V.gzhead.extra.length&&
(V.gzindex=0,V.status=73)}else V.status=73;if(V.status===73)if(V.gzhead.name){X=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>X&&(B.adler=Dt(B.adler,V.pending_buf,V.pending-X,X)),NC(B),X=V.pending,V.pending===V.pending_buf_size)){var Y=1;break}Y=V.gzindex<V.gzhead.name.length?V.gzhead.name.charCodeAt(V.gzindex++)&255:0;MC(V,Y)}while(Y!==0);V.gzhead.hcrc&&V.pending>X&&(B.adler=Dt(B.adler,V.pending_buf,V.pending-X,X));Y===0&&(V.gzindex=0,V.status=91)}else V.status=91;if(V.status===
91)if(V.gzhead.comment){X=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>X&&(B.adler=Dt(B.adler,V.pending_buf,V.pending-X,X)),NC(B),X=V.pending,V.pending===V.pending_buf_size)){Y=1;break}Y=V.gzindex<V.gzhead.comment.length?V.gzhead.comment.charCodeAt(V.gzindex++)&255:0;MC(V,Y)}while(Y!==0);V.gzhead.hcrc&&V.pending>X&&(B.adler=Dt(B.adler,V.pending_buf,V.pending-X,X));Y===0&&(V.status=103)}else V.status=103;V.status===103&&(V.gzhead.hcrc?(V.pending+2>V.pending_buf_size&&NC(B),
V.pending+2<=V.pending_buf_size&&(MC(V,B.adler&255),MC(V,B.adler>>8&255),B.adler=0,V.status=113)):V.status=113);if(V.pending!==0){if(NC(B),B.avail_out===0)return V.last_flush=-1,0}else if(B.avail_in===0&&(R<<1)-(R>4?9:0)<=(e<<1)-(e>4?9:0)&&R!==4)return jb(B,-5);if(V.status===666&&B.avail_in!==0)return jb(B,-5);if(B.avail_in!==0||V.lookahead!==0||R!==0&&V.status!==666){e=V.strategy===2?O0A(V,R):V.strategy===3?uTA(V,R):au[V.level].func(V,R);if(e===3||e===4)V.status=666;if(e===1||e===3)return B.avail_out===
0&&(V.last_flush=-1),0;if(e===2&&(R===1?(Xy(V,2,3),p6(V,256,yX),V.bi_valid===16?(eb(V,V.bi_buf),V.bi_buf=0,V.bi_valid=0):V.bi_valid>=8&&(V.pending_buf[V.pending++]=V.bi_buf&255,V.bi_buf>>=8,V.bi_valid-=8)):R!==5&&(Xy(V,0,3),E8_(V,0,0),R===3&&(U7(V.head),V.lookahead===0&&(V.strstart=0,V.block_start=0,V.insert=0))),NC(B),B.avail_out===0))return V.last_flush=-1,0}if(R!==4)return 0;if(V.wrap<=0)return 1;V.wrap===2?(MC(V,B.adler&255),MC(V,B.adler>>8&255),MC(V,B.adler>>16&255),MC(V,B.adler>>24&255),MC(V,
B.total_in&255),MC(V,B.total_in>>8&255),MC(V,B.total_in>>16&255),MC(V,B.total_in>>24&255)):(kW(V,B.adler>>>16),kW(V,B.adler&65535));NC(B);V.wrap>0&&(V.wrap=-V.wrap);return V.pending!==0?0:1};
RAI=function(B){if(!(this instanceof RAI))return new RAI(B);B=this.options=YW.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},B||{});B.raw&&B.windowBits>0?B.windowBits=-B.windowBits:B.gzip&&B.windowBits>0&&B.windowBits<16&&(B.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Vu_;this.strm.avail_out=0;var R=this.strm;var V=B.level,e=B.method,X=B.windowBits,Y=B.memLevel,t=B.strategy;if(R){var b=1;V===-1&&(V=6);X<0?(b=0,X=-X):X>15&&
(b=2,X-=16);if(Y<1||Y>9||e!==8||X<8||X>15||V<0||V>9||t<0||t>4)R=jb(R,-2);else{X===8&&(X=9);var J=new oGS;R.state=J;J.strm=R;J.wrap=b;J.gzhead=null;J.w_bits=X;J.w_size=1<<J.w_bits;J.w_mask=J.w_size-1;J.hash_bits=Y+7;J.hash_size=1<<J.hash_bits;J.hash_mask=J.hash_size-1;J.hash_shift=~~((J.hash_bits+3-1)/3);J.window=new YW.Buf8(J.w_size*2);J.head=new YW.Buf16(J.hash_size);J.prev=new YW.Buf16(J.w_size);J.lit_bufsize=1<<Y+6;J.pending_buf_size=J.lit_bufsize*4;J.pending_buf=new YW.Buf8(J.pending_buf_size);
J.d_buf=J.lit_bufsize;J.l_buf=3*J.lit_bufsize;J.level=V;J.strategy=t;J.method=e;if(R&&R.state){R.total_in=R.total_out=0;R.data_type=2;V=R.state;V.pending=0;V.pending_out=0;V.wrap<0&&(V.wrap=-V.wrap);V.status=V.wrap?42:113;R.adler=V.wrap===2?0:1;V.last_flush=0;if(!eAd){e=Array(16);for(Y=t=0;Y<28;Y++)for(AEY[Y]=t,X=0;X<1<<cEx[Y];X++)h$[t++]=Y;h$[t-1]=Y;for(Y=t=0;Y<16;Y++)for(sFN[Y]=t,X=0;X<1<<i0_[Y];X++)t$[t++]=Y;for(t>>=7;Y<30;Y++)for(sFN[Y]=t<<7,X=0;X<1<<i0_[Y]-7;X++)t$[256+t++]=Y;for(X=0;X<=15;X++)e[X]=
0;for(X=0;X<=143;)yX[X*2+1]=8,X++,e[8]++;for(;X<=255;)yX[X*2+1]=9,X++,e[9]++;for(;X<=279;)yX[X*2+1]=7,X++,e[7]++;for(;X<=287;)yX[X*2+1]=8,X++,e[8]++;v8d(yX,287,e);for(X=0;X<30;X++)Sb[X*2+1]=5,Sb[X*2]=LyA(X,5);Xk_=new Tid(yX,cEx,257,286,15);pkp=new Tid(Sb,i0_,0,30,15);Y$5=new Tid([],hAY,0,19,7);eAd=!0}V.l_desc=new xdp(V.dyn_ltree,Xk_);V.d_desc=new xdp(V.dyn_dtree,pkp);V.bl_desc=new xdp(V.bl_tree,Y$5);V.bi_buf=0;V.bi_valid=0;Kyx(V);V=0}else V=jb(R,-2);V===0&&(R=R.state,R.window_size=2*R.w_size,U7(R.head),
R.max_lazy_match=au[R.level].max_lazy,R.good_match=au[R.level].good_length,R.nice_match=au[R.level].nice_length,R.max_chain_length=au[R.level].max_chain,R.strstart=0,R.block_start=0,R.lookahead=0,R.insert=0,R.match_length=R.prev_length=2,R.match_available=0,R.ins_h=0);R=V}}else R=-2;if(R!==0)throw Error(bf[R]);B.header&&(R=this.strm)&&R.state&&R.state.wrap===2&&(R.state.gzhead=B.header);if(B.dictionary){var G;typeof B.dictionary==="string"?G=tuK(B.dictionary):WP5.call(B.dictionary)==="[object ArrayBuffer]"?
G=new Uint8Array(B.dictionary):G=B.dictionary;B=this.strm;Y=G;t=Y.length;if(B&&B.state)if(G=B.state,R=G.wrap,R===2||R===1&&G.status!==42||G.lookahead)R=-2;else{R===1&&(B.adler=PFp(B.adler,Y,t,0));G.wrap=0;t>=G.w_size&&(R===0&&(U7(G.head),G.strstart=0,G.block_start=0,G.insert=0),V=new YW.Buf8(G.w_size),YW.arraySet(V,Y,t-G.w_size,G.w_size,0),Y=V,t=G.w_size);V=B.avail_in;e=B.next_in;X=B.input;B.avail_in=t;B.next_in=0;B.input=Y;for(f6(G);G.lookahead>=3;){Y=G.strstart;t=G.lookahead-2;do G.ins_h=(G.ins_h<<
G.hash_shift^G.window[Y+3-1])&G.hash_mask,G.prev[Y&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=Y,Y++;while(--t);G.strstart=Y;G.lookahead=2;f6(G)}G.strstart+=G.lookahead;G.block_start=G.strstart;G.insert=G.lookahead;G.lookahead=0;G.match_length=G.prev_length=2;G.match_available=0;B.next_in=e;B.input=X;B.avail_in=V;G.wrap=R;R=0}else R=-2;if(R!==0)throw Error(bf[R]);this._dict_set=!0}};
b7Y=function(B,R){R=R||{};R.gzip=!0;R=new RAI(R);R.push(B,!0);if(R.err)throw R.msg||bf[R.err];return R.result};
jrd=function(B,R){var V=Jsu();V&&V.publish.call(V,B.toString(),B,R)};
S$p=function(B,R,V){var e=Jsu();if(!e)return 0;var X=e.subscribe(B.toString(),function(Y,t){var b=_.qN("ytPubsub2Pubsub2SkipSubKey");b&&b==X||(b=function(){if(URd[X])try{if(t&&B instanceof N6S&&B!=Y)try{var J=B.dataClass,G=t;if(!G.args||!G.version)throw Error("Xc");try{if(!J.version_){var y=new J;J.version_=y.version}var S=J.version_}catch(M){}if(!S||G.version!=S)throw Error("Yc");try{t=Reflect.construct(J,_.OS(G.args))}catch(M){throw M.message="yt.pubsub2.Data.deserialize(): "+M.message,M;}}catch(M){throw M.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+B.toString()+": "+M.message,M;}R.call(V||window,t)}catch(M){_.IP(M)}},Gzp[B.toString()]?_.qN("yt.scheduler.instance")?_.dV.addLowPriorityJob(b):_.pq(b,0):b())});
URd[X]=!0;yso[B.toString()]||(yso[B.toString()]=[]);yso[B.toString()].push(X);return X};
DRd=function(){var B=H7u,R=S$p(Mu5,function(V){B.apply(void 0,arguments);kzA(R)});
return R};
kzA=function(B){var R=Jsu();R&&(typeof B==="number"&&(B=[B]),_.ij(B,function(V){R.unsubscribeByKey(V);delete URd[V]}))};
Jsu=function(){return _.qN("ytPubsub2Pubsub2Instance")};
fz5=function(B,R,V){V=V===void 0?{sampleRate:.1}:V;Math.random()<Math.min(.02,V.sampleRate/100)&&jrd("meta_logging_csi_event",{timerName:B,timelineData:R})};
_.lz_=function(B){return B?(B=B.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.K$(B):null:null};
_.wV=function(B){return B?(B=B.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Yq(B):null:null};
az5=function(){zAd||(zAd=_.wV(_.vE("WORKER_SERIALIZATION_URL")));return zAd||void 0};
_.wkZ=function(){var B=az5();dRu||B===void 0||(dRu=new Worker(_.hR(B),void 0));return dRu};
_.T6K=function(){return typeof Worker==="function"&&az5()?!0:!1};
_.KPS=function(){if(_.T6K()&&!xRI){var B=function(V){V=V.data;if(V.op==="gzippedGelBatch"){var e=LPd.get(V.key);e&&(vGq(V.gzippedBatch,e.latencyPayload,e.url,e.options,e.sendFn),LPd.delete(V.key))}},R=_.wkZ();
R&&(R.addEventListener("message",B),R.onerror=function(){LPd.clear()},xRI=!0)}};
i75=function(B,R,V,e,X){X=X===void 0?!1:X;var Y={startTime:(0,_.P8)(),ticks:{},infos:{}};if(TL)try{var t=Iz_(R);if(t!=null&&(t>EG5||t<Qrp))e(B,V);else{if(_.k("gzip_gel_with_worker")&&(_.k("initial_gzip_use_main_thread")&&!q$d||!_.k("initial_gzip_use_main_thread"))){xRI||_.KPS();var b=_.wkZ();if(b&&!X){LPd.set(csx,{latencyPayload:Y,url:B,options:V,sendFn:e});b.postMessage({op:"gelBatchToGzip",serializedBatch:R,key:csx});csx++;return}}var J=b7Y(Asq(R));vGq(J,Y,B,V,e)}}catch(G){_.cE(G),e(B,V)}else e(B,
V)};
vGq=function(B,R,V,e,X){q$d=!1;var Y=(0,_.P8)();R.ticks.gelc=Y;xW++;_.k("disable_compression_due_to_performance_degredation")&&Y-R.startTime>=srd&&(FPd++,_.k("abandon_compression_after_N_slow_zips")?xW===_.RC("compression_disable_point")&&FPd>rsS&&(TL=!1):TL=!1);gGx(R);e.headers||(e.headers={});e.headers["Content-Encoding"]="gzip";e.postBody=B;e.postParams=void 0;X(V,e)};
Z7q=function(B){var R=R===void 0?!1:R;var V=V===void 0?!1:V;var e=(0,_.P8)(),X={startTime:e,ticks:{},infos:{}},Y=R?_.qN("yt.logging.gzipForFetch",!1):!0;if(TL&&Y){if(!B.body)return B;try{var t=V?B.body:typeof B.body==="string"?B.body:JSON.stringify(B.body);Y=t;if(!V&&typeof t==="string"){var b=Iz_(t);if(b!=null&&(b>EG5||b<Qrp))return B;V=R?{level:1}:void 0;Y=b7Y(Asq(t),V);var J=(0,_.P8)();X.ticks.gelc=J;if(R){xW++;if((_.k("disable_compression_due_to_performance_degredation")||_.k("disable_compression_due_to_performance_degradation_lr"))&&
J-e>=srd)if(FPd++,_.k("abandon_compression_after_N_slow_zips")||_.k("abandon_compression_after_N_slow_zips_lr")){R=FPd/xW;var G=rsS/_.RC("compression_disable_point");xW>0&&xW%_.RC("compression_disable_point")===0&&R>=G&&(TL=!1)}else TL=!1;gGx(X)}}B.headers=Object.assign({},{"Content-Encoding":"gzip"},B.headers||{});B.body=Y;return B}catch(y){return _.cE(y),B}}else return B};
Iz_=function(B){try{return(new Blob(B.split(""))).size}catch(R){return _.cE(R),null}};
gGx=function(B){_.k("gel_compression_csi_killswitch")||!_.k("log_gel_compression_latency")&&!_.k("log_gel_compression_latency_lr")||fz5("gel_compression",B,{sampleRate:.1})};
mRx=function(){this.blockSize=-1};
L6=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var B=1;B<this.blockSize;++B)this.pad_[B]=0;this.total_=this.inbuf_=0;this.reset()};
Czd=function(B){B=Object.assign({},B);delete B.Authorization;var R=$RA();if(R){var V=new L6;V.update(_.vE("INNERTUBE_API_KEY"));V.update(R);B.hash=_.O4(V.digest(),3)}return B};
K6=function(){PzI||(PzI=new _.vf("yt.innertube"));return PzI};
nGI=function(B,R,V,e){if(e)return null;e=K6().get("nextId",!0)||1;var X=K6().get("requests",!0)||{};X[e]={method:B,request:R,authState:Czd(V),requestTime:Math.round((0,_.P8)())};K6().set("nextId",e+1,86400,!0);K6().set("requests",X,86400,!0);return e};
uFd=function(B){var R=K6().get("requests",!0)||{};delete R[B];K6().set("requests",R,86400,!0)};
oAZ=function(B){var R=K6().get("requests",!0);if(R){for(var V in R){var e=R[V];if(!(Math.round((0,_.P8)())-e.requestTime<6E4)){var X=e.authState,Y=Czd(_.ddI(!1));_.M_.equals(X,Y)&&(X=e.request,"requestTimeMs"in X&&(X.requestTimeMs=Math.round((0,_.P8)())),O7K(B,e.method,X,{}));delete R[V]}}K6().set("requests",R,86400,!0)}};
Brp=function(B){var R;return(B=B==null?void 0:(R=B.error)==null?void 0:R.code)&&B>=400&&B<=599?!1:!0};
RZp=function(B){var R;B=B==null?void 0:(R=B.error)==null?void 0:R.code;return!(B!==400&&B!==415)};
eZZ=function(){if(VcK)return VcK();var B={};VcK=Cq("LogsDatabaseV2",{objectStores:(B.LogsRequestsStore={addedAtVersion:2},B),shared:!1,upgrade:function(R,V,e){V(2)&&Iu(R,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});V(3);V(5)&&(e=e.objectStore("LogsRequestsStore"),e.JSC$8513_wrapped.indexNames.contains("newRequest")&&e.JSC$8513_wrapped.deleteIndex("newRequest"),E7(e,"newRequestV2",["status","interface","timestamp"]));V(7)&&R.JSC$8498_wrapped.objectStoreNames.contains("sapisid")&&R.JSC$8498_wrapped.deleteObjectStore("sapisid");
V(9)&&R.JSC$8498_wrapped.objectStoreNames.contains("SWHealthLog")&&R.JSC$8498_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return VcK()};
QX=function(B){return _.iN(eZZ(),B)};
p$q=function(B,R){var V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return V={startTime:(0,_.P8)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.U(t,QX(R),2);if(t.nextAddress!=3)return e=t.yieldResult,X=Object.assign({},B,{options:JSON.parse(JSON.stringify(B.options)),interface:_.vE("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.U(t,e.put("LogsRequestsStore",X),3);Y=t.yieldResult;V.ticks.tc=(0,_.P8)();X$d(V);return t.return(Y)})};
YXN=function(B,R){var V,e,X,Y,t,b,J,G;return _.W(function(y){if(y.nextAddress==1)return V={startTime:(0,_.P8)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.U(y,QX(R),2);if(y.nextAddress!=3)return e=y.yieldResult,X=_.vE("INNERTUBE_CONTEXT_CLIENT_NAME",0),Y=[B,X,0],t=[B,X,(0,_.P8)()],b=IDBKeyRange.bound(Y,t),J="prev",_.k("use_fifo_for_networkless")&&(J="next"),G=void 0,_.U(y,_.sB(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(S){return _.nq(S.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:b,direction:J},function(M){M.getValue()&&(G=M.getValue(),B==="NEW"&&(G.status="QUEUED",M.update(G)))})}),3);
V.ticks.tc=(0,_.P8)();X$d(V);return y.return(G)})};
hZx=function(B,R){var V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,QX(R),2);V=e.yieldResult;return e.return(_.sB(V,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){var Y=X.objectStore("LogsRequestsStore");return Y.get(B).then(function(t){if(t)return t.status="QUEUED",Y.put(t).then(function(){return t})})}))})};
tcA=function(B,R,V,e){V=V===void 0?!0:V;var X;return _.W(function(Y){if(Y.nextAddress==1)return _.U(Y,QX(R),2);X=Y.yieldResult;return Y.return(_.sB(X,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){var b=t.objectStore("LogsRequestsStore");return b.get(B).then(function(J){return J?(J.status="NEW",V&&(J.sendCount+=1),e!==void 0&&(J.options.compress=e),b.put(J).then(function(){return J})):IC.resolve(void 0)})}))})};
W5K=function(B,R){var V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,QX(R),2);V=e.yieldResult;return e.return(V.delete("LogsRequestsStore",B))})};
bkA=function(B){var R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,QX(B),2);R=e.yieldResult;V=(0,_.P8)()-2592E6;return _.U(e,_.sB(R,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){return rS(X.objectStore("LogsRequestsStore"),{},function(Y){if(Y.getValue().timestamp<=V)return Y.delete().then(function(){return Y.continue()})})}),0)})};
Jz5=function(){_.W(function(B){return _.U(B,Bix("LogsDatabaseV2"),0)})};
X$d=function(B){_.k("nwl_csi_killswitch")||fz5("networkless_performance",B,{sampleRate:1})};
_.U1Y=function(B){return _.iN(jGd(),B)};
Nrp=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,_.U1Y(B),2);R=e.yieldResult;V=(0,_.P8)()-2592E6;return _.U(e,_.sB(R,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(X){return rS(X.objectStore("SWHealthLog"),{},function(Y){if(Y.getValue().timestamp<=V)return Y.delete().then(function(){return Y.continue()})})}),0)})};
GF5=function(B){var R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,_.U1Y(B),2);R=V.yieldResult;return _.U(V,R.clear("SWHealthLog"),0)})};
_.qC=function(B,R,V,e,X,Y,t){X=X===void 0?"":X;Y=Y===void 0?!1:Y;t=t===void 0?!1:t;if(B)if(V&&!xz("cobalt"))_.cE(new _.H8("Legacy referrer-scrubbed ping detected")),B&&yz_(B,void 0,{scrubReferrer:!0});else if(X)FhY(B,R,"POST",X,e);else if(_.vE("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||e||t)FhY(B,R,"GET","",e,void 0,Y,t);else{b:{try{c:{var b=new SXS({url:B});if(d2p(b.JSC$7383_url_,Hk5)==="1")var J=null;else{var G=d2p(b.JSC$7383_url_,Mc5);if(G==="1"){var y=d2p(b.JSC$7383_url_,kFS);if(y)try{J={version:3,
directUrl:decodeURIComponent(y),asyncUrl:wnd(b.JSC$7383_url_,"act=1","ri=1",D1Z(b))};break c}catch(z){}}J=G==="2"?{version:4,directUrl:wnd(b.JSC$7383_url_,"dct=1","suid="+b.suid_,""),asyncUrl:wnd(b.JSC$7383_url_,"act=1","ri=1","suid="+b.suid_)}:null}}if(J){var S=_.tu(B);var M=!(!S||!S.endsWith("/aclk")||_.EJ(B,"ri")!=="1");break b}}catch(z){}M=!1}if(M){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(B,"")){var f=!0;break b}}catch(z){}f=!1}f?(R&&R(),V=!0):V=!1}else V=
!1;V||yz_(B,R)}};
yz_=function(B,R,V){V=V===void 0?{}:V;var e=new Image,X=""+fxp++;lxu[X]=e;e.onload=e.onerror=function(){R&&lxu[X]&&R();delete lxu[X]};
V.scrubReferrer&&(e.referrerPolicy="no-referrer");e.src=B};
cf=function(B,R){zZu(B,R==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
axu=function(B){var R;return((R=document.featurePolicy)==null?0:R.allowedFeatures().includes("attribution-reporting"))?B+"&nis=6":B+"&nis=5"};
d1d=function(B){if(!B)return!1;try{var R;if(((R=_.sz(B))==null?void 0:R.asm)==="4")return!0}catch(V){_.IP(V)}return!1};
zZu=function(B,R){R?(B=axu(B),_.qC(B,void 0,void 0,void 0,"",!0,!0)):_.qC(B)};
TrS=function(){w$_||(w$_=new _.vf("yt.offline"));return w$_};
x1q=function(B){if(_.k("offline_error_handling")){var R=TrS().get("errors",!0)||{};R[B.message]={name:B.name,stack:B.stack};B.level&&(R[B.message].level=B.level);TrS().set("errors",R,2592E3,!0)}};
vAu=function(B,R,V,e){e=e===void 0?!1:e;R=_.k("web_fp_via_jspb")?Object.assign({},R):R;_.k("use_cfr_monitor")&&L5I(B,R);if(_.k("use_request_time_ms_header"))R.headers&&PE(B)&&(R.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.P8)())));else{var X;if((X=R.postParams)==null?0:X.requestTimeMs)R.postParams.requestTimeMs=Math.round((0,_.P8)())}V&&Object.keys(R).length===0?_.qC(B):R.compress?R.postBody?(typeof R.postBody!=="string"&&(R.postBody=JSON.stringify(R.postBody)),i75(B,R.postBody,
R,_.W8,e)):i75(B,JSON.stringify(R.postParams),R,mKN,e):_.W8(B,R)};
K5q=function(B,R){_.k("use_event_time_ms_header")&&PE(B)&&(R.headers||(R.headers={}),R.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.P8)())));return R};
_.EA5=function(){Ixd||(Ixd=new _.A$({logOfflineErrors:!0,enablePolling:!0}));return Ixd};
L5I=function(B,R){var V=R.onError?R.onError:function(){};
R.onError=function(X,Y){s7().requestComplete(B,!1);V(X,Y)};
var e=R.onSuccess?R.onSuccess:function(){};
R.onSuccess=function(X,Y){s7().requestComplete(B,!0);e(X,Y)}};
_.QGd=function(){return _.mn(document.location.toString())!=="www.youtube-nocookie.com"};
_.AzI=function(){return _.qN("ytNetworklessLoggingInitializationOptions")?_.qXI.isNwlInitialized:_.czo};
ikd=function(B,R){if(_.k("polymer_on_demand_shady_dom")){var V;var e=(V=B.__shady_native_firstElementChild)!=null?V:B.firstElementChild}else e=B.firstElementChild;for(;e;){if(B=R(e)?e:ikd(e,R))return B;e=e.nextElementSibling}return null};
F5A=function(){var B=document;if("visibilityState"in B)return B.visibilityState;var R=sGA+"VisibilityState";if(R in B)return B[R]};
_.rzS=function(B,R){var V;Fy(B,function(e){V=R[e];return!!V});
return V};
_.Zt=function(B){var R=gAY(B);R?R.focus():_.rV(B)};
gAY=function(B){return(B=ikd(B,function(R){return _.m4(R)?Zk_(R)&&!!R.offsetParent:!1}))?B:null};
_.rV=function(B,R){B.hasAttribute("tabindex")||B.setAttribute("tabindex","-1");B.focus(R)};
m1q=function(B,R,V,e){e=e===void 0?{}:e;B.addEventListener&&(R!="mouseenter"||"onmouseenter"in document?R!="mouseleave"||"onmouseenter"in document?R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"):R="mouseout":R="mouseover");return _.M_.findKey($W,function(X){var Y=typeof X[4]==="boolean"&&X[4]==!!e,t=_.Xa(X[4])&&_.Xa(e)&&_.M_.equals(X[4],e);return!!X.length&&X[0]==B&&X[1]==R&&X[2]==V&&(Y||t)})};
_.uf=function(B,R,V,e){e=e===void 0?{}:e;if(!B||!B.addEventListener&&!B.attachEvent)return"";var X=m1q(B,R,V,e);if(X)return X;X=++$15.count+"";var Y=!(R!="mouseenter"&&R!="mouseleave"||!B.addEventListener||"onmouseenter"in document);var t=Y?function(b){b=new C6(b);if(!_.xl(b.relatedTarget,function(J){return J==B},!0))return b.currentTarget=B,b.type=R,V.call(B,b)}:function(b){b=new C6(b);
b.currentTarget=B;return V.call(B,b)};
t=_.Qh(t);B.addEventListener?(R=="mouseenter"&&Y?R="mouseover":R=="mouseleave"&&Y?R="mouseout":R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"),Ci_()||typeof e==="boolean"?B.addEventListener(R,t,e):B.addEventListener(R,t,!!e.capture)):B.attachEvent("on"+R,t);$W[X]=[B,R,V,t,e];return X};
_.nAo=function(B,R,V){var e=e===void 0?{}:e;var X=_.uf(B,R,function(){_.PiK(X);V.apply(B,arguments)},e)};
_.PiK=function(B){B&&(typeof B=="string"&&(B=[B]),_.ij(B,function(R){if(R in $W){var V=$W[R],e=V[0],X=V[1],Y=V[3];V=V[4];e.removeEventListener?Ci_()||typeof V==="boolean"?e.removeEventListener(X,Y,V):e.removeEventListener(X,Y,!!V.capture):e.detachEvent&&e.detachEvent("on"+X,Y);delete $W[R]}}))};
O7=function(B){this.callback_=B;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(B=0;B<4;B++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.uf(window,"mousemove",(0,_.M2)(this.onMouseMove_,this));this.timerId_=_.Yz((0,_.M2)(this.checkPosition_,this),25)};
Okq=function(){var B={};var R=B.preferMobileEvents===void 0?!1:B.preferMobileEvents;B=B.enableScrollEventListener===void 0?!0:B.enableScrollEventListener;if(_.qN("_lact",window)==null){var V=parseInt(_.vE("LACT"),10);V=isFinite(V)?Date.now()-Math.max(V,0):-1;_.mk("_lact",V,window);_.mk("_fact",V,window);V==-1&&_.oq();_.uf(document,"keydown",_.oq);_.uf(document,"keyup",_.oq);_.uf(document,"mousedown",_.oq);_.uf(document,"mouseup",_.oq);R?_.uf(window,"touchmove",function(){usI("touchmove",200)},{passive:!0}):
(_.uf(window,"resize",function(){usI("resize",200)}),B&&_.uf(window,"scroll",function(){usI("scroll",200)}));
new O7(function(){usI("mouse",100)});
_.uf(document,"touchstart",_.oq,{passive:!0});_.uf(document,"touchend",_.oq,{passive:!0})}};
usI=function(B,R){opq[B]||(opq[B]=!0,_.dV.addLowPriorityJob(function(){_.oq();opq[B]=!1},R))};
_.oq=function(){_.qN("_lact",window)==null&&Okq();var B=Date.now();_.mk("_lact",B,window);_.qN("_fact",window)==-1&&_.mk("_fact",B,window);(B=_.qN("ytglobal.ytUtilActivityCallback_"))&&B()};
_.B5=function(){var B=_.qN("_lact",window);return B==null?-1:Math.max(Date.now()-B,0)};
_.Xo=function(B,R,V){var e=_.Rq();if(e&&R){var X=e.subscribe(B,function(){var Y=arguments,t=function(){VU[X]&&R.apply&&typeof R.apply=="function"&&R.apply(V||window,Y)};
try{_.BHp[B]?t():_.pq(t,0)}catch(b){_.IP(b)}},V);
VU[X]=!0;eG[B]||(eG[B]=[]);eG[B].push(X);return X}return 0};
_.R1d=function(B){var R=_.Rq();R&&(typeof B==="number"?B=[B]:typeof B==="string"&&(B=[parseInt(B,10)]),_.ij(B,function(V){R.unsubscribeByKey(V);delete VU[V]}))};
_.VmZ=function(B,R){var V=_.Rq();V&&V.publish.apply(V,arguments)};
_.XcN=function(B){var R=_.Rq();if(R)if(R.clear(B),B)e15(B);else for(var V in eG)e15(V)};
_.Rq=function(){return _.R5.ytPubsubPubsubInstance};
e15=function(B){eG[B]&&(B=eG[B],_.ij(B,function(R){VU[R]&&delete VU[R]}),B.length=0)};
pcx=function(){var B,R;return"h5vcc"in pE&&((B=pE.h5vcc.traceEvent)==null?0:B.traceBegin)&&((R=pE.h5vcc.traceEvent)==null?0:R.traceEnd)?1:"performance"in pE&&pE.performance.mark&&pE.performance.measure?2:0};
Yxx=function(B){var R=pcx();switch(R){case 1:pE.h5vcc.traceEvent.traceBegin("YTLR",B);break;case 2:pE.performance.mark(B+"-start");break;case 0:break;default:_.Ym(R,"unknown trace type")}};
h1o=function(B){var R=pcx();switch(R){case 1:pE.h5vcc.traceEvent.traceEnd("YTLR",B);break;case 2:R=B+"-start";var V=B+"-end";pE.performance.mark(V);pE.performance.measure(B,R,V);break;case 0:break;default:_.Ym(R,"unknown trace type")}};
tmN=function(B){var R,V;(V=(R=window).onerror)==null||V.call(R,B.message,"",0,0,B)};
WaS=function(B){if(_.k("web_lifecycle_error_handling_killswitch"))return B();try{return B()}catch(R){tmN(R)}};
bJu=function(B){return[B.auth===void 0?"undefined":B.auth,B.isJspb===void 0?"undefined":B.isJspb,B.cttAuthInfo===void 0?"undefined":B.cttAuthInfo,B.tier===void 0?"undefined":B.tier].join("/")};
_.D=function(B,R){if(B)return B[R.name]};
hK=function(){var B=_.qN("yt.logging.ims");B||(B=new YD,_.mk("yt.logging.ims",B));return B};
Mm5=function(B,R){if(B.endpoint==="log_event"){JMd(B);var V=j_q(B),e=UU_(B.payload)||"",X=NH5(e),Y=200;if(X){if(X.enabled===!1&&!_.k("web_payload_policy_disabled_killswitch"))return;Y=Gvq(X.tier);if(Y===400){yMI(B,R);return}}tK[V]=!0;V={cttAuthInfo:V,isJspb:!1,tier:Y};hK().storePayload(V,B.payload);SxY(R,!1,V,HJd(e))}};
DUA=function(B,R,V){if(R.endpoint==="log_event"){JMd(void 0,R);var e=j_q(R,!0),X=NH5(B),Y=200;if(X){if(X.enabled===!1&&!_.k("web_payload_policy_disabled_killswitch"))return;Y=Gvq(X.tier);if(Y===400){kvN(B,R,V);return}}tK[e]=!0;e={cttAuthInfo:e,isJspb:!0,tier:Y};hK().storePayload(e,V5(R.payload));SxY(V,!0,e,HJd(B))}};
SxY=function(B,R,V,e){R=R===void 0?!1:R;e=e===void 0?!1:e;B&&(W5=new B);B=_.RC("tvhtml5_logging_max_batch_ads_fork")||_.RC("tvhtml5_logging_max_batch")||_.RC("web_logging_max_batch")||100;var X=(0,_.P8)(),Y=fqS(R,V.tier),t=Y.lastDebounceQueueFromLogTimeMs;e&&(Y.useVideoStatsEndPoint=!0);e=0;V&&(e=hK().getSequenceCount(V));var b=function(){lqZ({writeThenSend:!0},R,V.tier)};
e>=1E3?b():e>=B?z1Z||(z1Z=aqd(function(){b();z1Z=void 0},0)):X-t>=10&&(dUx(R,V.tier),Y.lastDebounceQueueFromLogTimeMs=X)};
yMI=function(B,R){if(B.endpoint==="log_event"){_.k("more_accurate_gel_parser")&&hK().storePayload({isJspb:!1},B.payload);JMd(B);var V=j_q(B),e=new Map;e.set(V,[B.payload]);var X=UU_(B.payload)||"";R&&(W5=new R);return new _.be(function(Y,t){W5&&W5.isReady()?wc5(e,W5,Y,t,{bypassNetworkless:!0},!0,HJd(X)):Y()})}};
kvN=function(B,R,V){if(R.endpoint==="log_event"){JMd(void 0,R);var e=j_q(R,!0),X=new Map;X.set(e,[V5(R.payload)]);V&&(W5=new V);return new _.be(function(Y){W5&&W5.isReady()?THK(X,W5,Y,{bypassNetworkless:!0},!0,HJd(B)):Y()})}};
j_q=function(B,R){var V="";if(B.dangerousLogToVisitorSession)V="visitorOnlyApprovedKey";else if(B.cttAuthInfo){if(R===void 0?0:R){R=B.cttAuthInfo.token;V=B.cttAuthInfo;var e=new xUu;V.videoId?e.setVideoId(V.videoId):V.playlistId&&JK(e,2,Lao,qj(V.playlistId));vpu[R]=e}else R=B.cttAuthInfo,V={},R.videoId?V.videoId=R.videoId:R.playlistId&&(V.playlistId=R.playlistId),Kad[B.cttAuthInfo.token]=V;V=B.cttAuthInfo.token}return V};
lqZ=function(B,R,V){B=B===void 0?{}:B;R=R===void 0?!1:R;new _.be(function(e,X){var Y=fqS(R,V),t=Y.useVideoStatsEndPoint;Y.useVideoStatsEndPoint=!1;Iqu(Y.queueTimer);Iqu(Y.queueMaxTimer);Y.queueMaxTimer=0;W5&&W5.isReady()?V===void 0&&_.k("enable_web_tiered_gel")?EpN(e,X,B,R,300,t):EpN(e,X,B,R,V,t):(dUx(R,V),e())})};
EpN=function(B,R,V,e,X,Y){var t=W5;V=V===void 0?{}:V;e=e===void 0?!1:e;X=X===void 0?200:X;Y=Y===void 0?!1:Y;var b=new Map,J=new Map,G={isJspb:e,cttAuthInfo:void 0,tier:X},y={isJspb:e,cttAuthInfo:void 0};if(e){R=_.h(Object.keys(tK));for(X=R.next();!X.done;X=R.next())X=X.value,J=_.k("enable_web_tiered_gel")?hK().smartExtractMatchingEntries({keys:[G,y],sizeLimit:1E3}):hK().extractMatchingEntries({isJspb:!0,cttAuthInfo:X}),J.length>0&&b.set(X,J),(_.k("web_fp_via_jspb_and_json")&&V.writeThenSend||!_.k("web_fp_via_jspb_and_json"))&&
delete tK[X];THK(b,t,B,V,!1,Y)}else{b=_.h(Object.keys(tK));for(G=b.next();!G.done;G=b.next())G=G.value,y=_.k("enable_web_tiered_gel")?hK().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:G,tier:X},{isJspb:!1,cttAuthInfo:G}],sizeLimit:1E3}):hK().extractMatchingEntries({isJspb:!1,cttAuthInfo:G}),y.length>0&&J.set(G,y),(_.k("web_fp_via_jspb_and_json")&&V.writeThenSend||!_.k("web_fp_via_jspb_and_json"))&&delete tK[G];wc5(J,t,B,R,V,!1,Y)}};
dUx=function(B,R){B=B===void 0?!1:B;R=R===void 0?200:R;var V=function(){lqZ({writeThenSend:!0},B,R)},e=fqS(B,R),X=e===Q_K||e===qxp?5E3:cMK;
_.k("web_gel_timeout_cap")&&!e.queueMaxTimer&&(X=aqd(function(){V()},X),e.queueMaxTimer=X);
Iqu(e.queueTimer);X=_.vE("LOGGING_BATCH_TIMEOUT",_.RC("web_gel_debounce_ms",1E4));_.k("shorten_initial_gel_batch_timeout")&&AMo&&(X=iJ5);X=aqd(function(){_.RC("gel_min_batch_size")>0?hK().getSequenceCount({cttAuthInfo:void 0,isJspb:B,tier:R})>=s_d&&V():V()},X);
e.queueTimer=X};
wc5=function(B,R,V,e,X,Y,t){X=X===void 0?{}:X;var b=Math.round((0,_.P8)()),J=B.size,G=FaN(t);B=_.h(B);var y=B.next();for(t={};!y.done;t={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},y=B.next()){var S=_.h(y.value);y=S.next().value;S=S.next().value;t.batchRequest=_.M_.unsafeClone({context:_.SVK(R.config_||_.uN())});if(!_.R4(S)&&!_.k("throw_err_when_logevent_malformed_killswitch")){e();break}t.batchRequest.events=S;
(S=Kad[y])&&rMK(t.batchRequest,y,S);delete Kad[y];t.dangerousLogToVisitorSession=y==="visitorOnlyApprovedKey";gpS(t.batchRequest,b,t.dangerousLogToVisitorSession);ZJY(X);t.onSuccess$jscomp$3=function(M){_.k("start_client_gcf")&&_.dV.addLowPriorityJob(function(){return _.W(function(f){return _.U(f,mUS(M),0)})});
J--;J||V()};
t.networkFailures=0;t.onError$jscomp$5=function(M){return function(){M.networkFailures++;if(X.bypassNetworkless&&M.networkFailures===1)try{O7K(R,G,M.batchRequest,$UN({writeThenSend:!0},M.dangerousLogToVisitorSession,M.onSuccess$jscomp$3,M.onError$jscomp$5,Y)),AMo=!1}catch(f){_.IP(f),e()}J--;J||V()}}(t);
try{O7K(R,G,t.batchRequest,$UN(X,t.dangerousLogToVisitorSession,t.onSuccess$jscomp$3,t.onError$jscomp$5,Y)),AMo=!1}catch(M){_.IP(M),e()}}};
THK=function(B,R,V,e,X,Y){e=e===void 0?{}:e;var t=Math.round((0,_.P8)()),b={value:B.size},J=new Map([].concat(_.MI(B)));J=_.h(J);for(var G=J.next();!G.done;G=J.next()){var y=_.h(G.value).next().value,S=B.get(y);G=new CpN;var M=R.config_||_.uN(),f=new jG,z=new PpK;_.bg(z,1,M.innertubeContextHostLanguage);_.bg(z,2,M.innertubeContextGeoLocation);_.ou(z,16,M.innertubeContextClientNameFieldNumber);_.bg(z,17,M.innertubeContextClientVersion);if(M.innertubeContextClientConfigInfo){var T=M.innertubeContextClientConfigInfo,
L=new Ru;T.coldConfigData&&_.bg(L,1,T.coldConfigData);T.appInstallData&&_.bg(L,6,T.appInstallData);T.coldHashData&&_.bg(L,3,T.coldHashData);T.hotHashData&&L.setHotHashData(T.hotHashData);_.Ra(z,62,L)}(T=_.R5.devicePixelRatio)&&T!=1&&_.Bf(z,65,_.hr(T));T=Khd();T!==""&&_.bg(z,54,T);T=Ip5();if(T.length>0){L=new npd;for(var Q=0;Q<T.length;Q++){var q=new Ud;q.setKey(T[Q].key);JK(q,2,uX_,qj(T[Q].value));Ne(L,15,Ud,q)}_.Ra(f,5,L)}JE_(M,z);jFN(f);Ud5(z);NiI(M,z);Gp_(z);_.k("start_client_gcf")&&yEd(z);_.vE("DELEGATED_SESSION_ID")&&
!_.k("pageid_as_header_web")&&(M=new Gn,_.bg(M,3,_.vE("DELEGATED_SESSION_ID")));!_.k("fill_delegate_context_in_gel_killswitch")&&(T=_.vE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(L=_.OB(f,Gn,3)||new Gn,M=f,T=_.bg(L,18,T),_.Ra(M,3,T));M=z;T=_.h(Object.entries(_.sz(_.vE("DEVICE",""))));for(L=T.next();!L.done;L=T.next())Q=_.h(L.value),L=Q.next().value,Q=Q.next().value,L==="cbrand"?_.bg(M,12,Q):L==="cmodel"?_.bg(M,13,Q):L==="cbr"?_.bg(M,87,Q):L==="cbrver"?_.bg(M,88,Q):L==="cos"?_.bg(M,18,
Q):L==="cosver"?_.bg(M,19,Q):L==="cplatform"&&_.ou(M,42,Wcx(Q));f.setClient(z);_.Ra(G,1,f);if(z=vpu[y])a:{if(_.J4(z,yU(z,Lao,1)))f=1;else if(z.getPlaylistId())f=2;else break a;_.Ra(G,4,z);z=G.getContext()||new jG;M=_.OB(z,Gn,3)||new Gn;T=new SG;T.setToken(y);_.ou(T,1,f);Ne(M,12,SG,T);_.Ra(z,3,M)}delete vpu[y];y=y==="visitorOnlyApprovedKey";OJd()||_.H5(G,2,t);!y&&(f=_.vE("EVENT_ID"))&&(z=oTu(),M=new BlK,_.bg(M,1,f),_.H5(M,2,z),_.Ra(G,5,M));ZJY(e);if(_.k("jspb_serialize_with_worker")&&(f=_.wkZ())&&
e.writeThenSend){_.RIN.set(VRu,{client:R,resolve:V,networklessOptions:e,isIsolated:X,useVSSEndpoint:Y,dangerousLogToVisitorSession:y,requestsOutstanding:b});f.postMessage({op:"gelBatchToSerialize",batchRequest:V5(G),clientEvents:S,key:VRu});VRu++;break}if(S){f=[];for(z=0;z<S.length;z++)try{f.push(new Me(S[z]))}catch(m){_.IP(new _.H8("Transport failed to deserialize "+String(S[z])))}S=f}else S=[];S=_.h(S);for(f=S.next();!f.done;f=S.next())Ne(G,3,Me,f.value);S={startTime:(0,_.P8)(),ticks:{},infos:{}};
G=G.serialize();S.ticks.geljspc=(0,_.P8)();_.k("log_jspb_serialize_latency")&&fz5("gel_jspb_serialize",S,{sampleRate:.1});_.eIZ(G,R,V,e,X,Y,y,b)}};
_.eIZ=function(B,R,V,e,X,Y,t,b){e=e===void 0?{}:e;b=b===void 0?{value:0}:b;Y=FaN(Y);e=$UN(e,t,function(J){_.k("start_client_gcf")&&_.dV.addLowPriorityJob(function(){return _.W(function(G){return _.U(G,mUS(J),0)})});
b.value--;b.value||V()},function(){b.value--;
b.value||V()},X);
e.headers["Content-Type"]="application/json+protobuf";e.postBodyFormat="JSPB";e.postBody=B;O7K(R,Y,"",e);AMo=!1};
ZJY=function(B){_.k("always_send_and_write")&&(B.writeThenSend=!1)};
$UN=function(B,R,V,e,X){B={retry:!0,onSuccess:V,onError:e,networklessOptions:B,dangerousLogToVisitorSession:R,bypassMonitoring:!!X,headers:{},postBodyFormat:"",postBody:"",compress:_.k("compress_gel")||_.k("compress_gel_lr")};OJd()&&(B.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.P8)())));return B};
gpS=function(B,R,V){OJd()||(B.requestTimeMs=String(R));_.k("unsplit_gel_payloads_in_logs")&&(B.unsplitGelPayloadsInLogs=!0);!V&&(R=_.vE("EVENT_ID"))&&(V=oTu(),B.serializedClientEventId={serializedEventId:R,clientCounter:String(V)})};
oTu=function(){var B=_.vE("BATCH_CLIENT_COUNTER")||0;B||(B=Math.floor(Math.random()*65535/2));B++;B>65535&&(B=1);_.LQ("BATCH_CLIENT_COUNTER",B);return B};
rMK=function(B,R,V){if(V.videoId)var e="VIDEO";else if(V.playlistId)e="PLAYLIST";else return;B.credentialTransferTokenTargetId=V;B.context=B.context||{};B.context.user=B.context.user||{};B.context.user.credentialTransferTokens=[{token:R,scope:e}]};
JMd=function(B,R){var V=_.V_("il_payload_scraping")==="enable_il_payload_scraping";if(!_.qN("yt.logging.transport.enableScrapingForTest"))if(V)XKd=[],_.mk("yt.logging.transport.enableScrapingForTest",!0),_.mk("yt.logging.transport.scrapedPayloadsForTesting",XKd),_.mk("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.mk("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.mk("yt.logging.transport.scrapeClientEvent",!0);else return;V=_.qN("yt.logging.transport.scrapedPayloadsForTesting");var e=_.qN("yt.logging.transport.payloadToScrape");R&&(R=_.qN("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(R.payload)())&&V.push(R);R=_.qN("yt.logging.transport.scrapeClientEvent");if(e&&e.length>=1)for(var X=0;X<e.length;X++)if(B&&B.payload[e[X]])if(R)V.push(B.payload);else{var Y=void 0;V.push(((Y=B)==null?void 0:Y.payload)[e[X]])}_.mk("yt.logging.transport.scrapedPayloadsForTesting",
V)};
OJd=function(){return _.k("use_request_time_ms_header")||_.k("lr_use_request_time_ms_header")};
aqd=function(B,R){return _.k("transport_use_scheduler")===!1?_.pq(B,R):_.k("logging_avoid_blocking_during_navigation")||_.k("lr_logging_avoid_blocking_during_navigation")?_.kD(_.dV,function(){if(_.pKx().currentState==="none")B();else{var V={};_.pKx().install((V.none={callback:B},V))}},R):_.kD(_.dV,B,R)};
Iqu=function(B){_.k("transport_use_scheduler")?_.dV.cancelJob(B):_.hu(B)};
mUS=function(B){var R,V,e,X,Y,t,b,J,G,y;return _.W(function(S){return S.nextAddress==1?(e=(R=B)==null?void 0:(V=R.responseContext)==null?void 0:V.globalConfigGroup,X=_.D(e,Y5d),t=(Y=e)==null?void 0:Y.hotHashData,b=_.D(e,hIo),G=(J=e)==null?void 0:J.coldHashData,(y=_.Oz().resolve(_.uj(fE)))?t?X?_.U(S,tR_(y,t,X),2):_.U(S,tR_(y,t),2):S.jumpTo(2):S.return()):G?b?_.U(S,WRo(y,G,b),0):_.U(S,WRo(y,G),0):S.jumpTo(0)})};
fqS=function(B,R){R=R===void 0?200:R;return B?R===300?Q_K:bcI:R===300?qxp:JJK};
NH5=function(B){if(_.k("enable_web_tiered_gel")){B=jTI[B||""];var R,V,e,X=_.Oz().resolve(_.uj(fE))==null?void 0:(R=U9I())==null?void 0:(V=R.loggingHotConfig)==null?void 0:(e=V.eventLoggingConfig)==null?void 0:e.payloadPolicies;if(X)for(R=0;R<X.length;R++)if(X[R].payloadNumber===B)return X[R]}};
UU_=function(B){B=Object.keys(B);B=_.h(B);for(var R=B.next();!R.done;R=B.next())if(R=R.value,jTI[R])return R};
Gvq=function(B){switch(B){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}};
HJd=function(B){return B==="gelDebuggingEvent"};
FaN=function(B){return(B===void 0?0:B)&&_.k("vss_through_gel_video_stats")?"video_stats":"log_event"};
zn=function(B,R,V,e){e=e===void 0?{}:e;var X={},Y=Math.round(e.timestamp||(0,_.P8)());X.eventTimeMs=Y<Number.MAX_SAFE_INTEGER?Y:0;X[B]=R;B=_.B5();X.context={lastActivityMs:String(e.timestamp||!isFinite(B)?-1:B)};e.sequenceGroup&&!_.k("web_gel_sequence_info_killswitch")&&(B=X.context,R=e.sequenceGroup,R={index:Nlp(R),groupKey:R},B.sequence=R,e.endOfSequence&&delete le[e.sequenceGroup]);(e.sendIsolatedPayload?yMI:Mm5)({endpoint:"log_event",payload:X,cttAuthInfo:e.cttAuthInfo,dangerousLogToVisitorSession:e.dangerousLogToVisitorSession},
V)};
Nlp=function(B){le[B]=B in le?le[B]+1:0;return le[B]};
_.dn=function(B,R,V){V=V===void 0?{}:V;var e=aq;_.KQ("ytLoggingEventsDefaultDisabled",!1)&&aq===aq&&(e=null);zn(B,R,e,V)};
_.wn=function(){if(_.k("web_fp_via_jspb")){var B=!0;B=B===void 0?!1:B;var R=G2K;G2K=[];if(R){R=_.h(R);for(var V=R.next();!V.done;V=R.next())V=V.value,B?zn(V.payloadName,V.payload,aq,V.options):_.dn(V.payloadName,V.payload,V.options)}lqZ(void 0,!0);if(!_.k("web_fp_via_jspb_and_json"))return}lqZ(void 0,!1)};
yJI=function(B,R){var V;if((V=R)==null?0:V.componentStack)return R;if(B=B.componentStack)R||(R={}),R.componentStack=B;return R};
S5d=function(){_.ij(_.vE("ERRORS")||[],function(B){_.Tn.apply(null,B)});
_.LQ("ERRORS",[])};
_.v5=function(B){_.Tn(B)};
_.KE=function(B){_.Tn(B,"WARNING")};
HcZ=function(B){B instanceof Error?_.Tn(B):(B=_.Xa(B)?JSON.stringify(B):String(B),B=new _.H8(B),B.name="RejectedPromiseError",_.KE(B))};
MRZ=function(B,R,V,e,X,Y){R=R===void 0?"Unknown file":R;V=V===void 0?0:V;var t=!1,b=UKo("log_window_onerror_fraction");if(b&&Math.random()<b)t=!0;else{b=document.getElementsByTagName("script");for(var J=0,G=b.length;J<G;J++)if(b[J].src.indexOf("/debug-")>0){t=!0;break}}t&&(t=!1,X?t=!0:(typeof B==="string"?b=B:ErrorEvent&&B instanceof ErrorEvent?(t=!0,b=B.message,R=B.filename,V=B.lineno,e=B.colno):(b="Unknown error",R="Unknown file",V=0),X=new _.H8(b),X.name="UnhandledWindowError",X.message=b,X.fileName=
R,X.lineNumber=V,isNaN(e)?delete X.columnNumber:X.columnNumber=e),_.k("wiz_enable_component_stack_propagation_killswitch")||(Y=yJI(X,Y)),Y&&_.Iq(X,Y),t?_.Tn(X):_.KE(X))};
_.Tn=function(B,R,V,e,X,Y,t,b){Y=Y===void 0?{}:Y;Y.name=V||_.vE("INNERTUBE_CONTEXT_CLIENT_NAME",1);Y.version=e||_.vE("INNERTUBE_CONTEXT_CLIENT_VERSION");V=Y;R=R===void 0?"ERROR":R;t=t===void 0?!1:t;R=R===void 0?"ERROR":R;t=t===void 0?!1:t;if(B&&(B.hasOwnProperty("level")&&B.level&&(R=B.level),_.k("console_log_js_exceptions")&&(e=[],e.push("Name: "+B.name),e.push("Message: "+B.message),B.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(B.params)),B.hasOwnProperty("args")&&e.push("Error args: "+
JSON.stringify(B.args)),e.push("File name: "+B.fileName),e.push("Stacktrace: "+B.stack),e=e.join("\n"),window.console.log(e,B)),!(k2S>=5))){e=[];X=_.h(D9S);for(Y=X.next();!Y.done;Y=X.next()){Y=Y.value;try{Y()&&e.push(Y())}catch(L){}}e=[].concat(_.MI(f9A),_.MI(e));var J=l9Y(B);X=J.message||"Unknown Error";Y=J.name||"UnknownError";var G=J.stack||B.stacktrace||"Not available";if(G.startsWith(Y+": "+X)){var y=G.split("\n");y.shift();G=y.join("\n")}y=J.lineNumber||"Not available";J=J.fileName||"Not available";
var S=0;if(B.hasOwnProperty("args")&&B.args&&B.args.length)for(var M=0;M<B.args.length&&!(S=tkK(B.args[M],"params."+M,V,S),S>=500);M++);else if(B.hasOwnProperty("params")&&B.params){var f=B.params;if(typeof B.params==="object")for(M in f){if(f[M]){var z="params."+M,T=jC(f[M]);V[z]=T;S+=z.length+T.length;if(S>500)break}}else V.params=jC(f)}if(e.length)for(M=0;M<e.length&&!(S=tkK(e[M],"params.context."+M,V,S),S>=500);M++);navigator.vendor&&!V.hasOwnProperty("vendor")&&(V["device.vendor"]=navigator.vendor);
M={message:X,name:Y,lineNumber:y,fileName:J,stack:G,params:V,sampleWeight:1};V=Number(B.columnNumber);isNaN(V)||(M.lineNumber=M.lineNumber+":"+V);if(B.level==="IGNORED")B=0;else a:{B=zIY();V=_.h(B.messageWeights);for(e=V.next();!e.done;e=V.next())if(e=e.value,M.message&&M.message.match(e.messageRegExp)){B=e.weight;break a}B=_.h(B.callbackWeights);for(V=B.next();!V.done;V=B.next())if(V=V.value,V.callback(M)){B=V.weight;break a}B=1}M.sampleWeight=B;B=_.h(a9x);for(V=B.next();!V.done;V=B.next())if(V=
V.value,V.patternsForType[M.name])for(X=_.h(V.patternsForType[M.name]),e=X.next();!e.done;e=X.next())if(Y=e.value,e=M.message.match(Y.regexp)){M.params["params.error.original"]=e[0];X=Y.groups;Y={};for(y=0;y<X.length;y++)Y[X[y]]=e[y+1],M.params["params.error."+X[y]]=e[y+1];M.message=V.messageFn(Y);break}M.params||(M.params={});B=zIY();M.params["params.errorServiceSignature"]="msg="+B.messageWeights.length+"&cb="+B.callbackWeights.length;M.params["params.serviceWorker"]="false";_.R5.document&&_.R5.document.querySelectorAll&&
(M.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Ed(d9Z,"sample")).constructor!==Ed&&(M.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(M);if(M.sampleWeight!==0&&!wKu.has(M.message)){if(t&&_.k("web_enable_error_204"))TlA(R===void 0?"ERROR":R,M);else{R=R===void 0?"ERROR":R;R==="ERROR"?(x9u.publish("handleError",M),_.k("record_app_crashed_web")&&LRd===0&&M.sampleWeight===1&&(LRd++,t={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.k("report_client_error_with_app_crash_ks")||(t.systemHealth={crashData:{clientError:{logMessage:{message:M.message}}}}),_.dn("appCrashed",t)),vTd++):R==="WARNING"&&x9u.publish("handleWarning",M);if(_.k("kevlar_gel_error_routing")){t=R;b=b===void 0?{}:b;b:{B=_.h(KR5);for(V=B.next();!V.done;V=B.next())if(xz(V.value.toLowerCase())){B=!0;break b}B=!1}if(B)b=void 0;else{V={stackTrace:M.stack};M.fileName&&(V.filename=M.fileName);B=M.lineNumber&&M.lineNumber.split?M.lineNumber.split(":"):[];B.length!==
0&&(B.length!==1||isNaN(Number(B[0]))?B.length!==2||isNaN(Number(B[0]))||isNaN(Number(B[1]))||(V.lineNumber=Number(B[0]),V.columnNumber=Number(B[1])):V.lineNumber=Number(B[0]));B={level:"ERROR_LEVEL_UNKNOWN",message:M.message,errorClassName:M.name,sampleWeight:M.sampleWeight};t==="ERROR"?B.level="ERROR_LEVEL_ERROR":t==="WARNING"&&(B.level="ERROR_LEVEL_WARNNING");V={isObfuscated:!0,browserStackInfo:V};b.pageUrl=window.location.href;b.kvPairs=[];_.vE("FEXP_EXPERIMENTS")&&(b.experimentIds=_.vE("FEXP_EXPERIMENTS"));
e=_.vE("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!UKo("web_disable_gel_stp_ecatcher_killswitch")&&e)for(X=_.h(Object.keys(e)),Y=X.next();!Y.done;Y=X.next())Y=Y.value,b.kvPairs.push({key:Y,value:String(e[Y])});if(e=M.params)for(X=_.h(Object.keys(e)),Y=X.next();!Y.done;Y=X.next())Y=Y.value,b.kvPairs.push({key:"client."+Y,value:String(e[Y])});e=_.vE("SERVER_NAME");X=_.vE("SERVER_VERSION");e&&X&&(b.kvPairs.push({key:"server.name",value:e}),b.kvPairs.push({key:"server.version",value:X}));b={errorMetadata:b,
stackTrace:V,logMessage:B}}b&&(_.dn("clientError",b),(t==="ERROR"||_.k("errors_flush_gel_always_killswitch"))&&_.wn())}_.k("suppress_error_204_logging")||TlA(R,M)}try{wKu.add(M.message)}catch(L){}k2S++}}};
TlA=function(B,R){var V=R.params||{};B={urlParams:{a:"logerror",t:"jserror",type:R.name,msg:R.message.substr(0,250),line:R.lineNumber,level:B,"client.name":V.name},postParams:{url:_.vE("PAGE_NAME",window.location.href),file:R.fileName},method:"POST"};V.version&&(B["client.version"]=V.version);if(B.postParams){R.stack&&(B.postParams.stack=R.stack);R=_.h(Object.keys(V));for(var e=R.next();!e.done;e=R.next())e=e.value,B.postParams["client."+e]=V[e];if(V=_.vE("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(R=
_.h(Object.keys(V)),e=R.next();!e.done;e=R.next())e=e.value,B.postParams[e]=V[e];(V=_.vE("LAVA_VERSION"))&&(B.postParams["lava.version"]=V);V=_.vE("SERVER_NAME");R=_.vE("SERVER_VERSION");V&&R&&(B.postParams["server.name"]=V,B.postParams["server.version"]=R)}_.W8(_.vE("ECATCHER_REPORT_HOST","")+"/error_204",B)};
_.I9d=function(B,R){R=R===void 0?"ERROR":R;var V=V===void 0?{}:V;var e=_.qN("ytbin.polymer.shared.lib.tampering.info");e&&(e=e())&&(V["params.tamperingInfo"]=e.sort().join(","));_.Tn(B,R,void 0,void 0,!0,V)};
_.Iq=function(B){var R=_.HB.apply(1,arguments);B.args||(B.args=[]);Array.isArray(B.args)&&B.args.push.apply(B.args,_.MI(R))};
ETu=function(B){B.level="IGNORED"};
QTp=function(B,R){f9A.push(B);R();f9A.pop()};
qe=function(B,R){for(var V in R)R.hasOwnProperty(V)&&(B=_.QU(B,V,R[V]));return B};
_.q5K=function(B,R,V){V=V===void 0?!1:V;if(!B)return null;if(B.adInfoDialogEndpoint||B.backstageImageUploadEndpoint||B.confirmDialogEndpoint||B.clientActionEndpoint||B.createBackstagePostDialogEndpoint||B.createCommentReplyDialogEndpoint||B.flowEndpoint||B.guideBuilderEndpoint||B.liveChatDialogEndpoint||B.modalEndpoint||B.openPopupAction||B.shareEndpoint||B.shareEntityEndpoint||B.showLiveChatItemEndpoint||B.subscriptionManagerEndpoint||B.unlimitedCreateFamilyEndpoint||B.unlimitedFamilyFlowEndpoint||
B.updateCommentDialogEndpoint||B.updateCommentReplyDialogEndpoint||B.userFeedbackEndpoint||B.videoEditorEndpoint||B.ypcCancelSurveyEndpoint)return R=_.RC("polymer_report_client_url_requested_rate"),!V&&Math.random()<R&&_.KE(new _.H8("urlForEndpoint used on client endpoint",B)),null;var e=_.RC("polymer_report_missing_web_navigation_endpoint_rate");if(B.liveChatEndpoint||B.liveChatReplayEndpoint)e=0;if(!B.commandMetadata&&!B.clickTrackingParams&&Math.random()<e){var X={},Y;for(Y in B)X[Y]="1";_.KE(new _.H8("Missing navigation data",
X))}X="";if(B.commandMetadata&&B.commandMetadata.webCommandMetadata&&B.commandMetadata.webCommandMetadata.url)X=B.commandMetadata.webCommandMetadata.url;else if(B.searchEndpoint)Math.random()<e&&_.KE(new _.H8("Should not manually handle search",B)),X="/results?search_query="+encodeURIComponent(B.searchEndpoint.query).replace(/%20/g,"+"),B.searchEndpoint.params&&(X+="&sp="+B.searchEndpoint.params);else if(B.watchEndpoint)Math.random()<e&&_.KE(new _.H8("Should not manually handle watch",B)),X="/watch?v="+
B.watchEndpoint.videoId,B.watchEndpoint.playlistId&&(X+="&list="+B.watchEndpoint.playlistId),B.watchEndpoint.index&&(X+="&index="+B.watchEndpoint.index),B.watchEndpoint.startTimeSeconds&&(X+="&t="+B.watchEndpoint.startTimeSeconds);else if(B.browseEndpoint)e=B.browseEndpoint.browseId,(Y=B.browseEndpoint.canonicalBaseUrl)?X=Y:e&&(X=e.substr(0,2),X=X==="FE"?e==="FEwhat_to_watch"?"/":e==="FEmy_videos"?"/my_videos":"/feed/"+e.substr(2):X==="VL"?"/playlist?list="+e.substr(2):"/channel/"+e),X&&B.browseEndpoint.query&&
(X=qe(X+"/search",{query:B.browseEndpoint.query})),X&&B.browseEndpoint.params&&(X=qe(X,{params:B.browseEndpoint.params}));else{if(B.urlEndpoint)return B.urlEndpoint.url;B.signInEndpoint?(X="https://accounts.google.com/ServiceLogin",e={},_.M_.extend(e,R||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),R=e):B.uploadEndpoint?X="//www.youtube.com/upload":B.liveChatEndpoint?(X=B.liveChatEndpoint,e=_.M_.clone(X),_.Xa(X.continuation)&&(Y=Object.keys(X.continuation)[0],
e.continuation=X.continuation[Y].continuation),X=qe("/youtubei/v1/live_chat/get_live_chat",e)):B.liveChatReplayEndpoint?(X=_.M_.clone(B.liveChatReplayEndpoint),X.currentPlayerState&&(_.M_.extend(X,X.currentPlayerState),delete X.currentPlayerState),X=qe("/youtubei/v1/live_chat/get_live_chat_replay",X)):B.liveChatItemContextMenuEndpoint?X=qe("/youtubei/v1/live_chat/get_item_context_menu",B.liveChatItemContextMenuEndpoint):B.liveChatPurchaseMessageEndpoint?X=qe("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
B.liveChatPurchaseMessageEndpoint):B.openSuperStickerBuyFlowCommand?X=qe("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",B.openSuperStickerBuyFlowCommand):B.videoEditEndpoint?X=qe("/edit",{video_id:B.videoEditEndpoint.videoId}):B.liveDashboardEndpoint?X=B.liveDashboardEndpoint.videoId?qe("/live_dashboard",{v:B.liveDashboardEndpoint.videoId}):"/live_dashboard":B.signalNavigationEndpoint&&B.signalNavigationEndpoint.signal&&B.signalNavigationEndpoint.signal==="WEBCAM"?X="/webcam":B.getPdgBuyFlowCommand&&
(X=qe(B.getPdgBuyFlowCommand.buyflowApiPath,{params:B.getPdgBuyFlowCommand.params}))}return X||V?qe(X,R||{}):(_.KE(new _.H8("Error: Can't construct url for endpoint","keys:"+Object.keys(B).sort().join(","),B)),null)};
cJd=function(B){if(B){if(B.browseEndpoint)return!!B.browseEndpoint.nofollow;if(B.watchEndpoint)return!!B.watchEndpoint.nofollow;if(B.urlEndpoint)return!!B.urlEndpoint.nofollow}return!1};
_.icx=function(B,R){var V=R+B,e=AJA.get(V);if(e)return e;B=R+"-"+B.replace(/([A-Z])/g,"-$1").toLowerCase();AJA.set(V,B);return B};
sT_=function(B){var R=_.TM(B,"action")||_.TM(B,"command")||_.TM(B,"endpoint");if(!R)return null;R=_.icx(R,"yt");_.D(B,_.c5)&&(R+="-"+_.D(B,_.c5).signal.toLowerCase().replace(/_/g,"-"));return R};
Zcx=function(B){try{var R=Object.keys(B)}catch(X){return[]}for(var V=0;V<R.length;V++){var e=R[V];if(FRY.test(e)||rJ_.test(e))return gT5(B[e])}return[]};
gT5=function(B){return B.command?[B.command]:B.onExecutionAction?[B.onExecutionAction]:B.onResponseReceivedCommand?[B.onResponseReceivedCommand]:B.updateFlowCommand?[B.updateFlowCommand]:B.clientActions?B.clientActions:B.action?[B.action]:B.actions||B.commands||B.onResponseReceivedActions||B.onResponseReceivedCommands||B.onResponseReceivedEndpoints||[]};
$9u=function(B,R){R=R===void 0?!1:R;var V=_.Oz().resolve(_.uj(AK));V||(V=new m9o,_.Oz().addProvider({provide:AK,useValue:V}));return V&&B&&!_.M_.isEmpty(B)?V.getUrl(B,R):""};
Caq=function(B,R,V){V=V===void 0?"":V;if(R){B.data=R;var e=$9u(R);e?(f$(B,e),cJd(R)||!PE(e)?B.rel="nofollow":B.removeAttribute("rel"),_.D(R,_.ie)&&_.D(R,_.ie).target==="TARGET_NEW_WINDOW"?B.target="_blank":V?B.target=V:B.removeAttribute("target")):(B.removeAttribute("href"),B.removeAttribute("rel"),B.removeAttribute("target"))}};
_.gn=function(B,R){var V=Zv;if(MW())Pao(B,function(){var Y=_.HB.apply(0,arguments);Ta(V,function(){R.apply(null,_.MI(Y))})});
else{var e=_.sd.getInstance(),X=wg(R);kj(function(){X.value=R});
_.zM(function(){var Y={},t=_.Fo(e,(Y[B]=function(){var b=_.HB.apply(0,arguments);Ta(V,function(){X.value.apply(X,_.MI(b))})},Y));
return function(){var b={};_.rn(e,(b[B]="",b),t)}})}};
_.Zh=function(B){return MW()?nTS(B):uc5(B)};
_.mA=function(B){return MW()?nTS(B):uc5(B)};
uc5=function(B){return dg(function(){return nTS(B)})};
nTS=function(B){var R=BBZ(function(V){R.value&&R.value===V||(R.__count=R.__count?R.__count+1:1);R.value=V;var e=function(){var X=eA(null);try{return B==null?void 0:B(V)}finally{eA(X)}}();
return function(){e==null||e();R.value=null}});
return R};
Oc_=function(B){var R=Zv,V=OJ.enableContextBasedComponentStacks?void 0:SA;return{getFn:function(){return function(e){if(!R.isDisposed){var X=function(){return tI(function(){return B(e)})};
if(OJ.enableContextBasedComponentStacks)try{var Y=X()}catch(t){throw OJ.enableContextBasedComponentStacks&&kR(t),t;}else Y=fW(X,V);Y!==!0&&e.stopPropagation()}}}}};
Rqd=function(B,R){if(MW())oBx(B,function(e){var X=eA(null);try{R(e)}finally{eA(X)}});
else{var V=wg(R);kj(function(){V.value=R});
_.zM(function(){var e=B.value;if(e){var X=function(Y){V.value(Y)};
e.addEventListener("yt-service-request-sent",X,void 0);return function(){e?e.removeEventListener("yt-service-request-sent",X,void 0):B1d(B)}}B1d(B)})}};
B1d=function(B){var R;(R=OJ.handleError)==null||R.call.apply(R,[OJ].concat(_.MI(xR(RWx.LOG_NULL_EL_REF_VALUE(),B.__expectedTagName,2))))};
$D=function(B){if(typeof B.children==="function")return B.children(),null;B=_.h(B.children);for(var R=B.next();!R.done;R=B.next())R=R.value,R();return null};
VQd=function(B){var R;return((R=B.prototype)==null?void 0:R.render)===void 0};
eqK=function(B){B=B.items.map(B.children);return B.length>0&&typeof B[0]==="string"?B.join(""):B};
prq=function(B,R,V){V=V===void 0?!1:V;if(OJ.enableContextBasedComponentStacks)try{Xr5(B,R,V)}catch(e){throw kR(e),e;}else fW(function(){return Xr5(B,R,V)})};
Xr5=function(B,R,V){V=((V===void 0?0:V)?YsN:hqp)(B,function(){CE(R)});
return V===null?B:V};
CE=function(B){if(B!==void 0&&B!==null)if(B instanceof tS)for(var R=IK;EZ()!=null&&cKN in EZ()&&R.contains(EZ());)cU();else if(Array.isArray(B))for(R=_.h(B),B=R.next();!B.done;B=R.next())CE(B.value);else if(B instanceof p$||"function"==typeof _.iD&&B instanceof _.iD)PU(B.toString());else if(BE(B)){if(EZ()!==B){var V,e;R=(e=(V=SA)==null?void 0:V.name)!=null?e:"unknown";throw Error("ec`"+B.tagName+"`"+R);}cU()}else if(B!=null&&B.contentKind===ev||B instanceof zm)for(R=p5S(B),R=Array.from(R.childNodes),
R=_.h(R),B=R.next();!B.done;B=R.next())IK.appendChild(B.value),cU();else if(JR(B)&&(B=B.toString()),V=typeof B,V==="boolean"||V==="number"||V==="string")PU(B);else if(typeof B==="function"){R=IK;var X=EZ();X&&(X._isSignalTextNode||X._isSafeOrSanitizedHtmlNode)||w5I(R,X,B);cU()}else if(B.type===eqK)CE(B.type(Object.assign({},B.props,{children:B.children[0]})));else{JS.beforeVisit(B);if(typeof B.type==="string"){a:{B.__open||A$Y(B.type,B.props.idomKey);X=IK;for(R in B.props)if(B.props[R]!==tQA){var Y=
B.props[R];V=rA;V.push(R);V.push(Y)}R=OJ.attributes;R=R===void 0?P5:R;Y=IK;V=KW(Y);mCY(Y,V,R);deo(X,B.props,!0);if((B.props.skip||B.props.skipchildren)&&IK.hasChildNodes())iJ();else{if(B.type==="style"&&jqd(B.children)===null){iJ();R=void 0;break a}CE(B.children)}i6p();B.__open&&(B.__open=!1);oD_(X,B.props);R=X}return R}if(B.type===_.OZ)CE(B.children);else if(!W3d(B)){R=B;try{bD5(R)}catch(t){B=t,(Y=OJ.handleError)==null||Y.call.apply(Y,[OJ].concat(_.MI(xR(B,(X=R.type)==null?void 0:X.TAG_NAME))))}R.__open&&
(i6p(),R.__open=!1)}}};
J3A=function(B,R){var V;VQd(B)?V=new Uz(R,B):V=new B(R);V.JSC$8174___type=B;V.__updateContext={nextState:V.state,isForced:!1};return V};
bD5=function(B){var R=B.type,V=R.TAG_NAME;if(R===$D)B.props.children=B.children,R(B.props);else{B.children.length>0&&(B.props.children=B.children);var e;(e=B.props).idomKey||(e.idomKey=R);if(V){var X=A$Y(V,B.props.idomKey);B.__open=!0;var Y=X.__instance}Y||(Y=J3A(R,B.props),Y.props=null,X&&(X.__instance=Y,Y.el=X));var t;V=((t=Y.__updateContext)!=null?t:{nextState:Y.state,isForced:!1}).nextState;Y.__updateContext=void 0;R.getDerivedStateFromProps&&(V=R.getDerivedStateFromProps(B.props,V));Y.props=
B.props;Y.state=V;t=function(){var b=Y;JS.beforeRender(b);var J=b.render(b.props);JS.afterRender(b,J);J?(b.props.idomKey&&(J.props.idomKey=b.props.idomKey),b=J):b=void 0;if(J=b)if(J.__open=B.__open,b=CE(J),B.__open=J.__open,!R.TAG_NAME)if(b)R.TAG_NAME=b.tagName.toLowerCase(),b.__instance=Y,Y.el=b;else{var G;if((G=Y.hooks)==null?0:G.length){var y;(y=OJ.handleError)==null||y.call.apply(y,[OJ].concat(_.MI(xR(Error("kd")))))}}Y.didPatch();JS.didPatch(Y)};
(V=Y.functionComponent)?etd({component:V,debugInstance:Y.props.debugInstance,fn:t}):t()}};
W3d=function(B){var R=B.type;if(!VQd(R)||R===$D||R.componentType===HU)return!1;B.props.children=B.children.length>1?B.children:B.children[0];var V,e=(V=B.props.idomKey)!=null?V:B.type,X;if(EZ()&&((X=EZ()[pQ])==null?void 0:X.key)===e){var Y=EZ(),t=Y[pQ];if(!t)throw Error("dc`"+Y.tagName);var b;(b=t.updateSignalsFromIdomProps)==null||b.call(t,B.props);jOA(t);return!0}if(Uxu.has(R.name))throw b=R.name,R=(t=(Y=SA)==null?void 0:Y.name)!=null?t:"unknown",Error("cc`"+b+"`"+R);vDK(B.type,B.props,B.children);
B.props.renderedFromIdom=!0;(b=etd({component:B.type,debugInstance:B.props.debugInstance,fn:function(){return De_(B.type,B.props)}}))&&N1_(b);
return!0};
GjK=function(B){for(var R=0;R<hS(B).length;R++)cU()};
jOA=function(B){var R=y3x();if(R)GjK(R);else for(var V=0;V<B.numNodes;V++)(R=y3x())?GjK(R):cU()};
y3x=function(){var B;return(B=EZ()[pQ])==null?void 0:B.sourceDynamicRange};
N1_=function(B){B=Rbo(B);B=Array.isArray(B)?B:[B];B=_.h(B);for(var R=B.next();!R.done;R=B.next())IK.insertBefore(R.value,EZ()),cU()};
Ssd=function(B){var R=lhx(),V=dg(function(){return{value:typeof B==="function"?B():B}});
return[V.value,function(e){if(jv!==null){var X;(X=OJ.handleError)==null||X.call.apply(X,[OJ].concat(_.MI(xR(Error("ld")))))}V.value=typeof e==="function"?e(V.value):e;R.__updateContext={nextState:R.state,isForced:!0};e=mq(R.effectContext);X=oP(!1);try{if(R.el){var Y,t={},b=(t.props=R.props,t.type=R.JSC$8174___type,t.children=(Y=R.props.children)!=null?Y:[],t[uJ]=!0,t);try{prq(R.el,b,!0)}catch(y){var J,G;(G=OJ.handleError)==null||G.call.apply(G,[OJ].concat(_.MI(xR(y,(J=R.JSC$8174___type)==null?void 0:
J.TAG_NAME))))}}}finally{oP(X),mq(e)}}]};
nE=function(B,R){var V=Zv,e=function(X){Ta(V,function(){R(X)})};
window.addEventListener(B,e,void 0);_.aK(function(){window.removeEventListener(B,e,void 0)})};
_.Od=function(B,R){var V=Zv;_.zM(function(){var e,X=(e=R.observer)!=null?e:_.Oz().resolve(ue);if(e=B.value){var Y=HDp(e),t=[];R.showOption&&t.push(X.observe(e,function(){Ta(V,function(){R.visibilityCallback(!0)})},R.showOption));
R.hideOption&&t.push(X.observe(e,function(){Ta(V,function(){R.visibilityCallback(!1)})},R.hideOption));
R.prescanOption&&R.prescanCallback&&t.push(X.observe(e,function(){Ta(V,function(){R.prescanCallback()})},R.prescanOption));
var b;Y.visibilityMonitorKeys=((b=Y.visibilityMonitorKeys)!=null?b:[]).concat(t)}})};
HDp=function(B){var R;return(R=B.polymerController)!=null?R:B};
_.oA=function(B){B.componentType=HU};
fPN=function(B,R){var V=MQS;return _.N(_.OZ,null,gz(OJ.enableLazyTsx,function(){return _.N(kjN,{id:V,value:B,children:R})},function(){var e=DxI(V,B);
nd(e);e=mq(e);try{return R()}finally{mq(e)}}))};
kjN=function(B){var R=B.children;B=DxI(B.id,B.value);nd(B);B=mq(B);try{return _.N(_.OZ,null,WE(R()))}finally{mq(B)}};
DxI=function(B,R){return Object.assign(Object.create(lP5),{id:B,contextValue:R})};
zqS=function(B){var R,V=Zv;_.za(function(){var e=mq(V),X=oP(!R);try{if(R)prq(R,B.children(),!0);else if(R=WE(B.children()),!(R instanceof Element))throw Error("md");}finally{oP(X),mq(e)}});
return R};
aPA=function(B){var R,V=dA(function(){var e=oP(!0);try{R=hS(B())}finally{oP(e)}},!1);
return[R,V]};
wrI=function(B){B=B.buf.charCodeAt(B.pos++);return dxY[B]};
Bw=function(B){var R=0,V=0;do{var e=wrI(B);R|=(e&31)<<V;V+=5}while(e&32);return R<0?R+4294967296:R};
L3o=function(B,R,V){T1d(B,R);B[R][xxu].unshift(V)};
T1d=function(B,R){if(!B[R]||!B[R][xxu]){var V=B[R],e=V?[V]:[];B[R]=function(){for(var X=_.h(e),Y=X.next();!Y.done;Y=X.next())Y.value.apply(this,arguments)};
B[R][xxu]=e}};
vBd=function(B){if(!B)return[];var R=[];B=_.h(B);for(var V=B.next();!V.done;V=B.next())V=V.value,Array.isArray(V)?R.push.apply(R,_.MI(vBd(V))):R.push(V);return R};
_.V6=function(B,R){if(B&&K3q.test(B)||B==="//")return B;if(IPd===void 0){IPd=!1;try{var V=new URL("b","http://a");V.pathname="c%20d";IPd=V.href==="http://a/c%20d"}catch(e){}}R||(R=document.baseURI||window.location.href);if(IPd)try{return(new URL(B,R)).href}catch(e){return B}RA||(RA=document.implementation.createHTMLDocument("temp"),RA.base=RA.createElement("base"),RA.head.appendChild(RA.base),RA.anchor=RA.createElement("a"),RA.body.appendChild(RA.anchor));RA.base.href=R;RA.anchor.href=B;return RA.anchor.href||
B};
QOo=function(B,R){return B.replace(EB5,function(V,e,X,Y){return e+"'"+_.V6(X.replace(/["']/g,""),R)+"'"+Y})};
qsq=function(B){return B.substring(0,B.lastIndexOf("/")+1)};
iDI=function(){c3p=!1;for(var B=e6.length,R=0;R<B;R++){var V=e6[R];if(V)try{V()}catch(e){setTimeout(function(){throw e;})}}e6.splice(0,B);
A3u+=B};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(B){console.log("["+B.is+"]: registered")};
F3_=function(B){sON.push(B)};
Xi=function(B){return r3d[B]||(r3d[B]=B.indexOf("-")<0?B:B.replace(gBx,function(R){return R[1].toUpperCase()}))};
pn=function(B){return r3d[B]||(r3d[B]=B.replace(ZDN,"-$1").toLowerCase())};
mxu=function(B,R){var V=R.parentInfo&&mxu(B,R.parentInfo);if(V)for(B=V.firstChild,V=0;B;B=B.nextSibling){if(R.parentIndex===V++)return B}else return B};
$xp=function(B,R){B=B._methodHost||B;return function(V){if(B[R])B[R](V,V.detail);else console.warn("listener method `"+R+"` not defined")}};
Y_=function(B){return B.indexOf(".")>=0};
hm=function(B){var R=B.indexOf(".");return R===-1?B:B.slice(0,R)};
CPS=function(B,R){return B.indexOf(R+".")===0};
tm=function(B,R){return R.indexOf(B+".")===0};
Ww=function(B,R,V){return R+V.slice(B.length)};
PPK=function(B,R){return B===R||CPS(B,R)||tm(B,R)};
bA=function(B){if(Array.isArray(B)){for(var R=[],V=0;V<B.length;V++)for(var e=B[V].toString().split("."),X=0;X<e.length;X++)R.push(e[X]);return R.join(".")}return B};
nB5=function(B){return Array.isArray(B)?bA(B).split("."):B.toString().split(".")};
Jm=function(B,R,V){R=nB5(R);for(var e=0;e<R.length;e++){if(!B)return;B=B[R[e]]}V&&(V.path=R.join("."));return B};
uES=function(B,R,V){var e=nB5(R),X=e[e.length-1];if(e.length>1){for(R=0;R<e.length-1;R++)if(B=B[e[R]],!B)return;B[X]=V}else B[R]=V;return e.join(".")};
ODo=function(B,R,V){var e=B[R];if(!e)e=B[R]={};else if(!B.hasOwnProperty(R)&&(e=B[R]=Object.create(B[R]),V))for(var X in e)for(B=e[X],R=e[X]=Array(B.length),V=0;V<B.length;V++)R[V]=B[V];return e};
Uq=function(B,R,V,e,X,Y){if(R){var t=!1,b=j6++,J;for(J in V){var G=X?hm(J):J;if(G=R[G])for(var y=0,S=G.length,M=void 0;y<S&&(M=G[y]);y++)M.info&&M.info.lastRun===b||X&&!oxp(J,M.trigger)||(M.info&&(M.info.lastRun=b),M.fn(B,J,V,e,M.info,X,Y),t=!0)}return t}return!1};
oxp=function(B,R){if(R){var V=R.name;return V==B||!(!R.structured||!CPS(V,B))||!(!R.wildcard||!tm(V,B))}return!0};
Bbp=function(B,R,V,e,X){R=typeof X.method==="string"?B[X.method]:X.method;V=X.property;R?R.call(B,B.__data[V],e[V]):X.dynamicFn||console.warn("observer method `"+X.method+"` not defined")};
RwY=function(B,R,V,e){V={value:V,queueProperty:!0};e&&(V.path=e);(0,_.NK)(B).dispatchEvent(new CustomEvent(R,{detail:V}))};
VXd=function(B,R,V,e,X,Y){Y=(e=(Y?hm(R):R)!=R?R:null)?Jm(B,e):B.__data[R];e&&Y===void 0&&(Y=V[R]);RwY(B,X.eventName,Y,e)};
ewZ=function(B,R,V,e,X){V=B.__data[R];G8&&(V=G8(V,X.attrName,"attribute",B));B._propertyToAttribute(R,X.attrName,V)};
p7d=function(B){var R=B.constructor.__orderedComputedDeps;if(!R){R=new Map;for(var V=B.__computeEffects,e=X7I(B),X=e.counts,Y=e.ready,t=e.total;e=Y.shift();)R.set(e,R.size),(e=V[e])&&e.forEach(function(b){b=b.info.methodInfo;--t;--X[b]===0&&Y.push(b)});
t!==0&&console.warn("Computed graph for "+B.localName+" incomplete; circular?");B.constructor.__orderedComputedDeps=R}return R};
X7I=function(B){var R=B.__computeInfo,V={};B=B.__computeEffects;var e=[],X=0,Y;for(Y in R){var t=R[Y];X+=V[Y]=t.args.filter(function(J){return!J.literal}).length+(t.dynamicFn?1:0)}for(var b in B)R[b]||e.push(b);
return{counts:V,ready:e,total:X}};
hwS=function(B,R,V,e,X){R=YQu(B,R,V,e,X);if(R===y6)return!1;X=X.methodInfo;if(B.__dataHasAccessor&&B.__dataHasAccessor[X])return B._setPendingProperty(X,R,!0);B[X]=R;return!1};
bO5=function(B,R,V,e,X,Y,t){V.bindings=V.bindings||[];e={kind:e,target:X,parts:Y,literal:t,isCompound:Y.length!==1};V.bindings.push(e);e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"&&(V=e.parts[0],Y=V.negate,e.listenerEvent=V.event||pn(X)+"-changed",e.listenerNegate=Y);X=R.nodeInfoList.length;for(V=0;V<e.parts.length;V++){var b=e.parts[V];b.compoundIndex=V;Y=B;t=R;var J=e,G=b,y=X;if(!G.literal)if(J.kind==="attribute"&&J.target[0]==="-")console.warn("Cannot set attribute "+
J.target+' because "-" is not a valid attribute starting character');else for(b=G.dependencies,J={index:y,binding:J,part:G,evaluator:Y},G=0;G<b.length;G++)y=b[G],typeof y=="string"&&(y=tXq(y),y.wildcard=!0),Y._addTemplatePropertyEffect(t,y.rootProperty,{fn:WJI,info:J,trigger:y})}};
WJI=function(B,R,V,e,X,Y,t){t=t[X.index];var b=X.binding,J=X.part;Y&&J.source&&R.length>J.source.length&&b.kind=="property"&&!b.isCompound&&t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[b.target]?(V=V[R],R=Ww(J.source,b.target,R),t._setPendingPropertyOrPath(R,V,!1,!0)&&B._enqueueClient(t)):(R=X.evaluator._evaluateBinding(B,J,R,V,e,Y),R!==y6&&(b.isCompound&&(V=t.__dataCompoundStorage[b.target],V[J.compoundIndex]=R,R=V.join("")),b.kind==="attribute"||b.target!=="textContent"&&
(b.target!=="value"||t.localName!=="input"&&t.localName!=="textarea")||(R=R==void 0?"":R),J=R,G8&&(J=G8(J,b.target,b.kind,t)),b.kind=="attribute"?B._valueToNodeAttribute(t,J,b.target):(b=b.target,t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[b]?t.__readOnly&&t.__readOnly[b]||t._setPendingProperty(b,J)&&B._enqueueClient(t):B._setUnmanagedPropertyToNode(t,b,J))))};
Jvd=function(B,R,V){if(V.listenerEvent){var e=V.parts[0];B.addEventListener(V.listenerEvent,function(X){var Y=V.target,t=e.source,b=e.negate,J=X.detail,G=J&&J.path;G?(t=Ww(Y,t,G),X=J&&J.value):X=X.currentTarget[Y];R.__readOnly&&R.__readOnly[t]||!R._setPendingPropertyOrPath(t,b?!X:X,!0,!!G)||J&&J.queueProperty||R._invalidateProperties()})}};
jVK=function(B,R,V,e,X,Y){Y=R.static||Y&&(typeof Y!=="object"||Y[R.methodName]);X={methodName:R.methodName,args:R.args,methodInfo:X,dynamicFn:Y};for(var t=0,b=void 0;t<R.args.length&&(b=R.args[t]);t++)b.literal||B._addPropertyEffect(b.rootProperty,V,{fn:e,info:X,trigger:b});Y&&B._addPropertyEffect(R.methodName,V,{fn:e,info:X});return X};
YQu=function(B,R,V,e,X){e=B._methodHost||B;var Y=e[X.methodName];if(Y)return B=B._marshalArgs(X.args,R,V),B===y6?y6:Y.apply(e,B);X.dynamicFn||console.warn("method `"+X.methodName+"` not defined")};
UoY=function(B){for(var R="",V=0;V<B.length;V++)R+=B[V].literal||"";return R};
yvI=function(B){if(B=B.match(/([^\s]+?)\(([\s\S]*)\)/)){var R={methodName:B[1],static:!0,args:Nb_};return B[2].trim()?GrK(B[2].replace(/\\,/g,"&comma;").split(","),R):R}return null};
GrK=function(B,R){R.args=B.map(function(V){V=tXq(V);V.literal||(R.static=!1);return V},this);
return R};
tXq=function(B){B=B.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var R={name:B,value:"",literal:!1},V=B[0];V==="-"&&(V=B[1]);V>="0"&&V<="9"&&(V="#");switch(V){case "'":case '"':R.value=B.slice(1,-1);R.literal=!0;break;case "#":R.value=Number(B),R.literal=!0}R.literal||(R.rootProperty=hm(B),R.structured=Y_(B),R.structured&&(R.wildcard=B.slice(-2)==".*",R.wildcard&&(R.name=B.slice(0,-2))));return R};
SQN=function(B,R,V){B=Jm(B,V);B===void 0&&(B=R[V]);return B};
HOx=function(B,R,V,e){e={indexSplices:e};S6&&!B._overrideLegacyUndefined&&(R.splices=e);B.notifyPath(V+".splices",e);B.notifyPath(V+".length",R.length);S6&&!B._overrideLegacyUndefined&&(e.indexSplices=[])};
Hw=function(B,R,V,e,X,Y){HOx(B,R,V,[{index:e,addedCount:X,removed:Y,object:R,type:"splice"}])};
MXI=function(B){B=QOo((B.body?B.body:B).textContent,B.baseURI);var R=document.createElement("style");R.textContent=B;return R};
Dod=function(B){B=B.trim().split(/\s+/);for(var R=[],V=0;V<B.length;V++)R.push.apply(R,_.MI(krd(B[V])));return R};
krd=function(B){var R=MK.import(B);if(!R)return console.warn("Could not find style data in module named",B),[];if(R._styles===void 0){B=[];B.push.apply(B,_.MI(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(R)));var V=R.querySelector("template");V&&B.push.apply(B,_.MI(fEI(V,R.assetpath)));R._styles=B}return R._styles};
fEI=function(B,R){if(!B._styles){for(var V=[],e=B.content.querySelectorAll("style"),X=0;X<e.length;X++){var Y=e[X],t=Y.getAttribute("include");t&&V.push.apply(V,_.MI(Dod(t).filter(function(b,J,G){return G.indexOf(b)===J})));
R&&(Y.textContent=QOo(Y.textContent,R));V.push(Y)}B._styles=V}return B._styles};
lE_=function(B){return(B=MK.import(B))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(B){var R=[];B=B.querySelectorAll("link[rel=import][type~=css]");for(var V=0;V<B.length;V++){var e=B[V];if(e.import){var X=e.import;if((e=e.hasAttribute("shady-unscoped"))&&!X._unscopedStyle){var Y=MXI(X);Y.setAttribute("shady-unscoped","");X._unscopedStyle=Y}else X._style||(X._style=MXI(X));R.push(e?X._unscopedStyle:X._style)}}return R};
aES=function(B){B=B.trim().split(/\s+/);for(var R="",V=0;V<B.length;V++)R+=zwN(B[V]);return R};
zwN=function(B){var R=MK.import(B);if(R&&R._cssText===void 0){var V=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(R),e=R.querySelector("template");e&&(V+=do_(e,R.assetpath));R._cssText=V||null}R||console.warn("Could not find style data in module named",B);return R&&R._cssText||""};
do_=function(B,R){var V="";B=fEI(B,R);for(R=0;R<B.length;R++){var e=B[R];e.parentNode&&e.parentNode.removeChild(e);V+=e.textContent}return V};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(B){var R="";B=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B);for(var V=0;V<B.length;V++)R+=B[V].textContent;return R};
k_=function(B,R){return{index:B,removed:[],addedCount:R}};
TbY=function(B,R,V,e){var X=0,Y=0,t=0,b=0,J=Math.min(R-X,e-Y);if(X==0&&Y==0)a:{for(t=0;t<J;t++)if(B[t]!==V[t])break a;t=J}if(R==B.length&&e==V.length){b=B.length;for(var G=V.length,y=0;y<J-t&&w7x(B[--b],V[--G]);)y++;b=y}X+=t;Y+=t;R-=b;e-=b;if(R-X==0&&e-Y==0)return[];if(X==R){for(R=k_(X,0);Y<e;)R.removed.push(V[Y++]);return[R]}if(Y==e)return[k_(X,R-X)];J=X;t=Y;e=e-t+1;b=R-J+1;R=Array(e);for(G=0;G<e;G++)R[G]=Array(b),R[G][0]=G;for(G=0;G<b;G++)R[0][G]=G;for(G=1;G<e;G++)for(y=1;y<b;y++)if(B[J+y-1]===
V[t+G-1])R[G][y]=R[G-1][y-1];else{var S=R[G-1][y]+1,M=R[G][y-1]+1;R[G][y]=S<M?S:M}J=R.length-1;t=R[0].length-1;e=R[J][t];for(B=[];J>0||t>0;)J==0?(B.push(2),t--):t==0?(B.push(3),J--):(b=R[J-1][t-1],G=R[J-1][t],y=R[J][t-1],S=G<y?G<b?G:b:y<b?y:b,S==b?(b==e?B.push(0):(B.push(1),e=b),J--,t--):S==G?(B.push(3),J--,e=G):(B.push(2),t--,e=y));B.reverse();R=void 0;J=[];for(t=0;t<B.length;t++)switch(B[t]){case 0:R&&(J.push(R),R=void 0);X++;Y++;break;case 1:R||(R=k_(X,0));R.addedCount++;X++;R.removed.push(V[Y]);
Y++;break;case 2:R||(R=k_(X,0));R.addedCount++;X++;break;case 3:R||(R=k_(X,0)),R.removed.push(V[Y]),Y++}R&&J.push(R);return J};
xoI=function(B,R){return TbY(B,B.length,R,R.length)};
w7x=function(B,R){return B===R};
KJo=function(B){if(B instanceof vxo)return B.value;throw Error("Dd`"+B);};
IEN=function(B,R){for(var V in R)V===null?B.style.removeProperty(V):B.style.setProperty(V,R[V])};
ExA=function(B,R){return(B=window.getComputedStyle(B).getPropertyValue(R))?B.trim():""};
Avu=function(B){requestAnimationFrame(function(){QVp?QVp(B):(qQu||(qQu=new Promise(function(R){cvp=R}),document.readyState==="complete"?cvp():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&cvp()})),qQu.then(function(){B&&B()}))})};
FJS=function(B){iOK=B&&B.shimcssproperties?!1:sVd||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
$oZ=function(B){if(!(rvp.indexOf(B)>-1)&&B!=="touchend"&&gxZ&&ZOK&&mo5)return{passive:!0}};
utd=function(B){for(var R=ClK?["click"]:rvp,V=0,e;V<R.length;V++)e=R[V],B?(Pl_.length=0,document.addEventListener(e,nxY,!0)):document.removeEventListener(e,nxY,!0)};
Dp=function(B){var R=B.type;return rvp.indexOf(R)>-1?R==="mousemove"?(R=B.buttons===void 0?1:B.buttons,B instanceof window.MouseEvent&&!OOZ&&(R=o1u[B.which]||0),!!(R&1)):(B.button===void 0?0:B.button)===0:!1};
BLd=function(B){if(B.type==="click"){if(B.detail===0)return!0;var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B);if(!R.nodeType||R.nodeType!==Node.ELEMENT_NODE)return!0;R=R.getBoundingClientRect();var V=B.pageX;B=B.pageY;return!(V>=R.left&&V<=R.right&&B>=R.top&&B<=R.bottom)}return!1};
RuZ=function(B,R,V){B.movefn=R;B.upfn=V;document.addEventListener("mousemove",R);document.addEventListener("mouseup",V)};
fn=function(B){document.removeEventListener("mousemove",B.movefn);document.removeEventListener("mouseup",B.upfn);B.movefn=null;B.upfn=null};
VBu=function(B,R){for(var V=document.elementFromPoint(B,R),e=V;e&&e.shadowRoot&&!window.ShadyDOM;){var X=e;e=e.shadowRoot.elementFromPoint(B,R);if(X===e)break;e&&(V=e)}return V};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B){var R=eud(B);return R.length>0?R[0]:B.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B){var R=B.type,V=B.currentTarget.__polymerGestures;if(V&&(V=V[R])){if(!B.__polymerGesturesHandled&&(B.__polymerGesturesHandled={},R.slice(0,5)==="touch")){var e=B.changedTouches[0];R==="touchstart"&&B.touches.length===1&&(XId=e.identifier);if(XId!==e.identifier)return;gxZ||(R==="touchstart"||R==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B)}e=
B.__polymerGesturesHandled;if(!e.skip){for(var X=0,Y;X<lA.length;X++)Y=lA[X],V[Y.name]&&!e[Y.name]&&Y.flow&&Y.flow.start.indexOf(B.type)>-1&&Y.reset&&Y.reset();for(X=0;X<lA.length;X++)Y=lA[X],V[Y.name]&&!e[Y.name]&&(e[Y.name]=!0,Y[R](B))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B){var R=B.changedTouches[0],V=B.type;if(V==="touchstart")pId=R.clientX,YyY=R.clientY,huS=!1;else if(V==="touchmove"&&!huS){huS=!0;V="auto";for(var e=eud(B),X=0,Y;X<e.length;X++)if(Y=e[X],Y.__polymerGesturesTouchAction){V=Y.__polymerGesturesTouchAction;break}e=!1;X=Math.abs(pId-R.clientX);R=Math.abs(YyY-R.clientY);B.cancelable&&(V==="none"?e=!0:V==="pan-x"?e=R>X:V==="pan-y"&&(e=X>R));e?B.preventDefault():
z8("track")}};
dB=function(B,R,V){return aA[R]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,R,V),!0):!1};
wB=function(B,R,V){return aA[R]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B,R,V),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B,R,V){var e=aA[R],X=e.deps,Y=e.name,t=B.__polymerGestures;t||(B.__polymerGestures=t={});for(var b=0,J,G;b<X.length;b++)J=X[b],ClK&&rvp.indexOf(J)>-1&&J!=="click"||((G=t[J])||(t[J]=G={_count:0}),G._count===0&&B.addEventListener(J,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,$oZ(J)),G[Y]=(G[Y]||0)+1,G._count=(G._count||0)+1);B.addEventListener(R,V);e.touchAction&&_.T8(B,e.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B,R,V){var e=aA[R],X=e.deps;e=e.name;var Y=B.__polymerGestures;if(Y)for(var t=0,b,J;t<X.length;t++)b=X[t],(J=Y[b])&&J[e]&&(J[e]=(J[e]||1)-1,J._count=(J._count||1)-1,J._count===0&&B.removeEventListener(b,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,$oZ(b)));B.removeEventListener(R,V)};
tBx=function(B){lA.push(B);for(var R=0;R<B.emits.length;R++)aA[B.emits[R]]=B};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B){for(var R=0,V;R<lA.length;R++){V=lA[R];for(var e=0,X;e<V.emits.length;e++)if(X=V.emits[e],X===B)return V}return null};
_.T8=function(B,R){gxZ&&B instanceof HTMLElement&&x_.run(function(){B.style.touchAction=R});
B.__polymerGesturesTouchAction=R};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(B,R,V){R=new Event(R,{bubbles:!0,cancelable:!0,composed:!0});R.detail=V;(0,_.NK)(B).dispatchEvent(R);R.defaultPrevented&&(B=V.preventer||V.sourceEvent)&&B.preventDefault&&B.preventDefault()};
z8=function(B){B=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B);B.info&&(B.info.prevent=!0)};
Ln=function(B,R,V,e){R&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,B,{x:V.clientX,y:V.clientY,sourceEvent:V,preventer:e,prevent:function(X){return z8(X)}})};
W2S=function(B,R,V){if(B.prevent)return!1;if(B.started)return!0;V=Math.abs(B.y-V);return Math.abs(B.x-R)>=5||V>=5};
bw5=function(B,R,V){if(R){var e=B.moves[B.moves.length-2],X=B.moves[B.moves.length-1],Y=X.x-B.x,t=X.y-B.y,b=0;if(e){var J=X.x-e.x;b=X.y-e.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,"track",{state:B.state,x:V.clientX,y:V.clientY,dx:Y,dy:t,ddx:J,ddy:b,sourceEvent:V,hover:function(){return VBu(V.clientX,V.clientY)}})}};
j7u=function(B,R,V){var e=Math.abs(R.clientX-B.x),X=Math.abs(R.clientY-B.y),Y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V||R);!Y||Jk5[Y.localName]&&Y.hasAttribute("disabled")||!(isNaN(e)||isNaN(X)||e<=25&&X<=25||BLd(R))||B.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y,"tap",{x:R.clientX,y:R.clientY,sourceEvent:R,preventer:V})};
UsI=function(B,R,V,e,X){var Y;X&&(Y=typeof V==="object"&&V!==null)&&(e=B.__dataTemp[R]);e=e!==V&&(e===e||V===V);Y&&e&&(B.__dataTemp[R]=V);return e};
GPN=function(){if(vw&&!Kn){if(!NLZ){NLZ=!0;var B=document.createElement("style");B.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(B)}return!0}return!1};
Syx=function(){return ykx};
Hw_=function(B,R){ykx=B;Object.setPrototypeOf(B,R.prototype);new R;ykx=null};
MBS=function(B,R){for(var V=0;V<R.length;V++){var e=R[V];if(!!B!=!!e.__hideTemplateChildren__)if(e.nodeType===Node.TEXT_NODE)B?(e.__polymerTextContent__=e.textContent,e.textContent=""):e.textContent=e.__polymerTextContent__;else if(e.localName==="slot")if(B)e.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.NK)((0,_.NK)(e).parentNode).replaceChild(e.__polymerReplaced__,e);else{var X=e.__polymerReplaced__;X&&(0,_.NK)((0,_.NK)(X).parentNode).replaceChild(e,X)}else e.style&&(B?(e.__polymerDisplay__=
e.style.display,e.style.display="none"):e.style.display=e.__polymerDisplay__);e.__hideTemplateChildren__=B;e._showHideChildren&&e._showHideChildren(B)}};
kPx=function(B){return(B=B.__dataHost)&&B._methodHost||B};
ld_=function(B,R,V){var e=V.mutableData?Dsu:IA;Eq.mixin&&(e=Eq.mixin(e));var X=function(){return e.apply(this,arguments)||this};
_.l(X,e);X.prototype.__templatizeOptions=V;X.prototype._bindTemplate(B);fd_(X,B,R,V);return X};
TLS=function(B,R,V,e){var X=V.forwardHostProp;if(X&&R.hasHostProps){var Y=B.localName=="template",t=R.templatizeTemplateClass;if(!t){if(Y){var b=V.mutableData?zuo:adK;t=function(){return b.apply(this,arguments)||this};
_.l(t,b);t=R.templatizeTemplateClass=t}else{var J=B.constructor;t=function(){return J.apply(this,arguments)||this};
_.l(t,J);t=R.templatizeTemplateClass=t}var G=R.hostProps,y;for(y in G)t.prototype._addPropertyEffect("_host_"+y,t.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:dsu(X)}),t.prototype._createNotifyingProperty("_host_"+y);Q6&&e&&wIK(R,V,e)}B.__dataProto&&Object.assign(B.__data,B.__dataProto);if(Y)Hw_(B,t),B.__dataTemp={},B.__dataPending=null,B.__dataOld=null,B._enableProperties();else{Object.setPrototypeOf(B,t.prototype);R=R.hostProps;for(var S in R)S="_host_"+S,S in B&&(R=B[S],delete B[S],B.__data[S]=
R)}}};
dsu=function(B){return function(R,V,e){B.call(R.__templatizeOwner,V.substring(6),e[V])}};
fd_=function(B,R,V,e){var X=V.hostProps||{},Y;for(Y in e.instanceProps){delete X[Y];var t=e.notifyInstanceProp;t&&B.prototype._addPropertyEffect(Y,B.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:xsp(t)})}if(e.forwardHostProp&&R.__dataHost)for(var b in X)V.hasHostProps||(V.hasHostProps=!0),B.prototype._addPropertyEffect(b,B.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:L2N()})};
xsp=function(B){return function(R,V,e){B.call(R.__templatizeOwner,R,V,e[V])}};
L2N=function(){return function(B,R,V){B.__dataHost._setPendingPropertyOrPath("_host_"+R,V[R],!0,!0)}};
Eq=function(B,R,V){if(qK&&!kPx(B))throw Error("Jd");V=V||{};if(B.__templatizeOwner)throw Error("Kd");B.__templatizeOwner=R;var e=(R?R.constructor:IA)._parseTemplate(B),X=e.templatizeInstanceClass;X||(X=ld_(B,e,V),e.templatizeInstanceClass=X);var Y=kPx(B);TLS(B,e,V,Y);V=function(){return X.apply(this,arguments)||this};
_.l(V,X);V.prototype._methodHost=Y;V.prototype.__dataHost=B;V.prototype.__templatizeOwner=R;V.prototype.__hostProps=e.hostProps;return V};
wIK=function(B,R,V){V=V.constructor._properties;B=B.propertyEffects;R=R.instanceProps;for(var e in B)if(!(V[e]||R&&R[e]))for(var X=B[e],Y=0;Y<X.length;Y++){var t=X[Y].info.part;if(!t.signature||!t.signature.static){console.warn("Property '"+e+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
v1I=function(B,R){for(var V;R;)if(V=R.__dataHost?R:R.__templatizeInstance)if(V.__dataHost!=B)R=V.__dataHost;else return V;else R=(0,_.NK)(R).parentNode;return null};
cw=function(B){return B.localName==="slot"};
K2q=function(){for(var B=Am.prototype,R="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),V={},e=0;e<R.length;V={method$jscomp$32:void 0},e++)V.method$jscomp$32=R[e],B[V.method$jscomp$32]=function(X){return function(){return this.node[X.method$jscomp$32].apply(this.node,arguments)}}(V)};
Idd=function(B,R){for(var V={},e=0;e<R.length;V={name$jscomp$378:void 0},e++)V.name$jscomp$378=R[e],Object.defineProperty(B,V.name$jscomp$378,{get:function(X){return function(){return this.node[X.name$jscomp$378]}}(V),
configurable:!0})};
E1u=function(){for(var B=Am.prototype,R=["textContent","innerHTML","className"],V={},e=0;e<R.length;V={name$jscomp$379:void 0},e++)V.name$jscomp$379=R[e],Object.defineProperty(B,V.name$jscomp$379,{get:function(X){return function(){return this.node[X.name$jscomp$379]}}(V),
set:function(X){return function(Y){this.node[X.name$jscomp$379]=Y}}(V),
configurable:!0})};
Q7d=function(){iA=document.documentElement.getAttribute("dir");iA=document.documentElement.getAttribute("dir");for(var B=0;B<sq.length;B++){var R=sq[B];R.__autoDirOptOut||R.setAttribute("dir",iA)}};
iwI=function(){Fi=!0;requestAnimationFrame(function(){Fi=!1;qyu(cku);setTimeout(function(){for(var B=0,R=rB.length;B<R;B++)AkN(rB.shift())})})};
qyu=function(B){for(;B.length;)AkN(B.shift())};
AkN=function(B){var R=B[0],V=B[1];B=B[2];try{V.apply(R,B)}catch(e){setTimeout(function(){throw e;})}};
_.s7x=function(B,R,V){Fi||iwI();cku.push([B,R,V])};
_.gB=function(B,R,V){Fi||iwI();rB.push([B,R,V])};
g1K=function(B,R){R=R===void 0?!1:R;if(!F2d||!rku||!F2d.handlesDynamicScoping)return null;var V=rku.ScopingShim;if(!V)return null;var e=V.scopeForNode(B),X=(0,_.NK)(B).getRootNode(),Y=function(t){if((0,_.NK)(t).getRootNode()===X){var b=Array.from(F2d.nativeMethods.querySelectorAll.call(t,"*"));b.push(t);for(t=0;t<b.length;t++){var J=b[t];if((0,_.NK)(J).getRootNode()===X){var G=V.currentScopeForNode(J);G!==e&&(G!==""&&V.unscopeNode(J,G),V.scopeNode(J,e))}}}};
Y(B);return R?(R=new MutationObserver(function(t){for(var b=0;b<t.length;b++)for(var J=t[b],G=0;G<J.addedNodes.length;G++){var y=J.addedNodes[G];y.nodeType===Node.ELEMENT_NODE&&Y(y)}}),R.observe(B,{childList:!0,
subtree:!0}),R):null};
Zw_=function(){document.body.removeAttribute("unresolved")};
n1d=function(B){var R=B=B.replace(msd,"").replace($s5,""),V=new CHp;V.start=0;V.end=R.length;for(var e=V,X=0,Y=R.length;X<Y;X++)if(R[X]==="{"){e.rules||(e.rules=[]);var t=e,b=t.rules[t.rules.length-1]||null;e=new CHp;e.start=X+1;e.parent=t;e.previous=b;t.rules.push(e)}else R[X]==="}"&&(e.end=X+1,e=e.parent||V);return PHu(V,B)};
PHu=function(B,R){var V=R.substring(B.start,B.end-1);B.parsedCssText=B.cssText=V.trim();B.parent&&(V=R.substring(B.previous?B.previous.end:B.parent.start,B.start-1),V=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(V),V=V.replace(uHN," "),V=V.substring(V.lastIndexOf(";")+1),V=B.parsedSelector=B.selector=V.trim(),B.atRule=V.indexOf("@")===0,B.atRule?V.indexOf("@media")===0?B.type=4:V.match(Owx)&&(B.type=7,B.keyframesName=B.selector.split(uHN).pop()):V.indexOf("--")===
0?B.type=1E3:B.type=1);if(V=B.rules)for(var e=0,X=V.length,Y=void 0;e<X&&(Y=V[e]);e++)PHu(Y,R);return B};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(B){return B.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var R=arguments[1],V=6-R.length;V--;)R="0"+R;return"\\"+R})};
oQd=function(B,R,V){V=V===void 0?"":V;var e="";if(B.cssText||B.rules){var X=B.rules;if(X&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(X))for(var Y=0,t=X.length,b=void 0;Y<t&&(b=X[Y]);Y++)e=oQd(b,R,e);else R?R=B.cssText:(R=B.cssText,R=R.replace(B2u,"").replace(Rxu,""),R=R.replace(VVp,"").replace(exo,"")),(e=R.trim())&&(e="  "+e+"\n")}e&&(B.selector&&(V+=B.selector+" {\n"),V+=e,B.selector&&(V+="}\n\n"));return V};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(B){B=B[0];return!!B&&!!B.selector&&B.selector.indexOf("--")===0};
pSI=function(B){if(B=XSp[B])B._applyShimCurrentVersion=B._applyShimCurrentVersion||0,B._applyShimValidatingVersion=B._applyShimValidatingVersion||0,B._applyShimNextVersion=(B._applyShimNextVersion||0)+1};
YTq=function(B){return B._applyShimCurrentVersion===B._applyShimNextVersion};
tVN=function(B){B._applyShimValidatingVersion=B._applyShimNextVersion;B._validating||(B._validating=!0,hxS.then(function(){B._applyShimCurrentVersion=B._applyShimNextVersion;B._validating=!1}))};
biq=function(B){if(!B)return"";typeof B==="string"&&(B=n1d(B));return oQd(B,WNq)};
JnI=function(B){!B.__cssRules&&B.textContent&&(B.__cssRules=n1d(B.textContent));return B.__cssRules||null};
Ul5=function(B,R,V,e){if(B){var X=!1,Y=B.type;if(e&&Y===4){var t=B.selector.match(jHA);t&&(window.matchMedia(t[1]).matches||(X=!0))}Y===1?R(B):V&&Y===7?V(B):Y===1E3&&(X=!0);if((B=B.rules)&&!X)for(X=0,Y=B.length,t=void 0;X<Y&&(t=B[X]);X++)Ul5(t,R,V,e)}};
N2I=function(B,R){var V=B.indexOf("var(");if(V===-1)return R(B,"","","");a:{var e=0;var X=V+3;for(var Y=B.length;X<Y;X++)if(B[X]==="(")e++;else if(B[X]===")"&&--e===0)break a;X=-1}e=B.substring(V+4,X);V=B.substring(0,V);B=N2I(B.substring(X+1),R);Y=e.indexOf(",");if(Y===-1)return R(V,e.trim(),"",B);X=e.substring(0,Y).trim();e=e.substring(Y+1).trim();return R(V,X,e,B)};
GTI=function(B){if(Zp!==void 0)return Zp;if(B.__cssBuild===void 0){var R=B.getAttribute("css-build");if(R)B.__cssBuild=R;else{a:{R=B.localName==="template"?B.content.firstChild:B.firstChild;if(R instanceof Comment&&(R=R.textContent.trim().split(":"),R[0]==="css-build")){R=R[1];break a}R=""}if(R!==""){var V=B.localName==="template"?B.content.firstChild:B.firstChild;V.parentNode.removeChild(V)}B.__cssBuild=R}}return B.__cssBuild||""};
STx=function(B,R,V,e){for(var X=R._noAccessors,Y=Object.getOwnPropertyNames(R),t=0;t<Y.length;t++){var b=Y[t];if(!(b in e))if(X)B[b]=R[b];else{var J=Object.getOwnPropertyDescriptor(R,b);J&&(J.configurable=!0,Object.defineProperty(B,b,J))}}for(var G in ynx)R[G]&&(V[G]=V[G]||[],V[G].push(R[G]))};
HiS=function(B,R,V){R=R||[];for(var e=B.length-1;e>=0;e--){var X=B[e];X?Array.isArray(X)?HiS(X,R):R.indexOf(X)<0&&(!V||V.indexOf(X)<0)&&R.unshift(X):console.warn("behavior is null, check for missing or 404 import")}return R};
MVp=function(B,R){for(var V in R){var e=B[V],X=R[V];B[V]=!("value"in X)&&e&&"value"in e?Object.assign({value:e.value},X):X}};
foA=function(B,R,V){var e={},X=function(){return R.apply(this,arguments)||this};
_.l(X,R);X._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(t)for(var J=0,G;J<t.length;J++)G=t[J],G.properties&&this.createProperties(G.properties),G.observers&&this.createObservers(G.observers,G.properties);B.properties&&this.createProperties(B.properties);B.observers&&this.createObservers(B.observers,B.properties);this._prepareTemplate()}else R._finalizeClass.call(this)};
X.prototype.created=function(){R.prototype.created.call(this);var J=e.created;if(J)for(var G=0;G<J.length;G++)J[G].call(this)};
X.prototype._registered=function(){var J=X.prototype;if(!J.hasOwnProperty("__hasRegisterFinished")){J.__hasRegisterFinished=!0;R.prototype._registered.call(this);vw&&b(J);J=Object.getPrototypeOf(this);var G=e.beforeRegister;if(G)for(var y=0;y<G.length;y++)G[y].call(J);if(G=e.registered)for(y=0;y<G.length;y++)G[y].call(J)}};
X.prototype._applyListeners=function(){R.prototype._applyListeners.call(this);var J=e.listeners;if(J)for(var G=0;G<J.length;G++){var y=J[G];if(y)for(var S in y)this._addMethodEventListenerToNode(this,S,y[S])}};
X.prototype._ensureAttributes=function(){var J=e.hostAttributes;if(J)for(var G=J.length-1;G>=0;G--){var y=J[G],S;for(S in y)this._ensureAttribute(S,y[S])}R.prototype._ensureAttributes.call(this)};
X.prototype.ready=function(){R.prototype.ready.call(this);var J=e.ready;if(J)for(var G=0;G<J.length;G++)J[G].call(this)};
X.prototype.attached=function(){R.prototype.attached.call(this);var J=e.attached;if(J)for(var G=0;G<J.length;G++)J[G].call(this)};
X.prototype.detached=function(){R.prototype.detached.call(this);var J=e.detached;if(J)for(var G=0;G<J.length;G++)J[G].call(this)};
X.prototype.attributeChanged=function(J,G,y){R.prototype.attributeChanged.call(this);var S=e.attributeChanged;if(S)for(var M=0;M<S.length;M++)S[M].call(this,J,G,y)};
_.mh.Object.defineProperties(X,{properties:{configurable:!0,enumerable:!0,get:function(){var J={};if(t)for(var G=0;G<t.length;G++)MVp(J,t[G].properties);MVp(J,B.properties);return J}},
observers:{configurable:!0,enumerable:!0,get:function(){var J=[];if(t)for(var G=0,y;G<t.length;G++)y=t[G],y.observers&&(J=J.concat(y.observers));B.observers&&(J=J.concat(B.observers));return J}}});
if(V){Array.isArray(V)||(V=[V]);var Y=R.prototype.behaviors;var t=HiS(V,null,Y);X.prototype.behaviors=Y?Y.concat(V):t}var b=function(J){if(t)for(var G=t,y=0;y<G.length;y++)STx(J,G[y],e,kT_);STx(J,B,e,Dlq)};
vw||b(X.prototype);X.generatedFrom=B;return X};
dld=function(B){var R=typeof B!=="string"?B:{is:B,notifyObserversOnUndefined:!0};R.fastInit===void 0&&(R.fastInit=!0);return function(V){if(!R.disableInheritanceCheck&&Object.getPrototypeOf(V.prototype).constructor!==_.$_)throw Error("Od");var e=V.prototype;e.is=R.is;L3o(e,"created",function(){this.hostElement=this;this.polymerController=this});
lou(e,V,R.fastInit);R.notifyObserversOnUndefined&&(e._overrideLegacyUndefined=!0);if(zxI)for(var X=_.h(Object.getOwnPropertyNames(e)),Y=X.next();!Y.done;Y=X.next()){Y=Y.value;var t=Object.getOwnPropertyDescriptor(e,Y);t.enumerable===!1&&(t.enumerable=!0,Object.defineProperty(e,Y,t))}if("template"in V)var b=function(){return V.template};
else R.template!==void 0&&(b=R.template);if(b!==void 0){var J;Object.defineProperty(e,"_template",{get:function(){J===void 0&&(J=b());return J},
set:function(G){J=G},
configurable:!0,enumerable:!0})}Polymer(e);V[aoq]=e}};
wSq=function(B){B=B===void 0?{}:B;B.fastInit===void 0&&(B.fastInit=!0);return function(R){if(!B.disableInheritanceCheck&&Object.getPrototypeOf(R.prototype).constructor!==Cn)throw Error("Pd");lou(R.prototype,R,B.fastInit)}};
lou=function(B,R,V){V=V===void 0?!1:V;T2x(R);V?L3o(B,"created",function(){this.disableEnforceFastDefaultValuesCheck||xlN(R,this)}):L3o(B,"ready",function(){for(var e={},X=_.h(vBd(this.behaviors)),Y=X.next();!Y.done;Y=X.next())Y=Y.value,Y.properties&&Object.assign(e,LN5(this,Y.properties));
Object.assign(e,LN5(this,this.properties));xlN(R,this);X=_.h(Object.keys(e));for(Y=X.next();!Y.done;Y=X.next())Y=Y.value,this[Y]=e[Y]})};
xlN=function(B,R){if(zxI){B=new B;for(var V=_.h(Object.getOwnPropertyNames(B)),e=V.next();!e.done;e=V.next())e=e.value,R[e]=B[e];for(V=R;V&&V!==Object.prototype;V=Object.getPrototypeOf(V)){e=_.h(Object.getOwnPropertyNames(V));for(var X=e.next();!X.done;X=e.next())X=X.value,B.hasOwnProperty(X)||Object.defineProperty(B,X,vQ5(R,X))}}else B.apply(R)};
vQ5=function(B,R){return{get:function(){var V=B[R];return V instanceof Function?V.bind(B):V},
set:function(V){B[R]=V}}};
LN5=function(B,R){if(!R)return{};for(var V={},e=_.h(Object.keys(R)),X=e.next();!X.done;X=e.next())if(X=X.value,!R[X].readOnly){var Y=B[X];Y!==void 0&&(V[X]=Y)}return V};
T2x=function(B){var R=new B;B=B.prototype.properties||{};for(var V=_.h(Object.keys(B)),e=V.next();!e.done;e=V.next())if(e=e.value,R.hasOwnProperty(e)){var X=B[e];typeof X==="function"&&(B[e]=X={type:X});R[e]!=null&&X.type===Object&&(X.type=KNZ(R[e].constructor))}};
KNZ=function(B){for(var R=_.h(Io_),V=R.next();!V.done;V=R.next())if(V=V.value,B===V)return V;return Object};
EQN=function(B){return function(R,V){R.behaviors=R.behaviors||[];R.behaviors.push(B||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",R,V).prototype:void 0));Object.defineProperty(R,V,{get:function(){return this},
enumerable:!0,configurable:!0})}};
QHp=function(B){B=B===void 0?{}:B;return function(R,V){R.properties=R.properties||{};B.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?B.type=KNZ(Reflect.getMetadata("design:type",R,V)):B.type=String);var e=B,X=R.properties[V];R.properties[V]=X?Object.assign({},X,e):e}};
qTI=function(B){return function(R,V){R.listeners=R.listeners||{};R.listeners[B]=V}};
cnd=function(){var B=_.HB.apply(0,arguments);if(B.length===0)throw Error("Qd");return function(R,V){R.observers=R.observers||[];R.observers.push(V+"("+B.join(",")+")")}};
Anu=function(){var B=_.HB.apply(0,arguments);return function(R,V,e){var X=Object.getOwnPropertyDescriptor(R,V).get,Y="__compute__"+V;Object.defineProperty(R,Y,{value:X,enumerable:!0});R.properties=R.properties||{};X=R.properties[V];X||(X={},R.properties[V]=X);X.computed=Y+"("+B.join(",")+")";e.get=void 0}};
_.Pw=function(B,R,V){_.Hn.call(this);this.JSC$9126_id_=null;this.usingListeners_=!1;this.JSC$9126_listener_=B;this.handler_=V;this.JSC$9126_win_=R||window;this.callback_=(0,_.M2)(this.JSC$9128_doAction_,this)};
nn=function(B){this.range_=B};
uA=function(B){this.range_=B};
BJ=function(B,R,V){_.Hn.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=B;this.scrollTimer_=new _.Oq(50);this.JSC$9205_eventHandler_=new _.oL(this);this.scrollDelta_=new _.fx;this.containerIsActuallyContent_=B.tagName==="BODY"||B.tagName==="HTML";this.containerBounds_=iio(B);this.containerIsActuallyContent_&&(B=_.hF(),this.containerBounds_.height=B.height,this.containerBounds_.width=B.width);this.margin_=R||0;if(R){if(R=this.containerBounds_.clone(),B=this.margin_){var e=
Math.min(B,R.height*.25);R.top+=e;R.height-=2*e;B=Math.min(B,R.width*.25);R.left+=B;R.width-=2*B}}else R=this.containerBounds_;this.scrollBounds_=R;V||this.JSC$9205_eventHandler_.listen(_.zg(this.containerNode_),"mousemove",this.JSC$9207_onMouseMove);this.JSC$9205_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9207_onTick_)};
_.RL=function(B){this.mechanism=B};
VT=function(B,R){this.JSC$9303_key_=B;this.JSC$9303_value_=R};
FNo=function(B){if(B>=55296&&B<=57343||B>1114111)return"\ufffd";B in sHp&&(B=sHp[B]);var R="";B>65535&&(B-=65536,R+=String.fromCharCode(B>>>10&1023|55296),B=56320|B&1023);return R+=String.fromCharCode(B)};
rnS=function(B,R){return B<R?1:-1};
Zio=function(){return function(B){return B.charAt(1)==="#"?B.charAt(2)==="X"||B.charAt(2)==="x"?FNo(parseInt(B.substr(3),16)):FNo(parseInt(B.substr(2),10)):gQS[B.slice(1,-1)]}};
C5x=function(B){return B.slice(1,B.length-1).trim().replace(mlY,function(R){return $lu[R]||" "})};
ek=function(B){return B===32||B===9};
XO=function(B,R){return R<B.length?B.charCodeAt(R):-1};
P5o=function(B){for(;B;){if(B._lastLineBlank)return!0;var R=B.type;if(R==="list"||R==="item")B=B._lastChild;else break}return!1};
pp=function(B){if(nQS.test(B)){var R=1,V=0,e=0;for(B[V]=="|"&&V++;V<B.length;){switch(B[V]){case "|":e=1;break;case " ":break;case "\t":break;default:e&&(e=0,R++)}V++}return uMd.test(B)?-R:R}return 0};
Oio=function(B){return B=="table"||B=="row"||B=="cell"};
oUu=function(){return new Ya("document",[[1,1],[0,0]])};
BXZ=function(){};
hZ=function(){var B={safe:!1};B=B||{};B.softbreak=B.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=B};
pbN=function(B,R){var V="";if(B)if(B=B.toLowerCase(),B===" "||Rf5.test(B))V="space";else if(VYo.test(B))V="esc";else if(B.length==1){if(!R||efA.test(B))V=B}else V=Xbp.test(B)?B.replace("arrow",""):B=="multiply"?"*":B;return V};
Wgd=function(B,R){var V=B.hasModifiers;if(R.key)V=pbN(R.key,V);else if(R.detail&&R.detail.key)V=pbN(R.detail.key,V);else{V=R.keyIdentifier;var e="";V&&(V in YDd?e=YDd[V]:hf5.test(V)?(V=parseInt(V.replace("U+","0x"),16),e=String.fromCharCode(V).toLowerCase()):e=V.toLowerCase());(V=e)||(V=R.keyCode,e="",Number(V)&&(V>=65&&V<=90?e=String.fromCharCode(32+V):V>=112&&V<=123?e="f"+(V-112+1):V>=48&&V<=57?e=String(V-48):V>=96&&V<=105?e=String(V-96):e=tYA[V]),V=e);V=V||""}return V===B.key&&(!B.hasModifiers||
!!R.shiftKey===!!B.shiftKey&&!!R.ctrlKey===!!B.ctrlKey&&!!R.altKey===!!B.altKey&&!!R.metaKey===!!B.metaKey)};
JoK=function(B){return B.length===1?{combo:B,key:B,event:"keydown"}:B.split("+").reduce(function(R,V){var e=V.split(":");V=e[0];e=e[1];V in bUq?(R[bUq[V]]=!0,R.hasModifiers=!0):(R.key=V,R.event=e||"keydown");return R},{combo:B.split(":").shift()})};
j6o=function(B){return B.trim().split(" ").map(function(R){return JoK(R)})};
U65=function(B,R){if(B&&B.fn){var V=B.fn;B.fn=function(){try{V.apply(this,arguments)}catch(e){if(e instanceof tZ)console.warn("Argument '"+e.arg+"'"+(R?" for method '"+R+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw e;}}}return B};
NXp=function(){var B=_.HB.apply(0,arguments);return B.length===0?function(R){return R}:B.length===1?B[0]:B.reduce(function(R,V){return function(){return R(V.apply(null,_.MI(_.HB.apply(0,arguments))))}})};
GoN=function(){var B=_.HB.apply(0,arguments);return function(R){return function(V,e){V=R(V,e);var X=function(){throw Error("Ae");},Y={getState:V.getState,
dispatch:function(t){return X.apply(null,[t].concat(_.MI(_.HB.apply(1,arguments))))}};
e=B.map(function(t){return t(Y)});
X=NXp.apply(null,_.MI(e))(V.dispatch);return Object.assign({},V,{dispatch:X})}}};
HUA=function(B){Object.keys(B).forEach(function(R){var V=B[R];if(typeof V(void 0,{type:yoZ})==="undefined")throw Error("Be`"+R);if(typeof V(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+SDI()})==="undefined")throw Error("Ce`"+R+"`"+yoZ);})};
WJ=function(B){for(var R=Object.keys(B),V={},e=0;e<R.length;e++){var X=R[e];typeof B[X]==="function"&&(V[X]=B[X])}var Y=Object.keys(V);try{HUA(V)}catch(b){var t=b}return function(b,J){b=b===void 0?{}:b;if(t)throw t;for(var G=!1,y={},S=0;S<Y.length;S++){var M=Y[S],f=b[M],z=(0,V[M])(f,J);if(typeof z==="undefined")throw b=J&&J.type,Error("De`"+(b?'"'+String(b)+'"':"(unknown type)")+"`"+M);y[M]=z;G=G||z!==f}return(G=G||Y.length!==Object.keys(b).length)?y:b}};
MYN=function(B,R,V){function e(){if(y)throw Error("Ee");return b}
function X(f){if(typeof f!=="function")throw Error("Fe`"+typeof f);if(y)throw Error("Ge");var z=!0;G===J&&(G=J.slice());G.push(f);return function(){if(z){if(y)throw Error("He");z=!1;G===J&&(G=J.slice());var T=G.indexOf(f);G.splice(T,1);J=null}}}
function Y(f){if(typeof f!=="object"||f===null)var z=!1;else{for(z=f;Object.getPrototypeOf(z)!==null;)z=Object.getPrototypeOf(z);z=Object.getPrototypeOf(f)===z}if(!z)throw Error("Ie`"+typeof f);if(typeof f.type==="undefined")throw Error("Je");if(y)throw Error("Ke");try{y=!0,b=t(b,f)}finally{y=!1}z=J=G;for(var T=0;T<z.length;T++)(0,z[T])();return f}
if(typeof R==="function"&&typeof V==="function"||typeof V==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof R==="function"&&typeof V==="undefined"&&(V=R,R=void 0);if(typeof V!=="undefined"){if(typeof V!=="function")throw Error("Me`"+typeof V);return V(MYN)(B,R)}if(typeof B!=="function")throw Error("Ne`"+typeof B);var t=B,b=R,J=[],G=J,y=!1;Y({type:yoZ});var S={},M=(S.dispatch=Y,S.subscribe=X,S.getState=e,S.replaceReducer=function(f){if(typeof f!=="function")throw Error("Oe`"+
typeof f);t=f;Y({type:kox});return M},S[D6o]=function(){var f={};
return f.subscribe=function(z){function T(){z.next&&z.next(e())}
if(typeof z!=="object"||z===null)throw new TypeError("Pe`"+typeof z);T();return{unsubscribe:X(T)}},f[D6o]=function(){return this},f},S);
return M};
f4d=function(B){function R(){X&&(X=!1,B());Y&&e()}
function V(){requestAnimationFrame(R)}
function e(){var b=Date.now();if(X){if(b-t<2)return;Y=!0}else X=!0,Y=!1,setTimeout(V,20);t=b}
var X=!1,Y=!1,t=0;return e};
bs=function(B){return typeof B==="number"?B:parseFloat(B)||0};
l4u=function(B){return _.HB.apply(1,arguments).reduce(function(R,V){return R+bs(B["border-"+V+"-width"])},0)};
_.a=function(B,R){R=dc(aa(R));B.innerHTML=R};
d6x=function(B){var R=zfA;R||(R=a4u(),R=zfA=_.M_.transpose(R));R=R[B];return typeof R==="string"?R:_.JZ(B)};
wbI=function(B){B=String(B).toLowerCase();var R=a4u()[B];return typeof R==="string"?R:_.jk(B)};
TXN=function(B){B=B.toLowerCase();B=a4u()[B];return typeof B==="string"?B:null};
a4u=function(){if(!x6S){for(var B=Object.assign({},LgS),R=_.h(vUK),V=R.next();!V.done;V=R.next())V=V.value,B[V.toLowerCase()]=V;x6S=B}return x6S};
EUI=function(B,R){var V=window.customElements;return V&&V.get(B)||Kgo[B]===!0?2:R.name==="HTMLUnknownElement"?1:R.name==="HTMLElement"&&I4I.test(B)?3:0};
cod=function(B,R){switch(R){case "innerHTML":return Q6I(B)===1?2:null;case "textContent":return B=Q6I(B),B===1||B===6?1:null;default:var V,e;return(e=(V=qDI[B.localName])==null?void 0:V[R])!=null?e:null}};
Q6I=function(B){var R=B.localName,V=EUI(R,B.constructor);switch(V){case 0:case 1:return AoZ(R,B);case 3:case 2:return 1;default:_.Ym(V,"got an unknown element classification")}};
AoZ=function(B,R){var V=Object.hasOwnProperty.call(iUZ,B)?iUZ[B]:null;return V!==null?V:Object.hasOwnProperty.call(s6d,B)&&R instanceof SVGElement?s6d[B]:null};
Fg_=function(B,R){return R};
gUx=function(B){return(B=B.split(rox,2))?{url:B[0],metadata:B[1]}:null};
m6S=function(B){var R=String(B.url).replace(ZUx,encodeURIComponent);if(B=B.metadata){ZUx.lastIndex=0;if(ZUx.test(B))return null;R+=" "+B}return R};
nUS=function(B){function R(G){var y=G.localName;if(!G.getAttribute("is")&&EUI(y,G.constructor)===2){var S;return(S=J)!=null?S:J=document.createElement("polyresinuncustomized")}(G=b[y])||(G=b[y]=document.createElement(y));return G}
var V=B.reportHandler||void 0,e=B.safeTypesBridge||$6p,X=/^$/;if(B=B.allowedIdentifierPrefixes){B=_.h(B);for(var Y=B.next();!Y.done;Y=B.next())X=new RegExp(X.source+"|^"+_.C8_(Y.value))}V&&V(!1,"initResin",null);var t=P8S(X,e,V),b={},J=null;return function(G,y,S){var M=G.nodeType;if(M!==Node.ELEMENT_NODE){if(M===Node.TEXT_NODE){y=G.parentElement;S=!y;if(y&&y.nodeType===Node.ELEMENT_NODE){M=y.localName;var f=EUI(M,y.constructor);switch(f){case 0:case 1:y=AoZ(M,y);S=y===1||y===6;break;case 3:case 2:S=
!0;break;default:_.Ym(f,"got an unknown element classification")}}if(S)return function(Q){return""+e(Q,"STRING",Q)}}return function(Q){if(!Q&&Q!==document.all)return Q;
V&&V(!0,"Failed to sanitize "+(G.parentElement&&G.parentElement.nodeName)+" #text node to value "+Q,G.parentElement);return UI}}var z=G.localName;
M=R(G);var T=null;switch(S){case "attribute":if(wbI(y)in M)break;return function(Q){return Q};
case "property":if(y in M){T=cod(M,y);break}if((f=TXN(y))&&f in M)break;return function(Q){return Q};
default:_.Ym(S,"got an unknown resin type, expected either 'property' or 'attribute'")}var L=S==="attribute"?y.toLowerCase():d6x(y);T||(T=GLZ(z,L,function(Q){var q=G.getAttribute(Q);return!q||/[\[\{]/.test(Q)?null:q}));
return function(Q){var q=Nr,m=null;if(!Q&&Q!==document.all)return Q;if(T!=null){var g=t[T],Vu=g.safeType;m=g.safeReplacement;Vu&&(q=e(Q,Vu,Nr));q===Nr&&(g.filterString?(q=String(e(Q,"STRING",Q)),q=g.filterString(z,L,q)):g.filterRaw&&(q=g.filterRaw(z,L,Q,G)),q===m&&(q=Nr))}q===Nr&&(q=m||UI,V&&V(!0,"Failed to sanitize attribute of <"+z+">: <"+z+" "+L+'="'+Q+'">',G));return q}}};
P8S=function(B,R,V){return[,{filterRaw:function(e,X,Y){return Y},
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:u6I,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:u6I,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:UI,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:OUp,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(e,X,Y){Y=
String(Y).toLowerCase();return H6Z(e,X,Y)?Y:UI},
safeReplacement:UI,safeType:void 0},,{filterRaw:void 0,filterString:function(e,X,Y){return B.test(Y)?Y:UI},
safeReplacement:UI,safeType:"CONSTANT"},{filterRaw:function(e,X,Y,t){if(typeof Y==="string")var b=(b=Y.match(oPu))?b.map(gUx).filter(Boolean):[];else if(Array.isArray(Y))b=Y;else return u6I;var J=b;b=[];var G=[],y={};if(Array.isArray(J))for(var S=0,M=J.length;S<M;++S){var f=J[S],z=f&&f.url;if(z){var T=R(z,"URL",y);if(T){var L=T!==y;(L?b:G).push({url:L?T:z,metadata:f.metadata})}}}else G.push(J);J=G.length?JSON.stringify(G):null;G=Nr;if(b.length){if(!Array.isArray(b))throw Error();G=b.map(m6S).filter(Boolean).join(" , ")||
Nr}J&&V&&V(!0,"Failed to sanitize attribute value of <"+e+">: <"+e+" "+X+'="'+Y+'">: '+J,t);return G===Nr?u6I:G},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
BE_=function(B){var R=nUS(B);return function(V,e,X,Y){return Y||Y===document.all?R(V,e,X)(Y):Y}};
GE=function(B,R){function V(){function X(b,J,G){for(J=Reflect.getMetadata("parameters",b)||[];J.length<=G;)J.push(null);J[G]=J[G]||[];J[G].push(t);Reflect.defineMetadata(J,b);return b}
var Y=_.HB.apply(0,arguments);if(this instanceof V)return e.apply(this,Y),this;var t=new (Function.prototype.bind.apply(V,[null].concat(_.MI(Y))));X.annotation=t;return X}
var e=RoI(R);V.prototype.toString=function(){return"@"+B};
return V.annotationCls=V};
RoI=function(B){return function(){var R=_.HB.apply(0,arguments),V=this;B.forEach(function(e,X){X=R[X];if(Array.isArray(e))V[e[0]]=X&&X!==void 0?X:e[1];else for(var Y in e)V[Y]=X&&X[Y]!==void 0?X[Y]:e[Y]})}};
V9A=function(B){return B!==void 0&&B!==null};
yT=function(B){if(typeof B==="string")return B;if(B===void 0||B===null)return""+B;if(B.overriddenName)return B.overriddenName;if(B.name)return B.name;B=B.toString();var R=B.indexOf("\n");return R===-1?B:B.substring(0,R)};
eoK=function(B){B.__forward_ref__=eoK;B.toString=function(){return yT(this())};
return B};
Sk=function(B){return typeof B==="function"&&B.hasOwnProperty("__forward_ref__")&&B.__forward_ref__===eoK?B():B};
XxZ=function(B){return B?B.map(function(R){return new (Function.prototype.bind.apply(R.type.annotationCls,[null].concat(_.MI(R.args?R.args:[]))))}):[]};
pxY=function(B){for(var R=[],V=0;V<B.length;++V){if(R.indexOf(B[V])>-1){R.push(B[V]);break}R.push(B[V])}return R};
YOo=function(B){return B.length>1?" ("+pxY(B.slice().reverse()).map(function(R){return yT(R.token)}).join(" -> ")+")":""};
t9p=function(B,R,V,e){if(e){var X=Error("We``"+(e instanceof Error?e.message:e));X.ngOriginalError=e}else X=Error();X.addKey=ho_;X.keys=[R];X.injectors=[B];X.constructResolvingMessage=V;X.message=X.constructResolvingMessage();X.ngOriginalError=e;return X};
ho_=function(B,R){this.injectors.push(B);this.keys.push(R);this.message=this.constructResolvingMessage()};
WKS=function(B,R){return t9p(B,R,function(){return"No provider for "+yT(this.keys[0].token)+"!"+YOo(this.keys)})};
bYx=function(B,R){return t9p(B,R,function(){return"Cannot instantiate cyclic dependency!"+YOo(this.keys)})};
J_d=function(B,R,V){return t9p(B,V,function(){var e=yT(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+e+"!"+YOo(this.keys)+"."},R)};
jpA=function(B,R){for(var V=[],e=0,X=R.length;e<X;e++){var Y=R[e];Y&&Y.length!=0?V.push(Y.map(yT).join(" ")):V.push("?")}return Error("$e`"+yT(B)+"`"+V.join(", ")+"`"+yT(B))};
M9_=function(B){var R=void 0,V=void 0;if(B&&B.useClass!==void 0){R=B.useClass;var e=Sk(B.useClass);var X=Umo.factory(e);e=NEx(e)}else B&&B.useExisting!==void 0?(X=function(Y){return Y},e=[Gwq(HJ.get(Sk(B.useExisting)))]):B&&B.useFactory!==void 0?(X=B.useFactory,e=y_x(B.useFactory,B.deps)):(V=B.useValue,X=function(){return B.useValue},e=SOd);
return new HYo(X,e,R,V)};
Dm5=function(B){return new kwS(HJ.get(Sk(B.provide)),[M9_(B)],B.multi)};
l1d=function(B){B=f1I(B,[]).map(Dm5);for(var R=new Map,V=0;V<B.length;V++){var e=B[V],X=R.get(e.key.id);if(X){if(e.multiProvider!==X.multiProvider)throw Error("bf`"+X+"`"+e);if(e.multiProvider)for(var Y=0;Y<e.resolvedFactories.length;Y++)X.resolvedFactories.push(e.resolvedFactories[Y]);else R.set(e.key.id,e)}else X=void 0,e.multiProvider?X=new kwS(e.key,e.resolvedFactories.slice(),e.multiProvider):X=e,R.set(e.key.id,X)}return Array.from(R.values())};
f1I=function(B,R){B.forEach(function(V){if(V instanceof zoq)R.push({provide:V,useClass:V});else if(V&&typeof V=="object"&&V.provide!==void 0)R.push(V);else if(V instanceof Array)f1I(V,R);else throw Error("Ze`"+V);});
return R};
y_x=function(B,R){if(R){var V=R.map(function(e){return[e]});
return R.map(function(e){return a1q(B,e,V)})}return NEx(B)};
NEx=function(B){var R=Umo.parameters(B);if(!R)return[];if(R.some(function(V){return V==null}))throw jpA(B,R);
return R.map(function(V){return a1q(B,V,R)})};
a1q=function(B,R,V){var e=null,X=!1;if(!Array.isArray(R))return R instanceof dmp?wxd(R.token,X,null):wxd(R,X,null);for(var Y=null,t=0;t<R.length;++t){var b=R[t];if(b instanceof zoq)e=b;else if(b instanceof dmp)e=b.token;else if(b instanceof TEd)X=!0;else if(b instanceof xmd||b instanceof LKq)Y=b}e=Sk(e);if(e!=null)return wxd(e,X,Y);throw jpA(B,V);};
wxd=function(B,R,V){return new vPu(HJ.get(Sk(B)),R,V)};
KKZ=function(B,R){for(var V=Array(B.providers.length),e=0;e<B.providers.length;++e){var X=e;if(e<0||e>=B.providers.length)throw Error("af`"+e);V[X]=R(B.providers[e])}return V};
I1A=function(B){return typeof B==="function"&&Umo.parameters(B).every(function(R){return!!R})};
qOY=function(B){var R=EP5;Qpq.get(B)||Qpq.set(B,new R);return Qpq.get(B)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(B)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(B)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B,R){var V,e;if(B.contains(R))return!0;B=_.Mr(B).querySelectorAll("content,slot");for(V=0;V<B.length;++V){var X=_.Mr(B[V]).getDistributedNodes();for(e=0;e<X.length;++e)if(X[e].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(X[e],R))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){B.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(B)&&B.preventDefault();B.targetTouches&&(B=B.targetTouches[0],c_d=B.pageX,A_x=B.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 B=0,R=ka.length;B<R;B++)document.addEventListener(ka[B],_._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 B=0,R=ka.length;B<R;B++)document.removeEventListener(ka[B],_._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(B){var R=_.Mr(B).rootTarget;B.type!=="touchmove"&&iYd!==R&&(iYd=R,spq=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Mr(B).path));if(!spq.length)return!0;if(B.type==="touchstart")return!1;B=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(B);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(spq,B.deltaX,B.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){for(var R=[],V=B.indexOf(FK5),e=0;e<=V;e++)if(B[e].nodeType===Node.ELEMENT_NODE){var X=B[e],Y=X.style;Y.overflow!=="scroll"&&Y.overflow!=="auto"&&(Y=window.getComputedStyle(X));Y.overflow!=="scroll"&&Y.overflow!=="auto"||R.push(X)}return R};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B,R,V){if(R||V)for(var e=Math.abs(V)>=Math.abs(R),X=0;X<B.length;X++){var Y=B[X];if(e?V<0?Y.scrollTop>0:Y.scrollTop<Y.scrollHeight-Y.clientHeight:R<0?Y.scrollLeft>0:Y.scrollLeft<Y.scrollWidth-Y.clientWidth)return Y}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(B){var R={deltaX:B.deltaX,deltaY:B.deltaY};"deltaX"in B||("wheelDeltaX"in B&&"wheelDeltaY"in B?(R.deltaX=-B.wheelDeltaX,R.deltaY=-B.wheelDeltaY):"wheelDelta"in B?(R.deltaX=0,R.deltaY=-B.wheelDelta):"axis"in B?(R.deltaX=B.axis===1?B.detail:0,R.deltaY=B.axis===2?B.detail:0):B.targetTouches&&(B=B.targetTouches[0],R.deltaX=c_d-B.pageX,R.deltaY=A_x-B.pageY));return R};
r_u=function(B){this.element=B;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
ZY5=function(B){this.element=B;this.color=window.getComputedStyle(B).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");_.Mr(this.waveContainer).appendChild(this.wave);gPo(this)};
fp=function(B,R){for(var V in B)if(V.toLowerCase()===R.toLowerCase())return B[V]};
mmq=function(B,R){for(var V in B)if(V.toLowerCase()===R.toLowerCase()){delete B[V];break}};
C9o=function(B){B=_.M_.clone(B);for(var R=0;R<$mK.length;++R){var V=$mK[R],e=fp(B,V);e&&(B["X-Goog-Upload-Header-"+V]=e,mmq(B,V))}return B};
P9q=function(B){B=_.M_.clone(B);mmq(B,"X-Goog-Upload-Status")};
uKA=function(B){return nPq.some(function(R){return R.test(B)})};
REA=function(B,R){var V;var e=(V=B.formContent)==null?void 0:V.locale;V=e==null?void 0:e.split("-")[0];e=e&&OYu.includes(e)?e:V&&OYu.includes(V)?V:void 0;e=(e!=null?e:"en").replaceAll("-","_").toLowerCase();var X;B=((X=B.initializationData)==null?0:X.useNightlyRelease)?"nightly":"live";var Y;return(R==null?0:(Y=R.getEnableAlohaBinarySplit)==null?0:Y.call(R))?_.u3(o3_,B):_.u3(BK5,B,e)};
eEY=function(B,R,V,e){if(VIu)return VIu;var X=REA(B,e);return VIu=R.feedbackV2GlobalObject?Promise.resolve(R.feedbackV2GlobalObject):new Promise(function(Y,t){var b=_.jr("SCRIPT");_.Qm(b,X);b.onload=function(){R.feedbackV2GlobalObject?Y(R.feedbackV2GlobalObject):t(Error("ef"))};
b.onerror=function(){t(Error("ff`"+X.toString()))};
V.body.appendChild(b)})};
p_x=function(B,R,V,e){if(X_I)return X_I;var X=REA(B,e);return X_I=R.feedbackV2GlobalObject?Promise.resolve(R.feedbackV2GlobalObject):new Promise(function(Y,t){var b=_.jr("SCRIPT");_.Qm(b,X);b.onload=function(){R.feedbackV2GlobalObject?Y(R.feedbackV2GlobalObject):t(Error("ef"))};
b.onerror=function(){t(Error("ff`"+X.toString()))};
V.body.appendChild(b)})};
YnN=function(B,R,V,e,X){X=X===void 0?!0:X;var Y,t,b,J,G;return _.W(function(y){switch(y.nextAddress){case 1:return Y=Date.now(),_.U(y,eEY(B,V,e,R),2);case 2:t=y.yieldResult;if(!(X||((J=B.initializationData)==null?0:J.useNightlyRelease)||((G=B.initializationData)==null?0:G.isLocalServer))){b=t.initializeFeedbackClient(B,Y,R);y.jumpTo(3);break}return _.U(y,t.initializeFeedbackClientAsync(B,Y,R),4);case 4:b=y.yieldResult;case 3:return b.initiateAloha(),y.return(b)}})};
hEI=function(B,R,V,e){var X,Y,t;return _.W(function(b){if(b.nextAddress==1)return X=Date.now(),_.U(b,p_x(B,V,e.document,R),2);if(b.nextAddress!=3)return Y=b.yieldResult,_.U(b,Y.initializeFeedbackClientAsync(B,X,R,e),3);t=b.yieldResult;t.initiateAloha();return b.return(t)})};
tIZ=function(B,R,V){var e=!0;e=e===void 0?!0:e;var X,Y,t,b,J,G,y,S,M,f;return _.W(function(z){X=V||_.R5;if((Y=R)==null?0:(b=(t=Y).getEnableAlohaBinarySplit)==null?0:b.call(t)){J=X;if(J.isFormOpened)throw G=Error("gf"),G.name="DuplicateFormError",G;J.isFormOpened=!0;B.callbacks=B.callbacks||{};y=B.callbacks.onClose||function(){};
B.callbacks.onClose=function(T){J.isFormOpened=!1;y(T)};
try{return z.return(hEI(B,R,J,X))}catch(T){throw J.isFormOpened=!1,T;}}else{S=X;if(S.isFormOpened)throw M=Error("gf"),M.name="DuplicateFormError",M;S.isFormOpened=!0;B.callbacks=B.callbacks||{};f=B.callbacks.onClose||function(){};
B.callbacks.onClose=function(T){S.isFormOpened=!1;f(T)};
try{return z.return(YnN(B,R,S,X.document,e))}catch(T){throw S.isFormOpened=!1,T;}}_.b3(z)})};
Uup=function(B,R){return _.W(function(V){return V.return(new Promise(function(e){var X=Wtx(R!=null?R:"")+"/aloha_form_properties?productId="+B;bTS(X,function(Y){Y=Y.target;var t=null;try{var b=JSON,J=b.stringify;if(Y.JSC$7703_xhr_){var G=Y.JSC$7703_xhr_.responseText;G.indexOf(")]}'\n")==0&&(G=G.substring(5));var y=(0,_.ls)(G)}else y=void 0;t=VzI(J8u,J.call(b,y))}catch(S){J=new J8u,y=jBA(),y=_.zE(y,13,!1),y=_.zE(y,14,!0),y=_.zE(y,15,!0),y=_.zE(y,20,!1),t=_.Ra(J,1,y)}e(t)},"GET","",{},2E3,!0)}))})};
Wtx=function(B){return uKA(B)?B:"https://www.google.com/tools/feedback"};
Snu=function(B){B=B.match(new RegExp(NKo,"gi"))||[];B=_.h(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;a:{var V=_.h(GHZ);for(var e=V.next();!e.done;e=V.next())if(e.value.test(R)){V=!1;break a}V=!0}if(!V)a:{V=_.h(y8S);for(e=V.next();!e.done;e=V.next())if(e.value.test(R)){V=!0;break a}V=!1}if(V)return!0}return!1};
HTd=function(B){switch(B){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"}};
kHx=function(B){if(window.crypto&&window.crypto.getRandomValues)try{var R=Array(B),V=new Uint8Array(B);window.crypto.getRandomValues(V);for(var e=0;e<R.length;e++)R[e]=V[e];return R}catch(Y){}R=Array(B);for(V=0;V<B;V++){e=Date.now();for(var X=0;X<e%23;X++)R[V]=Math.random();R[V]=Math.floor(Math.random()*256)}if(MIo)for(V=1,e=0;e<MIo.length;e++)R[V%B]^=R[(V-1)%B]/4^MIo.charCodeAt(e),V++;return R};
aL=function(B){B=kHx(B);for(var R=[],V=0;V<B.length;V++)R.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(B[V]&63));return R.join("")};
fGI=function(B){B&&_.dn("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Dup,clientScreenNonce:B})};
lGS=function(B){return _.vE("client-screen-nonce-store",{})[B===void 0?0:B]};
zE_=function(B,R){R=R===void 0?0:R;var V=_.vE("client-screen-nonce-store");V||(V={},_.LQ("client-screen-nonce-store",V));V[R]=B};
aGK=function(B){B=B===void 0?0:B;return B===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+B};
duo=function(B){return _.vE(aGK(B===void 0?0:B))};
_.wT=function(B){return(B=duo(B===void 0?0:B))?new _.dT({veType:B,youtubeData:void 0,jspbYoutubeData:void 0}):null};
w_N=function(){var B=_.vE("csn-to-ctt-auth-info");B||(B={},_.LQ("csn-to-ctt-auth-info",B));return B};
TKS=function(){return Object.values(_.vE("client-screen-nonce-store",{})).filter(function(B){return B!==void 0})};
_.TE=function(B){B=lGS(B===void 0?0:B);if(!B&&!_.KQ("USE_CSN_FALLBACK",!0))return null;B||(B="UNDEFINED_CSN");return B?B:null};
LtS=function(B){for(var R=_.h(Object.values(xuY)),V=R.next();!V.done;V=R.next())if(_.TE(V.value)===B)return!0;return!1};
v3A=function(B,R,V){var e=w_N();(V=_.TE(V))&&delete e[V];R&&(e[B]=R)};
xa=function(B){return w_N()[B]};
_.Kto=function(B,R,V,e){V=V===void 0?0:V;if(B!==lGS(V)||R!==_.vE(aGK(V)))if(v3A(B,e,V),zE_(B,V),_.LQ(aGK(V),R),R=function(){setTimeout(function(){fGI(B)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(R)}catch(X){R()}else R()};
IGS=function(B,R){R=R===void 0?"":R;var V=[],e;for(e in B)if(B.hasOwnProperty(e)){var X=R!==""?R+"."+e:e;typeof B[e]==="object"?V.push.apply(V,_.MI(IGS(B[e],X))):V.push([X,B[e]])}V.sort();return V};
_.QBx=function(B){var R=_.HB.apply(1,arguments);if(!Lp(B)||R.some(function(e){return!Lp(e)}))throw Error("hf");
R=_.h(R);for(var V=R.next();!V.done;V=R.next())E3Z(B,V.value)};
E3Z=function(B,R){for(var V in R)if(Lp(R[V])){if(V in B&&!Lp(B[V]))throw Error("jf");V in B||(B[V]={});E3Z(B[V],R[V])}else if(qnA(R[V])){if(V in B&&!qnA(B[V]))throw Error("kf");V in B||(B[V]=[]);c8I(B[V],R[V])}else B[V]=R[V];return B};
c8I=function(B,R){R=_.h(R);for(var V=R.next();!V.done;V=R.next())V=V.value,Lp(V)?B.push(E3Z({},V)):qnA(V)?B.push(c8I([],V)):B.push(V);return B};
Lp=function(B){return typeof B==="object"&&!Array.isArray(B)};
qnA=function(B){return typeof B==="object"&&Array.isArray(B)};
iTo=function(B){for(var R=_.h(Object.entries(A8q)),V=R.next();!V.done;V=R.next())if(V=_.h(V.value),V.next(),V=V.next().value,V==="SLI_STATUS_"+B)return V;return"SLI_STATUS_UNKNOWN"};
_.vJ=function(B,R,V,e){return sBo(B,R,function(){return new _.Ftp(B,R,V,e)})};
_.r8Z=function(){return _.vJ("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
g3q=function(){return _.vJ("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Kp=function(){return _.vJ("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
ZTq=function(){return _.vJ("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
mu5=function(){return _.vJ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
$up=function(){return _.vJ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
n3d=function(B){B&&(B.dataset?B.dataset[CKq()]="true":_.cB([_.PR(PKd)],B,"data-loaded","true".toString()))};
udd=function(B){return B?B.dataset?B.dataset[CKq()]:B.getAttribute("data-loaded"):null};
CKq=function(){return OT_.loaded||(OT_.loaded="loaded".replace(/\-([a-z])/g,function(B,R){return R.toUpperCase()}))};
_.IL=function(B,R,V){o$q(B,R,V===void 0?null:V)};
_.R5u=function(B,R){B&&R&&(B=""+_.Y5(R),(B=BUx[B])&&_.R1d(B))};
o$q=function(B,R,V){V=V===void 0?null:V;var e=_.Vp5(B),X=document.getElementById(e),Y=X&&udd(X),t=X&&!Y;Y?R&&R():(R&&(Y=_.Xo(e,R),R=""+_.Y5(R),BUx[R]=Y),t||(X=e55(B,e,function(){udd(X)||(n3d(X),_.VmZ(e),_.pq(function(){_.XcN(e)},0))},V)))};
e55=function(B,R,V,e){e=e===void 0?null:e;var X=_.jr("SCRIPT");X.id=R;X.onload=function(){V&&setTimeout(V,0)};
X.onreadystatechange=function(){switch(X.readyState){case "loaded":case "complete":X.onload()}};
e&&X.setAttribute("nonce",e);_.Qm(X,_.Dv(B));B=document.getElementsByTagName("head")[0]||document.body;B.insertBefore(X,B.firstChild);return X};
_.Vp5=function(B){var R=document.createElement("a");f$(R,B);return"js-"+EI(R.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
XTd=function(B){var R=_.vE("INNERTUBE_HOST_OVERRIDE");R&&(B=String(R)+String(_.QT(B)));return B};
pTp=function(B){var R={};_.k("json_condensed_response")&&(R.prettyPrint="false");return B=fpA(B,R)};
_.qr=function(B){return PE(B)?"same-origin":"include"};
_.cJ=function(B){return PE(B)?"same-origin":"cors"};
AZ=function(B,R,V){V=V===void 0?{}:V;B={method:R===void 0?"POST":R,mode:_.cJ(B),credentials:_.qr(B)};R={};for(var e=_.h(Object.keys(V)),X=e.next();!X.done;X=e.next())X=X.value,V[X]&&(R[X]=V[X]);Object.keys(R).length>0&&(B.headers=R);return B};
_.is=function(B,R){R=R===void 0?{}:R;return"service:"+B+"/"+Object.keys(R).sort().map(function(V){return V+":"+R[V]}).join("/")};
YeA=function(B){var R,V,e,X;B=(R=_.D(B,_.sI))==null?void 0:(V=R.watchEndpointSupportedOnesieConfig)==null?void 0:(e=V.html5PlaybackOnesieConfig)==null?void 0:(X=e.commonConfig)==null?void 0:X.url;if(!B)return[];R=new _.FO(B);return R.JSC$7940_domain_?["https://"+R.JSC$7940_domain_+"/generate_204"]:[]};
_.WHI=function(){return h5u()||drN()||tp_&&xz("version/")?!0:_.vE("EOM_VISITOR_DATA")?!1:!0};
baI=function(B){var R=B.docid||B.video_id||B.videoId||B.id;if(R)return R;R=B.raw_player_response;R||(B=B.player_response)&&(R=JSON.parse(B));return R&&R.videoDetails&&R.videoDetails.videoId||null};
JHx=function(B){return B.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
rT=function(B){return!isNaN(Number(B))&&!_.Wd(B)};
_.Zg=function(B,R,V,e){e=e===void 0?!0:e;var X=_.vE("VALID_SESSION_TEMPDATA_DOMAINS",[]),Y=_.mn(window.location.href);Y&&X.push(Y);Y=_.mn(B);if(_.gx(X,Y)||!Y&&_.pZ(B,"/"))if(X=document.createElement("a"),f$(X,B),B=X.href)if(B=_.QT(B),B=_.gT(B))e&&!R.csn&&(R.itct||R.ved)&&(R=Object.assign({csn:_.TE()},R)),V?(V=parseInt(V,10),isFinite(V)&&V>0&&jjo(B,R,V)):jjo(B,R)};
NUq=function(B){var R=_.vE("VALID_SESSION_TEMPDATA_DOMAINS",[]),V=_.mn(window.location.href);V&&R.push(V);V=_.mn(B);if(!(_.gx(R,V)||!V&&_.pZ(B,"/")))return null;B=_.QT(B);(B=_.gT(B))?(B=UES(B),B=(B=_.UB.get(B,void 0)||null)?_.sz(B):{}):B=null;return B};
jjo=function(B,R,V){B=UES(B);R=R?_.bN(R):"";V=V||5;_.WHI()&&_.Nn(B,R,V)};
UES=function(B){for(var R=_.h(G35),V=R.next();!V.done;V=R.next())B=_.mc(B,V.value);return"ST-"+EI(B).toString(36)};
yHx=function(B,R){B.commandMetadata&&_.D(B.commandMetadata,_.$a)&&_.D(B.commandMetadata,_.$a).url&&(B=_.FW(_.D(B.commandMetadata,_.$a).url).adurl)&&_.zWK(B)&&_.Zg(_.QT(B),{encoded_ad_playback_context:R})};
_.SeK=function(B){if(B.requestFullscreen)B=B.requestFullscreen(void 0);else if(B.webkitRequestFullscreen)B=B.webkitRequestFullscreen();else if(B.mozRequestFullScreen)B=B.mozRequestFullScreen();else if(B.msRequestFullscreen)B=B.msRequestFullscreen();else if(B.webkitEnterFullscreen)B=B.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return B instanceof Promise?B:Promise.resolve()};
_.PJ=function(B){var R;_.rzS(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Cp()==B&&(R=document):R=B;if(R&&(B=_.rzS(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],R))){B.call(R)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Cp=function(){var B=B===void 0?!1:B;var R=_.rzS(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(B)for(;R&&R.shadowRoot;)R=R.shadowRoot.fullscreenElement;return R?R:null};
_.np=function(B,R){R=R===void 0?!0:R;B.addEventListener("wheel",Hao);B.overscrollConfig={cooldown:R}};
_.us=function(B){B.overscrollConfig=void 0;B.removeEventListener("wheel",Hao)};
Hao=function(B){var R=B.deltaY,V=B.target,e=null;if(window.Polymer&&window.Polymer.Element){if(V=B.path||B.composedPath&&B.composedPath()){V=_.h(V);for(var X=V.next();!X.done&&(X=X.value,!Mp5(X,R));X=V.next())if(X.overscrollConfig){e=X;break}}}else for(;V&&!Mp5(V,R);){if(V.overscrollConfig){e=V;break}V=V.parentElement}e&&(R=e.overscrollConfig,R.cooldown?(e=B.deltaY,V=R.lastDeltaY||0,R.lastDeltaY=e,X=R.lastStopped||0,V&&X&&V>0==e>0?Math.abs(V)>=Math.abs(e)?(e=X+1200,V=!1):(e=X+600,V=!0):(e=Date.now()+
600,V=!0),e>Date.now()&&(B.preventDefault(),V&&(R.lastStopped=Date.now()))):B.preventDefault())};
Mp5=function(B,R){return R<0&&B.scrollTop>0||R>0&&B.scrollTop<B.scrollHeight-B.clientHeight-1?(B=getComputedStyle(B).overflowY,B=="auto"||B=="scroll"):!1};
_.OI=function(B,R,V,e){e||(e={bubbles:!0,cancelable:!1,composed:!0});V!==null&&V!==void 0&&(e.detail=V);var X=new CustomEvent(R,e);_.k("untrack_fire_custom_event_killswitch")?B.dispatchEvent(X):tI(function(){return void B.dispatchEvent(X)});
return X};
_.oF=function(B,R,V,e){R=new k3x(R,!(e===void 0||!e),V);_.OI(B,"yt-action",R);return R.returnValue};
_.Bz=function(B,R,V){return _.oF(B,R,V,!0)};
_.RF=function(B,R,V){return _.oF(B,R,V)[0]};
_.eO=function(B,R,V,e){R&&R.length&&R.forEach(function(X){var Y=sT_(X);Y&&(_.k("handle_service_request_actions")&&X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.sendPost?_.VD(V?V:B,[X]):_.Bz(B,Y,[X,V,e]))})};
_.VD=function(B,R){var V=[B];R&&V.push.apply(V,R);R=_.oF(B,"yt-service-request",V);return R.length>0&&(R=R[0],_.OI(B,"yt-service-request-sent",R),R&&R.ajaxPromise)?(R.ajaxPromise.then(function(e){_.OI(B,"yt-service-request-completed",e)},function(e){_.OI(B,"yt-service-request-error",{error:e,
params:V})},B),R.ajaxPromise):_.XT()};
_.Y8=function(B,R){if(_.k("handle_service_request_actions"))_.eO(R,B,R);else{B=_.h(B);for(var V=B.next();!V.done;V=B.next()){V=V.value;var e=void 0;((e=_.D(V,_.p0))==null?0:e.commands)?_.Y8(_.D(V,_.p0).commands,R):(e=void 0,((e=_.D(V,_.hE))==null?0:e.actions)?_.Y8(_.D(V,_.hE).actions,R):(e=void 0,((e=_.D(V.commandMetadata,_.$a))==null?0:e.sendPost)?_.VD(R,[V]):_.eO(R,[V],R)))}}};
_.f$x=function(B,R,V){R=R===void 0?{}:R;typeof R==="function"&&(R={callback:R});V||R._c&&R._c.jsl&&R._c.jsl.h||_.M_.extend(R,{_c:{jsl:{h:_.vE("GAPI_HINT_PARAMS")}}});(R.gapiHintOverride||_.vE("GAPI_HINT_OVERRIDE"))&&(V=_.FW(document.location.href).gapi_jsh)&&_.M_.extend(R,{_c:{jsl:{h:V}}});DEo(B,R)};
_.Wz=function(B,R,V){R=R===void 0?{}:R;B=(B=B in tE?tE[B]:V)||"";V={};for(var e in R){V={key$jscomp$788:V.key$jscomp$788};V.key$jscomp$788=e;var X=function(Y){return function(){return String(R[Y.key$jscomp$788])}}(V);
B=B.replace(new RegExp("\\$\\{"+V.key$jscomp$788+"\\}","gi"),X);B=B.replace(new RegExp("\\$"+V.key$jscomp$788,"gi"),X)}return B};
_.bF=function(B,R){return l$q(B in tE?tE[B]:{},R)};
l$q=function(B,R){var V=_.vE("I18N_PLURAL_RULES");V||(V=function(e){return e==1?"one":"other"});
return(B=B["case"+R]||B[V(R)])?B.replace("#",R.toString()):R+""};
dEd=function(B){var R=z5d(B),V=document.getElementById(R),e=V&&udd(V);e||V&&!e||(V=a$Y(B,R,function(){if(!udd(V)){n3d(V);_.VmZ(R);var X=_.JE(_.XcN,R);_.pq(X,0)}}))};
a$Y=function(B,R,V){var e=document.createElement("link");e.id=R;e.onload=function(){V&&setTimeout(V,0)};
B=_.Dv(B);_.AR(e,B,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(e);return e};
z5d=function(B){var R=_.jr("A");f$(R,bD(B));return"css-"+EI(R.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.TUq=function(B){var R=wTo();B!==R&&(R=_.UV(),!_.k("web_autonav_allow_off_by_default")&&B||_.Nd(0,141,!0),_.Nd(0,140,!B),R.save())};
wTo=function(){var B=_.UV();return _.k("web_autonav_allow_off_by_default")&&!B.getFlag(141)&&_.vE("AUTONAV_OFF_BY_DEFAULT")?!1:!B.getFlag(140)};
xES=function(B,R){var V,e;B=((V=B.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(e=V.videoAuthorizationToken)==null?void 0:e.credentialTransferTokens)||[];for(V=0;V<B.length;++V)if(B[V].scope===R)return B[V].token||void 0};
LHx=function(B){for(var R=0,V=0;V<B.length;V++)R=R*31+B.charCodeAt(V),V<B.length-1&&(R%=0x800000000000);return R%1E5};
_.Gp=function(B){return _.qN("ytcsi."+(B||"")+"data_")||v$p(B)};
_.KHI=function(B){B=_.Gp(B);B.metadata||(B.metadata={});return B.metadata};
_.I$S=function(B){B=_.Gp(B);B.tick||(B.tick={});return B.tick};
_.E$N=function(B){B=_.Gp(B);if(B.gel){var R=B.gel;R.gelInfos||(R.gelInfos={});R.gelTicks||(R.gelTicks={})}else B.gel={gelTicks:{},gelInfos:{}};return B.gel};
_.Qjd=function(B){B=_.E$N(B);B.gelInfos||(B.gelInfos={});return B.gelInfos};
qeY=function(B){var R=_.Gp(B).nonce;R||(R=aL(16),_.Gp(B).nonce=R);return R};
v$p=function(B){var R={tick:{},info:{}};_.mk("ytcsi."+(B||"")+"data_",R);return R};
cHu=function(){var B=_.qN("ytcsi.debug");B||(B=[],_.mk("ytcsi.debug",B),_.mk("ytcsi.reference",{}));return B};
_.iax=function(B){B=B||"";var R=AHI();if(R[B])return R[B];var V=cHu(),e={timerName:B,info:{},tick:{},span:{},jspbInfo:[]};V.push(e);return R[B]=e};
sjI=function(B){B=B||"";var R=AHI();R[B]&&delete R[B];var V=cHu(),e={timerName:B,info:{},tick:{},span:{},jspbInfo:[]};V.push(e);R[B]=e};
AHI=function(){var B=_.qN("ytcsi.reference");if(B)return B;cHu();return _.qN("ytcsi.reference")};
_.rHA=function(B){return FHS[B]||"LATENCY_ACTION_UNKNOWN"};
$EZ=function(B,R,V){V=V===void 0?{}:V;var e=!1;_.KQ("ytLoggingEventsDefaultDisabled",!1)&&(e=!0);e=e?null:aq;V=V===void 0?{}:V;var X=Math.round(V.timestamp||(0,_.P8)());_.H5(R,1,X<Number.MAX_SAFE_INTEGER?X:0);X=new g$I;if(V.lact)_.H5(X,1,isFinite(V.lact)?V.lact:-1);else if(V.timestamp)_.H5(X,1,-1);else{var Y=_.B5();_.H5(X,1,isFinite(Y)?Y:-1)}if(V.sequenceGroup&&!_.k("web_gel_sequence_info_killswitch")){Y=V.sequenceGroup;var t=Nlp(Y),b=new Zax;_.H5(b,2,t);_.bg(b,1,Y);_.Ra(X,3,b);V.endOfSequence&&delete mES[V.sequenceGroup]}_.Ra(R,
33,X);(V.sendIsolatedPayload?kvN:DUA)(B,{endpoint:"log_event",payload:R,cttAuthInfo:V.cttAuthInfo,dangerousLogToVisitorSession:V.dangerousLogToVisitorSession},e)};
_.SO=function(){return(_.k("csi_use_time_origin")||_.k("csi_use_time_origin_tvhtml5"))&&_.yD.timeOrigin?Math.floor(_.yD.timeOrigin):_.yD.timing.navigationStart};
_.C0o=function(B,R){_.Hz("_start",B,R)};
_.Md=function(B,R){if(!_.k("web_csi_action_sampling_enabled")||!_.Gp(R).actionDisabled){var V=_.iax(R||"");_.QBx(V.info,B);B.loadType&&(V=B.loadType,_.KHI(R).loadType=V);_.QBx(_.Qjd(R),B);V=qeY(R);R=_.Gp(R).cttAuthInfo;P0Z().info(B,V,R)}};
n$N=function(){var B,R,V,e;return((e=_.Oz().resolve(_.uj(fE))==null?void 0:(B=U9I())==null?void 0:(R=B.loggingHotConfig)==null?void 0:(V=R.csiConfig)==null?void 0:V.debugTicks)!=null?e:[]).map(function(X){return Object.values(X)[0]})};
_.Hz=function(B,R,V){if(!_.k("web_csi_action_sampling_enabled")||!_.Gp(V).actionDisabled){var e=qeY(V),X;if(X=_.k("web_csi_debug_sample_enabled")&&e){(_.Oz().resolve(_.uj(fE))==null?0:U9I())&&!u8_&&(u8_=!0,_.Hz("gcfl",(0,_.P8)(),V));var Y,t,b;X=(_.Oz().resolve(_.uj(fE))==null?void 0:(Y=U9I())==null?void 0:(t=Y.loggingHotConfig)==null?void 0:(b=t.csiConfig)==null?void 0:b.debugSampleWeight)||0;if(Y=X!==0)b:{Y=n$N();if(Y.length>0)for(t=0;t<Y.length;t++)if(B===Y[t]){Y=!0;break b}Y=!1}Y?(X=LHx(e)%X!==
0,_.Gp(V).debugTicksExcludedLogged||(Y={},Y.debugTicksExcluded=X,_.Md(Y,V)),_.Gp(V).debugTicksExcludedLogged=!0):X=!1}if(!X){B[0]!=="_"&&OaZ(B,V,R);X=_.iax(V||"");X.tick[B]=R||(0,_.P8)();if(X.callback&&X.callback[B])for(X=_.h(X.callback[B]),Y=X.next();!Y.done;Y=X.next())Y=Y.value,Y();X=_.E$N(V);X.gelTicks&&(X.gelTicks[B]=!0);Y=_.I$S(V);X=R||(0,_.P8)();_.k("log_repeated_ytcsi_ticks")?B in Y||(Y[B]=X):Y[B]=X;Y=_.Gp(V).cttAuthInfo;B==="_start"?P0Z().baseline(e,R,Y):P0Z().tick(B,e,R,Y);_.oXp(V);return X}}};
OaZ=function(B,R,V){if(_.yD.mark)if(B.startsWith("mark_")||(B="mark_"+B),R&&(B+=" ("+R+")"),V===void 0||_.k("web_csi_disable_alt_time_performance_mark"))_.yD.mark(B);else{V=_.k("csi_use_performance_navigation_timing")?V-_.yD.timeOrigin:V-(_.yD.timeOrigin||_.yD.timing.navigationStart);try{_.yD.mark(B,{startTime:V})}catch(e){}}};
BOx=function(){var B,R=(B=_.yD.getEntriesByType)==null?void 0:B.call(_.yD,"mark");R&&R.forEach(function(V){if(V.name.startsWith("mark_")){var e;(e=_.yD.clearMarks)==null||e.call(_.yD,V.name)}})};
_.RM_=function(){switch(F5A()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.VPq=function(B){var R={},V=function(Y,t,b){t=t.match("_rid")?t.split("_rid")[0]:t;typeof b==="number"&&(b=JSON.stringify(b));Y.requestIds?Y.requestIds.push({endpoint:t,id:b}):Y.requestIds=[{endpoint:t,id:b}]};
B=_.h(Object.entries(B));for(var e=B.next();!e.done;e=B.next()){var X=_.h(e.value);e=X.next().value;X=X.next().value;switch(e){case "GetBrowse_rid":V(R,e,X);break;case "GetGuide_rid":V(R,e,X);break;case "GetHome_rid":V(R,e,X);break;case "GetPlayer_rid":V(R,e,X);break;case "GetSearch_rid":V(R,e,X);break;case "GetSettings_rid":V(R,e,X);break;case "GetTrending_rid":V(R,e,X);break;case "GetWatchNext_rid":V(R,e,X);break;case "yt_red":R.isRedSubscriber=!!X;break;case "yt_ad":R.isMonetized=!!X}}return R};
_.eMx=function(B){var R=_.k8("aft",B);if(R)return R;R=_.vE((B||"")+"TIMING_AFT_KEYS",["ol"]);for(var V=R.length,e=0;e<V;e++){var X=_.k8(R[e],B);if(X)return X}return NaN};
_.XWu=function(B,R){_.mk("ytglobal.timing"+(R||"")+"ready_",B)};
_.k8=function(B,R){if(B=_.I$S(R)[B])return typeof B==="number"?B:B[B.length-1]};
_.oXp=function(B){var R=_.k8("_start",B),V=_.eMx(B),e=!pWN;R&&V&&e&&(jrd(YcK,new hMY(Math.round(V-R),B)),pWN=!0)};
WBu=function(B){v$p(B);tPq();BOx();B||(_.vE("TIMING_ACTION")&&_.LQ("PREVIOUS_ACTION",_.vE("TIMING_ACTION")),_.LQ("TIMING_ACTION",""))};
_.bgY=function(B){B=B===void 0?{}:B;_.Qh(function(){DI();sjI();WBu();_.XWu(!1);B.cttAuthInfo&&(_.Gp().cttAuthInfo=B.cttAuthInfo);_.LQ("TIMING_AFT_KEYS",[]);B.isHot?_.f0({loadType:"hot"}):_.f0({loadType:"warm"});_.LQ("TIMING_ACTION","");delete _.vE("TIMING_INFO",{}).yt_lt;_.Qh(_.C0o)(B.startTime,void 0)})()};
_.lF=function(B,R,V,e){R=R===void 0?{}:R;_.Qh(function(){var X=V?V:B;JwY(X);var Y=R.sampleRate;if(!_.k("web_csi_action_sampling_enabled")||Y===void 0||Y<=1)Y=!1;else{var t=qeY(X);Y=LHx(t)%Y!==0}Y&&(_.Gp(X).actionDisabled=!0);_.iax(X||"").info.actionType=B;R.cttAuthInfo&&(_.Gp(X).cttAuthInfo=R.cttAuthInfo);_.LQ(X+"TIMING_ACTION",B);_.Qh(_.C0o)(R.startTime,X);Y={actionType:e||_.rHA(B)};R.logPreviousAction&&(Y.previousAction=_.rHA(_.vE("TIMING_ACTION")));(t=_.TE())&&t!=="UNDEFINED_CSN"&&(Y.clientScreenNonce=
t);_.f0(Y,X);_.XWu(!0,X)})()};
JwY=function(B){_.Qh(function(){DI(B);sjI(B);WBu(B)})()};
jkp=function(){_.Qh(function(){var B=[],R;for(R in _.qN("ytcsi.".slice(0,-1)))R.endsWith("data_")&&B.push(R.slice(0,-5));B=_.h(B);for(R=B.next();!R.done;R=B.next())JwY(R.value);DI()})()};
_.NOd=function(B){return _.Qh(function(){return _.Upd("_start",B)})()};
_.f0=function(B,R,V){_.Qh(_.Md)(B,R,V===void 0?!1:V)};
_.zp=function(B,R,V){return _.Qh(_.Hz)(B,R,V)};
_.Upd=function(B,R){return _.Qh(function(){var V=_.I$S(R);return B in V})()};
ywI=function(B){if(!_.k("universal_csi_network_ticks"))return"";B=_.tu(B)||"";for(var R=Object.keys(GAI),V=0;V<R.length;V++){var e=R[V];if(B.includes(e))return e}return""};
Hgd=function(B){if(!_.k("universal_csi_network_ticks"))return function(){};
var R=GAI[B];return R?(_.aF(R),function(){var V=_.k("universal_csi_network_ticks")?(V=ScZ[B])?_.aF(V):!1:!1;return V}):function(){}};
_.aF=function(B,R,V){return _.Qh(function(){if(_.Upd(B,V))return!1;_.zp(B,R,V);return!0})()};
_.di=function(B,R,V){_.Qh(function(){if(!_.NOd(V)||_.Upd(B,V))return!1;_.zp(B,R,V);return!0})()};
_.x8=function(B){return _.Qh(_.k8)(B,void 0)};
DI=function(B){_.NOd(B)&&_.zp("aa",void 0,B)};
_.lAZ=function(B,R,V,e,X,Y,t,b,J){var G=MPS();b=new _.dT({veType:R,youtubeData:Y,jspbYoutubeData:b});Y=L0({},G);X&&(Y.cttAuthInfo=X);X={csn:G,pageVe:b.getAsJson()};_.k("expectation_logging")&&J&&J.screenCreatedLoggingExpectations&&(X.screenCreatedLoggingExpectations=J.screenCreatedLoggingExpectations);V&&V.visualElement?(X.implicitGesture={parentCsn:V.clientScreenNonce,gesturedVe:V.visualElement.getAsJson()},t&&(X.implicitGesture.gestureType=t)):V&&_.KE(new _.H8("newScreen() parent element does not have a VE - rootVe",
R));e&&(X.cloneCsn=e);B?zn("screenCreated",X,B,Y):_.dn("screenCreated",X,Y);jrd(Mu5,new kAx(G));vz.clear();Dp_.clear();fAZ.clear();return G};
K0=function(B,R,V,e,X){zMd(B,R,V,[e],X===void 0?!1:X)};
zMd=function(B,R,V,e,X){X=X===void 0?!1:X;for(var Y=L0({cttAuthInfo:xa(R)||void 0},R),t=_.h(e),b=t.next();!b.done;b=t.next()){b=b.value;var J=b.getAsJson();(_.M_.isEmpty(J)||!J.trackingParams&&!J.veType)&&_.KE(Error("uf"));if(_.k("no_client_ve_attach_unless_shown")){var G=aAS(b,R);if(J.veType&&!Dp_.has(G)&&!fAZ.has(G)&&!X){if(!_.k("il_attach_cache_limit")||vz.size<1E3){vz.set(G,[B,R,V,b]);return}_.k("il_attach_cache_limit")&&vz.size>1E3&&_.KE(new _.H8("IL Attach cache exceeded limit"))}b=aAS(V,R);
vz.has(b)?dpu(V,R):fAZ.set(b,!0)}}e=e.filter(function(y){y.csn!==R?(y.csn=R,y=!0):y=!1;return y});
V={csn:R,parentVe:V.getAsJson(),childVes:_.DO(e,function(y){return y.getAsJson()})};
R==="UNDEFINED_CSN"?IF("visualElementAttached",Y,V):B?zn("visualElementAttached",V,B,Y):_.dn("visualElementAttached",V,Y)};
TOS=function(B,R,V,e,X){wWu(B,R,V,X)};
wWu=function(B,R,V,e){xpS(V,R);var X=L0({cttAuthInfo:xa(R)||void 0},R);V={csn:R,ve:V.getAsJson(),eventType:1};e&&(V.clientData=e);R==="UNDEFINED_CSN"?IF("visualElementShown",X,V):B?zn("visualElementShown",V,B,X):_.dn("visualElementShown",V,X)};
LBq=function(B,R,V,e){xpS(V,R);var X=L0({cttAuthInfo:xa(R)||void 0},R);V={csn:R,ve:V.getAsJson(),eventType:4};e&&(V.clientData=e);R==="UNDEFINED_CSN"?IF("visualElementShown",X,V):B?zn("visualElementShown",V,B,X):_.dn("visualElementShown",V,X)};
vXu=function(B,R,V,e,X){var Y=(e=e===void 0?!1:e)?16:8;e=L0({cttAuthInfo:xa(R)||void 0,endOfSequence:e},R);V={csn:R,ve:V.getAsJson(),eventType:Y};X&&(V.clientData=X);R==="UNDEFINED_CSN"?IF("visualElementHidden",e,V):B?zn("visualElementHidden",V,B,e):_.dn("visualElementHidden",V,e)};
IAp=function(B,R,V,e,X){KBN(B,R,V,void 0,e,X)};
KBN=function(B,R,V,e,X){xpS(V,R);e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var Y=L0({cttAuthInfo:xa(R)||void 0},R);V={csn:R,ve:V.getAsJson(),gestureType:e};X&&(V.clientData=X);R==="UNDEFINED_CSN"?IF("visualElementGestured",Y,V):B?zn("visualElementGestured",V,B,Y):_.dn("visualElementGestured",V,Y)};
EXp=function(B,R,V,e){var X=L0({cttAuthInfo:xa(R)||void 0},R);V={csn:R,ve:V.getAsJson(),clientData:e};R==="UNDEFINED_CSN"?IF("visualElementStateChanged",X,V):B?zn("visualElementStateChanged",V,B,X):_.dn("visualElementStateChanged",V,X)};
Qk_=function(){var B=kHx(16);for(var R=[],V=0;V<B.length;V++)R.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(B[V]&63));return R.join("")};
IF=function(B,R,V){qcq.push({payloadName:B,payload:V,jspbPayload:void 0,options:R});cwd||(cwd=DRd())};
H7u=function(B){if(qcq){for(var R=_.h(qcq),V=R.next();!V.done;V=R.next())V=V.value,V.payload&&(V.payload.csn=B.csn,_.dn(V.payloadName,V.payload,V.options));qcq.length=0}cwd=0};
aAS=function(B,R){return""+B.getAsJson().veType+B.getAsJson().veCounter+R};
xpS=function(B,R){if(_.k("no_client_ve_attach_unless_shown")){var V=aAS(B,R);Dp_.set(V,!0);dpu(B,R)}};
dpu=function(B,R){B=aAS(B,R);vz.has(B)&&(R=vz.get(B)||[],K0(R[0],R[1],R[2],R[3],!0),vz.delete(B))};
L0=function(B,R){_.k("log_sequence_info_on_gel_web")&&(B.sequenceGroup=R);return B};
_.EV=function(B,R,V){_.Qh(K0)(void 0,B,R,V)};
_.QD=function(B,R,V){_.Qh(zMd)(void 0,B,R,V)};
_.qd=function(B,R){_.Qh(TOS)(void 0,B,R,void 0,void 0,void 0)};
_.cz=function(B,R,V){_.Qh(function(){_.ij(R,function(e){LBq(void 0,B,e,V)})})()};
_.AE=function(B,R,V,e){_.Qh(function(){_.ij(R,function(X){vXu(void 0,B,X,V,e)})})()};
_.iF=function(B,R,V){_.Qh(IAp)(void 0,B,R,V,void 0)};
_.sV=function(B,R,V,e){_.Qh(KBN)(void 0,B,R,V,e,void 0)};
_.FT=function(B,R,V){_.Qh(EXp)(void 0,B,R,V,void 0)};
gi=function(B){return ri.get(B)};
Awq=function(B,R){ri.set(B,R)};
igZ=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(B){return(+B^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+B/4).toString(16)})};
gXq=function(B,R){R=R===void 0?{}:R;if(ZI&&ZI.sample(B,R)){var V=skS++,e,X;B=new FBq(B,R,performance.now(),V,rw5,(X=(e=my)==null?void 0:e.traceId)!=null?X:V);if(my){var Y;(Y=my).children||(Y.children=[]);my.children.push(B)}V=_.h(ZI.spanProcessors);for(e=V.next();!e.done;e=V.next())Y=X=void 0,(Y=(X=e.value).onSpanStart)==null||Y.call(X,B);return my=B}};
ZgN=function(B){var R;return(R=ZI)==null?void 0:R.sample(B,void 0)};
mpu=function(B){rw5=igZ();ZI=B};
$po=function(B,R,V){if(!B)return R(V);var e=void 0;try{return R(V)}catch(X){throw e="error",X;}finally{B==null||B.close(e)}};
CCN=function(B,R){var V=Object.keys(B);B=new _.H8("[Command Handler] "+R,{filteredCommandNames:V,originalCommand:B});_.Tn(B)};
PCd=function(B,R){CCN(B,R+" was called but not set")};
nX5=function(B){return function(){return new B}};
$8=function(B){return function(){return _.Oz().resolve(B)}};
uCI=function(B,R){var V=_.D(B,_.c5);if(V&&(V=R[V.signal]))return V();B=_.h(Object.keys(B));for(V=B.next();!V.done;V=B.next())if(V=V.value,R[V]&&(V=R[V]))return V()};
C0=function(B,R,V,e){return{browseEndpoint:{browseId:B},commandMetadata:{webCommandMetadata:{url:R,rootVe:V,webPageType:e===void 0?"WEB_PAGE_TYPE_BROWSE":e}}}};
Ogd=function(B,R,V){var e=R=R===void 0?0:R;V=V===void 0?0:V;var X=V-e;return _.Pz(B,"PPSV",void 0,void 0,(X>600?0:X<60||V<=0||e/V>.9)?0:R)};
_.Pz=function(B,R,V,e,X){var Y="/watch?v="+B;B={videoId:B};R&&(B.playlistId=R,Y+="&list="+R);e&&(Y+="&pp="+e);X&&(B.startTimeSeconds=X,Y+="&t="+X+"s");R={watchEndpoint:B,commandMetadata:{webCommandMetadata:{url:Y,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};V&&(R.clickTrackingParams=V);e&&(_.D(R,_.sI).playerParams=e);return R};
o6S=function(B){return{browseEndpoint:{browseId:"VL"+B},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+B,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
BpZ=function(B){if(B){var R;if(B){var V=(R=_.D(B.commandMetadata,_.$a))==null?void 0:R.url;R=!(!V||V==="/service_ajax")}else R=!1;if(R)return B;var e;if(B=(e=_.D(B,_.p0))==null?void 0:e.commands)for(e=_.h(B),B=e.next();!B.done;B=e.next())if(B=BpZ(B.value))return B}};
_.n0=function(B){return{runs:[{text:B}]}};
RPA=function(B,R){return B&&R?{runs:[{text:B,navigationEndpoint:R}]}:void 0};
uF=function(B){return B?_.n0(B):void 0};
_.OV=function(B){return B?{simpleText:B}:void 0};
_.or=function(B){var R=B.type;B=B.payload;R={type:R};B!==void 0&&(R.payload=B);return R};
VHo=function(B,R,V){for(var e=Object.assign({},B),X=_.h(Object.keys(R)),Y=X.next();!Y.done;Y=X.next()){Y=Y.value;var t=B[Y],b=R[Y];if(b===void 0)delete e[Y];else if(t===void 0)e[Y]=b;else if(Array.isArray(b)&&Array.isArray(t))e[Y]=V?[].concat(_.MI(t),_.MI(b)):b;else if(!Array.isArray(b)&&_.Xa(b)&&!Array.isArray(t)&&_.Xa(t))e[Y]=VHo(t,b,V);else if(typeof b===typeof t)e[Y]=b;else return R=new _.H8("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:Y,originalValue:t,updateValue:b}),
_.Tn(R),B}return e};
p9o=function(B){if(!B.length)return"";try{if(ePY)return ePY.decode(B);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(B)}catch(t){}for(var R=0,V=[],e=B.length;R<e;){for(var X=0;X<1024&&R<e;){var Y=B[R++];if(Y<128)X9q[X++]=Y;else{if(Y<224)Y=(Y&31)<<6|B[R++]&63;else if(Y<240)Y=(Y&15)<<12|(B[R++]&63)<<6|B[R++]&63;else{if(X+1===1024){--R;break}Y=(Y&7)<<18|(B[R++]&63)<<12|(B[R++]&63)<<6|B[R++]&63;Y-=65536;X9q[X++]=55296|Y>>10;Y=56320|Y&1023}X9q[X++]=Y}}Y=String.fromCharCode.apply(String,
X9q);X<1024&&(Y=Y.substring(0,X));V.push(Y)}return V.join("")};
hPu=function(B,R){var V;if((V=Yjd)==null?0:V.encodeInto)return R=Yjd.encodeInto(B,R),R.read<B.length?B.length*4:R.written;for(var e=V=0;e<B.length;e++){var X=B.charCodeAt(e);X<128?R[V++]=X:(X<2048?R[V++]=X>>6|192:((X&64512)===55296&&e+1<B.length&&(B.charCodeAt(e+1)&64512)===56320?(X=65536+((X&1023)<<10)+(B.charCodeAt(++e)&1023),R[V++]=X>>18|240,R[V++]=X>>12&63|128):R[V++]=X>>12|224,R[V++]=X>>6&63|128),R[V++]=X&63|128)}return V};
tHp=function(B,R){B=new Uint8Array(B);R&&B.set(R);return B};
_.Rr=function(B){B=new WGA(new b8_([_.Uo(decodeURIComponent(B))]));if(Jf_(B,2)){var R=Bk(B);var V=B.pos;var e=B.arrayView;V=V===void 0?0:V;var X=R===void 0?-1:R;V=V===void 0?0:V;X=X===void 0?-1:X;if(e.totalLength&&X){X<0&&(X=e.totalLength-V);e.focus(V);if(!(V-e.arrayPos+X<=e.arrays[e.arrayIdx].length)){var Y=e.arrayIdx,t=e.arrayPos;e.focus(V+X-1);t=new Uint8Array(e.arrayPos+e.arrays[e.arrayIdx].length-t);for(var b=0,J=Y;J<=e.arrayIdx;J++)t.set(e.arrays[J],b),b+=e.arrays[J].length;e.arrays.splice(Y,
e.arrayIdx-Y+1,t);e.arrayIdx=0;e.arrayPos=0;e.focus(V)}Y=e.arrays[e.arrayIdx];e=new DataView(Y.buffer,Y.byteOffset+V-e.arrayPos,X)}else e=new DataView(new ArrayBuffer(0));e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);B.pos+=R;R=e}else R=void 0;R=R?p9o(R):void 0;B=Jf_(B,4)?Bk(B):void 0;e=jcA[B];if(typeof e==="undefined")throw B=new _.H8("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:B}),_.Tn(B),B;return{entityTypeFieldNumber:B,entityType:e,entityId:R}};
_.XF=function(B,R,V){V=V===void 0?0:V;var e=new U7I;if(Yjd)B=Yjd.encode(B);else{var X=new Uint8Array(Math.ceil(B.length*1.2)),Y=hPu(B,X);X.length<Y&&(X=new Uint8Array(Y),Y=hPu(B,X));X.length>Y&&(X=X.subarray(0,Y));B=X}B!==void 0&&(VW(e,18),X=B.length,VW(e,X),eu(e,X),e.buf.set(B,e.pos),e.pos+=X);B=Npu[R];if(typeof B==="undefined")throw V=new _.H8("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:R}),_.Tn(V),V;B!==void 0&&(VW(e,32),VW(e,B));VW(e,40);VW(e,1);R=new Uint8Array(e.buf.buffer,
e.buf.byteOffset,e.pos);return encodeURIComponent(_.O4(R,V))};
Gsq=function(B){B=B.key||B.id;if(!B)throw Error("yf");return B};
Sjq=function(B,R){B=B===void 0?{}:B;return yfZ(B,R)};
H8x=function(B,R,V,e){if(e===void 0)return e=Object.assign({},B[R]||{}),V=(delete e[V],e),e={},Object.assign({},B,(e[R]=V,e));var X={},Y={};return Object.assign({},B,(Y[R]=Object.assign({},B[R],(X[V]=e,X)),Y))};
MHd=function(B,R,V,e,X){var Y=B[R];if(Y==null||!Y[V])return B;e=VHo(Y[V],e,X==="REPEATED_FIELDS_MERGE_OPTION_APPEND");X={};Y={};return Object.assign({},B,(Y[R]=Object.assign({},B[R],(X[V]=e,X)),Y))};
_.p7=function(B,R,V){return B[R]?B[R][V]||null:null};
D7Y=function(){if(ksY)return ksY();var B={};ksY=Cq("PersistentEntityStoreDb",{objectStores:(B.EntityStore={addedAtVersion:1},B.EntityAssociationStore={addedAtVersion:2},B),shared:!1,upgrade:function(R,V){V(1)&&E7(Iu(R,"EntityStore",{keyPath:"key"}),"entityType","entityType");V(2)&&(R=Iu(R,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),E7(R,"byParentEntityKey","parentEntityKey"),E7(R,"byChildEntityKey","childEntityKey"))},
version:3});return ksY()};
fr5=function(B){return _.iN(D7Y(),B)};
YG=function(B){return window.Int32Array?new Int32Array(B):Array(B)};
zPq=function(B){return _.iN(lrd(),B)};
aro=function(B){return new hs("WRONG_DATA_TYPE",{encoderVersion:B})};
d7o=function(B){return B instanceof Error?new hs("UNKNOWN_ENCODE_ERROR",{originalMessage:B.message}):new hs("UNKNOWN_ENCODE_ERROR")};
w9u=function(B){return B instanceof Error?new hs("UNKNOWN_DECODE_ERROR",{originalMessage:B.message}):new hs("UNKNOWN_DECODE_ERROR")};
Tp_=function(B,R){B=B instanceof hs?B:R(B);_.Tn(B);throw B;};
x7Z=function(B){B=(new TextEncoder).encode(B).subarray(0,16);var R=new Uint8Array(16);R.set(B);return R};
v6I=function(B){var R=LGK[B];if(R)return R;_.KE(new _.H8("Entity model not found.",{entityType:B}))};
_.ts=function(){KGZ||(KGZ=Ir_());return KGZ};
Ir_=function(){var B,R,V;return _.W(function(e){if(e.nextAddress==1)return _.en(e,2),_.U(e,_.$z(),4);if(e.nextAddress!=2){B=e.yieldResult;if(!B||!_.SC()||typeof _.R5.BroadcastChannel==="undefined")return e.return();R=new E6A;return e.return(new Wk(B,R))}V=_.WR(e);V instanceof Error&&_.Tn(V);return e.return()})};
_.bz=function(B,R){var V;return _.W(function(e){if(e.nextAddress==1){V=B.mutations;if(!V||V.length<=0)return e.return();R&&R.dispatch(_.or({type:"ENTITY_LOADED",payload:V}));return _.U(e,Qc_(V),2)}V.length=0;_.b3(e)})};
Qc_=function(B){var R;return _.W(function(V){return V.nextAddress==1?_.U(V,_.ts(),2):(R=V.yieldResult)?_.U(V,_.Js(R,"readwrite",function(e){for(var X={},Y=_.h(B),t=Y.next(),b={};!t.done;b={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},t=Y.next())b.mutation$jscomp$4=t.value,b.mutation$jscomp$4.entityKey&&qjp(b.mutation$jscomp$4)&&(b.mutationEntityType$jscomp$3=(0,_.M_.getAnyKey)(b.mutation$jscomp$4.payload),t=void 0,b.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(t=function(J){return function(){return _.cf5(e,
J.mutation$jscomp$4.payload[J.mutationEntityType$jscomp$3],J.mutationEntityType$jscomp$3)}}(b)),b.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(t=function(J){return function(){return AfI(e,J.mutation$jscomp$4.entityKey)}}(b)),b.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(t=function(J){return function(){return i8q(e,J.mutation$jscomp$4.entityKey,J.mutation$jscomp$4.payload[J.mutationEntityType$jscomp$3],J.mutationEntityType$jscomp$3)}}(b)),t&&(X[b.mutation$jscomp$4.entityKey]=
X[b.mutation$jscomp$4.entityKey]?X[b.mutation$jscomp$4.entityKey].then(t):t()));
return IC.all(Object.values(X))}),0):V.return()})};
qjp=function(B){var R;B=(R=B.options)==null?void 0:R.persistenceOption;return B==="ENTITY_PERSISTENCE_OPTION_PERSIST"||B==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
rfo=function(B,R){var V,e;_.W(function(X){if(X.nextAddress==1)return _.U(X,_.ts(),2);if(X.nextAddress!=3)return(V=X.yieldResult)?_.U(X,_.Js(V,"readonly",function(Y){var t={},b=Object.keys(R).map(function(J){var G=R[J]?[].concat(_.MI(R[J])):[];return scu(Y,J,G,t)});
return IC.all(b).then(function(){return t})}),3):X.return();
e=X.yieldResult;Object.keys(e).length>0&&B.dispatch(FGo(e));_.b3(X)})};
scu=function(B,R,V,e){return ju(B,R,V).then(function(X){e[R]=g6q(V,X)})};
g6q=function(B,R){if(R.length!==B.length)throw Error("Bf");return R.reduce(function(V,e,X){V[B[X]]=e;return V},{})};
$7Y=function(B){var R=B.filter(function(X){var Y;return(X==null?void 0:(Y=X.transferEntity)==null?void 0:Y.transferState)==="TRANSFER_STATE_COMPLETE"}).length,V=B.filter(function(X){var Y;
return(X==null?void 0:(Y=X.transferEntity)==null?void 0:Y.transferState)==="TRANSFER_STATE_FAILED"}).length,e=B.filter(function(X){var Y;
return(X==null?void 0:(Y=X.transferEntity)==null?void 0:Y.transferState)&&Z8K.includes(X.transferEntity.transferState)});
if(!(R||e!=null&&e.length))return 0;R=_.m75(e)+R;B=B.length-V;return B===0?0:Math.round(R*100/B)/100};
_.m75=function(B){var R=[];R=R.concat.apply(R,_.MI(B.filter(function(Y){return Y.streamEntity}).map(function(Y){var t=Object.assign({},Y.streamEntity),b,J=(b=Y.transferEntity)==null?void 0:b.transferState;
t.streamsProgress=t.streamsProgress||[];t.streamsProgress=t.streamsProgress.map(function(G){var y=Object.assign({},G);y.numBytesDownloaded=J==="TRANSFER_STATE_COMPLETE"?G.numTotalBytes:G.numBytesDownloaded;return y});
return t}).map(function(Y){return Y.streamsProgress})));
var V=B=0;R=_.h(R);for(var e=R.next();!e.done;e=R.next()){var X=e.value;e=Number(X.numBytesDownloaded);X=Number(X.numTotalBytes);V+=isNaN(e)?0:e;B+=isNaN(X)?0:X}return B===0?0:Math.round(V*100/B)/100};
CxN=function(B){if(!B||!B.expirationTimestamp||!B.action)return!1;var R=(0,_.P8)()/1E3;return Number(B.expirationTimestamp)>=R};
U$=function(B){return B&&B.expirationTimestamp&&B.action?CxN(B)&&B.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.NR=function(B){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(B||"TRANSFER_STATE_UNKNOWN")};
PxI=function(B){var R=new U7I;if(B!==void 0){var V=Math.ceil(Math.log2(B.length*4+2)/7);V=V===void 0?2:V;VW(R,10);R.submessagePosStack.push(R.pos);R.submessagePosStack.push(V);R.pos+=V;eu(R,B.length*1.2);V=hPu(B,R.buf.subarray(R.pos));R.pos+V>R.buf.length&&(eu(R,V),V=hPu(B,R.buf.subarray(R.pos)));R.pos+=V;B=R.submessagePosStack.pop();V=R.submessagePosStack.pop();for(var e=R.pos-V-B;B--;){var X=B?128:0;R.view.setUint8(V++,e&127|X);e>>=7}}R=new Uint8Array(R.buf.buffer,R.buf.byteOffset,R.pos);return(new TextDecoder("utf-8")).decode(R)};
_.Gz=function(B){var R=0;B=_.h(B);for(var V=B.next(),e={};!V.done;e={transferState$jscomp$3:void 0},V=B.next()){var X=V.value,Y=void 0;V=(Y=X.streamEntity)!=null?Y:{};Y=void 0;e.transferState$jscomp$3=(Y=X.transferEntity)==null?void 0:Y.transferState;Y=X=void 0;((X=V)==null?0:(Y=X.streamsProgress)==null?0:Y.length)&&V.streamsProgress.forEach(function(t){return function(b){b=Number(t.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?b.numTotalBytes:b.numBytesDownloaded);isFinite(b)&&(R+=b)}}(e))}return R};
n6p=function(B){return B.some(function(R){var V;if(!(R==null?0:(V=R.transferEntity)==null?0:V.transferState)){var e;return!(R==null?0:(e=R.policyEntity)==null?0:e.action)||R.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Z8K.includes(R.transferEntity.transferState)})};
uJx=function(B,R){if(!R)return!1;if(_.k("of_pb_en_po_ks"))return!0;var V;B=(V=_.p7(B,"offlineVideoPolicy",_.XF(R,"offlineVideoPolicy")))!=null?V:void 0;return!!B&&U$(B)};
_.oIo=function(B){var R=["TRANSFER_STATE_COMPLETE"];R=R===void 0?O8N:R;return B.filter(function(V){var e,X;return R.includes((X=(e=V.transferEntity)==null?void 0:e.transferState)!=null?X:"TRANSFER_STATE_UNKNOWN")})};
BvZ=function(B,R){if(R){var V,e=(V=_.p7(B,"playbackData",_.XF(R,"playbackData")))!=null?V:null,X;V=(X=_.p7(B,"transfer",_.XF(R,"transfer")))!=null?X:null;var Y;X=(Y=_.p7(B,"offlineVideoStreams",_.XF(R,"offlineVideoStreams")))!=null?Y:null;var t;B=(t=_.p7(B,"offlineVideoPolicy",_.XF(R,"offlineVideoPolicy")))!=null?t:null;if(e||V||X||B)return{playbackDataEntity:e,transferEntity:V,streamEntity:X,policyEntity:B}}};
_.yW=function(B){var R=B.playbackData;if(!R)return[];var V=[];R=_.h(Object.keys(R));for(var e=R.next();!e.done;e=R.next()){var X=e.value;if(!RXx(B,_.Rr(X).entityId)&&(e=BvZ(B,_.Rr(X).entityId))){var Y=void 0,t=void 0;X=(t=Number((Y=_.p7(B,"playbackData",X))==null?void 0:Y.streamDownloadTimestampSeconds))!=null?t:(0,_.P8)();V.push({entity:e,streamDownloadTimestamp:X})}}return V.sort(function(b,J){var G=b.streamDownloadTimestamp,y=J.streamDownloadTimestamp;return y===G?b.entity.streamEntity&&!J.entity.streamEntity?
1:-1:y-G}).map(function(b){return b.entity})};
VoI=function(B){return _.oIo(_.yW(B))};
_.eXd=function(B){return _.yW(B).filter(function(R){var V;if(((V=R.policyEntity)==null?0:V.action)&&R.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var e;if((e=R.transferEntity)==null?0:e.transferState){var X;return Z8K.includes((X=R.transferEntity)==null?void 0:X.transferState)}return!0})};
RXx=function(B,R){var V;return((V=_.p7(B,"downloadStatusEntity",_.XF(R,"downloadStatusEntity")))==null?void 0:V.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
X6N=function(B){var R;if(B==null?0:(R=B.playbackDataEntity)==null?0:R.key)return _.Rr(B.playbackDataEntity.key).entityId;var V;if(B==null?0:(V=B.transferEntity)==null?0:V.key)return _.Rr(B.transferEntity.key).entityId;var e;if(B==null?0:(e=B.streamEntity)==null?0:e.key)return _.Rr(B.streamEntity.key).entityId;var X;if(B==null?0:(X=B.policyEntity)==null?0:X.key)return _.Rr(B.policyEntity.key).entityId};
Yrx=function(B){var R=new Set,V;B=(V=B.mainDownloadsListEntity)==null?void 0:V[p6N];var e;if(!(B==null?0:(e=B.downloads)==null?0:e.length))return R;var X;B==null||(X=B.downloads)==null||X.forEach(function(Y){(Y==null?0:Y.videoItem)&&R.add(Y.videoItem)});
return R};
Su=function(B,R){if(R){var V=_.p7(B,"mainVideoEntity",_.XF(R,"mainVideoEntity")),e=_.p7(B,"downloadStatusEntity",_.XF(R,"downloadStatusEntity")),X=_.p7(B,"ytMainChannelEntity",_.XF(R,"ytMainChannelEntity")),Y={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};B=BvZ(B,R);e=(e==null?void 0:e.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.k("woffle_render_failed_download_state_ks")&&(e==null?void 0:e.downloadState)==="DOWNLOAD_STATE_FAILED";!B&&e&&(B=Y);if(B&&V&&
X)return Object.assign({},{videoEntity:V,channelEntity:X},B)}};
tod=function(B,R){return hXS(B,R)==="TRANSFER_STATE_COMPLETE"&&uJx(B,R)};
Wpo=function(B,R){if(!R)return!1;var V;B=(V=_.p7(B,"playbackData",_.XF(R,"playbackData")))!=null?V:void 0;return!!B&&!!B.playerResponseJson};
hXS=function(B,R){if(!R)return"TRANSFER_STATE_UNKNOWN";var V=_.p7(B,"transfer",_.XF(R,"transfer"));if(V){var e;return(e=V.transferState)!=null?e:"TRANSFER_STATE_UNKNOWN"}V=_.p7(B,"offlineOrchestrationActionWrapperEntity",_.XF(R,"offlineOrchestrationActionWrapperEntity"));B=_.p7(B,"mainVideoEntity",_.XF(R,"mainVideoEntity"));return V||B?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
bCY=function(B,R){if(!R)return"TRANSFER_STATE_UNKNOWN";if(B=_.p7(B,"transfer",_.XF(R,"transfer"))){var V;return(V=B.transferState)!=null?V:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
JTo=function(B,R){return R&&(B=_.p7(B,"videoPlaybackPositionEntity",_.XF(R,"videoPlaybackPositionEntity")),B==null?0:B.lastPlaybackPositionSeconds)?Number(B.lastPlaybackPositionSeconds):0};
gId=function(B,R){return rTu(B).some(function(V){var e;return(V==null?void 0:(e=V.mainPlaylistEntity)==null?void 0:e.playlistId)===R})};
mkp=function(B,R,V){var e=ZCS(B,R);if(!e.length)return[];R=[];e=_.h(e);for(var X=e.next();!X.done;X=e.next()){X=X.value;var Y=Su(B,X);V&&hXS(B,X)!=="TRANSFER_STATE_COMPLETE"||Y&&R.push(Y)}return R};
ZCS=function(B,R){if(!R)return[];var V=_.XF(R,"mainPlaylistEntity"),e;R=(e=B.mainPlaylistEntity)==null?void 0:e[V];e=[];if(R==null||!R.videos)return e;R=_.h(R.videos);for(V=R.next();!V.done;V=R.next()){V=V.value;var X=void 0,Y=void 0,t=void 0,b=(X=B)==null?void 0:(Y=X.mainPlaylistVideoEntity)==null?void 0:(t=Y[V])==null?void 0:t.video;b&&(V=_.Rr(b).entityId)&&e.push(V)}return e};
$k_=function(B,R){if(R){var V=_.p7(B,"mainPlaylistEntity",_.XF(R,"mainPlaylistEntity")),e=_.p7(B,"mainPlaylistDownloadStateEntity",_.XF(R,"mainPlaylistDownloadStateEntity"));B=_.p7(B,"ytMainChannelEntity",_.XF(R,"ytMainChannelEntity"));if(e&&V)return Object.assign({},{mainPlaylistEntity:V,mainPlaylistDownloadStateEntity:e},!!B&&{channelEntity:B})}};
rTu=function(B){return Cvo(B).sort(function(R,V){return V.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return R.downloadedPlaylistEntities})};
Cvo=function(B){var R=B.mainPlaylistDownloadStateEntity,V=[];if(!R)return V;for(var e=_.h(Object.keys(R)),X=e.next();!X.done;X=e.next()){var Y=X.value;X=$k_(B,_.Rr(Y).entityId);var t=void 0;Y=Number((t=R[Y])==null?void 0:t.addedTimestampMillis);t=isNaN(Y)?(0,_.P8)():Y;X!==void 0&&V.push({downloadedPlaylistEntities:X,addedTimestampMillis:t})}return V};
PvN=function(B){var R,V=(R=B.mainPlaylistVideoEntity)!=null?R:{};return new Set(rTu(B).reduce(function(e,X){e=e===void 0?[]:e;var Y,t;X==null||(Y=X.mainPlaylistEntity)==null||(t=Y.videos)==null||t.forEach(function(b){var J;(b=(J=V[b])==null?void 0:J.video)&&e.push(b)});
return e},[]))};
nIq=function(B){return"downloadedMusicPlaylistEntities"in B};
u3o=function(B){return"mainPlaylistEntity"in B&&"mainPlaylistDownloadStateEntity"in B};
OCN=function(B){return"videoEntity"in B&&"channelEntity"in B};
oio=function(B){var R=B.musicPlaylistDownloadMetadataEntity,V=[];if(!R)return V;for(var e=_.h(Object.keys(R)),X=e.next();!X.done;X=e.next()){X=X.value;a:{var Y=B,t=_.Rr(X).entityId;if(t){var b=_.p7(Y,"musicPlaylist",_.XF(t,"musicPlaylist"));Y=_.p7(Y,"musicPlaylistDownloadMetadataEntity",_.XF(t,"musicPlaylistDownloadMetadataEntity"));if(b&&Y){b={musicPlaylistEntity:b,musicPlaylistDownloadStateEntity:Y};break a}}b=void 0}Y=void 0;X=Number((Y=R[X])==null?void 0:Y.addedTimestampMillis);X=isNaN(X)?(0,_.P8)():
X;b!==void 0&&V.push({downloadedMusicPlaylistEntities:b,addedTimestampMillis:X})}return V};
Bfd=function(B){var R=new Set;B=_.h(B);for(var V=B.next();!V.done;V=B.next())if(V=V.value,"musicPlaylistEntity"in V&&"musicPlaylistDownloadStateEntity"in V){V=_.h(V.musicPlaylistEntity.tracks);for(var e=V.next();!e.done;e=V.next())R.add(e.value)}return R};
RrA=function(B,R){if(R){var V=_.p7(B,"musicTrack",_.XF(R,"musicTrack")),e=_.p7(B,"musicArtist",_.XF(R,"musicArtist"))||{};if((B=BvZ(B,R))&&V&&e)return Object.assign({},{musicTrackEntity:V,musicArtistEntity:e},B)}};
VEd=function(B){var R=B.musicTrackDownloadMetadataEntity,V=[];if(!R)return[];R=_.h(Object.keys(R));for(var e=R.next();!e.done;e=R.next()){var X=e.value;e=RrA(B,_.Rr(X).entityId);var Y=void 0;X=Number((Y=_.p7(B,"musicTrackDownloadMetadataEntity",X))==null?void 0:Y.addedTimestampMillis);Y=isNaN(X)?(0,_.P8)():X;e!==void 0&&V.push({downloadedMusicEntities:e,addedTimestampMillis:Y})}return V};
pLu=function(B,R){if(!R)return[];if(Object.values(erK).includes(R))return XLI(B,R);R=_.XF(R,"musicPlaylist");var V;B=(V=B.musicPlaylist)==null?void 0:V[R];V=[];if(B==null||!B.tracks)return V;B=_.h(B.tracks);for(R=B.next();!R.done;R=B.next())(R=_.Rr(R.value).entityId)&&V.push(R);return V};
XLI=function(B,R){var V=new Set,e=oio(B).map(function(Y){return Y.downloadedMusicPlaylistEntities});
e=Bfd(e);e=_.h(e);for(var X=e.next();!X.done;X=e.next())(X=_.Rr(X.value).entityId)&&V.add(X);return YNd(B).downloadedMusicEntities.filter(function(Y){var t;if((t=Y.musicTrackEntity)!=null&&t.videoId){Y=Y.musicTrackEntity;if(t=R==="PPOM"?!0:!V.has(Y.videoId))b:switch(Y=Y.musicVideoType,R){case "PPSE":t=Y==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:t=Y!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}Y=t}else Y=!1;return Y}).map(function(Y){var t;
return(t=Y.musicTrackEntity)==null?void 0:t.videoId})};
YNd=function(B){var R=VEd(B).sort(function(V,e){return e.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return"downloadedMusicEntities"in V?V.downloadedMusicEntities:nIq(V)?V.downloadedMusicPlaylistEntities:{}});
B=oio(B).sort(function(V,e){return e.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return"downloadedMusicEntities"in V?V.downloadedMusicEntities:nIq(V)?V.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:R,downloadedMusicPlaylistEntities:B}};
tEo=function(B,R){R=_.vE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?pLu(B,R):ZCS(B,R);if(!R.length)return"TRANSFER_STATE_UNKNOWN";R=R.map(function(V){return bCY(B,V)});
return hrd(R)};
hrd=function(B){var R=new Set(B);if(R.has("TRANSFER_STATE_FAILED")&&R.size===1)return"TRANSFER_STATE_FAILED";R.delete("TRANSFER_STATE_FAILED");if(R.has("TRANSFER_STATE_UNKNOWN")&&R.size===1)return"TRANSFER_STATE_PRE_TRANSFER";R.delete("TRANSFER_STATE_UNKNOWN");if(R.has("TRANSFER_STATE_PRE_TRANSFER")&&R.size===1||R.size===0)return"TRANSFER_STATE_PRE_TRANSFER";B=R.has("TRANSFER_STATE_TRANSFERRING");R=R.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return B||R?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Hk=function(B){var R=B.mainVideoDownloadStateEntity,V=[];if(!R)return[];R=_.h(Object.keys(R));for(var e=R.next();!e.done;e=R.next()){var X=e.value;if(!RXx(B,_.Rr(X).entityId)){e=Su(B,_.Rr(X).entityId);var Y=void 0,t=void 0;X=(t=Number((Y=_.p7(B,"mainVideoDownloadStateEntity",X))==null?void 0:Y.addedTimestampMillis))!=null?t:(0,_.P8)();e!==void 0&&V.push({downloadedVideoEntities:e,addedTimestampMillis:X})}}return V};
W8x=function(B){return Hk(B).sort(function(R,V){return V.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return R.downloadedVideoEntities})};
_.JGo=function(B){var R=PvN(B),V=_.MR(B),e=Yrx(B),X=Hk(B).filter(function(t){var b,J;if((t==null?void 0:(b=t.downloadedVideoEntities)==null?void 0:(J=b.transferEntity)==null?void 0:J.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var G,y;t=t==null?void 0:(G=t.downloadedVideoEntities)==null?void 0:(y=G.videoEntity)==null?void 0:y.key;return _.k("kevlar_use_library_entity")?t&&(e.has(t)||V[t]):t&&!R.has(t)}),Y=Cvo(B).filter(function(t){return tEo(B,t.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.MI(X),_.MI(Y)).sort(function(t,b){return b.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return btI(t)})};
jiq=function(B,R){if(R&&uJx(B,R)){var V,e,X=(e=(V=_.p7(B,"playbackData",_.XF(R,"playbackData")))!=null?V:void 0)==null?void 0:e.playerResponseJson;if(X){try{var Y=JSON.parse(X);var t=_.p7(B,"transfer",_.XF(R,"transfer")),b=JTo(B,R);b&&(Y=Object.assign({},Y,{playerConfig:Object.assign({},Y.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+b*1E3}}})}));Y.cotn=t==null?void 0:t.cotn}catch(J){}return Y}}};
_.GlZ=function(B){var R,V,e;B=(e=(V=((R=B.downloadsPageViewConfigurationEntity)!=null?R:{})[Ufd])==null?void 0:V.smartDownloadsOptInBannerVisibility)!=null?e:{};var X;return(X=_.D(B,NfA))!=null?X:{}};
_.MR=function(B){var R,V,e;B=(e=(V=((R=B.mainDownloadsListEntity)!=null?R:{})[_.yG5])==null?void 0:V.downloads)!=null?e:[];R={};V=_.h(B);for(e=V.next();!e.done;e=V.next())B=void 0,R[(B=e.value.videoItem)!=null?B:""]=!0;return R};
SNo=function(B){var R=_.MR(B);if(Object.keys(R).length===0)return!1;var V=B.mainVideoEntity;if(!V)return!0;V=_.h(Object.keys(V));for(var e=V.next();!e.done;e=V.next()){e=e.value;var X=_.Rr(e).entityId;if(R[e]&&!RXx(B,X))return!1}return!0};
_.kG=function(B){var R=_.MR(B);return Hk(B).sort(function(V,e){return V.addedTimestampMillis-e.addedTimestampMillis}).map(function(V){return V.downloadedVideoEntities}).filter(function(V){var e;
return(V=V==null?void 0:(e=V.videoEntity)==null?void 0:e.key)&&!!R[V]})};
btI=function(B){return"downloadedVideoEntities"in B?B.downloadedVideoEntities:"downloadedPlaylistEntities"in B?B.downloadedPlaylistEntities:{}};
Htq=function(B){var R=_.MR(B),V=PvN(B),e=Hk(B).filter(function(X){var Y,t;return(X=X==null?void 0:(Y=X.downloadedVideoEntities)==null?void 0:(t=Y.videoEntity)==null?void 0:t.key)&&!R[X]&&!V.has(X)});
B=Cvo(B);return[].concat(_.MI(e),_.MI(B)).sort(function(X,Y){return Y.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return btI(X)})};
_.Dz=function(B){if(!_.k("kevlar_use_library_entity"))return Htq(B);var R=Hk(B).filter(function(e){var X,Y;if(X=e=e==null?void 0:(X=e.downloadedVideoEntities)==null?void 0:(Y=X.videoEntity)==null?void 0:Y.key){var t,b,J;X=((b=(t=B.mainDownloadsListEntity)==null?void 0:t[p6N])==null?0:(J=b.downloads)==null?0:J.length)?Yrx(B).has(e):!1}return X}),V=Cvo(B);
return[].concat(_.MI(R),_.MI(V)).sort(function(e,X){return X.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return btI(e)})};
MES=function(B){var R=_.MR(B),V=PvN(B);return W8x(B).filter(function(e){var X;return(e=e==null?void 0:(X=e.videoEntity)==null?void 0:X.key)&&!R[e]&&!V.has(e)})};
kl_=function(B){if(!_.k("kevlar_use_library_entity"))return MES(B);var R=_.MR(B),V=Yrx(B);return W8x(B).filter(function(e){var X;return(e=e==null?void 0:(X=e.videoEntity)==null?void 0:X.key)&&!R[e]&&V.has(e)})};
DfI=function(B,R){R=_.XF(R,"settingEntity");var V,e,X;return!!((X=(e=((V=B.settingEntity)!=null?V:{})[R])==null?void 0:e.settingOptionValue)!=null?X:{}).boolValue};
_.lz=function(B){var R=_.kG(B);if(n6p(R))return 0;var V=[];R=_.h(R);for(var e=R.next();!e.done;e=R.next()){e=e.value;var X=void 0,Y=void 0;if((X=e)==null?0:(Y=X.videoEntity)==null?0:Y.key)X=_.Rr(e.videoEntity.key).entityId,e=B,X=_.XF(X,"mainVideoDownloadStateEntity"),e=_.p7(e,"mainVideoDownloadStateEntity",X),(e=Number(e==null?void 0:e.addedTimestampMillis))&&V.push(e)}return Math.max.apply(Math,_.MI(V))};
_.zz=function(B){return B.ui.richGridMiniMode};
_.ar=function(B){return B.ui.richGridItemsPerRow};
_.fud=function(B){return B.ui.richGridSlimItemsPerRow};
_.luK=function(B){return B.ui.guideIsExpanded};
_.d6=function(B){return B.ui.miniplayerIsActive};
_.zrp=function(B){return B.ui.singleOptionSurveyIsActive};
_.w6=function(B){return B.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.auq=function(B){return B.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.dfd=function(B){return B.ui.inlinePreviewIsActive};
_.wLq=function(B){return B.ui.inlinePreviewIsEnabled};
_.Tf5=function(B){return B.ui.miniplayerPlaybackState};
xfI=function(B){return B.ui.isOnline};
_.L8d=function(B){return B.ui.frostedGlassMode};
_.Tz=function(B,R){return hXS(B.entities,R)};
_.xG=function(B,R){return tEo(B.entities,R)};
vix=function(B,R){var V;if(R){var e;B=(e=_.p7(B.entities,"offlineVideoPolicy",_.XF(R,"offlineVideoPolicy")))==null?void 0:e.action}else B=void 0;return(V=B)!=null?V:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
K8S=function(B,R){var V;R?(B=_.p7(B.entities,"offlineVideoPolicy",_.XF(R,"offlineVideoPolicy")),B=Number(B==null?void 0:B.expirationTimestamp)):B=void 0;return(V=B)!=null?V:0};
_.Iu5=function(B){return _.yW(B.entities).length};
Eid=function(B,R){return Su(B.entities,R)};
Qid=function(B,R){return $k_(B.entities,R)};
L7=function(B,R){return(B=Su(B.entities,R))?_.m75([B]):0};
_.qNd=function(B,R){var V=_.vE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(V){var e=B.entities;var X=pLu(e,R);if(X.length){var Y=[];X=_.h(X);for(var t=X.next();!t.done;t=X.next())(t=RrA(e,t.value))&&Y.push(t);e=Y}else e=[]}else e=mkp(B.entities,R);var b;if(V){var J=B.entities;R?(R=_.XF(R,"musicPlaylist"),J=(b=J.musicPlaylist)==null?void 0:b[R],b=J!=null&&J.tracks?J.tracks.length:0):b=0}else b=B.entities,R?(R=_.XF(R,"mainPlaylistEntity"),b=(J=b.mainPlaylistEntity)==null?void 0:J[R],b=b!=null&&b.videos?
b.videos.length:0):b=0;return e.length!==b?0:e?$7Y(e):0};
_.cGN=function(B){return B.download.isLeaderTab};
_.AGp=function(B,R,V){if(!R&&V){var e=B.entities;if(V){var X=PxI(V),Y,t;R=(t=(Y=_.p7(e,"offlineabilityEntity",_.XF(X,"offlineabilityEntity")))==null?void 0:Y.addToOfflineButtonState)!=null?t:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else R="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else Y=B.entities,R?(t=PxI(R),R=(X=(e=_.p7(Y,"offlineabilityEntity",_.XF(t,"offlineabilityEntity")))==null?void 0:e.addToOfflineButtonState)!=null?X:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):R="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return R};
ito=function(B,R){B=B.entities;if(R){R=PxI(R);var V,e;R=(e=(V=_.p7(B,"offlineabilityEntity",_.XF(R,"offlineabilityEntity")))==null?void 0:V.addToOfflineButtonState)!=null?e:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else R="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return R};
_.six=function(B){var R=B.entities;B=xfI(B);var V=DfI(R,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.k("kevlar_modern_downloads_page")&&V)var e=!1;else{var X,Y;R=(Y=(X=((e=R.downloadsPageViewConfigurationEntity)!=null?e:{})[Ufd])==null?void 0:X.smartDownloadsOptInBannerVisibility)!=null?Y:{};e=B?!!R.visibleWithConnection:!!R.visibleWithoutConnection}return e};
_.F8q=function(B){return DfI(B.entities,"SMART_DOWNLOADS_ENABLED")};
_.rGd=function(B){return SNo(B.entities)};
giZ=function(B){return _.kG(B.entities).every(function(R){var V;return(R==null?void 0:(V=R.transferEntity)==null?void 0:V.transferState)&&!Z8K.includes(R.transferEntity.transferState)})};
_.Ztd=function(B,R){return RXx(B.entities,R)};
mfI=function(B,R){if(R){var V,e;B=(e=(V=_.p7(B.entities,"downloadStatusEntity",_.XF(R,"downloadStatusEntity")))==null?void 0:V.downloadState)!=null?e:"DOWNLOAD_STATE_UNKNOWN"}else B="DOWNLOAD_STATE_UNKNOWN";return B};
vk=function(B,R){return JTo(B.entities,R)};
niZ=function(B){B=_.$fA(B);var R=B.hours===void 0?0:B.hours,V=B.minutes===void 0?0:B.minutes,e=B.seconds===void 0?0:B.seconds,X=R>0;B=[];X&&(R=_.CWA(R),B.push(R));R=X;R=R===void 0?!1:R;V=(["af","be","lt"].includes(_.K7)||R)&&V<10?PWK().format(V):(new Intl.NumberFormat("en-u-nu-latn")).format(V);B.push(V);V=PWK().format(e);B.push(V);V=":";"da fi id si sr sr-Latn".split(" ").includes(_.K7)&&(V=".");return B.join(V)};
_.$fA=function(B){var R=B.hours||0,V=B.minutes||0,e=B.seconds||0;R=e+V*60+R*3600+(B.days||0)*86400+(B.weeks||0)*604800+(B.months||0)*2629800+(B.years||0)*31557600;if(R<=0)return{hours:0,minutes:0,seconds:0};B=R;R=Math.floor(B/3600);B%=3600;V=Math.floor(B/60);e=Math.floor(B%60);return{hours:R,minutes:V,seconds:e}};
_.CWA=function(B){B=(new Intl.NumberFormat("en-u-nu-latn")).format(B);var R=["fr"],V="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(_.K7)?B.replace(",","\u00a0"):R.includes(_.K7)?B.replace(",","\u202f"):V.includes(_.K7)?B.replace(",","."):B};
PWK=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
umZ=function(B){try{return(new _.Ir(5)).format(B)}catch(R){}};
QW=function(B){return{thumbnailOverlayDownloadingRenderer:{state:B}}};
OtY=function(B){if(B=umZ(B))return{thumbnailOverlaySidePanelRenderer:{text:_.n0(B),icon:{iconType:"PLAYLISTS"}}}};
oJq=function(){var B=_.Wz("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.n0(B),icon:{iconType:"PLAY_ALL"}}}};
B3o=function(B){B=_.qR(B,2);return _.K7!=="ru"&&_.K7!=="es_419"&&_.K7!=="es-419"&&_.K7!=="es"&&_.K7!=="es_US"&&_.K7!=="es-US"&&_.K7!=="fr"&&_.K7!=="pl"&&_.K7!=="it"&&_.K7!=="nl"&&_.K7!=="uk"&&_.K7!=="fr_CA"&&_.K7!=="fr-CA"||B===""?B:B[0].toLocaleUpperCase()+B.substring(1)};
V8I=function(B){return function(R){var V=B(),e=_.qR(R,V.dateFormat);R=_.qR(R,V.timeFormat);var X=RVI.DATETIMEFORMATS[V.joinerStyle];X=X.replace(/'(?!')/g,"");X=X.replace("{0}",R);X=X.replace("{1}",e);return V.capitalize(X)}};
eVq=function(B){return B?typeof B.seconds==="string"&&(B.nanos===void 0||typeof B.nanos==="number"):!1};
XCI=function(B){return new Date(Number(B.seconds)*1E3+(B.nanos||0)*1E-6)};
_.qR=function(B,R){if(typeof B.getTime==="function")B={date:B};else if(eVq(B))B={date:XCI(B)};else if(typeof eVq(B.timestamp)&&typeof B.i18nInternalSecondsEastOfUtc==="number")B={date:XCI(B.timestamp),timeZone:ck(-B.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(B));var V=B;B=V.date;V=V.timeZone;R=pC_(R).format(B,V);_.K7==="zh-TW"&&(B=V?Number(pC_("H").format(B,V)):B.getHours(),R=B<5?R.replace("\u4e0a\u5348","\u51cc\u6668"):B<8?R.replace("\u4e0a\u5348","\u65e9\u4e0a"):B<12?
R.replace("\u4e0a\u5348","\u4e0a\u5348"):B<13?R.replace("\u4e0b\u5348","\u4e2d\u5348"):B<19?R.replace("\u4e0b\u5348","\u4e0b\u5348"):R.replace("\u4e0b\u5348","\u665a\u4e0a"));return R};
pC_=function(B){if(YpS.has(B))return YpS.get(B);var R=hV5(B);R=t8p(R);WfI!==!0&&(WfI=!0);byd=!0;byd=!1;R=new As(R,RVI);YpS.set(B,R);return R};
hV5=function(B){return(new As(B,RVI)).patternParts_.map(function(R){return R.type===0?"'"+R.text+"'":R.text}).join("")};
t8p=function(B){return _.K7==="en"||_.K7==="es_US"||_.K7==="es-US"?B:B.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(R,V,e){return"H".repeat(V.length)+e})};
Hyq=function(B,R){JyY||(_.iz=_.j8d,JyY=new Uy_);var V=JyY;a:if(B=N35(B),R=N35(R||new Date),B>R)V=B.getTime()-R.getTime()>6048E5?_.qR(B,1):Ged(B);else{for(var e=0;yyo(B,12*(e+1))<R;)++e;if(e>0)V=V.format(-e,0);else{for(e=0;yyo(B,e+1)<R;)++e;if(e>0)V=V.format(-e,2);else{B=R.getTime()-B.getTime();R=_.h(Spu);for(e=R.next();!e.done;e=R.next()){e=e.value;var X=e.unit,Y=Math.floor(B/e.unitDuration);if(Y>=(e.threshold===void 0?1:e.threshold)){V=V.format(-Y,X);break a}}V=V.format(-0,7)}}}return V};
N35=function(B){if(typeof B.getTime==="function")return B;if(eVq(B))return XCI(B);throw Error("Df`"+JSON.stringify(B));};
yyo=function(B,R){for(var V=0,e;;++V)if(e=new Date(B.getFullYear(),B.getMonth()+R,B.getDate()-V,B.getHours(),B.getMinutes(),B.getSeconds()),e.getMonth()===(B.getMonth()+R)%12)return e};
_.s$=function(B){return{runs:[{text:B}]}};
_.FF=function(B){if(B&&B.simpleText)return B.simpleText;var R="";if(B&&B.runs)for(var V=0;V<B.runs.length;V++)B.runs[V].text&&(R+=B.runs[V].text);return R};
keo=function(B,R,V,e){return B.videoEntity&&!B.policyEntity&&V!=="DOWNLOAD_STATE_FAILED"?[QW("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:U$(B.policyEntity)&&R!=="TRANSFER_STATE_FAILED"&&R!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?R==="TRANSFER_STATE_PAUSED_BY_USER"?[QW("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.NR(R)?[QW("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:B.videoEntity.lengthSeconds?M8S(B.videoEntity.lengthSeconds,e):[]:
[QW("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
M8S=function(B,R){var V=[{thumbnailOverlayTimeStatusRenderer:{text:_.n0(niZ({seconds:B})),style:"DEFAULT"}}];R&&(B=R<=0||B<=0?0:R>=B?100:Math.ceil(R*100/B),B>0&&V.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:B}}));return V};
DyA=function(B,R,V,e,X){if(R==="TRANSFER_STATE_UNKNOWN"||!B)return{};if(_.NR(R)||R==="TRANSFER_STATE_PRE_TRANSFER")var Y=[QW("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var t,b;if(R==="TRANSFER_STATE_COMPLETE"&&((t=B.mainPlaylistEntity)==null?0:(b=t.videos)==null?0:b.length)){if(_.k("web_modern_collections_v2")){var J;var G=(Y=B.mainPlaylistEntity)==null?void 0:(J=Y.videos)==null?void 0:J.length;Y=(Y=umZ(G))?{thumbnailOverlayBottomPanelRenderer:{text:_.n0(Y),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var y;Y=OtY((G=B.mainPlaylistEntity)==null?void 0:(y=G.videos)==null?void 0:y.length)}var S;Y=[oJq(),Object.assign({},(S=Y)!=null?S:{})]}else Y=[]}S=Y;a:if(R==="TRANSFER_STATE_PRE_TRANSFER")V=uF(_.Wz("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(R==="TRANSFER_STATE_TRANSFER_IN_QUEUE")V=uF(_.Wz("WAITING_TO_DOWNLOAD"));else if(_.NR(R))V=Math.floor(V*100).toString(),V=uF(_.Wz("DOWNLOADING_PERCENT",{percent:V},"Downloading... "+V+"%"));else{if(e&&(_.k("playlist_is_offline_selector_killswitch")&&
(X=_.Oz().resolve(_.A$).isNetworkAvailable()),X)){V=RPA(_.Wz("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),o6S(e));break a}V=void 0}R=R==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Wz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},S.length?{thumbnailOverlays:S}:{},V?{viewPlaylistText:V}:{viewPlaylistText:_.s$("")},R.length?{badges:R}:{})};
f0N=function(B,R,V,e,X,Y){if(R==="TRANSFER_STATE_UNKNOWN"||!B)return{};if(e==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var t=keo(B,R,e);if(B.videoEntity&&!B.policyEntity&&e!=="DOWNLOAD_STATE_FAILED"){var b=_.Wz("WAITING_TO_DOWNLOAD");if(b)return{shortViewCountText:_.s$(b),publishedTimeText:void 0,thumbnailOverlays:t}}if(!U$(B.policyEntity)){Y=B.policyEntity&&!CxN(B.policyEntity)?_.Wz("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Wz("TRANSFER_FAILED",{},"Download failed");var J;if((J=B.policyEntity)==null?0:J.shortMessageForDisabledAction)Y=B.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:uF(Y),publishedTimeText:void 0,thumbnailOverlays:t}}if(R==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.s$(_.Wz("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:t};if(R==="TRANSFER_STATE_FAILED"||R==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.s$(_.Wz("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:t};if(R==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(J=_.Wz("WAITING_TO_DOWNLOAD"),e==="DOWNLOAD_STATE_PAUSED"&&(J=_.Wz("DOWNLOAD_PAUSED",{},"Download paused")),J))return{shortViewCountText:_.s$(J),publishedTimeText:void 0,thumbnailOverlays:t};if(_.NR(R))return B=Math.floor(V*100).toString(),{shortViewCountText:_.s$(_.Wz("DOWNLOADING_PERCENT",{percent:B},"Downloading... "+B+"%")),publishedTimeText:void 0,thumbnailOverlays:t};R=void 0;B.videoEntity.publishedTimestampMillis&&
(R=new Date,X&&(R=new Date(X)),R=uF(Hyq(new Date(Number(B.videoEntity.publishedTimestampMillis)),R)));X=[];_.k("kevlar_woffle_badge_killswitch")||(X=[{metadataBadgeRenderer:{label:_.Wz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var G;B=uF((G=B.videoEntity.localizedStrings)==null?void 0:G.viewCount);return Object.assign({},Y?{shortViewCountText:void 0}:{shortViewCountText:B},Y?{}:{publishedTimeText:R},{badges:X,thumbnailOverlays:t})};
zVY=function(B,R){B=B===void 0?l0p:B;switch(R.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:R.payload.playlistId,inviteLinkURL:R.payload.inviteLinkUrl};default:return B}};
dyY=function(B,R){B=B===void 0?a0S:B;switch(R.type){case "SET_CURRENT_FORM_ID":return R=R.payload.formId,B.currentFormId===R?B:{currentFormId:R,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var V=R.payload;R=V.groupId;V=V.command;if(B.currentFormId){var e=Object.assign({},B.commandsMap);e[R]=V;B=Object.assign({},B,{commandsMap:e})}return B;case "RESET_COMMAND_MAP":return Object.assign({},B,{commandsMap:{}});default:return B}};
T3p=function(B,R){B=B===void 0?wCA:B;switch(R.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},B,{guideIsExpanded:R.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},B,{scrollAtTop:R.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},B,{guideIsVisibleButNotPersistent:R.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},B,{miniplayerIsActive:R.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},B,{singleOptionSurveyIsActive:R.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},B,{slimlineSurveyRatingSelectedIndex:R.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},B,{richGridMiniMode:R.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},B,{richGridItemsPerRow:R.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},B,{richGridSlimItemsPerRow:R.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},B,{richGridContainerWidth:R.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},B,{richGridStyle:R.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},B,{currentPageType:R.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},B,{inlinePreviewIsActive:R.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},B,{inlinePreviewIsEnabled:R.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},B,{darkModeIsEnabled:R.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
B,{miniplayerPlaybackState:R.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},B,{tabGesturesIsActive:R.payload});case "SET_ONLINE_STATUS":return Object.assign({},B,{isOnline:R.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},B,{chipBarIsSticky:R.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},B,{frostedGlassMode:R.payload});default:return B}};
Lfo=function(B,R){B=B===void 0?xy5:B;switch(R.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},B,{transcription:R.payload});case "SET_OVERLAY_STATE":return Object.assign({},B,{overlay:R.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return B}};
s8x=function(){return WJ(Object.assign({},{continuation:vJ5,entities:Sjq,download:KfN,reportChannelAbuse:I0q,share:EJN,talkToRecs:Q8o,ui:T3p,voiceSearch:Lfo,watch:qp5,ypc:cyd,shorts:Ayd,radioButtonGroup:dyY,collabInviteLink:zVY},iyY))};
gJK=function(){return _.k("web_player_entities_middleware")?new r6(s8x(),[Ff5,ry5]):new r6(s8x(),[Ff5])};
_.g6=function(){ZyI||(ZyI=gJK());return ZyI};
myN=function(B,R,V){if(B.length)return{titleText:_.n0(R!=null?R:_.Wz("DOWNLOADS",void 0,"Downloads")),contents:B.map(function(e){var X=e.videoEntity;e={videoId:X.videoId,title:uF(X.title),shortBylineText:uF(e.channelEntity.title),thumbnail:X.thumbnail};var Y=X.videoId?vk(_.g6().getState(),X.videoId):0;X.videoId&&V?e.navigationEndpoint=_.Pz(X.videoId,V,void 0,void 0,Y):X.videoId&&(e.navigationEndpoint=Ogd(X.videoId,Y,X.lengthSeconds));X.lengthSeconds&&(e.thumbnailOverlays=M8S(X.lengthSeconds,Y));return{playlistPanelVideoRenderer:e}}),
totalVideos:B.length}};
$yI=function(B){return(B=(0,_.M_.getValueByKeys)(B,"playlistId"))?{playlistId:B}:null};
CRA=function(){return{}};
PR_=function(B,R){return new _.be(function(V,e){B.then(function(X){if(X){if(X=R(X))return V(X);e()}},e)})};
nJA=function(B){var R,V,e,X=(R=B.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(e=V.autoplay)==null?void 0:e.autoplay,Y,t,b;R=(Y=B.contents)==null?void 0:(t=Y.twoColumnWatchNextResults)==null?void 0:(b=t.playlist)==null?void 0:b.playlist;return X&&R&&R.playlistId?{rawResponse:B,autoplayRenderer:X,playlistPanelRenderer:R,playlistId:R.playlistId}:null};
Oyd=function(B){var R=R===void 0?"UNKNOWN_INTERFACE":R;if(B.length===1)return B[0];var V=u1x[R];if(V){V=new RegExp(V);for(var e=_.h(B),X=e.next();!X.done;X=e.next())if(X=X.value,V.exec(X))return X}var Y=[];Object.entries(u1x).forEach(function(t){var b=_.h(t);t=b.next().value;b=b.next().value;R!==t&&Y.push(b)});
V=new RegExp(Y.join("|"));B.sort(function(t,b){return t.length-b.length});
e=_.h(B);for(X=e.next();!X.done;X=e.next())if(X=X.value,!V.exec(X))return X;return B[0]};
_.Zz=function(B){return"/youtubei/v1/"+Oyd(B)};
_.mP=function(B){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:B}}}}};
_.$G=function(B){return _.mP(_.s$(B))};
oZp=function(B,R){var V={mode:"NORMAL"};B&&(V.autoplayVideo=B.navigationEndpoint,V.nextButtonVideo=B.navigationEndpoint);R&&(V.previousButtonVideo=R.navigationEndpoint);return V};
VSp=function(B,R,V){if(!V||!V.sets)return{sets:[oZp(B,R)]};var e=V.sets.find(function(t){return t.mode==="NORMAL"}),X=(0,_.M_.unsafeClone)(V);
if(!e)return X.sets.push(oZp(B,R)),X;if(!B)return V;e=_.M_.getValueByKeys.apply(null,[e].concat(_.MI(BMd)));var Y=_.M_.getValueByKeys.apply(null,[B].concat(_.MI(Riq)));if(e===Y)return V;X.sets=X.sets.filter(function(t){return t.mode!=="NORMAL"});
X.sets.push(oZp(B,R));return X};
eiZ=function(B){return!!B.playlistPanelVideoRenderer&&!B.playlistPanelVideoRenderer.unplayableText};
XDY=function(B){return!!B.playlistPanelVideoRenderer&&!!B.playlistPanelVideoRenderer.title};
pDu=function(B,R){if(R.contents&&!(B>=R.contents.length)&&(B=R.contents.slice(B).find(eiZ)))return B.playlistPanelVideoRenderer};
Ybd=function(B,R){if(R.contents)return(R=R.contents.find(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId===B}))?R.playlistPanelVideoRenderer:void 0};
hix=function(B,R){return R.contents?R.contents.findIndex(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId===B}):-1};
tSd=function(B,R){return R.contents?R.contents.findIndex(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.playlistSetVideoId===B}):-1};
WD5=function(B,R){B.contents&&R!==-1&&B.contents.splice(R,1).length===1&&B.totalVideos!==void 0&&(--B.totalVideos,delete B.videoCountText)};
_.bFu=function(B){var R=[];if(!B||!B.contents)return R;B=_.h(B.contents);for(var V=B.next();!V.done;V=B.next())V=V.value,V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId&&R.push(V.playlistPanelVideoRenderer.videoId);return R};
_.Jpq=function(B){if(B&&B.contents)return(B=B.contents.find(function(R){return!!R.playlistPanelVideoRenderer&&!!R.playlistPanelVideoRenderer.selected})||B.contents[B.currentIndex])?B.playlistPanelVideoRenderer:void 0};
jDd=function(B,R,V,e,X,Y,t){X=X===void 0?!1:X;Y=Y===void 0?!1:Y;t=t===void 0?!1:t;if(B.contents&&B.contents.length!==0){e&&(B.contents=B.contents.filter(e));e=B.contents.length;for(var b=0;b<e;b++){var J=B.contents[b].playlistPanelVideoRenderer;J&&(b===R?(Y&&delete J.menu,J.indexText=_.s$("\u25b6")):X||B.isInfinite||J.indexText===void 0?delete J.indexText:J.indexText=_.s$((b+1+V).toString()))}B.currentIndex=R+V;t&&(delete B.videoCountText,B.totalVideos=e)}};
_.C7=function(B){B=UqA(B);if(B){var R=B.length;var V=-98%R;V<0&&(V=R+V);B=B.slice(R-V)+B.slice(0,R-V)}else B="";V="";for(R=0;R<B.length&&B[R]!==NMq;R++)V+=B[R];return V};
_.GkY=function(B,R){var V=document.body;R=R===void 0?function(b){return b}:R;
var e,X=null;B=_.h(B);for(e=B.next();!e.done;e=B.next()){var Y=e.value;e=document.createElement("div");X||(X=e);var t=Y[0];Y=Y[1];t&&(e.id=R(t));if(Y)for(t=_.h(Y),Y=t.next();!Y.done;Y=t.next())e.classList.add(R(Y.value));V.appendChild(e);V=e}return[X,V]};
yp_=function(B,R){for(var V="",e=0;e<R;e++)V+=B.charAt(Math.floor(Math.random()*B.length));return V};
Pk=function(B){return yp_("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",B)};
n7=function(B){return yp_("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",B)};
uz=function(B){return yp_("0123456789",B)};
O$=function(){var B=performance.now(),R=new Date;var V="2."+R.getFullYear()+String(R.getMonth()+1).padStart(2,"0")+String(R.getDate()).padStart(2,"0");for(var e,X=Math.floor(Math.random()*11)+15,Y=[],t=0;t<X;t++)Y.push(Math.floor(Math.random()*26476865)+24547720);e=Y.join(",");var b=Pk(10),J=Pk(100),G=Pk(102),y=Pk(106),S=Pk(108),M=Pk(11),f=Pk(1140),z=Pk(123),T=Pk(14),L=Pk(16),Q=Pk(1900),q=Pk(23),m=Pk(26),g=Pk(34),Vu=Pk(397),n=Pk(44),Yd=Pk(5),kd=Pk(72),a5=Pk(74),lo=Pk(75),io=Pk(88),vd=Pk(91),cd="rr3---sn-hgn7yn7e rr5---sn-hgn7rnls rr1---sn-t0a7lnee rr1---sn-ntqe6nel rr2---sn-q4flrnel rr5---sn-5hne6nz6 rr5---sn-q4fzen7r rr4---sn-q4fl6nsy rr3---sn-q4fl6nlz rr1---sn-t0a7ln7d rr2---sn-5hneknek rr4---sn-5hne6nsd rr4---sn-ntq7yns7 rr4---sn-hgn7rn7y rr4---sn-5hne6nzd rr4---sn-ntq7yned rr1---sn-q4fl6ns7 rr3---sn-hgn7rn7r rr4---sn-ntqe6nee rr1---sn-5hne6nsz".split(" ");
var ES=cd[Math.floor(Math.random()*cd.length)];var $d=(new Date("2010-01-01")).getTime();var Eo=(new Date($d+Math.random()*((new Date).getTime()-$d))).toISOString().split("T")[0];for(var GG,eJ=[],pR=0;pR<4;pR++)eJ.push(Math.floor(Math.random()*100));GG=eJ.join(".");var d4=Number(uz(5)),W2=Number(uz(6)),By=Number(uz(7)),DY=Number(uz(9)),hA=uz(1),fR=uz(10),Qv=uz(16),i4=uz(19),TG=uz(2),ZS=uz(20),$b=uz(21),DS=uz(3),CZ=uz(4),k5=uz(5),tr=uz(6),l_=uz(7),S2=uz(8),tD=uz(9);var J$=yp_("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var s4=[n7(5),n7(5),n7(5)].join("%2C"),kb=[uz(3),uz(5),uz(5)].join("%2C"),Dh=n7(0),so=n7(1),we=n7(10),Z7=n7(108),Po=n7(11),dz=n7(12),dk=n7(13),gV=n7(14),Ez=n7(15),rc=n7(16),jO=n7(17),MY=n7(18),Qu=n7(19),Fp=n7(2),NT=n7(20),e2=n7(22),Lf=n7(23),b4=n7(24),H2=n7(266),SJ=n7(3),Jr=n7(30),zX=n7(34),hh=n7(35),DM=n7(36),Cd=n7(4),Q5=n7(40),Pn=n7(43),q_=n7(47),f7=n7(5),nx=n7(6),nZ=n7(7),Nj=n7(75),fe=n7(8),Kf=n7(80),Xf=n7(9),Xx="https://www."+n7(12)+".com",sZ={},kU={},ss={},mjZ={},kn={},Zn={},mS={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:e}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:V},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+n7(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:V},{key:"client.name",value:"WEB"},{key:"client.fexp",value:e}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:$b+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+n7(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Q5,ypcGetOfflineUpsellEndpoint:{params:Kf}},trackingParams:hh+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&cnr="+TG+"&ratebypass=yes&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&c=WEB&txp="+l_+"&n="+L+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:W2,width:640,height:360,lastModified:Qv,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:l_,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+kb+"&mn="+
s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&cnr="+TG+"&ratebypass=yes&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&c=WEB&txp="+l_+"&n="+L+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Z7+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:W2,width:1280,
height:720,lastModified:Qv,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:l_,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+kb+"&mn="+s4+"&ms="+
s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+tD+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:By,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:tD,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:By,approxDurationMs:l_},{itag:248,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+kb+"&mn="+s4+"&ms="+s4+"&mv="+
so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fwebm&ns="+b4+"&gir="+SJ+"&clen="+tD+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:By,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:tD,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:By,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:399,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+tD+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:By,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:tD,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:By,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:136,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+tD+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:By,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:tD,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:W2,approxDurationMs:l_},{itag:247,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+kb+"&mn="+
s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fwebm&ns="+b4+"&gir="+SJ+"&clen="+tD+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:By,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:tD,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:W2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:398,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+tD+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:By,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:tD,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:W2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:135,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:W2,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:W2,approxDurationMs:l_},{itag:244,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+kb+"&mn="+
s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fwebm&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z7+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:W2,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:W2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:397,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:W2,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:W2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:134,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:W2,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:W2,highReplication:!0,approxDurationMs:l_},{itag:243,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fwebm&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:W2,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:W2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:396,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:W2,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:W2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:133,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:W2,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:W2,approxDurationMs:l_},{itag:242,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+kb+"&mn="+
s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fwebm&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:W2,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:W2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:395,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:W2,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:W2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:160,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:W2,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:d4,approxDurationMs:l_},{itag:278,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+kb+"&mn="+
s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fwebm&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/webm; codecs="vp9"',bitrate:W2,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:d4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:394,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&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="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=video%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:d4,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:d4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:l_},{itag:140,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=audio%2Fmp4&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:W2,
initRange:{start:"0",end:"631"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:W2,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:l_,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+
TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=audio%2Fwebm&ns="+b4+"&gir="+SJ+"&clen="+l_+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'audio/webm; codecs="opus"',bitrate:d4,initRange:{start:"0",end:"265"},indexRange:{start:DS,
end:CZ},lastModified:Qv,contentLength:l_,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:d4,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:l_,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=audio%2Fwebm&ns="+
b4+"&gir="+SJ+"&clen="+l_+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'audio/webm; codecs="opus"',bitrate:d4,initRange:{start:"0",end:"265"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:l_,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:d4,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:l_,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+ES+".googlevideo.com/videoplayback?expire="+fR+"&ei="+q+"&ip="+GG+"&id=o-AF"+Pn+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+kb+"&mn="+s4+"&ms="+s4+"&mv="+so+"&mvi="+hA+"&pl="+TG+"&initcwndbps="+l_+"&siu="+hA+"&spc="+n+"&vprv="+hA+"&svpuc="+hA+"&mime=audio%2Fwebm&ns="+b4+"&gir="+SJ+"&clen="+S2+"&dur="+S2+"&lmt="+Qv+"&mt="+fR+"&fvip=3&keepalive="+SJ+"&c=WEB&txp="+
l_+"&n="+rc+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+S,mimeType:'audio/webm; codecs="opus"',bitrate:W2,initRange:{start:"0",end:"265"},indexRange:{start:DS,end:CZ},lastModified:Qv,contentLength:S2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:W2,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:l_,audioSampleRate:"48000",audioChannels:2,
loudnessDb:-3.7800007}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5,17,1"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"https://s.youtube.com/api/stats/playback?cl="+tD+"&docid="+M+"&ei="+q+"&feature="+b+"&fexp="+Dh+"&ns="+Fp+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+so+"&el="+we+"&len="+CZ+"&of="+e2+
"&uga="+TG+"&vm="+H2},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+tD+"&docid="+M+"&ei="+q+"&feature="+b+"&fexp="+Dh+"&ns="+Fp+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+so+"&el="+we+"&len="+CZ+"&of="+e2+"&uga="+TG+"&vm="+H2},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+tD+"&docid="+M+"&ei="+q+"&feature="+b+"&fexp="+Dh+"&ns="+Fp+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
so+"&el="+we+"&len="+CZ+"&of="+e2+"&uga="+TG+"&vm="+H2},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+q+"&m="+io+"&oid="+e2+"&plid="+L+"&pltype="+nZ+"&ptchn="+e2+"&ptk="+T+"&video_id="+M},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+tD+"&docid="+M+"&ei="+q+"&event="+gV+"&feature="+b+"&fexp="+Dh+"&ns="+Fp+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+so},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+M+"&ei="+q+"&feature="+
b+"&len="+CZ+"&ns="+Fp+"&plid="+L+"&ver="+hA,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+M+"&caps="+SJ+"&opi="+tD+"&xoaf="+hA+"&hl="+Fp+"&ip="+GG+"&ipbits="+hA+"&expire="+fR+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+GG+"&key="+SJ+"&lang="+Yd,name:{simpleText:nZ},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+M+"&caps="+SJ+"&opi="+tD+"&xoaf="+hA+"&hl="+Fp+"&ip="+GG+"&ipbits="+hA+"&expire="+fR+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+GG+"&key="+SJ+"&kind="+SJ+"&lang="+Fp,name:{simpleText:MY},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:Po,title:rc,lengthSeconds:"1155",keywords:[Po,nZ,rc,fe],
channelId:b4,isOwnerViewing:!1,shortDescription:NT,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+M+"/hqdefault.jpg?sqp=-oaymwE"+DM+"G&rs="+zX,width:168,height:94},{url:"https://i.ytimg.com/vi/"+M+"/hqdefault.jpg?sqp=-oaymwE"+DM+"G&rs="+zX,width:196,height:110},{url:"https://i.ytimg.com/vi/"+M+"/hqdefault.jpg?sqp=-oaymwE"+DM+"G&rs="+g,width:246,height:138},{url:"https://i.ytimg.com/vi/"+M+"/hqdefault.jpg?sqp=-oaymwE"+DM+"G&rs="+g,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
M+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:l_,author:dk,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:l_,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+e2+"/featured_channel.jpg?v="+fe,width:40,height:40}]},trackingParams:hh+"=",navigationEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"/channel/"+b4,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:b4}},channelName:dk,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:MY}]},subscribed:!1,enabled:!0,type:"FREE",channelId:b4,showPreferences:!1,subscribedButtonText:{runs:[{text:nx}]},unsubscribedButtonText:{runs:[{text:dz}]},trackingParams:hh+"=",unsubscribeButtonText:{runs:[{text:Cd}]},serviceEndpoints:[{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[b4],params:fe}},{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Q5,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:hh+"=",dialogMessages:[{runs:[{text:Cd},{text:gV},{text:f7}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:nx}]},serviceEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[b4],params:fe}},accessibility:{label:NT},trackingParams:hh+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:nZ}]},accessibility:{label:Cd},trackingParams:hh+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:rc}},unsubscribeAccessibility:{accessibilityData:{label:Cd}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:S2},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[b4],params:fe}},unsubscribeCommand:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[b4],params:fe}},addToWatchLaterCommand:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Po,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Po}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+M+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+DM+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
M+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Po,width:1280,height:720},title:{simpleText:fe},description:{simpleText:nx},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+MY,externalChannelId:b4,isFamilySafe:!0,availableCountries:"AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "),
isUnlisted:!1,hasYpcMetadata:!1,viewCount:l_,category:"Travel & Events",publishDate:Eo,ownerChannelName:dk,uploadDate:Eo}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:NT},trackingParams:hh+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Q5,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:hh+"="}}],headerText:{simpleText:NT},icon:{infoCardIconRenderer:{trackingParams:hh+"="}},closeButton:{infoCardIconRenderer:{trackingParams:hh+"="}},trackingParams:hh+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:hh+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Po+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:J$,interpreterSafeUrl:(sZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Jr+".js",sZ),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:NT},{text:dz,bold:!0}]},endpoint:{clickTrackingParams:Q5,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:hh+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Cd}]},actionButton:{buttonRenderer:{text:{runs:[{text:fe}]},navigationEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+M,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
M,target:"TARGET_NEW_WINDOW"}},trackingParams:hh+"="}},trackingParams:hh+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+kd+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+kd+"=s400-c-k-c0x00ffffff-no-rj",width:400,height:400}]},icon:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/annotations/youtube.png"}]},left:.030214407,width:.15438597,top:.37587035,aspectRatio:1,
startMs:l_,endMs:l_,title:{accessibility:{accessibilityData:{label:dz}},simpleText:f7},metadata:{simpleText:Ez},callToAction:{simpleText:dz},dismiss:{simpleText:Cd},endpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"/channel/"+b4,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:b4}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Xf}]},subscribed:!1,enabled:!0,type:"FREE",channelId:b4,showPreferences:!1,
subscribedButtonText:{runs:[{text:dk}]},unsubscribedButtonText:{runs:[{text:nx}]},trackingParams:hh+"=",unsubscribeButtonText:{runs:[{text:MY}]},serviceEndpoints:[{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[b4],params:fe}},{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Q5,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:hh+
"=",dialogMessages:[{runs:[{text:Po},{text:dz},{text:Cd}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:MY}]},serviceEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[b4],params:fe}},accessibility:{label:gV},trackingParams:hh+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ez}]},
accessibility:{label:gV},trackingParams:hh+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Po}},unsubscribeAccessibility:{accessibilityData:{label:dz}}}},trackingParams:hh+"=",isSubscribe:!0,id:ZS}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+M+"/hqdefault.jpg?sqp=-oaymwE"+DM+"G&rs="+g,width:168,height:94},{url:"https://i.ytimg.com/vi/"+M+"/hqdefault.jpg?sqp=-oaymwE"+DM+"G&rs="+zX,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+M+"/hqdefault.jpg?sqp=-oaymwE"+DM+"G&rs="+g,width:246,height:138},{url:"https://i.ytimg.com/vi/"+M+"/hqdefault.jpg?sqp=-oaymwE"+DM+"G&rs="+g,width:336,height:188},{url:"https://i.ytimg.com/vi/"+M+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:l_,endMs:l_,title:{accessibility:{accessibilityData:{label:MY}},simpleText:f7},metadata:{simpleText:Ez},endpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Po,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Po,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+ES+".googlevideo.com/videoplayback?source=youtube&oeis="+hA+"&c=WEB&oad="+CZ+"&ovd="+CZ+"&oaad="+k5+"&oavd="+k5+"&ocs="+DS+"&oewis="+hA+"&oputc="+hA+"&ofpcc="+hA+"&siu="+hA+"&msp="+hA+"&odepv="+hA+
"&id=o-AF"+Pn+"&ip="+GG+"&initcwndbps="+l_+"&mt="+fR+"&oweuc="+Dh}}}}},trackingParams:hh+"=",id:ZS,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:rc}},simpleText:jO},style:"DEFAULT"}}]}}],startMs:l_,trackingParams:hh+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:hA,offsetEndMilliseconds:k5},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tD+";dc_trk_cid="+tD+";dc_dbm_token="+S+";ord="+fR+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";dc_rui="+hA+";dc_exteid="+ZS+";dc_av="+DS+";dc_sk="+hA+";dc_ctype="+TG+";dc_ref=http://www.youtube.com/video/"+Po+";dc_pubid="+hA+";dc_btype=23?gclid="+vd+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+hA+"&ns="+hA+"&event="+hA+"&device="+hA+"&content_v="+M+"&el="+we+"&ei="+q+"&devicever="+V+"&bti="+l_+"&format="+tr+"&break_type="+hA+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+hA+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+GG+"&slot_pos="+hA+"&slot_len="+hA+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+kb+"&ad_len="+k5+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Po+"&aqi="+q+"&ad_rmp="+hA+"&sli="+hA}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+
";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+tr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+l_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
f+"____________"+z+"AxAA&sigh="+M+"&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"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&ctype="+DS+"&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"+
f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_engaged_view&ctype="+DS+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+tr+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tD+";dc_trk_cid="+tD+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";ord="+tD+";dc_rui="+hA+";dc_exteid="+i4+";dc_av="+hA+";dc_sk="+hA+";dc_ctype="+TG+";dc_pubid="+hA+";dc_btype=3?gclid="+vd+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+Lf+"&ad_cpn=[AD_CPN]&id="+nx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+nx+"&dc_pubid="+hA+"&dc_exteid="+ZS+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+Lf+"&ad_cpn=[AD_CPN]&id="+nx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+hA},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+nx+"&avm="+hA+"&dc_pubid="+hA+"&dc_exteid="+
ZS+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&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="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
G+"&sig="+Lf+"&ad_cpn=[AD_CPN]&id="+nx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+hA},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+nx+"&dc_pubid="+hA+"&dc_exteid="+ZS+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+tr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+tr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Q5,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+
DS+"&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/"+M+"/mqdefault.jpg",width:320,height:180}]},trackingParams:hh+"="},trackingParams:hh+
"=",templatedCountdown:{templatedAdText:{text:nx,isTemplated:!0,trackingParams:hh+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Xf,isTemplated:!1,trackingParams:hh+"="},trackingParams:hh+"="}},trackingParams:hh+"=",skipOffsetMilliseconds:5E3}},trackingParams:hh+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:fe},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hh+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:dz,isTemplated:!1,trackingParams:hh+"="},trackingParams:hh+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:MY,isTemplated:!0,trackingParams:hh+"="}},trackingParams:hh+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Q5,openPopupAction:{popup:{aboutThisAdRenderer:{url:(kU.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Fp+"&origin=www.youtube.com&ata_theme="+Cd,kU),trackingParams:hh+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:hh+"="}},hoverText:{runs:[{text:Xf}]},trackingParams:hh+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+q_+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:hh+"="},headline:{text:MY,isTemplated:!1,trackingParams:hh+"="},description:{text:nZ,
trackingParams:hh+"="},actionButton:{buttonRenderer:{text:{simpleText:gV},navigationEndpoint:{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tD+";dc_trk_cid="+tD+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";ord="+tD+";dc_rui="+hA+";dc_exteid="+ZS+";dc_av="+hA+";dc_sk="+hA+";dc_ctype="+TG+";dc_pubid="+hA+";dc_btype=3?gclid="+vd+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hh+"="}},startMs:hA,trackingParams:hh+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:f7},elementId:Po}},elementId:dk,trackingParams:hh+"=",legacyInfoCardVastExtension:rc,sodarExtensionData:{siub:nZ,bgub:Ez,scs:Po,bgp:dz},externalVideoId:Po,adLayoutLoggingData:{serializedAdServingDataEntry:NT},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+q_+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:hh+"="},
headline:{text:Po,isTemplated:!1,trackingParams:hh+"="},description:{text:nZ,isTemplated:!1,trackingParams:hh+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:nx},navigationEndpoint:{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tD+";dc_trk_cid="+tD+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";ord="+tD+";dc_rui="+hA+";dc_exteid="+
ZS+";dc_av="+hA+";dc_sk="+hA+";dc_ctype="+TG+";dc_pubid="+hA+";dc_btype=3?gclid="+vd+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+
hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hh+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:hh+"="}},navigationEndpoint:{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tD+";dc_trk_cid="+
tD+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";ord="+tD+";dc_rui="+hA+";dc_exteid="+ZS+";dc_av="+hA+";dc_sk="+hA+";dc_ctype="+TG+";dc_pubid="+hA+";dc_btype=3?gclid="+vd+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+
z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hh+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:hh+"="},abandonCommands:{commands:[{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&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="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+
hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Q5,commandExecutorCommand:{commands:[{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:f7,isTemplated:!1,trackingParams:hh+
"="},trackingParams:hh+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Po},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+l_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"1ID7Gdwk2vV7OZ1A"}},
{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N1957659.127733GOOGLE-YOUTUBE/B29940965.366940103;dc_trk_aid="+tD+";dc_trk_cid="+tD+";ord="+fR+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";dc_rui="+hA+";dc_exteid="+ZS+";dc_av="+DS+";dc_sk="+hA+";dc_ctype="+TG+";dc_ref=http://www.youtube.com/video/"+Po+";dc_pubid="+hA+";dc_btype=23?gclid="+vd+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+hA+"&ns="+hA+"&event="+hA+"&device="+hA+"&content_v="+M+"&el="+we+"&ei="+q+"&devicever="+V+"&bti="+l_+"&format="+tr+"&break_type="+hA+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+hA+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+GG+"&slot_pos="+hA+"&slot_len="+hA+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
kb+"&ad_len="+k5+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Po+"&aqi="+q+"&ad_rmp="+hA+"&sli="+hA}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+tr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+
m+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+l_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&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"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&ctype="+DS+"&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"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_engaged_view&ctype="+DS+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+tr+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+Lf+"&ad_cpn=[AD_CPN]&id="+
nx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+nx+"&dc_pubid="+hA+"&dc_exteid="+ZS+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+
"&sig="+Lf+"&ad_cpn=[AD_CPN]&id="+nx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+hA},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+nx+"&avm="+hA+"&dc_pubid="+hA+"&dc_exteid="+ZS+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&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="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+G+"&sig="+Lf+"&ad_cpn=[AD_CPN]&id="+nx+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+hA},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+nx+"&dc_pubid="+hA+"&dc_exteid="+ZS+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+tr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+tr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+
DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&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/"+M+"/mqdefault.jpg",width:320,height:180}]},trackingParams:hh+"="},trackingParams:hh+"=",templatedCountdown:{templatedAdText:{text:NT,isTemplated:!0,trackingParams:hh+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:f7,isTemplated:!1,trackingParams:hh+"="},trackingParams:hh+"="}},
trackingParams:hh+"=",skipOffsetMilliseconds:5E3}},trackingParams:hh+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:jO},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hh+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:fe,isTemplated:!1,trackingParams:hh+"="},trackingParams:hh+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Xf,
isTemplated:!0,trackingParams:hh+"="}},trackingParams:hh+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Q5,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ss.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Fp+"&origin=www.youtube.com&ata_theme="+Cd,ss),trackingParams:hh+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:hh+"="}},hoverText:{runs:[{text:Xf}]},trackingParams:hh+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+a5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:hh+"="},headline:{text:jO,isTemplated:!1,trackingParams:hh+"="},description:{text:rc,trackingParams:hh+"="},actionButton:{buttonRenderer:{text:{simpleText:nZ},navigationEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hh+"="}},startMs:hA,trackingParams:hh+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:we},elementId:dz}},elementId:f7,trackingParams:hh+"=",legacyInfoCardVastExtension:Qu,sodarExtensionData:{siub:rc,bgub:jO,scs:Cd,bgp:f7},externalVideoId:Po,adLayoutLoggingData:{serializedAdServingDataEntry:NT},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+a5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:hh+"="},headline:{text:rc,
isTemplated:!1,trackingParams:hh+"="},description:{text:dz,isTemplated:!1,trackingParams:hh+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Ez},navigationEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hh+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:hh+"="}},navigationEndpoint:{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+
hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hh+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:hh+"="},abandonCommands:{commands:[{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&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="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+TG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Q5,commandExecutorCommand:{commands:[{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:we,isTemplated:!1,trackingParams:hh+"="},trackingParams:hh+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:fe},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hA+";dc_exteid="+ZS+";met="+hA+";ecn"+hA+"="+hA+";etm1="+hA+";eid1="+
l_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:nx}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NT}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:k5,offsetEndMilliseconds:tr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+TG+"&token=ALHj"+Vu+"&index="+hA+"&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="+V+"&m_pos_ms="+k5}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nZ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:tr,offsetEndMilliseconds:tr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+DS+"&token=ALHj"+Vu+"&index="+hA+"&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="+
V+"&m_pos_ms="+tr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nZ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:tr,offsetEndMilliseconds:tr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+DS+"&token=ALHj"+Vu+"&index="+hA+"&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="+
V+"&m_pos_ms="+tr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:tr,offsetEndMilliseconds:tr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+DS+"&token=ALHj"+Vu+"&index="+hA+"&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="+
V+"&m_pos_ms="+tr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fe}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:tr,offsetEndMilliseconds:TG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+DS+"&token=ALHj"+Vu+"&index="+hA+"&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="+
V+"&m_pos_ms="+tr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Po}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:TG,offsetEndMilliseconds:TG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+q+"&m_pos="+TG+"&token=ALHj"+Vu+"&index="+hA+"&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="+
V+"&m_pos_ms="+TG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Qu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:f7,isTemplated:!1,trackingParams:hh+"="},description:{text:we,isTemplated:!1,trackingParams:hh+"="},actionButton:{buttonRenderer:{text:{simpleText:NT},navigationEndpoint:{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tD+";dc_trk_cid="+tD+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";ord="+tD+";dc_rui="+hA+";dc_exteid="+ZS+";dc_av="+hA+";dc_sk="+hA+";dc_ctype="+TG+";dc_pubid="+hA+";dc_btype=3?gclid="+vd+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hh+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+q_+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:hh+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lo+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:hh+"="},navigationEndpoint:{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tD+";dc_trk_cid="+tD+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";ord="+tD+
";dc_rui="+hA+";dc_exteid="+ZS+";dc_av="+hA+";dc_sk="+hA+";dc_ctype="+TG+";dc_pubid="+hA+";dc_btype=3?gclid="+vd+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hh+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Q5,openPopupAction:{popup:{aboutThisAdRenderer:{url:(mjZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Fp+"&origin=www.youtube.com&ata_theme="+Cd,mjZ),trackingParams:hh+"="}},popupType:"DIALOG"}},trackingParams:hh+"="}},hoverText:{runs:[{text:Po}]},trackingParams:hh+"="}},adVideoId:Po,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:rc},associatedCompositePlayerBytesLayoutId:rc}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:dz}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:jO,isTemplated:!1,trackingParams:hh+"="},description:{text:Ez,isTemplated:!1,trackingParams:hh+"="},actionButton:{buttonRenderer:{text:{simpleText:MY},navigationEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+
z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hh+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+a5+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:hh+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Nj+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:hh+"="},navigationEndpoint:{clickTrackingParams:Q5,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+
hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hh+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Q5,openPopupAction:{popup:{aboutThisAdRenderer:{url:(kn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Fp+"&origin=www.youtube.com&ata_theme="+Cd,kn),trackingParams:hh+"="}},popupType:"DIALOG"}},trackingParams:hh+"="}},
hoverText:{runs:[{text:Po}]},trackingParams:hh+"="}},adVideoId:Po,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+Po+"&cid="+m+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nx},associatedCompositePlayerBytesLayoutId:rc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ez}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:dk,
isTemplated:!1,trackingParams:hh+"="},description:{text:we,isTemplated:!1,trackingParams:hh+"="},actionButton:{buttonRenderer:{text:{simpleText:NT},navigationEndpoint:{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tD+";dc_trk_cid="+tD+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";ord="+tD+";dc_rui="+hA+";dc_exteid="+ZS+";dc_av="+hA+";dc_sk="+hA+";dc_ctype="+
TG+";dc_pubid="+hA+";dc_btype=3?gclid="+vd+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+
g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:hh+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+q_+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:hh+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lo+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:hh+
"="},navigationEndpoint:{clickTrackingParams:Q5,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tD+";dc_trk_cid="+tD+";dc_dbm_token="+S+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hA+";ord="+tD+";dc_rui="+hA+";dc_exteid="+ZS+";dc_av="+hA+";dc_sk="+hA+";dc_ctype="+TG+";dc_pubid="+hA+";dc_btype=3?gclid="+vd+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+f+"____________"+z+"AxAA&ase=2&num="+hA+"&cid="+m+"&ad_cpn=%5BAD_CPN%5D&sig="+g+"&adurl="+Xx+"&label=video_click_to_advertiser_site&ctype="+DS+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:hh+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Q5,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Zn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Fp+"&origin=www.youtube.com&ata_theme="+Cd,Zn),trackingParams:hh+"="}},popupType:"DIALOG"}},trackingParams:hh+
"="}},hoverText:{runs:[{text:f7}]},trackingParams:hh+"="}},adVideoId:Po,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+f+"____________"+z+"AxAA&sigh="+M+"&cid="+m+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:fe},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:rc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fe}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Jr,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Jr,command:{innertubeCommand:{clickTrackingParams:Q5,ypcGetOfflineUpsellEndpoint:{params:Kf}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:hh+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:fR,nanos:DY}}}},LJN=JSON.stringify(mS),$C=performance.now()-B;return{objectRepresentation:mS,jsonRepresentation:LJN,generationTime:$C}};
SbK=function(B,R){if(B===R)return!0;if(!B||!R||typeof B!==typeof R)return!1;if(B instanceof Array&&R instanceof Array){if(B.length!==R.length)return!1;for(var V=0;V<B.length;V++)if(!SbK(B[V],R[V]))return!1;return!0}if(typeof B==="object"&&typeof R==="object"&&B&&R){for(V in B)if(!(V in R&&SbK(B[V],R[V])))return!1;for(var e in R)if(!(e in B))return!1;return!0}return!1};
_.B$=function(){if(!oG){oG=new Wn(new HFd);var B=_.RC("client_streamz_web_flush_count",-1);B!==-1&&(oG.invocationLimit=B)}return oG};
RG=function(B,R,V,e){if(B===R)return!0;if(Array.isArray(B)&&Array.isArray(R)){if(B.length!==R.length)return!1;for(var X=0;X<B.length;X++)if(!RG(B[X],R[X],V,e))return!1;return!0}if(B instanceof Set||R instanceof Set){if(B instanceof Set&&R instanceof Set){if(B.size!==R.size)return!1;e=_.h(B.values());for(X=e.next();!X.done;X=e.next())if(!R.has(X.value))return!1;return!0}return!1}if(B instanceof Function){if(e)return!0;B.name===""&&_.Tn(Error("Hf"),"ERROR");return!1}if(B instanceof Date&&R instanceof
Date)return B.getTime()===R.getTime();if(B instanceof Object&&R instanceof Object){if(MSN(B)&&MSN(R))try{return B.equals(R)}catch(t){_.Tn(Error("If`"+t),"ERROR")}X=Object.getOwnPropertyNames(B).filter(function(t){return V?B[t]!==void 0:!0});
var Y=Object.getOwnPropertyNames(R).filter(function(t){return V?R[t]!==void 0:!0});
if(X.length!==Y.length)return!1;X=_.h(X);for(Y=X.next();!Y.done;Y=X.next())if(Y=Y.value,!RG(B[Y],R[Y],V,e))return!1;return!0}return!1};
MSN=function(B){B=Object.getPrototypeOf(B).equals;return B instanceof Function&&B.length===1};
_.f2u=function(){return _.W(function(B){if(B.nextAddress==1)return kkS!==2?B.jumpTo(2):_.U(B,Dq5(),3);B.nextAddress!=2&&(kkS=B.yieldResult);return B.return(kkS)})};
_.a2d=function(){return _.W(function(B){if(B.nextAddress==1)return _.k("ab_pl_man")?l2u!==2?B.jumpTo(2):_.U(B,zi5(),3):B.return(1);B.nextAddress!=2&&(l2u=B.yieldResult);return B.return(l2u)})};
TM5=function(){return _.W(function(B){if(B.nextAddress==1)return _.k("ab_fk_sk_cl")?dqZ!==2?B.jumpTo(2):_.U(B,wDY(),3):B.return(1);B.nextAddress!=2&&(dqZ=B.yieldResult);return B.return(dqZ)})};
_.vZN=function(){return _.W(function(B){if(B.nextAddress==1)return _.k("ab_det_apb_b")?xqA!==2?B.jumpTo(2):_.U(B,LDd(),3):B.return(1);B.nextAddress!=2&&(xqA=B.yieldResult);return B.return(xqA)})};
EZu=function(){var B;return _.W(function(R){if(R.nextAddress==1)return _.U(R,Promise.all([_.f2u(),_.vZN(),_.a2d(),TM5()]),2);if(R.nextAddress!=3)return KDK()?R.return(!0):_.U(R,_.I2d(),3);B=R.yieldResult;return R.return(B===0)})};
KDK=function(){var B=!1,R=function(V,e){QDI.increment(e,V);V===0&&(B=!0)};
R(_.qb5(),"j.s_");R(kkS,"f.i_");R(xqA,"a.b_");R(l2u,"p.m_");R(dqZ,"i.f_");cpZ===2&&(cpZ=_.Apu(_.GkY(iFq)));R(cpZ,"e.h_");_.k("ks_det_gpbl")||R(_.sDA(),"p.i_");_.k("ks_get_o_pp")||R(_.FD_(),"g.o_");_.k("ab_deg_unex_thr")||R(_.rpZ(),"a.o_");R(gZx,"s.t_");_.k("ab_det_sc_inj_enf")&&R(_.ZFZ(),"s.i_");R(mqd,"d.p_");R(_.$qq(_.VV),"o.p_");R(_.CG_()===0?0:_.PGo(),"o.a_");return _.k("debug_sk_em_precheck")?!0:B};
ukp=function(){var B=[].concat(_.MI(nZp));try{var R=O$();B.push({jsonRepresentation:R.jsonRepresentation,objectRepresentation:R.objectRepresentation})}catch(V){B=[].concat(_.MI(nZp))}return B};
OF5=function(){var B=["adPlacements","adSlots"];try{return B.filter(function(){return!0}).length!==B.length?0:1}catch(R){return 0}};
_.FD_=function(){if(OF5()===0)return 0;var B=O$(),R=B.objectRepresentation,V=(0,_.M_.unsafeClone)(R),e=[];if(R&&typeof R==="object")for(var X in R)e.push(X);else return 4;B=B.objectRepresentation.adPlacements;if(!(B&&B.length>0))return 4;try{if(!SbK(e,Object.getOwnPropertyNames(R)))return 0}catch(Y){return 0}return SbK(V,R)?1:0};
_.$qq=function(B){var R=Object.getOwnPropertyNames(Object.prototype);B=_.h(B);for(var V=B.next();!V.done;V=B.next()){V=_.C7(V.value);for(var e=_.h(R),X=e.next();!X.done;X=e.next())if(V===X.value)return 0}return 1};
oEA=function(B){var R=_.C7(B[1]);if(B[0]===null)return R;B=B[0];for(var V={},e=0;e<B.length;e++){var X=_.C7(B[e]);if(e===0)V[X]=R;else{var Y={};Y[X]=V;V=Y}}return V};
_.CG_=function(){for(var B=_.ec,R=0;R<B.length;R++){var V=oEA(B[R]),e=[];e.push(V);if(e.length===0)return 0}return 1};
_.PGo=function(){for(var B=_.ec,R={},V=0;V<B.length;R={nJ2:void 0},V++){var e=[oEA(B[V])];R.nJ2=[];e.forEach(function(X){return function(Y){X.nJ2[X.nJ2.length]=Y}}(R));
if(R.nJ2.length===0)return 0}return 1};
_.qb5=function(){for(var B=_.h(ukp()),R=B.next();!R.done;R=B.next()){var V=R.value;R=V.jsonRepresentation;V=V.objectRepresentation;try{var e=JSON.parse(R);if(!RG(e,V,!1,!1))return 0}catch(X){return 0}}return 1};
_.ZFZ=function(){try{var B=_.eC("ab_det_sc_inj_val");B.length===1&&B[0]===""&&(B=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var R=document.querySelectorAll("script"),V=_.h(R),e=V.next();!e.done;e=V.next())for(var X=e.value,Y=_.h(B),t=Y.next();!t.done;t=Y.next()){var b=t.value;R=void 0;if((R=X.textContent)==null?0:R.includes(b))return 0}}catch(J){return 4}return 1};
_.I2d=function(){var B,R,V,e,X,Y,t;return _.W(function(b){switch(b.nextAddress){case 1:_.en(b,2),B=_.h(nZp),R=B.next();case 4:if(R.done)return b.return(1);e=V=R.value;X=e.jsonRepresentation;Y=e.objectRepresentation;return _.U(b,(new Response(X,{status:200})).json(),7);case 7:t=b.yieldResult;if(!RG(t,Y,!1,!1))return b.return(0);R=B.next();b.jumpTo(4);break;case 2:return _.WR(b),b.return(4)}})};
_.rpZ=function(){try{btoa("abc")}catch(B){return 0}return 1};
Dq5=function(){var B,R,V,e,X,Y,t,b,J,G,y;return _.W(function(S){switch(S.nextAddress){case 1:_.en(S,2),B=_.h(ukp()),R=B.next();case 4:if(R.done)return S.return(1);e=V=R.value;X=e.jsonRepresentation;Y=e.objectRepresentation;t=btoa(X);b="data:application/json;base64,"+t;J=new Request(b);Object.defineProperty(J,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(J,"method",{get:function(){return"POST"}});
Object.defineProperty(J,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(J,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(J,"body",{get:function(){return new ReadableStream}});
return _.U(S,fetch(J),7);case 7:return G=S.yieldResult,_.U(S,G.json(),8);case 8:y=S.yieldResult;if(!RG(y,Y,!1,!1))return S.return(0);R=B.next();S.jumpTo(4);break;case 2:return _.WR(S),S.return(4)}})};
_.Apu=function(B){var R=_.h(B);B=R.next().value;R=R.next().value;try{var V=document.createElement("div");document.body.appendChild(V);var e=getComputedStyle(V).display;document.body.removeChild(V);if(e==="none")return 4;var X=getComputedStyle(R).display==="none"?0:1;document.body.removeChild(B);return X}catch(Y){return 4}};
wDY=function(){var B,R,V;return _.W(function(e){B=new _.Xs;R=document.createElement("button");R.classList.add("ytp-ad-skip-button");R.style.opacity="0";R.style.height="0px";R.style.width="0px";R.style.padding="0px";R.style.border="none";V=function(){R.parentElement&&R.parentElement.removeChild(R)};
R.onclick=function(){B.resolve(0);V()};
document.body.appendChild(R);setTimeout(function(){V();B.resolve(1)},50);
return e.return(B.promise)})};
zi5=function(){var B,R,V,e,X,Y,t;return _.W(function(b){B=new _.Xs;R=document.createElement("ytd-player");try{document.body.prepend(R)}catch(J){return b.return(4)}V=function(){R.parentElement&&R.parentElement.removeChild(R)};
R.getElementsByTagName("div").length>0?e=R.getElementsByTagName("div")[0]:(e=document.createElement("div"),R.appendChild(e));X=document.createElement("div");e.appendChild(X);Y=document.createElement("video");t=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"});Y.src=_.j4(_.S4(t));Y.ontimeupdate=function(){V();B.resolve(0)};
X.appendChild(Y);Y.classList.add("html5-main-video");setTimeout(function(){X.classList.add("ad-interrupting")},200);
setTimeout(function(){V();B.resolve(1)},5E3);
return b.return(B.promise)})};
BYY=function(B,R){var V,e;return _.W(function(X){switch(X.nextAddress){case 1:V=[],e=0;case 2:if(!(e<3)){X.jumpTo(4);break}return _.U(X,fetch(B,{cache:"no-store",method:R}).then(function(Y){V.push(Y.status)}).catch(function(){V.push(-1)}),3);
case 3:e++;X.jumpTo(2);break;case 4:return X.return(V)}})};
R$5=function(B){return B.domainLookupStart===0&&B.domainLookupEnd===0&&B.connectStart===0&&B.connectEnd===0};
VjZ=function(B,R,V){V=V===void 0?"GET":V;var e,X,Y,t,b,J,G,y,S,M;return _.W(function(f){if(f.nextAddress==1)return _.U(f,Promise.all([BYY(B,V),BYY(R,V)]),2);e=f.yieldResult;X=_.h(e);Y=X.next().value;t=X.next().value;b=Y;J=t;if(Math.min.apply(Math,_.MI(J))!==Math.max.apply(Math,_.MI(J))||Math.min.apply(Math,_.MI(b))!==Math.max.apply(Math,_.MI(b)))return f.return(2);if(Math.min.apply(Math,_.MI(J))===Math.min.apply(Math,_.MI(b)))return f.return(1);y=(G=performance.getEntriesByName(B))==null?void 0:G[0];
M=(S=performance.getEntriesByName(R))==null?void 0:S[0];return y&&M?R$5(M)?f.return(1):R$5(y)?f.return(0):f.return(1):f.return(2)})};
LDd=function(){var B;return _.W(function(R){var V=[];var e;var X,Y,t;(X=e=(X=O$().objectRepresentation.streamingData)==null?void 0:(Y=X.formats)==null?void 0:(t=Y[0])==null?void 0:t.url)&&X&&!e.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(X=X.replace("initcwndbps","ctier=L&initcwndbps"),X=X.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),e={testUrl:X,baseUrl:e,method:"GET"}):e=void 0;e&&V.push(e);_.k("ab_net_tp_e")&&V.push({testUrl:_.R5.location.origin+"/ad_companion",baseUrl:_.R5.location.origin+
"/generate_204",method:"OPTIONS"});if(_.k("ad_net_pb_ab")){var b;b:{e=/api\/stats\/ads/;var J,G,y,S;X=(b=O$().objectRepresentation.adPlacements)==null?void 0:(J=b[0])==null?void 0:(G=J.adPlacementRenderer)==null?void 0:(y=G.renderer)==null?void 0:(S=y.linearAdSequenceRenderer)==null?void 0:S.linearAds;if(X!=null&&X.length&&(b=_.D(X[0],e$o))&&(b=b.pings,b!=null&&b.impressionPings))for(J=[].concat(_.MI(b.impressionPings)),b.progressPings&&(J=[].concat(_.MI(J),_.MI(b.progressPings))),b=_.h(J),J=b.next();!J.done;J=
b.next())if(J=J.value,J.baseUrl&&e.test(J.baseUrl)){b=J.baseUrl.replace("https://www.youtube.com","");break b}b=void 0}b&&V.push({testUrl:_.R5.location.origin+b,baseUrl:_.R5.location.origin+"/feed/download",method:"GET"})}if(_.k("ad_net_pb_pbp")){var M;b:{b=/api\/stats\/qoe/;if(J=O$().objectRepresentation.playbackTracking){G=[];G.push(J==null?void 0:(M=J.videostatsPlaybackUrl)==null?void 0:M.baseUrl);var f;G.push(J==null?void 0:(f=J.videostatsDelayplayUrl)==null?void 0:f.baseUrl);var z;G.push(J==
null?void 0:(z=J.videostatsWatchtimeUrl)==null?void 0:z.baseUrl);var T;G.push(J==null?void 0:(T=J.ptrackingUrl)==null?void 0:T.baseUrl);var L;G.push(J==null?void 0:(L=J.qoeUrl)==null?void 0:L.baseUrl);var Q;G.push(J==null?void 0:(Q=J.atrUrl)==null?void 0:Q.baseUrl);M=_.h(G);for(f=M.next();!f.done;f=M.next())if((f=f.value)&&b.test(f)){M=f.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}M=void 0}M&&V.push({testUrl:_.R5.location.origin+M,baseUrl:_.R5.location.origin+
"/feed/download",method:"GET"})}V=V.length!==0?V[Math.floor(Math.random()*V.length)]:void 0;return(B=V)?R.return(VjZ(B.testUrl,B.baseUrl,B.method)):R.return(4)})};
_.sDA=function(){if(_.R5.eHv===void 0||_.R5.eHv===null||typeof _.R5.eHv!=="function")return 2;try{return _.R5.eHv()===!0?0:1}catch(B){return 0}};
XPA=function(B){switch(B){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Ym(B,"unknown result type")}};
_.pPu=function(B,R){var V=Number(_.vE("CATSTAT",0));if(R.pml===void 0)return V;R=R.pml;B=XPA(B);return V&~(3<<R)|B<<R};
YHY=function(B){var R,V;if((B=(R=B.auxiliaryUi)==null?void 0:(V=R.messageRenderers)==null?void 0:V.bkaEnforcementMessageViewModel)&&B.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return B};
tjq=function(){for(var B=_.h(Object.values(_.h$I)),R=B.next();!R.done;R=B.next())R=R.value,R.isAsync&&R.pml&&_.LQ("CATSTAT",_.pPu(2,R))};
_.tz=function(B,R){B=_.pk("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",B);(R===void 0?0:R)?_.Wz_(B,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.YA(_.hz(),B,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Jd_=function(){if(!bjx){if(Polymer.Base){var B=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{B.apply(this,arguments)}catch(S){_.IP(S)}};
var R=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{R.apply(this,arguments)}catch(S){_.IP(S)}};
var V=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{V.apply(this,arguments)}catch(S){_.IP(S)}};
var e=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{e.apply(this,arguments)}catch(S){_.IP(S)}};
var X=Polymer.Base._listen,Y=new WeakMap;Polymer.Base._listen=function(S,M,f){var z=function(){try{f.apply(this,arguments)}catch(T){_.IP(T)}};
Y.set(f,z);X.call(this,S,M,z)};
var t=Polymer.Base._unlisten;Polymer.Base._unlisten=function(S,M,f){t.call(this,S,M,Y.get(f))}}if(Polymer.Async){var b=Polymer.Async,J=b._atEndOfMicrotask;
b._atEndOfMicrotask=function(){try{J.apply(b,arguments)}catch(S){_.IP(S)}}}if(Polymer.RenderStatus){var G=Polymer.RenderStatus,y=G.afterNextRender;
G.afterNextRender=function(S,M,f){y.call(G,S,function(){try{M.apply(this,arguments)}catch(z){_.IP(z)}},f)}}bjx=!0}};
_.W$=function(B){var R=B?_.tu(B):"";if(R){if(R.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(R.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(R.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(R.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(R.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(R.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";R=R.toLowerCase();if(R==="/")return"home";if(R===
"/channel_memberships")return"channel-memberships-shopfront";if(R.indexOf("/feed/trending")===0)return"trending";if(R.indexOf("/feed/explore")===0)return"explore";if(R.indexOf("/live")===0)return"live";if(R.indexOf("/results")===0)return"search";if(R.indexOf("/sports")===0)return"sports";if(R.indexOf("/fashion")===0||R.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(R))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(R))return"learning";
if(R.indexOf("/channel/")===0||R.indexOf("/user/")===0||R.indexOf("/gaming")===0||R.indexOf("/post/")===0)return"channel";if(joA(B))return"show";if(R==="/playlist"||R.indexOf("/playlist/")===0||R==="/view_play_list"||R.indexOf("/view_play_list/")===0||R.indexOf("/show/")===0)return"playlist";if(R==="/feed/history"||R.indexOf("/feed/history/")===0)return"history";if(R==="/new")return"labs";if(R==="/feed/subscriptions")return"subscriptions";if(R.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(R==="/history_controls")return"standalone";if(R.indexOf("/account")===0||R==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(R.indexOf("/paid_memberships")===0||R.indexOf("/refund")===0||R.indexOf("/purchases")===0||R.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(R.indexOf("/product")===0)return"yts-products";if(R.indexOf("/premium")===0||R.indexOf("/musicpremium")===0)return R.indexOf("/premium/offers")===0||R.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(R===
"/cart/checkout"||R==="/cart")return"ypc-checkout";if(R.indexOf("/feed/downloads")===0||R.indexOf("/redeem")===0||R.indexOf("/reporthistory")===0)return"browse";if(R.indexOf("/hashtag")===0)return"hashtag-landing-page";if(R.indexOf("/handle")===0)return"handle";if(R.indexOf("/source")===0)return"audio-pivot";if(R.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(R.indexOf("/playables")===0)return"playables";if(R.indexOf("/create/live/join")===0)return"open-in-app";if(R.indexOf("/shorts")===
0)return"shorts";if(R.indexOf("/feed/channels")===0)return"subscriptions-channels";(R=B?_.tu(B):"")&&R.indexOf("/watch")===0&&_.k("web_watch_enable_learning_journey")?(B=_.FW(B),B=!!B.list&&B.list.indexOf("LJPP")===0):B=!1;if(B)return"learning_journey_watch"}};
_.bi=function(B){var R,V;(B=(V=_.D(B==null?void 0:B.commandMetadata,_.$a))==null?void 0:V.url)&&(R=_.W$(B));return R};
joA=function(B){var R=B?_.tu(B):"";if(!R)return!1;R=R.toLowerCase();return R.indexOf("/show/")===0||R.indexOf("/playlist")===0&&(B=_.FW(B),B.list&&B.list.indexOf("EL")===0)?!0:!1};
UX=function(B){var R="unknown",V;var e=((V=_.D(B==null?void 0:B.commandMetadata,_.$a))==null?void 0:V.webPageType)||"";e?(V=e.toLowerCase(),V.startsWith("web_page_type_")&&(V=V.slice(14))):V=e;V&&UG5[V.toUpperCase()]?R=UG5[V.toUpperCase()]:_.D(B,_.Jz)||_.D(B,NYd)?R="browse":_.D(B,_.jc)?R="search":_.D(B,_.sI)&&(R="watch");R==="watch"&&_.bi(B||null)==="learning_journey_watch"&&(R="learning_journey_watch");R==="unknown"&&_.KE(Error("Kf`"+JSON.stringify({clickTrackingParams:B==null?void 0:B.clickTrackingParams,
commandMetadata:B==null?void 0:B.commandMetadata,allEndpointKeys:Object.keys(B||[])})));return R};
_.N1=function(B){if(!_.GxZ||B)_.GxZ=_.hF();return _.GxZ};
_.yd_=function(B){return!!_.D(B,_.sI)||!!_.D(B,_.GF)&&_.k("kevlar_enable_shorts_prefetch")};
_.SHY=function(B,R){B=_.D(B,_.sI)||_.D(B,_.GF);return"v"+B.videoId+(B.playlistId?"-pl"+B.playlistId:"")+(R?"-an1":"")+(B.params?"-pr"+B.params:"")};
Mjd=function(B){var R=_.RC("web_pbj_log_warning_rate",0);R=R>0&&Math.random()<R;if(!_.D(B,_.GF))return R&&_.KE(Error("Nf")),!1;var V;return _.k("shorts_controller_retrieve_seedless_sequence_v2")&&((V=_.D(B,_.GF))==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:HjA(B)?!0:(R&&_.KE(Error("Of")),!1)};
HjA=function(B){var R=(_.D(B,_.sI)||_.D(B,_.GF)).videoId;if(!R||!kxp.test(R))return!1;var V;return(B=(V=_.D(B.commandMetadata,_.$a))==null?void 0:V.url)&&(B.includes(R)||B.startsWith("/clip"))?!0:!1};
_.fbS=function(){var B=_.UV();return B.getFlag(192)?B.getFlag(190):!(_.k("web_watch_cinematics_disabled_by_default")||_.k("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&DGI())};
_.yV=function(B,R,V){var e={};e.currentUrl=R;e.vis=B.vis!==void 0?B.vis:0;e.splay=!1;R=_.UV();e.autoCaptionsDefaultOn=R.getFlag(66);R.getFlag(141)?R.getFlag(140)?e.autonavState="STATE_OFF":e.autonavState="STATE_ON":e.autonavState="STATE_NONE";e.html5Preference="HTML5_PREF_WANTS";isNaN(_.vE("STS"))||(e.signatureTimestamp=_.vE("STS"));B.autonav&&(e.autoplay=!0,e.autonav=!0);B.mutedAutoplay&&(e.autoplay=!0,e.mutedAutoplay=!0);B.inlinePlayback&&(e.autoplay=!0,e.autonav=!1,e.isInlineUnmutedPlayback=!!B.inlineUnmuted);
e.referer=V;e.lactMilliseconds=B.lact!==void 0?B.lact.toString():"-1";_.k("enable_unknown_lact_fix_on_html5")&&e.lactMilliseconds==="-1"&&_.KE(new _.H8("Unknown LACT is set in playbackContext.",{"lact in tempData":B.lact||"undefined",autonav:B.autonav||"undefined"}));B={};R.getFlag(194)&&(B.hasShownAmbientMode=!0);R.getFlag(192)&&(B.hasToggledOffAmbientMode=!0);_.fbS()&&(B.watchAmbientModeEnabled=!0);e.watchAmbientModeContext=B;return e};
lbI=function(B){var R={},V=B.pbis||0;V&&(R.playbackBeginsInSeconds=V);B.prefetch_reason&&B.prefetch_reason==="hc_pbis"&&(R.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return R};
_.z$I=function(B){var R=new Sc(_.vE("ONE_PICK_URL",""));R.urlParamMap_.set("hostId",B);(B=_.vE("GAPI_LOCALE"))&&R.urlParamMap_.set("hl",B);(B=_.vE("SESSION_INDEX"))&&R.urlParamMap_.set("authuser",B);(B=_.vE("DELEGATED_SESSION_ID"))&&R.urlParamMap_.set("groupId",B);return R};
dGZ=function(){var B=_.Oz(),R=B.resolve(_.H$);B=B.resolve(_.M1);return new abI(R,B)};
TYA=function(B){if(window.IntersectionObserver)return new wPK(B,400);throw new TypeError("Vf");};
LzY=function(){var B=Hammer.TouchAction,R=B.prototype.preventDefaults;B.prototype.preventDefaults=function(V){var e=this.actions.indexOf("pan-down")>-1;if(!e)return R.call(this,V);if(!xGu){var X=V.srcEvent;V=V.direction;var Y;if((Y=this.manager)==null?0:Y.session.prevented)X.preventDefault();else if(e&&V&Hammer.DIRECTION_DOWN)return this.preventSrc(X)}}};
vEp=function(B){if(!B||B.size===0)return Hammer.DIRECTION_ALL;if(B.size===2){if(B.has("up")&&B.has("down"))return Hammer.DIRECTION_VERTICAL;if(B.has("right")&&B.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(B.size===1){if(B.has("up"))return Hammer.DIRECTION_UP;if(B.has("down"))return Hammer.DIRECTION_DOWN;if(B.has("right"))return Hammer.DIRECTION_RIGHT;if(B.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.IbZ=function(){return Kz5?Promise.resolve(Kz5):new Promise(function(B,R){var V=self.indexedDB.open("swpushnotificationsdb");V.onerror=R;V.onsuccess=function(){var e=V.result;if(e.objectStoreNames.contains("swpushnotificationsstore"))Kz5=e,B(Kz5);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.IbZ()};
V.onupgradeneeded=EEd})};
EEd=function(B){B=B.target.result;B.objectStoreNames.contains("swpushnotificationsstore")&&B.deleteObjectStore("swpushnotificationsstore");B.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
qHK=function(B){var R=QoN(),V;return _.W(function(e){switch(e.nextAddress){case 1:return _.en(e,2),_.U(e,B.match(R,{cacheName:"yt-appshell-assets"}),4);case 4:V=e.yieldResult;_.c8(e,3);break;case 2:_.WR(e);case 3:return e.return(V)}})};
QoN=function(){var B=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?cdo.registration.scope:Adq;B.endsWith("/")&&(B=B.slice(0,-1));return B+"/app_shell_home"};
ij5=function(B){B.map(function(R){return R.source}).join("|")};
_.so_=function(B){return _.W(function(R){return R.return(qHK(B))})};
Fzx=function(){var B=window.caches,R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,_.so_(B),2);R=V.yieldResult;return V.return(!!R)})};
P$5=function(){_.W(function(B){if(B.nextAddress==1){if(rdx)return B.jumpTo(0);rdx=!0;if(_.k("enable_system_health_primes_monitoring"))return _.Yz(gES,3E4),Zjp(),B.return();if(!(Math.random()<_.RC("web_system_health_fraction")))return B.jumpTo(0);mGd={heightPixels:screen.height,widthPixels:screen.width};kA&&!isNaN(kA.jsHeapSizeLimit)&&(mGd.memoryTotalKbytes=String(Math.round(kA.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(mGd.devicePixelRatio=window.devicePixelRatio);return _.U(B,$GK(),4)}_.Yz(gES,
3E4);return _.U(B,C$S(),0)})};
$GK=function(){return _.W(function(B){if(B.nextAddress==1)return Dx.intersectionObserverPresent="IntersectionObserver"in window,Dx.serviceWorkerPresent="serviceWorker"in navigator,Dx.webSharePresent="share"in navigator,Dx.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Dx.cacheStoragePresent="caches"in window,Dx.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Dx.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Dx.webkitTemporaryStoragePresent="webkitTemporaryStorage"in fk&&fk.webkitTemporaryStorage&&"queryUsageAndQuota"in fk.webkitTemporaryStorage,Dx.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.U(B,$rN(),2);Dx.indexedDbPresent=B.yieldResult;Dx.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Dx.broadcastChannelPresent="BroadcastChannel"in window;Dx.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Dx.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Dx.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.b3(B)})};
gES=function(){var B=9E4+Math.random()*2E3;_.B5()>B||(_.k("enable_system_health_primes_monitoring")?Zjp():C$S())};
C$S=function(){var B;return _.W(function(R){if(R.nextAddress==1)return _.U(R,nES(),2);B=R.yieldResult;_.dn("systemHealthCaptured",B);_.b3(R)})};
Zjp=function(){var B={metric:{}},R=uwN();R.networkEvents.length&&(B.metric.networkEvents=OjA(R));_.dn("systemHealthCaptured",B)};
nES=function(){var B,R,V,e,X,Y,t,b,J,G;return _.W(function(y){switch(y.nextAddress){case 1:B={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};R=window.screen;_.k("enable_is_extended_monitoring")&&R&&"isExtended"in R&&(B.isExtended=!!R.isExtended);V={metric:{staticContext:mGd,dynamicContext:B,webMetric:ocq,webApiSupport:Dx}};
if(e=_.TE())V.csn=e;kA&&(V.metric.webMetric.currentHeapKbytes=Math.round(kA.usedJSHeapSize/1E3));window.matchMedia&&(V.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,V.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,V.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in fk&&typeof fk.getBattery==="function")){y.jumpTo(2);break}return _.U(y,fk.getBattery(),3);case 3:if(X=
y.yieldResult)V.metric.dynamicContext.chargingStatus=X.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(V.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Dx.storageEstimatePresent)return _.U(y,navigator.storage.estimate(),8);if(!Dx.webkitTemporaryStoragePresent){y.jumpTo(5);break}return _.U(y,BtY(),7);case 7:Y=y.yieldResult;y.jumpTo(5);break;case 8:Y=y.yieldResult;case 5:return V.metric.dynamicContext.deviceStorageQuotaMbytes=((t=Y)==null?0:t.quota)?String(Math.round(Y.quota/
1048576/10)*10):"-1",V.metric.dynamicContext.deviceStorageUsageMbytes=((b=Y)==null?0:b.usage)?String(Math.round(Y.usage/1048576/10)*10):"-1",J=V.metric.dynamicContext,_.U(y,Fzx(),9);case 9:return J.hasAppShell=y.yieldResult,G=uwN(),G.networkEvents.length&&(V.metric.networkEvents=OjA(G)),y.return(V)}})};
BtY=function(){return new Promise(function(B){var R;Dx.webkitTemporaryStoragePresent&&(R=fk.webkitTemporaryStorage)!=null&&R.queryUsageAndQuota?fk.webkitTemporaryStorage.queryUsageAndQuota(function(V,e){B({usage:V,quota:e})}):B(void 0)})};
_.li=function(B){B&=16777215;B=[(B&16711680)>>16,(B&65280)>>8,B&255];return RnA(B[0],B[1],B[2])};
_.zF=function(B){B=[(B&16711680)>>>16,(B&65280)>>>8,B&255,(B&4278190080)>>>24];var R=_.V5p(B,function(V){return V==(V&255)});
B[3]=(B[3]/255).toFixed(3);if(!R)throw Error("Wf`"+B.join(","));return"rgba("+B.join(",")+")"};
_.enA=function(B){return[(B&16711680)>>>16,(B&65280)>>>8,B&255]};
_.Xuu=function(B){B=B.map(function(R){R/=255;return R<=.03928?R/12.92:Math.pow((R+.05)/1.05,2.4)});
return B[0]*.2126+B[1]*.7152+B[2]*.0722};
aG=function(B,R){B=_.enA(B);return"rgba("+B[0]+", "+B[1]+", "+B[2]+", "+R+")"};
_.puu=function(){try{return!!self.localStorage}catch(B){return!1}};
WVx=function(){if(Y_x())_.KE(Error("Xf"));else{var B=document.createElement("iframe");B.style.display="none";var R=R===void 0?window.location.href:R;var V=_.wV(_.vE("PERSIST_IDENTITY_IFRAME_URL"));R=V?V:(new URL(R)).host.indexOf("studio")===0?_.u3(hnq,"persist_identity"):_.u3(t5Y,"persist_identity");_.Hfo(B,1,R);B.id="persist_identity";var e;(e=document.body)==null||e.appendChild(B)}};
Y_x=function(){var B=bLI;B||(B=document.querySelector("#persist_identity"));return B};
JUN=function(){var B=!1;try{B=!!window.sessionStorage.getItem("session_logininfo")}catch(R){B=!0}return(_.vE("INNERTUBE_CLIENT_NAME")==="WEB"||_.vE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&B};
j$o=function(B,R){if(!JUN())return!1;R||(R=_.vE("LOGIN_INFO"));return R?(B.session_logininfo=R,!0):!1};
NtN=function(B,R){B=B===void 0?!1:B;if((R===void 0||!R)&&Uap!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.KQ("LOG_STICKINESS",!1)){R=_.TE();var V=_.wT(),e={identityStickinessData:{initialState:Uap}};R&&V&&_.FT(R,V,e)}if(R=Y_x())if(V=R.src?(new URL(R.src)).origin:"*",B){var X;(X=R.contentWindow)==null||X.postMessage({action:"clear"},V)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(B=window.sessionStorage.getItem("session_logininfo"))){var Y;(Y=R.contentWindow)==null||Y.postMessage({loginInfo:B},V)}};
_.dr=function(B){B=B===void 0?!0:B;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.LQ("LOGIN_INFO",""),B&&window.sessionStorage.setItem("from_switch_account","1"),NtN(!0,B)}catch(R){}};
GYK=function(B){B&&(B.startsWith("https://accounts.google.com/AddSession")?_.dr():B.startsWith("https://accounts.google.com/ServiceLogin")?_.dr():B.startsWith("https://myaccount.google.com")&&_.q2(B).getPath().endsWith("/youtubeoptions")&&_.dr())};
wr=function(B,R){GYK(B);if(_.KQ("LOGGED_IN",!0)&&JUN()){var V=NUq(B);V==null&&(V={});j$o(V,R)&&_.Zg(B,V)}};
yU_=function(){function B(R){for(R=R.target;R&&R.nodeName!=="A";)if(R=R.parentNode,!(R&&R instanceof HTMLElement))return;if(R&&!R.hasAttribute("download")&&R.getAttribute("rel")!=="external"&&R.href)return R.href}
document.addEventListener("mousedown",function(R){R.button!==0&&(R=B(R))&&wr(R)});
document.addEventListener("click",function(R){(R=B(R))&&wr(R)})};
M5Y=function(){var B=new S_d;try{if(_.KQ("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(b){B.increment(5,!1);return}if(_.vE("LOGIN_INFO")){var R=HLS?HLS:window.location;_.vE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&WVx();var V=NUq(R.href);V==null&&(V={});var e=V.session_logininfo,X=Number(window.sessionStorage.getItem("stickiness_reload")),Y=e===_.vE("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
X>=2||Y)X>=2?B.increment(2,Y):Y?B.increment(7,Y):window.sessionStorage.getItem("session_logininfo")||(B.increment(3,Y),Uap="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.vE("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.vE("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))B.increment(4,Y),window.sessionStorage.removeItem("stickiness_reload");
else if(X<2){window.sessionStorage.setItem("stickiness_reload",String(X+1));var t=R.href;t=_.mc(t,"sttick");wr(t,window.sessionStorage.getItem("session_logininfo"));t=_.rg(t,{sttick:X});B.increment(X,Y);_.s8(R,t)}}else B.increment(6,!1)}else _.dr(!1)}catch(b){}};
_.TF=function(B,R,V,e,X){R=R===void 0?{}:R;V=V===void 0?"":V;e=e===void 0?window:e;B=_.gg(B,R);wr(B);V=_.ym(B+V,X);_.s8(e.location,V)};
kYu=function(B){if(B.urlEndpoint){if(B=_.FW(B.urlEndpoint.url),B.adurl)return nQ(B.adurl)}else if(B.watchEndpoint)return"//www.youtube.com/watch?v="+B.watchEndpoint.videoId;return null};
Dax=function(B){if(!B||!B.reportingPings)return null;var R={};B.reportingPings.forEach(function(V){V.pingType in R?R[V.pingType].push(V.url):R[V.pingType]=[V.url]});
return{adpings:k8Y(R)}};
_.Lk=function(B){B=B===void 0?!1:B;var R=_.UV(),V="USER_INTERFACE_THEME_LIGHT";R.getFlag(165)?V="USER_INTERFACE_THEME_DARK":R.getFlag(174)?V="USER_INTERFACE_THEME_LIGHT":_.xA()&&(V="USER_INTERFACE_THEME_DARK");return B?V:fFY()||V};
_.lFu=function(){return!_.k("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.xA=function(){return _.lFu()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.v$=function(){var B=_.UV();return _.lFu()&&!B.getFlag(165)&&!B.getFlag(174)};
fFY=function(){var B=B===void 0?window.location.href:B;if(_.k("kevlar_disable_theme_param"))return null;var R=_.tu(B);if(_.znZ(R))return"USER_INTERFACE_THEME_DARK";try{var V=_.FW(B).theme;return aF_.get(V)||null}catch(e){}return null};
_.znZ=function(B){return _.k("enable_dark_theme_only_on_shorts")?!(B==null||!B.startsWith("/shorts/")):!1};
_.TtA=function(B,R,V,e,X){R=R===void 0?!1:R;V=V===void 0?!1:V;var Y=_.vE("INNERTUBE_CONTEXT");if(!Y)return _.Tn(Error("ag")),{};Y=(0,_.M_.unsafeClone)(Y);_.k("web_no_tracking_params_in_shell_killswitch")||delete Y.clickTracking;Y.client||(Y.client={});var t=Y.client;t.clientName==="MWEB"&&t.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(t.clientFormFactor=_.vE("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");t.screenWidthPoints=window.innerWidth;t.screenHeightPoints=window.innerHeight;t.screenPixelDensity=
Math.round(window.devicePixelRatio||1);t.screenDensityFloat=window.devicePixelRatio||1;t.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());t.userInterfaceTheme=_.Lk();if(!R){var b=_.NTZ();b&&(t.connectionType=b);_.k("web_log_effective_connection_type")&&(b=yZp())&&(Y.client.effectiveConnectionType=b)}var J;if(_.k("web_log_memory_total_kbytes")&&((J=_.R5.navigator)==null?0:J.deviceMemory)){var G;J=(G=_.R5.navigator)==null?void 0:G.deviceMemory;Y.client.memoryTotalKbytes=""+J*1E6}R&&e&&!_.k("web_it_context_set_original_url_ks")&&
(t.originalUrl=daZ(_.R5.location.href,e).toString());_.k("web_gcf_hashes_innertube")&&(b=wzx())&&(G=b.coldConfigData,J=b.coldHashData,b=b.hotHashData,Y.client.configInfo=Y.client.configInfo||{},G&&(Y.client.configInfo.coldConfigData=G),J&&(Y.client.configInfo.coldHashData=J),b&&(Y.client.configInfo.hotHashData=b));G=_.FW(_.R5.location.href);!_.k("web_populate_internal_geo_killswitch")&&G.internalcountrycode&&(t.internalGeo=G.internalcountrycode);!_.k("web_populate_client_screen_killswitch")&&X&&(t.clientScreen=
X);t.clientName==="MWEB"||t.clientName==="WEB"?(t.mainAppWebInfo={graftUrl:e||_.R5.location.href},_.k("kevlar_woffle")&&_.Kk.instance&&(e=_.Kk.instance,t.mainAppWebInfo.pwaInstallabilityStatus=!e.appInstalledEventFired&&e.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),t.mainAppWebInfo.webDisplayMode=MOY(),t.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):t.clientName==="TVHTML5"&&(!_.k("web_lr_app_quality_killswitch")&&
(e=_.vE("LIVING_ROOM_APP_QUALITY"))&&(t.tvAppInfo=Object.assign(t.tvAppInfo||{},{appQuality:e})),e=_.vE("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(t.tvAppInfo=Object.assign(t.tvAppInfo||{},{certificationScope:e}));!_.k("web_populate_time_zone_itc_killswitch")&&(e=jLu())&&(t.timeZone=e);(e=Khd())?t.experimentsToken=e:delete t.experimentsToken;t=Ip5();e=_.wuo();e=(0,_.M_.getValues)(e.tokenJars);Y.request=Object.assign({},Y.request,{internalExperimentFlags:t,consistencyTokenJars:e});!_.k("web_prequest_context_killswitch")&&
(t=_.vE("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(Y.request.externalPrequestContext=t);e=_.UV();t=e.getFlag(58);e=e.get("gsml","");Y.user=Object.assign({},Y.user);t&&(Y.user.enableSafetyMode=t);e&&(Y.user.lockedSafetyMode=!0);_.k("warm_op_csn_cleanup")?V&&(R=_.TE())&&(Y.clientScreenNonce=R):!R&&(R=_.TE())&&(Y.clientScreenNonce=R);B&&(Y.clickTracking={clickTrackingParams:B});if(B=_.qN("yt.mdx.remote.remoteClient_"))Y.remoteClient=B;_.IG.getInstance().setLocationOnInnerTubeContext(Y);try{var y=g_p(),
S=y.bid;delete y.bid;Y.adSignalsInfo={params:[],bid:S};for(var M=_.h(Object.entries(y)),f=M.next();!f.done;f=M.next()){var z=_.h(f.value),T=z.next().value,L=z.next().value;y=T;S=L;B=void 0;(B=Y.adSignalsInfo.params)==null||B.push({key:y,value:""+S})}var Q,q;if(((Q=Y.client)==null?void 0:Q.clientName)==="TVHTML5"||((q=Y.client)==null?void 0:q.clientName)==="TVHTML5_UNPLUGGED"){var m=_.vE("INNERTUBE_CONTEXT");m.adSignalsInfo&&(Y.adSignalsInfo.advertisingId=m.adSignalsInfo.advertisingId,Y.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",Y.adSignalsInfo.limitAdTracking=m.adSignalsInfo.limitAdTracking)}}catch(g){_.Tn(g)}return Y};
_.EX=function(){return{isShellLoad:_.KQ("IS_SHELL_LOAD",!1)}};
LVp=function(){navigator.serviceWorker.getRegistrations().then(function(B){B.forEach(xaA)})};
xaA=function(B){B&&_.vcI(KVu,B.scope)};
_.vcI=function(B,R){R={scope:R||_.V_("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.hR(B),R)};
QV=function(B,R,V,e){if(R&&R.serializedYpcCujLoggingParams){if(V){var X={};X.transactionErrorType=V;e&&(X.errorMessage=e);R.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:X}}}V={};V.ypcCujContext=R;B=_.pk("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",B,V);_.YA(_.hz(),B,"FLOW_TYPE_YPC_ACQUISITION")}};
_.IFS=function(B,R,V,e){var X={};X.serializedTransactionFlowLoggingParams=R;V&&(X.errorType=V);e&&(X.errorMessage=e);_.dn(B,X);_.wn()};
_.EcN=function(B){B&&_.IFS("transactionFlowStarted",B)};
_.Q$d=function(B){B&&_.IFS("transactionFlowCancelled",B)};
_.q1=function(B,R,V){R&&_.IFS("transactionFlowFailed",R,B,V)};
_.c$=function(){this.megabloxUrl_=null};
_.Az=function(B){try{var R=q_d==null?void 0:q_d.composedPath(B)}catch(V){R=B.composedPath?B.composedPath():[]}return R&&R.length>0?R:B.composedPath?B.composedPath():[]};
_.ii=function(B){return _.Az(B)[0]};
_.sX=function(B){if(!(B instanceof Element))return null;B=B.classList?Array.from(B.classList):void 0;if(!B)return null;var R=B.indexOf("style-scope");return R>-1&&R+1<B.length?B[R+1]:null};
Fs=function(B){if(!(B instanceof HTMLElement))return null;var R=B&&(B.$$||B.polymerController)?B.tagName.toLowerCase():null;return R?R:_.sX(B)};
cU_=function(B,R){return B.replace(/[^a-z]*[^\s]+/g,function(V){return V+".style-scope."+R})};
AUd=function(B,R){return R?B.split(",").map(function(V){return cU_(V.trim(),R)}).join(", "):B};
_.rr=function(B){var R,V,e,X;return(X=(e=(V=(R=B.root)!=null?R:B.shadowRoot)!=null?V:B.__shady_native_shadowRoot)!=null?e:B.__shady_shadowRoot)!=null?X:B};
gr=function(B){return B instanceof ShadowRoot?ShadowRoot:B instanceof DocumentFragment?DocumentFragment:B instanceof Document?Document:HTMLElement};
iLo=function(B){var R,V,e;return(e=(V=(R=B.parentElement)!=null?R:B.__shady_native_parentElement)!=null?V:B.__shady_parentElement)!=null?e:null};
s$d=function(B){var R,V,e;return(e=(V=(R=B.parentNode)!=null?R:B.__shady_native_parentNode)!=null?V:B.__shady_parentNode)!=null?e:null};
FVq=function(B){var R,V,e;return(e=(V=(R=B.__shady_parentNode)!=null?R:B.__shady_native_parentNode)!=null?V:B.parentNode)!=null?e:null};
rUo=function(B){var R,V;return(V=(R=s$d(B))!=null?R:B.host)!=null?V:null};
gcZ=function(B){var R,V,e;return(e=(V=(R=B.nextSibling)!=null?R:B.__shady_native_nextSibling)!=null?V:B.__shady_nextSibling)!=null?e:null};
ZLx=function(B){var R,V,e;return(e=(V=(R=B.previousSibling)!=null?R:B.__shady_native_previousSibling)!=null?V:B.__shady_previousSibling)!=null?e:null};
maq=function(B){var R,V,e;return(e=(V=(R=B.nextElementSibling)!=null?R:B.__shady_native_nextElementSibling)!=null?V:B.__shady_nextElementSibling)!=null?e:null};
$ax=function(B){var R,V,e;return(e=(V=(R=B.previousElementSibling)!=null?R:B.__shady_native_previousElementSibling)!=null?V:B.__shady_previousElementSibling)!=null?e:null};
CTS=function(B){var R,V,e;return new Set([].concat(_.MI((R=B.children)!=null?R:[]),_.MI((V=B.__shady_native_children)!=null?V:[]),_.MI((e=B.__shady_children)!=null?e:[])))};
PTo=function(B){var R,V,e;return new Set([].concat(_.MI((R=B.childNodes)!=null?R:[]),_.MI((V=B.__shady_native_childNodes)!=null?V:[]),_.MI((e=B.__shady_childNodes)!=null?e:[])))};
ncu=function(B){if(!B)return null;var R=_.sX(B);if(!R){var V;return(V=Node.prototype.getRootNode)==null?void 0:V.call(B)}R=R.toUpperCase();for(B=iLo(B);B&&B.tagName!==R;)B=iLo(B);return B?_.rr(B):null};
u2d=function(B){for(;B&&!(B instanceof HTMLElement);)B=rUo(B);return B};
OLZ=function(B){var R=u2d(B);return B===R?_.sX(B):R?Fs(R):null};
o2u=function(B){return(B=u2d(B))?Fs(B):null};
B0u=function(B){if(B instanceof Comment)return!1;if(B instanceof Text){var R,V;if(((V=(R=B.textContent)==null?void 0:R.trim())!=null?V:"")==="")return!1}return!0};
Zx=function(B,R,V){var e=R(B);for(V=V===void 0?o2u(B):V;e&&(OLZ(e)!==V||!B0u(e));)B=e,e=R(B);return e};
Rso=function(B,R,V){if(!R)return null;B=o2u(B);return OLZ(R)===B&&B0u(R)?R:Zx(R,V,B)};
VfA=function(B){return Zx(B,FVq,_.sX(B))};
esu=function(B){return Zx(B,maq)};
XO_=function(B){return Zx(B,gcZ)};
pOY=function(B){return Zx(B,$ax)};
YW5=function(B){return Zx(B,ZLx)};
hsS=function(B){return Rso(B,B.firstChild||B.__shady_native_firstChild||B.__shady_firstChild||null,gcZ)};
tfY=function(B){var R,V,e;var X=(e=(V=(R=B.firstElementChild)!=null?R:B.__shady_native_firstElementChild)!=null?V:B.__shady_firstElementChild)!=null?e:null;return Rso(B,X,maq)};
WmI=function(B){var R,V,e;var X=(e=(V=(R=B.lastChild)!=null?R:B.__shady_native_lastChild)!=null?V:B.__shady_lastChild)!=null?e:null;return Rso(B,X,ZLx)};
bIq=function(B){var R,V,e;var X=(e=(V=(R=B.lastElementChild)!=null?R:B.__shady_native_lastElementChild)!=null?V:B.__shady_lastElementChild)!=null?e:null;return Rso(B,X,$ax)};
JQK=function(B){var R=o2u(B);return Array.from(PTo(B)).filter(function(V){return OLZ(V)===R})};
jfS=function(B){var R=Fs(B);return Array.from(CTS(B)).filter(function(V){return _.sX(V)===R})};
_.m5=function(B,R,V){if(B instanceof HTMLElement&&_.sX(B)===V){var e=Array.from(B.classList).indexOf("style-scope");if(e===-1)B.classList.add("style-scope"),B.classList.add(R);else if(!(e+1>=B.classList.length)){e=B.classList[e+1];var X,Y;B==null||(X=B.classList)==null||(Y=X.replace)==null||Y.call(X,e,R)}}if(B instanceof HTMLElement||B instanceof DocumentFragment)for(X=_.h(CTS(B)),Y=X.next();!Y.done;Y=X.next())_.m5(Y.value,R,V);return B};
$A=function(B,R){if(B instanceof HTMLElement&&_.sX(B)===R){var V=Array.from(B.classList).indexOf("style-scope");V===-1||V+1>=B.classList.length||B.classList.remove("style-scope",B.classList[V+1])}if(B instanceof HTMLElement||B instanceof DocumentFragment){V=_.h(B.children);for(var e=V.next();!e.done;e=V.next())$A(e.value,R)}return B};
_.U3Z=function(B,R){return gr(B).prototype.appendChild.call(B,R)};
N0I=function(B,R){if(B===R)return!0;B=PTo(B);return Array.from(B).some(function(V){return N0I(V,R)})};
_.w=function(B,R){if(B instanceof Ck)return B;(R==null?0:R.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(B,"ownerDocument")&&Object.defineProperty(B,"ownerDocument",{get:function(){return window.document}});
return new Ck(B)};
yQK=function(){var B=Ck.prototype,R=[].concat(_.MI(GB_?[]:["getRootNode"]),["setAttribute","removeAttribute"]);R=_.h(R);for(var V=R.next(),e={};!V.done;e={method$jscomp$50:void 0},V=R.next())e.method$jscomp$50=V.value,B[e.method$jscomp$50]=function(X){return function(){return this.host[X.method$jscomp$50].apply(this.host,arguments)}}(e)};
HII=function(){var B=Ck.prototype,R=[].concat(_.MI(GB_?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.MI(SWp?[]:["querySelector","querySelectorAll"]));R=_.h(R);for(var V=R.next(),e={};!V.done;e={method$jscomp$51:void 0},V=R.next())e.method$jscomp$51=V.value,B[e.method$jscomp$51]=function(X){return function(){return this.root[X.method$jscomp$51].apply(this.root,arguments)}}(e)};
D3K=function(){var B=Ck.prototype,R=[].concat(_.MI(MfY?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.MI(kBp?[]:["parentNode"]));R=_.h(R);for(var V=R.next(),e={};!V.done;e={prop$jscomp$62:void 0},V=R.next())e.prop$jscomp$62=V.value,Object.defineProperty(B,e.prop$jscomp$62,{get:function(X){return function(){return this.host[X.prop$jscomp$62]}}(e),
configurable:!0})};
zsK=function(){var B=Ck.prototype,R=["activeElement"].concat(_.MI(MfY?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.MI(fCS?[]:["children"]),_.MI(lCq?[]:["lastChild"]));R=_.h(R);for(var V=R.next(),e={};!V.done;e={prop$jscomp$63:void 0},V=R.next())e.prop$jscomp$63=V.value,Object.defineProperty(B,e.prop$jscomp$63,{get:function(X){return function(){return this.root[X.prop$jscomp$63]}}(e),
configurable:!0})};
aCu=function(){for(var B=Ck.prototype,R=_.h(["innerHTML","textContent"]),V=R.next(),e={};!V.done;e={prop$jscomp$64:void 0},V=R.next())e.prop$jscomp$64=V.value,Object.defineProperty(B,e.prop$jscomp$64,{get:function(X){return function(){return this.root[X.prop$jscomp$64]}}(e),
set:function(X){return function(Y){this.root[X.prop$jscomp$64]=Y}}(e),
configurable:!0})};
d3u=function(B){var R=Ck.prototype;B=_.h(Object.entries(B));for(var V=B.next(),e={};!V.done;e={fn$jscomp$361:void 0},V=B.next()){var X=_.h(V.value);V=X.next().value;X=X.next().value;e.fn$jscomp$361=X;R[V]=function(Y){return function(){return Y.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.MI(arguments)))}}(e)}};
T0q=function(){for(var B=Ck.prototype,R=_.h(Object.entries(wOd)),V=R.next(),e={};!V.done;e={fn$jscomp$362:void 0},V=R.next()){var X=_.h(V.value);V=X.next().value;X=X.next().value;e.fn$jscomp$362=X;Object.defineProperty(B,V,{get:function(Y){return function(){return Y.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.MI(arguments)))}}(e),
configurable:!0})}};
_.P$=function(B){return B instanceof x3_||B instanceof Document?B:new x3_(B)};
LmN=function(){for(var B=x3_.prototype,R=_.h("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),V=R.next(),e={};!V.done;e={method$jscomp$52:void 0},V=R.next())e.method$jscomp$52=V.value,B[e.method$jscomp$52]=function(X){return function(){return HTMLElement.prototype[X.method$jscomp$52].call.apply(HTMLElement.prototype[X.method$jscomp$52],[this.node].concat(_.MI(arguments)))}}(e)};
v25=function(){for(var B=x3_.prototype,R=_.h("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),V=R.next(),e={};!V.done;e={prop$jscomp$65:void 0},V=R.next())e.prop$jscomp$65=V.value,Object.defineProperty(B,e.prop$jscomp$65,{get:function(X){return function(){var Y;return(Y=this.node["__shady_native_"+X.prop$jscomp$65])!=null?Y:this.node[X.prop$jscomp$65]}}(e),
configurable:!0})};
_.nk=function(B,R,V){V===void 0&&(V=!B.classList.contains(R));V?B.classList.add(R):B.classList.remove(R)};
_.ui=function(B,R,V){V===void 0&&(V=!B.hasAttribute(R));if(R==="class")throw Error("eg");V?_.P$(B).setAttribute(R,""):_.P$(B).removeAttribute(R)};
KmK=function(B){return(B.localName!=="slot"?[]:(0,_.OX)(B).assignedNodes({flatten:!0})).filter(function(R){return R.nodeType===Node.ELEMENT_NODE})};
_.ICp=function(B){return(B=_.w(B).querySelector("slot"))&&B.localName==="slot"?KmK(B):[]};
_.o_=function(B,R){window.ShadyCSS&&window.ShadyCSS.styleSubtree(B,R)};
E2q=function(B,R){var V=R.bind(B);return function(e){V(e,e.detail)}};
_.Bc=function(B,R){var V=QfK.get(B);V||(V=new WeakMap,QfK.set(B,V));if(V.has(R))return V.get(R);if(_.k("web_fi_listen_disable_bound_fn_helper")){var e=R.bind(B);B=function(X){e(X,X==null?void 0:X.detail)}}else B=E2q(B,R);
V.set(R,B);return B};
AQA=function(B,R){qWq(B);B.created[cQp].push(R)};
qWq=function(B){if(!B.created||!B.created[cQp]){var R=B.created,V=R?[R]:[];B.created=function(){for(var e=_.h(V),X=e.next();!X.done;X=e.next())X.value.apply(this)};
B.created[cQp]=V}};
iIZ=function(B){return function(){var R=_.HB.apply(0,arguments);return function(V,e,X){B.apply(null,_.MI(R))(V,e,X)}}};
sfd=function(){return function(){var B=_.HB.apply(0,arguments);return function(R,V,e){EQN.apply(null,_.MI(B))(R,V,e)}}};
_.v=function(B){return sfd()(B)};
_.K=function(){return iIZ(Anu).apply(null,_.MI(_.HB.apply(0,arguments)))};
_.R_=function(B){return _.k("pbcm_fi_listen_decorators")?FmI(B):iIZ(qTI)(B)};
FmI=function(B){return function(R,V){AQA(R,function(){var e=this[V],X=_.k("web_fi_listen_disable_bound_fn_helper")?function(Y){e(Y,Y.detail)}.bind(this):E2q(this,e);
rQq.has(B)?dB(this.hostElement,B,X):this.hostElement.addEventListener(B,X)})}};
_.XX=function(){return iIZ(cnd).apply(null,_.MI(_.HB.apply(0,arguments)))};
_.E=function(B){B=B===void 0?{}:B;return iIZ(QHp)(B)};
_.pJ=function(B){if(B.hostElement&&B!==B.hostElement){var R=_.Mr(B.hostElement);R=B.renderIdom?R:R.shadowRoot}R||(B=B.root,R=B instanceof Node?_.Mr(B):null);return R};
_.Yp=function(B){return g2u?ZId(B):function(R,V){Object.defineProperty(R,V,{get:function(){var e;return(e=_.pJ(this))==null?void 0:e.querySelector(B)},
enumerable:!0,configurable:!0})}};
ZId=function(B){return function(R,V){Object.defineProperty(R,V,{get:function(){var e,X=(e=_.w(this.hostElement))==null?void 0:e.querySelector(B);if(X)return X;var Y;e=(Y=this.is)!=null?Y:"yt-undefined-target";m3S!=null||(m3S=Date.now());(EI(e)+m3S)%100>_.RC("pbcm_fi_query_decorators_fallback_logging_pct")||($3o!=null||($3o=new C6q),P6I.has(e)||(P6I.add(e),$3o.increment(e)));var t;return(t=_.pJ(this))==null?void 0:t.querySelector(B)},
enumerable:!0,configurable:!0})}};
_.hM=function(B){return g2u?n2S(B):function(R,V){Object.defineProperty(R,V,{get:function(){var e;return(e=_.pJ(this))==null?void 0:e.querySelectorAll(B)},
enumerable:!0,configurable:!0})}};
n2S=function(B){return function(R,V){Object.defineProperty(R,V,{get:function(){var e,X=(e=_.w(this.hostElement))==null?void 0:e.querySelectorAll(B);if(X==null?0:X.length)return X;var Y;return(Y=_.pJ(this))==null?void 0:Y.querySelectorAll(B)},
enumerable:!0,configurable:!0})}};
uqZ=function(B){return function(R){if(![_.$_,_.c].includes(Object.getPrototypeOf(R.prototype).constructor))throw Error("fg");dld(Object.assign({},typeof B!=="string"?B:{is:B,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(R)}};
_.Wc=function(){var B=B===void 0?{}:B;return function(R){if(![Cn,_.tM].includes(Object.getPrototypeOf(R.prototype).constructor))throw Error("gg");wSq(Object.assign({},B,{disableInheritanceCheck:!0}))(R)}};
ogd=function(B,R){OIu[B]!=null||(OIu[B]=new Set);OIu[B].add(R)};
_.bp=function(){var B=_.XX.apply(null,_.MI(_.HB.apply(0,arguments)));return function(R,V){ogd(R.is,V);B(R,V)}};
Ux=function(B,R,V){if(JM(B)&&!BoZ.has(R)){R=R.replace(/^JSC\$[\d]+_/,"");R=R.replace(/\.\d+(\.|$)/g,function(Y,t){return".#"+t});
jm[B]!=null||(jm[B]={});var e,X;(e=jm[B])[X=R]!=null||(e[X]=new Set);jm[B][R].has(V)||(jm[B][R].add(V),_.dn("polymerPropertyAccessEvent",{componentName:B,propertyName:R,accessType:V}))}};
Rd_=function(){return _.k("polymer_property_access_logging_debug")||_.k("polymer_enable_property_access_logging")};
JM=function(B){if(_.k("polymer_property_access_logging_debug"))return!0;if(!_.k("polymer_enable_property_access_logging"))return!1;V_d||(V_d=Date.now());return(EI(B)+V_d)%100<_.RC("polymer_property_access_logging_percent")};
edI=function(B,R){return JM(R)&&B.hostElement.loggingStatus?new Proxy(B,{get:function(V,e,X){if(V.hostElement.loggingStatus.bypassProxyController)return V[e];V.hostElement.loggingStatus.isExternalGet=!0;var Y=V[e];V.hostElement.loggingStatus.isExternalGet=!1;if(Y instanceof Function)return function(){var t=_.HB.apply(0,arguments);try{return V.hostElement.loggingStatus.currentExternalCall=e,Ux(R,e,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),Y.apply(this===X?V:this,t)}finally{V.hostElement.loggingStatus.currentExternalCall=
void 0}};
Ux(R,e,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return Y},
set:function(V,e,X){if(V.hostElement.loggingStatus.bypassProxyController)return V[e]=X,!0;V.hostElement.loggingStatus.isRendererStamper?Ux(R,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):V.hostElement.loggingStatus.isDeclarativeExternal||Ux(R,e,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{V.hostElement.loggingStatus.currentExternalSet=e,V[e]=X}finally{V.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):B};
X0Z=function(B,R){B&&B.loggingStatus&&!B.loggingStatus.isDeclarativeExternal&&!B.loggingStatus.isExternalGet&&B.loggingStatus.currentExternalSet!==R&&Ux(B.tagName.toLowerCase(),R,"PROPERTY_ACCESS_GET_INTERNAL")};
NU=function(B,R,V){B&&(V||B.loggingStatus&&!B.loggingStatus.isInitializing&&!B.loggingStatus.isDefiningPropertyAccessor&&B.loggingStatus.currentExternalSet!==R)&&Ux(B.tagName.toLowerCase(),R,"PROPERTY_ACCESS_SET_INTERNAL")};
p0_=function(){return{_definePropertyAccessor:function(B,R){var V=this,e=V.hostElement.loggingStatus;e&&(e.isDefiningPropertyAccessor=!0);var X=V[B];X!==void 0&&(V.__data?V._setPendingProperty(B,X):(V.__dataProto!=null||(V.__dataProto={}),V.__dataProto[B]=X));e&&(e.isDefiningPropertyAccessor=!1);Object.defineProperty(this,B,{get:function(){X0Z(V.hostElement,B);return this.__data[B]},
set:function(Y){R||this._setPendingProperty(B,Y,!0)&&this._invalidateProperties()}})},
created:function(){var B=this._setPendingProperty.bind(this);this._setPendingProperty=function(R,V,e){NU(this.hostElement,R);return B.apply(this,[R,V,e])}}}};
YLu=function(B){Rd_()&&_.v(Gv.prototype)(B.prototype,"__templateBindingLoggingBehavior")};
hdK=function(B,R){if(R.resolvedFactories.length!==B.resolvedFactories.length)return!0;R=_.h(R.resolvedFactories.entries());for(var V=R.next();!V.done;V=R.next()){var e=_.h(V.value);V=e.next().value;e=e.next().value;if(e.providerClass){if(e.providerClass!==B.resolvedFactories[V].providerClass)return!0}else if(e.providerValue){if(e.providerValue!==B.resolvedFactories[V].providerValue)return!0}else if(e.factory!==B.resolvedFactories[V].factory)return!0}return!1};
t_p=function(B,R){B=_.h(B);for(var V=B.next();!V.done;V=B.next())if(V=V.value,V.constructor===Array)t_p(V,R);else{var e=R;e.has(V)||(V.inject&&e.add(V),V.behaviors&&t_p(V.behaviors,e))}};
yL=function(B,R){var V=B[R];B[R]=function(){var e=_.HB.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(V)return V.apply(this,e)}};
jWI=function(){_.Sm.Class=function(V,e){V=WZN(V,e);yL(V.prototype,"created");return V};
yL(Hc.prototype,"_initializeProperties");yL(_.MU.prototype,"_initializeProperties");if(buu)yL(J5_,"created");else{var B=function(){yL(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))B();else{var R=customElements.define;customElements.define=function(V,e,X){R.call(customElements,V,e,X);V==="tp-yt-iron-list"&&(B(),customElements.define=R)}}}};
No5=function(B,R){B.prototype.behaviors=B.prototype.behaviors||[];B.prototype.behaviors.unshift(UDd.InjectBehavior);B.prototype.provide=R};
_.fJ=function(B){return function(R){if(!B.disableElementRegistration){B.noInjection||No5(R,B.providers);var V=R.prototype;V.__templateHelpers||EQN(kp.prototype)(V,"__templateHelpers");V=B.is;GbA||(GbA=Date.now());(EI(V)+GbA)%100<_.RC("polymer_log_prop_change_observer_percent")&&EQN(Dq.prototype)(R.prototype,"__propertyObserverObserver");R.prototype.behaviors=R.prototype.behaviors||[];R.prototype.behaviors.unshift(_.y5Z.YtHostElementBehavior);YLu(R);uqZ({is:B.is,notifyObserversOnUndefined:B.notifyObserversOnUndefined!==
!1,fastInit:B.fastInit,template:B.template,disableEnforceFastDefaultValuesCheck:!0})(R)}}};
_.A=function(B){return _.fJ({is:B.is,template:B.template,disableElementRegistration:B.disableElementRegistration,cssBuildOptOut:B.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
M_S=function(B,R){if(SLu){B=new B;for(var V=_.h(Object.getOwnPropertyNames(B)),e=V.next();!e.done;e=V.next())e=e.value,R[e]=B[e];for(V=R;V&&V!==Object.prototype;V=Object.getPrototypeOf(V)){e=_.h(Object.getOwnPropertyNames(V));for(var X=e.next();!X.done;X=e.next())X=X.value,B.hasOwnProperty(X)||Object.defineProperty(B,X,Hu_(R,X))}}else B.apply(R)};
Hu_=function(B,R){return{get:function(){var V=B[R];return V instanceof Function?V.bind(B):V},
set:function(V){B[R]=V}}};
DDd=function(B,R){for(var V=B._noAccessors,e=_.h(Object.getOwnPropertyNames(B)),X=e.next();!X.done;X=e.next())if(X=X.value,!kbZ.has(X))if(V)R[X]=B[X];else{var Y=Object.getOwnPropertyDescriptor(B,X);Y&&(Y.configurable=!0,Object.defineProperty(R,X,Y))}};
faA=function(B,R,V){return function(e){if(V){var X=V();e.model=X}if(B[R])B[R](e,e.detail)}};
lp=function(B){var R=[];if(typeof B==="string")B.length>0&&R.push.apply(R,_.MI(B.split(".")));else{B=_.h(B);for(var V=B.next();!V.done;V=B.next())V=V.value,typeof V==="string"?R.push.apply(R,_.MI(V.split("."))):R.push(V)}return R};
laI=function(B,R){if(R[R.length-1]!=="*"&&R[R.length-1]!=="splices"){for(var V=0;V<R.length;V++){if(!B)return;B=B[R[V]]}return B}};
zdq=function(B,R){if(B.length>R.length)return!1;for(var V=0;V<B.length;V++)if(B[V]!==R[V])return!1;return!0};
dD_=function(B,R,V){if(R.type==="compute"){var e=R.getter.bind(V);var X=R.args}else e=function(){return V[R.method.methodName].apply(V,_.MI(_.HB.apply(0,arguments)))},X=R.method.args;
aao(B,R.propertyKey,e,X,R.value)};
ToA=function(B,R){if(R.readOnly){var V=Object.getOwnPropertyDescriptor(B.model,R.propertyKey);Object.defineProperty(B.model,R.propertyKey,{get:V.get,set:function(){}});
B.model[w0_(R.propertyKey)]=V.set}};
xDd=function(B,R,V){if(V){var e=R.propertyKey,X=R.selector;R=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.MI(R.selectorArgs.map(function(Y){return{type:"path",path:Y}})));
aao(B,e,function(Y){var t=_.HB.apply(1,arguments);return X.apply(null,[V.getState()].concat(_.MI(t)))},R)}};
vgS=function(B,R,V){var e=_.JZ(R.propertyKey)+"-changed";LZ_(B,function(X){var Y={value:X.value,queueProperty:!0};X.path.split(".").length>1&&(Y.path=X.path);V.dispatchEvent(new CustomEvent(e,{detail:Y}))},[{type:"wildcard",
path:R.propertyKey}])};
KZS=function(B,R,V){LZ_(B,function(){V[R.method.methodName].apply(V,_.MI(_.HB.apply(0,arguments)))},R.method.args)};
w0_=function(B){return"_set"+(B.charAt(0).toUpperCase()+B.slice(1))};
Iad=function(){var B,R=dA(function(V){B=V},!1);
return[B,R]};
A5o=function(B){B=B.trim().replace(Eg_,",").replace(QWN,"$1");var R=B[0];R==="-"&&(R=B[1]);if(R>="0"&&R<="9")return{type:"literal",value:Number(B)};if(R==="'"||R==='"')return{type:"literal",value:B.slice(1,-1)};if(R=B.match(qLS)){R=R[1];var V=c5d[R];if(V)return{type:V,path:B.slice(0,-(R.length+1))}}return{type:"path",path:B}};
r5o=function(B){var R=B.match(iu_);if(R)return B={methodName:R[1],args:sW_},R[2].trim()&&(R=R[2].replace(FZK,"&comma;").split(","),B.args=R.map(A5o)),B};
ggK=function(B,R,V,e){e=e===void 0?!1:e;R=_.JZ(R);var X=G8;X&&(V=X(V,R,"attribute",B));zv(B,V,R,e)};
zv=function(B,R,V,e){R=ZuZ(R,e===void 0?!1:e);R===void 0?B.removeAttribute(V):B.setAttribute(V,R)};
ZuZ=function(B,R){switch(typeof B){case "object":case "function":if(B instanceof Date)return B.toString();if(B){if((R===void 0?0:R)&&!_.k("polymer_reflect_objects_as_boolean_killswitch"))return B?"":void 0;R=window.trustedTypes?window.trustedTypes.isHTML(B)||window.trustedTypes.isScript(B)||window.trustedTypes.isScriptURL(B):void 0;if(R)return B;try{return JSON.stringify(B)}catch(V){_.KE(Error("Cg`"+B))}}break;case "boolean":return B?"":void 0;default:return B!==null&&B!==void 0?B.toString():void 0}};
mDp=function(B){if(B===void 0)throw Error("Dg");return B};
uPx=function(B,R,V,e){var X=$DK(e);if(X.length){e=V;var Y="property";C2K.test(V)?Y="attribute":V[V.length-1]==="$"&&(V=V.slice(0,-1),Y="attribute");var t=P2Z(X);t&&Y==="attribute"&&(V==="class"&&B.hasAttribute("class")&&(t+=" "+B.getAttribute(V)),zv(B,t,V));Y==="attribute"&&e==="disable-upgrade$"&&B.setAttribute("disable-upgrade","");B.localName==="input"&&e==="value"&&B.setAttribute("value","");B.removeAttribute(e);Y==="property"&&(V=_.jk(V));R=mDp(R);ngp(R,Y,V,X);return!0}return V.slice(0,3)===
"on-"?(B.removeAttribute(V),(Y=R).events!=null||(Y.events=[]),R.events.push({name:V.slice(3),value:e}),!0):V==="id"?(R.id=e,!0):!1};
$DK=function(B){for(var R=[],V=0,e;(e=Oux.exec(B))!==null;){e.index>V&&R.push({type:"literal",value:B.slice(V,e.index)});var X=e[1][0];V=!!e[2];e=e[3].trim();if(X==="{")throw Error("Eg");(X=r5o(e))?R.push({type:"method",negate:V,signature:X}):R.push({type:"path",negate:V,path:e});V=Oux.lastIndex}V&&V<B.length&&(B=B.substring(V))&&R.push({type:"literal",value:B});return R};
P2Z=function(B){for(var R="",V=0;V<B.length;V++){var e=B[V];e.type==="literal"&&(R+=e.value)}return R};
ngp=function(B,R,V,e){B.bindings!=null||(B.bindings=[]);B.bindings.push({kind:R,target:V,parts:e})};
e2o=function(B,R,V){var e=!1;if(B.localName==="template"){e=V;var X=R.stripWhitespace;X=onx(B,X===void 0?!1:X);var Y=B.content.ownerDocument.createDocumentFragment();X.content=Y;Y.appendChild(B.content);e&&(e.templateInfo=X);e=!0}else B.localName==="slot"&&(R.hasInsertionPoint=!0);if(B.firstChild&&(X=V,B.localName!=="script"&&B.localName!=="style")){Y=0;for(var t=B.firstChild;t;){var b=t;if(b.localName==="template"){var J=b.getAttribute("is");if((t=J==="dom-if")||J==="dom-repeat"){b.removeAttribute("is");
J=b.ownerDocument.createElement("ps-"+J);b.parentNode.replaceChild(J,b);J.appendChild(b);var G=Array.from(b.attributes);G=_.h(G);for(var y=G.next();!y.done;y=G.next())y=y.value,t?B$o.has(y.name)&&zv(J,y.value,y.name):R2S.has(y.name)?zv(J,y.value,y.name):VFI.has(y.name),b.removeAttribute(y.name);t=J}else t=b}if(t.nodeType===Node.TEXT_NODE){b=void 0;J=B;for(G=t;((b=G.nextSibling)==null?void 0:b.nodeType)===Node.TEXT_NODE;)y=void 0,(y=G).textContent!=null||(y.textContent=""),G.nextSibling.textContent&&
(G.textContent+=G.nextSibling.textContent),J.removeChild(G.nextSibling);if(R.stripWhitespace&&t.textContent&&!t.textContent.trim()){B.removeChild(t);t=t.nextSibling;continue}}e2o(t,R,{parentIndex:Y,parentInfo:X});t.parentNode&&Y++;t=t.nextSibling}}var S;if((S=B.hasAttributes)==null?0:S.call(B)){S=V=mDp(V);X=!1;Y=Array.from(B.attributes);Y=_.h(Y);for(b=Y.next();!b.done;b=Y.next())b=b.value,X=uPx(B,S,b.name,b.value)||X;e=X||e}B.nodeType===Node.TEXT_NODE&&(S=$DK(B.textContent),S.length&&(B.textContent=
P2Z(S)||" ",V=mDp(V),ngp(V,"text","textContent",S),e=!0));V&&e&&(V.infoIndex=R.nodeInfoList.push(V)-1)};
onx=function(B,R){R={nodeInfoList:[],stripWhitespace:(R===void 0?!1:R)||B.hasAttribute("strip-whitespace")};e2o(B.content,R);return R};
XMA=function(B){Object.assign(B,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Yup=function(B,R,V){R.signalCache!=null||(R.signalCache={});var e=R.signalCache[V];if(!e){var X=V.split("."),Y,t;e=_.k("web_polysi_immutable_root_fix_killswitch")?!((Y=B.options)==null?0:(t=Y.immutableProps)==null?0:t.has(X[0])):!pMo(B,X[0]);if(X.length>1&&e){var b=B.getPathMutationSignal(X);e=function(){var J=Ta(B.owner,function(){return B.getWithPath([X[0]])}),G,y=(G=b())==null?void 0:G.value;
return{rootWasDefined:J!==void 0,value:y}}}else e=function(){var J=B.getWithPath(X);
return{rootWasDefined:J!==void 0,value:J}};
R.signalCache[V]=e}return e()};
tFo=function(B,R,V,e,X){R=R.parts.map(function(t,b){if(t.type==="literal"){V.partWasDefined!=null||(V.partWasDefined=[]);var J;(J=V.partWasDefined)[b]||(J[b]=t.value!==void 0);return t.value}var G;if(t.type==="method"){var y,S=(y=(G=V.partWasDefined)==null?void 0:G[b])!=null?y:!1;S||(S=t.signature.args.every(function(z){return z.type==="literal"}));
var M=!1,f=!0;G=t.signature.args.map(function(z){if(z.type==="literal")return z.value;if(z.type!=="path")throw Error("Fg`"+z.type);var T=Yup(B,V,z.path);z=T.value;T=T.rootWasDefined;M||(M=T);f&&(f=T);return z});
S||(S=X===1?f:M);V.partWasDefined!=null||(V.partWasDefined={});V.partWasDefined[b]=S;if(!S)return;G=(b=Yup(B,V,t.signature.methodName).value)&&typeof b==="function"?b.apply(e,G):void 0}else y=Yup(B,V,t.path),G=y.value,V.partWasDefined!=null||(V.partWasDefined={}),(S=V.partWasDefined)[b]||(S[b]=G!==void 0||y.rootWasDefined);t.negate&&(G=!G);return G});
if(R.length===1){var Y;return((Y=V.partWasDefined)==null?0:Y[0])?R[0]:h2I}return R.join("")};
WMd=function(B){return typeof B==="object"&&!!B&&"notifyPath"in B&&"canNotifyPath"in B};
b_5=function(B){return typeof B==="object"&&!!B&&"notifyPath"in B};
J7Y=function(B){return"polymerController"in B};
j0o=function(B,R){R=""+lp(R)[0];if(WMd(B))return B.canNotifyPath(R);if(J7Y(B)&&WMd(B.polymerController))return B.polymerController.canNotifyPath(R);if(b_5(B)){var V;return!((V=B.properties)==null||!V[R])}if(J7Y(B)&&b_5(B.polymerController)){var e;return!((e=B.polymerController.properties)==null||!e[R])}return!1};
U4o=function(B,R,V){WMd(B)||b_5(B)?B.notifyPath(R,V):J7Y(B)&&(WMd(B.polymerController)||b_5(B.polymerController))&&B.polymerController.notifyPath(R,V)};
Gfq=function(B,R,V){if(V!==h2I){B.kind==="attribute"||B.target!=="textContent"&&(B.target!=="value"||R.localName!=="input"&&R.localName!=="textarea")||(V=V===void 0?"":V);var e,X=(e=N$S.Polymer)==null?void 0:e.sanitizeDOMValue;X&&(V=X(V,B.target,B.kind,R));if(B.kind==="attribute"){B=B.target;if(B==="class"||B==="name"||B==="slot")R=(0,_.OX)(R);zv(R,V,B)}else if(B=B.target,V!==R[B]||typeof V==="object")R.loggingStatus&&(R.loggingStatus.isDeclarativeExternal=!0,Ux(R.localName,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
R[B]=V,R.loggingStatus&&(R.loggingStatus.isDeclarativeExternal=!1)}};
y7A=function(B,R,V,e){var X=R.parts[0];if(R.parts.length!==1||X.type!=="path"||!j0o(V,R.target))return!1;var Y=_.h(X.path.split(".")),t=Y.next().value,b=Fn(Y);if(!_.k("web_polysi_immutable_root_fix_killswitch")&&pMo(B,t))return!1;e.signalCache!=null||(e.signalCache={});Y=e.signalCache[X.path];var J;Y=(J=Y)==null?void 0:J().value;if((Y==null?void 0:Y.path)!==void 0){e=lp(Y.path);var G=lp(X.path);e=[R.target].concat(_.MI(e.slice(G.length-1)));U4o(V,e,X.negate?!Y.value:Y.value);return!0}var y=a_(B,t);
var S=y.getChangeRecordSignal(b),M=!1;Y=function(){if(!M){var z=Ta(B.owner,function(){return y.getWithPath([])});
M||(M=z!==void 0)}return{value:S(),rootWasDefined:M}};
e.signalCache[X.path]=Y;e.partWasDefined!=null||(e.partWasDefined={});Y=Y();(G=e.partWasDefined)[0]||(G[0]=Y.rootWasDefined);var f=Ta(B.owner,function(){return y.getWithPath(b)});
e.partWasDefined[0]&&Ta(B.owner,function(){return void Gfq(R,V,X.negate?!f:f)});
return!0};
Suo=function(B,R,V,e,X,Y){if(!y7A(B,R,V,e)){var t=tFo(B,R,e,X,Y);Ta(B.owner,function(){return void Gfq(R,V,t)})}};
H_q=function(B,R,V,e,X,Y){V=_.h(V);for(var t=V.next(),b={};!t.done;b={infoIndex:void 0},t=V.next()){t=t.value;var J=t.bindings;b.infoIndex=t.infoIndex;t=t.parentInfo;if(J){J=_.h(J);for(var G=J.next(),y={};!G.done;y={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},G=J.next()){y.b$jscomp$254=G.value;if(b.infoIndex===void 0)throw Error("Gg");y.bindingCtx$jscomp$4={};B.effect(function(S,M){return function(){X&&!X()||Suo(B,S.b$jscomp$254,R[M.infoIndex],S.bindingCtx$jscomp$4,e,Y)}}(y,b))}}t&&H_q(B,R,[t],
e,X,Y)}};
MFo=function(B,R){B=(R.parentInfo?MFo(B,R.parentInfo):B).firstChild;for(var V=0;B;B=B.nextSibling)if(R.parentIndex===V++)return B;throw Error("Hg");};
D4A=function(B,R,V,e){B=document.importNode(B.content,!0);B.__noInsertionPoint=!(e==null?0:e.hasInsertionPoint);for(var X=Array(R.length),Y={},t=0;t<R.length;t++){var b=R[t],J=MFo(B,b);X[t]=J;b.id&&(Y[b.id]=J);if(b.templateInfo){var G=J.parentElement;G&&(G.templateInfo=b.templateInfo,G.parentSignalProxy=V,G.eventListenerHost=e.eventListenerHost,G.stampingEnabled=e.enabledSignal)}G=void 0;if((G=b.events)==null?0:G.length)for(G=0;G<b.events.length;G++){var y=b.events[G];kfS(e.eventListenerHost,J,y.name,
y.value,e.getModel)}}H_q(V,X,R,e.thisCtx,e.enabledSignal,e.methodInvocationRequirement);return{root:B,nodes:X,nodesById:Y}};
lfd=function(B,R){B=B();var V;(V=ffq.ShadyCSS)==null||V.prepareTemplate(B,R);R=onx(B);return{template:B,nodeInfoList:R.nodeInfoList,hasInsertionPoint:R.hasInsertionPoint}};
d4p=function(){z2N=!1;for(var B=dH.length,R=0;R<B;R++){var V=dH[R];if(V)try{V()}catch(e){Promise.resolve().then(function(){throw e;})}}dH.splice(0,B);
afZ+=B};
LMS=function(B){z2N||(z2N=!0,wMI.textContent=(T$_++).toString());dH.push(B);return x4u++};
_.xp=function(B,R,V){wH++;B=R?new vnN(wH,B,R,V):new KMS(wH,B);Tv.set(wH,B);return wH};
Ifq=function(B){(B=Tv.get(B))&&B.cancel()};
Q0I=function(B,R){B=End.get(B);return B?(R=B.get(R))?R:null:null};
_.LJ=function(B,R,V,e){var X=Q0I(B,R);if(!X){X=new quu;var Y=End.get(B);Y||(Y=new Map,End.set(B,Y));Y.set(R,X)}B=V.bind(B);X.run(B,e,void 0)};
_.c7x=function(B,R){var V;(V=Q0I(B,R))==null||V.cancel()};
A7o=function(B){var R;(R=Q0I(B,"doRender"))==null||R.flush()};
vc=function(B){var R;return(R=B.hostElement)!=null?R:B};
i__=function(B){var R=B.indexOf(".");return R===-1?B:B.slice(0,R)};
s0x=function(B,R,V,e,X,Y){Y=(X=(e=Y?i__(R):R)?R:null)?B.get(X):B.__data[R];X&&Y===void 0&&(Y=V[R]);_.OI(B.hostElement,JHx(e)+"-changed",{value:Y,queueProperty:!0,path:X!=null?X:void 0},{bubbles:!1,composed:!1})};
FMS=function(B,R){B.__isReflecting=!0;ggK(B.hostElement,R,B.__data[R]);B.__isReflecting=!1};
r7p=function(B){if(B._onIronRequestResizeNotifications){var R=B._onIronRequestResizeNotifications.bind(B);B._onIronRequestResizeNotifications=function(V){_.ii(V)!==B.hostElement&&R(V)}}B._ariaActiveAttributeChanged&&(B._ariaActiveAttributeChanged=B._ariaActiveAttributeChanged.bind(B.hostElement));
B._activeChanged&&(B._activeChanged=function(V){B.toggles?zv(B.hostElement,V?"true":"false",B.ariaActiveAttribute):B.hostElement.removeAttribute(B.ariaActiveAttribute);B._changedButtonState()});
B._asyncClick&&(B._asyncClick=function(){_.xp(function(){B.hostElement.click()},1)});
!B.keyEventTarget||B.keyEventTarget instanceof EventTarget||(B.keyEventTarget=vc(B.keyEventTarget));B._disabledChanged&&(B._disabledChanged=B._disabledChanged.bind(B.hostElement));B._observeItems&&(B._observeItems=function(V){var e=vc(V);return _.Mr(e).observeNodes(function(X){B._updateItems();B._updateSelected();_.OI(e,"iron-items-changed",X,{bubbles:!1,cancelable:!1})})});
B._updateItems&&B._updateItems===_.KJ._updateItems&&(B._updateItems=function(){var V=_.Mr(B.hostElement).queryDistributedElements(B.selectable||"*");V=Array.prototype.filter.call(V,B._bindFilterItem);B._setItems(V)});
B._computeKeyboardClass&&(B._computeKeyboardClass=function(V){_.nk(B.hostElement,"keyboard-focus",V)});
B.ensureRipple&&(B.ensureRipple=function(V){if(B.hasRipple&&!B.hasRipple()){if(!B._createRipple)return;B._ripple=B._createRipple();B._ripple.noink=B.noink;var e=B._rippleContainer||B.hostElement;e&&_.w(e).appendChild(B._ripple)}var X;if(V&&((X=B._ripple)==null?0:X.uiDownAction)){e=_.w(B._rippleContainer||B.hostElement);var Y;X=(Y=V.composedPath())==null?void 0:Y[0];e.contains(X)&&B._ripple.uiDownAction(V)}});
B._updateMultiselectable&&(B._updateMultiselectable=function(V){V?B.hostElement.setAttribute("aria-multiselectable","true"):B.hostElement.removeAttribute("aria-multiselectable")})};
gnd=function(B,R,V){V=_.h(V);for(var e=V.next();!e.done;e=V.next())M_S(e.value.constructor,B);M_S(R.constructor,B)};
m4d=function(B,R){B=_.h(B);for(var V=B.next();!V.done;V=B.next())if(V=V.value,V.type==="signal"){var e=V.propertyKey;if(R.hasOwnProperty(e)&&R[e]!=null&&V.attributeType===Object){a:{e=R[e].constructor;for(var X=_.h(Z_5),Y=X.next();!Y.done;Y=X.next())if(Y=Y.value,e===Y){e=Y;break a}e=Object}V.attributeType=e}}};
$4Y=function(){};
CEN=function(B){var R;return(R=B.hostElement)!=null?R:B};
PEZ=function(){throw Error("Lg");};
nnK=function(B,R){B.constructor.prototype.useSignals=!0;var V=new B.constructor;gnd(V,B,R.behaviors);m4d(R.reactiveSchemas,V);V={};for(var e=_.h(R.reactiveSchemas),X=e.next();!X.done;X=e.next())X=X.value,X.type==="signal"&&(V[X.propertyKey]=X.attributeType);var Y={copyPropertiesToProto:PEZ,didRegister:!1,typesForSignals:V},t=["disable-upgrade"].concat(_.MI(R.observedAttributes)),b=function(J){I_.call(this,B,R,Y,J)};
_.l(b,I_);_.mh.Object.defineProperties(b,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return t}}});
Y.copyPropertiesToProto=function(){for(var J=0;J<R.behaviors.length;J++)DDd(R.behaviors[J],b.prototype);DDd(B,b.prototype)};
R.legacyOptimizations||Y.copyPropertiesToProto();b.prototype.is=B.is;return b};
ul5=function(B,R){if(Object.getPrototypeOf(R.prototype).constructor!==_.c)throw Error("Mg");R.prototype.is=B.is;return nnK(R.prototype,B)};
O_x=function(B){return B.type==="compute"||B.type==="computeWithMethod"};
oyp=function(B){for(var R=B.reactiveSchemas.filter(O_x),V=new Map,e=new Map,X=new Map,Y=_.h(R),t=Y.next();!t.done;t=Y.next())t=t.value,V.set(t.propertyKey,t),e.set(t.propertyKey,[]),X.set(t.propertyKey,0);Y=0;R=_.h(R);for(t=R.next();!t.done;t=R.next()){t=t.value;for(var b=_.h(t.type==="computeWithMethod"?t.method.args:t.args),J=b.next();!J.done;J=b.next())J=J.value,J.type!=="literal"&&(J=J.path.split(".")[0],e.has(J)&&(e.get(J).push(t.propertyKey),X.set(t.propertyKey,X.get(t.propertyKey)+1),Y++))}t=
[].concat(_.MI(e.keys())).filter(function(G){return X.get(G)===0});
for(R=[];t.length;)for(b=t.shift(),R.push(V.get(b)),b=_.h(e.get(b)),J=b.next();!J.done;J=b.next())J=J.value,X.set(J,X.get(J)-1),Y--,X.get(J)===0&&t.push(J);V=B.reactiveSchemas.filter(function(G){return!O_x(G)});
B.reactiveSchemas=[].concat(_.MI(V),_.MI(R))};
BFZ=function(B,R){if(R.properties)for(var V=_.h(Object.entries(R.properties)),e=V.next();!e.done;e=V.next()){var X=_.h(e.value);e=X.next().value;X=X.next().value;B.properties[e]=typeof X==="function"?{type:X}:X}R.observers&&B.observers.push.apply(B.observers,_.MI(R.observers));R.disabledPolySiReactions&&B.disabledPolySiReactions.push.apply(B.disabledPolySiReactions,_.MI(R.disabledPolySiReactions))};
RHA=function(B,R){for(var V=R.length-1;V>=0;V--){var e=R[V];Array.isArray(e)?RHA(B,e):B.indexOf(e)<0&&B.unshift(e)}};
VZA=function(B,R){B.reactiveSchemas=B.reactiveSchemas.filter(function(V){return V.type==="observe"&&R.includes(V.method.methodName)||O_x(V)&&R.includes(V.propertyKey)?!1:!0})};
XsY=function(B,R){var V=R.prototype,e,X,Y={is:B.is,reactiveSchemas:[],observedAttributes:[],behaviors:[UDd.InjectBehavior,kp.prototype],disableElementRegistration:B.disableElementRegistration,provide:(e=B.providers)!=null?e:[],reactivityMode:B.reactivityMode,signalProperties:(X=V.signalProperties)!=null?X:[]};"template"in R?Y.templateGetter=function(){return R.template}:B.getTemplate&&(Y.templateGetter=B.getTemplate);
V.behaviors&&RHA(Y.behaviors,V.behaviors);eHp(Y,R);return Y};
eHp=function(B,R){for(var V=R.prototype,e={properties:{},observers:[],disabledPolySiReactions:[]},X=_.h(B.behaviors),Y=X.next();!Y.done;Y=X.next())BFZ(e,Y.value);BFZ(e,V);if(B.signalProperties)for(V=_.h(B.signalProperties),X=V.next();!X.done;X=V.next())delete e.properties[X.value];V=_.h(Object.entries(e.properties));for(X=V.next();!X.done;X=V.next()){Y=_.h(X.value);X=Y.next().value;Y=Y.next().value;var t=void 0;if((t=B.signalProperties)==null||!t.includes(X)){t=void 0;var b=B,J=Y.type;if(!J)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{J=Reflect.getMetadata("design:type",R,X);for(var G=_.h(psx),y=G.next();!y.done;y=G.next())if(y=y.value,J===y){J=y;break a}J=Object}else J=String;Y.computed||Y.selector||(b.reactiveSchemas.push({type:"signal",propertyKey:X,value:Y.value,attributeType:J,readOnly:Y.readOnly}),b.observedAttributes.push(_.JZ(X)));Y.reflectToAttribute&&b.reactiveSchemas.push({type:"reflect",propertyKey:X});if(Y.computed){J=r5o(Y.computed);if(!J)throw Error("Ng");b.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:X,method:J,value:Y.value})}Y.observer&&b.reactiveSchemas.push({type:"observe",method:{methodName:Y.observer,args:[{type:"path",path:X}]}});Y.notify&&b.reactiveSchemas.push({type:"notify",propertyKey:X});Y.selector&&b.reactiveSchemas.push({type:"redux",propertyKey:X,selector:Y.selector,selectorArgs:(t=Y.selectorArgs)!=null?t:[]})}}YAK&&oyp(B);R=_.h(e.observers);for(X=R.next();!X.done;X=R.next())V=B,X=X.value,(Y=r5o(X))?V.reactiveSchemas.push({type:"observe",method:Y}):console.log('Warning: unable to parse observe declaration: "'+
X+'"');VZA(B,e.disabledPolySiReactions)};
hHI=function(B,R){for(var V=0;V<R.length;V++){var e=R[V],X=void 0;(X=e).showHideApi!=null||(X.showHideApi={});X=void 0;!!B!==!((X=e.showHideApi)==null||!X.hideTemplateChildren)&&(e.nodeType===Node.TEXT_NODE?B?(e.showHideApi.polymerTextContent=e.textContent,e.textContent=""):(X=void 0,e.textContent=(X=e.showHideApi.polymerTextContent)!=null?X:null):e instanceof Element&&e.localName==="slot"?B?(e.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.OX)((0,_.OX)(e).parentNode).replaceChild(e.showHideApi.polymerReplaced,
e)):(X=e.showHideApi.polymerReplaced)&&(0,_.OX)((0,_.OX)(X).parentNode).replaceChild(e,X):e instanceof HTMLElement&&e.style&&(B?(e.showHideApi.polymerDisplay=e.style.display,e.style.display="none"):e.style.display=e.showHideApi.polymerDisplay));e.showHideApi.hideTemplateChildren=B;e.showHideChildren&&e.showHideChildren(B)}};
WEY=function(){if(!tZN){var B=document.createElement("style");B.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(B);tZN=!0}};
Ex=function(){return _.k("disable_hidden_dom_if_using_stamper")||_.k("creator_disable_hidden_dom_if_using_stamper")};
b3N=function(B,R){var V=_.QL().getState();return R?B.apply(null,[V].concat(_.MI(R))):B(V)};
U$q=function(){if(J05)return J05;var B=_.h(_.WU(0,void 0,"Nl6eIe")),R=B.next().value;B.next();var V=B.next().value;_.QL().subscribe(function(){j3x(V)});
return J05=R};
j3x=function(B){_.k("delay_redux_signal_update_killswitch")?B(function(R){return R+1}):NFq||(NFq=!0,Promise.resolve().then(function(){B(function(R){return R+1});
NFq=!1}))};
_.QL=function(){return GR5.getAppStore()};
qU=function(B,R){return GR5.getSelectFn()(B,R)};
_.cc=function(B){GR5.getDispatchFn()(B)};
y0p=function(B,R){var V={},e;for(e in B)V[e]=R(B[e],e);return V};
_.AM=function(B,R){return function(){var V;return(V=_.wA(B))!=null?V:R}};
_.ip=function(B,R){var V=Object.assign({},B),e;for(e in R)R.hasOwnProperty(e)&&(V[e]=_.AM(B[e],R[e]));return V};
SAK=function(B,R,V){B instanceof Element&&(V.debugName||(V.debugName="<"+B.tagName.toLowerCase()+(B.tagName.includes("-")?">":"."+B.className+">")),_.k("ytwiz_enable_debug_component_props")&&(B.debugProps||(B.debugProps=y0p(R,function(e){return function(){return e()}}))))};
_.sx=function(B,R){var V=function(e){var X={stack:[],error:void 0,hasError:!1};try{var Y=H35={};var t=MZK(X,gXq("component()")),b;if(((b=V)==null?0:b.idomCompat)&&e.renderedFromIdom){t==null||t.attr("idomCompat",!0);var J,G=typeof V.idomCompat==="object"?(J=V)==null?void 0:J.idomCompat.callbacks:{},y=_.h(kRI(e,G,V.debugName)),S=y.next().value;y.next();var M=y.next().value,f=D$x(B,S);Y.privateValue=f;H35=void 0;SAK(f,S,V);t==null||t.attr("debugName",V.debugName);var z=Rbo(f),T=Array.isArray(z)?z[0]:
z;T[pQ]||(T[pQ]={});T[pQ].updateSignalsFromIdomProps=M;return f}var L=y0p(e,fZ_);var Q=D$x(B,L);Y.privateValue=Q;H35=void 0;SAK(Q,L,V);t==null||t.attr("debugName",V.debugName);return Q}catch(q){X.error=q,X.hasError=!0}finally{lZA(X)}};
V.debugName=R===void 0?"":R;return V};
D$x=function(B,R){B=B(R);return WE(B)};
zHA=function(B,R){B[R]||(B=new _.H8("IDOM interop setter undefined. Key:",R),_.Tn(B))};
fZ_=function(B,R){return R==="children"||R==="ref"||typeof B==="function"||B===void 0?B:function(){return _.wA(B)}};
kRI=function(B,R,V){var e={},X={},Y={},t={},b;for(b in B){t={key$jscomp$886:t.key$jscomp$886};t.key$jscomp$886=b;var J=B[t.key$jscomp$886];if(t.key$jscomp$886==="children"||t.key$jscomp$886==="ref")e[t.key$jscomp$886]=J;else if(typeof J==="function")t.key$jscomp$886 in R||J.length>0?(Y[t.key$jscomp$886]=J,e[t.key$jscomp$886]=function(y){return function(){return Y[y.key$jscomp$886].apply(Y,_.MI(_.HB.apply(0,arguments)))}}(t)):e[t.key$jscomp$886]=J;
else if(!(B[t.key$jscomp$886]===void 0&&t.key$jscomp$886 in R)){var G=_.h(_.WU(B[t.key$jscomp$886],{debugName:"__cwis:"+V+":"+t.key$jscomp$886},"cEBU8c"));J=G.next().value;G=G.next().value;e[t.key$jscomp$886]=J;X[t.key$jscomp$886]=G}}return[e,X,function(y){var S={},M;for(M in y)S={key$jscomp$887:S.key$jscomp$887,val$jscomp$117:void 0},S.key$jscomp$887=M,S.val$jscomp$117=y[S.key$jscomp$887],S.key$jscomp$887!=="children"&&S.key$jscomp$887!=="ref"&&(typeof S.val$jscomp$117==="function"?S.key$jscomp$887 in
R?Y[S.key$jscomp$887]=S.val$jscomp$117:S.val$jscomp$117.length>0&&(Y[S.key$jscomp$887]=S.val$jscomp$117,_.KE(new _.H8("Callback detected that was not set in the idomCompat callbacks map. Key:",S.key$jscomp$887))):S.key$jscomp$887 in R&&S.val$jscomp$117===void 0||(zHA(X,S.key$jscomp$887),Ga(function(f){return function(){X[f.key$jscomp$887](f.val$jscomp$117)}}(S))))}]};
wsA=function(B,R,V){var e=foA(B.prototype,aZo,B.prototype.behaviors);e.prototype.is=R;e.prototype.localName=R;V&&d$I(e,V);return function(X){X&&(e.prototype.hostElement=X);var Y=new e;Y.root=Y;Y.hostElement=X;return Y}};
d$I=function(B,R){var V;Object.defineProperty(B.prototype,"_template",{get:function(){V===void 0&&(V=R());return V},
set:function(e){V=e},
configurable:!0,enumerable:!0})};
KEp=function(B,R,V,e){function X(){if(!f){for(var z=new Set,T=_.h(y),L=T.next();!L.done;L=T.next()){L=L.value;for(var Q=_.h(Object.getOwnPropertyNames(L)),q=Q.next();!q.done;q=Q.next()){q=q.value;var m=void 0,g=(m=Object.getOwnPropertyDescriptor(L,q))==null?void 0:m.value;g&&g instanceof Function&&!FX(q)&&(!b[q]||_.k("polymer_forward_method_killswitch"))&&z.add(q)}}T=_.h(Object.entries(Object.getOwnPropertyDescriptors(B.prototype)));for(L=T.next();!L.done;L=T.next())Q=_.h(L.value),L=Q.next().value,
Q=Q.next().value,Q.value instanceof Function&&!FX(L)&&z.add(L);f=z}return f}
TFx(B,R,e==null?void 0:e.providers);lou(B.prototype,B,!0);var Y=wsA(B,R,V),t,b=(t=B.prototype.properties)!=null?t:{},J,G,y=(G=(J=B.prototype.behaviors)==null?void 0:J.flat(Infinity))!=null?G:[];V=_.h(y);for(t=V.next();!t.done;t=V.next())b=Object.assign({},t.value.properties,b);var S=[].concat(_.MI(x$d),_.MI(Object.keys(b).map(function(z){return _.JZ(z)}))),M=!1,f;
return{ctor:function(z,T){var L=Y(z),Q,q;z=[].concat(_.MI((Q=e==null?void 0:e.allowedProps)!=null?Q:[]),_.MI((q=e==null?void 0:e.allowedPropsFromBehaviors)!=null?q:[]));L.allowedProps=z.length>0?z:void 0;Q={};q=_.h(S);for(z=q.next();!z.done;z=q.next())z=z.value,Q[z]=_.jk(z);L.__dataAttributes=Q;var m=L.ready.bind(L);L.ready=function(){T.beforeReady();m();if(JM(R)&&!M){var g=L.__templateInfo;if(g==null?0:g.hostProps){g=_.h(Object.keys(g.hostProps));for(var Vu=g.next();!Vu.done;Vu=g.next())Ux(R,Vu.value,
"PROPERTY_ACCESS_GET_INTERNAL")}M=!0}};
L._overrideLegacyUndefined=!0;return L},
props:b,observedAttributes:S,getInitialMethods:X,getPropsToForwardBeforeRegister:function(){for(var z=[],T=new Set,L=_.h(Object.keys(b)),Q=L.next();!Q.done;Q=L.next())Q=Q.value,z.push([Q,b[Q].readOnly]),T.add(Q);L=X();Q=_.h(Object.keys(Object.getOwnPropertyDescriptors(B.prototype)));for(var q=Q.next();!q.done;q=Q.next())q=q.value,!LEx(q)||L.has(q)||T.has(q)||(z.push([q,!1]),T.add(q));T=_.h(vyN);for(L=T.next();!L.done;L=T.next())z.push([L.value,!0]);return z},
getPropsToForwardBeforeReady:function(z){for(var T=[],L=_.h(Object.entries(z)),Q=L.next();!Q.done;Q=L.next()){var q=_.h(Q.value);Q=q.next().value;q=q.next().value;if(LEx(Q)&&!(q instanceof Function)&&(T.push([Q,!1]),JM(R))){var m=q=void 0;(m=(q=z)._createPropertyAccessor)==null||m.call(q,Q)}}return T},
shouldForwardProp:LEx,shouldLog:JM}};
TFx=function(B,R,V){No5(B,V);B.prototype.behaviors.unshift(IZ_);if(Rd_()){if(JM(R)){var e;(e=B.prototype).behaviors!=null||(e.behaviors=[]);B.prototype.behaviors.unshift(p0_())}YLu(B)}_.v(kp.prototype)(B.prototype,"__templateHelpers")};
FX=function(B){return Eyd.has(B)||B.startsWith("__compute__")};
LEx=function(B){return!FX(B)&&!B.startsWith("_")&&!B.endsWith("_")};
i3d=function(B,R){function V(){var M=J();M=_.h(M);for(var f=M.next();!f.done;f=M.next()){var z=_.h(f.value);f=z.next().value;z=z.next().value;Q3K(S.prototype,f,z)}e=!0}
var e=!1,X=B.ctor,Y=B.getInitialMethods,t=B.observedAttributes,b=B.getPropsToForwardBeforeReady,J=B.getPropsToForwardBeforeRegister,G=B.shouldForwardProp,y=B.shouldLog,S=function(){var M=HTMLElement.call(this)||this;M.didForwardDynamicProps=!1;M.loggingStatus={};e||V();M.inst=X(M,{beforeReady:function(){M.didForwardDynamicProps||(M.forwardDynamicProps(),M.didForwardDynamicProps=!0)}});
M.controllerProxy=edI(M.inst,R);M.forwardMethods();return M};
_.l(S,HTMLElement);S.prototype.forwardMethods=function(){for(var M=this,f=_.h(this.inst.getExtraMethodsToForward()),z=f.next(),T={};!z.done;T={method$jscomp$62:void 0},z=f.next()){var L=_.h(z.value);z=L.next().value;L=L.next().value;T.method$jscomp$62=L;this[z]=function(Q){return function(){return Q.method$jscomp$62.call.apply(Q.method$jscomp$62,[M.inst].concat(_.MI(_.HB.apply(0,arguments))))}}(T)}f=_.h(Y());
for(T=f.next();!T.done;T=f.next())T=T.value,G(T)&&qAZ(this,T),y(R)&&!FX(T)&&c0_(this.inst,T)};
S.prototype.forwardDynamicProps=function(){var M=b(this.inst);M=_.h(M);for(var f=M.next();!f.done;f=M.next()){var z=_.h(f.value);f=z.next().value;z=z.next().value;Q3K(this,f,z);y(R)&&!FX(f)&&A0u(this.inst,f)}};
S.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
S.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
S.prototype.attributeChangedCallback=function(M,f,z){this.inst.attributeChangedCallbackWrapper(M,f,z)};
_.mh.Object.defineProperties(S.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return R}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.mh.Object.defineProperties(S,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return t}}});
customElements.define(R,S)};
Q3K=function(B,R,V){B.hasOwnProperty(R)||Object.defineProperty(B,R,{get:function(){var e,X=((e=B.is)!=null?e:B.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Ux(X,R,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,e=this.polymerController[R],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,e},
set:function(e){if(!V){var X,Y=((X=B.is)!=null?X:B.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Ux(Y,R,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=R,this.loggingStatus.bypassProxyController=!0,this.polymerController[R]!==e&&(X={},this.polymerController.setProperties((X[R]=e,X)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
qAZ=function(B,R,V){var e=B.polymerController;B[R]=function(){var X=_.HB.apply(0,arguments);B.loggingStatus.currentExternalCall=R;B.loggingStatus.bypassProxyController=!0;var Y,t=((Y=B.is)!=null?Y:B.tagName).toLowerCase();Ux(t,R,"PROPERTY_ACCESS_CALL_EXTERNAL");var b;Y=(b=V!=null?V:e[R])==null?void 0:b.call.apply(b,[e].concat(_.MI(X)));B.loggingStatus.currentExternalCall=void 0;B.loggingStatus.bypassProxyController=!1;return Y}};
c0_=function(B,R){var V=B.hostElement,e=B[R];B[R]=function(){var X=_.HB.apply(0,arguments);if(V.loggingStatus.currentExternalCall!==R){var Y,t=((Y=V.is)!=null?Y:V.tagName).toLowerCase();Ux(t,R,"PROPERTY_ACCESS_CALL_INTERNAL")}return e==null?void 0:e.apply(B,X)}};
A0u=function(B,R){var V=Object.getOwnPropertyDescriptor(B,R);V&&!V.get&&Object.defineProperty(B,R,{get:function(){X0Z(B.hostElement,R);return V.value},
set:function(e){NU(B.hostElement,R);V.value=e}})};
s3Z=function(B){return _.k("poly_si_dom_repeat_detached_fix_killswitch")||B.tagName!=="PS-DOM-REPEAT"?B.tagName==="DOM-REPEAT":!0};
r0d=function(B,R){var V=FEd(B);B instanceof Element&&V.unshift(B);B=_.h(V.filter(s3Z));for(var e=B.next();!e.done;e=B.next()){var X=void 0;e=_.h((X=e.value.__instances)!=null?X:[]);for(X=e.next();!X.done;X=e.next())if(X=X.value,X.root){X=Array.from(X.root.children);X=_.h(X);for(var Y=X.next();!Y.done;Y=X.next())V.push.apply(V,_.MI(r0d(Y.value,R)))}}return V.filter(function(t){return t.usePatchedLifecycles&&t.lifecycleIsConnected===R})};
FEd=function(B){var R=null;B instanceof Element?R=Element.prototype.querySelectorAll:B instanceof DocumentFragment&&(R=DocumentFragment.prototype.querySelectorAll);return R?Array.from(R.call(B,"*")):[]};
rH=function(B){tI(function(){for(var R=_.h(r0d(B,!1)),V=R.next();!V.done;V=R.next()){V=V.value;V.lifecycleIsConnected=!0;try{var e=void 0,X=void 0,Y=void 0,t=void 0;(e=(t=V.polymerController)!=null?t:V)==null||(Y=(X=e).connectedCallback)==null||Y.call(X)}catch(b){_.Tn(b)}}})};
gH=function(B){tI(function(){for(var R=_.h(r0d(B,!0)),V=R.next();!V.done;V=R.next()){V=V.value;V.lifecycleIsConnected=!1;try{var e=void 0,X=void 0,Y=void 0,t=void 0;(e=(t=V.polymerController)!=null?t:V)==null||(Y=(X=e).disconnectedCallback)==null||Y.call(X)}catch(b){_.Tn(b)}}})};
nyS=function(){if(!gyK){gyK=!0;var B=[Node];Zq&&B.push(Zq.Wrapper);var R=Node.prototype.insertBefore,V=Node.prototype.removeChild;B=_.h(B);for(var e=B.next(),X={};!e.done;X={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},e=B.next())e=e.value,X.nativeInsertBefore=e.prototype.insertBefore,e.prototype.insertBefore=function(t){return function(b,J){if(b instanceof DocumentFragment){var G=Array.from(b.children);b=t.nativeInsertBefore.call(this,b,J);
if(this.isConnected&&t.nativeInsertBefore===R)for(J=_.h(G),G=J.next();!G.done;G=J.next())rH(G.value);return b}G=b instanceof Element&&b.isConnected;J=t.nativeInsertBefore.call(this,b,J);G&&gH(b);this.isConnected&&rH(b);return J}}(X),X.nativeAppendChild=e.prototype.appendChild,e.prototype.appendChild=function(t){return function(b){if(b instanceof DocumentFragment){var J=Array.from(b.children);
b=t.nativeAppendChild.call(this,b);if(this.isConnected){J=_.h(J);for(var G=J.next();!G.done;G=J.next())rH(G.value)}return b}J=b instanceof Element&&b.isConnected;G=t.nativeAppendChild.call(this,b);J&&gH(b);this.isConnected&&rH(b);return G}}(X),X.nativeRemoveChild=e.prototype.removeChild,e.prototype.removeChild=function(t){return function(b){var J=b instanceof Element&&b.isConnected,G=t.nativeRemoveChild.call(this,b);
J&&V===t.nativeRemoveChild&&gH(b);return G}}(X),X.nativeReplaceChild=e.prototype.replaceChild,e.prototype.replaceChild=function(t){return function(b,J){if(b instanceof DocumentFragment){var G=Array.from(b.children);
b=t.nativeReplaceChild.call(this,b,J);if(this.isConnected)for(gH(J),J=_.h(G),G=J.next();!G.done;G=J.next())rH(G.value);return b}G=b instanceof Element&&b.isConnected;var y=this.isConnected,S=t.nativeReplaceChild.call(this,b,J);y&&gH(J);G&&gH(b);y&&rH(b);return S}}(X);
B=[Element];Zq&&B.push(Zq.Wrapper);B=_.h(B);e=B.next();for(X={};!e.done;X={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},e=B.next())e=e.value,e.prototype.before=Z3A(e.prototype.before),e.prototype.after=Z3A(e.prototype.after),X.nativeReplaceWith=e.prototype.replaceWith,e.prototype.replaceWith=function(t){return function(){var b=_.HB.apply(0,arguments),J=_.h(m$I(b)),G=J.next().value,
y=J.next().value;J=this.isConnected;t.nativeReplaceWith.apply(this,b);b=_.h(y);for(y=b.next();!y.done;y=b.next())gH(y.value);if(J)for(gH(this),G=_.h(G),J=G.next();!J.done;J=G.next())J=J.value,J instanceof Element&&rH(J)}}(X),X.nativeRemove=e.prototype.remove,e.prototype.remove=function(t){return function(){var b=this.isConnected;
t.nativeRemove.call(this);b&&gH(this)}}(X),X.nativeInsertAdjacentElement=e.prototype.insertAdjacentElement,e.prototype.insertAdjacentElement=function(t){return function(b,J){var G=J.isConnected;
b=t.nativeInsertAdjacentElement.call(this,b,J);G&&gH(J);b.isConnected&&rH(b);return b}}(X),X.nativeSetAttribute=e.prototype.setAttribute,e.prototype.setAttribute=function(t){return function(b,J){var G=$$d(this);
if(!G.usePatchedLifecycles)return t.nativeSetAttribute.call(this,b,J);var y=this.getAttribute(b);t.nativeSetAttribute.call(this,b,J);J=this.getAttribute(b);CMo(G,b,y,J)}}(X),X.nativeRemoveAttribute=e.prototype.removeAttribute,e.prototype.removeAttribute=function(t){return function(b){var J=$$d(this);
if(!J.usePatchedLifecycles)return t.nativeRemoveAttribute.call(this,b);var G=this.getAttribute(b);t.nativeRemoveAttribute.call(this,b);G!==null&&CMo(J,b,G,null)}}(X),X.nativeToggleAttribute=e.prototype.toggleAttribute,e.prototype.toggleAttribute=function(t){return function(b,J){var G=$$d(this);
if(!this.usePatchedLifecycles)return t.nativeToggleAttribute.call(this,b,J);var y=this.getAttribute(b),S=y!==null;J=t.nativeToggleAttribute.call(this,b,J);J!==S&&CMo(G,b,y,J?"":null);return J}}(X);
B=[Document,DocumentFragment,Element,ShadowRoot];Zq&&B.push(Zq.Wrapper);B=_.h(B);for(X=B.next();!X.done;X=B.next())X=X.value,X.prototype.prepend=Z3A(X.prototype.prepend),X.prototype.append=Z3A(X.prototype.append);(Zq==null?void 0:Zq.noPatch)===!0&&PMu();document.readyState==="complete"?rH(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&rH(document.body)});
var Y=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");Y&&Y.get&&Y.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:Y.enumerable,configurable:!0,get:Y.get,set:function(t){t||gH(this);Y.set.call(this,t);return t}})}};
Z3A=function(B){return function(){var R=_.HB.apply(0,arguments),V=_.h(m$I(R)),e=V.next().value;V=V.next().value;B.apply(this,R);R=_.h(V);for(V=R.next();!V.done;V=R.next())gH(V.value);if(this.isConnected)for(e=_.h(e),R=e.next();!R.done;R=e.next())R=R.value,R instanceof Element&&rH(R)}};
PMu=function(){for(var B=_.h(uIp),R=B.next();!R.done;R=B.next()){R=R.value.prototype;for(var V=_.h(O3N),e=V.next();!e.done;e=V.next()){e=e.value;var X=Object.getOwnPropertyDescriptor(R,e);X&&Object.defineProperty(R,"__shady_native_"+e,X)}}};
CMo=function(B,R,V,e){var X,Y;if((X=B.polymerController)==null?0:(Y=X.observedAttributes)==null?0:Y.includes(R))if(B=B.polymerController,B.attributeChangedCallbackWrapper)B.attributeChangedCallbackWrapper.call(B,R,V,e);else{var t;(t=B.attributeChangedCallback)==null||t.call(B,R,V,e)}};
m$I=function(B){var R=[],V=[];B=_.h(B);for(var e=B.next();!e.done;e=B.next())e=e.value,e instanceof Element&&e.isConnected&&V.push(e),e instanceof DocumentFragment?R.push.apply(R,_.MI(Array.from(e.children))):R.push(e);return[R,V]};
$$d=function(B){return!(B instanceof Element)&&B.node instanceof Element?B.node:B};
o4I=function(B,R){var V=R?["children"].concat(_.MI(R)):["children"];R=[];V=_.h(V);for(var e=V.next();!e.done;e=V.next()){var X=e.value;if(B.hasOwnProperty(X)){e=B[X];e=typeof e==="function"?e():e;e=WE(Array.isArray(e)?e:[e]).flat();if(X!=="children"){X=JHx(X);for(var Y=_.h(e),t=Y.next();!t.done;t=Y.next())t=t.value,t instanceof Element&&t.setAttribute("slot",X)}R.push(e)}}R.length===0?B=[]:(B=WE(_.N("div",null,R)),B=Array.from(B.childNodes));return B};
RDu=function(B,R,V){var e={};_.za(function(){var X={},Y;for(Y in R)if(R.hasOwnProperty(Y)){var t=void 0,b=void 0;if(!(((t=V.slotProps)==null?0:t.includes(Y))||Y==="children"||((b=V.callbackProps)==null?0:b.includes(Y))||Y==="ref")&&(t=_.wA(R[Y]),e[Y]!==t)){e[Y]=t;b=void 0;var J=(b=B.hostElement)!=null?b:B;BaY.has(Y)&&(J[Y]=t);X[Y]=t}}Ga(function(){if(B.setProperties)B.setProperties(X);else for(var G=_.h(Object.entries(X)),y=G.next();!y.done;y=G.next()){var S=_.h(y.value);y=S.next().value;S=S.next().value;
B[y]=S}})})};
eD_=function(B,R,V,e){var X=o4I(V,e.slotProps),Y=_.k("web_wcw_disable_slot_host_shady_dom_wrap")?B:(0,_.OX)(B);X=_.h(X);for(var t=X.next();!t.done;t=X.next())Y.appendChild(t.value);RDu(R,V,e);e=_.h(e.callbackProps||[]);X=e.next();for(Y={};!X.done;Y={kebabEventName:void 0,eventListener:void 0},X=e.next())t=X=X.value,String(X).substring(0,2)==="on"&&V[t]?(Y.kebabEventName=JHx(String(X).substring(2)),Y.eventListener=V[t],B.addEventListener(Y.kebabEventName,Y.eventListener),_.aK(function(y){return function(){B.removeEventListener(y.kebabEventName,
y.eventListener)}}(Y))):R[t]=V[t];
if(V.ref){V=_.h(VWo(V.ref));var b=V.next().value,J=V.next().value,G=R.attached.bind(R);R.attached=function(){b(B);G()};
_.aK(function(){J()})}};
VWo=function(B){if(typeof B==="function"){var R;return[function(V){R=B(V)},
function(){var V;(V=R)==null||V()}]}if(!B.onRender||!B.onUnmount)throw Error("Rg");
return[B.onRender,B.onUnmount]};
hDK=function(B,R,V,e,X){e=e===void 0?{}:e;var Y=Xgp,t=!1;Y?(t=!0,Xgp=void 0):(pg5=R,Y=document.createElement(R),pg5=void 0);var b=Y;b.usePatchedLifecycles=!0;b.lifecycleIsConnected=!1;Y.loggingStatus={};var J=Ygu(B,R,Y,e,X);_.aK(function(){b.lifecycleIsConnected&&(b.lifecycleIsConnected=!1,J.disconnectedCallback())});
t||eD_(Y,J,V,e);return Y};
Ygu=function(B,R,V,e,X){X=X===void 0?KEp:X;tWS[R]!=null||(tWS[R]=X(B,R,e==null?void 0:e.getTemplate,e));var Y=tWS[R],t=Y.ctor;X=Y.getInitialMethods;var b=Y.getPropsToForwardBeforeReady;B=Y.getPropsToForwardBeforeRegister;e=Y.shouldForwardProp;var J=Y.observedAttributes,G=Y.shouldLog,y=t(V,{beforeReady:function(){var S=y;S._takeAttributes?S._takeAttributes():S.setPropertiesFromInitialAttributeValues&&S.setPropertiesFromInitialAttributeValues();S=_.h(b(V.polymerController));for(var M=S.next();!M.done;M=
S.next()){var f=_.h(M.value);M=f.next().value;f=f.next().value;Q3K(V,M,f);G(R)&&!FX(M)&&A0u(V.polymerController,M)}V.polymerController=edI(y,R)}});
V.polymerController=y;V.polymerController.observedAttributes=J;Y=_.h(y.getExtraMethodsToForward());for(t=Y.next();!t.done;t=Y.next())J=_.h(t.value),t=J.next().value,J=J.next().value,qAZ(V,t,J);X=_.h(X());for(Y=X.next();!Y.done;Y=X.next())Y=Y.value,e(Y)&&qAZ(V,Y),G(R)&&!FX(Y)&&c0_(y,Y);B=_.h(B());for(e=B.next();!e.done;e=B.next())X=_.h(e.value),e=X.next().value,X=X.next().value,Q3K(V,e,X);return y};
bbd=function(B,R){return ma===R?(B.isInert=!0,ma="",!0):Wud===R?(B.isInert=!0,Wud="",!0):!1};
JLS=function(B){var R=$p;$p=B;return R};
UZ5=function(B){if(CJ.has(B))Wud=B;else if(Pc.has(B)&&$p&&jeo($p)===B){var R;(R=$p)._numRenders!=null||(R._numRenders=0);$p._numRenders++;if($p._numRenders>1)throw Error("Sg");return $p}};
Na_=function(B){CJ.has(jeo(B))?Wud=jeo(B):Pc.has(jeo(B))&&$p!==B&&(B._isInert=!0)};
jeo=function(B){var R;return(R=B==null?void 0:B.tagName.toLowerCase())!=null?R:""};
G5p=function(B,R){if(B.componentType===HU)throw Error("Tg");Pc.add(R);var V=function(){var e=HTMLElement.call(this)||this;e.is=R;if(pg5===R)return e.isInert=!0,e;e.createElement();return e};
_.l(V,HTMLElement);V.prototype.createElement=function(){if(!this.isInert){Xgp=this;var e=_.h(aPA(function(){return _.N(B,null)})).next().value;
Xgp=void 0;XMA(this);return e}};
customElements.define(R,V)};
Sgd=function(B,R,V,e,X){B.prototype.is=R;(e==null?0:e.useSink)?yLK(B,R,V,e,X):(V=KEp(B,R,V,e),i3d(V,R));return B};
yLK=function(B,R,V,e,X){nyS();var Y=_.sx(function(t){return hDK(B,R,t,Object.assign({},e,{getTemplate:V}),X)},"a");
G5p(Y,R);return Y};
MWS=function(B){return!HbI.has(B)};
fsS=function(B,R,V,e){function X(){if(!S){for(var M=new Set(k5d),f=_.h(Y.behaviors),z=f.next();!z.done;z=f.next()){z=z.value;for(var T=_.h(Object.getOwnPropertyNames(z)),L=T.next();!L.done;L=T.next()){L=L.value;var Q=void 0,q=(Q=Object.getOwnPropertyDescriptor(z,L))==null?void 0:Q.value;q&&q instanceof Function&&(!G[L]||_.k("polymer_forward_method_killswitch"))&&M.add(L)}}f=_.h(Object.entries(Object.getOwnPropertyDescriptors(B.prototype)));for(z=f.next();!z.done;z=f.next())T=_.h(z.value),z=T.next().value,
T=T.next().value,T.value instanceof Function&&M.add(z);S=M}return S}
var Y=XsY({is:R,disableElementRegistration:!1,getTemplate:V,providers:e==null?void 0:e.providers,reactivityMode:e==null?void 0:e.reactivityMode},B);if((e==null?0:e.allowedProps)||(e==null?0:e.allowedPropsFromBehaviors)){var t,b;Y.allowedProps=[].concat(_.MI((t=e.allowedProps)!=null?t:[]),_.MI((b=e.allowedPropsFromBehaviors)!=null?b:[]))}var J=ul5(Y,B);R=J.observedAttributes;var G={};V=_.h(Y.reactiveSchemas);for(e=V.next();!e.done;e=V.next())if(e=e.value,e.type==="signal")G[e.propertyKey]={readOnly:e.readOnly},
e.readOnly&&(G[w0_(e.propertyKey)]={readOnly:!0});else if(e.type==="compute"||e.type==="computeWithMethod"||e.type==="redux")G[e.propertyKey]={readOnly:!0};var y=Y.reactiveSchemas.length,S;return{ctor:function(M,f){M=new J(M);M.beforeReady=f.beforeReady;return M},
props:G,observedAttributes:R,getInitialMethods:X,getPropsToForwardBeforeRegister:function(){for(var M=[],f=new Set,z=_.h(DZ5),T=z.next();!T.done;T=z.next())T=T.value,M.push([T,T!=="observers"&&T!=="properties"]),f.add(T);z=_.h(Object.keys(G));for(T=z.next();!T.done;T=z.next())T=T.value,M.push([T,G[T].readOnly]),f.add(T);z=X();T=_.h(Object.keys(Object.getOwnPropertyDescriptors(B.prototype)));for(var L=T.next();!L.done;L=T.next())L=L.value,!MWS(L)||z.has(L)||f.has(L)||(M.push([L,!1]),f.add(L));M.push(["allowedProps",
!0]);return M},
getPropsToForwardBeforeReady:function(M){var f=[];M=_.h(Object.keys(M));for(var z=M.next();!z.done;z=M.next()){z=z.value;var T=X();MWS(z)&&!T.has(z)&&f.push([z,!1])}M=_.h(Y.reactiveSchemas.slice(y));for(z=M.next();!z.done;z=M.next())z=z.value,z.type!=="compute"&&z.type!=="computeWithMethod"&&z.type!=="redux"&&z.type!=="signal"||f.push([z.propertyKey,z.type==="signal"?z.readOnly:!0]);return f},
shouldForwardProp:MWS,shouldLog:JM}};
_.F=function(B,R,V,e){var X,Y,t=(Y=(X=e)==null?void 0:X.mode)!=null?Y:0;e!=null||(e={});var b;(b=e).reactivityMode!=null||(b.reactivityMode=0);t===1&&_.eC("creator_poly_si_disable_list").includes(R)&&(t=2);return t===1?Sgd(B,R,V,Object.assign({},e,{useSink:!0}),fsS):Sgd(B,R,V,Object.assign({},e,{useSink:t===2}))};
_.nJ=function(){return function(B,R,V,e){var X,Y,t=(Y=(X=e)==null?void 0:X.mode)!=null?Y:2;e!=null||(e={});var b;(b=e).reactivityMode!=null||(b.reactivityMode=0);if(t===0)throw Error("Ug`"+t);return yLK(B,R,V,e,t===1?fsS:void 0)}};
_.up=function(B){return _.k("creator_poly_si_killswitch")?!1:_.k("force_all_poly_si_batches")&&(B==="poly_si_all_on_test_check"||B==="creator_poly_si_batch_050"?0:B)||document.documentElement.hasAttribute("use-signals")?!0:!B||_.k(B+"_holdback_enabled")&&_.k("kevlar_polysi_holdback")?!1:_.k(B)};
Ox=function(B){return B?B.icon?B.icon.iconType.toLowerCase():B.customThumbnail?"member":"":""};
lsZ=function(B){if(!B)return"";B=_.h(B);for(var R=B.next();!R.done;R=B.next())if((R=R.value)&&R.liveChatAuthorBadgeRenderer&&(R=Ox(R.liveChatAuthorBadgeRenderer))&&R!=="verified")return R;return""};
zDd=function(B,R){if(!B)return null;var V;return((V=B.find(function(e){return e&&e.liveChatAuthorBadgeRenderer?Ox(e.liveChatAuthorBadgeRenderer)===R:!1}))==null?void 0:V.liveChatAuthorBadgeRenderer)||null};
_.LuK=function(B){var R=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;B=asd(B);R=asd(R);var V=dZK(B.hex);R=dZK(R.hex);var e=R[0]/255;var X=R[1]/255,Y=R[2]/255,t=Math.max(e,X,Y),b=Math.min(e,X,Y),J=0,G=0,y=.5*(t+b);t!=b&&(t==e?J=60*(X-Y)/(t-b):t==X?J=60*(Y-e)/(t-b)+120:t==Y&&(J=60*(e-X)/(t-b)+240),G=0<y&&y<=.5?(t-b)/(2*y):(t-b)/(2-2*y));e=[Math.round(J+360)%360,G,y];V=wgN(V,R);for(B=Tao(B.hex);V<4.5;){B=e[2]>=.5?B.darker((4.5-V)/2):B.brighter((4.5-V)/2);V=B.toString();
X=xZu(V);if(!X.length)throw Error("Sd`"+V);V=X;V=wgN(V,R)}return B.hex()};
wgN=function(B,R){B=_.Xuu(B);R=_.Xuu(R);return(Math.max(B,R)+.05)/(Math.min(B,R)+.05)};
_.oT=function(B){return"#"+("000000"+(B&16777215).toString(16)).slice(-6)};
_.v4o=function(B){for(var R=0,V=0;V<B.length;V++)R=B.charCodeAt(V)+((R<<5)-R);B="#";for(V=0;V<3;V++)B+=("00"+(R>>V*8&255).toString(16)).slice(-2);return B};
Kuu=function(B){B=(B||"").split(":");B.length===1&&B.unshift("yt-icons");B[1]=B[1].toLowerCase();return B};
AL5=function(B,R){var V=(R=R===void 0?!1:R)?Isx:E4_,e=R?QeY:qgS;B.getIconNames().forEach(function(X){X=R?X:X.substring(X.indexOf(":")+1);B.name==="yt-icons"?cLY.add(X):X.includes("-filled")?V.add(X):e.add(X)})};
BK=function(B,R,V,e){V=V===void 0?!1:V;e=e===void 0?!1:e;var X,Y,t;return _.W(function(b){if(b.nextAddress==1)return _.U(b,ibq,2);if(e)return b.return(cLY.has(B));X=V?Isx:E4_;Y=V?QeY:qgS;return R?(t=B.includes("-filled")?B:B.concat("-filled"),b.return(X.has(t))):b.return(Y.has(B))})};
_.rLS=function(B){if(seK(B))return B;var R=B=B.toLowerCase();(B=FuN.get(B))&&(R=B);return R};
_.RT=function(B){if(seK(B))return B.toString();var R=g4u.get(B);if(R)return R;R=B.toLowerCase();var V="yt-icons",e=R.replace(/_/g,"-");switch(B){case "MY_CHANNEL":R="account_circle";break;case "ADD_TO_LIBRARY":R="add";break;case "ALERT_WARN_RED":R="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":R="person_music";break;case "BLOCK_USER":R="block";break;case "CAPTIONS":R="closed_caption";break;case "CLOSED_CAPTION":V="av";R="closed-caption";break;case "COLLECTION":V="maps";R="layers";break;case "CONTACT":V=
"icons";R="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":V="ytcp-icons";R=e.split("creator-studio-")[1];break;case "DISMISSAL":R="close";break;case "DO_NOT_DISTURB":R="block";break;case "DOGFOOD":V="icons";R="pets";break;case "DRAFT":R="paper_corner_folded";break;
case "EMPTY_LIKE":R="like_outline";break;case "EXIT_APP":R="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":R=e;break;case "GAMES":V="ytg";R="my-games";break;case "GO_TO_PAGE":R="arrow-forward";break;case "GROUP":V="social";break;case "HIDE":R="not_interested";break;case "INPUT_COMPONENT":V="icons";R="settings-input-component";break;case "KIDS_BLOCK":R="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":V="ytg";R="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":V=
"ytg";R="membership-post-purchase";break;case "MULTIVIEW":R="screen_multi_view";break;case "MY_LOCATION":V="maps";R=e;break;case "NOTIFICATIONS_INBOX":R="NOTIFICATIONS";break;case "NEXT":R="chevron_right";break;case "OFFLINE":R="power-settings-new";break;case "PAUSE":V="miniplayer";break;case "PAYMENT":V="icons";break;case "PHONE_DOWNLOAD":R="phone_download";break;case "PREMIUM_STANDALONE":V="yt-logos";R="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":V="yt-logos";R="premium_standalone_cairo";
break;case "QUESTION_ANSWER":R="question_answer";break;case "REDEEM":V="icons";R="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":R="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":R="library_add";break;case "SCHOOL":V="yt-sys-icons";R="creator_academy";break;case "SETTINGS_LIGHT":R="settings_applications";break;case "SETTINGS_MATERIAL":R="settings";break;case "SEARCH_HISTORY":R="watch_history";break;case "SHOPPING_BAG":R="bag";break;case "SOCIAL":case "PEOPLE":V=
"yt-icons";R="people";break;case "STAFF_PICK":V="ytg";R="spotlight";break;case "START_DVR":R="add";break;case "STOP_DVR":V="av";R="stop";break;case "TAB_LIKED":R="like";break;case "TAB_INBOX":R="mail";break;case "TERMS_OF_SERVICE":V="icons";R="description";break;case "TRENDING":R="fire";break;case "UNBLOCK_USER":R="remove";break;case "UNPLUGGED_DARK_THEME":V="image";R="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":R="live";break;case "UNPLUGGED_SPORTS":V="ytu";R="visibility-off";break;
case "VIDEOS":V="av";R="play-circle-filled";break;case "YOUTUBE":V="yt-logos";R="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":V="yt-logos-ext";R="yt-logo-red-updated";break;case "YOUTUBE_LOGO":V="yt-logos-ext";R="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":V="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":V="shorts";R=e;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":V="yt-sys-icons";R="youtube_improve_tv";break;case "OUTLINE_BAG":V=
"yt-sys-icons";R="bag";break;case "QUEUE_PLAY_LAST":V="yt-sys-icons";R="list_queue_last";break;case "SLASH_CIRCLE_LEFT":R="slash_circle_left";break;case "SPEED_1_POINT_2X":R="1_point_2x";break;case "SPEED_1_POINT_5X":R="1_point_5x";break;case "SPEED_1_POINT_8X":R="1_point_8x";break;case "SPEED_POINT_2X":R="point_2x";break;case "SPEED_POINT_5X":R="point_5x";break;case "SPEED_POINT_8X":R="point_8x";break;case "SPEED_1X":R="1x";break;case "SPEED_2X":R="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":V="yt-sys-icons";
R="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":V="yt-sys-icons";R="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":V="yt-sys-icons",R="tic_tac_toe"}R=V+":"+R;g4u.set(B,R);return R};
seK=function(B){var R;_.k("kevlar_use_wil_icons")?R=!!_.Oz().resolve(_.VM).resolveIcon({iconName:B.toString()}):R=!1;return R};
_.Xc=function(B,R,V,e){V=V===void 0?{}:V;e=e===void 0?!1:e;V===null&&(V={});var X=_.eC("kevlar_command_handler_command_banlist");X=_.h(X);for(var Y=X.next();!Y.done;Y=X.next())if(Y=B?B.hasOwnProperty(Y.value):void 0,Y)return!1;X=_.D(B.commandMetadata,_.$a);return e&&X!=null&&X.url?!1:!R.disableCommandHandlerOverride&&_.eR.instance?(e=_.eR.instance,V.form||(V.form={element:R}),V.form.element||(V.form.element=R),!V.clickedVisualElement&&R.visualElement&&(V.clickedVisualElement=R.visualElement),e.resolveCommand(B,
V),!0):!1};
Zbp=function(B,R){B=pc(B);for(var V=_.h(B.visibilityMonitorKeys||[]),e=V.next();!e.done;e=V.next())R.unobserveByKey(e.value);B.visibilityMonitorKeys=void 0};
Pdd=function(B,R){if(_.TE()){if(_.k("kevlar_vimio_use_shared_monitor"))mZ_(B,R.data);else if(!mZ_(B,R.data))return;var V=R.data,e=$ZN(V);if(_.k("enable_client_ve_spec_logging"))Zbp(B,R.observer);else{var X=pc(B);X.trackedParams&&X.trackedParams!==e&&Zbp(B,R.observer)}X=pc(B);!V||X.data&&X.data===V||(X.data=V);Cdu(B,R);X.trackedParams=e}};
Cdu=function(B,R){var V=R.observer;if(!V&&_.k("web_skip_missing_vimio_observer")){var e,X;_.KE(new _.H8("VisibilityObserver is not defined.",B.tagName,B.trackedParams,(e=R.data)==null?void 0:e.trackingParams,(X=R.data)==null?void 0:X.loggingDirectives))}else{var Y=R.layer,t=R.visibilityCallback||function(){},b=R.prescanCallback,J=pc(B);
e=[];R.showOption&&e.push(V.observe(B,function(){R.skipLogging&&R.skipLogging()||_.hJ().reportShown(J,void 0,Y);t(!0)},R.showOption));
R.hideOption&&e.push(V.observe(B,function(){_.hJ().reportHidden(J,void 0,Y);t(!1)},R.hideOption));
R.prescanOption&&b&&e.push(V.observe(B,function(){b()},R.prescanOption));
J.visibilityMonitorKeys=e}};
mZ_=function(B,R){B=pc(B);if(B.visualElement&&!R)return!0;if(!R)return!1;var V=!1;if(_.k("enable_client_ve_spec_logging")){var e,X;V=!!((e=R.loggingDirectives)==null?0:(X=e.clientVeSpec)==null?0:X.uiType)}e=$ZN(R);if(!e&&!V)return!1;_.k("mweb_component_visibility_logging")&&(B.veContainer||(B.veContainer={}),B.veContainer.trackingParams=e);if(B.trackedParams&&B.trackedParams===e)return!1;var Y;if(_.k("enable_client_ve_spec_logging")&&((Y=B.visualElement)==null?0:Y.isClientVe())){var t;Y=(t=B.visualElement)==
null?void 0:t.getAsJspb();var b,J,G,y;if(_.Bn(Y,2)===((b=R.loggingDirectives)==null?void 0:(J=b.clientVeSpec)==null?void 0:J.uiType)&&_.Bn(Y,3,-1)===((G=R.loggingDirectives)==null?void 0:(y=G.clientVeSpec)==null?void 0:y.elementIndex))return!1}if(_.k("enable_client_ve_spec_logging")){var S,M;!B.visualElement&&((S=R.loggingDirectives)==null?0:(M=S.clientVeSpec)==null?0:M.uiType)&&(b=R.loggingDirectives.clientVeSpec,R=b.uiType,t=b.elementIndex,b=b.clientYoutubeData,B.visualElement=_.tJ(_.WK(),{veType:R,
elementIndex:t,clientYouTubeData:b}))}return!0};
$ZN=function(B){if(B==null?0:B.rendererContext){var R=_.D(B.rendererContext,_.n4Z);if(R==null?0:R.loggingDirectives)return R.loggingDirectives.trackingParams}return(B==null?0:B.loggingDirectives)?B.loggingDirectives.trackingParams:B==null?void 0:B.trackingParams};
pc=function(B){var R;return(R=B.polymerController)!=null?R:B};
B_5=function(B){_.hJ();if(_.Qh(ba().JSC$10377_elementShouldLogGesture).bind(ba())(B,4)){uAZ(B);var R=ObK(B);o7p.set(B,R)}};
uAZ=function(B){o7p.has(B)&&(o7p.get(B).cancel("untrack hover element"),o7p.delete(B))};
ObK=function(B){var R,V=[],e=!1,X=new _.be(function(Y,t){JJ(B,"mouseenter",_.Qh(function(){var b,J,G;return _.W(function(y){if(y.nextAddress==1)return R=(0,_.P8)(),b=Rgq(B),V.push(b),J=V$u(B,function(){e=!0;t(Error("Vg"))}),_.U(y,b,2);
if(y.nextAddress!=3)return J&&jR(J),G=egK(B),V.push(G),_.U(y,G,3);Y();_.b3(y)})}))});
X.then(function(){var Y=(0,_.P8)()-R;Y=Math.round(Y);if(!(500>Y||6E5<=Y)){var t=B.getScreenLayer?B.getScreenLayer():void 0;t=_.TE(t)||"";var b=XhI(_.hJ(),B);_.sV(t,B.visualElement?B.visualElement:_.U5(b),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:Y}})}B_5(B)},function(){N9&&(N9(),N9=null);
e&&(uAZ(B),B_5(B))});
return X};
Rgq=function(B){var R;return(new _.be(function(V,e){N9=function(){e(Error("Wg"))};
R=_.dV.debounce(_.Qh(function(){jR(X);V()}),1,100);
var X=_.G2(B,"mousemove",R)})).thenCatch(function(){var V=_.dV.cancelDebouncedJobMap.get(R);
V&&_.dV.cancelJob(V)})};
egK=function(B){var R;return(new _.be(function(V,e){N9=function(){e(Error("Xg"))};
R=JJ(B,"mouseleave",_.Qh(function(){V()}))})).thenCatch(function(){jR(R)})};
V$u=function(B,R){return JJ(B,"mouseleave",_.Qh(R))};
Ym5=function(B){phZ&&_.yM.cancel(phZ);phZ=_.yM.run(function(){_.OI(B,"yt-visibility-refresh");phZ=0})};
hgI=function(B){B=Number(B);return"rgba("+[B>>16&255,B>>8&255,B&255,(B>>24&255)/255].join()+")"};
WsI=function(B){if(!B)return!1;if(_.D(B,_.t$_))return!0;var R;if(B=(R=_.D(B,_.p0))==null?void 0:R.commands)for(R=_.h(B),B=R.next();!B.done;B=R.next())if(_.D(B.value,_.t$_))return!0;return!1};
bop=function(B){var R=!0;R=R===void 0?!0:R;if(!B.useSignals&&!B.experimentalPropertiesChanged||_.k("experimental_templating_behavior_nopatch_killswitch")){var V=B._propertiesChanged;B._propertiesChanged=function(e,X,Y){R?B.debounceRender():B.doRender();V&&V.call(B,e,X,Y)}}};
JXI=function(B,R){if(B.useSignals||B.experimentalPropertiesChanged)if(_.k("experimental_templating_behavior_nopatch_killswitch"))B.experimentalPropertiesChanged=function(){};
else return;var V=new Set,e=[B].concat(_.MI(B.behaviors));e=_.h(e);for(var X=e.next();!X.done;X=e.next()){X=X.value;for(var Y in X.properties)V.has(Y)||(B._addPropertyEffect(Y,"function",R),V.add(Y))}};
j1A=function(){var B=Polymer.Element,R=B._prepareTemplate;B._prepareTemplate=function(){R.call(this);var V=this.prototype;if(V.experimentalTemplatingInUse&&V.experimentalTemplatingInUse()&&V.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Tn(Error("Yg"));else{V=this.template.content.childNodes;for(var e=V.length-1;e>=0;e--){var X=V[e];X.nodeName!=="STYLE"&&X.nodeName!=="LINK"&&X.nodeName!=="SCRIPT"&&X.nodeName!=="#comment"&&X.remove()}}}};
U0d=function(B){var R=!0;R=R===void 0?!0:R;j1A();var V=B.ready;B.ready=function(){this._template=null;V.call(this)};
JXI(B,R?B.debounceRender:B.doRender)};
GD_=function(B,R,V){if(V===null||V===void 0)return V;var e=GLZ(B.tagName.toLowerCase(),R,function(){throw Error("Qb");});
if(e===null)return V;e=N_p[e];var X;if((X=e.isUnwrappable)==null?0:X.call(e,V)){if(e.unwrap)return e.unwrap(V);throw Error("ah");}return e.filterString?e.filterString(B.tagName,R,String(V)):V};
yXN=function(B,R,V){var e=R[R.length-1]!=="$",X=GD_(B,R,V);if(e)if(typeof X==="function"&&R.startsWith("reactiveon")&&R===R.toLowerCase()){var Y=Zv;atZ(B,R.slice(8),function(t){Ta(Y,function(){X(t)})})}else B[R]=X;
else V=X==null?null:String(X),zto(B,R.slice(0,-1),V)};
HK=function(B){SmN.length===0&&requestAnimationFrame(function(){setTimeout(function(){var R=SmN.slice();SmN.length=0;R=_.h(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;try{V()}catch(e){_.SR(e)}}})});
SmN.push(B)};
HoI=function(B){if(B){var R=B.component;if(R){var V;R==null||(V=R.events)==null||V.publish("DISCONNECTED");var e;R==null||(e=R.onDisconnected)==null||e.call(R)}var X,Y;(X=B.__spec)==null||(Y=X.didUnmount)==null||Y.call(X);for(R=0;R<B.childNodes.length;R++)HoI(B.childNodes[R])}};
kT=function(B,R,V){var e=R&&R.key,X=FB;X[0]=B;X[1]=e;X[2]=void 0;for(var Y in R)R.hasOwnProperty(Y)&&(B=R[Y],e=rA,e.push(Y),e.push(B));R=FB;a:{if(Y=FB[2])for(B=0;B<Y.length;B+=2)if(Y[B]==="nonce"){Y=Y[B+1];break a}Y=""}Y=A$Y(R[0],R[1],Y);B=KW(Y);e=R[2];if(!B.staticsApplied&&(B.staticsApplied=!0,e&&e.length))if((X=B._attrsArr)&&X.length){for(X=0;X<e.length;X+=2)M9[e[X]]=X+1;X=B._attrsArr||(B._attrsArr=lt_(0));for(var t=0,b=0;b<X.length;b+=2){var J=X[b],G=X[b+1],y=M9[J];y?e[y]===G&&delete M9[J]:(X[t]=
J,X[t+1]=G,t+=2)}LW(X,t);for(var S in M9)L4d(Y,S,e[M9[S]],P5),delete M9[S]}else for(S=0;S<e.length;S+=2)L4d(Y,e[S],e[S+1],P5);mCY(Y,B,P5);LW(R,0);V&&V(IK);i6p()};
M$d=function(B){var R=B.toString().toLowerCase();return function(V,e){kT(R,V,e)}};
_.D9=function(B,R,V){V===void 0?delete B[R.name]:B[R.name]=V};
_.fc=function(B){var R={androidIncludeFontPadding:!1},V=0,e=[],X=[],Y=[];if(B.simpleText)return R.content=B.simpleText,R;if(B.runs===void 0)return R.content="",R;B=_.h(B.runs);for(var t=B.next();!t.done;t=B.next()){t=t.value;var b=t.text,J=void 0,G=(J=b)==null?void 0:J.length;if(b&&G){e.push(b);if(t.bold||t.italics||t.strikethrough||t.underline||t.textColor!=null&&t.textColor!==0||t.deemphasize){b=X;J=b.push;var y={startIndex:V,length:G};t.bold&&(y.weightLabel="FONT_WEIGHT_MEDIUM");t.italics&&(y.italic=
!0);t.strikethrough&&(y.strikethrough="LINE_STYLE_SINGLE");t.underline&&(y.underline="LINE_STYLE_SINGLE");t.textColor!=null&&t.textColor!==0?document.documentElement.hasAttribute("dark")?y.fontColor=t.darkModeTextColor||t.textColor:y.fontColor=t.textColor:t.deemphasize&&(document.documentElement.hasAttribute("dark")?y.fontColor=parseInt("ff"+kDY("#aaa").substring(1),16):y.fontColor=parseInt("ff"+kDY("#606060").substring(1),16));J.call(b,y)}t.navigationEndpoint&&(b=Y,J=b.push,y={startIndex:V,length:G,
onTap:{innertubeCommand:t.navigationEndpoint}},t.loggingDirectives&&_.D9(y,D0x,t.loggingDirectives),J.call(b,y));V+=G}}R.content=e.join("");R.styleRuns=X.length?X:void 0;R.commandRuns=Y.length?Y:void 0;return R};
lDo=function(B){if(B==null||!B.runs)return!0;B=_.h(B.runs);for(var R=B.next();!R.done;R=B.next())if(R=R.value,R.bracket||R.errorUnderline||R.deemphasize||_.D(R,la)||_.D(R,fDS))return!1;return!0};
zgd=function(B,R){return function(V){var e=R.unit;if(e!==V)throw Error("dh`"+B+"`"+e+"`"+V);return R}};
z2=function(B){if(!((B==null?0:B.value)&&(B==null?0:B.unit)))return"";switch(B.unit){case "DIMENSION_UNIT_FRACTION":var R="%";break;default:R="px"}B=B.value;R==="%"&&(B*=100);return""+B+R};
aDq=function(B){try{return B()}catch(R){_.KE(R)}};
_.dl=function(B){var R=_.D(B,_.aT);if(R)return R;if((R=_.D(B,d0_))&&R.commands)return whq(R.commands);if((R=_.D(B,T_5))&&R.commands)return whq(R.commands);if((B=_.D(B,x05))&&B.identifier&&B.command&&(Lsp||(Lsp=[]),!Lsp.includes(B.identifier)))return Lsp.push(B.identifier),_.D(B.command,_.aT)};
whq=function(B){if(B.length!==0){var R=[];B=_.h(B);for(var V=B.next();!V.done;V=B.next())(V=_.dl(V.value))&&R.push(V);return{commandExecutorCommand:{commands:R}}}};
_.T2=function(B){var R=B.defaultTarget,V=B.elementConfig,e=B.elementsCommand,X=B.skipOnClick,Y=B.forceNewState,t=B.additionalCommandArgs,b=B.innertubeCommand||_.dl(e);if(b){B={};var J=v7q(b);e=J.navigatingCommand;J=J.href;e&&J?(B.href$=J,Ks_(B,e,J,R),_.k("web_atagconfig_pointerdown")&&IDp(B,e),Y&&(B["force-new-state$"]=!0)):(B.role$="button",B.href$="javascript:void(0);");_.D(b,E75)&&(B["aria-haspopup$"]=!0);X||(B.onclick=function(G){if(Q1S(G)){var y=Object.assign({},{form:{element:G.target,event:G}},
t);G.preventDefault();_.wl(b,y)}});
return Object.assign({},V,B)}};
qmu=function(B){if(B.length){if(B.length===1)return B[0];var R={};_.D9(R,_.p0,{commands:B});return R}};
xT=function(B){return B&&B.href$!=="javascript:void(0);"};
v7q=function(B){var R,V=((R=_.D(B,_.p0))==null?void 0:R.commands)||[B];B=_.h(V);for(R=B.next();!R.done;R=B.next()){R=R.value;var e=void 0,X=void 0;V=(X=_.D((e=R)==null?void 0:e.commandMetadata,_.$a))==null?void 0:X.url;_.k("web_remove_web_navigation_endpoint_data")||(e=void 0,V=V||((e=_.D(R,cX5))==null?void 0:e.url));if(V&&V!=="/service_ajax"){if(e=NV(V,AXo))return B=_.j4(e),{navigatingCommand:R,href:B};_.KE(new _.H8("AttributedString URL could not be sanitized",V))}}return{}};
Q1S=function(B){return B.button!==void 0?B.button===0&&!(B.shiftKey||B.altKey||B.metaKey||B.ctrlKey):!(B.shiftKey||B.altKey||B.metaKey||B.ctrlKey)};
Ks_=function(B,R,V,e){V=!PE(V);var X,Y,t;if((X=_.D(R,_.Jz))!=null&&X.nofollow||(Y=_.D(R,_.sI))!=null&&Y.nofollow||(t=_.D(R,_.ie))!=null&&t.nofollow||V)B.rel$="nofollow";var b;R=((b=_.D(R,_.ie))==null?void 0:b.target)==="TARGET_NEW_WINDOW"?"_blank":e===void 0?"":e;B.target$=R};
IDp=function(B,R){R.clickTrackingParams&&(B.params={itct:R.clickTrackingParams});B.onpointerdown=function(V){ioN(V)};
B._data=R};
s1x=function(B){(B.loggingUrls||[]).forEach(function(R){cf(R.baseUrl,R.attributionSrcMode)})};
Fsp=function(B){B.currentTarget._data&&s1x(B.currentTarget._data)};
ioN=function(B){var R=B.currentTarget;B=aDq(function(){return R.href});
var V=R.params;B&&_.Zg(B,V||{},8,!0)};
rX5=function(B,R){if(R=_.D(R,_.ie))(R==null?void 0:R.target)==="TARGET_NEW_WINDOW"&&(B.target="_blank"),R.nofollow&&(B.rel="nofollow")};
g7o=function(B){B=_.D(B==null?void 0:B.commandMetadata,_.$a);return(B==null?0:B.url)?B.url:null};
_.Lc=function(B,R){(B=_.dl(B))&&_.wl(B,R)};
_.wl=function(B,R){LhZ(function(V){R?V.resolveCommand(B,R):V.resolveCommand(B)})};
COu=function(B,R){var V=["yt-core-attributed-string__link"];R!=null&&R.noLinkColor||((R==null?0:R.isOverlay)?V.push("yt-core-attributed-string__link--overlay-call-to-action-color"):V.push("yt-core-attributed-string__link--call-to-action-color"),(R==null?0:R.linkInheritColor)&&V.push("yt-core-attributed-string--link-inherit-color"));V={className:V.join(" "),tabindex$:"0"};var e=B.onTap||B.onLongPress;if(!e)return V;var X=Zop(B);X&&(V["aria-label$"]=X);R=_.T2({elementsCommand:e,elementConfig:V,skipOnClick:!(R==
null||!R.skipOnClick),forceNewState:!0});B.onLongPress&&(e=new m0N(function(){var Y=_.dl(B.onLongPress);Y&&_.Oz().resolve(_.oC).resolveCommand(Y)}),R&&$0_(e,R));
return R||V};
Zop=function(B){var R,V;return(R=B.onTapOptions)==null?void 0:(V=R.accessibilityInfo)==null?void 0:V.accessibilityLabel};
POZ=function(B){var R=B;B<=16777215&&(R+=parseInt("ff000000",16));return _.zF(R)};
n7I=function(B){var R=B.isDarkTheme;var V=B.extension;B=B.runColor;var e=void 0;if(V=V==null?void 0:V.colorMap){R=R?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";V=_.h(V);for(var X=V.next();!X.done;X=V.next())if(X=X.value,R===X.key){e=X.value;break}}e==null&&B&&(e=B);if(e)return POZ(e)};
vK=function(B){var R=B.config;var V=B.image;var e=B.imageConfig;var X=B.imageWrapperConfig;var Y=B.run;var t=B.tag;var b=B.textLength;var J=B.startIndex===void 0?0:B.startIndex;B=B.length;J===void 0&&(J=0);Y={run:Y,startIndex:J,endIndex:B!==void 0?J+B:b,tag:t};V&&(Y.image=V);e&&(Y.imageConfig=e);X&&(Y.imageWrapperConfig=X);R&&(Y.config=R);return Y};
Oo5=function(B,R){var V=[];V.push("yt-core-attributed-string");(R==null?0:R.className)&&V.push(R==null?void 0:R.className);(R==null?0:R.ellipsisTruncate)?V.push("yt-core-attributed-string--ellipsis-truncate"):(R==null?0:R.noWrap)?V.push("yt-core-attributed-string--white-space-no-wrap"):(R==null?0:R.noPreWrap)||V.push("yt-core-attributed-string--white-space-pre-wrap");(R==null?0:R.linkInheritColor)&&V.push("yt-core-attributed-string--link-inherit-color");B.alignment&&V.push(uhp(B.alignment));B.lineBreakMode&&
V.push("yt-core-attributed-string--word-wrapping");return V.join(" ")};
orx=function(B){if(B.weight)return B.weight;switch(B.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}};
BIu=function(B){switch(B){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"}};
uhp=function(B){switch(B){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"}};
VNd=function(B,R,V){var e=R;B.content&&V&&(V=B.content.indexOf("\n"),V!==-1&&(e=Math.min(R,V)));if(!B.content||B.content.length<=e)R=B;else if(B.attachmentRuns||B.commandRuns||B.decorationRuns||B.styleRuns||B.paragraphStyleRuns){R=Kc(B.content,e);V=e;var X=B.attachmentRuns;if(X){var Y=[];X=_.h(X);for(var t=X.next();!t.done;t=X.next())t=Object.assign({},t.value),t.startIndex===void 0||t.startIndex>=V||(t.length||(t.length=0),t.length+t.startIndex>V&&(t.length=V-t.startIndex),Y.push(t));V=Y}else V=
void 0;Y=RLZ(e,B.commandRuns);X=e;var b=B.decorationRuns;if(b){t=[];b=_.h(b);for(var J=b.next();!J.done;J=b.next()){J=J.value;var G=_.D(J.textDecorator,IT);if(G&&G.startIndex!==void 0&&!(G.startIndex>=X)){J=Object.assign({},J,{textDecorator:{highlightTextDecorator:Object.assign({},G)}});G=_.D(J.textDecorator,IT);if(!G.length||G.length+G.startIndex>X)G.length=X-G.startIndex;t.push(J)}}X=t}else X=void 0;t=RLZ(e,B.styleRuns);if(b=B.paragraphStyleRuns)for(B=[],b=_.h(b),J=b.next();!J.done;J=b.next()){var y=
J.value;J=Object.assign({},y);if(!(J.startIndex===void 0||J.startIndex>=e)){if(!J.length||J.length+J.startIndex>e)J.length=e-J.startIndex;G=[];var S=void 0,M=void 0;if((S=y)==null?0:(M=S.listGroup)==null?0:M.listItems)for(y=_.h(y.listGroup.listItems),S=y.next();!S.done;S=y.next())if(S=Object.assign({},S.value),!(S.startIndex===void 0||S.startIndex>=e)){if(!S.length||S.length+S.startIndex>e)S.length=e-S.startIndex;G.push(S)}G.length>0&&(J.listGroup||(J.listGroup={}),J.listGroup=Object.assign({},J.listGroup,
{listItems:G}));B.push(J)}}else B=void 0;R={content:R,attachmentRuns:V,commandRuns:Y,decorationRuns:X,styleRuns:t,paragraphStyleRuns:B}}else R=Object.assign({},B,{content:Kc(B.content,e)});return R};
RLZ=function(B,R){if(R){var V=[];R=_.h(R);for(var e=R.next();!e.done;e=R.next())if(e=Object.assign({},e.value),!(e.startIndex===void 0||e.startIndex>=B)){if(!e.length||e.length+e.startIndex>B)e.length=B-e.startIndex;V.push(e)}return V}};
Kc=function(B,R){var V=R,e;if(e=V>0)e=B.charCodeAt(V-1),e=e>=55296&&e<=56319;e&&(V=B.charCodeAt(V),e=V>=56320&&V<=57343);e&&--R;return B.substring(0,R)};
YwY=function(B,R,V){V=V===void 0?eLp:V;if(B){var e=_.Oz().resolve(ue);e||_.k("mweb_no_observer_killswitch")?Pdd(B,{data:R,observer:e,visibilityCallback:V,hideOption:XZo,showOption:pZS,layer:B.layer}):_.KE(new _.H8("Warning: monitorVisibility called with null observer",B.tagName,R==null?void 0:R.loggingDirectives,R==null?void 0:R.trackingParams))}else _.KE(new _.H8("Warning: monitorVisibility called with null element",R==null?void 0:R.loggingDirectives,R==null?void 0:R.trackingParams,R==null?void 0:
R.rendererContext))};
U8d=function(B,R){var V=[],e=B.content.length,X,Y=(X=_.Oz().resolve(_.uj(_.E5)))==null?void 0:X();if(B.paragraphStyleRuns){X=_.h(B.paragraphStyleRuns);for(var t=X.next();!t.done;t=X.next()){var b=V.push,J=b.apply;var G=void 0;t=t.value;if((G=t.listGroup)!=null&&G.listItems){G=[];b:switch(t.listGroup.listType){case "LIST_TYPE_BULLET":var y="ul";break b;default:y="span"}G.push(vK({run:t,textLength:e,tag:y,config:{className:"yt-core-attributed-string__list-group"},startIndex:t.startIndex,length:t.length}));
y=_.h(t.listGroup.listItems);for(var S=y.next();!S.done;S=y.next()){S=S.value;b:switch(t.listGroup.listType){case "LIST_TYPE_BULLET":var M="li";break b;default:M="span"}G.push(vK({run:t,textLength:e,tag:M,startIndex:S.startIndex,length:S.length}))}t=G}else t=[];J.call(b,V,_.MI(t))}}if(B.styleRuns&&(R==null||!R.noStyleRuns))for(X=_.h(B.styleRuns),b=X.next();!b.done;b=X.next()){b=b.value;J=n7I({extension:_.D(b.styleRunExtensions,hLd),isDarkTheme:Y===void 0?!1:Y,runColor:b.fontColor});G=[];J&&G.push("yt-core-attributed-string--link-inherit-color");
b.italic&&G.push("yt-core-attributed-string--italicized");b.underline&&b.strikethrough?G.push("yt-core-attributed-string--underline-strikethrough",BIu(b.underline)):b.underline?G.push("yt-core-attributed-string--underlined",BIu(b.underline)):b.strikethrough&&G.push("yt-core-attributed-string--strikethrough",BIu(b.strikethrough));if(b.baselineOffset){a:switch(b.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":t="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":t=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:t="yt-core-attributed-string--baseline-offset-unknown"}G.push(t)}t=G.join(" ");G=b;y={};if(G.weight||G.weightLabel)y.fontWeight=orx(G).toString();J&&(y.color=J);V.push(vK({run:b,textLength:e,tag:"span",config:{className:t,style:y},startIndex:b.startIndex,length:b.length}))}if(B.decorationRuns)for(X=_.h(B.decorationRuns),b=X.next();!b.done;b=X.next())b=b.value,J={},b.textDecorator&&(y=b.textDecorator,t=Y===void 0?!1:Y,S=[],G=
_.D(y,IT),y=_.D(y,tNu),G?(y=S,S=y.concat,M=[],(t=n7I({extension:_.D(G.highlightTextDecoratorExtensions,Wxp),isDarkTheme:t,runColor:G.backgroundColor}))&&M.push("background-color: "+t+";"),G.backgroundCornerRadius!==void 0&&M.push("border-radius: "+G.backgroundCornerRadius+"px;"),G.leftPadding!==void 0&&M.push("padding-left: "+G.leftPadding+"px;"),G.rightPadding!==void 0&&M.push("padding-right: "+G.rightPadding+"px;"),G.topPadding!==void 0&&M.push("padding-top: "+G.topPadding+"px;"),G.bottomPadding!==
void 0&&M.push("padding-bottom: "+G.bottomPadding+"px;"),S=S.call(y,M)):y&&(G=S,S=G.concat,t=t?"#2ba640":"#107516",t=y.color?POZ(y.color):t,t=["padding: 2px;","border-top: solid "+t+" 2px;","border-bottom: solid "+t+" 2px;","background: linear-gradient(135deg, "+t+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+t+" 3px, rgba(0, 0, 0, 0) 3px);"],S=S.call(G,t)),t=S.join(" "),J.style$=t,t=b.textDecorator,G=[],y=_.D(t,tNu),_.D(t,IT)?G.push("yt-core-attributed-string--highlight-text-decorator"):
y&&G.push("yt-core-attributed-string--bracket-text-decorator"),t=G.join(" "),J.className=t,J.dir="auto"),t=_.D(b.textDecorator,IT),G=_.D(b.textDecorator,tNu),y=_.D(b.textDecorator,IT),S=_.D(b.textDecorator,tNu),V.push(vK({run:b,textLength:e,tag:"span",config:J,startIndex:(t==null?void 0:t.startIndex)||(G==null?void 0:G.startIndex)||0,length:(y==null?void 0:y.length)||(S==null?void 0:S.length)||0}));if(B.commandRuns&&(R==null||!R.noEndpoints))for(Y=_.h(B.commandRuns),X=Y.next();!X.done;X=Y.next())X=
X.value,b=COu(X,R),V.push(vK({run:X,textLength:e,tag:"a",config:b,startIndex:X.startIndex,length:X.length}));if(B.attachmentRuns)for(B=_.h(B.attachmentRuns),Y=B.next();!Y.done;Y=B.next()){Y=Y.value;J=b=void 0;X={className:"yt-core-attributed-string--inline-block-mod"};if((J=Y.element)==null?0:J.properties){J=(b=Y.element)==null?void 0:b.properties;b=[];J=_.D(J,bA5);if(J==null?0:J.margin)J=J.margin,J.left&&b.push("margin-left: "+z2(J.left)+";"),J.right&&b.push("margin-right: "+z2(J.right)+";"),J.top&&
b.push("margin-top: "+z2(J.top)+";"),J.bottom&&b.push("margin-bottom: "+z2(J.bottom)+";");b=b.length!==0?b.join(" "):void 0;X.style$=b}t=void 0;b={alt:"",preserveHeight:!0,preserveWidth:!0};J=["yt-core-attributed-string__image-element"];if(Y.alignment){a:switch(Y.alignment){case "ALIGNMENT_BASELINE":G="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":G="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:G=
"yt-core-attributed-string__image-element--image-alignment-bottom"}J.push(G)}if((t=Y.element)==null?0:t.properties)t=[],G=_.D(Y.element.properties,bA5),(G==null?0:G.height)&&t.push("height: "+z2(G.height)+";"),(G==null?0:G.width)&&t.push("width: "+z2(G.width)+";"),t=t.length!==0?t.join(" "):void 0,b.style$=t,G=void 0,t=((G=_.D(Y.element.properties,JeK))==null?void 0:G.label)||"",b.alt=t;b.className=J.join(" ");J=void 0;y=G=void 0;t=((y=Y.element)==null?0:y.type)?(G=_.D(Y.element.type,jnx))==null?
void 0:G.image:void 0;V.push(vK({run:Y,textLength:e,tag:"img",image:t,imageConfig:b,imageWrapperConfig:X,startIndex:Y.startIndex,length:(J=Y.length)!=null?J:0}))}if(R==null?0:R.headerRuns)for(R=_.h(R.headerRuns),B=R.next();!B.done;B=R.next())if(B=B.value,B.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(B.headerMapping)){a:{switch(B.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":Y=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":Y="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":Y="yt-core-attributed-string--heading-3";break a}Y=void 0}V.push(vK({run:B,textLength:e,tag:"span",config:Y?{className:Y}:void 0,startIndex:B.startIndex,length:B.length}))}return V};
_.QM=function(B){return(B==null?void 0:B.content)!==void 0};
NIu=function(B){return _.QM(B)?B:_.fc(B)};
G9S=function(B){return B.image!==void 0&&B.imageConfig!==void 0};
yeA=function(B,R){if(R==null?0:R.userInput)for(B=_.h(B),R=B.next();!R.done;R=B.next())if(R=R.value,R.tag!=="a"&&R.tag!=="li"){var V=void 0;(V=R).config||(V.config={});R.config.dir=R.tag==="ul"?_.Oz().resolve(_.q9):"auto"}};
Swp=function(B){return function(R){var V=B.run;(V.onTap!==void 0||V.onLongPress!==void 0)&&_.D(V,D0x)&&YwY(R,{loggingDirectives:_.D(V,D0x)})}};
HAZ=function(B){return function(R){for(var V in B)(P5[V]||P5[vU["default"]])(R,V,B[V])}};
fwu=function(B,R){MNY(R);var V={data:null,start:0,end:B.length,parts:[]};R=_.h(R);for(var e=R.next();!e.done;e=R.next())e=e.value,k9A(V,e.startIndex,e.endIndex,e);D8d(B,V);return V};
k9A=function(B,R,V,e){for(var X=_.h(B.parts),Y=X.next();!Y.done;Y=X.next()){Y=Y.value;if(typeof Y==="string")throw Error("fh");if(Y.start<=R&&V<=Y.end){k9A(Y,R,V,e);return}}B.parts.push({data:e,parts:[],start:R,end:V})};
D8d=function(B,R){for(var V=R.parts.length;V>=0;V--){var e=R.parts[V],X=R.parts[V-1],Y=V===R.parts.length?R.end:e.start;X=V===0?R.start:X.end;Y!==X&&R.parts.splice(V,0,B.slice(X,Y));e&&D8d(B,e)}};
MNY=function(B){B.sort(function(R,V){if(R.startIndex<V.startIndex)return-1;if(V.startIndex<R.startIndex)return 1;R=R.endIndex-R.startIndex;V=V.endIndex-V.startIndex;return R>V?-1:V>R?1:0})};
_.lwd=function(B){var R=B.thumbnails;if(R){B={sources:[]};R=_.h(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;var e={};e.url=V.url;e.width=V.width;e.height=V.height;B.sources.push(e)}return B}};
zLd=function(B,R,V,e){if(!R)return B.length>=1?B[B.length-1]:null;if(e)for(var X=_.h(B),Y=X.next();!Y.done;Y=X.next()){Y=Y.value;var t=void 0,b=(t=Y.url)==null?void 0:t.indexOf(e);if(b!==void 0&&b>=0)return Y}e=_.h(B);for(X=e.next();!X.done;X=e.next())if(X=X.value,X.width&&X.height&&(V&&X.width>=R||!V&&X.height>=R))return X;for(R=B.length-1;R>=0;R--)if(V&&B[R].width||!V&&B[R].height)return B[R];return B[0]};
_.awI=function(B){var R;return(B=(R=B.sources)==null?void 0:R[0])?B.width/B.height:0};
_.d8A=function(B){if(B.sources){B=_.h(B.sources);for(var R=B.next();!R.done;R=B.next()){R=R.value;var V=void 0;if((V=R.clientResource)==null?0:V.imageName)return R}}};
wZ5=function(B){var R;if((R=B.clientResource)!=null&&R.imageColor)return _.zF(B.clientResource.imageColor)};
_.x8u=function(B,R,V,e,X,Y,t){if(!R||R.length===0||R[0].clientResource)return null;if(V&&R[0].url)return R[0].url;e===void 0&&(e=!0);if(e){var b;B=TIp*(X||(B==null?void 0:(b=B.getBoundingClientRect())==null?void 0:b.width)||0)}else{var J;B=TIp*(Y||(B==null?void 0:(J=B.getBoundingClientRect())==null?void 0:J.height)||0)}R=zLd(R,B,e,t);return(R==null?0:R.url)?R.url:(R==null?0:R.imageData)?R.imageData:null};
LxY=function(B,R,V){V=V?[V]:[];B.opacity&&V.push("opacity: "+B.opacity+";");R&&B.placeholderColor?(B=_.zF(B.placeholderColor),V.push("background-color: "+B+";")):V.push("background-color: transparent;");return V.join(" ")};
vrI=function(B,R,V,e,X){var Y=["yt-core-image"];R&&Y.push(R);V||Y.push("yt-core-image--fill-parent-height");e||Y.push("yt-core-image--fill-parent-width");switch(B.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":Y.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":Y.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":Y.push("yt-core-image--content-mode-center");break;default:Y.push("yt-core-image--content-mode-scale-to-fill")}B.flipForRtlLayout&&
Y.push("yt-core-image--flip-rtl");switch(X){case "TOP_START":var t;Y.push(((t=document.body)==null?void 0:t.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return Y.join(" ")};
Iwo=function(B){var R;if(B==null?0:(R=B.clientResource)==null?0:R.imageName){var V;B=(V=B.clientResource)==null?void 0:V.imageName;a:{switch(B){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":V="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":V="yt-logos-ext:yt-logo-updated";break a}V=void 0}return V||Kxq.get(B)||B}};
cK=function(B){return _.k("mweb_wiz_skip_render")?ErA(B):Qnp(B)};
ErA=function(B){return function(R){var V=A$Y("wink-root");iJ();i6p();prq(V,_.N(B,R))}};
Qnp=function(B){var R=R===void 0?!1:R;return function(V){if(!R||!_.k("mweb_skip_keto_to_c3_if_no_data")||V.data!==void 0){var e=oP(!1);try{var X=V.children;_.k("mweb_render_outside_patch_killswitch")||IK?X?CE(_.N(B,V,X)):CE(_.N(B,V)):_.KE(new _.H8("ketoToC3 called outside of a patch",{tagName:B.TAG_NAME}))}finally{oP(e)}}}};
qwZ=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
AeZ=function(B,R){B.onViewportEntered=R;ce_.observe(B)};
iAS=function(){var B={rootMargin:"10%",threshold:.01};_.k("mweb_enable_set_io_root_to_null_safari")?B.root=null:_.k("mweb_enable_set_io_root_to_body_safari")&&(B.root=document.body);return new IntersectionObserver(function(R,V){R.filter(function(e){return e.intersectionRect.height>0}).forEach(function(e){e=e.target;
if(!_.k("mweb_enable_only_update_image_when_connected")||e.isConnected!==!1){var X;(X=e.onViewportEntered)==null||X.call(e);V.unobserve(e)}})},B)};
sn5=function(B,R,V,e,X){function Y(){if(e){var b=e.loadedClass,J=e.notifyOnUnloaded;b&&_.AJ(B,b);J&&B.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function t(){var b=V(R,B);b&&B.getAttribute("src")!==b&&(_.k("mweb_enable_only_update_image_when_connected")&&B.isConnected===!1||b===B.src||(B.src=b),Y())}
X=X===void 0?!0:X;B.removeAttribute("src");Y();R&&(X?AeZ(B,t):t())};
FxK=function(B,R,V){if(!R)return!1;R=V(R,B);V=B.getAttribute("src");return R&&R===V&&B.complete};
reI=function(B,R){for(var V in R)V==="className"?B.className=R[V]:(P5[V]||P5[vU.default])(B,V,R[V])};
gr5=function(B,R,V,e){cK(_.ia)({contentMode:R.contentMode,loadedClass:R.loadedClass,isPreloaded:R.isPreloaded,notifyOnLoaded:R.notifyOnLoaded,notifyOnUnloaded:R.notifyOnUnloaded,preferredThumbnail:R.preferredThumbnail,preserveHeight:R.preserveHeight,preserveWidth:R.preserveWidth,objectPosition:R.objectPosition,targetWidth:R.targetWidth,targetHeight:R.targetHeight,shouldShowPlaceholder:R.shouldShowPlaceholder,useWidth:R.useWidth,alt:R.alt,className:R.className,onerror:R.onerror,onload:R.onload,style$:R.style$,
color:R.color,width:R.width,height:R.height,"aria-hidden$":R["aria-hidden$"],draggable:R.draggable,"data-disabled$":R["data-disabled$"],data:B,callback:V,renderLazy:e===void 0?!0:e,hideOn404:!1})};
m8Z=function(B,R,V){V=V===void 0?!1:V;var e=B.sources!==void 0?B:_.lwd(B);if(e){var X=R.onload;R.onload=function(J){var G=J.target;V&&G.naturalWidth===120||_.s5(G,"yt-core-image--loaded");R.notifyOnLoaded&&G.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));X==null||X(J)};
R.targetWidth&&R.preserveWidth&&(R.width=R.targetWidth);R.targetHeight&&R.preserveHeight&&(R.height=R.targetHeight);var Y=_.d8A(e),t=Y&&Iwo(Y);if(t)return(B=wZ5(Y))&&(R.color=B),{type:"icon",iconName:t,config:Object.assign({},R,R.alt?{}:{"aria-hidden$":"true"},{"aria-label$":R.alt,role:"img"})};if(B.sources===void 0){R.alt=B.accessibility&&B.accessibility.accessibilityData&&B.accessibility.accessibilityData.label||R.alt;R.style$=LxY(B,R.shouldShowPlaceholder,R.style$);var b;R.isPreloaded=!((b=_.D(B,
ZAp))==null||!b.isPreloaded)}R.contentMode&&!e.contentMode&&(e.contentMode=R.contentMode);R.className=vrI(e,R.className,R.preserveHeight,R.preserveWidth,R.objectPosition);R.loadedClass="yt-core-image--loaded";return{type:"image",image:e,config:R}}};
_.Fc=function(){var B=_.HB.apply(0,arguments);return _.mA(function(R){var V=B.map(function(e){return e(R)});
return function(){return void V.forEach(function(e){return void(e==null?void 0:e())})}})};
rl=function(B,R){var V=R==null?void 0:R.initial;return _.NW(function(){_.wA(!0);return V=B(V)},{equals:R==null?void 0:R.isEqual},"rSlKsc")};
$8o=function(B,R){if(B===R)return!0;if(B===void 0||R===void 0)return!1;var V,e,X,Y,t,b,J,G;return B.content===R.content&&((V=B.styleRuns)==null?void 0:V.length)===((e=R.styleRuns)==null?void 0:e.length)&&((X=B.commandRuns)==null?void 0:X.length)===((Y=R.commandRuns)==null?void 0:Y.length)&&((t=B.attachmentRuns)==null?void 0:t.length)===((b=R.attachmentRuns)==null?void 0:b.length)&&((J=B.decorationRuns)==null?void 0:J.length)===((G=R.decorationRuns)==null?void 0:G.length)};
nr5=function(B,R){if(B){var V=NIu(B);if(V!=null&&V.content)if(_.k("attr_string_reactive"))cK(Ccp)({text:B,config:R});else{var e=!(R==null||!R.ariaLabel)||!(V.commandRuns&&V.commandRuns.length!==0||V.paragraphStyleRuns&&V.paragraphStyleRuns.length!==0);B=e?R==null?void 0:R.ariaLabel:null;e=e?"text":null;kT("span",{className:Oo5(V,R),dir$:(R==null?0:R.userInput)?"auto":void 0,"aria-label$":B,role$:e},function(){if(V.styleRuns||V.commandRuns||V.attachmentRuns||V.decorationRuns){var X=U8d(V,R);yeA(X,
R);X=fwu(V.content,X);X=_.h(X.parts);for(var Y=X.next();!Y.done;Y=X.next())Pcx(Y.value)}else PU(V.content)})}}};
Pcx=function(B){typeof B==="string"?PU(B):G9S(B.data)?kT("span",B.data.imageWrapperConfig,function(){gr5(B.data.image,B.data.imageConfig)}):kT(B.data.tag,B.data.config,function(R){Swp(B.data)(R);
R=_.h(B.parts);for(var V=R.next();!V.done;V=R.next())Pcx(V.value)})};
OAu=function(B){return B.parts.map(u4_)};
u4_=function(B){if(typeof B==="string")return B;B=G9S(B.data)?_.N("span",{el:_.Fc(HAZ(B.data.imageWrapperConfig))},_.N(_.ia,Object.assign({},{data:B.data.image},B.data.imageConfig))):_.N(B.data.tag,{el:_.Fc(Swp(B.data),HAZ(B.data.config))},B.parts.map(u4_));return WE(B)};
oeZ=function(B,R){return B===R?!0:B===void 0||R===void 0?!1:B.noStyleRuns===R.noStyleRuns&&B.noLinkColor===R.noLinkColor&&B.noEndpoints===R.noEndpoints&&B.headerRuns===R.headerRuns&&B.isOverlay===R.isOverlay&&B.linkInheritColor===R.linkInheritColor&&B.userInput===R.userInput};
BQS=function(B){return function(){var R,V,e,X,Y,t,b,J,G,y,S,M,f,z;return{ariaLabel:(R=B.ariaLabel)==null?void 0:R.call(B),className:(V=B.className)==null?void 0:V.call(B),ellipsisTruncate:(e=B.ellipsisTruncate)==null?void 0:e.call(B),isOverlay:(X=B.isOverlay)==null?void 0:X.call(B),linkInheritColor:(Y=B.linkInheritColor)==null?void 0:Y.call(B),noEndpoints:(t=B.noEndpoints)==null?void 0:t.call(B),noStyleRuns:(b=B.noStyleRuns)==null?void 0:b.call(B),noLinkColor:(J=B.noLinkColor)==null?void 0:J.call(B),
noPreWrap:(G=B.noPreWrap)==null?void 0:G.call(B),noWrap:(y=B.noWrap)==null?void 0:y.call(B),skipOnClick:(S=B.skipOnClick)==null?void 0:S.call(B),stopPropagation:(M=B.stopPropagation)==null?void 0:M.call(B),userInput:(f=B.userInput)==null?void 0:f.call(B),headerRuns:(z=B.headerRuns)==null?void 0:z.call(B)}}};
RYS=function(B){return B.value===""||B.value==="true"?!0:B.value==="false"?!1:isNaN(Number(B.value))?B.value:Number(B.value)};
gl=function(B,R){B=new VeS(B,R);_.Tn(B);throw B;};
eYY=function(B,R,V){var e=JLS(B);B._numRenders=0;try{var X=aPA(function(){return _.N(R,Object.assign({},V))})}catch(t){var Y=function(b){b.args||(b.args=[]);
b.args.push("Error in web component wrapper");b.args.push(B.tagName.toLowerCase());return b};
_.v5(t instanceof Error?Y(t):new VeS("Wiz rendering error",B.tagName.toLowerCase()));throw t;}finally{JLS(e)}return X};
_.mR=function(B,R,V){function e(y){var S={};y=_.h(y);for(var M=y.next();!M.done;M=y.next()){M=M.value;var f=void 0,z=void 0,T=void 0,L=_.jk((T=(z=(f=M).getAttribute)==null?void 0:z.call(f,"slot"))!=null?T:"children");if(f=S[L])f.push(M);else if(L in Y||L==="children")S[L]=[M]}y=_.h(Object.keys(S));L=y.next();for(M={};!L.done;M={content$jscomp$55:void 0},L=y.next())L=L.value,L!=="children"&&(M.content$jscomp$55=S[L],S[L]=function(Q){return function(){return Q.content$jscomp$55}}(M));
return S}
V=V===void 0?{}:V;B.componentType!==HU||gl("Components must be marked reactive to be used from web component wrapper.",R);CJ.has(R)&&gl("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",R);var X,Y=(X=V.props)!=null?X:{};Pc.add(R);var t=XaI();X=function(){var y=t.apply(this,arguments)||this;y.rawProps={};y.queuingRender=!1;y.dispose=function(){};
y.isWebComponentWrapper=!0;y.isReparenting=!1;y.hasRendered=!1;return y};
_.l(X,t);X.prototype.render=function(){this.hasRendered=!0;for(var y=_.h([].concat(_.MI(this.attributes))),S=y.next();!S.done;S=y.next())S=S.value,S.name!=="slot"&&this.removeAttribute(S.name);y=Object.assign({},this.componentProps,this.slotProps);S=_.h(eYY(this,B,y));y=S.next().value;S=S.next().value;!(y[0]instanceof Element)||y.length>1?gl("Wrapped Wiz components must return a single root element.",R):(y=y[0].tagName.toLowerCase(),y!==R&&gl("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(y+" !== '"+R),R),this.dispose=S)};
X.prototype.setUpProps=function(){for(var y=this.rawProps,S=this.attributes,M=_.h(Object.keys(Y)),f=M.next();!f.done;f=M.next()){f=f.value;var z=void 0;((z=this)==null?0:z[f])&&this[f]!==paN&&y[f]===void 0&&(y[f]=this[f],(z=Object.getOwnPropertyDescriptor(this.constructor.prototype,f))&&Object.defineProperty(this,f,z))}M=_.h(S);for(f=M.next();!f.done;f=M.next()){z=f.value;f=_.jk(z.name);var T=f==="class"&&!S.getNamedItem("class-name");if(f in Y||T)z=RYS(z),f!=="class"||y.className?y[f]=z:y.className=
z}S={};for(var L in Y)Y[L]!==_.Z9&&Y[L]!==YlS&&(y[L]instanceof Function&&gl("Function props must be configured as STATIC, not SIGNAL.",R),f=_.h(_.WU(y[L],void 0,"Ri8MSe")),M=f.next().value,f=f.next().value,S[L]=f,y[L]=M);y=_.h([y,S]);this.componentProps=y.next().value;this.setters=y.next().value;this.slotProps=e(this.childNodes)};
X.prototype.connectedCallback=function(){ma===R&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in Y&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
X.prototype.disconnectedCallback=function(){if(!this._isInert){var y;a:{if(_.hYd)for(y=this;y;){if(_.ted.has(y)){y=!0;break a}y=y.parentElement}y=!1}if(y)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){y=_.h([].concat(_.MI(this.attributes)));for(var S=y.next();!S.done;S=y.next())S=S.value,S.name!=="slot"&&this.removeAttribute(S.name)}this.innerText="";XMA(this)}}};
X.prototype._setPendingPropertyOrPath=function(){};
X.prototype.notifyPath=function(){};
_.mh.Object.defineProperties(X.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var b=_.h(Object.keys(Y)),J=b.next(),G={};!J.done;G={prop$jscomp$103:void 0},J=b.next())G.prop$jscomp$103=J.value,J=void 0,((J=V.legacyPolymer)==null?0:J.forwardHostProps)&&BaY.has(G.prop$jscomp$103)||Object.defineProperty(X.prototype,G.prop$jscomp$103,{set:function(y){return function(S){var M=this;this._isInert||(this.setters?Ga(function(){var f,z;return void((z=(f=M.setters)[y.prop$jscomp$103])==null?void 0:z.call(f,S))}):(this.rawProps[y.prop$jscomp$103]=S,this.queuingRender&&y.prop$jscomp$103===
"data"&&S!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(G),
get:W9d.has(G.prop$jscomp$103)?void 0:function(){return paN}});
customElements.define(R,X)};
_.bhK=function(B,R){return(B=_.$T(B,R))?_.j4(_.ym(B)):null};
_.Cc=function(B){if(B=_.$T(B,Number.MAX_VALUE,void 0,"width"))return _.ym(B)};
_.$T=function(B,R,V,e){e=e===void 0?"width":e;if(!B||!B.length)return null;if(_.k("kevlar_tuner_should_always_use_device_pixel_ratio")){var X=window.devicePixelRatio;_.k("kevlar_tuner_should_clamp_device_pixel_ratio")?X=Math.min(X,_.RC("kevlar_tuner_clamp_device_pixel_ratio")):_.k("kevlar_tuner_should_use_thumbnail_factor")&&(X=_.RC("kevlar_tuner_thumbnail_factor"));Jbo=X}else Jbo||(Jbo=window.devicePixelRatio);X=Jbo;_.k("kevlar_tuner_should_always_use_device_pixel_ratio")?R*=X:X>1&&(R*=X);if(_.k("kevlar_tuner_min_thumbnail_quality"))return B[0].url||
null;X=B.length;if(_.k("kevlar_tuner_max_thumbnail_quality"))return B[X-1].url||null;if(V)for(var Y=0;Y<X;Y++)if(B[Y].url.indexOf(V)>=0)return B[Y].url||null;for(V=0;V<X;V++)if(B[V][e]>=R)return B[V].url||null;for(R=X-1;R>0;R--)if(B[R][e])return B[R].url||null;return B[0].url||null};
NQA=function(){PK.size?setTimeout(function(){nc(jEZ)},0):Ugd=0};
jEZ=function(){var B=(0,_.P8)(),R=null,V=!1;PK.forEach(function(X){X.loaded=!0;X.loadTime=B;X.pendingPaint=!1;var Y=G6d.get(X);Y&&Y.resolve(B);R=X;V||!X.ftlEligible&&X.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(V=!0)});
var e;((e=R)==null?0:e.markDirty)&&R.markDirty();PK.clear();Ugd=0;V&&ybS(B)};
SlN=function(B){PK.add(B);B.pendingPaint=!0;Ugd||(Ugd=_.ua(_.dV,NQA))};
HhS=function(B){B.loaded=!1;B.loadTime=Infinity;var R=G6d.get(B);R&&(R.reject(Error("lh")),G6d.delete(B));B.pendingPaint&&(PK.delete(B),B.pendingPaint=!1)};
_.Meq=function(B){var R=B.indexOf(":");return R===-1?{originalName:B}:{originalName:B.substring(0,R),datasyncId:B.substring(R+1)}};
_.Dg5=function(){return _.W(function(B){if(k6S!==void 0)return B.return(k6S);k6S=new Promise(function(R){var V;return _.W(function(e){switch(e.nextAddress){case 1:return _.en(e,2),_.U(e,_.O5.open("test-only"),4);case 4:return _.U(e,_.O5.delete("test-only"),5);case 5:_.c8(e,3);break;case 2:if(V=_.WR(e),V instanceof Error&&V.name==="SecurityError")return R(!1),e.return();case 3:R("caches"in window),_.b3(e)}})});
return B.return(k6S)})};
zYA=function(){return _.W(function(B){if(B.nextAddress==1)return _.U(B,_.Dg5(),2);if(!B.yieldResult)return B.return(void 0);fyq||(fyq=new lyd);return B.return(fyq)})};
ayd=function(B){var R,V,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:return _.U(Y,zYA(),2);case 2:R=Y.yieldResult;if(!R)throw Error("nh");return _.U(Y,R.open("yt-player-local-img"),3);case 3:return V=Y.yieldResult,_.U(Y,V.match(B),4);case 4:e=Y.yieldResult;if(!e)throw Error("oh");return _.U(Y,e.blob(),5);case 5:return X=Y.yieldResult,Y.return(X)}})};
dgS=function(B,R){for(var V in B)if(B.hasOwnProperty(V)&&R[V])return V;return null};
waI=function(B){return"stamp"+B.replace("-","_")+"_"};
TQN=function(B){var R=B.match(/\[\[([\w\.]+)\]\]/);if(R&&R.length>1)return R[1];_.Tn(Error("qh`"+B));return null};
xgd=function(B){return B===void 0?_.KQ("REUSE_COMPONENTS",!1):B||!1};
K9x=function(B,R,V){V&&(R.is?(L9o.has(R)&&(B=L9o.get(R),V=B.listener,delete R[B.property],V.type==="element"&&R.removeEventListener(V.eventName,V.handler),L9o.delete(R)),veY(R)):R.__proto__==HTMLElement.prototype&&(R=new _.H8("Rendererstamper removed a non custom element","Stamper: "+B+" element: "+(R&&R.nodeName)),_.KE(R)))};
IyS=function(B,R,V,e){var X=R.node?R.node:R;_.w(V).parentNode===X&&(R.removeChild(V),K9x(B,V,e));if(B=oO.get(V))oO.delete(V),_.dV.cancelJob(B);V.hidden=!1};
EeA=function(B,R,V,e){if(R&&R.children&&(V=R.children[V]))if(_.KQ("DEFERRED_DETACH"))for(;V&&!oO.has(V);){var X=B,Y=R,t=V,b=e;t.hidden=!0;X=_.kD(_.dV,IyS.bind(null,X,Y,t,b),0);oO.set(t,X);V=V.nextElementSibling}else for(;(t=R.lastElementChild)&&(R.removeChild(t),K9x(B,t,e),t!=V););};
QES=function(B){var R=_.Zh();_.zM(function(){for(var V=_.h(B.slotContent),e=V.next();!e.done;e=V.next())R.value.appendChild(e.value)});
return _.N("__slot-el",{el:R,skip:!0})};
_.Br=function(B,R,V){V=V===void 0?qlp:V;CJ.add(R);var e;(e=V).propNames!=null||(e.propNames=[]);var X=new Set(V.propNames),Y=XaI();e=function(){var G=Y.call(this)||this;G.props={};G.isUpdating=!1;G.hasAttached=!1;G.isInert=!1;G.updateQueued=!1;G.initialClasses=[];bbd(G,R);return G};
_.l(e,Y);e.prototype.forwardKebabCaseProp=function(G,y){G=_.jk(G);if(X.has(G)||G==="children")this.props[G]=y};
e.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var G=_.h(this.initialClasses),y=G.next();!y.done;y=G.next())(y=y.value)&&this.classList.add(y);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
e.prototype.handleSlottedContent=function(){for(var G=new Map,y=_.h(this.children),S=y.next();!S.done;S=y.next()){S=S.value;var M=void 0,f=(M=S.getAttribute("slot"))!=null?M:"children";(M=G.get(f))?M.push(S):G.set(f,[S]);if(!S.getAttribute("key")){var z=void 0,T=void 0;S.setAttribute("key",f+"_"+((T=(z=M)==null?void 0:z.length)!=null?T:0))}}G=_.h(G);for(y=G.next();!y.done;y=G.next())S=_.h(y.value),y=S.next().value,S=S.next().value,this.forwardKebabCaseProp(y,_.N(QES,{slotContent:S}))};
e.prototype.connectedCallback=function(){var G=this;if(!bbd(this,R)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var y=_.h(this.attributes),S=y.next();!S.done;S=y.next())S=S.value,this.forwardKebabCaseProp(S.name,RYS(S));this.handleSlottedContent();V.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){G.afterFirstPatch()});
this.hasAttached=!0}};
e.prototype.attributeChangedCallback=function(G,y,S){this.isInert||this.isUpdating||this.isConnected||G!=="class"||this.initialClasses.push.apply(this.initialClasses,_.MI(S.split(" ")))};
e.prototype.disconnectedCallback=function(){AKx(this)};
e.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var G,y;prq(this,_.N(B,Object.assign({},this.props,{idomKey:(y=(G=this.__incrementalDOMData)==null?void 0:G.key)!=null?y:R})),!0)}catch(M){var S=M instanceof Error?M:new _.H8("Wiz rendering error");S.args||(S.args=[]);S.args.push("Error in deprecated web component wrapper");S.args.push(R.toLowerCase());_.Tn(S);throw M;}finally{this.updateQueued=this.isUpdating=!1}}};
e.prototype.enqueueUpdate=function(){var G=this;return _.W(function(y){if(V.synchronous)return G.update(),y.return();if(G.updateQueued)return y.return();G.updateQueued=!0;return y.return(Promise.resolve().then(function(){G.update()}))})};
e.prototype.notifyPath=function(){V.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.mh.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var t=_.h(V.propNames),b=t.next(),J={};!b.done;J={prop$jscomp$105:void 0},b=t.next())J.prop$jscomp$105=b.value,Object.defineProperty(e.prototype,J.prop$jscomp$105,{set:function(G){return function(y){this.isInert||y===this.props[G.prop$jscomp$105]||(this.props[G.prop$jscomp$105]=y,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(J)});
customElements.define(R,e)};
_.cbd=function(B,R){return _.p7(B.entities,"markersEngagementPanelSyncEntity",R)};
AbI=function(B,R){return _.p7(B.entities,"fantasyWinProbabilityEntity",R)};
ih5=function(B,R){return _.p7(B.entities,"fantasyTeamEntity",R)};
sEd=function(B,R){return _.p7(B.entities,"fantasyPlayerEntity",R)};
F9q=function(B,R){return _.p7(B.entities,"booleanEntity",R)};
rbY=function(B,R){return _.p7(B.entities,"qrCodeEntity",R)};
gep=function(B){return _.p7(B.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
ZhZ=function(){if(RO)return RO;if(window.lottie)return RO=Promise.resolve(window.lottie);var B=_.wV(_.vE("LOTTIE_URL"));return B?RO=new Promise(function(R,V){var e=document.createElement("script");e.addEventListener("load",function(){R(lottie)});
e.addEventListener("error",function(X){var Y="Lottie library failed to load.";X?X.message&&(Y+=" Original description: "+X.message,_.Iq(X,Y)):X=Error(Y);_.KE(X);V(X)});
e.setAttribute("async","");_.Qm(e,B);document.head.appendChild(e)}):Promise.reject(Error("rh"))};
mgp=function(){return RO?RO:ZhZ()};
$g5=function(){var B=gep(_.g6().getState());if(B&&B.animationStyle)switch(B.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return VK.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return VK.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return VK.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
Cqp=function(B){if(B)switch(B){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.k("kevlar_use_wil_icons"))return(B=$g5())?B:VK.get("LIKE")}};
Pqp=function(B){var R=Cqp(B);if(R)return R;switch(B){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return VK.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return VK.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return VK.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return VK.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return VK.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return VK.get("NOTIFICATION_BELL")}};
uSZ=function(B,R){if(!B||neI)R=!1;else{if(B.closest){var V=!!Cqp(R);V=_.vE("ID_TOKEN")&&V?!!B.closest("segmented-like-dislike-button-view-model"):!1}else V=!1;if(!V)if(B.closest)if(V=!_.vE("ID_TOKEN"),B=B.closest("ytd-subscription-notification-toggle-button-renderer-next"),V||!B)V=!1;else{var e;V=((e=B.data)==null?void 0:e.targetId)==="notification-bell"&&R!=="EXPAND_MORE"}else V=!1;R=V}return R};
Ohx=function(B){var R,V;return _.W(function(e){switch(e.nextAddress){case 1:return _.en(e,2),_.U(e,fetch(B),4);case 4:return R=e.yieldResult,_.U(e,R.json(),5);case 5:return e.return(e.yieldResult);case 2:V=_.WR(e),_.KE(V),_.b3(e)}})};
o9u=function(B,R){var V,e,X;return _.W(function(Y){if(Y.nextAddress==1)return(V=R?B.pathDarkTheme:B.path)?_.U(Y,Promise.all([Ohx(V),ZhZ()]),2):Y.return();e=Y.yieldResult;X=e[0];eQ.set(V,X);_.b3(Y)})};
_.XE=function(){var B=_.HB.apply(0,arguments);return function(){for(var R="",V=_.h(B),e=V.next();!e.done;e=V.next())if(e=e.value,typeof e==="function"&&(e=e()),e)if(typeof e==="string")R+=" "+e;else for(var X in e)if(e.hasOwnProperty(X)){var Y=e[X];typeof Y==="function"&&(Y=Y());Y&&(R+=" "+X)}R=R.trim()||void 0;return _.wA(R)}};
_.pD=function(B){var R;var V=B.data;var e=B.className;var X=B.animationName;var Y=B.animationRef;var t=(R=B.elRefForInterop)||_.Zh(),b;_.aK(function(){var y;return void((y=b)==null?void 0:y.destroy())});
var J;_.lJ(function(){var y=_.wA(X);if(y!==J){J=y;var S=Object.assign({},{animationName:y,animationRef:_.wA(Y)},_.wA(V));try{_.Oz().resolve(BdZ)().then(function(z){var T;(T=b)==null||T.destroy();T=S.animationRef;var L=S.listeners;z=z.loadAnimation(Object.assign({},{container:t.value},S.animationConfig));T&&(T.lottieEl=z);if(L)for(T=_.h(Object.entries(L)),L=T.next();!L.done;L=T.next()){var Q=_.h(L.value);L=Q.next().value;(Q=Q.next().value)&&z.addEventListener(L,Q)}b=z})}catch(z){y=z;
var M="LottieComponent error.";y.message&&(M+=" Original description: "+y.message);_.Iq(y,M);_.KE(y);var f;((f=S.listeners)==null?0:f.error)&&S.listeners.error(y)}}});
var G=_.XE("ytLottieComponentHost",e);return _.N(ZEK,{cond:function(){return!R},
then:function(){return _.N("lottie-component",{class:G,el:t})}})};
RaI=function(B){var R=_.Zh(),V=_.h(jAI(B.data.animationConfig.name||"",B.className)),e=V.next().value;V=V.next().value;var X=dg(function(){return B.data.animationRef});
lj(function(){B.data.animationRef&&(B.data.animationRef.lottieEl=X==null?void 0:X.lottieEl)},[B.data.animationRef]);
return _.N("lottie-component",{skip:!0,class:_.XE(V,"ytLottieComponentHost"),el:R},_.N(_.pD,{data:B.data,animationRef:X,animationName:e,elRefForInterop:R}))};
eaq=function(B,R,V,e){function X(t,b){if(R.value===b&&B!=null&&B.value){for(;B.value.firstChild;)B.value.removeChild(B.value.firstChild);B.value.classList.add("yt-spec-icon-shape");t(B.value,e)}}
V=_.Vyq(_.Oz().resolve(_.VM),V);if(typeof V==="function")R.value=null,X(V,null);else{var Y=new _.be(V.then,V);R.value=Y;Y.then(function(t){X(t,Y)})}};
peq=function(B,R){var V=document.createElement("div"),e=_.Dk(V,function(){return _.N(_.H,{cond:B,then:function(X){return _.N(Xeu,{data:X,options:R})}})});
return[V,e]};
_.YB=function(){for(var B=[],R=_.h(_.HB.apply(0,arguments)),V=R.next();!V.done;V=R.next())if(V=V.value)if(typeof V==="string")B.push(V);else{V=_.h(Object.entries(V));for(var e=V.next();!e.done;e=V.next()){var X=_.h(e.value);e=X.next().value;(X=X.next().value)&&B.push(e)}}return B.join(" ")};
WYp=function(B){var R=_.Zh(),V=wg(),e=rT(B.character)||rT(B.previousCharacter);kj(function(){if(B.marginMultiplier){var X;(X=V.value)==null||X.cancel();e?(X=B.previousCharacter?Number(B.previousCharacter)+10:B.rollUp?0:30,B.shouldAnimate||(X-=Y1q(B,X))):(X=B.rollUp?0:2,B.shouldAnimate||(X-=B.rollUp?-1:1));R.value.style.marginTop="-"+X*B.marginMultiplier+"px";B.shouldAnimate?V.value=haS(R.value,B,X,e):R.value.style.display=B.character?"":"none"}});
return _.N("animated-rolling-character",{el:R,class:"animated-rolling-character-wiz"},gz(e,function(){for(var X=[],Y=1;Y<30;Y++)X.push(_.N("div",null,Y%10));return _.N(_.OZ,null,_.N("div",null,"\u00a0"),X,_.N("div",null,"\u00a0"))},function(){return tyd(B.character)}))};
tyd=function(B){return _.N(_.OZ,null,_.N("div",null,"\u00a0"),_.N(_.OZ,null,gz(!B||_.Wd(B),function(){return _.N("div",null,"\u00a0")},function(){return _.N("div",null,B)})),_.N("div",null,"\u00a0"))};
haS=function(B,R,V,e){V=new Animation(new KeyframeEffect(B,[{transform:"translateY(0px)"},{transform:"translateY("+(e?Y1q(R,V):R.rollUp?-1:1)*R.marginMultiplier+"px)"}],b2A),document.timeline);R.character?(B.style.display="",V.onfinish=null):V.onfinish=function(){B.style.display="none"};
V.play();return V};
Y1q=function(B,R){var V=Number(B.character)+10;if(B.previousCharacter)if(B.character){var e=Number(B.character),X=Number(B.previousCharacter);B=B.rollUp?X<e?V:V+10:X<e?V-10:V}else B=B.rollUp?30:0;else B=B.character==="0"?V:B.rollUp?V-10:V+10;return R-B};
_.h3=function(B,R){return function(V){var e={},X;for(X in V){var Y=void 0,t=void 0;((Y=R)==null?0:(t=Y.callbacks)==null?0:t[X])||(e[X]=V[X])}return _.N(zqS,null,function(){for(var b in e)V[b]=_.wA(e[b]);V.disableReactiveLogging=!0;return _.N(B,Object.assign({},V))})}};
_.t3=function(B){var R=wg(),V=wg();lj(function(){R.value=B.numberText;V.value=B.numberValue},[B.numberText]);
var e=B.fontSizeMultiplier?B.heightPx*B.fontSizeMultiplier:B.heightPx,X=aP(function(){if(B.numberText){var t=B.numberText;var b=B.forceRollUp||!V.value||!B.numberValue||V.value<B.numberValue;var J=!!B.shouldAnimate,G=R.value,y=[],S=0,M=0,f=(G?G.replace(/\D/g,"").length:0)-(t?t.replace(/\D/g,"").length:0);G=G?G.split(/(\d)/).filter(Boolean):[];for(t=t.split(/(\d)/).filter(Boolean);f<0;){var z=t[M];y.push({character:z,rollUp:b,marginMultiplier:e,shouldAnimate:J});M++;rT(z)&&f++}for(;S<f;)z=G[S],y.push({previousCharacter:z,
rollUp:b,marginMultiplier:e,shouldAnimate:J}),S++,rT(z)||f++;for(;M<t.length;)f=t[M],z=G[S],rT(f)===rT(z)?(M++,S++):rT(f)?(S++,f=void 0):rT(z)&&(M++,z=void 0),y.push({character:f,previousCharacter:z,rollUp:b,marginMultiplier:e,shouldAnimate:J});b=y}else b=[];return b},[B.numberText]),Y=B.numberText?["height: "+e+"px;",
"line-height: "+B.heightPx+"px;"].join(" "):"";return _.N("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:Y,dir:"ltr","aria-hidden":"true"},X.map(function(t){return _.N(WYp,Object.assign({},t))}))};
JNo=function(B){var R=B.nodeName;if(B.id)return R+="#"+B.id;if(B.classList)for(var V=_.h(B.classList),e=V.next();!e.done;e=V.next())R+="."+e.value;B.parentElement&&(R=JNo(B.parentElement)+" > "+R);return R};
jRd=function(B){return function(R){var V=gXq("event",{type:R.type});V&&R.target&&V.attr("nodepath",JNo(R.target));return $po(V,B,R)}};
_.Wr=function(B){B&&ZgN("event")&&(B=jRd(B));return Oc_(function(R){var V,e=(V=B)==null?void 0:V(R);return typeof e==="boolean"?e:!0})};
bP=function(B){return function(){return B()?B():void 0}};
UcA=function(B){return new KeyframeEffect(B,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
NdI=function(B){return new KeyframeEffect(B,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Gud=function(B){var R=_.h(_.WU(B,void 0,"Clci1e")),V=R.next().value,e=R.next().value;V.current=B;return[V,function(X){return void e(V.current=X)}]};
_.J3=function(B){var R=rl(function(){return Gud(B())},{isEqual:function(V,e){return V[0].current===e[0].current}});
return[function(){return R()[0]()},
function(V){return void R()[1](V)}]};
_.jQ=function(B){return function(){var R="",V;for(V in B){for(var e=B[V];typeof e==="function";)e=e();e!==void 0&&e!==null&&(R+="; "+V+": "+e)}return R.length>0?_.wA(R.slice(2)):_.wA()}};
yNq=function(B){switch(B){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"}};
Myo=function(B,R,V,e,X,Y){var t=S1N(B),b=t.disabled,J=t.iconPosition,G=t.style,y=t.focused,S=function(){return!!z()&&J()==="icon-only"},M=function(){return!!z()&&J()==="icon-only-40"},f=function(){return!!z()&&J()==="icon-with-label"},z=function(){return!!R||!(e==null||!e())};
return{type:function(){return G()==="call-to-action-inverse"?"text":G()==="overlay-dark"&&B().type!=="filled"&&B().type!=="tonal"?"tonal":B().type},
shouldFocus:function(){return(y()||(Y==null?void 0:Y()))&&!b()},
hasIconLeading:function(){return!!z()&&J()==="leading"},
hasIconTrailing:function(){return!!z()&&J()==="trailing"},
hasIconLeadingTrailing:function(){return!!z()&&!!(V||X!=null&&X())&&J()==="leading-trailing"},
hasIconOnly:S,hasIconOnly40:M,hasIconWithLabel:f,iconButton:function(){return S()||M()||f()},
visiblyDisabled:function(){return(b()?"disabled":B().state)==="disabled"||b()},
overrideSmallSizeIcon:function(){return H2x(B(),z())},
iconToRender:R?R:function(){return _.N(_.Us,{icon:e,size:function(){return Nx(B(),!0)},
active:function(){return B().toggled}})},
secondaryIconToRender:V?V:function(){return _.N(_.Us,{icon:X,size:function(){return Nx(B(),!0)},
active:function(){return B().toggled}})}}};
S1N=function(B){return{size:function(){return B().size},
style:function(){return B().style},
focused:function(){return B().focused},
disabled:function(){return B().disabled},
onTap:function(R){var V,e;return(e=(V=B()).onTap)==null?void 0:e.call(V,R)},
alignByText:function(){return B().alignByText},
aTagConfig:function(){return B().aTagConfig},
customColors:function(){return B().customColors},
segmentedPosition:function(){return B().segmentedPosition},
toggled:function(){return B().toggled},
toggleable:function(){return B().toggleable},
accessibilityLabel:function(){return B().accessibilityLabel},
onToggle:function(R){var V,e;return(e=(V=B()).onToggle)==null?void 0:e.call(V,R)},
iconPosition:function(){return B().iconPosition},
oneOffCustomTextWrap:function(){return B().oneOffCustomTextWrap},
disableTextEllipsis:function(){return B().disableTextEllipsis},
disableBackdropFilter:function(){return B().disableBackdropFilter},
tooltipText:function(){return B().tooltipText},
ariaHidden:function(){return B().ariaHidden},
tabIndex:function(){return B().tabIndex},
buttonText:function(){return B().buttonText},
formattedButtonText:function(){return B().formattedButtonText},
animatedTextProps:function(){return B().animatedTextProps}}};
kuo=function(B){return B.style==="overlay-dark"?4:B.style==="overlay"?B.type==="filled"?4:3:B.type==="filled"||B.style==="call-to-action-inverse"||B.style==="mono-inverse"?2:1};
H2x=function(B,R){R=(B.iconPosition==="icon-only"||B.iconPosition==="icon-only-40"||B.iconPosition==="icon-with-label")&&R;return!B.segmentedPosition&&R&&B.size==="S"};
DcK=function(){return!_.k("web_disable_backdrop_filter")};
Nx=function(B,R){switch(B.size){case "XS":return 16;case "S":return H2x(B,R)?24:16;default:return 24}};
flu=function(B){switch(B){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"}};
llx=function(B){switch(B){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"}};
zaA=function(B){switch(B){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"}};
alo=function(B){if(B.style==="overlay-dark"&&B.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
dcZ=function(B){if(!B)return{};var R=B.color,V=B.backgroundColor;B=B.borderColor;var e="";R&&(e+="color: "+R+";");V&&(e+="background-color: "+V+";");B&&(e+="border-color: "+B+";");return{style:e}};
LYd=function(B,R,V){var e=B.buttonText,X=B.formattedButtonText,Y=B.formattedButtonTextLegacy,t=B.animatedTextProps,b=B.style,J=B.size,G=B.focused,y=B.disabled,S=B.onTap,M=B.alignByText,f=B.aTagConfig,z=B.customColors,T=B.segmentedPosition,L=B.toggled,Q=B.toggleable,q=B.accessibilityLabel,m=B.onToggle,g=B.iconPosition,Vu=B.oneOffCustomTextWrap,n=B.disableTextEllipsis,Yd=B.disableBackdropFilter,kd=B.tooltipText,a5=B.ariaHidden,lo=B.tabIndex,io=B.state,vd=B.type;b==="call-to-action-inverse"&&(vd="text");
b==="overlay-dark"&&vd!=="filled"&&vd!=="tonal"&&(vd="tonal");var cd=!!R&&g==="leading",ES=!!R&&g==="trailing",$d=!!R&&!!V&&g==="leading-trailing",Eo=!!R&&g==="icon-only",GG=!!R&&g==="icon-only-40",eJ=!!R&&g==="icon-with-label",pR=Eo||GG||eJ;y&&(io="disabled");var d4=io==="disabled"||y;io=H2x(B,!!R);var W2={},By=(W2["yt-spec-button-shape-next"]=!0,W2[flu(vd)]=!0,W2[llx(b)]=!d4,W2["yt-spec-button-shape-next--disabled"]=!!d4,W2[zaA(J)]=!0,W2["yt-spec-button-shape-next--focused"]=!!G&&!y,W2["yt-spec-button-shape-next--icon-trailing"]=
ES,W2["yt-spec-button-shape-next--icon-leading"]=cd,W2["yt-spec-button-shape-next--icon-leading-trailing"]=$d,W2["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=$d&&!(e||X),W2["yt-spec-button-shape-next--icon-button"]=Eo||eJ,W2["yt-spec-button-shape-next--icon-only-default"]=GG,W2["yt-spec-button-shape-next--align-by-text"]=!!M,W2["yt-spec-button-shape-next--segmented-start"]=T==="start",W2["yt-spec-button-shape-next--segmented-end"]=T==="end",W2["yt-spec-button-shape-next--override-small-size-icon"]=
io,W2["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!Vu,W2["yt-spec-button-shape-next--disable-text-ellipsis"]=!!n,W2["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Yd&&DcK(),W2),DY=function(){if(t)cK(_.t3)(t);else if(Y)Y(g==="icon-with-label"||Vu?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(X){var ZS=g==="icon-with-label"||Vu;nr5(Object.assign({},X,ZS?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!ZS})}else e&&PU(e)},hA=function(ZS){S==null||S(ZS);
Q&&(m==null||m(ZS))},fR=f?weq:Tdu,Qv=f?"aria-current$":"aria-pressed$",i4=function(){R&&(cd||$d||pR)&&function(){Gj({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){R()})}();
(e||X||Y||t)&&!pR&&function(){Gj({className:"yt-spec-button-shape-next__button-text-content"},function(){DY()})}();
ES&&function(){Gj({className:"yt-spec-button-shape-next__icon"},function(){R()})}();
$d&&function(){Gj({className:"yt-spec-button-shape-next__secondary-icon"},function(){V()})}();
y||cK(_.yK)({model:{color:kuo(B)}})},TG=function(){var ZS={};
fR(Object.assign({},(ZS.className=_.YB(By),ZS.onclick=f?void 0:hA,ZS.disabled=y,ZS["aria-disabled$"]=d4,ZS.style=y&&f?"pointer-events:none":void 0,ZS[Qv]=Q?!!L:void 0,ZS["aria-label$"]=q,ZS.title$=kd!=null?kd:"",ZS["aria-hidden$"]=a5,ZS.tabindex$=lo,ZS),f,dcZ(z)),function(){i4()})};
eJ?(J={},b=(J["yt-spec-button-shape-with-label"]=!0,J["yt-spec-button-shape-with-label--is-overlay"]=b==="overlay"||b==="overlay-dark",J),xc_({className:_.YB(b)},function(){TG();Gj({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},DY)})):TG()};
v9d=function(B,R){if(!Zv){var V;juI(function(){return V=fPN(B,R)});
return V}return fPN(B,R)};
KYo=function(){var B=vjS(Zv||void 0,MQS);return B===LnY||(B==null?void 0:B.name)==="\u0275NotFound"?void 0:B};
QRN=function(B){var R=B.data;var V=B.icon;var e=B.secondaryIcon;var X=B.iconName;var Y=B.secondaryIconName;KYo();var t=R.size;B=R.style;var b=R.focused,J=R.disabled,G=R.onTap,y=R.alignByText,S=R.aTagConfig,M=R.customColors,f=R.segmentedPosition,z=R.toggled,T=R.toggleable,L=R.accessibilityLabel,Q=R.onToggle,q=R.iconPosition,m=R.oneOffCustomTextWrap,g=R.disableTextEllipsis,Vu=R.disableBackdropFilter,n=R.tooltipText,Yd=R.ariaHidden,kd=R.tabIndex,a5=!!V||!!X,lo=V,io=e;if(X){var vd=Nx(R,!0);lo=function(){return _.N(_.Us,
{icon:X,size:vd,active:R.toggled})}}if(Y){var cd=Nx(R,!0);
io=function(){return _.N(_.Us,{icon:Y,size:cd,active:R.toggled})}}var ES=R.state;
V=R.type;B==="call-to-action-inverse"&&(V="text");B==="overlay-dark"&&V!=="filled"&&V!=="tonal"&&(V="tonal");var $d=a5&&q==="leading",Eo=a5&&q==="trailing",GG=a5&&(!!e||!!Y)&&q==="leading-trailing";e=a5&&q==="icon-only";var eJ=a5&&q==="icon-only-40";q=a5&&q==="icon-with-label";var pR=e||eJ||q;J&&(ES="disabled");var d4=ES==="disabled"||J;a5=H2x(R,a5);ES={};var W2=_.YB((ES["yt-spec-button-shape-next"]=!0,ES[flu(V)]=!0,ES[llx(B)]=!d4,ES["yt-spec-button-shape-next--disabled"]=!!d4,ES[zaA(t)]=!0,ES["yt-spec-button-shape-next--focused"]=
!!b&&!J,ES["yt-spec-button-shape-next--icon-trailing"]=Eo,ES["yt-spec-button-shape-next--icon-leading"]=$d,ES["yt-spec-button-shape-next--icon-leading-trailing"]=GG,ES["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=GG&&!(R.buttonText||R.formattedButtonText),ES["yt-spec-button-shape-next--icon-button"]=e||q,ES["yt-spec-button-shape-next--icon-only-default"]=eJ,ES["yt-spec-button-shape-next--align-by-text"]=!!y,ES["yt-spec-button-shape-next--segmented-start"]=f==="start",ES["yt-spec-button-shape-next--segmented-end"]=
f==="end",ES["yt-spec-button-shape-next--override-small-size-icon"]=a5,ES["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!m,ES["yt-spec-button-shape-next--disable-text-ellipsis"]=!!g,ES["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Vu&&DcK(),ES)),By=_.Wr(function(DY){G==null||G(DY);T&&(Q==null||Q(DY))});
t=function(){return S?_.N(_.SQ,{aTagConfig:S,disabled:J,className:W2,style:dcZ(M).style,title:n!=null?n:"",ariaLabel:L,ariaCurrent:T&&z},_.N(_.OZ,null,Ilu(R,$d,GG,Eo,pR,lo,io))):_.N("button",{"on:click":By,class:W2,title:n!=null?n:"",style:J&&S?"pointer-events:none":dcZ(M).style,disabled:J,"aria-pressed":T?!!z:void 0,"aria-label":L?L:void 0,"aria-disabled":d4,"aria-hidden":Yd,tabindex:kd},_.N(_.OZ,null,Ilu(R,$d,GG,Eo,pR,lo,io)))};
b={};B=(b["yt-spec-button-shape-with-label"]=!0,b["yt-spec-button-shape-with-label--is-overlay"]=B==="overlay"||B==="overlay-dark",b);return _.N("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},q?_.N("label",{class:_.YB(B)},t(),_.N("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},E9_(R))):t())};
E9_=function(B){var R=B.formattedButtonText,V=B.animatedTextProps,e=B.buttonText,X=B.oneOffCustomTextWrap;B=B.iconPosition;return V?_.N(_.t3,{numberText:V.numberText,numberValue:V.numberValue,heightPx:V.heightPx,fontSizeMultiplier:V.fontSizeMultiplier,shouldAnimate:V.shouldAnimate,forceRollUp:V.forceRollUp}):R?(V=B==="icon-with-label"||X,_.N(_.Hr,{text:Object.assign({},R,V?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!V})):e};
Ilu=function(B,R,V,e,X,Y,t){return _.N(_.OZ,null,gz(Y&&(R||V||X),function(){return _.N(_.OZ,null,_.N("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},Y==null?void 0:Y()))}),gz((B.buttonText||B.formattedButtonText||B.animatedTextProps)&&!X,function(){return _.N(_.OZ,null,_.N("div",{class:"yt-spec-button-shape-next__button-text-content"},E9_(B)))}),gz(e,function(){return _.N(_.OZ,null,_.N("div",{class:"yt-spec-button-shape-next__icon"},Y==null?void 0:Y()))}),gz(V,function(){return _.N(_.OZ,
null,_.N("div",{class:"yt-spec-button-shape-next__secondary-icon"},t==null?void 0:t()))}),gz(!B.disabled&&!0,function(){return _.N(_.yK,{model:{color:kuo(B)}})}))};
Mx=function(B,R){_.wl(B,Object.assign({},R,{forceClickLogging:!0}))};
q1q=function(B,R,V,e){var X=void 0;return function(Y){var t=_.dl(V?B==null?void 0:B.onDisabledTap:B==null?void 0:B.onTap);if(t){var b;X=(b=X)!=null?b:R==null?void 0:R.value;if(t)if(_.k("web_button_vm_click_client_ve_killswitch"))Mx(t,Object.assign({},{form:{element:X,event:Y}},void 0));else{var J;b=t==null?void 0:t.clickTrackingParams;var G,y=B==null?void 0:(J=B.loggingDirectives)==null?void 0:(G=J.clientVeSpec)==null?void 0:G.uiType;J=y&&!b?_.kB(y):void 0;Mx(t,Object.assign({},{form:{element:X,event:Y}},
{clickedVisualElement:J}))}}e&&e(Y)}};
cN_=function(B){switch(B){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"}};
AN5=function(B){switch(B){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"}};
i2p=function(B){switch(B){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"}};
sRq=function(B){switch(B){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"}};
FY5=function(B,R){return _.p7(B.entities,"engagementToolbarStateEntityPayload",R)};
g9A=function(B){(B=_.U5(B))&&_.rNo(B)};
_.rNo=function(B){var R=_.TE();R&&_.qd(R,B)};
Z2S=function(B,R,V){_.oF(B,"yt-open-popup-action",[R,V||B])};
mcx=function(B,R){var V=_.TM(B,"endpoint"),e=_.TM(B,"action");return(V=e?e:V)&&R&&(V=R.navigationEndpointPopupMap[V])&&(B=_.qN(V,B),(V=_.TM(B,"renderer"))&&R.supportedPopups.hasOwnProperty(V))?{openPopupAction:{popupType:R.popupTypeMap[V],popup:B}}:null};
$co=function(B,R,V,e){if(e){var X;V=V==null?void 0:(X=V.data)==null?void 0:X.contents;(X=V instanceof Array&&V.length?V[0]:V)&&(V=_.TM(X,"renderer"))&&e.supportedPopups.hasOwnProperty(V)&&(R.stopPropagation(),Z2S(B,{openPopupAction:{popupType:e.popupTypeMap[V],popup:X}}))}};
n9S=function(B,R,V,e){e=e===void 0?!1:e;var X=Cwq(R);if(X){X.href&&wr(X.href);var Y=R.button;Y=Y!==void 0?Y===0&&!DP(R):!DP(R);X.data&&Y&&Pwo(B,X,R,V,e)}};
Pwo=function(B,R,V,e,X){X=X===void 0?!1:X;var Y=_.RC("pbj_navigate_limit",-1)===0;uRx(R);_.Oz().resolve(_.uj(AK));var t=R.data;if(Object.keys(t).length!==0)if(!_.k("unplugged_web_disable_actions_for_cec_endpoint")&&_.D(t,_.p0))_.k("endpoint_behavior_command_executor_fix_killswitch")||(V.preventDefault(),V.stopPropagation()),_.eO(B,[t],B);else if(e=mcx(t,e))t.loggingUrls&&t.loggingUrls.forEach(function(J){J.baseUrl&&_.qC(J.baseUrl)}),V.preventDefault(),V.stopPropagation(),Z2S(B,e,R);
else{var b=O2Z(0,R.data,V);if(B=R.getForm)B=B(),b.tempData=b.tempData||{},b.tempData=Object.assign({},b.tempData,B);B=_.Az(V);if(e=B.find(function(J){return!!J.visualElement}))b.createScreenConfig=b.createScreenConfig||{},b.createScreenConfig.clickedVisualElement=e.visualElement;
if(!Y)if(V.preventDefault(),V.stopPropagation(),_.D(t,_.oFd)&&!X&&_.eR.instance)_.eR.instance.resolveCommand(t,b);else if(_.k("kevlar_command_handler_formatted_string")&&!X&&_.eR.instance&&Bhp(t))X=B.find(function(J){return!!J.is})||V.target,V={form:Object.assign({},b,{event:V,
element:X,originatingNode:R})},_.eR.instance.resolveCommand(t,V);else{t=_.Az(V);V=[];for(X=0;X<t.length;X++)(Y=t[X].is)&&V.push(Y);QTp({parents:V.join(","),text:R.innerText},function(){_.OI(R,"yt-navigate",b)})}}};
RFN=function(B){if(B=Cwq(B))uRx(B),GYK(B.href)};
Cwq=function(B){B=_.Az(B);for(var R,V=0;V<B.length;V++)if(R=B[V],R.tagName==="A"&&R.classList.contains("yt-simple-endpoint")){if(!R.data)break;return R}return null};
DP=function(B){return B.shiftKey||B.altKey||B.metaKey||B.ctrlKey};
VgY=function(B,R){var V={itct:R.clickTrackingParams};_.k("kevlar_client_side_screens")&&(!_.D(R,_.GF)||_.k("kevlar_exclude_endpoint_killswitch"))&&(V.endpoint=JSON.stringify(R));_.k("enable_unknown_lact_fix_on_html5")&&_.Oz().resolve(_.uj(_.fD))&&(V.lact=_.B5());j$o(V);_.Zg(B,V)};
uRx=function(B){B.href&&Object.keys(B.data).length!==0&&VgY(B.href,B.data)};
Bhp=function(B){for(var R=_.h(eFq),V=R.next();!V.done;V=R.next())if(B[V.value])return!1;return!0};
_.lP=function(B,R){if(R){var V={};Xqd.forEach(function(e){e=pqZ(R,e,"--yt-lightsource-");Object.assign(V,e)});
Yiu.forEach(function(e){e=pqZ(R,e,"--yt-basic-");Object.assign(V,e)});
_.o_(B,V)}};
pqZ=function(B,R,V){var e={};e[V+_.JZ(R)]=B&&B[R]?_.zF(B[R]):"";return e};
_.aO=function(B,R,V){zj[B]||(zj[B]={});zj[B][R]=V};
_.d1=function(B){zj[B]||(zj[B]={});return zj[B]};
hFu=function(B){if(!B)return{};var R=B.foregroundTitleColor,V=B.backgroundColor;B=B.borderColor;var e="text";B?e="outline":V&&(e="filled");return{type:e,customColors:{color:R?_.zF(R):void 0,backgroundColor:V?_.zF(V):void 0,borderColor:B?_.zF(B):void 0}}};
jYK=function(B){var R=B.renderer;var V=B.element;var e=B.commandController;var X=B.onTapCallback;var Y=B.skipCommandHandling;var t=B.overrides;var b=B.forceIcon;var J=B.forceModernIconButton;var G=B.forceDisabled;var y=B.isSubscribe===void 0?!1:B.isSubscribe;var S=B.isPressed===void 0?!1:B.isPressed;var M=B.useButtonSize===void 0?!1:B.useButtonSize;B=tgp(R);y&&(B.style="mono",B.type="filled");b=!R.icon||!b&&R.text?R.icon?R.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:J?"icon-only":"icon-only-40";b==="icon-only-40"&&(B.type="text");var f;J=Object;y=J.assign;M=W1A(R,M);S=!!R.isSelected||!_.k("web_propagate_is_pressed_killswitch")&&!!S;var z=R.isSelected!==void 0;G=G===void 0?R.isDisabled:G;var T=R.text?_.fc(R.text):void 0;var L,Q,q,m=((L=R.accessibilityData)==null?void 0:(Q=L.accessibilityData)==null?void 0:Q.label)||((q=R.accessibility)==null?void 0:q.label);L=m?m:_.FF(R.text);V=bSI(R,V,e,X,Y);e=Jjd(R);e!=null&&e.length?(e=_.T2({innertubeCommand:qmu(e),
forceNewState:!0}),e=xT(e)?e:void 0):e=void 0;return y.call(J,{},B,M,{iconPosition:b},t,{focused:!1,toggled:S,toggleable:z,disabled:G,formattedButtonText:T,accessibilityLabel:L,onTap:V,aTagConfig:e},hFu((f=R.colorData)==null?void 0:f.basicColorPaletteData),{oneOffCustomTextWrap:R.oneOffCustomTextWrap})};
bSI=function(B,R,V,e,X){return function(Y){var t=Jjd(B);e(t,Y);if(!X){t=_.h(t);for(var b=t.next();!b.done;b=t.next())Mx(b.value,{form:{element:R,event:Y},commandController:V})}}};
Jjd=function(B){var R=[];B.command&&R.push(B.command);B.serviceEndpoint&&R.push(B.serviceEndpoint);B.navigationEndpoint&&R.push(B.navigationEndpoint);return R};
W1A=function(B,R){if(R)switch(B.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(B.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
tgp=function(B){switch(B.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"}}};
_.w1=function(B){return _.NW(function(){U$q()();return qU(B)},void 0,"Icv7j")};
Tj=function(B,R){return _.p7(B.entities,"likeStatusEntity",R)};
UbI=function(B,R){return _.p7(B.entities,"likeCountEntity",R)};
_.NhK=function(B,R){return _.p7(B.entities,"stringEntity",R)};
GyZ=function(B,R){if(!B)return!1;var V,e=(V=_.D(B,_.hE))==null?void 0:V.signal;if(e&&R.signalEndpointMap)return!!R.signalEndpointMap[e];var X;if((V=(X=_.D(B,_.xB))==null?void 0:X.request)&&R.continuationEndpointMap)return!!R.continuationEndpointMap[V];for(var Y in B)if(R.commandEndpointMap[Y])return!0;return!1};
yju=function(B,R){if(R.streamingEndpointMap)for(var V in B)if(R.streamingEndpointMap[V]&&(B=R.streamingEndpointMap[V]))return B()};
Sip=function(B,R){var V,e=(V=_.D(B,_.hE))==null?void 0:V.signal;if(e&&R.signalEndpointMap&&(V=R.signalEndpointMap[e]))return V();var X;if((V=(X=_.D(B,_.xB))==null?void 0:X.request)&&R.continuationEndpointMap&&(X=R.continuationEndpointMap[V]))return X();for(var Y in B)if(R.commandEndpointMap[Y]&&(B=R.commandEndpointMap[Y]))return B()};
HS5=function(B){var R={"Content-Type":"application/json"};_.vE("EOM_VISITOR_DATA")?R["X-Goog-EOM-Visitor-Id"]=_.vE("EOM_VISITOR_DATA"):_.vE("VISITOR_DATA")&&(R["X-Goog-Visitor-Id"]=_.vE("VISITOR_DATA"));R["X-Youtube-Bootstrap-Logged-In"]=_.vE("LOGGED_IN",!1);_.vE("DEBUG_SETTINGS_METADATA")&&(R["X-Debug-Settings-Metadata"]=_.vE("DEBUG_SETTINGS_METADATA"));B!=="cors"&&((B=_.vE("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(R["X-Youtube-Client-Name"]=B),(B=_.vE("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(R["X-Youtube-Client-Version"]=
B),(B=_.vE("CHROME_CONNECTED_HEADER"))&&(R["X-Youtube-Chrome-Connected"]=B),(B=_.vE("DOMAIN_ADMIN_STATE"))&&(R["X-Youtube-Domain-Admin-State"]=B),_.KQ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(B=_.vE("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(R["X-YouTube-Lava-Device-Context"]=B));return R};
MgN=function(B,R){R.watchNextResponse||R.reelItemWatchResponse?R.watchNextResponse?B.content=R.watchNextResponse:B.content=R.reelItemWatchResponse:R.playerResponse?B.player=R.playerResponse:R.reelWatchSequenceResponse&&(B.reelSequence=R.reelWatchSequenceResponse)};
LD=function(B){return function(){return new B}};
vr=function(B){var R=_.Oz();return function(){return R.resolve(B)}};
_.KD=function(B){if(!B)return null;for(var R=[],V=0;V<B.textSegments.length;V++){var e=B.textSegments[V];e.text?R.push(e):e.emojiId&&R.push({emoji_id:e.emojiId})}return{text_segments:R}};
zFA=function(B,R,V,e,X,Y,t){Y=Y===void 0?[]:Y;var b=new _.IO;b.endpoint=V;if(!V)return _.v5(new _.H8("handle undefined endpoint",R.tagName)),b;var J=Zcx(V);J.length&&(_.eO(B,J,R,e),b.actions=J);V.loggingUrls&&V.loggingUrls.forEach(function(y){y.baseUrl&&cf(y.baseUrl,y.attributionSrcMode)});
J=!_.k("web_skip_impression_click_killswitch")&&e&&e.impression;if(V.clickTrackingParams&&!kyq(V)&&!Dbu(R)&&!J&&(J=_.WK(),!_.Es(J,R))){var G=R.getScreenLayer&&R.getScreenLayer();G?J.clickCommand(V,null,G):J.clickCommand(V,null)}J=!1;for(G=0;G<Y.length;G++)if((0,Y[G])(R,V,e)){J=!0;break}!J&&fjp(V)&&(b.ajaxPromise=ljp(B,R,V,e,X,t));return b};
Dbu=function(B){var R;return(B=(R=B.data)==null?void 0:R.navigationEndpoint)&&!!B.clickTrackingParams};
kyq=function(B){var R=_.D(B,_.hE);if(R&&(R=R.signal)&&ajN.indexOf(R)>=0)return!0;for(var V in B)if(dbI.indexOf(V)>=0)return!0;return!1};
fjp=function(B){var R;if(((R=_.D(B,_.hE))==null?void 0:R.signal)==="CLIENT_SIGNAL")return!1;for(var V in B)if(wqo.indexOf(V)>=0)return!1;B=Object.keys(B);return B.length===1&&B[0]==="loggingUrls"?!1:!0};
QYN=function(B,R,V,e,X,Y,t){var b=_.QK.instance;if(b&&_.qx(b,e))var J=_.cr(b,e,X).then(function(y){return(y==null?0:y.data)?y:{data:y}});
else J=B.requestDataForServiceEndpoint(e,X),_.D(e,ThA)||_.D(e,xbu)||_.D(e,_.L1_)||_.D(e,vFN)||_.KE(new _.H8("No RequestBuilder for endpoint",e));var G=_.A3();G.promise.thenCatch(function(){var y=_.TM(e,"action")||_.TM(e,"command")||_.TM(e,"endpoint");y&&(y=e[y],y.hasOwnProperty("onFailureAction")?_.eO(R,[y.onFailureAction],V):y.hasOwnProperty("onFailureCommand")&&_.eO(R,y.onFailureCommand,V));J.cancel("Resolver promise rejected")});
J.then(function(y){if(y){var S=y.error;if(S){if(Y&&Y.onServerError)Y.onServerError(e,y);G.reject(new _.H8("Response error",e,S))}else if(y=y.data)if(S=y.error){if(Y&&Y.onServerError)Y.onServerError(e,y);G.reject(new _.H8("Returned error",e,S))}else{K1q(R,V,y,e);IjA(y);if(S=gT5(y))for(var M=_.h(S),f=M.next();!f.done;f=M.next()){f=f.value;var z=_.Oz().resolve(_.uj(EF_))||iP;if(!_.QK.instance||!z.some(function(L){return!!_.D(e,L)})||_.k("kevlar_response_processor_allowlist_killswitch")){var T=z=void 0;
((T=_.D((z=f)==null?void 0:z.commandMetadata,_.$a))==null?0:T.sendPost)?_.VD(R,[f]):_.eO(R,[f],V)}}(M=_.D(y==null?void 0:y.frameworkUpdates,FE))&&t&&t(M);if(Y&&Y.onSuccess)Y.onSuccess(e,y);G.resolve(new _.r1(y,S))}}else G.reject(new _.H8("Invalid service endpoint provided",e))},function(y){G.reject(y)});
return G.promise};
IjA=function(B){var R;(B=(R=_.D(B==null?void 0:B.onResponseReceivedCommand,_.qio))==null?void 0:R.continuationItems)&&(B==null?void 0:B.length)===1&&_.D(B[0],cjo)&&_.zp("so_r",void 0,"search_overview_answer")};
ljp=function(B,R,V,e,X,Y){var t;return(t=R.getNetworkManager&&R.getNetworkManager()?R.getNetworkManager():_.Oz().resolve(_.uj(_.H$)))?QYN(t,B,R,V,e,X,Y):_.SR("No network manager.")};
K1q=function(B,R,V,e){if(V=V.trackingParams||V.loggingDirectives&&V.loggingDirectives.trackingParams){var X;(_.D(e,AjN)||_.D(e,iSA)||_.D(e,sYq))&&e.clickTrackingParams?X=_.U5(e.clickTrackingParams):_.k("web_graft_to_parent_command")&&e.clickTrackingParams&&(X=_.U5(e.clickTrackingParams));var Y;e=(Y=R.getScreenLayer)==null?void 0:Y.call(R);R=_.WK().graftServerVe(V,X,e);_.Bz(B,"yt-store-grafted-ve-action",[R])}};
_.F1S=function(B){var R=new Image;return new _.be(function(V,e){R.addEventListener("load",function(){V()});
R.addEventListener("error",function(){e()});
R.src=B})};
rju=function(B){return!!B};
gFK=function(B){return!!B};
ZS_=function(B,R,V){var e=B.rowIndex;e!==void 0&&_.Bz(B.hostElement,"yt-section-reactive-dismissal",[e,R,V])};
_.g1=function(B,R,V){B=_.h(B);for(var e=B.next();!e.done;e=B.next()){e=e.value;if(e===R)break;for(var X=_.h(V),Y=X.next();!Y.done;Y=X.next())if(Y=Y.value,e.tagName===Y||!_.k("web_event_button_role_check_killswitch")&&e.role==="button"&&Y==="BUTTON")return!0}return!1};
_.ZP=function(B,R,V){B=_.h(B);for(var e=B.next();!e.done;e=B.next()){e=e.value;if(e===R)break;for(var X=_.h(V),Y=X.next();!Y.done;Y=X.next())if(e.id===Y.value)return!0}return!1};
m3=function(B,R){if(!B&&!R)return"medium";B=Math.max(B||0,R||0);return B>=256?"large":B>=96?"medium":"small"};
mbN=function(B){switch(B){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Pr=function(){var B=_.Oz().resolve(_.uj(_.$B));return B?(B=B.getCurrentPage())?_.CD(B):null:null};
_.nD=function(){var B=_.Pr();if(!B){var R=_.Oz().resolve(_.uj(_.$B)),V=R?typeof R:"no page manager";R=R?R.getCurrentPage():null;V=new _.H8("Player is missing when requested.",V,R?R.tagName:"no page");_.Tn(V)}return B};
_.CD=function(B){return B&&B.getPlayer?B.getPlayer():null};
$bd=function(B,R){B={args:{raw_player_response:B}};R&&(B.args=Object.assign({},B.args,R));return B};
CLY=function(B){if(B.args){if(B.args.raw_player_response)return B.args.raw_player_response;if(B.args.player_response)return JSON.parse(B.args.player_response)}};
_.PLx=function(B,R){var V={url:"/watch?v="+B.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};B.playlistId&&(V.url+="&list="+B.playlistId);B.playerParams&&(V.url+="&pp="+B.playerParams);B={watchEndpoint:B,commandMetadata:{webCommandMetadata:V}};R&&(B.clickTrackingParams=R);return B};
ujo=function(){return nFI||!!_.qN("yt.player.Application")};
otZ=function(){return OSS||!!document.querySelector("link#player-css")};
RB_=function(){function B(){nFI=!0;B7_.resolve()}
var R,V;return _.W(function(e){B7_||(B7_=new _.Xs,ujo()?B():(R=document.createElement("script"),R.addEventListener("load",B),V=_.Dv(_.vE("PLAYER_JS_URL")),_.Qm(R,V),document.head.appendChild(R)));return e.return(B7_.promise)})};
eBZ=function(){function B(){OSS=!0;VKx.resolve()}
if(!VKx)if(VKx=new _.Xs,otZ())B();else{var R=document.createElement("link");R.id="player-css";R.addEventListener("load",B);var V=_.Dv(_.vE("PLAYER_CSS_URL"));_.AR(R,V,"stylesheet");document.head.appendChild(R)}return VKx.promise};
X1Y=function(){return ujo()&&otZ()?Promise.resolve([]):Promise.all([RB_(),eBZ()])};
p1Y=function(B,R,V){var e={args:{}};B&&(e.args.raw_player_response=B);R&&(e.args.raw_watch_next_response=R);V&&(e.args=Object.assign({},e.args,V));return e};
W_5=function(B,R,V){var e=!1;e=e===void 0?!0:e;B=typeof B==="string"?_.uP(document,B):B;var X=Y9I+"_"+_.Y5(B),Y=hBI[X];if(Y&&e)return tKN(R,V)?Y.api.loadVideoByPlayerVars(R.args||null):Y.loadNewVideoConfig(R),Y.api;Y=new Os(B,X,R,V,void 0);hBI[X]=Y;Y.addOnDisposeCallback(function(){delete hBI[Y.getId()]});
return Y.api};
tKN=function(B,R){return R&&R.serializedExperimentFlags?R.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):B&&B.args&&B.args.fflags?B.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
bNq=function(){var B=new _.Xs;B.resolved=!1;var R=B.resolve;B.resolve=function(V){B.resolved=!0;R(V)};
return B};
jZu=function(B){var R={};JWY().install((R.document_disposed={callback:B},R))};
oV=function(B,R){if(!B&&Math.random()<=_.RC("kevlar_unified_player_logging_threshold")){B=Error("th`"+(R?R:"Unspecified error"));if(_.k("kevlar_unified_player_throw_errors"))throw B;_.KE(B)}};
_.UOA=function(){var B=_.qN("ytDebugData.callbacks");B||(B={},_.mk("ytDebugData.callbacks",B));return B};
Gc5=function(B,R){var V=_.UOA();if(_.k("web_dd_iu")||N7I.includes(B))V[B]=R};
yWN=function(){return _.W(function(B){return B.return({isLeader:_.cGN(_.g6().getState()),c:_.vE("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.vE("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
S9_=function(){var B;_.W(function(R){if(R.nextAddress==1)return Gc5("APP_STATE",yWN),_.U(R,_.Oz().resolve(_.B7),2);B=R.yieldResult;Gc5("PI",function(){return _.W(function(V){return V.return(B.getVideoStats())})});
_.b3(R)})};
HNd=function(B){var R=_.gT(_.QT(_.R5.location.href));B=_.gT(_.QT(B));return _.k("kevlar_clear_non_displayable_url_params")?R==RV(B):RV(R)==RV(B)};
RV=function(B){var R=_.MKu(B);B=B.slice(0);var V=["frags"];_.k("kevlar_hide_pp_url_param")&&V.push("pp");_.k("kevlar_hide_time_continue_url_param")&&V.push("time_continue");V=_.h(V);for(var e=V.next();!e.done;e=V.next())e=e.value,B=_.mc(_.gT(B),e);return _.gT(B)+(R?"#"+R:"")};
V1=function(B,R){R=Number(R)*1E3;var V=Math.round((0,_.P8)()),e=V.toString();B={innertubeResponse:B,serverDateTimestampMs:e,lastModifiedTimestampMs:e,expireTimestampMs:(V+R).toString()};if(R=_.vE("INNERTUBE_CONTEXT_CLIENT_NAME"))B.clientName=R;return B};
DOY=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++kcp};
_.fWN=function(){var B=_.wT(),R=_.TE();R&&B&&_.AE(R,[B],!0)};
zBZ=function(B){return B&&lWZ.some(function(R){return B.includes(R)})};
L_Y=function(B){var R=_.D(B,_.ie);if(!R)return!1;var V=R.url,e=R.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!V)return _.Tn(Error("yh")),!1;if(R.target==="TARGET_NEW_WINDOW"){var X={};_.k("resolve_url_parent_tracking_params")&&(!_.mn(V)||CQ(window.location.href,V))&&(X={endpoint:B,itct:B.clickTrackingParams});j$o(X);B=null;try{if(e){a:{var Y=V,t=X;e=e===void 0?!1:e;t&&_.Zg(Y,t);var b=_.ym(Y),J=_.j4(b);Y!=J&&_.cE(Error("Yf`"+Y));Y=J;try{if(e){J=Y;J=axu(J);wr(J);B=_.xq(window,J,"_blank",
"attributionsrc");break a}}catch(M){_.IP(M)}wr(Y);B=_.xq(window,b,"_blank")}aWx(_.Oz().resolve(dOu),B,V);return!0}}catch(M){_.Tn(M)}_.Zg(V,X);X={target:"_blank",noopener:_.k("set_window_noopener_ks")&&!R.allowOpener};R=window;b=JR(V)?V:_.ym(typeof V.href!="undefined"?V.href:String(V));B=self.crossOriginIsolated!==void 0;Y="strict-origin-when-cross-origin";window.Request&&(Y=(new Request("/")).referrerPolicy);J=X.noreferrer;if(B&&J&&Y==="unsafe-url")throw Error("qe");Y=J&&!B;J=X.target||V.target;e=
[];t=[];var G=!1;for(S in X){var y=X[S];switch(S){case "width":case "height":case "top":case "left":e.push(S+"="+y);break;case "target":break;case "noopener":case "noreferrer":y?t.push(S):(G=!0,t.push(S+"=false"));break;case "attributionsrc":e.push(S+(y?"="+y:""));break;default:e.push(S+"="+(y?1:0))}}var S=J!==void 0&&!["_blank","_self","_top","_parent",""].includes(J);S=T_()&&S;w1I&&B&&e.length===0&&t.length>0&&!S&&!G?(t.length===2&&(t=["noreferrer"]),_.xq(R,b,J,t[0]),B=T7_()):(S=e.join(","),_.I5()&&
R.navigator&&R.navigator.standalone&&J&&J!="_self"?(S=_.jr("A"),f$(S,b),S.target=J,Y&&(S.rel="noreferrer"),((X=X.attributionsrc)||X==="")&&S.setAttribute("attributionsrc",X),X=document.createEvent("MouseEvent"),X.initMouseEvent("click",!0,!0,R,1),S.dispatchEvent(X),S=T7_()):Y?(S=_.xq(R,"",J,S),R=_.j4(b),S&&(S.opener=null,R===""&&(R="javascript:''"),R='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+eX(R)+'">',R=aa(R),(X=S.document)&&X.write&&(X.write(dc(R)),
X.close()))):((S=_.xq(R,b,J,S))&&X.noopener&&(S.opener=null),S&&X.noreferrer&&(S.opener=null)),B=S);aWx(_.Oz().resolve(dOu),B,V);return!0}S=_.tu(V);S=zBZ(S)||V==="https://studio.youtube.com/";R=!(!_.mn(V)||CQ(window.location.href,V));X=V.indexOf("disable_polymer=1")>=0;if(R||X||S)wr(V),DI(),_.TF(V,void 0,void 0,window.top,xOA);else return _.KE(new _.H8("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",B)),!1;return!0};
_.IWK=function(B,R){R=R===void 0?0:R;if(!(_.D(B,vt5)||_.D(B,K_d)||_.D(B,_.ie)&&_.D(B,_.ie).url))return!1;var V,e=(V=_.D(B,_.ie))==null?void 0:V.url;V=e?{externalLinkData:{url:e}}:null;return _.WK().clickCommand(B,V,R)};
_.Xt=function(B,R){return _.p7(B.entities,"subscriptionStateEntity",R)};
Etu=function(B,R){return _.p7(B.entities,"subscriptionNotificationStateEntity",R)};
QZp=function(B,R){return _.p7(B.entities,"upcomingEventReminderStateEntity",R)};
q9K=function(B,R){return _.p7(B.entities,"engagementToolbarSurfaceEntityPayload",R)};
cWu=function(B,R){return _.p7(B.entities,"triStateButtonStateEntityPayload",R)};
AWp=function(B,R){return _.p7(B.entities,"commerceCartCheckoutButtonEntity",R)};
_.iNo=function(B,R){return _.p7(B.entities,"playlistLoopStateEntity",R)};
sZo=function(B,R){return _.p7(B.entities,"commandEntity",R)};
rWI=function(B,R,V,e,X){X=X===void 0?{}:X;return function(Y){var t,b;var J=((t=B.loggingDirectives)==null?0:(b=t.clientVeSpec)==null?0:b.uiType)?_.kB(B.loggingDirectives.clientVeSpec.uiType):void 0;X.clickedVisualElement||(X.clickedVisualElement=J);J=F_q(B,R);V(J,Y);J=_.h(J);for(t=J.next();!t.done;t=J.next()){t=t.value;b=e;var G=Y,y=X;y.form?y.form.event=G:y.form={element:b,event:G};Mx(t,y)}}};
F_q=function(B,R){var V=[];R?(B.toggledCommand&&V.push(B.toggledCommand),B.toggledServiceEndpoint&&V.push(B.toggledServiceEndpoint)):(B.defaultCommand&&V.push(B.defaultCommand),B.defaultServiceEndpoint&&V.push(B.defaultServiceEndpoint),B.defaultNavigationEndpoint&&V.push(B.defaultNavigationEndpoint));return V};
gtu=function(B,R){var V=B.toggledStyle||B.style,e;switch((e=R?V:B.style)==null?void 0:e.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"}}};
ZNq=function(B,R){R=R.uniqueId+"-border";var V,e;var X=(e=(V=_.Oz().resolve(_.uj(_.E5)))==null?void 0:V())!=null?e:!1;return{animationRef:B,animationConfig:{name:R,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(X?"dark":"light")+"_v2.json"}}};
_.pO=function(){return _.W(function(B){return B.nextAddress==1?_.U(B,_.Oz().resolve(_.B7),2):B.return(_.Oz().resolve(mOZ)())})};
_.Yx=function(){return _.Oz().resolve(mOZ)()};
_.hv=function(){return dg(function(){return{lottieEl:void 0}})};
$Od=function(B,R){return B.startsWith(R.uniqueId)};
C7N=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,_.pO(),2);R=e.yieldResult;if((V=R)==null||!V.addEventListener)return tv(),e.return();R.addEventListener("onCueRangeEnter",B);_.b3(e)})};
P7S=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,_.pO(),2);R=e.yieldResult;if((V=R)==null||!V.removeEventListener)return tv(),e.return();R.removeEventListener("onCueRangeEnter",B);_.b3(e)})};
ntd=function(B){var R,V,e,X,Y;_.W(function(t){if(t.nextAddress==1)return _.U(t,_.pO(),2);R=t.yieldResult;if((V=R)==null||!V.addCueRange)return tv(),t.return();e=_.h(B.timings);for(X=e.next();!X.done;X=e.next())Y=X.value,R.addCueRange(B.uniqueId+"-"+Y,Y/1E3,(Y+100)/1E3);_.b3(t)})};
uYo=function(B){var R,V,e,X,Y;_.W(function(t){if(t.nextAddress==1)return _.U(t,_.pO(),2);R=t.yieldResult;if((V=R)==null||!V.removeCueRange)return tv(),t.return();e=_.h(B.timings);for(X=e.next();!X.done;X=e.next())Y=X.value,R.removeCueRange(B.uniqueId+"-"+Y);_.b3(t)})};
ONq=function(){var B,R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,_.pO(),2);B=e.yieldResult;if((R=B)==null||!R.getPlayerState)return tv(),e.return();V=B.getPlayerState();return e.return(V===2)})};
tv=function(){_.KE(new _.H8("Smartimation player does not exist or is corrupted"))};
V1q=function(B){var R=oSp;Bmu.push(B);RyA||(R(function(){for(var V=_.h(Bmu),e=V.next();!e.done;e=V.next())e=e.value,e();Bmu.length=0;RyA=!1}),RyA=!0)};
oSp=function(B){Promise.resolve().then(B)};
W7=function(B){B=_.h(Ssd(B));var R=B.next().value,V=B.next().value,e=!1;_.zM(function(){return function(){e=!0}});
return[R,function(X){V1q(function(){e&&!_.k("cow_prevent_state_setter_after_cleanup_killswitch")||V(X)})}]};
XGq=function(B){function R(G){var y;return _.W(function(S){if(S.nextAddress==1)return(y=!$Od(G,e)||!e.enabled)?S.jumpTo(2):_.U(S,ONq(),3);S.nextAddress!=2&&(y=S.yieldResult);if(y)return S.return();V();setTimeout(function(){J(!1)},1500);
_.b3(S)})}
function V(){setTimeout(function(){J(!0);var G;(G=Y.lottieEl)==null||G.goToAndPlay(0)},150)}
var e=B.settings;var X=B.className;B=B.children;var Y=_.hv(),t=_.h(W7(!1)),b=t.next().value,J=t.next().value;e||(e={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.KE(new _.H8("Smartimation Settings is undefined")));lj(function(){if(e.experimentEnabled)return e.enabled?C7N(R):(J(!1),P7S(R)),function(){P7S(R)}},[e.enabled,
e.experimentEnabled]);lj(function(){if(e.experimentEnabled)return ntd(e),function(){uYo(e)}},[e.timings.join("")]);
return _.N("yt-smartimation",{class:eyu(X,b,e)},gz(e.experimentEnabled,function(){return _.N("div",{class:"smartimation__border"},_.N(RaI,{className:"smartimation__border-gradient",data:ZNq(Y,e)}))}),_.N("div",{class:"smartimation__content"},B))};
eyu=function(B,R,V){var e=["smartimation"];B&&e.push(B);V.experimentEnabled&&e.push("smartimation--experiment-enabled");R&&e.push("smartimation--active-border");try{var X;var Y=(X=window.CSS)!=null&&X.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(t){_.KE(new _.H8("Smartimation CSS.supports threw an error")),Y=!1}Y&&e.push("smartimation--enable-masking");
return e.join(" ")};
pGK=function(){try{var B;return(B=window.CSS)!=null&&B.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(R){return _.KE(new _.H8("Smartimation CSS.supports threw an error")),!1}};
jQ_=function(B,R,V,e,X){var Y=B.playlistId?YMo:hyA;R=R();V=V();X=!!B.videoId&&X()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.NR(R))return t1q({data:B,actionType:Y,disabled:X},V);if(B.videoId&&e())return WWx({data:B,actionType:Y,disabled:X});switch(R){case "TRANSFER_STATE_UNKNOWN":return WWx({data:B,actionType:Y,disabled:X});case "TRANSFER_STATE_FAILED":return B.videoId?bXZ({data:B,actionType:Y,disabled:X}):Jl5({data:B,actionType:Y,disabled:X});case "TRANSFER_STATE_COMPLETE":return Jl5({data:B,
actionType:Y,disabled:X});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return t1q({data:B,actionType:Y,disabled:X},V);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return B.videoId?bXZ({data:B,actionType:Y,disabled:X}):WWx({data:B,actionType:Y,disabled:X});default:return WWx({data:B,actionType:Y,disabled:X})}};
U5d=function(B,R){var V=B.onTapCommand,e=_.dl(V);if(B.videoId&&_.D(e,_.Jv))return _.D(e,_.Jv).action=R,V;B.playlistId&&_.D(e,_.jX)&&(_.D(e,_.jX).action=R);return V};
WWx=function(B){var R=B.data;var V=B.actionType;B=B.disabled;return{text:NmZ,iconType:"OFFLINE_DOWNLOAD",onTap:U5d(R,V.ACTION_ADD),disabled:B}};
t1q=function(B,R){var V=B.data;var e=B.actionType;B=B.disabled;var X="OFFLINE_DOWNLOAD";R>=0&&R<=.1?X="OFFLINE_DOWNLOADING_ZERO":R>.1&&R<=.3?X="OFFLINE_DOWNLOADING_TWENTY":R>.3&&R<=.5?X="OFFLINE_DOWNLOADING_FORTY":R>.5&&R<=.7?X="OFFLINE_DOWNLOADING_SIXTY":R>.7&&R<1?X="OFFLINE_DOWNLOADING_EIGHTY":R===1&&(X="OFFLINE_PIN");return{text:GqN,iconType:X,onTap:U5d(V,e.ACTION_REMOVE_WITH_PROMPT),disabled:B}};
Jl5=function(B){var R=B.data;var V=B.actionType;B=B.disabled;return{text:ylA,iconType:"OFFLINE_PIN",onTap:U5d(R,V.ACTION_REMOVE_WITH_PROMPT),disabled:B}};
bXZ=function(B){var R=B.data;var V=B.actionType;B=B.disabled;return{text:SMI,iconType:"OFFLINE_DOWNLOAD",onTap:U5d(R,V.ACTION_RETRY),disabled:B}};
HXd=function(){var B=_.h(W7(!1)),R=B.next().value,V=B.next().value;return function(){V(!R)}};
M1_=function(B){return dg(function(){return{value:B}})};
kqN=function(B,R){var V=M1_(B),e=M1_(R);lj(function(){V.value=B},[B]);
lj(function(){e.value=R},R&&R.length>=1?R:[void 0]);
var X=dg(function(){return{value:void 0}});
if(B!==V.value||e.value!==R||X.value===void 0)X.value=qU(B,R);var Y=HXd();_.zM(function(){function t(){var J=qU(V.value,R);J!==X.value&&(X.value=J,Y())}
var b=_.QL().subscribe(t);t();return b});
return X.value};
UQ=function(B,R){return kqN(B,[R])};
_.No=function(B,R){var V=U$q();return _.NW(function(){V();return qU(B,[_.wA(R)||""])},void 0,"HaeHEc")};
D5q=function(B){var R=_.No(_.Tz,function(){return B().videoId}),V=_.No(_.xG,function(){return B().playlistId});
return function(){return B().videoId?R:B().playlistId?V:_.h(_.WU("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
fU_=function(B){var R=_.No(L7,function(){return B().videoId}),V=_.No(_.qNd,function(){return B().playlistId});
return function(){return B().videoId?R:B().playlistId?V:_.h(_.WU(0,void 0,"K4tgOc")).next().value}};
lUx=function(B){var R=_.No(_.Ztd,function(){return B().videoId});
return function(){return B().videoId?R:_.h(_.WU(!1,void 0,"Oaxwcf")).next().value}};
zyK=function(B){var R=_.No(ito,function(){return B().videoId});
return function(){return B().videoId?R:_.h(_.WU("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
aUN=function(){return{}};
Tmx=function(B){var R=B.backgroundLottieRef;var V=B.foregroundLottieRef;var e=B.children;var X=B.wrapperClass;B=B.disableAnimation;B=(_.k("web_animated_actions")||_.k("web_animated_actions_v2"))&&!B;return _.N("yt-animated-action",{class:_.XE("animated-action__container",X)},_.N("div",{class:"animated-action__content-with-background"},gz(B,function(){return _.N(d5S,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:R,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(wGK()?"dark":"light")+"_v5.json"}}})}),e),gz(B,function(){return _.N(d5S,{lottiePlayerProps:{animationRef:V,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(wGK()?"dark":"light")+"_v4.json"}}})}))};
d5S=function(B){var R=B.wrapperClass;var V=B.lottieClass;B=B.lottiePlayerProps;return _.N("div",{class:_.YB("animated-action__lottie",R),"aria-hidden":"true"},_.N(RaI,{className:V,data:B}))};
wGK=function(){var B,R;return(R=(B=_.Oz().resolve(_.uj(_.E5)))==null?void 0:B())!=null?R:!1};
x5x=function(){var B,R;return(R=(B=_.Oz().resolve(_.uj(_.E5)))==null?void 0:B())!=null?R:!1};
vSZ=function(B,R){B=B===void 0?LWd:B;switch(R.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},B,{isOpen:R.payload});default:return B}};
IUS=function(B,R){B=B===void 0?KWq:B;switch(R.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},B,{isAllowed:R.payload});default:return B}};
QQA=function(B,R){B=B===void 0?ESu:B;switch(R.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},B,{errorMessage:R.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},B,{title:R.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},B,{privacy:R.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},B,{isDisabled:R.payload});default:return B}};
clu=function(B,R){B=B===void 0?qMN:B;switch(R.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},B,{isOpen:R.payload});default:return B}};
iXI=function(B,R){B=B===void 0?Ald:B;switch(R.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},B,{isFullscreen:R.payload});case "SET_NAVIGATION_BUTTON":var V=R.payload.targetId,e=Object.assign({},B.navigationButtons);e[V]=R.payload.button;return Object.assign({},B,{navigationButtons:e});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},B,{topPanelId:R.payload});case "SET_SECONDARY_HEADER":return V=R.payload.panelId,e=Object.assign({},B.secondaryHeader),e[V]=R.payload.secondaryHeader,
Object.assign({},B,{secondaryHeader:e});default:return B}};
gSS=function(){return WJ(Object.assign({},{entities:Sjq,voiceSearch:Lfo,engagementPanel:iXI,bottomSheet:vSZ,cinematicSetting:IUS,shorts:Ayd,drawerLayout:clu,createPlaylist:QQA,locationCollection:sQN,reportChannel:FWd,reportForm:rld},iyY))};
ZXp=function(B,R){return"https://www.gstatic.com/youtube/img/lottie/"+B+"/"+R+".json"};
m5u=function(B){return{lottiePlayerProps:{animationConfig:{name:B.name,path:ZXp("custom_animated_like_icon",B.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:B.totalFrames,lazyLoad:!0}};
$5x=function(B,R){_.dV.addLowPriorityJob(function(){var V,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:return _.en(Y,2),_.U(Y,ZhZ(),4);case 4:return _.U(Y,fetch(B),5);case 5:return V=Y.yieldResult,_.U(Y,V.json(),6);case 6:e=Y.yieldResult;eQ.set(B,e);requestAnimationFrame(function(){R(e)});
_.c8(Y,0);break;case 2:X=_.WR(Y),_.KE(X),_.b3(Y)}})})};
CYA=function(B){var R={animationConfig:{},listeners:{}},V=function(){B(!0)};
R.listeners.data_failed=V;R.listeners.error=V;R.listeners.data_ready=function(){B(!1)};
return R};
Gr=function(B){var R=B.model;var V=B.subscribed;var e=B.isOverlay;var X=B.element;var Y=B.commandController;var t=B.notificationState;if(V){var b,J;var G=(R==null?void 0:(b=R.buttonStyle)==null?void 0:b.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:R==null?void 0:(J=R.unsubscribeButtonContent)==null?void 0:J.buttonText}else{var y;G=R==null?void 0:(y=R.subscribeButtonContent)==null?void 0:y.buttonText}a:{var S;switch(R==null?void 0:(S=R.buttonStyle)==
null?void 0:S.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":b="S";break a;default:b="M"}}a:if(e)e="overlay";else switch(R.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":e="overlay";break a;default:e="mono"}a:if(V)var M="tonal";else switch((M=R.buttonStyle)==
null?void 0:M.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":M="tonal";break a;default:M="filled"}return{style:e,type:M,state:R.disableSubscribeButton?"disabled":"active",size:b,focused:B.focused,toggled:V,accessibilityLabel:PYq(R,V,t),buttonText:G,iconPosition:R.disableNotificationBell?"none":"leading-trailing",onTap:nSx(R,V,X,Y),disableTextEllipsis:!!B.disableTextEllipsis}};
nSx=function(B,R,V,e){return function(X){if(R){var Y;var t=B.disableNotificationBell?_.dl(B==null?void 0:(Y=B.unsubscribeButtonContent)==null?void 0:Y.onTapCommand):_.dl(B==null?void 0:B.onShowSubscriptionOptions)}else{var b;t=_.dl(B==null?void 0:(b=B.subscribeButtonContent)==null?void 0:b.onTapCommand)}t&&Mx(t,{form:{element:V},commandController:e});X.stopPropagation()}};
PYq=function(B,R,V){if(R){if(B==null?0:B.disableNotificationBell){var e;return B==null?void 0:(e=B.unsubscribeButtonContent)==null?void 0:e.accessibilityText}switch(V){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var X;return B==null?void 0:(X=B.bellAccessibilityData)==null?void 0:X.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var Y;return B==null?void 0:(Y=B.bellAccessibilityData)==null?void 0:Y.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var t;return B==null?void 0:(t=
B.bellAccessibilityData)==null?void 0:t.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var b;return B==null?void 0:(b=B.bellAccessibilityData)==null?void 0:b.disabledLabel;default:var J;return B==null?void 0:(J=B.unsubscribeButtonContent)==null?void 0:J.accessibilityText}}else{var G;return B==null?void 0:(G=B.subscribeButtonContent)==null?void 0:G.accessibilityText}};
y1=function(B){if(!B)return null;switch(B){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":B="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":B="NOTIFICATIONS_OFF";break;default:B="NOTIFICATIONS_NONE"}return B};
uzo=function(B,R,V){V.subscribed!==R&&((V=V.key)&&_.cc(_.SX("subscriptionStateEntity",V,{key:V,subscribed:R})),B.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:R})),R||_.oF(B,"yt-unsubscribe-action"))};
oL5=function(B){B=_.D(_.dl(B),_.H7);var R,V,e,X;return(X=_.D(B==null?void 0:(R=B.panelLoadingStrategy)==null?void 0:(V=R.inlineContent)==null?void 0:(e=V.sheetViewModel)==null?void 0:e.content,OXd))==null?void 0:X.listItems};
Bw5=function(B,R){if(B.onShowSubscriptionOptions&&R&&(B=oL5(B.onShowSubscriptionOptions),B!=null&&B.length)){var V=y1(R);B.forEach(function(e){e=_.D(e,_.Mo);var X,Y,t,b,J=e==null?void 0:(X=e.leadingImage)==null?void 0:(Y=X.sources)==null?void 0:(t=Y[0])==null?void 0:(b=t.clientResource)==null?void 0:b.imageName;e&&J&&(e.isSelected=J===V)})}};
RS5=function(B,R,V,e){R&&V?B.style.width=V+"px":!R&&e&&(B.style.width=e+"px")};
Vao=function(B,R,V){var e;(e=B.lottieEl)==null||e.goToAndPlay(0);var X;(X=R.lottieEl)==null||X.goToAndPlay(0);_.kx(_.dV,function(){var Y;(Y=V.lottieEl)==null||Y.goToAndPlay(0)},300)};
hSK=function(B){var R=_.Zh(),V=_.Zh(),e=_.Zh(),X=_.hv(),Y=_.hv(),t=_.hv(),b=_.Oz().resolve(eSu),J,G=(J=UQ(_.Xt,B.data.stateEntityStoreKey))!=null?J:void 0,y,S,M,f=(M=UQ(Etu,(S=(y=B.data.notificationStateEntityStoreKeys)==null?void 0:y.subsNotificationStateKey)!=null?S:""))!=null?M:void 0;J=!!B.data.disableNotificationBell;var z=!B.data.enableSubscribeButtonPostClickAnimation;y=_.h(W7(0));var T=y.next().value,L=y.next().value;y=_.h(W7(0));var Q=y.next().value,q=y.next().value;y=_.h(W7(!1));var m=y.next().value,
g=y.next().value;y=_.h(W7(!1));var Vu=y.next().value,n=y.next().value,Yd=wg(!1),kd=wg("");y=_.h(W7(!1));var a5=y.next().value,lo=y.next().value,io=function(){n(!0);_.kx(_.dV,function(){n(!1)},1500)};
lj(function(){Vu&&!z&&G&&Vao(X,Y,t)},[Vu]);
lj(function(){!z&&G&&(B.animateWidth&&RS5(R.value,!!G.subscribed,T,Q),G.subscribed&&G.key===kd.value&&io(),G.key&&(kd.value=G.key))},[G==null?void 0:G.subscribed,
G==null?void 0:G.key]);var vd=aP(function(){var d4=B.data,W2=!(G==null||!G.subscribed),By=!!B.isOverlay,DY=m?R.value:void 0,hA=f==null?void 0:f.state;Bw5(d4,hA);return Gr({model:d4,subscribed:W2,isOverlay:By,element:DY,notificationState:hA,disableTextEllipsis:!0,focused:a5})},[B.data,
G,f,a5,B.isOverlay,m]),cd=function(){var d4=_.Oz().resolve(_.uj(_.DE));d4&&lo(d4.isKeyBoardInUse())},ES=function(){lo(!1)};
Rqd(R,function(d4){$d();G&&(d4.detail.endpoint.subscribeEndpoint||d4.detail.endpoint.unsubscribeEndpoint)&&uzo(R.value,!G.subscribed,G)});
_.gn("yt-player-subscribe",function(d4){G&&d4===B.data.channelId&&uzo(R.value,!0,G)});
_.gn("yt-player-unsubscribe",function(d4){G&&d4===B.data.channelId&&uzo(R.value,!1,G)});
_.gn("yt-update-subscribe-button-action",function(d4){d4=_.D(d4,XAN);G&&d4&&d4.channelId===B.data.channelId&&uzo(R.value,!!d4.subscribed,G)});
_.zM(function(){R.value&&(R.value.addEventListener("focusin",cd),R.value.addEventListener("focusout",ES));_.kD(_.dV,function(){$d()});
g(!0);return function(){R.value&&(R.value.removeEventListener("focusin",cd),R.value.removeEventListener("focusout",ES))}});
var $d=function(){if(!z&&B.animateWidth&&(V==null?0:V.value)&&(e==null?0:e.value)&&!Yd.value){var d4=_.h((G==null?0:G.subscribed)?[V,e]:[e,V]),W2=d4.next().value;d4=d4.next().value;W2=Math.ceil(W2.value.getBoundingClientRect().width);d4=Math.ceil(d4.value.getBoundingClientRect().width);L(W2);q(d4);RS5(R.value,!(G==null||!G.subscribed),W2,d4);Yd.value=!0}},Eo=function(){var d4=y1(f==null?void 0:f.state);
return z||d4!=="NOTIFICATIONS_NONE"?function(){return b(d4)}:function(){cK(pAZ)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:t})}};
y=function(){var d4=y1(f==null?void 0:f.state);return z||d4!=="NOTIFICATIONS_NONE"?function(){return _.N(_.Us,{icon:d4!=null?d4:void 0})}:function(){return _.N(pAZ,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:t})}};
var GG=!(G==null||!G.subscribed)&&!J&&!(f==null||!f.state),eJ=!(G==null?0:G.subscribed),pR=eJ&&!J&&!(f==null||!f.state);J={};S={};return _.N("yt-subscribe-button-view-model",{class:_.YB(B.className,"yt-subscribe-button-view-model-wiz",(J["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(G==null||!G.subscribed)&&B.animateWidth&&Vu,J["yt-subscribe-button-view-model-wiz--hidden"]=!(G==null?0:G.subscribed)&&B.data.hideWhenUnsubscribed,J)),el:R},_.N(YfA,{backgroundLottieRef:X,foregroundLottieRef:Y,
wrapperClass:_.YB("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(S["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=B.animateWidth&&Vu,S["yt-subscribe-button-view-model-wiz__static-width"]=!B.animateWidth,S)),disableAnimation:z},_.N("div",{el:V,class:_.YB("yt-subscribe-button-view-model-wiz__container"),idomKey:B.data.channelId},_.k("web_wiz_button_shape")?_.N(QRN,{data:vd,icon:GG?y():void 0,secondaryIcon:GG?function(){return _.N(_.Us,{icon:"EXPAND"})}:
void 0}):_.N($D,null,function(){LYd(vd,GG?Eo():void 0,GG?function(){return b("EXPAND")}:void 0)}))),_.N("div",{el:e,
class:"yt-subscribe-button-view-model-wiz__invisible"},!B.animateWidth||z||Yd.value?null:_.k("web_wiz_button_shape")?_.N(QRN,{data:Gr({model:B.data,subscribed:eJ,isOverlay:!!B.isOverlay,element:R.value,disableTextEllipsis:!0}),icon:pR?function(){var d4;return _.N(_.Us,{icon:(d4=y1(f==null?void 0:f.state))!=null?d4:void 0})}:void 0,
secondaryIcon:pR?function(){return _.N(_.Us,{icon:"EXPAND"})}:void 0}):_.N($D,null,function(){LYd(Gr({model:B.data,
subscribed:eJ,isOverlay:!!B.isOverlay,element:R.value,disableTextEllipsis:!0}),pR?function(){return b(y1(f==null?void 0:f.state))}:function(){},pR?function(){return b("EXPAND")}:void 0)})))};
ta5=function(B){if(B){switch(B){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":B="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":B="NOTIFICATIONS_OFF";break;default:B="NOTIFICATIONS_NONE"}return B}};
WFI=function(B,R,V){V.subscribed!==R&&((V=V.key)&&_.cc(_.SX("subscriptionStateEntity",V,{key:V,subscribed:R})),B.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:R})),R||_.oF(B,"yt-unsubscribe-action"))};
bsZ=function(B){B=_.D(_.dl(B),_.H7);var R,V,e,X;return(X=_.D(B==null?void 0:(R=B.panelLoadingStrategy)==null?void 0:(V=R.inlineContent)==null?void 0:(e=V.sheetViewModel)==null?void 0:e.content,OXd))==null?void 0:X.listItems};
Jc_=function(B,R){if(B.onShowSubscriptionOptions&&R&&(B=bsZ(B.onShowSubscriptionOptions),B!=null&&B.length)){var V=ta5(R);B.forEach(function(e){e=_.D(e,_.Mo);var X,Y,t,b,J=e==null?void 0:(X=e.leadingImage)==null?void 0:(Y=X.sources)==null?void 0:(t=Y[0])==null?void 0:(b=t.clientResource)==null?void 0:b.imageName;e&&J&&(e.isSelected=J===V)})}};
jsd=function(B,R,V,e){R&&V?B.style.width=V+"px":!R&&e&&(B.style.width=e+"px")};
UJY=function(B,R,V){var e;(e=B.lottieEl)==null||e.goToAndPlay(0);var X;(X=R.lottieEl)==null||X.goToAndPlay(0);_.kx(_.dV,function(){var Y;(Y=V.lottieEl)==null||Y.goToAndPlay(0)},300)};
fO=function(){return _.Oz().resolve(_.uj(Nwu))||{}};
GJY=function(B){return typeof B==="function"};
_.ll=function(B){Object.keys(B);var R=function(V,e){var X=R.mapping||B;if(!V)return _.N(_.OZ,null);if(Array.isArray(V)&&(V=ycd(X,R,V),Array.isArray(V))){if(!V.length)return _.N(_.OZ,null);if(V.length>1){for(var Y=!1,t=!1,b=[],J={},G=0;G<V.length;J={data$jscomp$1831:void 0},G++)if(J.data$jscomp$1831=V[G],J.data$jscomp$1831){var y=Sfu(J.data$jscomp$1831,X),S=y.mappingEntry;y=y.rendererName;S&&y&&(S&&(!GJY(S)&&Hsp(S)&&(t=!0),!GJY(S)&&S.asyncId||(Y=!0)),b.push(MaS(J.data$jscomp$1831,S,y,R,e)))}return t&&
!Y?_.N(_.OZ,null,kJY()):_.N(_.OZ,null,b)}V=V[0]}if(!V)return _.N(_.OZ,null);V=ycd(X,R,[V])[0];if(!V)return _.N(_.OZ,null);Y=Sfu(V,X);X=Y.mappingEntry;Y=Y.rendererName;return X&&Y?_.N(_.OZ,null,MaS(V,X,Y,R,e)):_.N(_.OZ,null)};
R.mapping=B;return R};
_.DJS=function(B){var R=void 0,V;for(V in B)if(B.hasOwnProperty(V)){R=V;break}return R};
ycd=function(B,R,V){var e,X=(e=fO().preProcessOptions)==null?void 0:e.idomOptions;if(!X)return V;fO();return X.preProcessPropsIdom(B,V,R.triggerRerender)};
Sfu=function(B,R){return(B=_.DJS(B))?{mappingEntry:R[B],rendererName:B}:{mappingEntry:void 0,rendererName:void 0}};
MaS=function(B,R,V,e,X){if(!R)return _.N(_.OZ,null);var Y={};X&&X[V]&&(Y=Object.assign({},X[V]));B[V]!==void 0&&(Y.data=B[V]);if(GJY(R))return R.debugName||(R.debugName=V),_.N(R,Y);R.asyncId&&(e.pendingIdsMap=e.pendingIdsMap||{},e.pendingIdsMap[V]=R.asyncId);return R.templateFn?R.templateFn(Y):Hsp(R)?kJY():_.N(_.OZ,null)};
Hsp=function(B){var R;return(R=B.showPlaceholder)!=null?R:fO().defaultShowPlaceholder};
kJY=function(){var B=fO().placeholder;return B()};
f3S=function(B,R){R=R===void 0?{shouldPersist:!0}:R;return{useUpdatableData:function(V,e){var X=[],Y=_.h(_.J3(function(){var G=V();if(e!=null&&e.length&&X){var y=X.length>0;for(var S=!1,M=0;M<e.length;M++){var f=e[M]();y&&f!==X[M]&&(S=!0);X[M]=f}y=S}else y=!1;if(y)_.zr.remove(J());else if(y=_.zr.get(J()))return y;return G})),t=Y.next().value,b=Y.next().value,J=_.NW(function(){return B(V())},void 0,"VFraLb");
_.lJ(function(){if(J()!=null){aV.set(J(),[t,b,!1]);var G=J();_.aK(function(){aV.delete(G)})}});
return[t,function(G){b(G);R.shouldPersist&&_.zr.set(J(),G)}]},
getData:function(V){var e;return(e=aV.get(B(V)))==null?void 0:e[0]()},
updateData:function(V,e){V=B(V);var X=aV.get(V);if(!X)return!1;var Y=_.h(X);X=Y.next().value;Y=Y.next().value;e=e(X());Y(e);R.shouldPersist&&_.zr.set(V,e);return!0},
useUpdatableDataIdom:function(V,e){var X=B(V),Y=_.zr.get(X),t=_.h(W7(Y!=null?Y:V)),b=t.next().value,J=t.next().value,G=wg(Y!=null?Y:V);lj(function(){if(X!=null)return aV.set(X,[function(){return G.value},
function(y){J(y);G.value=y},
aV.has(X)]),_.dV.addJob(function(){_.db(_.dV,function(){var y=aV.get(X);y&&(y[2]=!1)},0)},8),function(){var y;
((y=aV.get(X))==null?0:y[2])||aV.delete(X)}},[X]);
lj(function(){b!==V&&(J(V),G.value=V)},e?[].concat(_.MI(e),[X]):[X]);
return[b,J]}}};
l3d=function(B){var R=_.h(_.WU(!0,void 0,"bKtO6d")),V=R.next().value;R.next();return function(){var e=WE(B.children());return _.N(_.H,{cond:V,then:function(){return e},
else:B.fallback})}()};
_.wb=function(B){var R=zSd(B),V=R.data,e=R.mapping,X=R.wrapper;R=R.pendingFallback;var Y=function(){return a3S(_.wA(V))},t=function(){var b=Y(),J=[];
b=_.h(b);for(var G=b.next();!G.done;G=b.next()){var y=void 0;G=G.value;var S=void 0;for(y in G)if(!(!G).hasOwnProperty(y)){S=y;break}(y=S)&&J.push(y)}return J};
return B.data?_.N(l3d,{fallback:R},function(){return _.N(_.yh,{each:t},function(b,J){var G=X?function(S){return X(function(){return e[b](S,J)},y,J)}:function(S){return e[b](S,J)};
G.debugName||(G.debugName=String(b));if(!e[String(b)])return document.createComment("");var y=dJq(Y,b,J);return _.N(G,{data:y})})}):_.N(_.OZ,null)};
zSd=function(B){var R=B.targetId||wAY(B.children);if(!B.data||!R||_.k("mweb_new_replaceables_killswitch"))return Object.assign({},B,{mapping:B.children,wrapper:void 0});var V="stamper-"+TwY++,e=function(){var b;return(b=_.wA(B.targetId))!=null?b:V};
R=_.h(xJ_(function(){var b=a3S(B.data());b.targetId=e;return b})).next().value;
var X=Object.assign({},fO().replaceableMapping,B.children);if(B.replacementWrapper){var Y=X.notificationTextRenderer,t=X.notificationMultiActionRenderer;Y&&(X.notificationTextRenderer=function(b,J){return B.replacementWrapper(Y({data:b.data},J))});
t&&(X.notificationMultiActionRenderer=function(b,J){return B.replacementWrapper(t({data:b.data},J))})}return Object.assign({},B,{data:R,
mapping:X,wrapper:function(b,J,G){return v9d({targetId:e,stamperIndex:G},b)}})};
dJq=function(B,R,V){var e;return _.NW(function(){var X=B()[V()];if(X)e=X[R];else return _.KE(new _.H8("Stamper failed to find "+String(R)+" at index "+V()+" of data array of length "+(B().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),e;return X[R]},void 0,"DHuMIe")};
wAY=function(B){B=_.h(Object.keys(B));for(var R=B.next();!R.done;R=B.next())if(R=R.value,LFY.includes(R)||vLI.includes(R)||KFx.includes(R))return!0;return!1};
a3S=function(B){return B?Array.isArray(B)?B:[B]:[]};
I3x=function(B){B=_.D(B,_.Tr);return(B==null?void 0:B.iconName)&&!(B==null?0:B.title)};
qfI=function(B,R,V){var e;return _.N(_.OZ,null,B==null?void 0:(e=B.actions)==null?void 0:e.map(function(X){return _.N("div",{class:function(){var Y={"yt-flexible-actions-view-model-wiz__action":!0};Y["yt-flexible-actions-view-model-wiz__action--row-action"]=R;Y["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(I3x(X))var t=!0;else if(t=_.D(X,_.xx),(t==null?0:t.isToggled)&&I3x(t==null?void 0:t.toggledButtonViewModel)||(t==null||!t.isToggled)&&I3x(t==null?void 0:t.defaultButtonViewModel))t=
!0;else{var b;t=((b=_.D(X,ELp))==null?0:b.playlistId)?!0:!1}Y=(Y["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=t,Y["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=V,Y);return _.YB(Y)}},QsI([X],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!R}}))}))};
ccd=function(B){var R=B.layout===1,V,e=((V=B.data)==null?void 0:V.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";V={};e=(V["yt-flexible-actions-view-model-wiz"]=!0,V["yt-flexible-actions-view-model-wiz--inline"]=!R,V["yt-flexible-actions-view-model-wiz--scrollable"]=e,V);var X,Y;return _.N("yt-flexible-actions-view-model",{class:_.YB(B.className,e)},(X=B.data)==null?void 0:(Y=X.actionsRows)==null?void 0:Y.map(function(t){if(R){var b;return _.N("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
qfI(t,R,!((b=B.data)==null||!b.respectActionIntrinsicWidth)))}return qfI(t,R,!1)}))};
Acd=function(B){return!(B==null||!B.iconName||(B==null?0:B.title))};
isd=function(B){var R=_.D(B.data.toggleButtonViewModel,_.xx),V,e=(V=B.data.dislikeEntityKey)!=null?V:"",X=UQ(Tj,e);R=Object.assign({},R,{isToggled:X?X.likeStatus==="DISLIKE":R.isToggled});return _.N("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.N(_.LO,{data:R,buttonShapeOverrides:B.buttonShapeOverrideables,onToggle:function(Y){X&&Y!==(X.likeStatus==="DISLIKE")&&X.key&&_.cc(_.v7("likeStatusEntity",X.key,{likeStatus:Y?"DISLIKE":"INDIFFERENT",hadUserInteraction:Y}))}}))};
FFY=function(B){var R=_.k("web_supports_animations_api"),V=_.D(B.data.toggleButtonViewModel,_.xx),e,X,Y,t,b=_.h(W7({numberText:(t=(e=B.likeCountEntity)==null?void 0:(X=e.likeCountIfIndifferent)==null?void 0:X.content)!=null?t:"",numberValue:Number((Y=B.likeCountEntity)==null?void 0:Y.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),J=b.next().value,G=b.next().value,y,S,M,f;e=_.h(W7({numberText:(f=(y=B.likeCountEntity)==null?void 0:(S=y.likeCountIfLiked)==null?void 0:S.content)!=null?
f:"",numberValue:Number((M=B.likeCountEntity)==null?void 0:M.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));y=e.next().value;var z=e.next().value;S=_.h(W7());var T=S.next().value,L=S.next().value,Q;S=(Q=B.data.likeStatusEntityKey)!=null?Q:"";var q,m;Q=(m=(q=B.likeCountEntity)==null?void 0:q.key)!=null?m:"";var g=UQ(Tj,S),Vu=UQ(UbI,Q);q=aP(function(){return(g==null?void 0:g.likeStatus)==="LIKE"},[g]);
lj(function(){var n,Yd=Vu&&((n=Vu.likeCountIfIndifferent)==null?void 0:n.content)!==J.numberText;if(!T&&Yd){var kd,a5;G({numberText:(a5=Vu==null?void 0:(kd=Vu.likeCountIfIndifferent)==null?void 0:kd.content)!=null?a5:"",numberValue:Number(Vu==null?void 0:Vu.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var lo,io;z({numberText:(io=Vu==null?void 0:(lo=Vu.likeCountIfLiked)==null?void 0:lo.content)!=null?io:"",numberValue:Number(Vu==null?void 0:Vu.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[Vu]);
V=Object.assign({},V,{isToggled:q});R=R&&B.likeCountEntity;return _.N("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.N(_.LO,{data:V,buttonShapeOverrides:B.buttonShapeOverrideables,animatedTextPropsDefault:R?J:void 0,animatedTextPropsToggled:R?y:void 0,onToggle:function(n){ss5(n,g,T,L)},
style:function(){return B.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
ss5=function(B,R,V,e){V&&_.dV.cancelJob(V);V=_.dV.addLowPriorityJob(function(){e(void 0)},5E3);
e(V);R&&B!==(R.likeStatus==="LIKE")&&R.key&&_.cc(_.SX("likeStatusEntity",R.key,{key:R.key,likeStatus:B?"LIKE":"INDIFFERENT",hadUserInteraction:B}))};
rcd=function(B,R,V,e){V&&_.dV.cancelJob(V);V=_.dV.addLowPriorityJob(function(){e(void 0)},5E3);
e(V);R&&B!==(R.likeStatus==="LIKE")&&R.key&&_.cc(_.SX("likeStatusEntity",R.key,{key:R.key,likeStatus:B?"LIKE":"INDIFFERENT",hadUserInteraction:B}))};
$JA=function(B){var R,V=_.D((R=B.data)==null?void 0:R.likeButtonViewModel,KO),e;R=_.D((e=B.data)==null?void 0:e.dislikeButtonViewModel,IV);var X,Y=(X=UQ(Tj,(V==null?void 0:V.likeStatusEntityKey)||""))!=null?X:V==null?void 0:V.likeStatusEntity;e=aP(function(){var t=B.data,b;t=(t==null?void 0:(b=t.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:t,enabled:(Y==null?void 0:Y.likeStatus)==="INDIFFERENT"&&t.length>0,experimentEnabled:t.length>0}},[B.data,
Y]);return _.N("segmented-like-dislike-button-view-model",{class:_.YB(B.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.N(gLd,{settings:e},_.N("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},V?_.N(Zsx,{data:V,likeCountEntity:B.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,R?_.N(mJ_,{data:R,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
CuS=function(B,R){var V=gi(B)||{layerNode:R};V.layerNode=R;Awq(B,V);B.getScreenLayer=function(){return EQ(V.layerNode)}};
Pu5=function(B){var R;B=B.parentNode;for(var V;B&&((R=gi(B))==null||!R.isRenderer)&&!((V=B.polymerController)!=null?V:B).isRenderer_;)B=B.parentNode||B.host;if(R=B)return gi(R)};
nLA=function(B){if(B){ri.delete(B);var R=_.Oz().resolve(ue);Zbp(B,R)}};
OsA=function(B,R,V){if(V===void 0?0:V){if(V=B.getAttribute("client-ve-type"),R.data&&!R.disableReactiveLogging||V)_.za(function(){uru(B,_.wA(R.data))}),_.aK(function(){return void nLA(B)})}else typeof R.data!=="function"&&uru(B,R.data)};
uru=function(B,R){okd++;Bjq(B,R)&&_.dV.addJob(function(){_.db(_.dV,function(){if(Bjq(B,R)&&B.ownerDocument.documentElement===document.documentElement&&B){var V;if(B.getAttribute("layer")){var e=V=Number(B.getAttribute("layer")),X=gi(B);X?X.layerNode.layer=e:CuS(B,new R9Z(e));(e=Pu5(B))&&(X=gi(B))!=null&&(X.layerNode.parent=e.layerNode)}else if(V=gi(B))V=EQ(V.layerNode);else{V=EQ;e=new R9Z;if(X=Pu5(B))e.parent=X.layerNode;CuS(B,e);V=V(e)}V!=null||(V=0);e=B.getAttribute("client-ve-type");X=Number(e);
var Y=!1;e=!1;var t=gi(B),b;if((b=t)&&!(b=t[Q1]!==R)&&(b=X)){var J;b=((J=ri.get(B))==null?void 0:J.clientVeType)===void 0}b&&(t[Q1]=R,Y=e=t.isRenderer=!0);ri.has(B)&&(ri.get(B).clientVeType=X);B.visualElement&&(e=!0);(J=R==null?void 0:R.loggingDirectives)&&J.clientVeSpec&&(t=VwN(_.hJ(),B),J=_.e9Z(_.WK(),J,t||void 0,V))&&(B.visualElement=J);!B.visualElement&&X&&Y&&(B.veType=X,J=void 0,_.k("wiz_next_client_ve_parent_fix")&&(J=VwN(_.hJ(),B)),J=_.tJ(_.WK(),B,J,V),B.visualElement=J);e&&(J=_.Oz().resolve(ue),
Pdd(B,{data:R,observer:J,layer:V,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
Bjq=function(B,R){return(R==null?0:R.trackingParams)||(R==null?0:R.loggingDirectives)||_.D(R==null?void 0:R.rendererContext,_.n4Z)||B.getAttribute("client-ve-type")?!0:!1};
p4A=function(B){return _.k("cow_logging_in_component_wrapper")?function(R){OsA(R,B,!0)}:X4d};
X4d=function(){};
_.Ytx=function(B,R){return _.p7(B.entities,"accountLinkStatusEntity",R)};
h9d=function(B,R){return _.p7(B.entities,"hatsSurveyEntity",R)};
twN=function(B,R){return _.p7(B.entities,"hatsSurveyStateEntity",R)};
W7q=function(B,R){return _.p7(B.entities,"quantityIncrementerEntity",R)};
NjZ=function(B){var R=B.data;var V=B.className===void 0?"":B.className;var e=B.setMinWidth;B=B.forceIconOnly;var X=_.Zh(p4A({data:R}));e=e?"ytwAccountLinkButtonViewModelHostMinWidth":"";var Y=_.No(_.Ytx,function(){var S;return(S=_.wA(R).accountLinkStatusEntityKey)!=null?S:""}),t=_.No(_.Ytx,function(){var S;
return(S=_.wA(R).accountLinkStatusSecondaryEntityKey)!=null?S:""}),b=function(){if(!_.k("web_account_link_secondary_killswitch")){var S,M;
return((S=Y())==null?void 0:S.linked)||((M=t())==null?void 0:M.linked)}var f;return(f=Y())==null?void 0:f.linked};
_.lJ(function(){var S=Y();if(S){var M=b4Z(new J1d,jSd(new UMS,!!S.linked));_.pO().then(function(f){f&&(f.setAccountLinkState(_.O4(M.JSC$9981_serializeBinary(),4)),f.updateAccountLinkingConfig(!!S.linked))})}});
var J=function(){return _.D(_.wA(R).toggleButtonViewModel,_.xx)};
_.gn("yt-signal-action-show-account-link-dialog",function(){if(J()){var S=b()?J().toggledButtonViewModel:J().defaultButtonViewModel;S=_.D(S,_.Tr);var M;if((M=Y())==null?0:M.isWarning){M=_.D(_.wA(R).warningButtonViewModel,_.Tr);if(!M){_.cE(Error("zh"));return}S=M}var f;(M=_.dl((f=S)==null?void 0:f.onTap))&&_.Y8([M],X.value)}else _.cE(Error("Ah"))});
var G=function(){var S=J();return Object.assign({},S,{isToggled:b()})},y=B?{iconPosition:"icon-only"}:{};
return _.N("account-link-button-view-model",{class:_.XE("ytwAccountLinkButtonViewModelHost",function(){return _.wA(V)},e),
el:X,"button-renderer":!0},_.N("div",null,_.N(_.H,{cond:function(){var S;if((S=Y())==null?0:S.isWarning)return(S=_.D(_.wA(R).warningButtonViewModel,_.Tr))||_.cE(Error("zh")),S},
then:function(S){return _.N(_.qo,{data:S,buttonOverrides:y})},
else:function(){return _.N(_.LO,{data:G,buttonShapeOverrides:y})}})))};
GUK=function(B){switch(B){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
y1p=function(B){switch(B){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}};
StN=function(B){switch(B){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.Mwp=function(B){var R=_.RC("web_generic_client_event_wait_period ",0);R||(R=3E5);var V=H4Z.get(B);!_.k("enable_web_client_experiment_event_timeout_killswitch")&&V&&(0,_.P8)()-V<R||(H4Z.set(B,(0,_.P8)()),_.dn("genericClientExperimentEvent",{eventType:B}))};
f_o=function(B){var R=B.data;var V=B.children;var e=kUA(R),X=(R==null?0:R.thumbnailSize)?R.thumbnailSize:"medium";B=!(R==null||!R.doubleStack);var Y=!(R==null||!R.experimentEnabled),t={},b=(t["collections-stack-wiz__collection-stack1"]=!0,t[DMx(X)]=!0,t);if(R==null?0:R.customClassName1stStack)b[R.customClassName1stStack]=!0;X={};var J=(X["collections-stack-wiz__collection-stack2"]=B,X["collections-stack-wiz__collection-stack2--responsive-mode"]=R==null?void 0:R.enableResponsiveMode,X);if(R==null?
0:R.customClassName2ndStack)J[R.customClassName2ndStack]=!0;return _.N("yt-collections-stack",{class:"collections-stack-wiz",hidden:!Y},gz(R,function(){return _.N("div",null,gz(R.doubleStack,function(){return _.N("div",{class:_.YB(J),style:"background-color:"+e})}),_.N("div",{class:_.YB(b),
style:"background-color:"+e}),V)}))};
DMx=function(B){switch(B){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""}};
kUA=function(B){if(!B)return"";var R,V=(R=_.Oz().resolve(_.uj(_.E5)))==null?void 0:R(),e;if(!V&&((e=B.vibrantColorPalette)==null?0:e.iconInactiveColor))return aG(B.vibrantColorPalette.iconInactiveColor,"1");var X;return V&&((X=B.darkColorPalette)==null?0:X.iconInactiveColor)?aG(B.darkColorPalette.iconInactiveColor,"1"):B.color?aG(B.color,"1"):B.sampledThumbnailColor?(B=B.sampledThumbnailColor,"rgba("+B.red+","+B.green+","+B.blue+");"):""};
_.c7=function(B,R){if(!B.includes("DATE_PLACEHOLDER"))return B;var V=new Date(0);V.setUTCSeconds(R);return B.replace("DATE_PLACEHOLDER",l_d(V))};
_.Av=function(B){B=_.z9p(B);return _.k("web_watch_enable_single_column_grid_view")?B:!1};
_.z9p=function(B){return B.watch.isWatchNarrowWidth};
a_u=function(B,R,V){return function(e){var X=B.command;X&&(Mx(X,{form:{element:V}}),R([X],e))}};
w4x=function(B,R,V,e,X){return function(Y){var t=dMZ(B,V);t&&Mx(t,{form:{element:e},commandController:X});R&&R.stopPropagation&&Y.stopPropagation()}};
dMZ=function(B,R){if(B.signInEndpoint&&!_.k("web_subscribe_sign_in_endpoint_killswitch"))return B.signInEndpoint;if(R){if(B.serviceEndpoints)return B.serviceEndpoints[1];if(B.onUnsubscribeEndpoints)return B.onUnsubscribeEndpoints[0]}else{if(B.serviceEndpoints)return B.serviceEndpoints[0];if(B.onSubscribeEndpoints)return B.onSubscribeEndpoints[0]}};
Tj5=function(B,R){var V,e,X,Y;R=R&&((V=B.unsubscribeAccessibility)==null?void 0:(e=V.accessibilityData)==null?void 0:e.label)||((X=B.subscribeAccessibility)==null?void 0:(Y=X.accessibilityData)==null?void 0:Y.label);return B.longSubscriberCountText?[R,_.FF(B.longSubscriberCountText)].filter(function(t){return t}).join(" "):R};
il=function(B,R){return R||(B==null?0:B.isChannelDelegate)?"disabled":"active"};
xMq=function(B,R){var V;switch((V=B.style)==null?void 0:V.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:il(B)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:il(B)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:il(B,!0)};case "OVERLAY":return R?{style:"overlay",type:"tonal",state:il(B)}:{style:"overlay",type:"filled",state:il(B)};default:return R?{style:"mono",type:"tonal",state:il(B)}:{style:"mono",type:"filled",state:il(B)}}};
L7A=function(B,R){var V=B.map(function(e){return e.toString()});
return _.Wr(function(e){if(V.includes(e.key)){R&&e.preventDefault();var X;(X=e.currentTarget)==null||X.click()}})};
_.vkS=function(){return L7A(["Enter"])};
_.K7Y=function(){return L7A(["Enter"," "],!0)};
_.sQ=function(B){if(B.composedPath)return B.composedPath();if(!B.__composedPath){for(var R=[],V=B.target;V;)R.push(V),V=V.parentNode;R.push(window);B.__composedPath=R}return B.__composedPath};
_.I_S=function(B,R,V){B=_.h(B);for(var e=B.next();!e.done;e=B.next()){e=e.value;if(e===R)break;for(var X=_.h(V),Y=X.next();!Y.done;Y=X.next())if(Y=Y.value,e.tagName===Y||e.role==="button"&&Y==="BUTTON")return!0}return!1};
QSo=function(B,R){var V,e=(V=R.observer)!=null?V:_.Oz().resolve(ue);if(B){V=EkZ(B);var X=[];R.showOption&&X.push(e.observe(B,function(){R.visibilityCallback(!0)},R.showOption));
R.hideOption&&X.push(e.observe(B,function(){R.visibilityCallback(!1)},R.hideOption));
R.prescanOption&&R.prescanCallback&&X.push(e.observe(B,function(){R.prescanCallback()},R.prescanOption));
var Y;V.visibilityMonitorKeys=((Y=V.visibilityMonitorKeys)!=null?Y:[]).concat(X)}};
EkZ=function(B){var R;return(R=B.polymerController)!=null?R:B};
_.rb=function(B){return!!_.Ft(B)};
_.A1K=function(B,R){var V=KYo();lj(function(){var e=B.value;if(e)return qt_(e,R),c15(e,R,void 0,void 0,void 0,V)},[R])};
_.gb=function(B,R,V,e,X,Y){var t=KYo();_.lJ(function(){var b=B.value;b&&(qt_(b,R(),Y),b=c15(b,R(),V,e,X,t),_.aK(b))})};
qt_=function(B,R,V){var e=i4q(R),X=sSS(R);R=e&&F7Y;var Y=X&&r1x;(e||X)&&QSo(B,{visibilityCallback:function(t){var b=_.Oz().resolve(_.oC);t&&e?b.resolveCommand(e,{form:{element:V?B:void 0},disableClickTracking:!0}):!t&&X&&b.resolveCommand(X,{form:{element:V?B:void 0},disableClickTracking:!0})},
showOption:R,hideOption:Y})};
c15=function(B,R,V,e,X,Y){var t=new Map;if(R=_.Ft(R)){var b;B=(e==null?void 0:(b=e.onTap)==null?void 0:b.value)||B;V=gkN(R,B,V==null?void 0:V.onTap,X,Y);B.addEventListener("click",V);t.set("click",V)}return function(){for(var J=_.h(t),G=J.next();!G.done;G=J.next()){var y=_.h(G.value);G=y.next().value;y=y.next().value;B.removeEventListener(G,y)}}};
_.Ft=function(B){var R;return(B=(R=_.D(B,ZE))==null?void 0:R.onTap)&&_.dl(B)};
i4q=function(B){var R;return(B=(R=_.D(B,ZE))==null?void 0:R.onVisible)&&_.dl(B)};
sSS=function(B){var R;return(B=(R=_.D(B,ZE))==null?void 0:R.onHidden)&&_.dl(B)};
gkN=function(B,R,V,e,X){var Y=function(b){_.Oz().resolve(_.oC).resolveCommand(B,b)},t=function(b){e&&_.I_S(_.sQ(b),R,e)||Y(b.target?{form:{element:b.target,
sourceData:B,mutationContext:X}}:void 0)};
V&&(t=function(b){V(b,Y)});
return t};
Z4o=function(B){var R=B.data;var V=B.className;B=B.alwaysShow;var e=_.Zh();_.A1K(e,R.rendererContext);a:switch(R.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var X="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:X="ytThumbnailHoverOverlayViewModelStyleCover"}X=_.YB("ytThumbnailHoverOverlayViewModelScrim",X);var Y,t=(Y=_.D(R==null?void 0:R.rendererContext,_.mJ))==null?void 0:Y.label,b=_.Ft(R.rendererContext)!==void 0;Y=b?"button":void 0;b=b?0:void 0;var J=_.K7Y(),G={};return _.N("thumbnail-hover-overlay-view-model",
{el:e,class:_.YB("ytThumbnailHoverOverlayViewModelHost",V,(G.ytThumbnailHoverOverlayViewModelHostForceHover=B,G)),"aria-label":t,role:Y,tabindex:b,"on:keypress":J},_.N("div",{class:X},R.icon?_.N(_.ia,{data:R.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,R.text?_.N(_.Hr,{text:R.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
mMA=function(B){switch(B){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}};
$M_=function(B){var R=B.numAvatarsInCluster;switch(B.clusterSize){case "small":return R===2?22:18;case "40":return R===2?24:22;default:return R===2?24:20}};
Cko=function(B,R){return function(V){var e=Object.keys(R);_.lJ(function(){if(B()){for(var X=_.h(e),Y=X.next();!Y.done;Y=X.next())Y=Y.value,V.addEventListener(Y,R[Y]);_.aK(function(){for(var t=_.h(e),b=t.next();!b.done;b=t.next())b=b.value,V.removeEventListener(b,R[b])})}})}};
Pk5=function(B){switch($M_(B)){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""}};
nkx=function(B){switch(B){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""}};
uN_=function(B){switch($M_(B)){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""}};
O45=function(B){switch(B){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""}};
oud=function(B){switch(B){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}};
BN_=function(B){return B==="medium"||B==="48"||B==="large"||B==="extra-large"||B==="extra-extra-large"||B==="giant"};
R85=function(B){return!!((B==null?0:B.includes(3))||(B==null?0:B.includes(5)))};
e8S=function(B){return{size:VdZ(B.data.avatarImageSize),onTap:B.onTap,decorations:B.decorations||[],badgeText:B.badgeText,accessibilityText:B.accessibilityText,avatarButtonCustomClassName:B.avatarButtonCustomClassName,clusterLayoutConfig:B.clusterLayoutConfig}};
VdZ=function(B){switch(B){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"}};
XVK=function(B){switch(B){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_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}};
pVN=function(B){switch(B){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""}};
Y35=function(B){var R=B.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",V,e=B.avatars&&B.avatars.length>0?(V=_.D(B.avatars[0],_.$x))==null?void 0:V.avatarImageSize:"AVATAR_SIZE_UNKNOWN";V=XVK(e)||0;if(R){var X,Y=(X=B.avatarClusterSize)!=null?X:"AVATAR_SIZE_M";R=XVK(Y);var t,b,J=Math.min((b=(t=B.avatars)==null?void 0:t.length)!=null?b:0,4),G;return{avatars:((G=B.avatars)==null?void 0:G.slice(0,4))||[],avatarSizeInPx:V,avatarStackStyle:{width:R+"px",height:R+"px",position:"relative"},avatarStyle:function(S){var M=
$M_({clusterSize:VdZ(Y),numAvatarsInCluster:J,avatarIndex:S});var f=XVK(Y);J===3&&S===2?(f=(f-M)/2,f=(_.vE("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*f):f=void 0;return{position:"absolute",top:J===2&&S===1||J===3&&S===2||J===4&&S>=2?"0":void 0,bottom:J===2&&S===0||J>2&&S<2?"0":void 0,left:J===2&&S===1||J>2&&(S===1||S===3)?"0":void 0,right:J<=3&&S===0||J===4&&(S===0||S===2)?"0":void 0,transform:f?"translateX("+f+"px)":void 0,width:M+"px",height:M+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(S){return{clusterSize:VdZ(B.avatarClusterSize),numAvatarsInCluster:J,avatarIndex:S}},
avatarButtonCustomClassName:void 0}}var y;return{avatars:((y=B.avatars)==null?void 0:y.slice())||[],avatarSizeInPx:V,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:pVN(e),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
h8N=function(B,R,V){return function(){Mx(B,{form:{element:R},commandController:V})}};
tdu=function(B){switch(B){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
WwK=function(B){var R=B.data;return _.N("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:B.hidden===void 0?!1:B.hidden},_.N(_.Hr,{text:R.title,className:"yt-thumbnail-overlay-title-view-model__title"}),R.subtitle?_.N(_.Hr,{text:R.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
bHA=function(B){switch(B){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"}};
JgS=function(B){var R=B.data;B=B.hidden===void 0?!1:B.hidden;var V={};B={class:_.YB("yt-page-indicator-view-model",(V["yt-page-indicator-view-model__indicator--hidden"]=!R.indicatorCount,V)),hidden:B};if(R.indicatorCount){V=[];for(var e=0;e<R.indicatorCount;e++){var X={};X=_.YB("yt-page-indicator-view-model__indicator",(X["yt-page-indicator-view-model__indicator--selected"]=R.selectedIndex===e,X));V.push(_.N("div",{class:X}))}R=_.N(_.OZ,null,V)}else R=_.N(_.OZ,null);return _.N("yt-page-indicator-view-model",
B,R)};
Uw_=function(B){B&&(jvN(B)?delete B.inlinePlayerData:"inlinePlaybackEndpoint"in B&&delete B.inlinePlaybackEndpoint)};
NNS=function(B){if("accessibilityText"in B)return B.accessibilityText||"";if("title"in B){var R,V,e;return((R=B.title)==null?void 0:(V=R.accessibility)==null?void 0:(e=V.accessibilityData)==null?void 0:e.label)||""}if("accessibility"in B){var X,Y;return((X=B.accessibility)==null?void 0:(Y=X.accessibilityData)==null?void 0:Y.label)||""}return""};
jvN=function(B){return"inlinePlayerData"in B};
CO=function(B){return new GNp(B)};
_.ygS=function(B,R,V,e,X,Y){var t=function(G){G.preventDefault()},b=function(){var G=B.value;
if(G)return(G._data=R)?(G.addEventListener("touchstart",ioN,{passive:!0}),G.addEventListener("click",Fsp),R.clickTrackingParams&&(G.params={itct:R.clickTrackingParams}),rX5(G,R),f$(G,g7o(R)||"")):G.addEventListener("click",t),function(){R?(G.removeEventListener("touchstart",ioN,{passive:!0}),G.removeEventListener("click",Fsp)):G.removeEventListener("click",t)}},J=function(){var G=B.value;
if(G){var y=_.T2({innertubeCommand:R,elementsCommand:V,forceNewState:e,stopPropagation:Y});if(y)return G._data=y._data,y["aria-haspopup$"]&&G.setAttribute("aria-haspopup",y["aria-haspopup$"].toString()),y["force-new-state$"]&&G.setAttribute("force-new-state",y["force-new-state$"].toString()),y.href$&&f$(G,y.href$),y.rel$&&(G.rel=y.rel$),y.role$&&G.setAttribute("role",y.role$),y.target$&&(G.target=y.target$),G.params=y.params,y.onclick&&G.addEventListener("click",y.onclick),y.onpointerdown&&G.addEventListener("onpointerdown",
y.onpointerdown),function(){y.onclick&&G.removeEventListener("click",y.onclick);y.onpointerdown&&G.removeEventListener("onpointerdown",y.onpointerdown)}}};
lj(X?J:b,[R,V])};
S3K=function(B){var R=B.children;var V=B.className;var e=B.dir;var X=B.style;var Y=B.role;var t=B.ariaSelected;var b=B.ariaLabel;var J=B.ariaHidden;var G=B.ariaLabelledby;var y=B.ariaDescribedby;var S=B.command;var M=B.elementsCommand;var f=B.forceNewState;var z=B.isPlaceholder;var T=B.tabIdentifier;var L=B.target;var Q=B.tabIndex;var q=B.useATagConfig;var m=B.stopPropagation;B=_.Zh();_.ygS(B,S,M,f,q,m);M=_.Wr(function(){return m===!1});
return _.N("a",{el:B,"on:click":M,class:V,style:X,dir:e,role:Y?Y:S?void 0:"group","aria-hidden":J?!0:void 0,"aria-label":b,"aria-labelledby":G,"aria-describedby":y,"aria-selected":t,tabindex:Q!==void 0?Q:void 0,target:L,"tab-identifier":T,"force-new-state":f?!0:void 0,"is-placeholder":z?!0:void 0},R)};
Mdu=function(B){var R=B.data;B=_.Wr(function(){var X=_.D(R.onTap,_.aT);X&&_.Oz().resolve(_.oC).resolveCommand(X);return!1});
var V={sources:[{url:R.thumbnailUrl,width:120,height:90}]},e=R.rating&&R.ratingA11yLabel&&R.reviewsCount&&R.reviewsCountA11yLabel;return _.N("place-data-view-model",null,R.placeName&&R.placeCategory?_.N("div",{class:"yt-spec-place-data-view-model-shape","on:click":B},_.N(_.ia,{data:V,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+HH_}),_.N(S3K,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.D(R.onTap,_.aT),forceNewState:!0,
useATagConfig:!0},_.N("h3",{class:"yt-spec-place-data-view-model-shape__name",title:R.placeName},R.placeName)),_.N("div",{class:"yt-spec-place-data-view-model-shape__metadata"},e?_.N("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.N("span",{class:"score",title:R.ratingA11yLabel},R.rating),_.N("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.N(_.Us,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.N("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:R.reviewsCountA11yLabel},R.reviewsCount)):_.N("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.N("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.N("span",{class:"category",title:R.placeCategory},R.placeCategory)))):null)};
kNu=function(B){return function(R){B&&(B.thumbnailElRef=R.thumbnailElRef,B.thumbnail=R.thumbnail,B.thumbnailOverlays=R.thumbnailOverlays,B.thumbnailSize=R.thumbnailSize)}};
Dwq=function(B){var R;return(R=B.sharedUi)==null?void 0:R.animatedThumbnailEnabled};
fBq=function(B){var R;return(R=B.sharedUi)==null?void 0:R.inlinePreviewEnabled};
_.lBx=function(B){var R;return(R=B.sharedUi)==null?void 0:R.currentPageSubType};
z8d=function(){return _.N("div",{class:"yt-pinking"},_.N("svg",{class:"yt-pinking__pinking-left"},_.N("defs",null,_.N("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.N("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.N("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.N("svg",{class:"yt-pinking__pinking-right"},_.N("defs",null,_.N("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.N("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.N("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
aBI=function(B){switch(B){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"}};
vuN=function(B){var R=[],V=B.data,e=m3(B.width,B.height),X=_.Oz().resolve(_.uj(dwZ)),Y=_.Zh(function(){R.push("elRef.value set")});
_.zM(function(){R.push("onInit");return function(){R.push("onCleanup")}});
_.zM(function(){var L;(L=B.playbackRef)==null||L.call(B,{thumbnailElRef:Y,thumbnail:V.image,thumbnailOverlays:V.overlays,thumbnailSize:e})});
var t=kqN(Dwq),b,J=(b=B.aspectRatio)!=null?b:0,G=(b=(V.image?_.awI(V.image):J)<=1&&J===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",y=function(){Y.value||_.KE(new _.H8("Thumbnail elRef.value is null",R.join("\n")));X&&Y.value&&X(Y.value)},S={};
a:{if(!B.disableRounding&&!B.isClip)switch(e){case "large":var M="yt-thumbnail-view-model--large";break a;case "small":M="yt-thumbnail-view-model--small";break a;default:M="yt-thumbnail-view-model--medium";break a}M=void 0}J=_.YB("yt-thumbnail-view-model",B.className,aBI(J),M,(S["yt-thumbnail-view-model--cinematic"]=b,S));S=void 0;var f,z;(M=b?(f=B.data)==null?void 0:(z=f.backgroundColor)==null?void 0:z.lightTheme:void 0)&&(S="background-color:"+aG(M,"1")+";");var T;f=B.hovered&&e!=="large"&&((T=
V.overlays)==null?void 0:T.some(function(L){return _.D(L,wVd)}));
return _.N("yt-thumbnail-view-model",{class:J,style:S,el:Y},gz(b,function(){return _.N("div",{class:"yt-thumbnail-view-model__blurred-image"},_.N(_.ia,{data:V.image,alt:"",contentMode:G,targetWidth:B.width,onload:y}))}),_.N("div",{class:"yt-thumbnail-view-model__image"},_.N(_.ia,{data:V.image,
alt:"",contentMode:G,targetWidth:B.width,onload:y}),null),gz(!f,function(){return TN5(V.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:e,isClip:B.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:B.lockupExperiments}})}),gz(B.hovered,function(){return xwd(V.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),gz(B.hovered&&t,function(){return Lwd(V.overlays)}),gz(B.isClip,function(){return z8d()}))};
KwS=function(B){switch(B){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"}};
cgp=function(B){var R=_.h(W7(-1)),V=R.next().value,e=R.next().value,X=dg(function(){return new IBY(e)});
_.zM(function(){EuZ(X,B.data.thumbnails.length);return function(){QvA(X)}});
var Y;return _.N("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(Y=B.data.thumbnails)==null?void 0:Y.map(function(t,b){var J=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!B.data.primaryThumbnail&&b===0&&J.push("yt-collection-thumbnail-slideshow--first-slide");b<=V&&J.push("yt-collection-thumbnail-slideshow--show-slide");b=J.join(" ");return _.N("div",{class:b},q3d(t,{thumbnailViewModel:{disableRounding:B.disableRounding}}))}))};
iHA=function(B){var R=_.h(W7(!1)),V=R.next().value,e=R.next().value;_.zM(function(){if(B){var X=_.Oz().resolve(_.uj(Ag5));if(X){var Y={triggeringElement:B,onDwellTriggeredFn:function(){e(!0)},
onDwellEndFn:function(){e(!1)}};
X.registerElement(Y);return function(){X.unregisterElement(Y)}}}});
return V};
svd=function(B){var R=_.h(_.WU(!1,void 0,"RIOonf")),V=R.next().value,e=R.next().value;_.zM(function(){var X=B==null?void 0:B();if(X){var Y=_.Oz().resolve(_.uj(Ag5));if(Y){var t={triggeringElement:X,onDwellTriggeredFn:function(){e(!0)},
onDwellEndFn:function(){e(!1)}};
Y.registerElement(t);_.aK(function(){Y.unregisterElement(t)})}}});
return V};
gu5=function(B){var R,V=(R=_.Oz().resolve(_.uj(_.E5)))==null?void 0:R(),e=iHA(B.triggeringElement),X=!!B.data.primaryThumbnail,Y=function(){var b;return _.N("div",null,Fwq(B.data.primaryThumbnail,{thumbnailViewModel:{width:B.width,height:B.height,aspectRatio:B.aspectRatio,disableRounding:B.disableRounding,className:X?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:B.hovered,playbackRef:B.playbackRef}}),gz(e&&((b=B.data.thumbnails)==null?void 0:b.length),function(){return _.N("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.N(rgq,{data:B.data,disableRounding:!X}))}))};
R=B.data.stackColor;var t={experimentEnabled:X,thumbnailSize:m3(B.width,B.height),doubleStack:B.doubleStack,color:V?R==null?void 0:R.darkTheme:R==null?void 0:R.lightTheme,enableResponsiveMode:!1};return _.N("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},gz(X,function(){return _.N(f_o,{data:t},Y())}),gz(!X,Y))};
ZH_=function(B,R,V){V?V(R):_.Lc(R,B.target?{form:{element:B.target}}:void 0)};
_.P7=function(B,R,V,e){_.lJ(function(){var X=B.value;if(X){var Y=new Map,t,b=(t=R())==null?void 0:t.onTap;b&&(t=function(J){a:{var G=J.composedPath();G=_.h(G);for(var y=G.next();!y.done;y=G.next()){y=y.value;if(y===X)break;if(y.className.indexOf("HostIsClickableAdComponent")>=0||y.tagName==="A".toString()||y.tagName==="BUTTON".toString()){G=!0;break a}}G=!1}G||(_.k("enable_square_image_components_ui_web_with_float_button")?_.OI(B.value,"yt-navigate",{endpoint:_.dl(b)}):ZH_(J,b,V))},(e==null?0:e())||
_.k("enable_web_home_top_landscape_image_layout_level_click")?(X.addEventListener("tap",t),Y.set("tap",t)):(X.addEventListener("click",t),Y.set("click",t)));
_.aK(function(){for(var J=_.h(Y),G=J.next();!G.done;G=J.next()){var y=_.h(G.value);G=y.next().value;y=y.next().value;X.removeEventListener(G,y)}})}})};
mwx=function(B,R){var V,e=(V=B.interaction)==null?void 0:V.onTap;if(B=_.T2({elementsCommand:e,forceNewState:!0,skipOnClick:!0}))return B.onclick=function(X){Q1S(X)&&(X.preventDefault(),e&&ZH_(X,e,R))},xT(B)?B:void 0};
$wu=function(B){switch(B){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
CUd=function(B){switch(B){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"}};
PUA=function(B){switch(B){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"}};
_.nuK=function(B){return _.k("rich_grid_enable_dynamic_offset")&&B?Math.max(Math.round((B-_.RC("rich_grid_dynamic_offset_anchor_width",1300))/100*_.RC("rich_grid_dynamic_offset_offset_per_100",10)),_.RC("rich_grid_dynamic_offset_lower_bound",-60)):0};
u7Z=function(B,R){switch(R){case 4:return 16;case 1:return B<528?16:B<1024?32:48;case 2:return(B>=528?16:8)/2;case 3:return(B<528?16:B<1024?32:48)+(B>=528?16:8)/2;default:return 0}};
OHS=function(B){var R=B.originalContainerWidth;var V=B.sizing;var e=B.standardUnit;if(B.isCompactList&&R<528)return 1;switch(V){case "STANDARD":return e;case "COMPACT":return e+1;case "EXTRA_COMPACT":return _.k("web_responsive_extra_compact_2x")?e*2:_.k("web_responsive_current")?e===1?2:e%2===0?e/2*3:e+2:e<4?e*2:Math.ceil(e*3/2);case "MINI":return e>1?e*2:3;default:return e}};
B8Y=function(B){var R=B.containerWidth;var V=B.peek;var e=B.gutter;var X=B.numItems;B=B.ignoreMaxWidthLimit;R=V?Math.max((R-V-e*X)/X,0):Math.max((R-e*(X-1))/X,0);return B?R:Math.min(R,oKY)};
_.nO=function(B){var R=B.containerWidth;var V=B.hasPeek;var e=B.sizing;var X=B.marginSettings;var Y=B.isCompactList;var t=B.enableFullBleedForSingleCol;var b=B.standardUnitMinWidth;e=e||"STANDARD";V=!!V;B=R>=528?16:8;var J=V?R>=528?48:24:0;X=u7Z(R,X);var G=Math.max(R-X*2,0);b=_.k("kevlar_disable_min_width_override")?void 0:b;b=Math.min(Math.max(Math.floor((G-J+B)/((b!=null?b:RRx)+_.nuK(R)+B)),1),6);var y=(t=!!t&&b===1)||b===1&&e!=="STANDARD";V=V||y?G:Math.min(G,(oKY+B)*b-B);e=OHS({originalContainerWidth:R,
sizing:e,standardUnit:b,isCompactList:Y});return{itemWidth:B8Y({containerWidth:V,peek:J,gutter:B,numItems:e,ignoreMaxWidthLimit:y}),gutter:B,maxContainerWidth:V,numItems:e,margin:t?0:X,contentMargin:u7Z(R,1),typographyBump:B8Y({containerWidth:V,peek:J,gutter:B,numItems:b,ignoreMaxWidthLimit:y})>400&&!(Y&&R<528),standardUnit:b}};
V7I=function(B){switch(B){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.eRd=function(B){if(B){var R;if((R=B.responsiveContainerConfiguration)==null?0:R.responsiveSize)return V7I(B.responsiveContainerConfiguration.responsiveSize);if(B.layoutSizing)switch(B.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"}}};
XXp=function(B){if(B.fullbleed)return 1;switch(B.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
t7I=function(B,R,V,e,X,Y,t,b){a:switch(B){case 4:Y=!!(Y&&Y<100);break a;default:Y=!1}a:switch(B){case 3:case 4:var J=e==="LOCKUP_CONTENT_TYPE_CHANNEL"||e==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:J=!1}a:switch(B){case 5:var G=!0;break a;case 4:G=!1;break a;default:G=!1}a:if(B===4&&e==="LOCKUP_CONTENT_TYPE_SOURCE")var y=1;else switch(B){case 3:y=1;break a;default:y=0}return{isOverlay:G,isCard:pXx(e,t),sizing:R!=null?R:"STANDARD",typographyBump:V!=null?V:!1,isTiny:Y,isCentered:J,isCollection:YvZ(e),
arrangement:y,addMarginForFullbleed:B===1&&e!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:B===1&&e==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:hRu(e,X,b),disableRounding:B===5||pXx(e,t)||B===1&&e==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:YvZ(e)?2:0,useLegacyTypography:!(b==null||!b.useLegacyTypography),useRichGridLegacyTypography:!(b==null||!b.useRichGridLegacyTypography)&&!_.k("web_enable_typography_bump")}};
YvZ=function(B){switch(B){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}};
pXx=function(B,R){if(R&&B==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(B){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
hRu=function(B,R,V){if(R&&(V==null||!V.alwaysRespectPodcastShowAspectRatio||B!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(B){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}};
Wjd=function(B){switch(B){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"}};
jtY=function(B,R,V){a:switch(B.badgeStyle){case "BADGE_OVERLAY":var e=!0;break a;default:e=!1}return{type:R?16:bMx(B.badgeStyle),brNzRatingBadgeType:JCp(B.badgeStyle),text:B.badgeText,icon:B.iconName,isOverlay:e,modern:V||_.k("web_modern_badge_view_model")}};
bMx=function(B){switch(B){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
JCp=function(B){switch(B){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}};
N8d=function(B){var R=B.data?jtY(B.data,!!B.workaroundShortsIsThumbnailBadge,B.modern):void 0;return _.N("yt-badge-view-model",{class:_.YB("yt-badge-view-model-wiz",B.class)},gz(R==null?void 0:R.brNzRatingBadgeType,function(){return _.N(ULd,{data:R})}),gz(R&&!R.brNzRatingBadgeType,function(){return _.N(_.ul,{data:R})}))};
_.OQ=function(B){if(B){var R;return((R=_.Oz().resolve(_.uj(_.E5)))==null?0:R())?B.darkThemeImage:B.image}};
Svd=function(B,R,V,e,X,Y){if(!V)return X&&Y&&R==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+X+"px; height: "+Y+"px;":"";X=V.size;V=V.allowFullWidth;if(R==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&V)return"width: 100%;";if(X===void 0)return"";switch(B){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+X+"px; height: "+X+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+X+"px; height: "+1/Gdd*
X+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+X*yCp+"px; height: "+X+"px;";default:return(e==null?0:e.height)&&(e==null?0:e.width)?e.width/e.height>1?"max-width: "+X*yCp+"px;":"max-width: "+X+"px;":"max-width: "+X+"px;"}};
HMZ=function(B){var R;return B&&((R=_.OQ(B.themedImage))!=null?R:B.image)};
M7Z=function(B){var R;return B==null?void 0:(R=B.sources)==null?void 0:R[0]};
DL_=function(B,R){var V,e;return!!((B==null?0:(V=B.byline)==null?0:V.hideAvatar)&&((e=_.D(R,kdq))==null?void 0:e.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
fLN=function(B,R){var V,e;return!!((B==null?0:(V=B.byline)==null?0:V.addPadding)&&((e=_.D(R,kdq))==null?void 0:e.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
lLp=function(B,R,V,e){var X={},Y=(X["yt-content-metadata-view-model-wiz__delimiter"]=!0,X["yt-content-metadata-view-model-wiz__delimiter--standalone"]=e,X);return gz(R-1>V,function(){return _.N("span",{class:_.YB(Y),"aria-hidden":!0},B)})};
aLI=function(B,R){return _.N(_.Hr,{text:B.text,linkInheritColor:!0,className:zRd(R),userInput:!0})};
wXN=function(B){var R=B.metadataPart;var V=B.isOverlay;var e=B.useMediumText;var X=B.hideAvatar;var Y=1;R.maxLines!==void 0&&(Y=R.maxLines);return _.N(_.OZ,null,gz(R.avatarStack,function(){return dLA(R.avatarStack,{avatarStackViewModel:{isOverlay:V,useMediumText:e,hideAvatar:X}})}),gz(R.text,function(){var t=Y;
return _.N(_.OZ,null,R.tooltip?_.N("span",{title:R.tooltip,role:"tooltip"},aLI(R,t)):aLI(R,t))}))};
zRd=function(B){switch(B){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"}};
T8p=function(B){var R=B.metadataRow;var V=B.isInline;var e=B.delimiter;var X=B.isOverlay;var Y=B.useMediumText;var t=B.extensions;var b=DL_(t==null?void 0:t.lockupMetadata,R);B=fLN(t==null?void 0:t.lockupMetadata,R);t=!!((t==null?0:t.lockupMetadata)&&R.badges);var J={};B=(J["yt-content-metadata-view-model-wiz__metadata-row"]=!0,J["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=V,J["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=B,J["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
t,J);var G,y;return _.N("div",{class:_.YB(B)},(G=R.badges)==null?void 0:G.map(function(S){return _.N("div",{class:"yt-content-metadata-view-model-wiz__badge"},dLA(S))}),(y=R.metadataParts)==null?void 0:y.map(function(S,M){return _.N(_.OZ,null,wXN({metadataPart:S,
isOverlay:X,useMediumText:Y,hideAvatar:b}),lLp(e,R.metadataParts.length,M,!1))}),gz(R.isSpacerRow&&!V,function(){return _.N("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
xLZ=function(B){var R=B.className;var V=B.data;var e=B.layout===void 0?0:B.layout;var X=B.isOverlay===void 0?!1:B.isOverlay;var Y=B.useMediumText;var t=B.extensions;B=_.Zh();var b=e===0;e={};e=(e["yt-content-metadata-view-model-wiz"]=!0,e["yt-content-metadata-view-model-wiz--inline"]=b,e["yt-content-metadata-view-model-wiz--tappable"]=_.rb(V.rendererContext),e["yt-content-metadata-view-model-wiz--medium-text"]=Y,e);_.A1K(B,V.rendererContext);return _.N("yt-content-metadata-view-model",{class:_.YB(R,
e),el:B},gz(V.metadataRows,function(){return V.metadataRows.map(function(J,G){return _.N(_.OZ,null,T8p({metadataRow:J,isInline:b,delimiter:V.delimiter,isOverlay:X,useMediumText:Y,extensions:t}),gz(b&&!J.isSpacerRow,function(){return lLp(V.delimiter,V.metadataRows.length,G,!0)}))})}))};
Ljq=function(B){switch(B){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"}};
vK_=function(B){if(B==null?0:B.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(B==null?void 0:B.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
KjY=function(B){if(B==null?0:B.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(B==null?void 0:B.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
EK5=function(B){var R,V,e,X,Y,t,b={},J=_.YB(vK_(B.lockupStyle),KjY(B.lockupStyle),(b["yt-lockup-metadata-view-model-wiz"]=!0,b["yt-lockup-metadata-view-model-wiz--overlay"]=(R=B.lockupStyle)==null?void 0:R.isOverlay,b["yt-lockup-metadata-view-model-wiz--card"]=(V=B.lockupStyle)==null?void 0:V.isCard,b["yt-lockup-metadata-view-model-wiz--centered"]=(e=B.lockupStyle)==null?void 0:e.isCentered,b["yt-lockup-metadata-view-model-wiz--typography-bump"]=(X=B.lockupStyle)==null?void 0:X.typographyBump,b["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(Y=B.lockupStyle)==null?void 0:Y.useLegacyTypography,b["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(t=B.lockupStyle)==null?void 0:t.useRichGridLegacyTypography,b)),G,y,S,M,f,z;return _.N("yt-lockup-metadata-view-model",{class:J},gz(B.data.image,function(){return _.N("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},ILY(B.data.image,{avatarStackViewModel:{overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}}))}),_.N("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},
_.N("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(G=B.data.title)==null?void 0:G.content},gz(B.data.title,function(){return _.N(_.SQ,{command:B.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:B.lockupAccessibilityLabel},_.N(_.Hr,{text:B.data.title}))})),_.N("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},ILY(B.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((y=B.lockupStyle)==null?void 0:y.typographyBump)||((S=B.lockupStyle)==null?void 0:S.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((M=B.lockupStyle)==null?void 0:M.arrangement)===0,addPadding:((f=B.lockupStyle)==null?void 0:f.arrangement)===1}}}}})),gz(B.data.attribution,function(){return _.N("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},ILY(B.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.N("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
ILY(B.data.menuButton,((z=B.lockupStyle)==null?0:z.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
Qt_=function(B){switch(B.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"}}};
qv5=function(B){var R=_.lBx(_.QL().getState())||"";return B?B+R:""};
cCI=function(B){switch(B){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
iMo=function(B){var R=_.h(_.WU(void 0,void 0,"BIquNb")),V=R.next().value,e=R.next().value,X=_.h(_.WU(void 0,void 0,"eR0GH"));R=X.next().value;var Y=X.next().value,t=_.h(_.WU(void 0,void 0,"UmkP0"));X=t.next().value;var b=t.next().value;t=_.Wr(function(y){if(ACq(_.sQ(y)))return!1;e(y);Y(void 0);b(void 0);return!0});
var J=_.Wr(function(y){B==null||B(y);if(ACq(_.sQ(y)))return!1;Y(y);e(void 0);b(void 0);return!0}),G=_.Wr(function(y){ACq(_.sQ(y))||(b(y),Y(void 0),e(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:V,pointerDownEvent:R,pointerLeaveEvent:X},touchFeedbackOnPointerUp:t,touchFeedbackOnPointerDown:J,touchFeedbackOnPointerLeave:G}};
ACq=function(B){var R=["BUTTON".toString()];B=_.h(B);for(var V=B.next();!V.done;V=B.next()){V=V.value;for(var e=_.h(R),X=e.next();!X.done;X=e.next())if(V.tagName===X.value)return!0}return!1};
sto=function(B){switch(B){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"}};
Fju=function(B,R){var V;return VNd(B,((V=B.content)==null?void 0:V.length)||0,!R)};
rCI=function(B,R){R=Fju(B,R);var V,e;return(((V=B.content)==null?void 0:V.length)||0)>(((e=R.content)==null?void 0:e.length)||0)};
gKZ=function(B){var R=B.isTruncated;var V=B.isAbsoluteButton;var e=B.lineHeight;var X=B.contentRef.value,Y=B.placeholderTruncationTextRef.value,t=B.truncationTextRef.value;B=B.appDirection==="rtl";if(X&&Y){var b=Y.offsetLeft;B&&(b=X.offsetWidth-Y.offsetWidth-Y.offsetLeft);if(R){R=Y.offsetWidth;Y=X.offsetWidth;var J=V?Y-R-70:b-70;e="linear-gradient(\n      to top, transparent 0%,\n      transparent "+e+"px,\n      #000 "+e+"px,\n      #000 100%), linear-gradient(\n      to "+((B?"left":"right")+",\n      #000 0px,\n      #000 "+
J+"px,\n      transparent "+(V?Y-R:J+70)+"px)");X.style.setProperty("-webkit-mask-image",e);X.style.setProperty("mask-image",e)}else X.style.setProperty("-webkit-mask-image",""),X.style.setProperty("mask-image","");V?B?(t.style.setProperty("left","0"),t.style.setProperty("right","unset")):(t.style.setProperty("left",""),t.style.setProperty("right","0")):B?(t.style.setProperty("left","unset"),t.style.setProperty("right",b+"px")):(t.style.setProperty("left",b+"px"),t.style.setProperty("right","unset"))}};
ZMu=function(B,R,V,e,X,Y,t){var b=_.Zh(),J=_.Zh(),G=_.Zh(),y=Fju(B,X),S=_.Oz().resolve(_.q9),M=_.h(W7(rCI(B,X))),f=M.next().value,z=M.next().value,T=wg(null);lj(function(){function L(){if(b.value&&J.value&&G.value){var m=b.value;m.scrollHeight-m.offsetHeight>1?(z(!0),e||gKZ({isTruncated:!0,isAbsoluteButton:!0,lineHeight:V,contentRef:b,placeholderTruncationTextRef:J,truncationTextRef:G,appDirection:S})):(m=rCI(B,X),z(m),e||gKZ({isTruncated:m,isAbsoluteButton:!1,lineHeight:V,contentRef:b,placeholderTruncationTextRef:J,
truncationTextRef:G,appDirection:S}))}}
var Q,q;(Q=T.value)==null||(q=Q.stop)==null||q.call(Q);Q=new _.o7(L,17);L();T.value=Q},[B.content,
R,V,S,e,Y,t,X]);_.zM(function(){var L=function(){var q,m;(q=T.value)==null||(m=q.fire)==null||m.call(q)};
if(window.ResizeObserver){var Q=new ResizeObserver(L);Q.observe(b.value);return function(){var q,m;(q=T.value)==null||(m=q.stop)==null||m.call(q);Q.disconnect()}}window.addEventListener("resize",L);
return function(){var q,m;(q=T.value)==null||(m=q.stop)==null||m.call(q);window.removeEventListener("resize",L)}});
return{isTruncated:f,displayText:y,contentRef:b,placeholderTruncationTextRef:J,truncationTextRef:G}};
mLd=function(B){return _.N("button",{"aria-disabled":!0,disabled:!0,class:B.className,el:B.elRef,style:"line-height: "+B.lineHeight+"px;"},_.N(_.Hr,{text:B.text}))};
$L5=function(B){var R=B.text;var V=B.alwaysShowTruncationText;var e=B.truncationText;var X=B.onExpandClick;var Y=B.lineHeight===void 0?16:B.lineHeight;var t=B.maxLines===void 0?2:B.maxLines;var b=B.disableTextMask===void 0?!1:B.disableTextMask;var J=B.textStyle===void 0?"default":B.textStyle;var G=B.accessibilityLabel===void 0?"":B.accessibilityLabel;var y=B.textSize===void 0?"small":B.textSize;var S=B.alwaysTruncateAtMaxLines===void 0?!1:B.alwaysTruncateAtMaxLines;B=_.Wr(function(){return void(X==
null?void 0:X())});
var M=ZMu(R,t,Y,b,S,y,J),f=M.isTruncated;R=M.displayText;S=M.contentRef;var z=M.placeholderTruncationTextRef;M=M.truncationTextRef;var T={};V=_.YB((T["truncated-text-wiz__absolute-button"]=!b,T["truncated-text-wiz__bottom-button"]=b,T["truncated-text-wiz--hidden"]=!(V||f),T));b={};J=_.YB((b["truncated-text-wiz"]=!0,b["truncated-text-wiz--overlay"]=J==="overlay",b["truncated-text-wiz--medium-text"]=y==="medium",b["truncated-text-wiz--large-text"]=y==="large",b["truncated-text-wiz--primary-text"]=J===
"primary-text",b));return _.N("truncated-text",{class:J,"on:click":B,style:"line-height: "+Y+"px;"},_.N("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:S,style:"max-height: "+t*Y+"px;"},_.N(_.Hr,{text:R}),_.N(mLd,{text:e,lineHeight:Y,elRef:z,className:"truncated-text-wiz__inline-button"})),_.N("button",{"aria-label":G,class:V,el:M,style:"line-height: "+Y+"px;"},_.N(_.Hr,{text:e})))};
CZp=function(B){return{content:B!=null?B:""}};
u$x=function(B){var R=B.data;var V;B={class:B.className};a:switch(R.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var e="yt-video-attribute-view-model--vertical";break a;default:e="yt-video-attribute-view-model--horizontal"}a:switch(R.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(R.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(R.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var t="yt-video-attribute-view-model--metadata-header";break a;default:t=""}a:switch(R.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var b="yt-video-attribute-view-model--container-card";break a;default:b=""}var J=_.dl(R.onTap)||_.Ft(R.rendererContext)?"yt-video-attribute-view-model--clickable":"";
e=["yt-video-attribute-view-model",e,X,Y,t,b,J].join(" ");if(R.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var G="";else X=R.lightColorPalette,Y=R.darkColorPalette,t=((G=_.Oz().resolve(_.uj(_.E5)))==null?0:G())&&Y?Y:X,G=(G=t==null?void 0:t.section2Color)?_.zF(G):"";return _.N("yt-video-attribute-view-model",B,_.N("div",{class:e,style:_.jQ({"background-color":G})},_.N(S3K,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(V=_.dl(R.onTap))!=
null?V:_.Ft(R.rendererContext),role:"group",ariaLabel:R.title,forceNewState:!0},R.heroText||R.image?_.N(PZp,{data:R}):null,_.N(nKY,{data:R,sizeSmall:R.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
OMu=function(B){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:B.overflowMenuA11yLabel,onTap:function(R){R.preventDefault();R.stopPropagation();if(B.overflowMenuOnTap){var V=_.T2({elementsCommand:B.overflowMenuOnTap,forceNewState:!0});if(V==null?0:V.onclick)V.onclick(R)}}}};
PZp=function(B){B=B.data;var R,V=((R=_.Oz().resolve(_.uj(_.E5)))==null?0:R())&&B.darkThemeImage?B.darkThemeImage:B.image;R=OMu(B);return _.N("div",{class:"yt-video-attribute-view-model__hero-section"},V?_.N(_.ia,{data:V,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):B.heroText?_.N("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.N("span",{class:"yt-video-attribute-view-model__hero-text"},B.heroText)):null,B.overflowMenuOnTap?
_.N("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.N(BI,{data:R,iconName:"MORE_VERT"})):null)};
nKY=function(B){var R=B.data;B=B.sizeSmall;var V=R.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",e=_.dl(R.onTap)||_.Ft(R.rendererContext);e=_.T2({innertubeCommand:e});e=xT(e);var X={};B={class:_.YB("yt-video-attribute-view-model__metadata",(X["yt-video-attribute-view-model--small-font"]=B,X)),role:e?"link":"group"};e=_.N("h1",{class:"yt-video-attribute-view-model__title"},R.title);V=R.subtitle?_.N("h4",{class:"yt-video-attribute-view-model__subtitle"},V?_.N($L5,{text:CZp(R.subtitle),truncationText:CZp(R.subtitleTruncationText),
maxLines:2}):_.N("span",null,R.subtitle)):null;if(R.secondarySubtitle){X=R.secondarySubtitle;if(X!=null&&X.attachmentRuns){for(var Y=[],t=_.h(X.attachmentRuns),b=t.next();!b.done;b=t.next())b=b.value,b.element&&Y.push(Object.assign({},b,{element:Object.assign({},b.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));X=Object.assign({},X,{attachmentRuns:Y})}X=_.N("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.N(_.Hr,{text:X}))}else X=null;return _.N("div",B,e,V,X,R.buttonViewModel?oMp(R.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
RKS=function(B){var R={};R=_.YB("video-summary-content-view-model-wiz",B.className,(R["video-summary-content-view-model-wiz--is-search"]=!!B.isSearch,R));var V=_.D(B.data.likeButtonViewModel,KO),e=_.D(B.data.dislikeButtonViewModel,IV),X=aP(function(){var Y=[],t,b=(t=B.data)==null?void 0:t.paragraphs;if(b==null||!b.length)return[];for(t=0;t<b.length;t++){var J=_.D(b[t],BRY),G=void 0;t>0&&(G=_.D(b[t-1],BRY));G&&!!G.marker===!!J.marker?Y[Y.length-1].paragraphs.push(J):Y.push({isList:!!J.marker,paragraphs:[J]})}return Y},
[B.data]);
return _.N("video-summary-content-view-model",{class:R},X.map(function(Y){return Y.isList?_.N("ul",{class:"video-summary-content-view-model-wiz__list"},Y.paragraphs.map(function(t){return _.N("li",{class:"video-summary-content-view-model-wiz__list-item"},_.N(_.Hr,{text:t.text}))})):Y.paragraphs.map(function(t){return _.N("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.N(_.Hr,{text:t.text}))})}),gz(!!V&&!!e,function(){return _.N("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.N("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.N(Zsx,{data:V,
disableIconAnimation:!0})),_.N(mJ_,{data:e}))}))};
_.R7=function(B,R,V,e,X){e=e===void 0?{}:e;if(!X||Math.random()<5E-4){R=R||null;V=V||null;B=B instanceof Error?B:new _.H8(B);if(B.args)for(var Y=_.h(B.args),t=Y.next();!t.done;t=Y.next())t=t.value,t instanceof Object&&(e=Object.assign({},t,e));e.category="H5 Ads Control Flow";R&&(e.slot=R?"slot:  "+R.slotType:"");V&&(e.layout=V?"layout:  "+V.layoutType:"",e.layoutId=V.layoutId);X&&(e.known_error_aggressively_sampled=!0);B.args=[e];_.KE(B)}};
_.VT5=function(B,R){_.oF(B,"yt-open-popup-action",[_.mP(R),B])};
_.VN=function(B,R){_.VT5(B,_.s$(R))};
XlS=function(B){if(!B)return"";if(eKN[B])return eKN[B];eB||(eB=_.jr("A"));eB.href!==B&&f$(eB,B);var R=eB.pathname;eKN[B]=R.startsWith("/")?R:"/"+R;return eKN[B]};
plY=function(){var B=XlS(window.location.href);if(B==="/")return"home";if(B.startsWith("/results"))return"search";if(B.startsWith("/watch"))return"watch";if(B.startsWith("/shorts"))return"shorts";if(B.startsWith("/hashtag"))return"hashtag";if(B.startsWith("/create_channel"))return"create_channel";if(B.startsWith("/@")||B.startsWith("/user/")||B.startsWith("/channel/"))return"channel";if(B.startsWith("/experiments"))return"experiments";if(B.startsWith("/sponsor_channel"))return"sponsorship";if(B.startsWith("/select_site"))return"settings";
if(B.startsWith("/locate"))return"locate";if(B.startsWith("/redeem"))return"redeem";if(B.startsWith("/musicpremium")||B.startsWith("/premium")||B.startsWith("/red"))return"premium";if(B.startsWith("/paid_memberships"))return"paid_memberships";if(B.startsWith("/oops"))return"oops";if(B.startsWith("/clip"))return"clip";var R;return(XH==null?void 0:(R=XH.response)==null?void 0:R.page)==="404"?"404":B.startsWith("/feed/history")?"history":B.startsWith("/feed/library")?"library":B.startsWith("/feed/subscriptions")?
"subscriptions":B.startsWith("/feed/trending")?"trending":B.startsWith("/feed/news_destination")?"news":B.startsWith("/playlist")?"playlist":B.startsWith("/minor_moment")?"minor_moment":B.startsWith("/playable/")||B.match("^/playables/(?!saved).")?"mini_app":B.startsWith("/playables")?"playables":B.startsWith("/create/live/join")?"open_in_app":B.startsWith("/feed/explore")?"explore":"browse"};
_.Wid=function(){var B=XH==null?void 0:XH.response,R=B==null?void 0:B.endpoint;if(!R)return(B==null?void 0:B.page)==="watch"?"watch":plY();var V;B=(V=_.D(R==null?void 0:R.commandMetadata,_.$a))==null?void 0:V.webPageType;V=!1;if(B&&!YCS.includes(B))switch(B){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 e;return((e=_.D(R==null?void 0:R.commandMetadata,_.$a))==null?0:e.url)&&XlS(_.D(R.commandMetadata,_.$a).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var X;return(R=(X=_.D(R,_.Jz))==null?void 0:X.browseId)?hKx[R]||"browse":"browse";default:V=!0}if(_.D(R,_.pw)||_.D(R,tTS))return"sponsorship";X=XlS(window.location.href);if(X.startsWith("/experiments"))return"experiments";if(X.startsWith("/create_channel"))return"create_channel";
if(_.D(R,_.ie)&&X.startsWith("/shorts"))return"shorts";if(_.D(R,_.ie)&&X.startsWith("/watch"))return"watch";V&&(R=new _.H8("Unsupported mWeb page type",{pathname:X,webPageType:B}),_.Tn(R));return"browse"};
yBu=function(B){var R=B.data;var V=B.inlineMetadata;var e=B.aspectRatio;var X=B.scrimStyle;var Y=B.useDefaultStyle;var t=B.className;var b=wg(new bvu);B=_.k("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";B=Y?B==="SHORTS_LOCKUP_STYLE_SLIM":R.style==="SHORTS_LOCKUP_STYLE_SLIM";V=V||B||!1;X=X!==void 0?X:1;var J=_.Zh(function(L){b.value&&(b.value.hostElement=L,T())});
_.Od(J,{visibilityCallback:function(L){L&&R.onFirstVisible&&_.Lc(R.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});t=_.YB("shortsLockupViewModelHost",t);var G=_.T2({elementsCommand:R.onTap}),y=_.Zh();_.ygS(y,_.dl(R.onTap));var S=_.Wr(function(L){if(G==null?0:G.onclick)G.onclick(L);return!1}),M=_.Zh(),f=[];
f.push("shortsLockupViewModelHostThumbnailContainer");e===1?f.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):e===2&&f.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");B||f.push("shortsLockupViewModelHostThumbnailContainerRounded");_.k("web_shorts_2_by_3_lockups_study")||_.k("desktop_search_enable_two_by_three_shorts_aspect_ratio")||f.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var z,T=function(){if(b.value){var L;(L=z)==null||
Y1(L);L=b.value;var Q;L.hostElement&&((Q=L.data)==null?0:Q.inlinePlayerData)&&(z=CO({mediaRenderer:L,lockupElement:L.hostElement,thumbnailElement:M.value,videoPreviewOpts:JBZ}))}};
lj(function(){b.value&&(b.value.data=R,T())},[R]);
return _.N("ytm-shorts-lockup-view-model",{el:J,class:t},_.N("a",{el:y,"on:click":S,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!V,tabindex:V?0:-1},_.N("div",{el:M,class:f.join(" ")},gz(R.thumbnail,function(){return _.N(_.OZ,null,_.N(_.ia,{data:R.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),V?_.N(jdo,{data:R,
scrimStyle:X,useDefaultStyle:Y}):null,UB_(R.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),V&&R.menuOnTap?_.N(NRK,{data:R,inlineMetadata:V}):null,V?null:_.N(GI5,{useDefaultStyle:Y,data:R}))};
jdo=function(B){var R=B.data;var V=B.scrimStyle;var e=B.useDefaultStyle;var X=_.k("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";B=e&&_.k("web_hide_primary_text_for_pivot_panel");var Y={};e=_.YB("shortsLockupViewModelHostInlineMetadata",(Y.shortsLockupViewModelHostMetadataRounded=!(e?X==="SHORTS_LOCKUP_STYLE_SLIM":R.style==="SHORTS_LOCKUP_STYLE_SLIM"),Y.shortsLockupViewModelHostInlineMetadataShortScrim=V===3&&!_.k("enable_shorts_lockup_new_scrim"),
Y.shortsLockupViewModelHostInlineMetadataShortScrimNew=V===3&&_.k("enable_shorts_lockup_new_scrim"),Y.shortsLockupViewModelHostInlineMetadataMediumScrim=V===2||V===4,Y.shortsLockupViewModelHostShowOverPlayer=!0,Y));var t,b;X={};return _.N("div",{class:e+" image-overlay-text"},_.N("h3",{class:_.XE("shortsLockupViewModelHostMetadataTitle",(X.shortsLockupViewModelHostMetadataTitleTextShadow=V===4,X)),"aria-label":R.accessibilityText},gz(((t=R.overlayMetadata)==null?void 0:t.primaryText)&&!B,function(){return _.N(_.Hr,
{text:R.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((b=R.overlayMetadata)==null?0:b.secondaryText)?_.N(SCq,{data:R,
scrimStyle:V}):null)};
GI5=function(B){var R=B.data;var V=_.k("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";B=(B.useDefaultStyle?V==="SHORTS_LOCKUP_STYLE_SLIM":R.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var e=_.T2({elementsCommand:R.onTap});V=_.Zh();_.ygS(V,_.dl(R.onTap));var X=_.Wr(function(S){if(e==null?0:e.onclick)e.onclick(S);return!1}),Y,t,
b,J,G,y={};
return _.N("div",{class:B+" image-overlay-text","on:click":X},_.N("h3",{class:_.XE("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(y.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((Y=R.overlayMetadata)==null?0:(t=Y.primaryText)==null?0:t.content),y)),"aria-label":R.accessibilityText},_.N("a",{el:V,"on:click":X,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(b=R.overlayMetadata)==null?void 0:(J=b.primaryText)==
null?void 0:J.content},gz(R.overlayMetadata,function(){return _.N(_.Hr,{text:R.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((G=R.overlayMetadata)==null?0:G.secondaryText)?_.N(SCq,{data:R,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,R.menuOnTap?_.N(NRK,{data:R,inlineMetadata:!1}):null)};
SCq=function(B){var R=B.data;var V=B.scrimStyle;B=B.className;var e,X={};return _.N("div",{class:_.XE((X.shortsLockupViewModelHostMetadataSubhead=V!==4,X.shortsLockupViewModelHostMetadataSubheadNew=_.k("enable_shorts_lockup_new_scrim"),X.shortsLockupViewModelHostMetadataSubheadTextShadow=V===4,X),B),"aria-hidden":"true"},_.N(_.Hr,{text:(e=R.overlayMetadata)==null?void 0:e.secondaryText,noStyleRuns:!0}))};
NRK=function(B){var R={};R=_.YB((R.shortsLockupViewModelHostInlineMetadataMenu=B.inlineMetadata,R.shortsLockupViewModelHostOutsideMetadataMenu=!B.inlineMetadata,R.shortsLockupViewModelHostShowOverPlayer=!0,R));return _.N("div",{class:R},_.N(BI,{data:{style:B.inlineMetadata?"overlay":"mono",accessibilityLabel:B.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(V){V.preventDefault();V.stopPropagation();var e=_.T2({elementsCommand:B.data.menuOnTap,forceNewState:!0});
if(e==null?0:e.onclick)e.onclick(V)}},
iconName:"MORE_VERT"}))};
hk=function(B,R,V,e){return B&&R?B!==V||R!==e?(_.R7(Error("Gh"),void 0,void 0,{"stored-slot":B,"stored-layout":R,"latest-slot":V,"latest-layout":e}),!1):!0:!1};
HvK=function(B,R,V){return B({targetId:R},function(e){return V.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},e,{header:V.continuationItems?V.continuationItems[0]:void 0}):Object.assign({},e,{contents:V.continuationItems?V.continuationItems:[]})})};
MTo=function(B,R,V,e){if(R=R.trackingParams){var X,Y=(X=V.getScreenLayer)==null?void 0:X.call(V);V=_.TE(Y);X=_.wT(Y);if(V&&X){var t=_.U5(R);_.k("combine_ve_grafts")?B.graftServerVe(R,X,Y):_.EV(V,X,t);e==null||e(t)}}};
DBY=function(B){var R;return((R=kIZ.get(B))==null?void 0:R.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
zK_=function(B,R){var V={type:R.slotType,controlFlowManagerLayer:fJq.get(R.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R.slotEntryTrigger&&(V.entryTriggerType=R.slotEntryTrigger.triggerType);R.slotPhysicalPosition!==1&&(V.slotPhysicalPosition=R.slotPhysicalPosition);if(B){V.debugData={slotId:R.slotId};if(B=R.slotEntryTrigger)V.debugData.slotEntryTriggerData=lJd(B);B=R.slotFulfillmentTriggers;V.debugData.fulfillmentTriggerData=[];B=_.h(B);for(var e=B.next();!e.done;e=B.next())V.debugData.fulfillmentTriggerData.push(lJd(e.value));
R=R.slotExpirationTriggers;V.debugData.expirationTriggerData=[];R=_.h(R);for(B=R.next();!B.done;B=R.next())V.debugData.expirationTriggerData.push(lJd(B.value))}return V};
lJd=function(B,R){var V={type:B.triggerType};R!=null&&(V.category=R);B.triggeringSlotId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedSlotId=B.triggeringSlotId);B.triggeringLayoutId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedLayoutId=B.triggeringLayoutId);return V};
aJS=function(B,R,V,e){R={opportunityType:R};B&&(e||V)&&(e=_.DO(e||[],function(X){return zK_(B,X)}),R.debugData=Object.assign({},V&&V.length>0?{associatedSlotId:V}:{},e.length>0?{slots:e}:{}));
return R};
dBp=function(B){return tk(B.opportunityAdapterMap).concat(tk(B.triggerAdapterMap)).concat(tk(B.fulfillmentAdapterFactoryMap)).concat(tk(B.slotAdapterFactoryMap)).concat(tk(B.layoutRenderingAdapterFactoryMap))};
tk=function(B){var R=[];B=_.h(B.values());for(var V=B.next();!V.done;V=B.next())V=V.value,V.isAdsControlFlowEventListener&&R.push(V);return R};
bH=function(B){var R=B.slotId,V=B.slotType,e=B.slotPhysicalPosition;return R===void 0?new WI("Cannot construct a slot due to the missing id.",{adSlotMetadata:B}):V===void 0?new WI("Cannot construct a slot due to the missing type.",{adSlotMetadata:B}):e===void 0?new WI("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:B}):{slotId:R,slotType:V,slotPhysicalPosition:e,managerLayer:"external",adSlotLoggingData:B.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new wlN}};
TRZ=function(B){var R=B.layoutId,V=B.layoutType;return R===void 0?new Jk("Cannot construct a layout due to the missing id.",{adLayoutMetadata:B}):V===void 0?new Jk("Cannot construct a layout due to the missing type.",{adLayoutMetadata:B}):{layoutId:R,layoutType:V,managerLayer:"external",adLayoutLoggingData:B.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new wlN,interactionLoggingAdsClientData:{}}};
xBp=function(B){if((B=B.value)&&B.querySelector("img")){var R=B.querySelector("img");R.addEventListener("error",function(){ayd(R.src).then(function(V){(V=_.S4(V).toString())?R.src=V:R.removeAttribute("src")}).catch(function(){R.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Uy=function(B,R){if(R&&(Liq(R.viewableCommand)||Liq(R.endOfSessionCommand))){B=B.value;var V=vMI(R==null?void 0:R.viewableCommand);R=vMI(R==null?void 0:R.endOfSessionCommand);if(!jB){var e=_.RC("active_view_tos_timeout_ms");jB=e>0?new Kiu(IJq(),e):new Kiu(IJq())}EMN(jB,B);QdI(jB,B,V,R)}};
Ns=function(B){jB&&EMN(jB,B.value)};
IJq=function(){var B=_.vE("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(B==null?void 0:B.length)===2?B[1]:null};
Liq=function(B){B=_.dl(B);return!(B==null||!B.loggingUrls)&&B.loggingUrls.length>0};
vMI=function(B){if(!B)return[];var R=[],V,e;((e=(V=_.dl(B))==null?void 0:V.loggingUrls)!=null?e:[]).forEach(function(X){X.baseUrl&&R.push(X.baseUrl)});
return R};
qCx=function(B){return B.shorts.isDesktopSmallWidth};
_.cBY=function(B){return B.shorts.isWatchWhileMode};
_.GP=function(B){return B.shorts.isFullscreen};
_.yN=function(B){return B.shorts.isShortsPipActive};
ivK=function(B){var R,V;if(B=(R=_.D(B.reelsAdCardButtoned,AB_))==null?void 0:(V=R.animatedRenderingConfig)==null?void 0:V.easeOutSeconds)return B+"s"};
Fiu=function(B,R,V){return _.W(function(e){return e.return(new Promise(function(X){var Y=new Image;Y.onload=function(){X(new sdA(B,R,V,Y.naturalWidth,Y.naturalHeight))};
Y.src=V.toString()}))})};
rBx=function(B,R){return Math.round(B/1E-5)===Math.round(R/1E-5)};
gMo=function(B,R){return Math.round(B/1E-5)===Math.round(R/1E-5)};
Zvp=function(B,R){return B.year===R.year&&B.month===R.month&&B.day===R.day};
mB_=function(B,R){return B.year!==R.year?B.year<R.year:B.month!==R.month?B.month<R.month:B.day<R.day};
CXp=function(B){return B.day===$BA(B.year,B.month)?B.month===11?{year:B.year+1,month:0,day:1}:{year:B.year,month:B.month+1,day:1}:{year:B.year,month:B.month,day:B.day+1}};
PXS=function(){var B=new Date,R={year:B.getFullYear(),month:B.getMonth(),day:B.getDate()};return{start:R,end:{year:B.getFullYear()+2,month:B.getMonth(),day:B.getDate()},selectedDate:CXp(R)}};
nMS=function(B){return(new As(2)).format(new Date(B.year,B.month,B.day))};
uvN=function(B){return{year:B.getFullYear(),month:B.getMonth(),day:B.getDate()}};
Ovu=function(B,R){B=(B+(Number(R.utcOffsetSec)+(new Date(B*1E3)).getTimezoneOffset()*60))*1E3;R=uvN(new Date(B));return{date:R,secondsSinceMidnight:Math.floor((B-(new Date(R.year,R.month,R.day)).getTime())/1E3)}};
oCd=function(B,R){R=R.months.findIndex(function(V){return V.year===B.year&&V.month===B.month});
return R>=0?R:void 0};
B9_=function(B){if(!B)return!1;try{if(B.host&&B.host.tagName==="YT-FORMATTED-STRING"&&B.host.id==="contenteditable-textarea"||B.nodeType===Node.ELEMENT_NODE&&B.tagName==="YTD-COMMENTBOX")return!0}catch(R){return!1}return B9_(B.parentNode)};
SB=function(B){return B?!(B.tagName!=="A"||!B.href||!B.classList.contains("yt-simple-endpoint")):!1};
R3_=function(B){return B?B.tagName==="IMG"&&B.classList.contains("emoji"):!1};
Vlq=function(B,R,V){if(!B)return null;var e=SB(B);if(e&&V)return R=B.pathname.substring(B.pathname.indexOf("/channel/")+9),document.createTextNode("@"+R);if(e&&!V)return document.createTextNode("");if(R3_(B))return V=B.alt,B=B.dataset.emojiId,!B&&R&&(R=_.HI(R,V))&&R.isCustomEmoji&&(B=R.emojiId),B?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+B+">"):document.createTextNode(V);e=B.cloneNode(!1);for(var X=0;X<B.childNodes.length;++X){var Y=Vlq(B.childNodes[X],R,V);Y&&e.appendChild(Y)}return e};
Ms=function(B){return B?SB(B)?B:Ms(B.lastChild):null};
e3x=function(B){return B?SB(B)?B:e3x(B.firstChild):null};
XmZ=function(B){if(!B)return null;for(var R=B.previousSibling;R;)if(R.nodeType===Node.ELEMENT_NODE&&R.nodeName==="BR")R=R.previousSibling;else if(R.nodeType===Node.TEXT_NODE&&/\s+/.test(R.textContent))R=R.previousSibling;else break;(R=Ms(R))?B=R:B=(B=B.parentNode)?Ms(B.previousElementSibling):null;return B};
pmp=function(B){if(!B)return null;for(var R=B.nextSibling;R;)if(R.nodeType===Node.ELEMENT_NODE&&R.nodeName==="BR")R=R.nextSibling;else if(R.nodeType===Node.TEXT_NODE&&/\s+/.test(R.textContent))R=R.nextSibling;else break;return(R=e3x(R))?R:pmp(B.parentNode)};
YGd=function(B){var R=_.k1(),V=R.JSC$9159_getStartNode();if(!B9_(V.parentNode))return null;R=R.JSC$9159_getStartOffset();if(V.nodeType===Node.TEXT_NODE){var e=_.xl(V,SB);if(e){if(B&&R===0||!B&&R===V.length)return e}else{if(B&&R===V.length)return!V||V.nodeName==="BR"||V.nextElementSibling&&_.Dd(V.nextElementSibling,"display")==="block"?null:e3x(V.nextElementSibling);if(!B&&R===0)return V?Ms(V.previousElementSibling):null}}if(V.nodeType===Node.ELEMENT_NODE)if(B){if(0<=R&&R<V.childNodes.length)return e3x(V.childNodes[R])}else if(0<
R&&R<=V.childNodes.length)return Ms(V.childNodes[R-1]);return null};
h3u=function(B,R,V){if(!B)return null;if(B.nodeType===Node.TEXT_NODE)if(V){var e=XmZ(B);if(e&&!/^\s+\S/.test(B.wholeText.substr(0,R)))return e}else if((e=pmp(B))&&!/\S\s+/.test(B.wholeText.substr(R,B.wholeText.length)))return e;return B.nodeType===Node.ELEMENT_NODE?V?XmZ(B.childNodes[R]):pmp(B.childNodes[R]):h3u(B.parentNode,R,V)};
tlK=function(B){if(B.hasChildNodes())switch(B.tagName){case "DIV":case "A":case "SPAN":var R="";for(B=B.firstChild;B;B=B.nextSibling)R+=tlK(B);return R;default:return""}else switch(B.nodeType){case 3:return B.textContent;default:return""}};
fw=function(B,R){return B.year===R.year&&B.month===R.month&&B.day===R.day};
lH=function(B,R){return B.year!==R.year?B.year<R.year:B.month!==R.month?B.month<R.month:B.day<R.day};
WS5=function(B){return{year:B.getFullYear(),month:B.getMonth(),day:B.getDate()}};
b1_=function(B){var R=B3o;R=R===void 0?B3o:R;R(new Date(B.year,B.month,B.day))};
zP=function(B){return WS5(new Date(Number(B.seconds)*1E3))};
JVS=function(B){return B.year!==void 0&&B.month!==void 0&&B.day!==void 0};
jX5=function(B){return B.start!==void 0&&B.end!==void 0};
UtN=function(B){return jX5(B)?B.start:B};
N95=function(B){return jX5(B)?B.end:void 0};
yVZ=function(B,R){for(var V=[],e=new Date(B.start.year,B.start.month);e.getFullYear()<B.end.year||e.getFullYear()===B.end.year&&e.getMonth()<=B.end.month;){var X=V,Y=X.push,t=e.getFullYear(),b=e.getMonth(),J=B,G=R,y=void 0,S=[],M=Object.freeze({extraCssClass:"invisible"}),f=new Date(t,b),z=WS5(f);f=f.getDay();for(var T=WS5(new Date);z.month===b;){f!==GZo&&y||(y=Array.from({length:7}).fill(M),S.push(y));var L={date:{year:t,month:b,day:z.day},extraCssClass:"",debugClass:""};L.extraCssClass=G(L.date,
z,T,J).trim();y[(f-GZo+7)%7]=L;z=z.day===$BA(z.year,z.month)?z.month===11?{year:z.year+1,month:0,day:1}:{year:z.year,month:z.month+1,day:1}:{year:z.year,month:z.month,day:z.day+1};f=(f+1)%7}Y.call(X,{weeks:S,monthLabel:a7.SHORTMONTHS[b]+" "+t,year:t,month:b,monthLabelExtraCssClass:S[0][2]===M?"shift-down-label":""});e.setMonth(e.getMonth()+1)}return V};
SGK=function(B,R){R=R.months.findIndex(function(V){return V.year===B.year&&V.month===B.month});
return R>=0?R:void 0};
Mlp=function(B,R){a:{var V=V===void 0?[2,3]:V;V=_.h(V);for(var e=V.next();!e.done;e=V.next()){var X=new Date;if((new H15(e.value)).parse(R,X,{validate:!0})){X.setHours(0,0,0,0);R=X;break a}}R=null}if(!R)return{isValid:!1,value:void 0};R=WS5(R);V=B.end;return lH(R,B.start)||lH(V,R)?{isValid:!1,value:void 0}:{isValid:!0,value:R}};
z3Z=function(B){var R=kZu;R=R===void 0?Dt5:R;var V=B.columnsToShow||[],e=fnu(B.columnDimensions,B.columnsToShow,B.leftFloatingColumns,R);return V.map(function(X,Y){var t=B.columns[X];if(t===void 0)throw Error("Mh");var b=e?e[Y]:"";var J=B.getCustomTooltip?B.getCustomTooltip(X,t.headerTooltipParagraphs):t.headerTooltipParagraphs;var G=lnZ(B,X);return{type:X,index:Y,style:b,classes:G,headerName:t.headerName||"",headerIcon:t.headerIcon,headerTooltipParagraphs:J||[],headerTooltipHelpContext:t.headerTooltipHelpContext,
sortOrders:t.sortOrders||[],selectionState:t.isSelectionCheckbox?B.selectionState:void 0}})};
lnZ=function(B,R){var V=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],e=B.columns[R];if(e===void 0)return"";var X=V.includes("DEFAULTS")&&e.cssClass?[e.cssClass]:[];if(V.includes("SORTING")){e.sortOrders&&e.sortOrders.length&&X.push("sortable");if(B.sorting&&B.sorting.columnType===R)a:switch(B.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var Y="column-sorted";break a;default:Y=""}else Y="";Y&&X.push(Y)}V.includes("FLOATING")&&(R=B.columnsToShow.indexOf(R),B.leftFloatingColumns&&R<B.leftFloatingColumns&&
X.push("floating-column"),B.leftFloatingColumns&&R===B.leftFloatingColumns-1&&X.push("last-floating-column"));V.includes("RIGHT_ALIGN")&&e.rightAlignHeader&&X.push("right-align");return X.filter(function(t){return t}).join(" ")};
fnu=function(B,R,V,e){V=V===void 0?0:V;e=e===void 0?Dt5:e;if(B){var X=[],Y=0;anY(B,R,e).forEach(function(t,b){var J="min-width:"+t.minWidth+"px;padding-left:"+t.paddingLeft+"px;padding-right:"+t.paddingRight+"px;flex:"+t.flexGrow+" 0 "+t.minWidth+"px;";t.maxWidth!==Infinity&&(J=[J,"max-width:"+t.maxWidth+"px;"].join(""));Y>0&&b<V&&(J=[J,"left:"+Y+"px;"].join(""));X.push(J);Y+=t.minWidth+t.paddingLeft+t.paddingRight});
return X}};
anY=function(B,R,V){V=V===void 0?Dt5:V;return R.map(function(e,X){e=B&&B[e]||{};var Y=X===0?V.paddingLeftFirstColumn:V.padding;e.paddingLeft!==void 0&&(Y=e.paddingLeft);X=X===R.length-1?V.paddingRightLastColumn:V.padding;e.paddingRight!==void 0&&(X=e.paddingRight);return{paddingLeft:Y,paddingRight:X,minWidth:e.minWidth!==void 0?e.minWidth:V.minWidth,maxWidth:e.maxWidth!==void 0?e.maxWidth:V.maxWidth,flexGrow:e.flexGrow!==void 0?e.flexGrow:V.flexGrow}})};
dtK=function(B){var R=B.reduce(function(e,X){var Y=X.columnId,t={};X.headerText&&(t.headerName=_.FF(X.headerText));X.rightAlignHeader&&(t.rightAlignHeader=X.rightAlignHeader);var b;if((b=X.headerIcon)==null?0:b.iconType)t.headerIcon=_.RT(X.headerIcon.iconType);e[Y]=t;return e},{}),V=B.filter(function(e){return!e.hideColumn}).map(function(e){return e.columnId});
B=B.filter(function(e){return!!e.dimensions}).reduce(function(e,X){e[X.columnId]=X.dimensions;
return e},{});
return{columns:R,columnsToShow:V,columnDimensions:B}};
_.wmx=function(B){return B?B.simpleText?B.simpleText:B.runs?B.runs.map(function(R){return R.text}).join(""):"":""};
KSK=function(B){var R=B.data;var V=B.onTap;var e=B.isSelected;var X=B.onFocusIn;if(!R)return{};B=T9S(R);e===void 0&&(e=R==null?void 0:R.isSelected);var Y;return{text:xtN(R,B),startIcon:(Y=R.icon)==null?void 0:Y.iconType,state:e?0:2,type:0,onTap:LSK(R,V),accessibilityLabel:vCI(R,B),onFocusIn:function(){return X==null?void 0:X()}}};
xtN=function(B,R){if(!R)return B.text?_.wmx(B.text):void 0};
LSK=function(B,R){return function(V){R==null||R(V,B)}};
T9S=function(B){B=B.style&&B.style.styleType;return!In5&&B==="STYLE_EXPLORE_LAUNCHER_CHIP"};
vCI=function(B,R){if(R){var V,e,X;return(X=(V=B.accessibilityData)==null?void 0:(e=V.accessibilityData)==null?void 0:e.label)!=null?X:xtN(B,!1)}};
dL=function(B){return{signalAction:{signal:B}}};
qGq=function(){return _.vE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ECo:_.QXI};
cVx=function(B,R){B=B===void 0?"SOFT_RELOAD_PAGE":B;R=R===void 0?49504:R;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.n0(_.Wz("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:R}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:B}}]}}}};
AV_=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.n0(_.Wz("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:qGq()}};
i1A=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.n0(_.Wz("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:qGq()}};
sXS=function(B,R){var V=_.n0(_.Wz("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),e=_.n0(_.Wz("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),X={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.n0(_.Wz("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};X.serviceEndpoint=B?B:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[dL("SOFT_RELOAD_PAGE")]}};return{title:V,bodyText:e,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:X},
style:{value:R!=null?R:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
rVS=function(B){B=B===void 0?{}:B;return{title:_.n0(B.localizedZeroStateTitleText===void 0?"":B.localizedZeroStateTitleText),bodyText:_.n0(B.localizedZeroStateMessage===void 0?"":B.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.n0(B.localizedZeroStateButtonText===void 0?"":B.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[FSd]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.mto=function(B,R,V,e,X,Y,t,b){e=e===void 0?!1:e;X=X===void 0?!1:X;Y=Y===void 0?0:Y;t=t===void 0?-Infinity:t;b=b===void 0?!1:b;var J=[],G=_.n0(_.Wz("SMART_DOWNLOADS",void 0,"Smart downloads"));t=_.n0(gCA(Y,t,B.length));Y=void 0;e?Y=B.length>0?Z1u(B,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.k("kevlar_manual_downloads_above"),G,t):b?{alertBannerViewModel:{heading:{content:V.localizedOptInBannerTitleText===void 0?"":V.localizedOptInBannerTitleText},body:{content:V.localizedPromptMessage===
void 0?"":V.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Wz("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Wz("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:_.yG5}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.n0(_.Wz("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"}}}:X&&(Y={alertBannerViewModel:{heading:{content:V.localizedOptInBannerTitleText===void 0?"":V.localizedOptInBannerTitleText},body:{content:V.localizedOptInMessage===
void 0?"":V.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Wz("TURN_ON",void 0,"Turn on"),accessibilityText:_.Wz("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}}}}}});V=_.n0(_.Wz("YOUR_DOWNLOADS",void 0,"Your downloads"));X=void 0;R.length>0?(X=void 0,_.k("kevlar_display_downloads_numbers")&&(X=_.n0(_.bF("VIDEO_COUNT",R.length))),X=Z1u(R,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,V,X)):e||B.length||(X={backgroundPromoRenderer:{bodyText:_.n0(_.Wz("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&&!_.k("kevlar_manual_downloads_above")&&J.push({richSectionRenderer:{content:Y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});X&&J.push({richSectionRenderer:{content:X,loggingDirectives:{clientVeSpec:{uiType:51721}}}});Y&&_.k("kevlar_manual_downloads_above")&&J.push({richSectionRenderer:{content:Y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(R.length>0||e&&B.length>0)&&J.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.n0(_.Wz("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:J}};
_.CSu=function(B){return $tN(B,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.PSd=function(B){return $tN(B,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
$tN=function(B,R){var V=[];B=Z1u(B,R,!0);V.push({richSectionRenderer:{content:B}});return{contents:V}};
Z1u=function(B,R,V,e,X){V=V===void 0?!1:V;B={isExpanded:V,contents:wL(B),entitySelectorType:R};e&&(B.title=e);X&&(B.subtitle=X);V||(_.k("kevlar_smart_downloads_show_more_button")?(B.showMoreButton={buttonRenderer:{accessibility:{label:_.Wz("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.n0(_.Wz("SHOW_MORE",void 0,"Show more"))}},B.showLessButton={buttonRenderer:{accessibility:{label:_.Wz("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.n0(_.Wz("SHOW_LESS",void 0,"Show less"))}}):(B.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Wz("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}}}},B.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.Wz("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}}}},B.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Wz("VIEW_ALL",void 0,"View all"),accessibilityText:_.Wz("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:C0("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:B}};
wL=function(B){var R=[];B=_.h(B);for(var V=B.next();!V.done;V=B.next())if(V=V.value,OCN(V)){var e=R,X=e.push;var Y=void 0;if(V==null?0:(Y=V.videoEntity)==null?0:Y.videoId){Y=vk(_.g6().getState(),V.videoEntity.videoId);var t=_.g6().getState();var b=_.XF(V.videoEntity.videoId,"mainVideoEntity");t=!!_.MR(t.entities)[b];t={videoId:V.videoEntity.videoId,title:uF(V.videoEntity.title),shortBylineText:uF(V.channelEntity.title),thumbnail:V.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:t&&_.k("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Ogd(V.videoEntity.videoId,Y,V.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Wz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};V.videoEntity.lengthSeconds&&(t.thumbnailOverlays=M8S(V.videoEntity.lengthSeconds,Y));t.isWatched=Y>0;_.k("kevlar_modern_downloads_page")&&(t.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:V.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Wz("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},t.badges=void 0);V=t}else V={};X.call(e,{richItemRenderer:{content:{videoRenderer:V},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(u3o(V)){e=R;X=e.push;var J=b=Y=void 0,G=void 0,y=void 0,S=void 0,M=void 0,f=void 0,z=void 0,T=void 0,L=void 0,Q=void 0;t=V.mainPlaylistEntity.playlistId;var q=V==null?void 0:(Q=V.mainPlaylistEntity)==null?void 0:(L=Q.thumbnailStyleData)==null?void 0:(T=L[0])==null?void 0:(z=T.value)==null?void 0:(f=z.collageThumbnail)==
null?void 0:f.coverThumbnail;if(t&&q){f=o6S(t);!_.k("enable_offline_playlist_page")&&(V==null?0:(M=V.mainPlaylistEntity)==null?0:M.videos)&&(M=V==null?void 0:(S=V.mainPlaylistEntity)==null?void 0:(y=S.videos)==null?void 0:y[0],y=_.Rr(M).entityId,y=JSON.parse(y).videoId,y!==void 0&&(S=vk(_.g6().getState(),y),f=_.Pz(y,t,void 0,void 0,S)));y=[];if(V==null?0:(G=V.mainPlaylistEntity)==null?0:(J=G.videos)==null?0:J.length)y=[oJq(),Object.assign({},(b=OtY(V==null?void 0:V.mainPlaylistEntity.videos.length))!=
null?b:{})];V={playlistId:t,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:q}},navigationEndpoint:f,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:y,title:uF(V.mainPlaylistEntity.title),shortBylineText:uF(V==null?void 0:(Y=V.channelEntity)==null?void 0:Y.title),badges:[{metadataBadgeRenderer:{label:_.Wz("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.k("kevlar_modern_downloads_page")&&(V.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:nCS,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:t,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Wz("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},V.badges=void 0)}else V=void 0;X.call(e,{richItemRenderer:{content:{playlistRenderer:V},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return R};
gCA=function(B,R,V){B=B?uVx(B):"";R!==void 0&&isFinite(R)?R===0?R=_.Wz("UPDATING",void 0,"Updating..."):(R=Hyq(new Date(R),new Date),R=_.Wz("UPDATED_TIME",{relative_time:R},"Updated "+R)):R="";var e="";B&&R&&(e=" \u2022 ");if(V&&_.k("kevlar_display_downloads_numbers")){V=_.bF("VIDEO_COUNT",V);if(B||R)e=" \u2022 ";return V+e+B+e+R}return B+e+R};
O1A=function(B){return rTu(B.entities).length};
_.ooo=function(B,R){var V=V7I(B.responsiveSize),e;B=!((e=B.responsiveMap)==null||!e.some(function(X){return X.containerSize==="CONTAINER_SIZE_NARROW"&&X.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:R,sizing:V,enableFullBleedForSingleCol:!1,isCompactList:V==="COMPACT"&&B}};
BJZ=function(B,R){return _.p7(B.entities,"votingEntity",R)};
Rvd=function(B){if(B){var R;return((R=_.Oz().resolve(_.uj(_.E5)))==null?0:R())?B.darkTheme:B.lightTheme}};
V0q=function(B,R,V){return _.N(_.OZ,null,wEN(V,[[0,function(){return _.N("h2",{class:R},B)}],
[1,function(){return _.N("h3",{class:R},B)}],
[2,function(){return _.N("h4",{class:R},B)}]],function(){return _.N("h2",{class:R},B)}))};
evZ=function(B){var R=["shelf-header-layout-wiz"];B.disableHorizontalPadding&&R.push("shelf-header-layout-wiz--disable-horizontal-padding");B.disableVerticalPadding&&R.push("shelf-header-layout-wiz--disable-vertical-padding");B.useResponsiveLayout&&(R.push("shelf-header-layout-wiz--responsive"),B.forceSmallLayout&&R.push("shelf-header-layout-wiz--narrow"));B.isOverlay&&R.push("shelf-header-layout-wiz--is-overlay");B.onClick&&R.push("shelf-header-layout-wiz--tappable");var V=["shelf-header-layout-wiz__title"];
B.forceSmallLayout&&V.push("shelf-header-layout-wiz__title--small-title");var e=["shelf-header-layout-wiz__leading-image"];B.circularImage&&e.push("shelf-header-layout-wiz__leading-image--circular-image");var X=_.Wr(function(G){var y;(y=B.onClick)==null||y.call(B,G)}),Y,t,b,J;
return _.N("yt-shelf-header-layout",{class:R.join(" "),"on:click":X,tabindex:B.onClick?0:void 0},B.leadingIcon?_.N("div",{class:"shelf-header-layout-wiz__leading-icon"},_.N(_.Us,{icon:B.leadingIcon})):B.hasLeadingImage?_.N("div",{class:e.join(" ")},(Y=B.leadingImage)==null?void 0:Y.call(B)):_.N(_.OZ,null),_.N("div",{class:"shelf-header-layout-wiz__label-container"},B.hasSuperlabel?_.N("div",{class:"shelf-header-layout-wiz__superlabel"},(t=B.superlabel)==null?void 0:t.call(B)):_.N(_.OZ,null),_.N("div",
{class:"shelf-header-layout-wiz__title-row"},V0q(B.title(),V.join(" "),B.tagLevel),gz(B.hasDetail,function(){var G;return _.N("div",{class:"shelf-header-layout-wiz__detail"},(G=B.detail)==null?void 0:G.call(B))})),B.hasSublabel?_.N("div",{class:"shelf-header-layout-wiz__sublabel"},(b=B.sublabel)==null?void 0:b.call(B)):_.N(_.OZ,null)),B.hasTrailingActions?_.N("div",{class:"shelf-header-layout-wiz__trailing-actions"},(J=B.trailingActions)==null?void 0:J.call(B)):_.N(_.OZ,null))};
XFZ=function(B){var R=_.D(B==null?void 0:B.avatar,_.$x),V,e=(V=B==null?void 0:B.image)!=null?V:_.OQ(B==null?void 0:B.themedImage);return _.N(_.OZ,null,gz(e,function(){return _.N(_.ia,{data:e,alt:"",preserveWidth:!0,preserveHeight:!0})}),gz(R,function(){return _.N(_.TP,{data:R})}))};
hvx=function(B){var R=_.D(B.bottomBadge,pFA),V=R&&B.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.N(_.OZ,null,gz(R,function(){return R&&_.N(YPN,{data:R,class:V})}),gz(B.sublabel,function(){return _.N(_.Hr,{text:B.sublabel})}))};
t0I=function(B){var R=_.D(B.topBadge,pFA),V=R&&B.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.N(_.OZ,null,gz(R,function(){return R&&_.N(YPN,{data:R,class:V})}),gz(B.superlabel,function(){return _.N(_.Hr,{text:B.superlabel})}))};
Jtu=function(B){var R=B.data;var V=B.disableHorizontalPadding;var e=B.disableVerticalPadding;var X=B.forceSmallLayout;var Y=B.useResponsiveLayout;B=B.isOverlay;var t=R.sublabel||R.bottomBadge,b=R.superlabel||R.topBadge,J=_.rb(R.rendererContext);V={hasDetail:!1,title:function(){return _.N(_.Hr,{text:R.headline})},
hasTitle:!0,sublabel:t&&function(){return hvx(R)},
hasSublabel:!!t,superlabel:b&&function(){return t0I(R)},
hasSuperlabel:!!b,leadingImage:R.leadingAccessory&&function(){return XFZ(R.leadingAccessory)},
hasLeadingImage:!!R.leadingAccessory,trailingActions:R.trailingActions&&function(){return _.N(_.OZ,null,W$u(R.trailingActions))},
hasTrailingActions:!!R.trailingActions,disableHorizontalPadding:V,disableVerticalPadding:e,forceSmallLayout:X,useResponsiveLayout:Y,isOverlay:B,onClick:J?function(G){var y=_.Ft(R.rendererContext);y&&_.wl(y,{form:{element:G.target,event:G}})}:void 0};
e=(e=Rvd(R==null?void 0:R.backgroundColor))?"background-color: "+_.zF(e)+";":void 0;return _.N("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:e},_.N(b9d,Object.assign({},V)))};
jy_=function(B,R){if(B.simpleText)return Object.assign({},B,{simpleText:Kc(B.simpleText,R)});if(!B.runs)return B;for(var V=Object.assign({},B,{runs:[]}),e=0,X=_.h(B.runs),Y=X.next();!Y.done;Y=X.next())if(Y=Y.value,Y.text)if(e+Y.text.length<=R)V.runs.push(Y),e+=Y.text.length;else return V.runs.push(Object.assign({},Y,{text:Kc(Y.text,R-e)})),V;return B};
Uhu=function(B,R){return _.p7(B.entities,"chipBarStateEntity",R)};
NJA=function(B,R){return _.p7(B.entities,"chipEntity",R)};
ytp=function(B,R,V,e){return function(){var X=G7q.has(B.displayType)&&B.selected,Y=X&&B.deselectCommand?B.deselectCommand:B.tapCommand;!Y||X&&e||_.Lc(Y,{form:{element:R==null?void 0:R.value}});V==null||V()}};
SPN=function(B){switch(B){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""}};
H95=function(B,R){return{triggeringElement:B,onDwellTriggeredFn:function(){var V={triggeringElement:B,loadVideoPreviewEventData:R},e=document.querySelector(".video-preview");e&&e.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:V}))},
onDwellEndFn:function(){var V=document.querySelector(".video-preview");V&&V.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
M0K=function(B,R){var V=_.Oz().resolve(_.uj(Ag5)),e=function(){var X=R();return V&&X?H95(B.value,X):null};
_.lJ(function(){var X=e();V&&X&&Promise.resolve().then(function(){V.registerElement(X)});
_.aK(function(){V&&X&&Promise.resolve().then(function(){V.unregisterElement(X)})})})};
Dho=function(B){var R=B.dataset.resizeObserverId;if(R)return R;R=""+k7x++;return B.dataset.resizeObserverId=R};
fcZ=function(B,R){var V=Dho(B);x1.has(V)||x1.set(V,new Set);x1.get(V).add(R);Lw.has(V)&&R(Object.assign({},{target:B},Lw.get(V)))};
lcx=function(B){B=_.h(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;var V=Dho(R.target),e=Object.assign({},{target:R.target},Lw.get(V));if(e!=null&&e.contentRect?e.contentRect.width!==R.contentRect.width||e.contentRect.height!==R.contentRect.height:1)for(Lw.set(V,{borderBoxSize:R.borderBoxSize,contentBoxSize:R.contentBoxSize,contentRect:R.contentRect,devicePixelContentBoxSize:R.devicePixelContentBoxSize}),V=_.h(x1.get(V)||[]),e=V.next();!e.done;e=V.next())e=e.value,e(R)}};
ac5=function(){return vI?vI:vI=new zvd(lcx)};
dhd=function(B,R){var V=Dho(B);x1.has(V)&&(x1.get(V).delete(R),x1.get(V).size===0&&(x1.delete(V),Lw.delete(V),vI.unobserve(B),delete B.dataset.resizeObserverId));x1.size===0&&vI&&(vI.disconnect(),vI=void 0)};
TJ_=function(B,R){var V=_.Oz().resolve(ue);return wFd.map(function(e){return V.observe(B,R,e)})};
xh_=function(B){var R=_.Oz().resolve(ue);B.forEach(function(V){R.unobserveByKey(V)})};
_.K$u=function(B,R){var V=Object.assign({},L$d,R);R=_.h(qBA());var e=R.next().value,X=R.next().value,Y=function(t){var b=t.contentRect.height;if((t=t.contentRect.width)||b||V.canHaveZeroSize)e.width()===t&&e.height()===b||X(e,{height:b,width:t})};
_.zM(function(){var t=B instanceof HTMLElement?B:B.value,b=vou(Y,V.throttleMs),J=[];V.useVisibilityObserver&&(J=TJ_(t,function(G,y){requestAnimationFrame(function(){y==="visible"?(fcZ(t,b),ac5().observe(t)):dhd(t,b)})}));
J.length||(fcZ(t,b),ac5().observe(t));_.aK(function(){J.length&&(xh_(J),J.length=0);dhd(t,b)})});
return e};
EoY=function(B){var R=B.data;var V=B.callback;var e=B.enableSingleChipSelection;var X=B.disableChipsScrollAnimation;var Y=_.Zh(),t=wg(!1),b=wg(0);B={};B=_.h(W7(R.autoselectedChipIndex!=null?(B[R.autoselectedChipIndex]=!0,B):{}));var J=B.next().value,G=B.next().value,y=function(){var kd=Y.value;return kd==null||kd.scrollLeft-1<=0},S=function(){var kd=Y.value;
return kd==null?!1:kd.scrollLeft+1>=(kd==null?NaN:kd.scrollWidth)-(kd==null?NaN:kd.clientWidth)};
B=_.h(W7(y()));var M=B.next().value,f=B.next().value;B=_.h(W7(S()));var z=B.next().value,T=B.next().value;B=R.isHorizontallyScrollable;var L=function(kd){Y.value!=null&&(_.vE("HTML_DIR")==="rtl"&&(kd=-kd),Y.value.scrollBy({left:kd,behavior:X?"instant":"smooth"}))},Q=function(){L(-320)},q=function(){L(320)},m=_.Wr(function(kd){t.value=!0;
b.value=kd.clientX}),g=_.Wr(function(kd){if(t.value){kd=kd.clientX;
var a5=kd-b.value;b.value=kd;Y.value.scrollBy({left:-a5})}}),Vu=_.Wr(function(){var kd=y(),a5=S();
kd!==M&&f(kd);a5!==z&&T(a5)});
nE("pointerup",function(){t.value&&(t.value=!1)});
var n={},Yd={};return _.N("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},gz(R.title,function(){return _.N("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.N("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},R.title),IcA(R.overflowButton))}),_.N("div",{class:"ytChipsShelfViewModelChipsShelfContent"},gz(R.previousButton!=null,function(){var kd={};
return _.N("div",{class:_.YB("ytChipsShelfViewModelLeftArrowContainer",(kd.ytChipsShelfViewModelLeftArrowContainerIsHidden=M,kd))},IcA(R.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:Q}}))}),_.N("div",{el:Y,
"on:pointerdown":m,"on:pointermove":g,"on:scroll":Vu,class:_.YB("ytChipsShelfViewModelChipsScrollContainer",(n.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!B,n))},_.N("div",{class:_.YB("ytChipsShelfViewModelChipsContainer",(Yd.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!B,Yd.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!B&&!1,Yd))},(R.contents||[]).map(function(kd,a5){return _.N("div",{class:"ytChipsShelfViewModelChipWrapper"},IcA(kd,
{chipViewModel:{callback:function(lo,io){if(e){var vd={};G((vd[a5]=io,vd))}else vd={},G(Object.assign({},J,(vd[a5]=io,vd)));V==null||V(lo,io,a5)},
disableDeselection:e,selected:!!J[a5]}}))}))),gz(R.nextButton!=null,function(){var kd={};
return _.N("div",{class:_.YB("ytChipsShelfViewModelRightArrowContainer",(kd.ytChipsShelfViewModelRightArrowContainerIsHidden=z,kd))},IcA(R.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:q}}))})))};
qPY=function(B,R,V,e,X){B=R?B.switchOffCommand:B.switchOnCommand;if(e&&X)Qyq(B,V,X);else{var Y,t;(Y=_.T2({elementsCommand:B}))==null||(t=Y.onclick)==null||t.call(Y,V)}};
Qyq=function(B,R,V){B=_.T2({elementsCommand:B,additionalCommandArgs:{commandController:{onSuccess:function(){V(!1)},
onServerError:function(){V(!1)}}}});
if(B==null?0:B.onclick)B.onclick(R),V(!0)};
AtN=function(B){if(B)return _.D(B,ctd)};
gop=function(B,R,V){if(R)return[i9o];switch(B){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Kw];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return V?[Kw]:[syx,Kw];case "TRANSFER_STATE_PAUSED_BY_USER":return[F$o,Kw];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[rtq,Kw];default:return[i9o]}};
Z9I=function(B,R,V,e){return gop(B,R,e).map(function(X){var Y=X.text,t=X.iconType,b=X.videoAction;X=X.playlistAction;Y=Y?{content:Y}:void 0;t=t&&{sources:[{clientResource:{imageName:t}}]};var J=(0,_.M_.unsafeClone)(V);if(J){var G=_.D(J,_.Jv),y=_.D(J,_.jX);G&&b?G.action=b:y&&X&&(y.action=X)}return{title:Y,leadingImage:t,rendererContext:J&&{commandContext:{onTap:{innertubeCommand:J}}}}})};
mhS=function(B){B=_.Ft(B.rendererContext);var R;return(R=_.D(B,_.jX))==null?void 0:R.playlistId};
$hp=function(B){var R;return(R=B.listItems)==null?void 0:R.some(function(V){var e;return _.rb((e=_.D(V,_.Mo))==null?void 0:e.rendererContext)})};
I7=function(B){var R=_.Oz().resolve(_.uj(_.E5));return R!=null&&R()?B.darkThemeColorPalette:B.lightThemeColorPalette};
QN=function(B){return{primaryTextColor:Ey(B,0),secondaryTextColor:Ey(B,1),optionColor:Ey(B,2),backgroundColor:Ey(B,3),videoBackgroundColor:Ey(B,4)}};
Ey=function(B,R){if(B){switch(R){case 0:B=B.primaryTitleColor;break;case 1:B=B.secondaryTitleColor;break;case 2:B=B.surgeColor;break;case 3:B=B.section2Color;break;case 4:B=B.section3Color;break;default:return}if(B)return _.li(B)}};
ChK=function(B){return B?_.zF(B):""};
Phu=function(B){return(B==null?void 0:B.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
nox=function(B,R){var V;return"linear-gradient(to bottom, "+((V=R==null?void 0:R.map(function(e){var X=B?e.darkThemeColor:e.lightThemeColor;return X?_.zF(X)+" "+((e==null?void 0:e.startLocation)||0)*100+"%":"transparent"}))==null?void 0:V.join(", "))+")"};
ue5=function(B){var R=B.className;var V=B.data;var e=B.isOverlay;var X=B.maxLinesOverride;var Y=B.useMediumText;B=_.Zh();var t=V.description,b=V.alwaysShowTruncationText,J=V.truncationText,G=V.maxLines,y,S=!((y=_.D(V.rendererContext,ZE))==null||!y.onTap),M,f,z=(f=(M=_.D(V.rendererContext,_.mJ))==null?void 0:M.label)!=null?f:"";y=_.h(W7(!1));var T=y.next().value,L=y.next().value;_.A1K(B,V.rendererContext);y=_.Wr(function(){V.expandOnTap&&L(!T);return!1});
M={};return _.N("yt-description-preview-view-model",{el:B,class:_.YB("yt-description-preview-view-model-wiz",R,(M["yt-description-preview-view-model-wiz--clickable"]=S,M["yt-description-preview-view-model-wiz--is-overlay"]=e,M)),"on:click":y},gz(t,function(){var Q={};return T?_.N("div",{class:_.YB("yt-description-preview-view-model-wiz__description",(Q["yt-description-preview-view-model-wiz__description--medium-text"]=Y,Q))},_.N(_.Hr,{text:t})):_.N($L5,{text:t,alwaysShowTruncationText:b,truncationText:J,
maxLines:X!=null?X:G,textStyle:e?"overlay":"default",accessibilityLabel:z,textSize:Y?"medium":"small"})}))};
O9u=function(B,R,V,e,X){if(!((e==null?0:e.height)&&(e==null?0:e.width)))return{size:0};var Y=e.width;e=e.height;if(X)return R==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||R==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&Y>e?{size:312/yCp}:R==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(V!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||B!==1&&B!==2||R!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&R!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&R!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(R==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||R==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||e===Y)switch(B){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(R==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||e>Y)switch(B){case 1:case 3:return{size:240*Gdd};default:return{size:360*Gdd}}switch(B){case 1:case 2:return{size:1/yCp*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.oHd=function(B){if(!("matchMedia"in window))return _.cE(Error("Nh")),function(){return!1};
var R=window.matchMedia(B);B=_.h(_.WU(R.matches,void 0,"jLJc8e"));var V=B.next().value,e=B.next().value,X=function(Y){e(Y.matches)};
R.addEventListener?(R.addEventListener("change",X),_.aK(function(){R.removeEventListener("change",X)})):R.addListener&&(R.addListener(X),_.aK(function(){R.removeListener(X)}));
return V};
BZp=function(B){return B==="IMAGE_BANNER_STYLE_INSET"||B==="IMAGE_BANNER_STYLE_UNKNOWN"};
Rpq=function(){if(!("matchMedia"in window))return _.cE(Error("Nh")),function(){return 0};
var B=dg(function(){return window.matchMedia("(max-width: 527.9px)")}),R=dg(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),V=dg(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),e=dg(function(){return window.matchMedia("(min-width: 1024px)")}),X=_.h(_.WU(B.matches,void 0,"og9kEc")),Y=X.next().value,t=X.next().value;
X=_.h(_.WU(R.matches,void 0,"ybDWCb"));var b=X.next().value,J=X.next().value;X=_.h(_.WU(V.matches,void 0,"o0Gfh"));var G=X.next().value,y=X.next().value;X=_.h(_.WU(e.matches,void 0,"yqUUgd"));var S=X.next().value,M=X.next().value,f=dg(function(){return function(Q){t(Q.matches)}}),z=dg(function(){return function(Q){J(Q.matches)}}),T=dg(function(){return function(Q){y(Q.matches)}}),L=dg(function(){return function(Q){M(Q.matches)}});
_.zM(function(){B.addEventListener?(B.addEventListener("change",f),R.addEventListener("change",z),V.addEventListener("change",T),e.addEventListener("change",L)):B.addListener&&(B.addListener(f),R.addListener(z),V.addListener(T),e.addListener(L));_.aK(function(){B.removeEventListener?(B.removeEventListener("change",f),R.removeEventListener("change",z),V.removeEventListener("change",T),e.removeEventListener("change",L)):B.removeListener&&(B.removeListener(f),R.removeListener(z),V.removeListener(T),
e.removeListener(L))})});
return function(){return Y()?1:b()?2:G()?3:S()?4:0}};
VMo=function(B){var R=0;B=_.h([B.title,B.metadata,B.actions,B.description,B.attribution]);for(var V=B.next();!V.done;V=B.next())V.value&&R++;return R};
epd=function(B){return B===1||B===2?1:0};
pvY=function(B){var R,V=((R=_.Oz().resolve(_.uj(_.E5)))==null?0:R())&&B.data.darkThemeImage?B.data.darkThemeImage:B.data.image;R=_.N("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.N("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},V?_.N(_.ia,{data:V,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),XvN(B.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));V=_.N(_.Hr,{text:B.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var e=B.data;if(e.bodyText){var X=[];e=_.h(e.bodyText);for(var Y=e.next();!Y.done;Y=e.next())X.push(_.N(_.Hr,{text:Y.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else X=_.N(_.OZ,null);return _.N("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},R,V,X,XvN(B.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.N(_.Hr,{text:B.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.N(_.Hr,{text:B.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
hpI=function(B){B=(new Y2I).parse(B);return(new hZ).render(B).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(R){var V=R.split(":").map(Number),e=0,X=0;if(V.length===3)V=_.h(V),e=V.next().value,X=V.next().value,V=V.next().value;else if(V.length===2)V=_.h(V),X=V.next().value,V=V.next().value;else if(V.length===1)V=_.h(V).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(e*3600+X*60+V)+'" role="button">'+R+"</span>"})};
tMp=function(B){B=_.h(B.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var R=B.next(),V={};!R.done;V={clickHandler$jscomp$4:void 0},R=B.next()){R=R.value;V.clickHandler$jscomp$4=function(X){X=Number(X.target.getAttribute("data-time"));if(isNaN(X))throw Error("Ph");var Y=document.querySelector("video");Y&&(Y.currentTime=X)};
var e=function(X){return function(Y){Y.key!=="Enter"&&Y.key!=="Space"||(0,X.clickHandler$jscomp$4)(Y)}}(V);
R.setAttribute("tabindex","0");R.removeEventListener("click",V.clickHandler$jscomp$4);R.removeEventListener("keydown",e);R.addEventListener("click",V.clickHandler$jscomp$4);R.addEventListener("keydown",e)}};
WdA=function(){return _.N("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.N(qs,{percentWidth:100}),_.N(qs,{animationDelay:200}),_.N(qs,{animationDelay:400}),_.N(qs,{animationDelay:600}),_.N(qs,{animationDelay:800,percentWidth:60}),_.N("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.N(qs,{percentWidth:100}),_.N(qs,{animationDelay:200}),_.N(qs,{animationDelay:400}),_.N(qs,{animationDelay:600,percentWidth:50}))};
qs=function(B){return _.N("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(B.percentWidth===void 0?100:B.percentWidth)+"%"},_.N("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(B.animationDelay===void 0?0:B.animationDelay)+"ms"}))};
bG5=function(){var B=_.h(_.WU(function(){return""},void 0,"v2wS5e")),R=B.next().value;
return[function(){return R()()},
B.next().value]};
jxI=function(B){B=B===void 0?{}:B;return{title:_.n0(B.localizedOptInBannerTitleText===void 0?"":B.localizedOptInBannerTitleText),titleLength:19,subtitle:_.n0(B.localizedOptInMessage===void 0?"":B.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.n0(_.Wz("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:_.n0(_.Wz("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:[JOS]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
UPd=function(B,R){B=B?uVx(B):"";R!==void 0&&isFinite(R)?R===0?R=_.Wz("UPDATING",void 0,"Updating..."):(R=Hyq(new Date(R),new Date),R=_.Wz("UPDATED_TIME",{relative_time:R},"Updated "+R)):R="";var V="";B&&R&&(V=" \u2022 ");return _.n0(B+V+R)};
yOd=function(B,R,V,e,X,Y){R=R===void 0?0:R;var t=NZA[R],b=t.title,J=t.iconType,G=t.topButtonRenderer,y=t.sectionClientVE;t=t.videoClientVE;var S;if(R!==1||B.length){V=[];B=_.h(B);for(e=B.next();!e.done;e=B.next()){var M=e.value;if(OCN(M))V.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:M.videoEntity.videoId,title:uF(M.videoEntity.title),shortBylineText:uF(M.channelEntity.title),thumbnail:M.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:M.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Wz("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:t}}}}}});else if(u3o(M)){e=V;var f=e.push;var z=void 0,T=void 0,L=void 0,Q=void 0,q=void 0,m=void 0,g=void 0,Vu=void 0,n=M.mainPlaylistEntity.playlistId,Yd=M==null?void 0:(Vu=M.mainPlaylistEntity)==null?void 0:(g=Vu.thumbnailStyleData)==null?void 0:(m=g[0])==null?void 0:(q=m.value)==null?void 0:(Q=q.collageThumbnail)==null?void 0:Q.coverThumbnail;Q=o6S(n);if(!_.k("enable_offline_playlist_page")&&
(M==null?0:(L=M.mainPlaylistEntity)==null?0:L.videos)){b:{L=M==null?void 0:(T=M.mainPlaylistEntity)==null?void 0:T.videos;T=_.g6().getState().entities;if(L!=null&&L.length&&T)for(L=_.h(L),q=L.next();!q.done;q=L.next())if(q=_.Rr(q.value).entityId,(q=JSON.parse(q).videoId)&&bCY(T,q)==="TRANSFER_STATE_COMPLETE"){T=q;break b}T=""}T!==void 0&&(Q=vk(_.g6().getState(),T),Q=_.Pz(T,n,void 0,void 0,Q))}T=RPA(_.Wz("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),o6S(n));M=n&&Yd&&T?{playlistId:n,navigationEndpoint:Q,
viewPlaylistText:T,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Yd}},title:uF(M.mainPlaylistEntity.title),shortBylineText:uF(M==null?void 0:(z=M.channelEntity)==null?void 0:z.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:GQ_,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:n,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Wz("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:t}}}:
void 0;f.call(e,{gridPlaylistRenderer:M})}}t={gridRenderer:{items:V}};R===1&&(S=UPd(X,Y))}else if(e){var kd=_.n0((f=V==null?void 0:V.localizedPromptMessage)!=null?f:"");t={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.n0(_.Wz("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.yG5}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.n0(_.Wz("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};S=UPd(X,Y)}else kd=_.n0(_.Wz("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
t={};return{contents:[{shelfRenderer:{title:b,titleAnnotation:S,icon:{iconType:J},subtitle:kd,content:t,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:G}]}}}}],loggingDirectives:{clientVeSpec:{uiType:y}}}};
S2_=function(B,R,V,e,X,Y,t,b){V=V===void 0?{}:V;e=e===void 0?!1:e;X=X===void 0?!1:X;Y=Y===void 0?!1:Y;t=t===void 0?0:t;b=b===void 0?-Infinity:b;if(!R.length&&!B.length&&!e)return X?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:rVS(V)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.n0(_.Wz("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 J=[];B.length&&J.push(yOd(B,0));e?J.push(yOd(R,1,V,Y,t,b)):X&&J.push({contents:[{statementBannerRenderer:jxI(V)}]});(e&&R.length||B.length)&&J.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.n0(_.Wz("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 J.map(function(G){return{itemSectionRenderer:G}})};
cI=function(B,R){if(typeof B!=="object")return null;B=_.h(Object.entries(B));for(var V=B.next();!V.done;V=B.next()){var e=_.h(V.value);V=e.next().value;e=e.next().value;if(V===R)return V;if(e=cI(e,R))return V+"."+e}return null};
Ak=function(B){var R=B.content;return(B=B.styleRuns)&&R?{runs:B.map(function(V){var e={text:R.slice(V.startIndex,V.startIndex+V.length)};V.fontColor&&(e.textColor=V.fontColor);return e})}:{simpleText:R}};
kQS=function(B,R,V,e){var X=HGZ;e&&(B.quantity=e);if(!B.quantity||!B.maxQuantity)return{};e=B.minusButton;var Y=B.plusButton,t,b,J,G;return{value:B.quantity,maxValue:B.maxQuantity,onChangeCallback:function(y){X(B,y)},
minusLabel:(t=_.D(e,MMx))==null?void 0:t.label,minimumReachedLabel:(b=_.D(e,MMx))==null?void 0:b.limitReachedLabel,plusLabel:(J=_.D(Y,MMx))==null?void 0:J.label,maximumReachedLabel:(G=_.D(Y,MMx))==null?void 0:G.limitReachedLabel,disabled:R,onRemoveCommand:V}};
HGZ=function(B,R){var V=B.quantityIncrementerEntityKey;if(V){var e={};e.quantity=R;_.cc(_.v7("quantityIncrementerEntity",V,e));B.onChangeCommand&&_.Lc(B.onChangeCommand)}};
DPK=function(B){return _.k("kevlar_comments_clone_data_killswitch")?B:_.M_.unsafeClone(B)};
zpA=function(B,R){(B=f6p(B))&&(R?l65.push({command:B,sourceData:{},commandContext:void 0}):_.Oz().resolve(_.oC).resolveCommand(B))};
f6p=function(B){return _.D(B,_.aT)};
a6S=function(){var B=window.performance.timeOrigin+window.performance.now(),R=(new _.iH).setSeconds(B/1E9);return _.lI(R,2,_.D7(B%1E9),0)};
sy=function(B,R){var V=_.D(_.D(B,_.aT),dPo);V&&(R&&(V.serializedAdditionalMetadata=_.O4(R)),zpA(B,!0))};
wvp=function(B){switch(B){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"}};
TZu=function(){return!!_.vE("ID_TOKEN")};
vH_=function(B){return B instanceof Error&&B.cause instanceof xPd&&B.cause.rpcErrorCode!==void 0?!Ldo.includes(B.cause.rpcErrorCode):!0};
I6d=function(){return _.gg(Kdd,{authuser:""+(_.vE("SESSION_INDEX")||0)})};
FH=function(B,R,V,e){V=V===void 0?"MINI_APP_SDK_API_UNSPECIFIED":V;e=e===void 0?"":e;var X=new _.H8;V={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:e,sdkApi:V};B instanceof Error&&(X.message=B.message,X.name=B.name,B.cause instanceof xPd&&B.cause.rpcErrorCode!==void 0&&(V.rpcErrorCode=B.cause.rpcErrorCode));var Y;(Y=R.onError)==null||Y.call(R,{loggingError:X,metadata:V})};
QxN=function(B,R,V,e){switch(B){case "MINI_APP_SOURCE_GAMESNACKS":return new rL(R,V,e);default:return new EHp(R,V,e)}};
q25=function(B){switch(B){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"}};
cOS=function(B){switch(B){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"}};
AON=function(B){switch(B){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"}};
iGu=function(){return Math.floor(Math.random()*4)+1};
sxx=function(B,R,V,e){B=_.h(Object.entries(B));for(var X=B.next(),Y={};!X.done;Y={message$jscomp$957:void 0},X=B.next()){var t=_.h(X.value);X=t.next().value;t=t.next().value;Y.message$jscomp$957=t;R.push(setTimeout(function(b){return function(){e(!1);V(b.message$jscomp$957.text)}}(Y),Y.message$jscomp$957.delayMs));
Number(X)>0&&R.push(setTimeout(function(){e(!0)},Y.message$jscomp$957.delayMs-400))}};
Fdd=function(B,R){var V=V===void 0?eLp:V;_.k("mweb_fix_monitor_visibility_after_render")?B&&HK(function(){YwY(B,R,V)}):HK(function(){YwY(B,R,V)})};
gHZ=function(B){var R=B.data;var V=B.uniqueId;B=B.overrides;var e,X=((e=R.timedAnimationData)==null?void 0:e.animationTiming)||[];return _.N("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.N(gLd,{settings:{uniqueId:V,timings:X,experimentEnabled:X.length>0,enabled:X.length>0}},rOp(R.buttonRenderer,{buttonRenderer:{buttonOverrides:B}})))};
C1d=function(B){ZGd||(ZGd=mPd(new _.Ir(1,void 0,void 0,$Px),0));var R=ZGd.format(Math.floor(B));R=_.K7==="be"||_.K7==="bg"||_.K7==="es"||_.K7==="et"||_.K7==="hu"||_.K7==="ka"||_.K7==="lv"||_.K7==="pl"||_.K7==="pt-PT"||_.K7==="sq"?R.replace(new RegExp("^(\\d)"+$Px.GROUP_SEP.replace(".","\\.")+"(\\d+("+$Px.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):R;return B>=1E3&&B<=9999&&R[1]==="."&&(_.K7==="sl"||_.K7==="it")?R.replace(".",""):R};
P1o=function(B,R){kT("ytd-button-renderer",{data:B,className:R?R.className:"",overrides:R==null?void 0:R.buttonOverrides},iJ)};
OGo=function(B,R,V,e){if(B)return e=e||B.likeStatus,R?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:e==="LIKE",isDisabled:!B.likesAllowed,defaultIcon:{iconType:V},defaultText:e==="LIKE"?B.likeCountWithUnlikeText:B.likeCountText,toggledText:e==="LIKE"?B.likeCountText:B.likeCountWithLikeText,defaultNavigationEndpoint:nHo(B,"LIKE"),defaultServiceEndpoint:ubA(B,"LIKE"),toggledServiceEndpoint:ubA(B,"INDIFFERENT"),defaultTooltip:_.FF(B.likeCountTooltipText),toggledTooltip:_.FF(B.likeCountTooltipText),
targetId:B.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:e==="DISLIKE",isDisabled:!B.likesAllowed,defaultIcon:{iconType:V},defaultText:e==="DISLIKE"?B.dislikeCountWithUndislikeText:B.dislikeCountText,toggledText:e==="DISLIKE"?B.dislikeCountText:B.dislikeCountWithDislikeText,defaultNavigationEndpoint:nHo(B,"DISLIKE"),defaultServiceEndpoint:ubA(B,"DISLIKE"),toggledServiceEndpoint:ubA(B,"INDIFFERENT"),defaultTooltip:_.FF(B.dislikeCountTooltipText),
toggledTooltip:_.FF(B.dislikeCountTooltipText)}};
nHo=function(B,R){if(R==="LIKE")return B.likeCommand;if(R==="DISLIKE")return B.dislikeNavigationEndpoint};
ubA=function(B,R){var V;return(V=B.serviceEndpoints)==null?void 0:V.find(function(e){var X;return((X=_.D(e,_.$1))==null?void 0:X.status)===R})};
osA=function(B,R){R=R===void 0?{}:R;if(B){var V=!!R.activeState,e=R.iconSize,X=R.className,Y=R["aria-hidden$"],t=R["aria-label$"],b=R.role;R=R.style$+";width: "+((R.width||e)+"px;height: ")+((R.height||e)+"px;color: ")+(R.color+";");B={icon:B};V!==void 0&&(B.active=V);e!==void 0&&(B.size=e);R!==void 0&&(B.style=R);X!==void 0&&(B.className=X);Y!==void 0&&(B.ariaHidden=Y);t!==void 0&&(B.ariaLabel=t);b!==void 0&&(B.role=b);kT("yt-icon",B,iJ)}};
_.V3u=function(B,R,V){return window.spf&&!_.k("web_disable_spfjs_client")?B5I(B,R,V):RcA(B,R)};
B5I=function(B,R,V){var e=null,X=(new _.be(function(Y,t){var b={};if(R){b.method=R.method;var J=R.postParams||{};$Kd(B,R)&&(J[_.vE("XSRF_FIELD_NAME")]=_.vE("XSRF_TOKEN"));b.postData=_.bN(J);R.type&&(b.type=R.type);J=R.headers}b.headers=sAK(B,J);_.k("debug_forward_web_query_parameters")&&(B=_.ZnY(B,window.location.search));b.experimental_headers=b.headers;b.onError=function(G){G.err&&G.xhr&&(G.err.params={url:G.xhr.responseURL,response:G.xhr.responseText.substr(0,64)});t(G.err)};
b.onPartDone=function(G){V&&V.call(null,G.part)};
b.onDone=function(G){var y=ecu(G.response,"xsrf_token");CQ(window.location.href,B)&&y&&_.LQ("XSRF_TOKEN",y);if(y=ecu(G.response,"service_worker_killswitch"))_.LQ("SERVICE_WORKER_KILLSWITCH",y),LVp();Y(G.response)};
e=spf.request(B,b)})).then(XNA);
X.thenCatch(function(Y){var t=Y instanceof _.Cw,b=Y&&Y.hasOwnProperty("params")&&Y.params.response?Y.params.response:"";Y instanceof Error&&(b?t?ETu(Y):b===')]}\'\n{"reload":"now"}'?ETu(Y):(pNZ(Y,B,b),YKu(Y,b)?_.KE(Y):_.Tn(Y)):ETu(Y));e&&e.abort()});
return X};
XNA=function(B){if(B.type==="multipart"){var R=B.timing;B=B.parts.reduce(function(V,e){Object.assign(V,e);return V},{});
B.timing=B.timing||{};Object.assign(B.timing,R);B.type="reduced"}return B};
RcA=function(B,R){R=R===void 0?{}:R;var V=null,e=new _.be(function(X,Y){R.onFinish=function(t){if(t.readyState===XMLHttpRequest.DONE)if(t.status===200){if(t.responseType!=="json"){var b=t.response;b.substring(0,5)===")]}'\n"&&(b=b.substring(5));try{var J=JSON.parse(b)}catch(G){J=G}}else J=t.response;J instanceof Error?Y(J):(b=ecu(J,"xsrf_token"),CQ(window.location.href,B)&&b&&_.LQ("XSRF_TOKEN",b),t=t.responseURL,window.performance&&window.performance.getEntriesByName?(b=window.performance.getEntriesByName(t).pop())?
t={responseStart:(0,_.P8)()-(b.responseEnd-b.responseStart)}:(Math.random()<.01&&(b=Error("ai"),b.params=t,_.KE(b)),t={responseStart:-1}):t={responseStart:0},J.timing=J.timing||{},Object.assign(J.timing,t),X(J))}else Y(Error("$h`"+t.status))};
(V=_.W8(B,R))||Y(Error("$h`"+V.status))});
e.thenCatch(function(X){X instanceof Error&&(pNZ(X,B),YKu(X)&&(X.level="WARNING"))});
_.k("cancel_pending_navs")&&e.thenCatch(function(){V.abort()});
return e};
ecu=function(B,R){var V=B[R],e=B.parts;B.type==="multipart"&&e&&(V=(B=e.find(function(X){return R in X}))&&B[R]);
return V};
pNZ=function(B,R,V){var e=B.message||"";R={original:e,url:R};if(V)if(e=e.match(/position:?\s*(\d+)/)){e=e&&Number(e[1])?Number(e[1]):0;var X=Math.max(e-25,0);R.position=e;R.response=V.substring(X,e+25)}else R.response=V.substring(0,50);_.Iq(B,R);try{B.message="JSON parse error"}catch(Y){}};
YKu=function(B,R){B=B.message||"";B=!!(B.indexOf("<")>=0||B.indexOf("end of ")>=0||B.indexOf("Unterminated string")>=0||B.indexOf("Unexpected EOF"));if(!B&&R)for(var V=R.length,e=!1,X=0;X<V;X++)if(e&&R[X]==="\\")X++;else if(R[X]==='"')e=!e;else if(R[X]==="<"&&!e){B=!0;break}return B};
hc_=function(){return document.documentElement.hasAttribute("dark")};
_.t35=function(B,R){if(B!=="GFEEDBACK"&&B!=="GUIDED_HELP")_.IP(Error("bi`"+B));else{var V=_.Oz().resolve(_.uj(_.$B));if(V&&(V=V.getCurrentPage())&&V.getServiceTrackingParams&&(V=V.getServiceTrackingParams()))for(var e=0,X;X=V[e++];)if(X.service===B){if(B=X.params)for(V=0;e=B[V++];)R[e.key]=e.value;break}}};
_.Wrp=function(B){var R=_.Pr();R&&(R=R.getPlayer())&&(R.pauseVideo(),B.playback_id=R.getVideoData().cpn,B.eid=R.getVideoData().eventId,Object.assign(B,R.getFeedbackProductData()))};
bBo=function(){var B={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.vE("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(B.enableAnonymousFeedback=!0);_.vE("SESSION_INDEX")&&(B.authuser=String(_.vE("SESSION_INDEX")));_.k("enable_pageid_for_feedback")&&_.vE("DELEGATED_SESSION_ID")&&(B.pageId=String(_.vE("DELEGATED_SESSION_ID")));return B};
_.PI=function(B){_.k("enable_ypc_spinners")&&_.oF(B,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},B])};
_.nw=function(B){_.k("enable_ypc_spinners")&&_.oF(B,"yt-close-popup-action",["yt-loading-renderer"])};
JY_=function(B){return new Promise(function(R,V){_.wl({verifyCommand:{recaptchaToken:B.recaptchaResponse}},{commandController:{onSuccess:function(e,X){X||V("ChallengeService did not return a response.");var Y;R({challengeCompleted:(Y=X.verified)!=null?Y:!1})},
onServerError:function(e,X){V(X)}}})})};
jMp=function(B,R,V,e){R({recaptchaResponse:e}).then(function(X){X.challengeCompleted?_.GK()?(V(3),_.Oz().resolve(_.oC).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:B}})):V(2):V(4)},function(){V(4)})};
Uzo=function(B,R,V){_.IL("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.vE("HL"),function(){var e;(e=window.grecaptcha)==null||e.ready(function(){var X=window.grecaptcha;X?(V(X.render(B,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:jMp.bind(null,B,JY_,R)})),R(1)):R(4)})})};
N55=function(B,R){return function(){switch(R()){case 0:return B().captchaLoadingMessage;case 1:return B().challengeReason;case 3:return B().captchaSuccessfulMessage;case 2:return B().captchaCookieSetFailureMessage;case 4:return B().captchaFailedMessage;default:return B().challengeReason}}()};
_.uH=function(){if(!GhY){var B=document.querySelector("#player.skeleton");B&&(_.UJ(B),GhY=!0)}};
_.SK5=function(){return yYK=KDK()};
khI=function(){return _.W(function(B){return HBS!==void 0?B.return():_.U(B,M3o(),0)})};
M3o=function(){return _.W(function(B){if(B.nextAddress==1)return _.U(B,EZu(),2);yYK=B.yieldResult;HBS=_.dV.addLowPriorityJob(M3o,5E3);_.b3(B)})};
dzA=function(B){var R=R===void 0?DzK:R;var V,e,X=(V=B.responseContext)==null?void 0:(e=V.mainAppWebResponseContext)==null?void 0:e.trackingParam;if(!X){R.increment("MISSING");var Y,t,b,J,G,y;_.KE(new _.H8("282054944_a",{hcB:!!((Y=B.responseContext)==null?0:(t=Y.mainAppWebResponseContext)==null?0:t.loggedOut),cht:((b=B.responseContext)==null?void 0:b.mainAppWebResponseContext)===void 0,aLY:B.responseContext===void 0,ySs:(J=B.playabilityStatus)==null?void 0:J.contextParams,tzU:(((G=B.streamingData)==
null?void 0:G.formats)||[]).length>0,mb5:(((y=B.streamingData)==null?void 0:y.adaptiveFormats)||[]).length>0,os:!!B.offlineState,cotn:B.cotn}));return 2}V="";try{V=fio(X)}catch(f){return R.increment("C_ERROR"),_.Tn(f),2}try{var S=_.lid(V);var M=zcN(S)}catch(f){return R.increment("P_ERROR"),_.Tn(f),2}M=_.Oh(M,aiN,1,_.oI());X=[];M=_.h(M);for(S=M.next();!S.done;S=M.next())e=S.value,S=e.getPath(),V=(0,_.M_.getValueByKeys)(B,S.split(".")),V=String(V===void 0||V===null?"":V),e=e.getValue()||"",Y=/[+\-\/_]/g,
V.replace(Y,"")!==e.replace(Y,"")&&(R.increment("MISMATCH"),_.k("ab_mis_log_err")&&(V=new _.H8("282054944_p",{nsB:S,g:String(V),e:String(e)}),_.Tn(V)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(S)||(S.match(/enforcementMessageViewModel/i)?X.push(3):X.push(2)));if(X.length>0)return Math.max.apply(Math,_.MI(X));R.increment("SUCCESS");return 1};
xzx=function(B){var R=new Oy;if(B.interpreterJavascript){var V=_.lz_(B.interpreterJavascript);V=Ia(V).toString();var e=new wNd;_.bg(e,6,V);_.Ra(R,1,e,g4)}else B.interpreterUrl&&(V=_.wV(B.interpreterUrl),V=_.hR(V).toString(),e=new _.T5u,_.bg(e,4,V),_.Ra(R,2,e,g4));B.interpreterHash&&_.oH(R,3,B.interpreterHash,g4);B.program&&_.oH(R,4,B.program,g4);B.globalName&&_.oH(R,5,B.globalName,g4);B.clientExperimentsStateBlob&&_.oH(R,7,B.clientExperimentsStateBlob,g4);return R};
BS=function(B){var R={};B=_.h(B.split("&"));for(var V=B.next();!V.done;V=B.next())V=V.value.split("="),V.length===2&&(R[V[0]]=V[1]);return R};
LrK=function(B){return Number(B.t)||7200};
x2S=function(){if(_.k("bg_st_hr"))return"havuokmhhs-0";var B,R=((B=performance)==null?void 0:B.timeOrigin)||0;return"havuokmhhs-"+Math.floor(R)};
vsu=function(){return new Promise(function(B){var R=window.top;R.ntpevasrs!==void 0?B(new RH(R.ntpevasrs)):(R.ntpqfbel===void 0&&(R.ntpqfbel=[]),R.ntpqfbel.push(function(V){B(new RH(V))}))})};
Kr_=function(B){var R=B.nwj.bind(B);_.mk("yt.aba.att",R);B=B.rDU.bind(B);_.mk("yt.aba.att2",B)};
Esd=function(B){switch(_.tu(B.input)){case _.Zz(Ii_):var R={};return R.encryptedVideoId=B.innerTubeRequest.externalVideoId,R}return{}};
qKS=function(B){switch(_.tu(B.input)){case _.Zz(Ii_):if(_.k("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Zz(VA):if(_.k("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&B.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Zz(QMq):var R,V;if(_.k("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((V=_.D((R=B.config)==null?void 0:R.command,
AjN))==null?0:V.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.AYo=function(B){var R;if(B.playlistVideoRenderer&&((R=B.playlistVideoRenderer)==null?0:R.engagementBar))return cYY(B.playlistVideoRenderer.engagementBar);if(_.D(B,eV)){var V;if(B=(V=_.D(B,eV))==null?void 0:V.engagementBar)return cYY(B)}return""};
cYY=function(B){if(!B)return"";B=_.D(B,_.iBI);if(B==null||!B.actions)return"";B=_.h(B.actions);for(B=B.next();!B.done;B=B.next()){B=_.D(B.value,_.sMd);var R=void 0;if((R=B)==null||!R.itemId)break;return B.itemId}return""};
_.FrN=function(B){var R;if(B.playlistVideoRenderer&&((R=B.playlistVideoRenderer)==null?0:R.videoId))return B.playlistVideoRenderer.videoId;if(_.D(B,eV)){var V,e;if(B=(V=_.D(B,eV))==null?void 0:(e=V.playlistItemData)==null?void 0:e.videoId)return B}return""};
_.rYx=function(B){var R;if(B.playlistVideoRenderer&&((R=B.playlistVideoRenderer)==null?0:R.voteCount))return B.playlistVideoRenderer.voteCount;if(_.D(B,eV)){var V,e;if(B=(V=_.D(B,eV))==null?void 0:(e=V.playlistItemData)==null?void 0:e.voteCount)return B}return 0};
_.XM=function(B,R){return _.p7(B.entities,"flowStateEntity",R)};
ZBu=function(B,R,V,e){var X=void 0;B=_.h(B[R.iconName]||[]);for(var Y=B.next();!Y.done;Y=B.next()){Y=Y.value;var t=R.iconSize;var b=R.iconStyle;t=!t||t===Y[2];var J=gsI[Y[0]];e&&e!==Y[1]||!t||b&&b!==J?b=!1:X?(b=gsI[Y[0]],b=!!R.iconStyle||b==="youtube_outline",t=X.version<=Y[1],b=(!!R.iconSize||Y[2]===24)&&b&&t):b=!0;b&&(X={name:R.iconName,style:gsI[Y[0]],size:Y[2],version:Y[1],allowMirroring:!!Y[3],url:V(R.iconName,Y)})}return X};
mz_=function(B,R,V,e){return B+(""+gsI[V[0]]+((e===void 0?0:e)?"_experimental":"")+"/"+R+"/v"+V[1]+"/")+(V[2]+"px.svg")};
pi=function(B){return _.k("web_bookmark_playlist_save_icon")?"bookmark":B};
$zd=function(B,R){return mz_("https://fonts.gstatic.com/s/i/",B,R)};
Ctu=function(B,R){return mz_("https://fonts.gstatic.com/s/i/",B,R,!0)};
PtI=function(B,R){return mz_("https://www.gstatic.com/youtube/img/icons/web/",B,R)};
ns_=function(B){var R=B.enabled;var V=B.itemPlaybackModel;var e=B.thumbnailElRef;var X=B.containerElRef;var Y=B.options;var t;_.lJ(function(){var b=X==null?void 0:X.value;var J,G=(J=e())==null?void 0:J.value;J=V();var y=Y();if(R&&J&&b&&G&&(y==null?0:y.thumbnail)){var S,M;b={mediaRenderer:{data:J,hostElement:b},lockupElement:b,thumbnailElement:G,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.dl((S=J.inlinePlayerData)==null?void 0:S.onVisible),navigationEndpoint:_.dl((M=J.inlinePlayerData)==
null?void 0:M.onSelect),thumbnail:y.thumbnail,thumbnailOverlays:y.thumbnailOverlays||[],accessibilityText:y.accessibilityText||""},thumbnailSize:y.thumbnailSize,enableRounding:y.enableRounding}}}else b=void 0;if(S=b){var f;(f=t)==null||Y1(f);t=CO(S)}});
_.aK(function(){var b;(b=t)==null||Y1(b)})};
u9q=function(B){B=atob(B);for(var R=[],V=0;V<B.length;V++)R.push(B.charCodeAt(V));return new Blob([new Uint8Array(R)],{type:"image/png"})};
oh_=function(B,R,V,e){e=e===void 0?"INSERTION_POSITION_UNSPECIFIED":e;return B({targetId:R},function(X){var Y,t=(Y=X.contents)!=null?Y:[];Y=V!=null?V:[];var b=OBN(t);switch(e){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},X,{contents:[].concat(_.MI(t.slice(0,b)),_.MI(Y),_.MI(t.slice(b+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},X,{contents:[].concat(_.MI(Y),_.MI(t))});case "INSERTION_POSITION_LAST":return Object.assign({},X,{contents:[].concat(_.MI(t),_.MI(Y))});
default:return X}})};
RhN=function(B,R,V,e,X){X=X===void 0?"RELATIVE_INSERTION_POSITION_AFTER":X;return B({targetId:R},function(Y){var t,b=(t=Y.contents)!=null?t:[];t=BWu(b,V);if(t<0)return Y;t=X==="RELATIVE_INSERTION_POSITION_BEFORE"?t:t+1;return Object.assign({},Y,{contents:[].concat(_.MI(b.slice(0,t)),_.MI(e),_.MI(b.slice(t)))})})};
OBN=function(B){var R=B.findIndex(function(V){return _.D(V,_.YQ)});
return R>=0?R:B.length};
BWu=function(B,R){return B.map(function(V){return _.D(V,_.VUI)}).findIndex(function(V){return(V==null?void 0:V.targetId)===R})};
Xpp=function(B,R,V){return B({targetId:R},function(e){var X,Y=(X=e.contents)!=null?X:[];return Object.assign({},e,{contents:ehY(Y,V)})})};
ehY=function(B,R){return B.filter(function(V){var e=R.includes;a:{V=_.h(Object.values(V));for(var X=V.next();!X.done;X=V.next())if((X=X.value)&&X.targetId){V=X.targetId;break a}V=""}return!e.call(R,V||"")})};
_.ppI=function(B,R){return{engagementPanelSectionListRenderer:{panelIdentifier:B,identifier:R,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
YRS=function(B){return B.getOption("captions","tracklist",{includeAsr:!0})};
hh_=function(B){var R=YRS(B);if(R==null?0:R.length)return R;B.loadModule("captions");return YRS(B)};
tUp=function(B,R,V){if(B.getVideoData){var e,X=(e=hh_(B))==null?void 0:e.find(function(Y){return Y.languageCode===V});
e=_.XF("/youtube/app/player_caption_language_entity_key","stringEntity",2);R.dispatch(_.SX("stringEntity",e,{key:e,value:(X==null?void 0:X.displayName)||""}));X?B.setOption("captions","track",X):(B.setOption("captions","stickyLoading",{}),B.setOption("captions","track",{}))}};
WUd=function(B){return B.getOption("captions","tracklist",{includeAsr:!0})};
b5Z=function(B){return B.getOption("captions","tracklist",{includeAsr:!0})};
J9_=function(B){var R=b5Z(B);if(R==null?0:R.length)return R;B.loadModule("captions");return b5Z(B)};
jlZ=function(B){var R=B.getOption("captions","track");if(R)return R;B.loadModule("captions");return B.getOption("captions","track")};
UFp=function(B){var R=J9_(B);if(R!=null&&R.length){var V=jlZ(B);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Wz("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(V==null?0:V.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.MI(R.map(function(e){return{listItemViewModel:{title:{content:e.displayName},
isSelected:e.languageCode===(V==null?void 0:V.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:e.languageCode}}]}}}}}}}})))}}}}}}}}};
SRZ=function(B){return new Promise(function(R,V){if(B===void 0)_.Tn(Error("Ci"),"ERROR"),V(Error("Ci"));else{V=new _.NWp;var e=_.GCd();V=V.init();var X=_.y9Z(_.vE("YPC_MB_URL"),!0);Promise.all([V,X]).then(function(){var Y=payments.business.integration.ClientTokenFactory.createClientToken(B,e);R(Y)})}})};
kCo=function(B,R,V,e,X,Y,t){var b=_.A3();V=V.replace(/-/g,"+").replace(/_/g,"/");var J=_.UV().get("hl"),G=_.hn(_.c$),y=R==null?void 0:R.element;y&&_.PI(y);H5o(R,!0);_.MUY(G,V,b.resolve,function(){y&&_.nw(y)},function(S){y&&_.nw(y);
b.reject(S)},J,e?function(S){e&&_.cr(B,e,{backend_analytics:S})}:void 0,b.resolve,X,Y,t);
return b.promise};
H5o=function(B,R){!(B=B==null?void 0:B.element)||B.tagName!=="YT-BUTTON-RENDERER"&&B.tagName!=="YTD-BUTTON-RENDERER"||(B.disabled=R)};
DFo=function(){var B=_.Wz("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.n0(B),actionButton:{buttonRenderer:i1A()}}},popupType:"TOAST"}};
fe_=function(){var B=_.Wz("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.n0(B),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
leI=function(B){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:B}]}}};
tn=function(B,R,V,e){var X;return _.W(function(Y){if(Y.nextAddress==1)return _.en(Y,2),_.U(Y,B,4);if(Y.nextAddress!=2)return(X=_.yW(R.getState().entities).length>0)?Y.return({title:_.n0(_.Wz("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.n0(_.Wz("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:AV_()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
Y.return(sXS(V,e));_.WR(Y);return Y.return(sXS(V,e))})};
zhA=function(B,R){return R?R==="PPSV"||gId(B,R):!1};
aep=function(B){B.responseContext||(B.responseContext={});B.responseContext.maxAgeSeconds=0;return B};
b5=function(B){var R;return _.W(function(V){return V.nextAddress==1?_.U(V,dFu(B,"service:topbar:fallback"),2):(R=V.yieldResult)&&_.WS(R)?V.return(aep(_.WS(R))):V.return()})};
wpK=function(B){var R;return _.W(function(V){return V.nextAddress==1?_.U(V,dFu(B,"service:downloads_settings:fallback"),2):(R=V.yieldResult)&&_.WS(R)?V.return(R):V.return()})};
dFu=function(B,R){var V;return _.W(function(e){if(e.nextAddress==1)return B?_.U(e,B.get(R),2):e.return();V=e.yieldResult;return!V||!_.WS(V)||!isNaN(Number(V.data.expireTimestampMs))&&V.isExpired()?e.return():e.return(V)})};
TWd=function(B){var R=_.Oz().resolve(Jn).getState().entities;return B.playlistId?zhA(R,B.playlistId):!1};
xFo=function(B,R){var V;if(R==null?0:(V=R.requestTemplate)==null?0:V.panelId)B.panelId=R.requestTemplate.panelId;var e;if(R==null?0:(e=R.requestTemplate)==null?0:e.params)B.params=R.requestTemplate.params};
vh_=function(){if(LUx)return LUx();var B=!_.k("idb_response_store_auth_killswitch"),R={};LUx=Cq("yt-it-response-store",{objectStores:(R.ResponseStore={addedAtVersion:1},R),shared:!B,upgrade:function(V,e){e(1)&&(V=Iu(V,"ResponseStore",{keyPath:["key","clientName"]}),E7(V,"byExpiration","expireTimestampMs"),E7(V,"byInterface","clientName"))},
version:1});return LUx()};
KU5=function(B){return _.iN(vh_(),B)};
EhN=function(B,R){var V;return _.W(function(e){return e.nextAddress==1?_.U(e,_.$z(),2):(V=e.yieldResult)?e.return(new IeS(B,R,V)):e.return()})};
QlS=function(B){var R=Object.keys(B)[0];if(R)return B.screenExit&&(R=R+";"+B.screenExit.screen),R};
qRx=function(B){var R=new Map;B=_.h(B);for(var V=B.next();!V.done;V=B.next())V=V.value,V!=null&&(R.has(V.taskType)||R.set(V.taskType,[]),R.get(V.taskType).push(V));return R};
c9N=function(B){return!isNaN(B)&&B>0};
A9I=function(B){B=[].concat(_.MI(B)).sort(function(V,e){return V-e});
var R=Math.floor(B.length/2);return B.length%2?B[R]:(B[R-1]+B[R])/2};
FUu=function(B,R){B=B===void 0?MRZ:B;R=R===void 0?{}:R;_.mk("yt.logging.errors.log",_.Tn);S5d();i5p(zIY(),R);window.onerror=B;sld=HcZ;window.addEventListener("unhandledrejection",function(V){if(V.reason instanceof Error){var e=V.reason;_.Iq(e,{source:"unhandledrejection"});e.name==="AbortError"&&(e.level="WARNING")}HcZ(V.reason);V.preventDefault()})};
_.r9I=function(B){return B.a11y.ephemeralAction||null};
_.ghd=function(B){var R,V,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu,n,Yd,kd,a5,lo,io,vd,cd,ES,$d,Eo,GG,eJ,pR,d4,W2,By,DY,hA;return _.W(function(fR){if(fR.nextAddress==1)return _.U(fR,_.Js(B,{mode:"readonly",enableRetries:!0},function(Qv){return ju(Qv,"playbackData").then(function(i4){var TG=i4.map(function(CZ){return CZ.transfer}).filter(function(CZ){return!!CZ}),ZS=i4.map(function(CZ){return CZ.offlineVideoPolicy}).filter(function(CZ){return!!CZ}),$b=i4.filter(function(CZ){return!!CZ.key}).map(function(CZ){return _.XF(_.Rr(CZ.key).entityId,
"downloadStatusEntity")});
TG=ju(Qv,"transfer",TG);ZS=ju(Qv,"offlineVideoPolicy",ZS);$b=ju(Qv,"downloadStatusEntity",$b);var DS=TG.then(function(CZ){CZ=CZ.reduce(function(k5,tr){(tr==null?0:tr.offlineVideoStreams)&&k5.push.apply(k5,_.MI(tr.offlineVideoStreams));return k5},[]).filter(function(k5){return!!k5});
return ju(Qv,"offlineVideoStreams",CZ)});
return IC.all([TG,ZS,DS,$b]).then(function(CZ){var k5=_.h(CZ);CZ=k5.next().value;var tr=k5.next().value;var l_=k5.next().value;k5=k5.next().value;return[i4,CZ,tr,l_,k5]})})}),2);
if(fR.nextAddress!=3)return R=fR.yieldResult,_.U(fR,_.Js(B,{mode:"readonly",enableRetries:!0},function(Qv){return ju(Qv,"mainDownloadsListEntity").then(function(i4){var TG,ZS;return(ZS=(TG=i4[0])==null?void 0:TG.downloads)!=null?ZS:[]})}),3);
V=fR.yieldResult;e=_.h(R);X=e.next().value;Y=e.next().value;t=e.next().value;b=e.next().value;J=e.next().value;G=X;y=Y;S=t;M=b;f=J;z={};T={};L={};Q={};q={};m=[];g=_.h(y);for(Vu=g.next();!Vu.done;Vu=g.next())(n=Vu.value)&&(z[n.key]=n);Yd=_.h(S);for(kd=Yd.next();!kd.done;kd=Yd.next())(a5=kd.value)&&(T[a5.key]=a5);lo=_.h(f);for(io=lo.next();!io.done;io=lo.next())(vd=io.value)&&(L[vd.key]=vd);cd=_.h(M);for(ES=cd.next();!ES.done;ES=cd.next())($d=ES.value)&&(Q[$d.key]=$d);Eo=_.h(V);for(GG=Eo.next();!GG.done;GG=
Eo.next())eJ=GG.value,pR=void 0,q[(pR=eJ.videoItem)!=null?pR:""]=!0,eJ.videoItem&&(W2=d4=void 0,By=(W2=(d4=_.Rr(eJ.videoItem))==null?void 0:d4.entityId)!=null?W2:"",m.push({externalVideoId:By}));DY=G.filter(function(Qv){if(!Qv||!Qv.key||!Qv.offlineVideoPolicy)return!1;Qv=_.Rr(Qv.key).entityId;Qv=_.XF(Qv,"downloadStatusEntity");var i4;return!(Qv&&((i4=L[Qv])==null?void 0:i4.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
hA=DY.map(function(Qv){var i4=z[Qv.transfer],TG=[];if(i4==null?0:i4.offlineVideoStreams)for(var ZS=_.h(i4.offlineVideoStreams),$b=ZS.next();!$b.done;$b=ZS.next())($b=Q[$b.value])&&TG.push($b);ZS=T[Qv.offlineVideoPolicy];$b=q;var DS=Qv==null?void 0:Qv.playerResponseTimestamp,CZ=_.Rr(ZS.key).entityId;Qv=_.XF(CZ,"mainVideoEntity");if(ZS.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var k5="OFFLINE_VIDEO_STATE_DISABLED";ZS.expirationTimestamp&&Number(ZS.expirationTimestamp)<Date.now()/1E3&&(k5="OFFLINE_VIDEO_STATE_EXPIRED")}else if(ZS.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")k5="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(i4==null?void 0:i4.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":k5="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":k5="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":k5="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":k5="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":k5="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":k5="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:k5="OFFLINE_VIDEO_STATE_UNKNOWN"}if(k5==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(i4==null?void 0:i4.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":k5="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":k5="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":k5=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}CZ={id:CZ,videoState:k5};if(i4==null?0:i4.cotn)CZ.cotn=i4.cotn;if(i4==null?0:i4.maximumDownloadQuality)CZ.selectedVideoQuality=i4==null?void 0:i4.maximumDownloadQuality;if(i4==null?0:i4.lastProgressTimeMs)CZ.lastProgressTimeMs=i4.lastProgressTimeMs;DS&&(CZ.playerResponseSavedTimeMs=String(Number(DS)*1E3));i4=String;DS=0;TG=_.h(TG);for(k5=TG.next();!k5.done;k5=TG.next())if(k5=k5.value,k5.streamsProgress){k5=_.h(k5.streamsProgress);for(var tr=k5.next();!tr.done;tr=
k5.next()){var l_=void 0;DS+=Number((l_=tr.value.numBytesDownloaded)!=null?l_:0)}}CZ.downloadedBytes=i4(DS);CZ.selectedOfflineMode=$b[Qv]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";ZS.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(CZ.offlinePlaybackDisabledReason=ZS.offlinePlaybackDisabledReason);return CZ});
return fR.return({offlineVideos:hA,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:m}}})})};
Z55=function(){var B;return _.W(function(R){return R.nextAddress==1?_.U(R,_.ts(),2):(B=R.yieldResult)?R.return(_.ghd(B)):R.return({state:"PES Unavailable"})})};
CVd=function(){var B,R,V,e;return _.W(function(X){if(X.nextAddress==1)return _.U(X,_.ts(),2);if(X.nextAddress!=3)return(B=X.yieldResult)?_.U(X,mFx(B),3):X.return({state:"PES Unavailable"});R=X.yieldResult;V={};e=R.reduce(function(Y,t){Y[t.key]=t;return Y},V);
return X.return($Fd(e))})};
$Fd=function(B){for(var R={},V=[],e=_.h(Object.keys(B)),X=e.next();!X.done;X=e.next()){var Y=X.value;X=B[Y];var t=void 0;if(((t=X)==null?void 0:t.entityType)==="mainVideoEntity"){delete B[Y];var b=X.data;X={};if(b){var J=void 0;t=(J=b.videoId)!=null?J:"vid-"+Y;Y=B;X.video=b;delete X.video.formattedDescription;delete X.video.thumbnail;b.owner&&(J=Y[b.owner],J==null?0:J.data)&&(delete Y[J.key],X.video.owner=J.data,delete X.video.owner.avatar);if(b=b.downloadState)if(J=Y[b],J==null?0:J.data)if(delete Y[b],
b=J.data.playbackData)if(J=Y[b],J!=null&&J.data){delete Y[b];b=J.data;delete b.playerResponseJson;X.playbackData=b;if(b.transfer&&(J=Y[b.transfer],J==null?0:J.data)){delete Y[J.key];var G=J.data;X.transfer=G;J=[];G=_.h(G.offlineVideoStreams||[]);for(var y=G.next();!y.done;y=G.next())if(y=Y[y.value])delete Y[y.key],J.push(y.data);J&&(X.streams=J)}(b=b.offlineVideoPolicy)&&(b=Y[b])&&b.data&&(delete Y[b.key],X.offlineVideoPolicy=b.data)}R[t]=X}}else X&&X.entityType==="offlineOrchestrationActionWrapperEntity"&&
X.data&&(delete B[X.key],t=X.data,Y=void 0,V.push({id:t.rootActionId,type:((Y=t.actionProto)==null?void 0:Y.actionType)||"",entity:X}))}R.wrapperEntities=V;Object.keys(B).length>0&&(R.unknownKeys=B);return R};
PVS=function(){var B,R,V,e,X,Y,t,b,J;return _.W(function(G){if(G.nextAddress==1)return B=!!(new _.vf("")).expiringStorage_,e=!!((R=_.R5.crypto)==null?0:(V=R.subtle)==null?0:V.importKey),X=!!_.R5.BroadcastChannel,Y=!!_.R5.navigator.locks,_.U(G,$rN(),2);t=G.yieldResult;b=B&&e&&X&&Y&&t;J={isSupported:b};if(b)return G.return(J);J.missingBrowserFeatures=[];t||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");B||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
e||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");X||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");Y||J.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return G.return(J)})};
nhq=function(){var B;return!((B=jV?jV:null)==null||!B.window)};
_.O5Z=function(B){if(_.xd()&&_.bZS("Chromium")>=120){var R=_.uG_().mediaSession;try{R.setActionHandler("enterpictureinpicture",function(){B()})}catch(V){}}};
ofI=function(B){for(var R=[],V=_.h(document.styleSheets),e=V.next(),X={};!e.done;X={node$jscomp$725:void 0},e=V.next())X.node$jscomp$725=e.value.ownerNode,X.node$jscomp$725&&(X.node$jscomp$725 instanceof HTMLStyleElement||X.node$jscomp$725 instanceof HTMLLinkElement)&&R.push(new Promise(function(Y){return function(t){var b=Y.node$jscomp$725.cloneNode(!0);b.onload=function(){t()};
b.onerror=function(){_.KE(Error("ej"));t()};
B.document.head.appendChild(b)}}(X)));
return Promise.all(R)};
W0K=function(B){var R=[_.PR(BsZ),_.PR(R0Y),_.PR(Vi_)];e05(window.document.documentElement,B.document.documentElement,[_.PR(X3I),_.PR(p3N),_.PR(Y6d),_.PR(h0d),_.PR(tiI)]);e05(window.document.body,B.document.body,R)};
e05=function(B,R,V){B=_.h(B.attributes);for(var e=B.next();!e.done;e=B.next())if(e=e.value)try{_.cB(V,R,e.name,e.value)}catch(X){}};
J2S=function(B,R){B=new _.UT(B.document.documentElement);B.start(bld,R);return B};
j95=function(B){var R=B.document.documentElement;R.addEventListener("click",function(V){n9S(R,V)});
R.addEventListener("touchstart",function(V){RFN(V)});
R.addEventListener("mousedown",function(V){RFN(V)})};
Ns_=function(B,R,V,e){e=e===void 0?!1:e;R=new UiS(R||B,V||B);return{x:B.x+((e===void 0?0:e)?R.lengthX*-1:R.lengthX)*.2,y:B.y+((e===void 0?0:e)?R.lengthY*-1:R.lengthY)*.2}};
GO_=function(B){if(!B)return!1;var R=B.status==="OK"||B.status==="LIVE_STREAM_OFFLINE",V,e,X,Y=(X=(V=B.errorScreen)==null?void 0:V.playerLegacyDesktopYpcTrailerRenderer)!=null?X:(e=B.errorScreen)==null?void 0:e.ypcTrailerRenderer;return!!R||!!Y};
_.y2_=function(B,R){if(!B)return!1;var V,e=(V=B.errorScreen)==null?void 0:V.playerLegacyDesktopYpcOfferRenderer,X;R=!!(R==null?0:(X=R.playerOverlayRenderer)==null?0:X.gatedActionsOverlayRenderer);return!!GO_(B)||!!e||!!R};
S6q=function(B){return B.includes("gclid")||B.includes("gad_source")};
kOY=function(B){var R=[],V=0;return{push:function(e){R[V]=e;V=(V+1)%B},
iterate:function(){return function X(){var Y,t,b,J;return _.Hl5(X,function(G){switch(G.nextAddress){case 1:_.Yb(G,2),Y=R.length,t=0;case 4:if(!(t<Y)){G.jumpTo(2);break}b=V+t;J=_.MiY;return _.U(G,R[b%Y],7);case 7:J(G.yieldResult);t++;G.jumpTo(4);break;case 2:_.pr(G),_.tq(G,0)}})}()}}};
fQp=function(){var B=_.RC("web_max_tracing_events",0);_.k("web_enable_tracing")&&B>0&&Dio(B)};
Dio=function(B){var R=kOY(B);mpu({sample:function(V,e){return V==="event"?!lQp.has(e==null?void 0:e.type):!1},
spanProcessors:[{onSpanStart:function(V){R.push(V)}}]});
x9u.subscribe("handleError",function(V){try{Object.assign(V.params,{breadcrumbs:JSON.stringify(Array.from(R.iterate()))})}catch(e){_.Tn(e,"ERROR")}})};
z0Y=function(B){return new Promise(function(R){window.setTimeout(R,B)})};
aQI=function(B){var R={bicf:function(Y){B.zO2=Y},
blc:function(){return B.getLatestChallengeResponse()},
bcr:function(Y){B.r9W.push(Y)}},V=window.top;
V.ntpevasrs=R;if(V.ntpqfbel!==void 0)for(var e=_.h(V.ntpqfbel),X=e.next();!X.done;X=e.next())X=X.value,X(R);V.ntpqfbel=void 0};
diq=function(B){return _.W(function(R){if(R.nextAddress==1)return _.en(R,2),_.U(R,B.d5r(),4);if(R.nextAddress!=2)return _.c8(R,0);_.WR(R);_.b3(R)})};
w3Y=function(B){var R,V;(R=B.ytcsi)==null||(V=R.tick)==null||V.call(R,"pot_ist")};
TsZ=function(B){if(B instanceof Error){var R=_.qN("yt.logging.errors.log");R&&R(B,"WARNING")}};
xiN=function(B){try{var R=JSON.parse(B);if(R.bgChallenge)return R}catch(V){}};
vfZ=function(){var B=window,R={networkStatusManagerPromise:_.Oz().resolve(new xKK(_.A$)),initialChallengeSli:_.k("wpo_att_sli")?new _.Ftp("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};B=B===void 0?window:B;var V=B.ytAtR,e;R==null||(e=R.initialChallengeSli)==null||_.Nl(e);if(V){if(V=xiN(V)){var X;R==null||(X=R.initialChallengeSli)==null||_.GT(X,"SUCCESS");L0A(V,R)}B.ytAtR=void 0}else B.ytAtRC=function(Y){if(Y=xiN(Y)){var t;R==null||(t=R.initialChallengeSli)==null||
_.GT(t,"SUCCESS");L0A(Y,R);B.ytAtRC=void 0}}};
EfS=function(){if(K0x)return K0x;try{var B=_.jr("IFRAME");_.wc(B,_.u3(IQK));B.sandbox.add("allow-same-origin");B.style.display="none";document.body.appendChild(B);return K0x=B}catch(R){B=new _.H8("Failed to create sandbox iframe"),_.Tn(B)}};
Q9_=function(B){var R,V;return(V=B==null?void 0:(R=B.contentWindow)==null?void 0:R.fetch)!=null?V:window.fetch};
q6o=function(B){var R,V;return(V=B==null?void 0:(R=B.contentWindow)==null?void 0:R.JSON.parse)!=null?V:JSON.parse};
c2q=function(B){var R,V;return(V=B==null?void 0:(R=B.contentWindow)==null?void 0:R.Request)!=null?V:window.Request};
s95=function(){if(F5A()==="hidden")var B="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else F5A()==="visible"&&(B="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",A2x=null);B&&ilA(B)};
ilA=function(B){if(B==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||B==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(F0N===B)return;F0N=B}var R=9E4+Math.random()*2E3;if(B!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.B5()>R)&&F5A()==="visible"){R=-1;A2x&&(R=Math.round((0,_.P8)()-A2x));var V=String;var e=_.qN("_fact",window);e=e==null||e==-1?-1:Math.max(Date.now()-e,0);_.dn("foregroundHeartbeat",{firstActivityMs:V(e),clientDocumentNonce:Dup,index:String(r2o),lastEventDeltaMs:String(R),trigger:B});
_.mk("_fact",-1,window);r2o++;A2x=(0,_.P8)()}};
_.gfd=function(){try{return!!self.sessionStorage}catch(B){return!1}};
ZlA=function(){var B=navigator;return new Promise(function(R,V){var e;(e=B.webkitTemporaryStorage)!=null&&e.queryUsageAndQuota?B.webkitTemporaryStorage.queryUsageAndQuota(function(X,Y){R({usage:X,quota:Y})},function(X){V(X)}):V(Error("nj"))})};
miK=function(B,R){var V={errorSeverity:R.errorSeverity.toString(),wizFeatureFlags:Object.entries(R.featureFlags).join("\n")};yJI(R,V);R=R.errorSeverity;R===3?_.Tn(B,"ERROR",void 0,void 0,void 0,V):R===2&&_.Tn(B,"WARNING",void 0,void 0,void 0,V);_.k("cow_if_errors_in_popup")&&R===3&&B.message.indexOf("<If>")!==-1&&window.alert(B.message)};
$io=function(B,R,V){B.componentType!==HU&&V instanceof HTMLElement&&R&&!_.k("cow_logging_in_component_wrapper")&&OsA(V,R,!0)};
CmY=function(B,R,V){R=R===void 0?{}:R;var e,X=(e=_.D(B.commandMetadata,_.$a))==null?void 0:e.url;e=R.form||{};!V||e.element||e.skipDefaultElement||(R.form=R.form||{},R.form.element=V);if(X&&X!=="/service_ajax")return{type:0,command:B,form:R.form};if(_.k("kevlar_service_command_check")){if(_.qx(_.Oz().resolve(_.M1),B))return Object.assign({},{type:1,command:B},R)}else{var Y;if((Y=_.D(B.commandMetadata,_.$a))==null?0:Y.apiUrl)return Object.assign({},{type:1,command:B},R)}return{type:2,command:B,form:R.form}};
Pmq=function(B){if(B.form){var R=B.form,V=Object.assign({},R);R=R.element;V=(delete V.element,V);if(R)return[_.VD(R,[B.command,V,B.commandController])]}return[]};
nfo=function(B){if(B.form){var R=B.form,V=Object.assign({},R);R=R.element;V=(delete V.element,V);R&&_.eO(R,[B.command],R,V)}};
OlN=function(B,R,V){var e=new uu_(B,R),X=new yA(B,R,V);B={"/youtubei/v1/browse":new SV(B,R,V),"/youtubei/v1/player":e,"/youtubei/v1/navigation/resolve_url":new HS,"/youtubei/v1/next":X,"/youtubei/v1/guide":new Ml(V),"/youtubei/v1/search":new kQ(B,R,V),"/youtubei/v1/reel/reel_item_watch":new Do(B,R,V),"/youtubei/v1/get_watch":new fi(e,X)};B["/youtubei/v1/account/account_menu"]=new l5;B["/youtubei/v1/notification/get_notification_menu"]=new zT;return B};
d2=function(){var B=_.Oz().resolve(aH);return Promise.resolve(oNY(B,_.R5.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
BGN=function(B){return B&&(B=_.w2(_.MKu(B)))?(new URLSearchParams(B)).get("service"):null};
Li=function(B,R){_.ua(_.TT(),function(){_.zp("adl")});
_.Oz().resolve(RUA)(R);B=B.root;B.loadData&&B.loadData(R);(R==null?0:R.response)?_.GT(ZTq(),"SUCCESS"):_.KE(new _.H8("Lifecycle: No response in data",_.KQ("IS_SHELL_LOAD"),R?R.page:"NO_PAGE",R?R.endpoint:"NO_ENDPOINT"));B.polymerController.$["page-manager"].lazyPrepareCriticalPages((R==null?void 0:R.page)||"",R.endpoint);var V,e;((e=_.D(R==null?void 0:(V=R.endpoint)==null?void 0:V.commandMetadata,_.$a))==null?0:e.webPageType)&&_.g6().dispatch(_.xQ(_.D(R.endpoint.commandMetadata,_.$a).webPageType))};
VLN=function(){var B,R;return _.W(function(V){switch(V.nextAddress){case 1:B=window;if(!B.getDataPromise){V.jumpTo(2);break}_.en(V,3);return _.U(V,B.getDataPromise(),5);case 5:return V.return(V.yieldResult);case 3:return _.WR(V),_.U(V,d2(),6);case 6:return V.return(V.yieldResult);case 2:if(B.getInitialData)return R=B.getInitialData(),B.getInitialData=void 0,V.return(R);throw Error("pj`"+_.R5.location.href);}})};
Xtq=function(){_.LQ("CSI_SERVICE_NAME","youtube");_.f0({loadType:"cold"});_.k("kevlar_log_lcp")&&eUq(function(B){_.zp("lcp",B.value)})};
ptd=function(){var B=_.EJ(document.location.href,"enable");B&&B.indexOf("scraper")>-1&&_.LQ("ADD_SCRAPER_ATTRIBUTES",!0)};
bPI=function(B){var R=B.root;B=[YFq,hUY,_.vS];_.k("web_feedback_endpoint_autolog_allowlist_killswitch")&&B.push(_.Ki,tLo);WeK(function(V,e){return CmY(V,e,R)},function(V){if(!V.command)return[];
var e;((e=V.form)==null?0:e.element)?V.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},V.form,{endpoint:V.command})})):R.handleNavigate(V);return[]},B);
_.Oz().addProvider({provide:_.oC,useValue:_.eR.instance})};
jwu=function(){var B={},R={},V;for(V in Jx_){var e=_.h(_.WU(Jx_[V],void 0,"NBH2te"));B[V]=e.next().value;R[V]=e.next().value}return[B,function(X){for(var Y in X){var t=void 0;(t=R[Y])==null||t(X[Y])}}]};
_.G1I=function(B,R){var V=_.M_.getValueByKeys(B,"contents","twoColumnWatchNextResults","results","results","contents"),e=_.M_.getValueByKeys(B,"contents","twoColumnWatchNextResults","playlist","playlist")||null,X=null,Y=null;if(e)X=_.M_.getValueByKeys(e,"titleText"),Y=_.M_.unsafeClone(_.M_.getValueByKeys(e,"longBylineText")),V="",Y&&(V=_.FF(Y)),Y=_.s$(V);else if(V){V=_.h(V);for(var t=V.next();!t.done;t=V.next())t=t.value,t.videoPrimaryInfoRenderer&&(X=_.M_.getValueByKeys.apply(_.M_,[t].concat(_.MI(UXd)))),
t.videoSecondaryInfoRenderer&&(Y=_.M_.getValueByKeys.apply(_.M_,[t].concat(_.MI(NGS))))}else _.cE(Error("uj"));var b;B.currentVideoEndpoint?b=B.currentVideoEndpoint:_.cE(Error("vj"));var J;R&&(J=_.M_.getValueByKeys(R,"playabilityStatus","miniplayer","miniplayerRenderer"));B={miniplayerTitle:X,miniplayerSubtitle:Y,watchEndpoint:b,playlistData:e};J&&(B.miniplayerRenderer=J);return B};
yxp=function(B){if(B)return _.fc(B)};
_.SFK=function(){return{isFullscreen:function(){throw Error("wj");},
toggleFullscreen:function(){throw Error("xj");},
exitFullscreen:function(){throw Error("yj");},
isAutonavEnabled:function(){throw Error("zj");},
setAutonavEnabled:function(){throw Error("Aj");},
isAutoplaySetExplicitly:function(){throw Error("Bj");}}};
HP_=function(B){return B.videoDuration?B.numTaps>1&&B.tapDirection!==0?_.IH(B.draggedTime/B.videoDuration,0,1):_.IH((B.playedTime||0)/B.videoDuration,0,1):0};
ML_=function(B){return B.videoDuration?B.isDragging||B.numTaps>1&&B.tapDirection!==0?_.IH(B.draggedTime/B.videoDuration,0,1):_.IH((B.playedTime||0)/B.videoDuration,0,1):0};
DXd=function(B){var R,V,e;return _.D(B==null?void 0:(R=B.markersMap)==null?void 0:(V=R.find(function(X){return X.key==="HEATSEEKER"}))==null?void 0:(e=V.value)==null?void 0:e.heatmap,k1A)};
fH_=function(B){var R,V;return(V=(R=DXd(B))==null?void 0:R.heatMarkersDecorations)!=null?V:[]};
lHp=function(B){if(_.k("mweb_supported_chapters_killswitch"))return!0;var R;return!!(B==null?0:(R=B.markersMap)==null?0:R.find(function(V){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(V.key)}))};
_.zUp=function(B){var R=Object,V=R.assign,e;B={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(e=B==null?void 0:B.getPlayerState())!=null?e:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return V.call(R,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},B,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
aHq=function(B){return function(R){var V=B(),e,X=(e=V.playerApi)==null?void 0:e.getPlayerState();R&&R!==V.playerState&&(R===1||R===2)&&V.setState({playerState:X})}};
wt_=function(B){return function(R){var V=B(),e=V.playerApi;e&&(R==null?void 0:R.type)==="newdata"&&(dXN&&(clearTimeout(dXN),dXN=void 0),_.k("web_shorts_use_progress_state_for_gapless")?(R=e==null?void 0:e.getProgressState(R==null?void 0:R.playertype),R=R.seekableEnd-R.seekableStart):R=e==null?void 0:e.getDuration(R==null?void 0:R.playertype),V.setState({playedTime:0,videoDuration:R}))}};
TGp=function(B){return function(R){var V=B(),e=V.playerApi;if(e){var X=e.getPresentingPlayerType();_.k("web_shorts_use_progress_state_for_gapless")?(e=e.getProgressState(X),e=e.seekableEnd-e.seekableStart):e=e.getDuration(X);V.setState({playedTime:R,videoDuration:e})}}};
vNZ=function(B){var R=B.element;var V=B.veType;var e=B.storedVisualElement===void 0?null:B.storedVisualElement;var X=B.elementIndex===void 0?0:B.elementIndex;B=B.clientYouTubeData;var Y=_.TE();Y!==xX5&&(Leq.clear(),xX5=Y);if(R.visualElement&&Leq.has(R.visualElement))return null;if(e&&Leq.has(e))return R.visualElement=e,null;V=_.tJ(_.WK(),{veType:V,elementIndex:X,clientYouTubeData:B});if(!V)return null;R.visualElement=V;Leq.add(V);return V};
_.ET=function(B,R,V,e){V=V===void 0?null:V;e=e===void 0?eLp:e;var X=X===void 0?null:X;HK(function(){if(R){V instanceof Function&&(V=V());var Y=vNZ({element:R,veType:B,storedVisualElement:V,clientYouTubeData:void 0});Y&&(YwY(R,X),e(Y))}})};
IHA=function(B){_.ET(112394,B,function(){return Ke5},function(R){Ke5=R})};
qFY=function(B,R){if(!B)return[];var V,e,X;B=((V=B.markersMap)==null?void 0:(e=V.find(function(Y){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(Y.key)}))==null?void 0:(X=e.value)==null?void 0:X.chapters)||[];
!ENo(B)||(R==null?0:R.ignoreStub)||(B=[QwY()].concat(_.MI(B)));return B};
QwY=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
ENo=function(B){if(B.length===0)return!1;var R;return((R=_.D(B[0],QA))==null?void 0:R.timeRangeStartMillis)!==0};
ql=function(B){return B?B.timeRangeStartMillis||0:0};
Axq=function(B,R){if(B.isDragging&&R)return B=cxN(B,R),B===-1?QwY():qFY(R)[B]};
cxN=function(B,R){return B.isDragging&&R?qFY(R,{ignoreStub:!0}).findIndex(function(V,e,X){V=iPI(B);return swY(V,X,e).scrubberHovering}):-1};
iPI=function(B){return Object.assign({},B,{videoDuration:B.videoDuration*1E3,playedTime:B.playedTime*1E3,draggedTime:B.draggedTime*1E3})};
swY=function(B,R,V){var e=ql(_.D(R[V],QA));R=ql(_.D(R[V+1],QA))||B.videoDuration;V=B.isDragging;var X;if(X=B.isDragging)X=B.draggedTime,X=X!==null&&X>=e&&X<R;var Y=B.playedTime;return Y!==null&&Y>=e&&Y<R?{videoPosition:"active",isScrubbing:V,scrubberHovering:X}:B.playedTime<e?{videoPosition:"pending",isScrubbing:V,scrubberHovering:X}:{videoPosition:"seen",isScrubbing:V,scrubberHovering:X}};
Feo=function(B,R){return B.videoPosition==="seen"||(R===void 0?0:R)>0};
rxd=function(B,R,V){R=B/R.storyboardInterval;var e=qFY(V);if(!e.length)return-R*72;V=0;e=_.h(e);for(var X=e.next();!X.done;X=e.next())if(ql(_.D(X.value,QA))/1E3<B)V++;else break;return-(R*72)-V*56};
gNx=function(B){return B?B.width/B.columns:0};
ZPu=function(B){return B.isHovering?B.hoveredTime:B.draggedTime};
mX_=function(B,R){B=B.draggedTime*1E3;return B>=R.visibleTimeRangeStartMillis&&B<=R.visibleTimeRangeEndMillis};
_.$XK=function(B){if(B===void 0||Number.isNaN(B))return"--:--";var R=Math.abs(Math.floor(B)),V=Math.floor(R/86400),e=Math.floor(R%86400/3600),X=Math.floor(R%3600/60);R=Math.floor(R%60);var Y="";V>0&&(Y+=V+":",e<10&&(Y+="0"));if(V>0||e>0)Y+=e+":",X<10&&(Y+="0");Y+=X+":";R<10&&(Y+="0");Y+=R;return B>=0?Y:"-"+Y};
Cr_=function(B,R){return function(){var V=ZPu(B());var e=R();var X=B().playerApi;if(X&&X.getNumberOfStoryboardLevels()!==0){var Y=X.getStoryboardFrameIndex(V,1);Y!==-1?e=X.getStoryboardFrame(Y,1):(V=X.getStoryboardFrameIndex(V,0),X=X.getStoryboardFrame(V,0),e&&X&&(X.height*=3,X.width*=3),e=X)}else e=null;if(!e)return null;R()&&(e.width=90*e.columns,e.height=160*e.rows);return e}};
_.cS=function(B){if(!B||B.getVideoData)return B};
PrA=function(){var B;return{playerApi:(B=_.Yx())!=null?B:void 0}};
_.BDu=function(B){function R(n){n!==0||S?n>50&&(S||!f)?(M(!1),z(!0)):n<=50&&(S||f)&&(M(!1),z(!1)):M(!0)}
function V(){var n;return _.W(function(Yd){if(Yd.nextAddress==1)return _.U(Yd,_.pO(),2);(n=Yd.yieldResult)&&(n.isMuted()?M(!0):M(!1));_.b3(Yd)})}
var e=B.noSlider;var X=B.orientation;B=_.Zh();var Y=_.Zh(),t=_.mA(),b=_.h(W7(!1)),J=b.next().value,G=b.next().value,y=_.h(W7(!1));b=y.next().value;y=y.next().value;var S=b,M=y;y=_.h(W7(!0));b=y.next().value;y=y.next().value;var f=b,z=y;b=X==="vertical_down";_.zM(function(){function n(){G(!0)}
function Yd(){G(!1)}
e?(V(),R(S?0:100)):t&&t.value&&(t.value.addEventListener("focus",n),t.value.addEventListener("focusout",Yd),nNd(t.value).then(function(){R(Number(uZ_(t.value)))}));
Y&&Y.value&&(Y.value.addEventListener("focus",n),Y.value.addEventListener("focusout",Yd));return function(){var kd;t==null||(kd=t.value)==null||kd.removeEventListener("focus",n);var a5;t==null||(a5=t.value)==null||a5.removeEventListener("focusout",Yd);Y.value.removeEventListener("focus",n);Y.value.removeEventListener("focusout",Yd)}});
var T=_.Wr(function(){if(t&&t.value){var n=Number(uZ_(t.value));OPd(n);t.value.style.setProperty("--gradient-percent",n+"%");R(n)}return!1});
y={};y=(y.ytdDesktopShortsVolumeControlsHost=!0,y.ytdDesktopShortsVolumeControlsHostVertical=b,y.ytdDesktopShortsVolumeControlsHostExpanded=J,y);var L={},Q=(L.ytdDesktopShortsVolumeControlsSliderContainer=!0,L.ytdDesktopShortsVolumeControlsSliderContainerExpanded=J,L.ytdDesktopShortsVolumeControlsSliderContainerVertical=b,L.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=X==="vertical_down",L.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=J&&b,L);X={};var q=(X.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,X.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=e?!1:J,X);J={};J=(J.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=b,J);X=_.Wr(function(){G(!0)});
L=_.Wr(function(){G(!1)});
var m=_.Wr(function(){if(t&&t.value||e)oOo(t.value,S,e),M(!S);return!1}),g=_.k("web_shorts_keyboard_enable_mute_shortcut")?S?_.Wz("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.Wz("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):S?_.Wz("UNMUTE_VOLUME",void 0,"Unmute"):_.Wz("MUTE_VOLUME",void 0,"Mute"),Vu={sources:[{clientResource:{imageName:S?"VOLUME_OFF_FILLED":f?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.N("desktop-shorts-volume-controls",{"on:pointerleave":L,class:_.YB(y),el:B},gz(!b,function(){return _.N("div",{class:_.YB(q)})}),_.N("div",{class:_.YB(J)},_.N("button",{"aria-label":g,
title:g,el:Y,"on:click":m,"on:pointerenter":X,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Vu?_.N(_.ia,{data:Vu,alt:g,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),gz(!e,function(){return _.N("div",{class:_.YB(Q)},_.N("input",{"aria-label":_.Wz("VOLUME"),title:_.Wz("VOLUME"),el:t,"on:input":T,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
nNd=function(B){var R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,_.pO(),2);R=e.yieldResult;V=50;R&&(V=R.getVolume(),R.isMuted()?Rmu(B,0):Rmu(B,V));_.b3(e)})};
OPd=function(B){var R;_.W(function(V){if(V.nextAddress==1)return _.U(V,_.pO(),2);if(R=V.yieldResult)R.unMute(!0),R.setVolume(B,!0);_.b3(V)})};
Rmu=function(B,R){B&&(B.value=""+R,B.style.setProperty("--gradient-percent",R+"%"))};
uZ_=function(B){var R;return(R=B==null?void 0:B.value)!=null?R:0};
oOo=function(B,R,V){var e;_.W(function(X){if(X.nextAddress==1)return _.U(X,_.pO(),2);e=X.yieldResult;R&&e?(e.unMute(!0),!V&&B&&Rmu(B,e.getVolume())):e&&(e.mute(!0),!V&&B&&Rmu(B,0));_.b3(X)})};
Vx_=function(){var B;_.W(function(R){if(R.nextAddress==1)return _.U(R,_.pO(),2);B=R.yieldResult;if(!B)return R.return();B.isMuted()?B.unMute(!0):B.mute(!0);_.b3(R)})};
emI=function(B){var R=_.Oz().resolve(_.An).getPlayerElement();R&&B&&(B===1?R.pause():R.play())};
XQo=function(B){_.Bz(B,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
pQu=function(B){_.Bz(B,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
hmI=function(B){return _.Dk(B.document.body,function(){return _.N(YEu,null)})};
txu=function(){var B=window.performance.getEntriesByType("navigation");return B?B.map(function(R){return R.type}).includes("reload"):!1};
yPu=function(){i5(i5(i5(i5(i5(i5(i5(_.Oz().resolve(_.sT),_.Wvx),_.bVY),_.JPN),_.jUq),_.Uvd),_.NDI),_.GSS)};
SES=function(B,R){R=R===void 0?!1:R;var V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return R||!_.k("kevlar_shorts_seedless_retry_initial_load")||(V=window,e=!(!V.getDataPromise&&!V.getInitialData),e)?_.U(t,VLN(),2):(setTimeout(SES.bind(window,B,!0),1E3),t.return());if(t.nextAddress!=3)return X=t.yieldResult,_.U(t,HVo(X),3);Y=t.yieldResult;Li(B,Y);_.b3(t)})};
HVo=function(B){var R;if((R=B.response)==null||!R.replacementEndpoint)return _.XT(B);R=_.Oz().resolve(aH);B=B.response;_.D(B.replacementEndpoint,_.GF)&&B.sequenceContinuation&&(_.D(B.replacementEndpoint,_.GF).sequenceParams=B.sequenceContinuation);return FM(R,B.replacementEndpoint,{},_.R5.location.href,"shorts",function(){},function(){return!1})};
MxI=function(B){var R=_.g6(),V,e=_.D((V=B.response)==null?void 0:V.frameworkUpdates,FE),X;V=_.D((X=B.playerResponse)==null?void 0:X.frameworkUpdates,FE);var Y;B=_.D((Y=B.reelWatchSequenceResponse)==null?void 0:Y.frameworkUpdates,FE);e&&_.bz(e,R);V&&_.bz(V,R);B&&_.bz(B,R)};
kSu=function(B){var R;_.k("enable_redirect_linking_for_desktop_web_client")&&((R=window.location.hash)==null?0:R.includes("redirect_state"))&&B.url&&(B.url=B.url.toString()+window.location.hash)};
lR5=function(B){var R=_.Oz(),V=R.resolve(aH);R=R.resolve(_.DvA);B.endpoint&&(V=fRd(V,B.endpoint),V.content&&B.response&&_.r2(R,B.response,V.content),V.player&&B.playerResponse&&_.r2(R,B.playerResponse,V.player),V.reelSequence&&B.reelWatchSequenceResponse&&_.r2(R,B.reelWatchSequenceResponse,V.reelSequence))};
g2=function(B,R){MxI(R);var V;(R==null?0:R.url)&&((V=window.location.hash)==null?0:V.includes("redirect_state"))&&(kSu(R),(V=BGN(R.url))&&_.oF(B.root,"yt-initialize-third-party",[V,R]));lR5(R);V=_.Oz();var e=V.resolve(zmx);R.playerResponse&&V.resolve(aRI).handleResponse(R.playerResponse);if(R.playerResponse){V=void 0;if(_.k("ab_v_vid_sig")&&R.endpoint){var X,Y=(X=_.D(R.endpoint,_.sI))!=null?X:_.D(R.endpoint,_.GF);Y&&(V=Y.videoId)}dvY(e,R.playerResponse,V)}R.playerResponse&&YHY(R.playerResponse)&&
_.k("web_enable_ab_rsp_cl")?khI().then(function(){wQx(e,R.playerResponse);Li(B,R)}):Li(B,R)};
xvq=function(B){if(B=B.root.data){var R=_.Oz().resolve(TDK);B.endpoint&&(B.response&&R.handleResponse(B.response,void 0,document.querySelector("ytd-app")),B.playerResponse&&R.handleResponse(B.playerResponse),B.reelWatchSequenceResponse&&R.handleResponse(B.reelWatchSequenceResponse))}};
LvN=function(B){var R,V,e,X,Y,t;return _.W(function(b){switch(b.nextAddress){case 1:R=window;if(!R.getDataPromise){b.jumpTo(2);break}_.en(b,3);return _.U(b,R.getDataPromise(),5);case 5:V=b.yieldResult;g2(B,V);_.c8(b,4);break;case 3:return _.WR(b),_.U(b,d2(),6);case 6:e=b.yieldResult,Li(B,e);case 4:return b.return();case 2:if(!_.k("sw_nav_preload_pbj")){b.jumpTo(7);break}R.fetchInitialData=function(){var J;return _.W(function(G){if(G.nextAddress==1)return _.U(G,d2(),2);J=G.yieldResult;Li(B,J);_.b3(G)})};
if(R.getInitialData){R.loadInitialData=function(J){g2(B,J)};
X=R.getInitialData();R.getInitialData=void 0;g2(B,X);b.jumpTo(8);break}R.fetchInitialData=void 0;return _.U(b,d2(),9);case 9:Y=b.yieldResult,Li(B,Y);case 8:return b.return();case 7:R.getInitialData?(t=R.getInitialData(),R.getInitialData=void 0,g2(B,t)):R.loadInitialData=function(J){g2(B,J)},_.b3(b)}})};
vOd=function(B){var R=0;return function(){return R<B.length?{done:!1,value:B[R++]}:{done:!0}}};
Kvo=typeof Object.defineProperties=="function"?Object.defineProperty:function(B,R,V){if(B==Array.prototype||B==Object.prototype)return B;B[R]=V.value;return B};
IRK=function(B){B=["object"==typeof globalThis&&globalThis,B,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var R=0;R<B.length;++R){var V=B[R];if(V&&V.Math==Math)return V}throw Error("a");};
_.mh=IRK(this);Zo=function(B,R){if(R)a:{var V=_.mh;B=B.split(".");for(var e=0;e<B.length-1;e++){var X=B[e];if(!(X in V))break a;V=V[X]}B=B[B.length-1];e=V[B];R=R(e);R!=e&&R!=null&&Kvo(V,B,{configurable:!0,writable:!0,value:R})}};
Zo("Symbol",function(B){if(B)return B;var R=function(Y,t){this.$jscomp$symbol$id_=Y;Kvo(this,"description",{configurable:!0,writable:!0,value:t})};
R.prototype.toString=function(){return this.$jscomp$symbol$id_};
var V="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",e=0,X=function(Y){if(this instanceof X)throw new TypeError("b");return new R(V+(Y||"")+"_"+e++,Y)};
return X});
Zo("Symbol.iterator",function(B){if(B)return B;B=Symbol("c");for(var R="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),V=0;V<R.length;V++){var e=_.mh[R[V]];typeof e==="function"&&typeof e.prototype[B]!="function"&&Kvo(e.prototype,B,{configurable:!0,writable:!0,value:function(){return EOp(vOd(this))}})}return B});
Zo("Symbol.asyncIterator",function(B){return B?B:Symbol("d")});
var EOp=function(B){B={next:B};B[Symbol.iterator]=function(){return this};
return B},QUd=typeof Object.create=="function"?Object.create:function(B){var R=function(){};
R.prototype=B;return new R},qEo=function(){function B(){function V(){}
new V;Reflect.construct(V,[],function(){});
return new V instanceof V}
if(typeof Reflect!="undefined"&&Reflect.construct){if(B())return Reflect.construct;var R=Reflect.construct;return function(V,e,X){V=R(V,e);X&&Reflect.setPrototypeOf(V,X.prototype);return V}}return function(V,e,X){X===void 0&&(X=V);
X=QUd(X.prototype||Object.prototype);return Function.prototype.apply.call(V,X,e)||X}}(),cP_;
if(typeof Object.setPrototypeOf=="function")cP_=Object.setPrototypeOf;else{var APd;a:{var iVd={a:!0},sUI={};try{sUI.__proto__=iVd;APd=sUI.a;break a}catch(B){}APd=!1}cP_=APd?function(B,R){B.__proto__=R;if(B.__proto__!==R)throw new TypeError("e`"+B);return B}:null}mN=cP_;
_.l=function(B,R){B.prototype=QUd(R.prototype);B.prototype.constructor=B;if(mN)mN(B,R);else for(var V in R)if(V!="prototype")if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(R,V);e&&Object.defineProperty(B,V,e)}else B[V]=R[V];B.superClass_=R.prototype};
_.h=function(B){var R=typeof Symbol!="undefined"&&Symbol.iterator&&B[Symbol.iterator];if(R)return R.call(B);if(typeof B.length=="number")return{next:vOd(B)};throw Error("f`"+String(B));};
Fn=function(B){for(var R,V=[];!(R=B.next()).done;)V.push(R.value);return V};
_.MI=function(B){return B instanceof Array?B:Fn(_.h(B))};
_.$Q=function(B){return Fvo(B,B)};
Fvo=function(B,R){B.raw=R;Object.freeze&&(Object.freeze(B),Object.freeze(R));return B};
Ci=function(B,R){return Object.prototype.hasOwnProperty.call(B,R)};
rPp=typeof Object.assign=="function"?Object.assign:function(B,R){for(var V=1;V<arguments.length;V++){var e=arguments[V];if(e)for(var X in e)Ci(e,X)&&(B[X]=e[X])}return B};
Zo("Object.assign",function(B){return B||rPp});
var gO5=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},ZVA=function(B){if(B.isRunning_)throw new TypeError("h");
B.isRunning_=!0};
gO5.prototype.JSC$6638_next_=function(B){this.yieldResult=B};
var mvu=function(B,R){B.abruptCompletion_={exception:R,isException:!0};B.nextAddress=B.catchAddress_||B.finallyAddress_};
gO5.prototype.return=function(B){this.abruptCompletion_={return:B};this.nextAddress=this.finallyAddress_};
_.U=function(B,R,V){B.nextAddress=V;return{value:R}};
gO5.prototype.jumpTo=function(B){this.nextAddress=B};
_.b3=function(B){B.nextAddress=0};
_.en=function(B,R,V){B.catchAddress_=R;V!=void 0&&(B.finallyAddress_=V)};
_.Yb=function(B,R){B.catchAddress_=0;B.finallyAddress_=R||0};
_.c8=function(B,R,V){B.nextAddress=R;B.catchAddress_=V||0};
_.WR=function(B,R){B.catchAddress_=R||0;R=B.abruptCompletion_.exception;B.abruptCompletion_=null;return R};
_.pr=function(B,R,V,e){e?B.finallyContexts_[e]=B.abruptCompletion_:B.finallyContexts_=[B.abruptCompletion_];B.catchAddress_=R||0;B.finallyAddress_=V||0};
_.tq=function(B,R,V){V=B.finallyContexts_.splice(V||0)[0];(V=B.abruptCompletion_=B.abruptCompletion_||V)?V.isException?B.nextAddress=B.catchAddress_||B.finallyAddress_:V.jumpTo!=void 0&&B.finallyAddress_<V.jumpTo?(B.nextAddress=V.jumpTo,B.abruptCompletion_=null):B.nextAddress=B.finallyAddress_:B.nextAddress=R};
$vK=function(B){this.JSC$6643_context_=new gO5;this.program_=B};
PnK=function(B,R){ZVA(B.JSC$6643_context_);var V=B.JSC$6643_context_.yieldAllIterator_;if(V)return CnY(B,"return"in V?V["return"]:function(e){return{value:e,done:!0}},R,B.JSC$6643_context_.return);
B.JSC$6643_context_.return(R);return PS(B)};
CnY=function(B,R,V,e){try{var X=R.call(B.JSC$6643_context_.yieldAllIterator_,V);if(!(X instanceof Object))throw new TypeError("g`"+X);if(!X.done)return B.JSC$6643_context_.isRunning_=!1,X;var Y=X.value}catch(t){return B.JSC$6643_context_.yieldAllIterator_=null,mvu(B.JSC$6643_context_,t),PS(B)}B.JSC$6643_context_.yieldAllIterator_=null;e.call(B.JSC$6643_context_,Y);return PS(B)};
PS=function(B){for(;B.JSC$6643_context_.nextAddress;)try{var R=B.program_(B.JSC$6643_context_);if(R)return B.JSC$6643_context_.isRunning_=!1,{value:R.value,done:!1}}catch(V){B.JSC$6643_context_.yieldResult=void 0,mvu(B.JSC$6643_context_,V)}B.JSC$6643_context_.isRunning_=!1;if(B.JSC$6643_context_.abruptCompletion_){R=B.JSC$6643_context_.abruptCompletion_;B.JSC$6643_context_.abruptCompletion_=null;if(R.isException)throw R.exception;return{value:R.return,done:!0}}return{value:void 0,done:!0}};
nON=function(B){this.next=function(R){ZVA(B.JSC$6643_context_);B.JSC$6643_context_.yieldAllIterator_?R=CnY(B,B.JSC$6643_context_.yieldAllIterator_.next,R,B.JSC$6643_context_.JSC$6638_next_):(B.JSC$6643_context_.JSC$6638_next_(R),R=PS(B));return R};
this.throw=function(R){ZVA(B.JSC$6643_context_);B.JSC$6643_context_.yieldAllIterator_?R=CnY(B,B.JSC$6643_context_.yieldAllIterator_["throw"],R,B.JSC$6643_context_.JSC$6638_next_):(mvu(B.JSC$6643_context_,R),R=PS(B));return R};
this.return=function(R){return PnK(B,R)};
this[Symbol.iterator]=function(){return this}};
_.Hl5=function(B,R){R=new nON(new $vK(R));mN&&B.prototype&&mN(R,B.prototype);return R};
uQp=function(B){function R(e){return B.next(e)}
function V(e){return B.throw(e)}
return new Promise(function(e,X){function Y(t){t.done?e(t.value):Promise.resolve(t.value).then(R,V).then(Y,X)}
Y(B.next())})};
_.W=function(B){return uQp(new nON(new $vK(B)))};
gvS=function(B){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return B};
this.next=function(R){return Promise.resolve(B.next(R))};
this["throw"]=function(R){return new Promise(function(V,e){var X=B["throw"];X!==void 0?V(X.call(B,R)):(V=B["return"],V!==void 0&&V.call(B),e(new TypeError("i")))})};
B["return"]!==void 0&&(this["return"]=function(R){return Promise.resolve(B["return"](R))})};
_.HB=function(){for(var B=Number(this),R=[],V=B;V<arguments.length;V++)R[V-B]=arguments[V];return R};
_.MiY=function(B){return B};
Zo("globalThis",function(B){return B||_.mh});
Zo("Reflect",function(B){return B?B:{}});
Zo("Reflect.construct",function(){return qEo});
Zo("Reflect.setPrototypeOf",function(B){return B?B:mN?function(R,V){try{return mN(R,V),!0}catch(e){return!1}}:null});
Zo("Promise",function(B){function R(){this.batch_=null}
function V(t){return t instanceof X?t:new X(function(b){b(t)})}
if(B&&(typeof _.mh.PromiseRejectionEvent!=="undefined"||!_.mh.Promise||_.mh.Promise.toString().indexOf("[native code]")===-1))return B;R.prototype.asyncExecute=function(t){if(this.batch_==null){this.batch_=[];var b=this;this.asyncExecuteFunction(function(){b.executeBatch_()})}this.batch_.push(t)};
var e=_.mh.setTimeout;R.prototype.asyncExecuteFunction=function(t){e(t,0)};
R.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var b=0;b<t.length;++b){var J=t[b];t[b]=null;try{J()}catch(G){this.asyncThrow_(G)}}}this.batch_=null};
R.prototype.asyncThrow_=function(t){this.asyncExecuteFunction(function(){throw t;})};
var X=function(t){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var b=this.createResolveAndReject_();try{t(b.resolve,b.reject)}catch(J){b.reject(J)}};
X.prototype.createResolveAndReject_=function(){function t(G){return function(y){J||(J=!0,G.call(b,y))}}
var b=this,J=!1;return{resolve:t(this.resolveTo_),reject:t(this.JSC$6659_reject_)}};
X.prototype.resolveTo_=function(t){if(t===this)this.JSC$6659_reject_(new TypeError("j"));else if(t instanceof X)this.settleSameAsPromise_(t);else{a:switch(typeof t){case "object":var b=t!=null;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}};
X.prototype.resolveToNonPromiseObj_=function(t){var b=void 0;try{b=t.then}catch(J){this.JSC$6659_reject_(J);return}typeof b=="function"?this.settleSameAsThenable_(b,t):this.fulfill_(t)};
X.prototype.JSC$6659_reject_=function(t){this.settle_(2,t)};
X.prototype.fulfill_=function(t){this.settle_(1,t)};
X.prototype.settle_=function(t,b){if(this.state_!=0)throw Error("k`"+t+"`"+b+"`"+this.state_);this.state_=t;this.result_=b;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
X.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;e(function(){if(t.notifyUnhandledRejection_()){var b=_.mh.console;typeof b!=="undefined"&&b.error(t.result_)}},1)};
X.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var t=_.mh.CustomEvent,b=_.mh.Event,J=_.mh.dispatchEvent;if(typeof J==="undefined")return!0;typeof t==="function"?t=new t("unhandledrejection",{cancelable:!0}):typeof b==="function"?t=new b("unhandledrejection",{cancelable:!0}):(t=_.mh.document.createEvent("CustomEvent"),t.initCustomEvent("unhandledrejection",!1,!0,t));t.promise=this;t.reason=this.result_;return J(t)};
X.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var t=0;t<this.onSettledCallbacks_.length;++t)Y.asyncExecute(this.onSettledCallbacks_[t]);this.onSettledCallbacks_=null}};
var Y=new R;X.prototype.settleSameAsPromise_=function(t){var b=this.createResolveAndReject_();t.callWhenSettled_(b.resolve,b.reject)};
X.prototype.settleSameAsThenable_=function(t,b){var J=this.createResolveAndReject_();try{t.call(b,J.resolve,J.reject)}catch(G){J.reject(G)}};
X.prototype.then=function(t,b){function J(M,f){return typeof M=="function"?function(z){try{G(M(z))}catch(T){y(T)}}:f}
var G,y,S=new X(function(M,f){G=M;y=f});
this.callWhenSettled_(J(t,G),J(b,y));return S};
X.prototype.catch=function(t){return this.then(void 0,t)};
X.prototype.callWhenSettled_=function(t,b){function J(){switch(G.state_){case 1:t(G.result_);break;case 2:b(G.result_);break;default:throw Error("l`"+G.state_);}}
var G=this;this.onSettledCallbacks_==null?Y.asyncExecute(J):this.onSettledCallbacks_.push(J);this.isRejectionHandled_=!0};
X.resolve=V;X.reject=function(t){return new X(function(b,J){J(t)})};
X.race=function(t){return new X(function(b,J){for(var G=_.h(t),y=G.next();!y.done;y=G.next())V(y.value).callWhenSettled_(b,J)})};
X.all=function(t){var b=_.h(t),J=b.next();return J.done?V([]):new X(function(G,y){function S(z){return function(T){M[z]=T;f--;f==0&&G(M)}}
var M=[],f=0;do M.push(void 0),f++,V(J.value).callWhenSettled_(S(M.length-1),y),J=b.next();while(!J.done)})};
return X});
var ni=function(B,R,V){if(B==null)throw new TypeError("m`"+V);if(R instanceof RegExp)throw new TypeError("n`"+V);return B+""};
Zo("String.prototype.startsWith",function(B){return B?B:function(R,V){var e=ni(this,R,"startsWith"),X=e.length,Y=R.length;V=Math.max(0,Math.min(V|0,e.length));for(var t=0;t<Y&&V<X;)if(e[V++]!=R[t++])return!1;return t>=Y}});
Zo("Object.setPrototypeOf",function(B){return B||mN});
Zo("Symbol.dispose",function(B){return B?B:Symbol("o")});
Zo("SuppressedError",function(B){function R(V,e,X){if(!(this instanceof R))return new R(V,e,X);X=Error(X);"stack"in X&&(this.stack=X.stack);this.message=X.message;this.error=V;this.suppressed=e}
if(B)return B;_.l(R,Error);R.prototype.name="SuppressedError";return R});
var OVo=function(B,R,V){B instanceof String&&(B=String(B));for(var e=B.length,X=0;X<e;X++){var Y=B[X];if(R.call(V,Y,X,B))return{i:X,v:Y}}return{i:-1,v:void 0}};
Zo("Array.prototype.find",function(B){return B?B:function(R,V){return OVo(this,R,V).v}});
Zo("WeakMap",function(B){function R(){}
function V(J){var G=typeof J;return G==="object"&&J!==null||G==="function"}
function e(J){if(!Ci(J,Y)){var G=new R;Kvo(J,Y,{value:G})}}
function X(J){var G=Object[J];G&&(Object[J]=function(y){if(y instanceof R)return y;Object.isExtensible(y)&&e(y);return G(y)})}
if(function(){if(!B||!Object.seal)return!1;try{var J=Object.seal({}),G=Object.seal({}),y=new B([[J,2],[G,3]]);if(y.get(J)!=2||y.get(G)!=3)return!1;y.delete(J);y.set(G,4);return!y.has(J)&&y.get(G)==4}catch(S){return!1}}())return B;
var Y="$jscomp_hidden_"+Math.random();X("freeze");X("preventExtensions");X("seal");var t=0,b=function(J){this.JSC$6666_id_=(t+=Math.random()+1).toString();if(J){J=_.h(J);for(var G;!(G=J.next()).done;)G=G.value,this.set(G[0],G[1])}};
b.prototype.set=function(J,G){if(!V(J))throw Error("p");e(J);if(!Ci(J,Y))throw Error("q`"+J);J[Y][this.JSC$6666_id_]=G;return this};
b.prototype.get=function(J){return V(J)&&Ci(J,Y)?J[Y][this.JSC$6666_id_]:void 0};
b.prototype.has=function(J){return V(J)&&Ci(J,Y)&&Ci(J[Y],this.JSC$6666_id_)};
b.prototype.delete=function(J){return V(J)&&Ci(J,Y)&&Ci(J[Y],this.JSC$6666_id_)?delete J[Y][this.JSC$6666_id_]:!1};
return b});
Zo("Map",function(B){if(function(){if(!B||typeof B!="function"||!B.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),J=new B(_.h([[b,"s"]]));if(J.get(b)!="s"||J.size!=1||J.get({x:4})||J.set({x:4},"t")!=J||J.size!=2)return!1;var G=J.entries(),y=G.next();if(y.done||y.value[0]!=b||y.value[1]!="s")return!1;y=G.next();return y.done||y.value[0].x!=4||y.value[1]!="t"||!G.next().done?!1:!0}catch(S){return!1}}())return B;
var R=new WeakMap,V=function(b){this[0]={};this[1]=Y();this.size=0;if(b){b=_.h(b);for(var J;!(J=b.next()).done;)J=J.value,this.set(J[0],J[1])}};
V.prototype.set=function(b,J){b=b===0?0:b;var G=e(this,b);G.list||(G.list=this[0][G.id]=[]);G.entry?G.entry.value=J:(G.entry={next:this[1],previous:this[1].previous,head:this[1],key:b,value:J},G.list.push(G.entry),this[1].previous.next=G.entry,this[1].previous=G.entry,this.size++);return this};
V.prototype.delete=function(b){b=e(this,b);return b.entry&&b.list?(b.list.splice(b.index,1),b.list.length||delete this[0][b.id],b.entry.previous.next=b.entry.next,b.entry.next.previous=b.entry.previous,b.entry.head=null,this.size--,!0):!1};
V.prototype.clear=function(){this[0]={};this[1]=this[1].previous=Y();this.size=0};
V.prototype.has=function(b){return!!e(this,b).entry};
V.prototype.get=function(b){return(b=e(this,b).entry)&&b.value};
V.prototype.entries=function(){return X(this,function(b){return[b.key,b.value]})};
V.prototype.keys=function(){return X(this,function(b){return b.key})};
V.prototype.values=function(){return X(this,function(b){return b.value})};
V.prototype.forEach=function(b,J){for(var G=this.entries(),y;!(y=G.next()).done;)y=y.value,b.call(J,y[1],y[0],this)};
V.prototype[Symbol.iterator]=V.prototype.entries;var e=function(b,J){var G=J&&typeof J;G=="object"||G=="function"?R.has(J)?G=R.get(J):(G=""+ ++t,R.set(J,G)):G="p_"+J;var y=b[0][G];if(y&&Ci(b[0],G))for(b=0;b<y.length;b++){var S=y[b];if(J!==J&&S.key!==S.key||J===S.key)return{id:G,list:y,index:b,entry:S}}return{id:G,list:y,index:-1,entry:void 0}},X=function(b,J){var G=b[1];
return EOp(function(){if(G){for(;G.head!=b[1];)G=G.previous;for(;G.next!=G.head;)return G=G.next,{done:!1,value:J(G)};G=null}return{done:!0,value:void 0}})},Y=function(){var b={};
return b.previous=b.next=b.head=b},t=0;
return V});
Zo("Set",function(B){if(function(){if(!B||typeof B!="function"||!B.prototype.entries||typeof Object.seal!="function")return!1;try{var V=Object.seal({x:4}),e=new B(_.h([V]));if(!e.has(V)||e.size!=1||e.add(V)!=e||e.size!=1||e.add({x:4})!=e||e.size!=2)return!1;var X=e.entries(),Y=X.next();if(Y.done||Y.value[0]!=V||Y.value[1]!=V)return!1;Y=X.next();return Y.done||Y.value[0]==V||Y.value[0].x!=4||Y.value[1]!=Y.value[0]?!1:X.next().done}catch(t){return!1}}())return B;
var R=function(V){this.JSC$6680_map_=new Map;if(V){V=_.h(V);for(var e;!(e=V.next()).done;)this.add(e.value)}this.size=this.JSC$6680_map_.size};
R.prototype.add=function(V){V=V===0?0:V;this.JSC$6680_map_.set(V,V);this.size=this.JSC$6680_map_.size;return this};
R.prototype.delete=function(V){V=this.JSC$6680_map_.delete(V);this.size=this.JSC$6680_map_.size;return V};
R.prototype.clear=function(){this.JSC$6680_map_.clear();this.size=0};
R.prototype.has=function(V){return this.JSC$6680_map_.has(V)};
R.prototype.entries=function(){return this.JSC$6680_map_.entries()};
R.prototype.values=function(){return this.JSC$6680_map_.values()};
R.prototype.keys=R.prototype.values;R.prototype[Symbol.iterator]=R.prototype.values;R.prototype.forEach=function(V,e){var X=this;this.JSC$6680_map_.forEach(function(Y){return V.call(e,Y,Y,X)})};
return R});
Zo("Math.log2",function(B){return B?B:function(R){return Math.log(R)/Math.LN2}});
Zo("Object.values",function(B){return B?B:function(R){var V=[],e;for(e in R)Ci(R,e)&&V.push(R[e]);return V}});
Zo("Object.is",function(B){return B?B:function(R,V){return R===V?R!==0||1/R===1/V:R!==R&&V!==V}});
Zo("Array.prototype.includes",function(B){return B?B:function(R,V){var e=this;e instanceof String&&(e=String(e));var X=e.length;V=V||0;for(V<0&&(V=Math.max(V+X,0));V<X;V++){var Y=e[V];if(Y===R||Object.is(Y,R))return!0}return!1}});
Zo("String.prototype.includes",function(B){return B?B:function(R,V){return ni(this,R,"includes").indexOf(R,V||0)!==-1}});
Zo("Array.from",function(B){return B?B:function(R,V,e){V=V!=null?V:function(b){return b};
var X=[],Y=typeof Symbol!="undefined"&&Symbol.iterator&&R[Symbol.iterator];if(typeof Y=="function"){R=Y.call(R);for(var t=0;!(Y=R.next()).done;)X.push(V.call(e,Y.value,t++))}else for(Y=R.length,t=0;t<Y;t++)X.push(V.call(e,R[t],t));return X}});
Zo("Object.entries",function(B){return B?B:function(R){var V=[],e;for(e in R)Ci(R,e)&&V.push([e,R[e]]);return V}});
Zo("Number.isFinite",function(B){return B?B:function(R){return typeof R!=="number"?!1:!isNaN(R)&&R!==Infinity&&R!==-Infinity}});
Zo("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Zo("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Zo("Number.isInteger",function(B){return B?B:function(R){return Number.isFinite(R)?R===Math.floor(R):!1}});
Zo("Number.isSafeInteger",function(B){return B?B:function(R){return Number.isInteger(R)&&Math.abs(R)<=Number.MAX_SAFE_INTEGER}});
Zo("String.prototype.endsWith",function(B){return B?B:function(R,V){var e=ni(this,R,"endsWith");V===void 0&&(V=e.length);V=Math.max(0,Math.min(V|0,e.length));for(var X=R.length;X>0&&V>0;)if(e[--V]!=R[--X])return!1;return X<=0}});
var oYN=function(B,R){B instanceof String&&(B+="");var V=0,e=!1,X={next:function(){if(!e&&V<B.length){var Y=V++;return{value:R(Y,B[Y]),done:!1}}e=!0;return{done:!0,value:void 0}}};
X[Symbol.iterator]=function(){return X};
return X};
Zo("Array.prototype.entries",function(B){return B?B:function(){return oYN(this,function(R,V){return[R,V]})}});
Zo("Math.imul",function(B){return B?B:function(R,V){R=Number(R);V=Number(V);var e=R&65535,X=V&65535;return e*X+((R>>>16&65535)*X+e*(V>>>16&65535)<<16>>>0)|0}});
Zo("Math.trunc",function(B){return B?B:function(R){R=Number(R);if(isNaN(R)||R===Infinity||R===-Infinity||R===0)return R;var V=Math.floor(Math.abs(R));return R<0?-V:V}});
Zo("Number.isNaN",function(B){return B?B:function(R){return typeof R==="number"&&isNaN(R)}});
Zo("Array.prototype.keys",function(B){return B?B:function(){return oYN(this,function(R){return R})}});
Zo("Array.prototype.values",function(B){return B?B:function(){return oYN(this,function(R,V){return V})}});
Zo("Array.prototype.fill",function(B){return B?B:function(R,V,e){var X=this.length||0;V<0&&(V=Math.max(0,X+V));if(e==null||e>X)e=X;e=Number(e);e<0&&(e=Math.max(0,X+e));for(V=Number(V||0);V<e;V++)this[V]=R;return this}});
var u5=function(B){return B?B:Array.prototype.fill};
Zo("Int8Array.prototype.fill",u5);Zo("Uint8Array.prototype.fill",u5);Zo("Uint8ClampedArray.prototype.fill",u5);Zo("Int16Array.prototype.fill",u5);Zo("Uint16Array.prototype.fill",u5);Zo("Int32Array.prototype.fill",u5);Zo("Uint32Array.prototype.fill",u5);Zo("Float32Array.prototype.fill",u5);Zo("Float64Array.prototype.fill",u5);
Zo("Object.fromEntries",function(B){return B?B:function(R){var V={};if(!(Symbol.iterator in R))throw new TypeError("r`"+R);R=R[Symbol.iterator].call(R);for(var e=R.next();!e.done;e=R.next()){e=e.value;if(Object(e)!==e)throw new TypeError("s");V[e[0]]=e[1]}return V}});
Zo("String.prototype.replaceAll",function(B){return B?B:function(R,V){if(R instanceof RegExp&&!R.global)throw new TypeError("t");return R instanceof RegExp?this.replace(R,V):this.replace(new RegExp(String(R).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),V)}});
Zo("Object.getOwnPropertySymbols",function(B){return B?B:function(){return[]}});
Zo("String.prototype.repeat",function(B){return B?B:function(R){var V=ni(this,null,"repeat");if(R<0||R>1342177279)throw new RangeError("u");R|=0;for(var e="";R;)if(R&1&&(e+=V),R>>>=1)V+=V;return e}});
Zo("Array.prototype.findIndex",function(B){return B?B:function(R,V){return OVo(this,R,V).i}});
Zo("Array.prototype.flatMap",function(B){return B?B:function(R,V){var e=[];Array.prototype.forEach.call(this,function(X,Y){X=R.call(V,X,Y,this);Array.isArray(X)?e.push.apply(e,X):e.push(X)});
return e}});
Zo("String.prototype.codePointAt",function(B){return B?B:function(R){var V=ni(this,null,"codePointAt"),e=V.length;R=Number(R)||0;if(R>=0&&R<e){R|=0;var X=V.charCodeAt(R);if(X<55296||X>56319||R+1===e)return X;R=V.charCodeAt(R+1);return R<56320||R>57343?X:(X-55296)*1024+R+9216}}});
Zo("String.fromCodePoint",function(B){return B?B:function(R){for(var V="",e=0;e<arguments.length;e++){var X=Number(arguments[e]);if(X<0||X>1114111||X!==Math.floor(X))throw new RangeError("v`"+X);X<=65535?V+=String.fromCharCode(X):(X-=65536,V+=String.fromCharCode(X>>>10&1023|55296),V+=String.fromCharCode(X&1023|56320))}return V}});
Zo("String.prototype.padStart",function(B){return B?B:function(R,V){var e=ni(this,null,"padStart");R-=e.length;V=V!==void 0?String(V):" ";return(R>0&&V?V.repeat(Math.ceil(R/V.length)).substring(0,R):"")+e}});
Zo("Promise.prototype.finally",function(B){return B?B:function(R){return this.then(function(V){return Promise.resolve(R()).then(function(){return V})},function(V){return Promise.resolve(R()).then(function(){throw V;
})})}});
Zo("Object.hasOwn",function(B){return B?B:function(R,V){return Object.prototype.hasOwnProperty.call(R,V)}});
Zo("Math.sign",function(B){return B?B:function(R){R=Number(R);return R===0||isNaN(R)?R:R>0?1:-1}});
Zo("Array.prototype.flat",function(B){return B?B:function(R){R=R===void 0?1:R;var V=[];Array.prototype.forEach.call(this,function(e){Array.isArray(e)&&R>0?(e=Array.prototype.flat.call(e,R-1),V.push.apply(V,e)):V.push(e)});
return V}});
Zo("String.raw",function(B){return B?B:function(R,V){if(R==null)throw new TypeError("w");for(var e=R.raw,X=e.length,Y="",t=0;t<X;++t)Y+=e[t],t+1<X&&t+1<arguments.length&&(Y+=String(arguments[t+1]));return Y}});
Zo("Reflect.ownKeys",function(B){return B?B:function(R){var V=[],e=Object.getOwnPropertyNames(R);R=Object.getOwnPropertySymbols(R);for(var X=0;X<e.length;X++)(e[X].substring(0,14)=="jscomp_symbol_"?R:V).push(e[X]);return V.concat(R)}});
Zo("Object.getOwnPropertyDescriptors",function(B){return B?B:function(R){for(var V={},e=Reflect.ownKeys(R),X=0;X<e.length;X++)V[e[X]]=Object.getOwnPropertyDescriptor(R,e[X]);return V}});
Zo("WeakSet",function(B){if(function(){if(!B||!Object.seal)return!1;try{var V=Object.seal({}),e=Object.seal({}),X=new B([V]);if(!X.has(V)||X.has(e))return!1;X.delete(V);X.add(e);return!X.has(V)&&X.has(e)}catch(Y){return!1}}())return B;
var R=function(V){this.JSC$6687_map_=new WeakMap;if(V){V=_.h(V);for(var e;!(e=V.next()).done;)this.add(e.value)}};
R.prototype.add=function(V){this.JSC$6687_map_.set(V,!0);return this};
R.prototype.has=function(V){return this.JSC$6687_map_.has(V)};
R.prototype.delete=function(V){return this.JSC$6687_map_.delete(V)};
return R});
Zo("Promise.allSettled",function(B){function R(e){return{status:"fulfilled",value:e}}
function V(e){return{status:"rejected",reason:e}}
return B?B:function(e){var X=this;e=Array.from(e,function(Y){return X.resolve(Y).then(R,V)});
return X.all(e)}});
Zo("Number.parseInt",function(B){return B||parseInt});
_._DumpException=window._DumpException||function(B){throw B;};
window._DumpException=_._DumpException;var Buu,OT,o6,Bb,RGq,Vhq,eGo,XYp,m6,pYd;Buu=Buu||{};_.R5=this||self;_.mk=function(B,R,V){B=B.split(".");V=V||_.R5;for(var e;B.length&&(e=B.shift());)B.length||R===void 0?V[e]&&V[e]!==Object.prototype[e]?V=V[e]:V=V[e]={}:V[e]=R};
OT=function(B){var R=_.qN("WIZ_global_data.oxN3nb");B=R&&R[B];return B!=null?B:!1};
o6=_.R5._F_toggles||[];Bb=function(){};
Bb.get=function(){return null};
_.qN=function(B,R){B=B.split(".");R=R||_.R5;for(var V=0;V<B.length;V++)if(R=R[B[V]],R==null)return null;return R};
_.R6=function(B){B.instance_=void 0;B.getInstance=function(){return B.instance_?B.instance_:B.instance_=new B}};
_.U4=function(B){var R=typeof B;return R!="object"?R:B?Array.isArray(B)?"array":R:"null"};
_.R4=function(B){var R=_.U4(B);return R=="array"||R=="object"&&typeof B.length=="number"};
_.Xa=function(B){var R=typeof B;return R=="object"&&B!=null||R=="function"};
_.Y5=function(B){return Object.prototype.hasOwnProperty.call(B,RGq)&&B[RGq]||(B[RGq]=++Vhq)};
RGq="closure_uid_"+(Math.random()*1E9>>>0);Vhq=0;eGo=function(B,R,V){return B.call.apply(B.bind,arguments)};
XYp=function(B,R,V){if(!B)throw Error();if(arguments.length>2){var e=Array.prototype.slice.call(arguments,2);return function(){var X=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(X,e);return B.apply(R,X)}}return function(){return B.apply(R,arguments)}};
_.M2=function(B,R,V){_.M2=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?eGo:XYp;return _.M2.apply(null,arguments)};
_.JE=function(B,R){var V=Array.prototype.slice.call(arguments,1);return function(){var e=V.slice();e.push.apply(e,arguments);return B.apply(this,e)}};
_.VG=function(){return Date.now()};
m6=function(B){return B};
_.eY=function(B,R){function V(){}
V.prototype=R.prototype;B.superClass_=R.prototype;B.prototype=new V;B.prototype.constructor=B;B.base=function(e,X,Y){for(var t=Array(arguments.length-2),b=2;b<arguments.length;b++)t[b-2]=arguments[b];return R.prototype[X].apply(e,t)}};
pYd=function(B){return B};var MZK,lZA;_.r=function(B,R,V,e){var X=arguments.length,Y=X<3?R:e===null?e=Object.getOwnPropertyDescriptor(R,V):e,t;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")Y=Reflect.decorate(B,R,V,e);else for(var b=B.length-1;b>=0;b--)if(t=B[b])Y=(X<3?t(Y):X>3?t(R,V,Y):t(R,V))||Y;return X>3&&Y&&Object.defineProperty(R,V,Y),Y};
_.Z=function(B,R){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(B,R)};
MZK=function(B,R){if(R!==null&&R!==void 0){if(typeof R!=="object"&&typeof R!=="function")throw new TypeError("x");if(V===void 0){if(!Symbol.dispose)throw new TypeError("z");var V=R[Symbol.dispose]}if(typeof V!=="function")throw new TypeError("A");B.stack.push({value:R,dispose:V,async:!1})}return R};
lZA=function(B){function R(Y){B.error=B.hasError?new SuppressedError(Y,B.error,"An error was suppressed during disposal."):Y;B.hasError=!0}
function V(){for(;e=B.stack.pop();)try{if(!e.async&&X===1)return X=0,B.stack.push(e),Promise.resolve().then(V);if(e.dispose){var Y=e.dispose.call(e.value);if(e.async)return X|=2,Promise.resolve(Y).then(V,function(t){R(t);return V()})}else X|=1}catch(t){R(t)}if(X===1)return B.hasError?Promise.reject(B.error):Promise.resolve();
if(B.hasError)throw B.error;}
var e,X=0;V()};_.eY(_.o5,Error);_.o5.prototype.name="CustomError";var Yaq;var hGS=void 0,thN,WTp=typeof TextDecoder!=="undefined",VqN,RN_=typeof String.prototype.isWellFormed==="function",Bxq=typeof TextEncoder!=="undefined";var bmp;_.Sr=function(B){for(var R=[],V=0,e=0;e<B.length;e++){var X=B.charCodeAt(e);X<128?R[V++]=X:(X<2048?R[V++]=X>>6|192:((X&64512)==55296&&e+1<B.length&&(B.charCodeAt(e+1)&64512)==56320?(X=65536+((X&1023)<<10)+(B.charCodeAt(++e)&1023),R[V++]=X>>18|240,R[V++]=X>>12&63|128):R[V++]=X>>12|224,R[V++]=X>>6&63|128),R[V++]=X&63|128)}return R};
bmp=function(B){for(var R=[],V=0,e=0;V<B.length;){var X=B[V++];if(X<128)R[e++]=String.fromCharCode(X);else if(X>191&&X<224){var Y=B[V++];R[e++]=String.fromCharCode((X&31)<<6|Y&63)}else if(X>239&&X<365){Y=B[V++];var t=B[V++],b=B[V++];X=((X&7)<<18|(Y&63)<<12|(t&63)<<6|b&63)-65536;R[e++]=String.fromCharCode(55296+(X>>10));R[e++]=String.fromCharCode(56320+(X&1023))}else Y=B[V++],t=B[V++],R[e++]=String.fromCharCode((X&15)<<12|(Y&63)<<6|t&63)}return R.join("")};var US=String.prototype.trim?function(B){return B.trim()}:function(B){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(B)[1]},JaA=/&/g,j2d=/</g,UAp=/>/g,Nu5=/"/g,GW_=/'/g,yau=/\x00/g,SaN=/[\x00&<>"']/;var X6=!!(o6[0]>>15&1),HmI=!!(o6[0]>>16&1),Mh5=!!(o6[0]&2),kWK=!!(o6[0]&4),DAK=!!(o6[0]&32),f85=!!(o6[0]&512);var yu=X6?HmI:OT(610401301),l8Z=X6?Mh5:OT(513659523),zGd=X6?kWK:OT(568333945),w1I=X6?DAK:OT(1331761403),a8d=X6?f85:OT(103340015);var Hd,dAp=_.R5.navigator;Hd=dAp?dAp.userAgentData||null:null;var Fy;_.rx=function(B,R){return Array.prototype.indexOf.call(B,R,void 0)};
_.ij=function(B,R,V){Array.prototype.forEach.call(B,R,V)};
_.pU=function(B,R,V){return Array.prototype.filter.call(B,R,V)};
_.DO=function(B,R,V){return Array.prototype.map.call(B,R,V)};
Fy=function(B,R,V){return Array.prototype.some.call(B,R,V)};
_.V5p=function(B,R,V){return Array.prototype.every.call(B,R,V)};var YU=function(B){YU[" "](B);return B};
YU[" "]=function(){};
var aJ=function(B,R){try{return YU(B[R]),!0}catch(V){}return!1},akx=function(B,R,V,e){e=e?e(R):R;
return Object.prototype.hasOwnProperty.call(B,e)?B[e]:B[e]=V(R)};var wYd,gS,TuK,xAA,vYu,KTY,tp_,I8u,EYK,Q2A,In5,caZ,Aad,raq,gYd,Zmp;_.uG_=function(){return _.R5.navigator||null};
wYd=wx();_.ho=pdS();gS=fZ("Edge");TuK=gS||_.ho;_.to=fZ("Gecko")&&!(_.jq(_.G_(),"WebKit")&&!fZ("Edge"))&&!(fZ("Trident")||fZ("MSIE"))&&!fZ("Edge");_.Wb=_.jq(_.G_(),"WebKit")&&!fZ("Edge");xAA=_.Wb&&fZ("Mobile");_.LT_=_.UYp();vYu=_.Nxo();KTY=(KZ()?Hd.platform==="Linux":fZ("Linux"))||_.G_x();tp_=_.JAS();I8u=j5Y();EYK=fZ("iPad");Q2A=fZ("iPod");_.qaq=_.I5();In5=_.jq(_.G_(),"KaiOS");caZ=function(){var B=_.R5.document;return B?B.documentMode:void 0};
a:{var imx="",s2S=function(){var B=_.G_();if(_.to)return/rv:([^\);]+)(\)|;)/.exec(B);if(gS)return/Edge\/([\d\.]+)/.exec(B);if(_.ho)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(B);if(_.Wb)return/WebKit\/(\S+)/.exec(B);if(wYd)return/(?:Version)[ \/]?(\S+)/.exec(B)}();
s2S&&(imx=s2S?s2S[1]:"");if(_.ho){var FTZ=caZ();if(FTZ!=null&&FTZ>parseFloat(imx)){Aad=String(FTZ);break a}}Aad=imx}raq=Aad;gYd={};_.b8=function(B){return akx(gYd,B,function(){return _.NY(raq,B)>=0})};
if(_.R5.document&&_.ho){var mAI=caZ();Zmp=mAI?mAI:parseInt(raq,10)||void 0}else Zmp=void 0;_.$AZ=Zmp;var z6S,agd,CbZ;_.Jo=T_();z6S=j5Y()||fZ("iPod");agd=fZ("iPad");CbZ=_.hNZ();_.jY=_.xd();_.v8=_.LZ()&&!_.I5();var Pbq,UD,$VN,UqA,ugN,nY5;Pbq={};UD=null;$VN=_.to||_.Wb||typeof _.R5.btoa=="function";_.O4=function(B,R){R===void 0&&(R=0);nY5();R=Pbq[R];for(var V=Array(Math.floor(B.length/3)),e=R[64]||"",X=0,Y=0;X<B.length-2;X+=3){var t=B[X],b=B[X+1],J=B[X+2],G=R[t>>2];t=R[(t&3)<<4|b>>4];b=R[(b&15)<<2|J>>6];J=R[J&63];V[Y++]=G+t+b+J}G=0;J=e;switch(B.length-X){case 2:G=B[X+1],J=R[(G&15)<<2]||e;case 1:B=B[X],V[Y]=R[B>>2]+R[(B&3)<<4|G>>4]+J+e}return V.join("")};
UqA=function(B){var R="";ugN(B,function(V){R+=String.fromCharCode(V)});
return R};
_.lid=function(B){var R=[];ugN(B,function(V){R.push(V)});
return R};
_.Uo=function(B){var R=B.length,V=R*3/4;V%3?V=Math.floor(V):_.bo("=.",B[R-1])&&(V=_.bo("=.",B[R-2])?V-2:V-1);var e=new Uint8Array(V),X=0;ugN(B,function(Y){e[X++]=Y});
return X!==V?e.subarray(0,X):e};
ugN=function(B,R){function V(J){for(;e<B.length;){var G=B.charAt(e++),y=UD[G];if(y!=null)return y;if(!_.Wd(G))throw Error("E`"+G);}return J}
nY5();for(var e=0;;){var X=V(-1),Y=V(0),t=V(64),b=V(64);if(b===64&&X===-1)break;R(X<<2|Y>>4);t!=64&&(R(Y<<4&240|t>>2),b!=64&&R(t<<6&192|b))}};
nY5=function(){if(!UD){UD={};for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),R=["+/=","+/","-_=","-_.","-_"],V=0;V<5;V++){var e=B.concat(R[V].split(""));Pbq[V]=e;for(var X=0;X<e.length;X++){var Y=e[X];UD[Y]===void 0&&(UD[Y]=X)}}}};var EdA=typeof Uint8Array!=="undefined",aKq=!_.ho&&typeof btoa==="function",dYN=/[-_.]/g,lKx={"-":"+",_:"/",".":"="},Ah={};var c2,owu;c2=function(B,R){if(R!==Ah)throw Error("G");this.JSC$6718_value_=B;if(B!=null&&B.length===0)throw Error("F");};
_.i_=function(){return Omd||(Omd=new c2(null,Ah))};
owu=function(B){return new Uint8Array(xv(B)||0)};
c2.prototype.isEmpty=function(){return this.JSC$6718_value_==null};
c2.prototype.sizeBytes=function(){var B=xv(this);return B?B.length:0};
var xv=function(B){if(Ah!==Ah)throw Error("G");var R=B.JSC$6718_value_;R=R==null||EdA&&R!=null&&R instanceof Uint8Array?R:typeof R==="string"?wdK(R):null;return R==null?R:B.JSC$6718_value_=R},Omd;var xY_=void 0;var a4=typeof Symbol==="function"&&typeof Symbol()==="symbol",BCK=zG("jas",void 0,!0),re=zG(void 0,"0di"),dq=zG(void 0,"1oa"),$m=zG(void 0,Symbol()),xTx=zG(void 0,"0ub"),v5Y=zG(void 0,"0ubs"),Emo=zG(void 0,"0ubsb"),mT5=zG(void 0,"0actk"),Ar=zG("m_m","messagePrototypeMarker",!0),iRd=zG(void 0,"vps"),dTo=zG();var vd_,LI5,GX,Rjq;vd_={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};LI5=Object.defineProperties;_.w4=a4?BCK:"internalArrayState";Rjq=[];LR(Rjq,7);GX=Object.freeze(Rjq);var FU={},I4={},Vs5=function(B,R,V){this.iterable=B;this.mapper=R;this.thisArg=V};
Vs5.prototype.next=function(){var B=this.iterable.next();B.done||(B.value=this.mapper.call(this.thisArg,B.value));return B};
Vs5.prototype[Symbol.iterator]=function(){return this};
var ejS=Object.freeze({}),g4={};_.Xjo=CR(function(B){return B!==null&&B!==void 0});var iZo=CR(function(B){return typeof B==="number"}),AAI=CR(function(B){return typeof B==="string"}),s5q=CR(function(B){return typeof B==="boolean"}),pjd=CR(function(B){return B!=null&&typeof B==="object"&&typeof B.then==="function"}),ojS=CR(function(B){return typeof B==="function"}),RK=CR(function(B){return!!B&&(typeof B==="object"||typeof B==="function")});var P2=typeof _.R5.BigInt==="function"&&typeof _.R5.BigInt(0)==="bigint";var E4=CR(function(B){return P2?B>=YkI&&B<=hjZ:B[0]==="-"?FIK(B,tsN):FIK(B,WQK)}),tsN=Number.MIN_SAFE_INTEGER.toString(),YkI=P2?BigInt(Number.MIN_SAFE_INTEGER):void 0,WQK=Number.MAX_SAFE_INTEGER.toString(),hjZ=P2?BigInt(Number.MAX_SAFE_INTEGER):void 0;var bzZ=typeof Uint8Array.prototype.slice==="function",u_=0,Oo=0,Cf;var de,vo,yn,Ke,Pop;de=typeof BigInt==="function"?BigInt.asIntN:void 0;_.IN=typeof BigInt==="function"?BigInt.asUintN:void 0;vo=Number.isSafeInteger;yn=Number.isFinite;Ke=Math.trunc;Pop=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var s4Z={};var zlx={},Jid=function(){try{var B=function(){return qEo(Map,[],this.constructor)};
_.l(B,Map);YU(new B);return!1}catch(R){return!0}}(),N6=function(){this.JSC$6746_map_=new Map};
_.p=N6.prototype;_.p.get=function(B){return this.JSC$6746_map_.get(B)};
_.p.set=function(B,R){this.JSC$6746_map_.set(B,R);this.size=this.JSC$6746_map_.size;return this};
_.p.delete=function(B){B=this.JSC$6746_map_.delete(B);this.size=this.JSC$6746_map_.size;return B};
_.p.clear=function(){this.JSC$6746_map_.clear();this.size=this.JSC$6746_map_.size};
_.p.has=function(B){return this.JSC$6746_map_.has(B)};
_.p.entries=function(){return this.JSC$6746_map_.entries()};
_.p.keys=function(){return this.JSC$6746_map_.keys()};
_.p.values=function(){return this.JSC$6746_map_.values()};
_.p.forEach=function(B,R){return this.JSC$6746_map_.forEach(B,R)};
N6.prototype[Symbol.iterator]=function(){return this.entries()};
var om=function(){if(Jid)return Object.setPrototypeOf(N6.prototype,Map.prototype),Object.defineProperties(N6.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),N6;var B=function(){return qEo(Map,[],this.constructor)};
_.l(B,Map);return B}(),ge=function(B,R,V,e){V=V===void 0?MJY:V;
e=e===void 0?MJY:e;var X=om.call(this)||this;X.arrayState=B[_.w4]|0;X.valueCtor=R;X.keyToApi=V;X.valueToApi=X.valueCtor?DTd:e;for(var Y=0;Y<B.length;Y++){var t=B[Y],b=V(t[0],!1,!0),J=t[1];R?J===void 0&&(J=null):J=e(t[1],!1,!0,void 0,void 0,X.arrayState);om.prototype.set.call(X,b,J)}return X};
_.l(ge,om);var jgp=function(B){if(B.arrayState&2)throw Error("K");};
_.p=ge.prototype;_.p.clear=function(){jgp(this);om.prototype.clear.call(this)};
_.p.delete=function(B){jgp(this);return om.prototype.delete.call(this,this.keyToApi(B,!0,!1))};
_.p.entries=function(){if(this.valueCtor){var B=om.prototype.keys.call(this);B=new Vs5(B,fSK,this)}else B=om.prototype.entries.call(this);return B};
_.p.values=function(){if(this.valueCtor){var B=om.prototype.keys.call(this);B=new Vs5(B,ge.prototype.get,this)}else B=om.prototype.values.call(this);return B};
_.p.forEach=function(B,R){this.valueCtor?om.prototype.forEach.call(this,function(V,e,X){B.call(R,X.get(e),e,X)}):om.prototype.forEach.call(this,B,R)};
_.p.set=function(B,R){jgp(this);B=this.keyToApi(B,!0,!1);return B==null?this:R==null?(om.prototype.delete.call(this,B),this):om.prototype.set.call(this,B,this.valueToApi(R,!0,!0,this.valueCtor,!1,this.arrayState))};
_.p.has=function(B){return om.prototype.has.call(this,this.keyToApi(B,!1,!1))};
_.p.get=function(B){B=this.keyToApi(B,!1,!1);var R=om.prototype.get.call(this,B);if(R!==void 0){var V=this.valueCtor;return V?(V=this.valueToApi(R,!1,!0,V,this.callToMutableOnAccess,this.arrayState),V!==R&&om.prototype.set.call(this,B,V),V):R}};
ge.prototype[Symbol.iterator]=function(){return this.entries()};
ge.prototype.toJSON=void 0;var lSA;var E5q=function(){},ne=function(B,R){for(var V in B)!isNaN(V)&&R(B,+V,B[V])},Q4x=function(B){var R=new E5q;
ne(B,function(V,e,X){R[e]=pe(X)});
R.reviveUnknownFields=B.reviveUnknownFields;return R},w2d={reviveIntoImmutable:!0};var ISd;var Fb_,rhN;var UHN,kv,JK,yU,NCZ,l8,Ne,GVY,yiZ,wX,SkZ,To,vb,KU;UHN=_.nR(0);_.Go={};_.yG=function(B,R,V,e,X){R=kv(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R,V,X);if(R!==null||e&&B.noLegacyNull!==I4)return R};
kv=function(B,R,V,e){if(R===-1)return null;var X=R+(V?0:-1),Y=B.length-1;if(!(Y<1+(V?0:-1))){if(X>=Y){var t=B[Y];if(t!=null&&typeof t==="object"&&t.constructor===Object){V=t[R];var b=!0}else if(X===Y)V=t;else return}else V=B[X];if(e&&V!=null){e=e(V);if(e==null)return e;if(!Object.is(e,V))return b?t[R]=e:B[X]=e,e}return V}};
_.Bf=function(B,R,V,e){jz(B);var X=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;NS(X,X[_.w4]|0,R,V,e);return B};
_.SY=function(B,R,V){B=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wq(B,B[_.w4]|0,R,V)!==void 0};
_.Hb=function(B,R,V,e){var X=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wq(X,X[_.w4]|0,R,yU(B,e,V))!==void 0};
_.oI=function(B){return B===ejS?2:4};
_.M6=function(B,R){B=_.yG(B,R,void 0,void 0,omN);return B==null?_.i_():B};
JK=function(B,R,V,e){jz(B);var X=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=X[_.w4]|0;if(e==null){var t=RzS(X);if(V2o(t,X,Y,V)===R)t.set(V,0);else return B}else Y=ezS(X,Y,V,R);NS(X,Y,R,e);return B};
_.D4=function(B,R,V,e){var X=B[_.w4]|0,Y=mb(X);X=ezS(B,X,V,R,Y);NS(B,X,R,e,Y)};
yU=function(B,R,V){return _.fU(B,R)===V?V:-1};
_.fU=function(B,R){B=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return V2o(RzS(B),B,void 0,R,void 0)};
NCZ=function(B,R,V){var e=B[_.w4]|0,X=mb(e),Y=kv(B,V,X);if(Y!=null&&Y[Ar]===FU){if(!qT(Y))return bI(Y),Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var t=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(Y)&&(t=Y);if(t){var b=t[_.w4]|0;b&2&&(t=Yv(t,b))}t=pf(t,R,!0);t!==Y&&NS(B,e,V,t,X);return t};
_.OB=function(B,R,V,e){var X=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=X[_.w4]|0;R=wq(X,Y,R,V,e);if(R==null)return R;Y=X[_.w4]|0;if(!qT(B,Y)){var t=kGp(R);t!==R&&(bI(B)&&(X=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=X[_.w4]|0),R=t,Y=NS(X,Y,V,R,e),UY(X,Y))}return R};
_.Oh=function(B,R,V,e){var X=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Xo_(B,X,X[_.w4]|0,R,V,e,!1,!0)};
_.Ra=function(B,R,V,e){V=poY(V);_.Bf(B,R,V,e);V&&!qT(V)&&UY(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return B};
_.Vm=function(B,R,V,e){e=poY(e);JK(B,R,V,e);e&&!qT(e)&&UY(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return B};
l8=function(B,R,V){jz(B);var e=B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=e[_.w4]|0;if(V==null)return NS(e,X,R),B;for(var Y=V===GX?7:V[_.w4]|0,t=Y,b=MS(Y),J=b||Object.isFrozen(V),G=!0,y=!0,S=0;S<V.length;S++){var M=V[S];b||(M=qT(M),G&&(G=!M),y&&(y=M))}b||(Y=G?13:5,Y=y?Y&-4097:Y|4096);J&&Y===t||(V=pe(V),t=0,Y=Sz(Y,X));Y!==t&&LR(V,Y);X=NS(e,X,R,V);2&Y||!(4096&Y||16&Y)||UY(e,X);return B};
Ne=function(B,R,V,e){hzu(B,R,V,e);return B};
GVY=function(B,R,V){hzu(B,R,zo,void 0,V,1,!0);return B};
_.a6=function(B,R,V){B=_.yG(B,R,void 0,V);R=typeof B;B=B==null?B:R==="bigint"?_.nR((0,_.IN)(64,B)):_.Ho(B)?R==="string"?_.bRS(B):_.tJI(B):void 0;return B};
_.dX=function(B,R){var V=V===void 0?!1:V;var e;return(e=_.CoA(_.yG(B,R)))!=null?e:V};
_.Bn=function(B,R,V){V=V===void 0?0:V;var e;return(e=_.l4(_.yG(B,R)))!=null?e:V};
yiZ=function(B,R){var V=V===void 0?0:V;B=_.zi(_.yG(B,R));return B!=null?B:V};
wX=function(B,R,V){V=V===void 0?UHN:V;var e;return(e=_.UTS(_.yG(B,R)))!=null?e:V};
SkZ=function(B){var R=R===void 0?UHN:R;var V;return(V=_.a6(B,23))!=null?V:R};
To=function(B,R){var V=V===void 0?0:V;var e;return(e=_.yG(B,R,void 0,void 0,_.Wo))!=null?e:V};
_.xU=function(B,R,V,e){V=V===void 0?"":V;var X;return(X=_.co(_.yG(B,R,e)))!=null?X:V};
_.LU=function(B,R){var V=V===void 0?0:V;var e;return(e=_.km(_.yG(B,R)))!=null?e:V};
vb=function(B,R){var V=V===void 0?"0":V;B=j4d(_.yG(B,R),!0);return B!=null?B:V};
KU=function(B,R,V){return _.xU(B,yU(B,V,R))};
_.I6=function(B,R,V,e){return _.OB(B,R,yU(B,e,V),void 0)};
_.J4=function(B,R){return _.co(_.yG(B,R,void 0,_.Go))};
_.Xn=function(B,R,V){return _.Bf(B,R,$Yu(V))};
_.zE=function(B,R,V){return _.lI(B,R,$Yu(V),!1)};
_.ED=function(B,R,V){return _.Bf(B,R,_.D7(V))};
_.H5=function(B,R,V){return _.Bf(B,R,Le(V))};
_.bg=function(B,R,V){return _.Bf(B,R,qj(V))};
_.oH=function(B,R,V,e){return _.lI(B,R,qj(V),"",e)};
_.ou=function(B,R,V){return _.Bf(B,R,V==null?V:_.Mj(V))};
_.QG=function(B,R,V){return _.lI(B,R,V==null?V:_.Mj(V),0)};var TX=function(B,R,V){this.buffer=B;if(V&&!R)throw Error();this.JSC$6758_isImmutable=R};var HzA=function(B,R,V,e){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6761_start_=0;this.init(B,R,V,e)},q6,kVp,DHZ,lTu,djx,Ms5;
_.p=HzA.prototype;_.p.init=function(B,R,V,e){var X=e===void 0?{}:e;e=X.aliasBytesFields===void 0?!1:X.aliasBytesFields;X=X.treatNewDataAsImmutable===void 0?!1:X.treatNewDataAsImmutable;this.aliasBytesFields=e;this.treatNewDataAsImmutable=X;B&&(B=t2p(B,this.treatNewDataAsImmutable),this.bytes_=B.buffer,this.bytesAreImmutable_=B.JSC$6758_isImmutable,this.JSC$6761_start_=R||0,this.end_=V!==void 0?this.JSC$6761_start_+V:this.bytes_.length,this.cursor_=this.JSC$6761_start_)};
_.p.free=function(){this.clear();Ms5.length<100&&Ms5.push(this)};
_.p.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6761_start_=0;this.aliasBytesFields=!1};
_.p.reset=function(){this.cursor_=this.JSC$6761_start_};
_.p.atEnd=function(){return this.cursor_==this.end_};
_.cb=function(B,R){var V=0,e=0,X=0,Y=B.bytes_,t=B.cursor_;do{var b=Y[t++];V|=(b&127)<<X;X+=7}while(X<32&&b&128);X>32&&(e|=(b&127)>>4);for(X=3;X<32&&b&128;X+=7)b=Y[t++],e|=(b&127)<<X;q6(B,t);if(b<128)return R(V>>>0,e>>>0);throw Error("X");};
q6=function(B,R){B.cursor_=R;if(R>B.end_)throw Error("Y`"+R+"`"+B.end_);};
_.Ao=function(B){var R=B.bytes_,V=B.cursor_,e=R[V++],X=e&127;if(e&128&&(e=R[V++],X|=(e&127)<<7,e&128&&(e=R[V++],X|=(e&127)<<14,e&128&&(e=R[V++],X|=(e&127)<<21,e&128&&(e=R[V++],X|=e<<28,e&128&&R[V++]&128&&R[V++]&128&&R[V++]&128&&R[V++]&128&&R[V++]&128)))))throw Error("X");q6(B,V);return X};
_.sD=function(B){var R=B.bytes_,V=B.cursor_,e=R[V],X=R[V+1],Y=R[V+2];R=R[V+3];q6(B,B.cursor_+4);return(e<<0|X<<8|Y<<16|R<<24)>>>0};
kVp=function(B){var R=_.sD(B);B=_.sD(B);return ZZx(R,B)};
DHZ=function(B){var R=_.sD(B),V=_.sD(B);B=(V>>31)*2+1;var e=V>>>20&2047;R=4294967296*(V&1048575)+R;return e==2047?R?NaN:B*Infinity:e==0?B*4.9E-324*R:B*Math.pow(2,e-1075)*(R+4503599627370496)};
_.fTZ=function(B){for(var R=0,V=B.cursor_,e=V+10,X=B.bytes_;V<e;){var Y=X[V++];R|=Y;if((Y&128)===0)return q6(B,V),!!(R&127)}throw Error("X");};
lTu=function(B,R){if(R<0)throw Error("Z`"+R);var V=B.cursor_,e=V+R;if(e>B.end_)throw Error("Y`"+(B.end_-V)+"`"+R);B.cursor_=e;return V};
djx=function(B,R){if(R==0)return _.i_();var V=lTu(B,R);B.aliasBytesFields&&B.bytesAreImmutable_?V=B.bytes_.subarray(V,V+R):(B=B.bytes_,R=V+R,V=V===R?new Uint8Array(0):bzZ?B.slice(V,R):new Uint8Array(B.subarray(V,R)));return V.length==0?_.i_():new c2(V,Ah)};
Ms5=[];var aTd=function(B,R,V,e){if(Ms5.length){var X=Ms5.pop();X.init(B,R,V,e);B=X}else B=new HzA(B,R,V,e);this.decoder_=B;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;zjK(this,e)},zjK=function(B,R){R=R===void 0?{}:R;
B.discardUnknownFields=R.discardUnknownFields===void 0?!1:R.discardUnknownFields},xju=function(B,R,V,e){if(dHu.length){var X=dHu.pop();
zjK(X,e);X.decoder_.init(B,R,V,e);return X}return new aTd(B,R,V,e)},zzA,AD,wjN,dHu;
aTd.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;dHu.length<100&&dHu.push(this)};
aTd.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
zzA=function(B){if(B.decoder_.atEnd())return!1;B.fieldCursor_=B.decoder_.cursor_;var R=_.Ao(B.decoder_)>>>0,V=R>>>3;R&=7;if(!(R>=0&&R<=5))throw Error("T`"+R+"`"+B.fieldCursor_);if(V<1)throw Error("U`"+V+"`"+B.fieldCursor_);B.nextField_=V;B.nextWireType_=R;return!0};
AD=function(B){switch(B.nextWireType_){case 0:B.nextWireType_!=0?AD(B):_.fTZ(B.decoder_);break;case 1:B=B.decoder_;q6(B,B.cursor_+8);break;case 2:if(B.nextWireType_!=2)AD(B);else{var R=_.Ao(B.decoder_)>>>0;B=B.decoder_;q6(B,B.cursor_+R)}break;case 5:B=B.decoder_;q6(B,B.cursor_+4);break;case 3:R=B.nextField_;do{if(!zzA(B))throw Error("V");if(B.nextWireType_==4){if(B.nextField_!=R)throw Error("W");break}AD(B)}while(1);break;default:throw Error("T`"+B.nextWireType_+"`"+B.fieldCursor_);}};
wjN=function(B,R,V){var e=B.decoder_.end_,X=_.Ao(B.decoder_)>>>0,Y=B.decoder_.cursor_+X,t=Y-e;t<=0&&(B.decoder_.end_=Y,V(R,B,void 0,void 0,void 0),t=Y-B.decoder_.cursor_);if(t)throw Error("S`"+X+"`"+(X-t));B.decoder_.cursor_=Y;B.decoder_.end_=e};
_.TCx=function(B){var R=_.Ao(B.decoder_)>>>0;B=B.decoder_;var V=lTu(B,R);B=B.bytes_;if(WTp){var e=B,X;(X=thN)||(X=thN=new TextDecoder("utf-8",{fatal:!0}));R=V+R;e=V===0&&R===e.length?e:e.subarray(V,R);try{var Y=X.decode(e)}catch(G){if(hGS===void 0){try{X.decode(new Uint8Array([128]))}catch(y){}try{X.decode(new Uint8Array([97])),hGS=!0}catch(y){hGS=!1}}!hGS&&(thN=void 0);throw G;}}else{Y=V;R=Y+R;V=[];for(var t=null,b,J;Y<R;)b=B[Y++],b<128?V.push(b):b<224?Y>=R?Bd():(J=B[Y++],b<194||(J&192)!==128?(Y--,
Bd()):V.push((b&31)<<6|J&63)):b<240?Y>=R-1?Bd():(J=B[Y++],(J&192)!==128||b===224&&J<160||b===237&&J>=160||((X=B[Y++])&192)!==128?(Y--,Bd()):V.push((b&15)<<12|(J&63)<<6|X&63)):b<=244?Y>=R-2?Bd():(J=B[Y++],(J&192)!==128||(b<<28)+(J-144)>>30!==0||((X=B[Y++])&192)!==128||((e=B[Y++])&192)!==128?(Y--,Bd()):(b=(b&7)<<18|(J&63)<<12|(X&63)<<6|e&63,b-=65536,V.push((b>>10&1023)+55296,(b&1023)+56320))):Bd(),V.length>=8192&&(t=odd(t,V),V.length=0);Y=odd(t,V)}return Y};
_.xHN=function(B){var R=_.Ao(B.decoder_)>>>0;return djx(B.decoder_,R)};
_.LQd=function(B,R,V){var e=_.Ao(B.decoder_)>>>0;for(e=B.decoder_.cursor_+e;B.decoder_.cursor_<e;)V.push(R(B.decoder_))};
dHu=[];var vwN=function(B,R){this.JSC$6768_lo=B>>>0;this.JSC$6768_hi=R>>>0},ITZ=function(B){if(!B)return KQd||(KQd=new vwN(0,0));
if(!/^\d+$/.test(B))return null;XU(B);return new vwN(u_,Oo)},KQd,sNd=function(B,R){this.JSC$6770_lo=B>>>0;
this.JSC$6770_hi=R>>>0},Ar_=function(B){if(!B)return Ew_||(Ew_=new sNd(0,0));
if(!/^-?\d+$/.test(B))return null;XU(B);return new sNd(u_,Oo)},Ew_;var QgY=function(){this.JSC$6772_buffer_=[]},ieY,qkx;
QgY.prototype.length=function(){return this.JSC$6772_buffer_.length};
QgY.prototype.end=function(){var B=this.JSC$6772_buffer_;this.JSC$6772_buffer_=[];return B};
ieY=function(B,R,V){for(;V>0||R>127;)B.JSC$6772_buffer_.push(R&127|128),R=(R>>>7|V<<25)>>>0,V>>>=7;B.JSC$6772_buffer_.push(R)};
qkx=function(B,R){for(;R>127;)B.JSC$6772_buffer_.push(R&127|128),R>>>=7;B.JSC$6772_buffer_.push(R)};
_.F6p=function(B,R){if(R>=0)qkx(B,R);else{for(var V=0;V<9;V++)B.JSC$6772_buffer_.push(R&127|128),R>>=7;B.JSC$6772_buffer_.push(1)}};
_.Py=function(B,R){B.JSC$6772_buffer_.push(R>>>0&255);B.JSC$6772_buffer_.push(R>>>8&255);B.JSC$6772_buffer_.push(R>>>16&255);B.JSC$6772_buffer_.push(R>>>24&255)};var ciq,rq,gmd,C4S;ciq=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new QgY};
rq=function(B,R){R.length!==0&&(B.blocks_.push(R),B.totalLength_+=R.length)};
_.jNu=function(B,R){_.ml(B,R,2);R=B.encoder_.end();rq(B,R);R.push(B.totalLength_);return R};
_.UjS=function(B,R){var V=R.pop();for(V=B.totalLength_+B.encoder_.length()-V;V>127;)R.push(V&127|128),V>>>=7,B.totalLength_++;R.push(V);B.totalLength_++};
_.ml=function(B,R,V){qkx(B.encoder_,R*8+V)};
gmd=function(B,R,V){if(V!=null){switch(typeof V){case "string":ITZ(V)}_.ml(B,R,1);switch(typeof V){case "number":B=B.encoder_;rA_(V);_.Py(B,u_);_.Py(B,Oo);break;case "bigint":V=BigInt.asUintN(64,V);V=new vwN(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));B=B.encoder_;R=V.JSC$6768_hi;_.Py(B,V.JSC$6768_lo);_.Py(B,R);break;default:V=ITZ(V),B=B.encoder_,R=V.JSC$6768_hi,_.Py(B,V.JSC$6768_lo),_.Py(B,R)}}};
C4S=function(B,R,V){_.ml(B,R,2);qkx(B.encoder_,V.length);rq(B,B.encoder_.end());rq(B,V)};var W6Z,sgS,FQ_,ZzY,mHK;W6Z=vy();_.Aix=vy();_.izI=vy();sgS=vy();FQ_=vy();_.ri_=vy();_.F6=vy();_.gwq=vy();ZzY=vy();mHK=vy();_.$HZ=vy();_.CBI=vy();_.qS=function(B,R,V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B,R,V)};
_.qS.prototype.toJSON=function(){return V5(this)};
_.qS.prototype.serialize=function(B){return JSON.stringify(V5(this,B))};
var VzI=function(B,R){if(R==null||R=="")return new B;R=JSON.parse(R);if(!Array.isArray(R))throw Error("$");return new B(IKd(R))};
_.qS.prototype.getExtension=function(B){LbS(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B.fieldIndex);T4d(this,B.fieldIndex);return B.ctor?B.isRepeated?B.getExtensionFn(this,B.ctor,B.fieldIndex,_.oI(),B.JSC$6783_hasMessageId):B.getExtensionFn(this,B.ctor,B.fieldIndex,B.JSC$6783_hasMessageId):B.isRepeated?B.getExtensionFn(this,B.fieldIndex,_.oI(),B.JSC$6783_hasMessageId):B.getExtensionFn(this,B.fieldIndex,B.defaultValue,B.JSC$6783_hasMessageId)};
_.qS.prototype.clone=function(){var B=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=B[_.w4]|0;return Wy(this,B,R)?hD(this,B,!0):new this.constructor(Yv(B,R,!1))};
_.qS.prototype[Ar]=FU;_.qS.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Im=function(B,R,V){this.$$binaryReaderFn=B;this.$$binaryWriterFn=R;B=m6(W6Z);this.$$isMsg=!!B&&V===B||!1},S45=bex(function(B,R,V,e,X){if(B.nextWireType_!==2)return!1;
wjN(B,NCZ(R,e,V),X);return!0},Ned),Heq=bex(function(B,R,V,e,X){if(B.nextWireType_!==2)return!1;
wjN(B,NCZ(R,e,V),X);return!0},Ned),sY=Symbol(),cy=Symbol(),l7x=Symbol(),vmA=Symbol(),wox=Symbol(),GiN,yrp;var ovZ,PBI,nwx,uLd,OzA,oVd,ByA,R_N,VtY,e_S,XiA,YUu,h_o,WXp,bKd;ovZ=function(B,R){var V=new ciq;K6p(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V,EY(sY,iI,Fx,R));rq(V,V.encoder_.end());B=new Uint8Array(V.totalLength_);R=V.blocks_;for(var e=R.length,X=0,Y=0;Y<e;Y++){var t=R[Y];B.set(t,X);X+=t.length}V.blocks_=[B];return B};
PBI=_.gq(function(B,R,V){if(B.nextWireType_!==1)return!1;_.ZY(R,V,DHZ(B.decoder_));return!0},crp,mHK);
nwx=_.gq(function(B,R,V,e){if(B.nextWireType_!==1)return!1;_.D4(R,V,e,DHZ(B.decoder_));return!0},crp,mHK);
uLd=_.gq(function(B,R,V,e){if(B.nextWireType_!==5)return!1;var X=_.sD(B.decoder_);B=(X>>31)*2+1;var Y=X>>>23&255;X&=8388607;_.D4(R,V,e,Y==255?X?NaN:B*Infinity:Y==0?B*1.401298464324817E-45*X:B*Math.pow(2,Y-150)*(X+8388608));return!0},function(B,R,V){R=_.Wo(R);
R!=null&&(_.ml(B,V,5),B=B.encoder_,V=Cf||(Cf=new DataView(new ArrayBuffer(8))),V.setFloat32(0,+R,!0),Oo=0,u_=V.getUint32(0,!0),_.Py(B,u_))},ZzY);
_.rX=_.gq(function(B,R,V){if(B.nextWireType_!==0)return!1;_.ZY(R,V,_.cb(B.decoder_,RN));return!0},_.nf,_.F6);
OzA=_.gq(function(B,R,V){if(B.nextWireType_!==0)return!1;B=_.cb(B.decoder_,RN);_.ZY(R,V,B===0?void 0:B);return!0},_.nf,_.F6);
oVd=_.gq(function(B,R,V,e){if(B.nextWireType_!==0)return!1;_.D4(R,V,e,_.cb(B.decoder_,RN));return!0},_.nf,_.F6);
_.gX=_.gq(function(B,R,V){if(B.nextWireType_!==0)return!1;_.ZY(R,V,_.Ao(B.decoder_));return!0},rrd,sgS);
ByA=_.gq(function(B,R,V){if(B.nextWireType_!==0)return!1;B=_.Ao(B.decoder_);_.ZY(R,V,B===0?void 0:B);return!0},rrd,sgS);
R_N=_.gq(function(B,R,V,e){if(B.nextWireType_!==0)return!1;_.D4(R,V,e,_.Ao(B.decoder_));return!0},rrd,sgS);
VtY=_.gq(function(B,R,V){if(B.nextWireType_!==1)return!1;_.ZY(R,V,kVp(B.decoder_));return!0},_.ZeS,_.gwq);
e_S=_.q4x(function(B,R,V){if(B.nextWireType_!==1&&B.nextWireType_!==2)return!1;R=_.am(R,R[_.w4]|0,V);B.nextWireType_==2?_.LQd(B,kVp,R):R.push(kVp(B.decoder_));return!0},function(B,R,V){R=_.QN5(GGo,R,!1);
if(R!=null)for(var e=0;e<R.length;e++)gmd(B,V,R[e])},_.gwq);
_.Z4=_.gq(function(B,R,V){if(B.nextWireType_!==0)return!1;_.ZY(R,V,_.fTZ(B.decoder_));return!0},_.$jd,_.Aix);
XiA=_.gq(function(B,R,V,e){if(B.nextWireType_!==0)return!1;_.D4(R,V,e,_.fTZ(B.decoder_));return!0},_.$jd,_.Aix);
_.mg=_.gq(function(B,R,V){if(B.nextWireType_!==2)return!1;_.ZY(R,V,_.TCx(B));return!0},_.P4N,_.izI);
_.pid=_.gq(function(B,R,V,e){if(B.nextWireType_!==2)return!1;_.D4(R,V,e,_.TCx(B));return!0},_.P4N,_.izI);
YUu=_.q4x(function(B,R,V){if(B.nextWireType_!==2)return!1;B=_.TCx(B);_.am(R,R[_.w4]|0,V).push(B);return!0},function(B,R,V){R=_.QN5(_.co,R,!0);
if(R!=null)for(var e=0;e<R.length;e++){var X=B,Y=V,t=R[e];t!=null&&C4S(X,Y,eNZ(t))}},_.izI);
h_o=void 0;h_o=h_o===void 0?W6Z:h_o;_.$U=new Im(function(B,R,V,e,X){if(B.nextWireType_!==2)return!1;e=pf(void 0,e,!0);_.am(R,R[_.w4]|0,V).push(e);wjN(B,e,X);return!0},function(B,R,V,e,X){if(Array.isArray(R))for(var Y=0;Y<R.length;Y++)nmp(B,R[Y],V,e,X)},h_o);
_.CU=bex(function(B,R,V,e,X,Y){if(B.nextWireType_!==2)return!1;var t=R[_.w4]|0;ezS(R,t,Y,V,mb(t));R=NCZ(R,e,V);wjN(B,R,X);return!0},nmp);
_.ttS=_.gq(function(B,R,V){if(B.nextWireType_!==2)return!1;_.ZY(R,V,_.xHN(B));return!0},_.uUY,_.$HZ);
WXp=_.gq(function(B,R,V,e){if(B.nextWireType_!==2)return!1;_.D4(R,V,e,_.xHN(B));return!0},_.uUY,_.$HZ);
bKd=_.gq(function(B,R,V,e){if(B.nextWireType_!==0)return!1;_.D4(R,V,e,_.Ao(B.decoder_)>>>0);return!0},function(B,R,V){R=_.zi(R);
R!=null&&R!=null&&(_.ml(B,V,0),qkx(B.encoder_,R))},FQ_);
_.Pb=_.gq(function(B,R,V){if(B.nextWireType_!==0)return!1;_.ZY(R,V,_.Ao(B.decoder_));return!0},_.OeY,_.CBI);var UQY=function(){var B=J6x,R=jzd;this.fieldIndex=175237375;this.ctor=R;this.isRepeated=0;this.getExtensionFn=_.OB;this.defaultValue=void 0;this.JSC$6783_hasMessageId=B.messageId!=null?g4:void 0};
UQY.prototype.register=function(){YU(this)};var NyK=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(NyK,_.qS);var GtY=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(GtY,_.qS);var pyZ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(pyZ,_.qS);var y6d=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(y6d,_.qS);var SU5=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(SU5,_.qS);var HKA=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(HKA,_.qS);var MtK=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(MtK,_.qS);MtK.prototype.getData=function(){return _.M6(this,2)};var ktq=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(ktq,_.qS);var DQN=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(DQN,_.qS);DQN.prototype.getStyle=function(){return _.OB(this,NyK,1)};var BB=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(BB,_.qS);BB.prototype.getPayloadCase=function(){return _.fU(this,e4)};
BB.prototype.getStyle=function(){return _.I6(this,DQN,6,e4)};
var f5o=function(){var B=new BB,R=new SU5;return _.Vm(B,7,e4,R)},l5q=function(){var B=new BB,R=new HKA;
return _.Vm(B,8,e4,R)},e4=[1,
2,3,4,5,6,7,8];var z_Z=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(z_Z,_.qS);var a5x=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(a5x,_.qS);var dQd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(dQd,_.qS);var wid=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(wid,_.qS);var TyS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(TyS,_.qS);var xQS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(xQS,_.qS);var LXx=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(LXx,_.qS);var vVd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(vVd,_.qS);vVd.prototype.getData=function(){return _.M6(this,2)};var KXd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(KXd,_.qS);var Xyq=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Xyq,_.qS);Xyq.prototype.getPayloadCase=function(){return _.fU(this,nU)};
var nU=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var u8=function(B,R){B=Error.call(this,B);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=R===void 0?2:R};
_.l(u8,Error);var I5d=Promise;var EV_=function(B){this.channelPromise=B};
EV_.prototype.send=function(B,R,V){this.channelPromise.then(function(e){e.send(B,R,V)})};var QzK=function(B,R){this.data=B;this.channel=R};
QzK.prototype.reply=function(B,R,V){this.channel.send(B,R,V)};var qUo=function(B){this.JSC$6849_port_=B};
qUo.prototype.send=function(B,R,V){V=V===void 0?[]:V;var e=new MessageChannel;c6d(e.port1,R);this.JSC$6849_port_.postMessage(B,[e.port2].concat(V))};
var A6u=function(B,R){c6d(B,R);return new qUo(B)},c6d=function(B,R){R&&(B.onmessage=function(V){R(new QzK(V.data,A6u(V.ports[0])))})};var iKq=function(B){this.verifier_=B},szI=function(B){var R=Object.create(null);
(typeof B==="string"?[B]:B).forEach(function(V){if(V==="null")throw Error("ba");R[V]=!0});
return function(V){return R[V]===!0}};_.FXd=function(){if(!_.R5.addEventListener||!Object.defineProperty)return!1;var B=!1,R=Object.defineProperty({},"passive",{get:function(){B=!0}});
try{var V=function(){};
_.R5.addEventListener("test",V,R);_.R5.removeEventListener("test",V,R)}catch(e){}return B}();var r6S;_.OD=function(B){var R=B.destination;var V=B.iframe;var e=B.origin;var X=B.channelName===void 0?"ZNWN1d":B.channelName;var Y=B.onMessage===void 0?void 0:B.onMessage;B=B.onEstablished===void 0?void 0:B.onEstablished;return r6S({destination:R,getSource:function(){return V.contentWindow},
originVerifier:e instanceof iKq?e:typeof e==="function"?new iKq(e):new iKq(szI(e)),channelName:X,onMessage:Y,onEstablished:B})};
r6S=function(B){var R=B.destination;var V=B.getSource;var e=B.originVerifier;var X=B.token===void 0?void 0:B.token;var Y=B.channelName;var t=B.onMessage===void 0?void 0:B.onMessage;var b=B.onEstablished===void 0?void 0:B.onEstablished;return new EV_(new I5d(function(J,G){var y=function(S){S.source&&S.source===V()&&e.verifier_(S.origin)&&(S.data.n||S.data)===Y&&(R.removeEventListener("message",y,!1),X&&S.data.t!==X?G(Error("ca`"+Y+"`"+X+"`"+S.data.t)):(J(A6u(S.ports[0],t)),b&&b(S)))};
R.addEventListener("message",y,!1)}))};var gVp=function(B){try{B()}catch(R){eq(R)}};var mQI=function(B){var R=this;var V=B.getMessageType;var e=B.onUnregisteredMessage===void 0?function(){}:B.onUnregisteredMessage;
var X=B.onBeforeRegisteredMessage===void 0?function(){}:B.onBeforeRegisteredMessage;
B=B.onAfterRegisteredMessage===void 0?function(){}:B.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=V;this.onUnregisteredMessage_=e;this.onBeforeRegisteredMessage_=X;this.onAfterRegisteredMessage_=B;this.onMessage=function(Y){return ZKd(R,Y)}};
mQI.prototype.register=function(B,R){this.registry_.set(B,R);return this};
var ZKd=function(B,R){var V=B.getMessageType_(R.data),e=B.registry_.get(V);e?(gVp(function(){return B.onBeforeRegisteredMessage_(R,V)}),gVp(function(){return e(R)}),gVp(function(){return B.onAfterRegisteredMessage_(R,V)})):gVp(function(){return B.onUnregisteredMessage_(R,V)})};var $Qo=function(B){this.JSC$6866_channel_=B},PQx,nVx;
$Qo.prototype.send=function(B,R,V){this.JSC$6866_channel_.send(V5(B),R,V)};
_.CQ5=function(B,R){return function(V){var e=new B(V.data);return R(new QzK(e,V.channel))}};
PQx=function(B){return function(R){return B(new QzK(R.data,new $Qo(R.channel)))}};
nVx=function(B,R){return PQx(_.CQ5(B,R))};var u_Z=function(B,R,V,e){this.registry=B;this.delegate=R;this.receiveMessageConstructor=V;this.createInitMessage=e;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},ekZ=function(B){var R=new mQI({getMessageType:B.getPayloadCase});
return new u_Z(R,new $Qo(_.OD({iframe:B.child,destination:window,origin:B.origin,channelName:B.channelName,onMessage:nVx(B.receiveMessageConstructor,R.onMessage)})),B.receiveMessageConstructor,B.createInitMessage)},OKZ=function(B,R){B.createInitMessage=R};
u_Z.prototype.send=function(B){if(!this.initialised)throw new u8("Attempted to send a message before initialisation.");this.delegate.send(B)};
var od2=function(B,R){return _.W(function(V){if(!B.initialised)throw new u8("Attempted to send a message before initialisation.");return V.return(new Promise(function(e){B.delegate.send(R,nVx(B.receiveMessageConstructor,e))}))})};
u_Z.prototype.init=function(){var B=this;return _.W(function(R){if(B.initialised)throw new u8("Attempted to initialise twice. The SDK can only be initialised once.");if(B.createInitMessage!==void 0){var V=B.delegate,e=V.send,X=B.createInitMessage;var Y=new GtY;var t=[].concat(_.MI(B.features));Y=_.ff(Y,1,t,_.Mj);e.call(V,X.call(B,Y))}B.initialised=!0;_.b3(R)})};
var op=function(B,R){if(B.initialised)throw new u8('Attempted to set up API "'+R+'" after initialisation. All APIs must be set up before initialising the SDK.');B.features.add(R);return B.registry};
_.mh.Object.defineProperties(u_Z.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var BxJ=function(B){this.channel=B;this.registered=!1};
BxJ.prototype.update=function(B){if(this.channel.isInitialised){if(!this.registered)throw new u8("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var R=new BB;var V=new y6d;V=_.Xn(V,1,B);R=_.Vm(R,2,e4,V);this.channel.send(R)}else this.register();this.JSC$6880_audioEnabled=B};
BxJ.prototype.register=function(){op(this.channel,1);this.registered=!0};
BxJ.prototype.isAudioEnabled=function(){return this.JSC$6880_audioEnabled};var RNG=function(B){this.channel=B};
_.p=RNG.prototype;_.p.onFirstFrameReady=function(B){op(this.channel,2).register(11,function(R){R=_.I6(R.data,z_Z,11,nU);if(!R)throw new u8("Unexpectedly nonexistent GameFirstFrameReadyEvent");B(_.xU(R,1))})};
_.p.onReady=function(B){op(this.channel,2).register(4,function(R){R=_.I6(R.data,dQd,4,nU);if(!R)throw new u8("Unexpectedly nonexistent GameReadyEvent");B(_.xU(R,1))})};
_.p.onLevelComplete=function(B){op(this.channel,2).register(5,function(R){R=_.I6(R.data,wid,5,nU);if(!R)throw new u8("Unexpectedly nonexistent LevelCompleteEvent");B(_.xU(R,1),_.Bn(R,2))})};
_.p.onGameOver=function(B){op(this.channel,2).register(6,function(R){R=_.I6(R.data,a5x,6,nU);if(!R)throw new u8("Unexpectedly nonexistent GameOverEvent");B(_.xU(R,1))})};
_.p.pause=function(){var B=this;if(!this.channel.isInitialised)return op(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new u8("Using unregistered Game Feature: pause.");var R=f5o();return new Promise(function(V){return _.W(function(e){if(e.nextAddress==1)return _.U(e,od2(B.channel,R),2);V();_.b3(e)})})};
_.p.resume=function(){var B=this;if(!this.channel.isInitialised)return op(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new u8("Using unregistered Game Feature: resume.");var R=l5q();return new Promise(function(V){return _.W(function(e){if(e.nextAddress==1)return _.U(e,od2(B.channel,R),2);V();_.b3(e)})})};var Vql=function(B){this.channel=B};
Vql.prototype.onReady=function(B){op(this.channel,5).register(8,function(R){if(!_.I6(R.data,TyS,8,nU))throw new u8("Unexpectedly nonexistent PageReadyEvent");B()})};var eNR=function(B){this.channel=B};
eNR.prototype.onChange=function(B){op(this.channel,3).register(7,function(R){R=_.I6(R.data,xQS,7,nU);if(!R)throw new u8("Unexpectedly nonexistent ScoreEvent");B(_.xU(R,1),_.Bn(R,2))})};var Xd5={load:function(){throw new u8("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new u8("Storage used, but storage.onSave() listener not set!");}},pdo=function(B){this.channel=B;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},YSG=function(B){op(B.channel,4).register(2,Xd5.load).register(3,Xd5.save);
B.initialSetupDone=!0};
pdo.prototype.onLoad=function(B){this.initialSetupDone||YSG(this);this.loadRegistered||(this.loadRegistered=!0,op(this.channel,4).register(2,function(R){var V,e,X;return _.W(function(Y){if(Y.nextAddress==1){V=_.I6(R.data,LXx,2,nU);if(!V)throw new u8("Unexpectedly nonexistent StorageLoad");e=_.xU(V,1);return _.U(Y,B(e),2)}X=Y.yieldResult;var t=R.reply,b=new BB;var J=new MtK;J=_.bg(J,1,e);J=_.Bf(J,2,_.Fa(X,!1));b=_.Vm(b,3,e4,J);t.call(R,b);_.b3(Y)})}))};
pdo.prototype.onSave=function(B){this.initialSetupDone||YSG(this);this.saveRegistered||(this.saveRegistered=!0,op(this.channel,4).register(3,function(R){var V,e,X;return _.W(function(Y){if(Y.nextAddress==1){V=_.I6(R.data,vVd,3,nU);if(!V)throw new u8("Unexpectedly nonexistent StorageSave");e=_.xU(V,1);X=owu(V.getData());return _.U(Y,B(e,X),2)}var t=R.reply,b=new BB;var J=new ktq;J=_.bg(J,1,e);b=_.Vm(b,4,e4,J);t.call(R,b);_.b3(Y)})}))};var hNR=function(B){this.channel=B};
hNR.prototype.update=function(B){if(!this.channel.features.has(6))throw new u8("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var R=new BB,V=new DQN;B=_.Ra(V,1,B);R=_.Vm(R,6,e4,B);this.channel.send(R)};
hNR.prototype.register=function(){op(this.channel,6)};var tqR=function(B){this.channel=B;this.userActivityLoggingIntervalMs=0};
tqR.prototype.onUserActivity=function(B,R){this.userActivityLoggingIntervalMs=R;op(this.channel,7).register(9,function(V){if(!_.I6(V.data,KXd,9,nU))throw new u8("Unexpectedly nonexistent ClickEvent");B()})};var WIl=function(B){var R=this;this.channel=B;this.init=this.channel.init.bind(this.channel);this.page=new Vql(this.channel);this.game=new RNG(this.channel);this.audio=new BxJ(this.channel);this.score=new eNR(this.channel);this.storage=new pdo(this.channel);this.style=new hNR(this.channel);this.userActivity=new tqR(this.channel);OKZ(this.channel,function(V){var e=new pyZ;V=_.Ra(e,1,V);V=_.ED(V,3,R.userActivity.userActivityLoggingIntervalMs);e=R.audio.isAudioEnabled();e!==void 0&&_.Xn(V,2,e);e=new BB;
return _.Vm(e,5,e4,V)})};var bZo=function(){this.timedFunctionContext=0};
bZo.prototype.timeExecution=function(B,R){var V=this;return function(){var e=_.HB.apply(0,arguments);V.timedFunctionContext=B;return R.apply(null,_.MI(e))}};var JAo=function(){var B={};this.priorityTasks=(B[3]=[],B[2]=[],B[1]=[],B);this.isFlushing=!1},eD=function(B,R,V){var e=j5T(B,V);
B.priorityTasks[V].push(R);e&&B.priorityTasks[V].length===1&&B.flush()},j5T=function(B,R){return Object.keys(B.priorityTasks).map(function(V){return Number(V)}).filter(function(V){return!isNaN(V)&&V>R}).every(function(V){return B.priorityTasks[V].length===0})};
JAo.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(B){return B.length>0});)UYa(this,3),UYa(this,2),UYa(this,1)}catch(B){throw Object.values(this.priorityTasks).forEach(function(R){return void R.splice(0,R.length)}),B;
}finally{this.isFlushing=!1}}};
var UYa=function(B,R){for(;j5T(B,R)&&B.priorityTasks[R].length>0;)B.priorityTasks[R][0](),B.priorityTasks[R].shift()};
_.mh.Object.defineProperties(JAo.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(B){return B.length>0})}}});var JDq={};var Nx_=globalThis.trustedTypes,hkd=Nx_,WlZ;var p$=function(B){this.privateDoNotAccessOrElseWrappedResourceUrl=B};
p$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var G_4=_.$Q([""]),yAS=Fvo(["\x00"],["\\0"]),SSa=Fvo(["\n"],["\\n"]),HZa=Fvo(["\x00"],["\\u0000"]);tR(function(B){return B(G_4)})||tR(function(B){return B(yAS)})||tR(function(B){return B(SSa)})||tR(function(B){return B(HZa)});var Gm;_.WB=function(B,R){this.privateDoNotAccessOrElseWrappedUrl=R};
_.WB.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Mql=bD("about:blank");Gm=bD("about:invalid#zClosurez");var jmp=function(B){this.isValid=B},k_h=new jmp(function(B){return/^[^:]*([/?#]|$)/.test(B)}),DY4=U8("data"),fKT=U8("http"),lK4=U8("https"),zNG=U8("ftp"),aKJ=U8("mailto"),dYl=U8("intent"),wdS=U8("vnd.youtube"),USp=[DY4,
fKT,lK4,aKJ,zNG,k_h],Nq5=X5(function(){return typeof URL==="function"}),TxR=["data:",
"http:","https:","mailto:","ftp:"],yDZ=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var zm=function(B){this.privateDoNotAccessOrElseWrappedHtml=B};
zm.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var fkS=X5(function(){return new zm(Nx_?Nx_.emptyHTML:"")});var xYG={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"},Tm=function(B,R){var V=Error.call(this,B+" cannot be used with intent "+xYG[R]);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.type=B;this.intent=R;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.l(Tm,Error);_.vB=function(B){this.privateDoNotAccessOrElseWrappedScript=B};
_.vB.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var kXd=function(B){this.privateDoNotAccessOrElseWrappedAttributePrefix=B};
kXd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var DSY="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var l9Y=function(B){var R=_.qN("window.location.href");B==null&&(B='Unknown Error of type "null/undefined"');if(typeof B==="string")return{message:B,name:"Unknown error",lineNumber:"Not available",fileName:R,stack:"Not available"};var V=!1;try{var e=B.lineNumber||B.line||"Not available"}catch(t){e="Not available",V=!0}try{var X=B.fileName||B.filename||B.sourceURL||_.R5.$googDebugFname||R}catch(t){X="Not available",V=!0}R=LI4(B);if(!(!V&&B.lineNumber&&B.fileName&&B.stack&&B.message&&B.name)){V=B.message;
if(V==null){if(B.constructor&&B.constructor instanceof Function){if(B.constructor.name)V=B.constructor.name;else if(V=B.constructor,Bx[V])V=Bx[V];else{V=String(V);if(!Bx[V]){var Y=/function\s+([^\(]+)/m.exec(V);Bx[V]=Y?Y[1]:"[Anonymous]"}V=Bx[V]}V='Unknown Error of type "'+V+'"'}else V="Unknown Error of unknown type";typeof B.toString==="function"&&Object.prototype.toString!==B.toString&&(V+=": "+B.toString())}return{message:V,name:B.name||"UnknownError",lineNumber:e,fileName:X,stack:R||"Not available"}}return{message:B.message,
name:B.name,lineNumber:B.lineNumber,fileName:B.fileName,stack:R}},LI4=function(B,R){R||(R={});
R[vdG(B)]=!0;var V=B.stack||"",e=B.cause;e&&!R[vdG(e)]&&(V+="\nCaused by: ",e.stack&&e.stack.indexOf(e.toString())==0||(V+=typeof e==="string"?e:e.message+"\n"),V+=LI4(e,R));B=B.errors;if(Array.isArray(B)){e=1;var X;for(X=0;X<B.length&&!(e>4);X++)R[vdG(B[X])]||(V+="\nInner error "+e++ +": ",B[X].stack&&B[X].stack.indexOf(B[X].toString())==0||(V+=typeof B[X]==="string"?B[X]:B[X].message+"\n"),V+=LI4(B[X],R));X<B.length&&(V+="\n... "+(B.length-X)+" more inner errors")}return V},vdG=function(B){var R=
"";
typeof B.toString==="function"&&(R=""+B);return R+B.stack},Bx={};var KIS,nQ,eX,Edh,Q54,IK5,QI,EI,cAJ;KIS=function(B,R){for(var V=B.split("%s"),e="",X=Array.prototype.slice.call(arguments,1);X.length&&V.length>1;)e+=V.shift()+X.shift();return e+V.join("%s")};
_.AS=function(B){return encodeURIComponent(String(B))};
nQ=function(B){return decodeURIComponent(B.replace(/\+/g," "))};
eX=function(B){SaN.test(B)&&(B.indexOf("&")!=-1&&(B=B.replace(JaA,"&amp;")),B.indexOf("<")!=-1&&(B=B.replace(j2d,"&lt;")),B.indexOf(">")!=-1&&(B=B.replace(UAp,"&gt;")),B.indexOf('"')!=-1&&(B=B.replace(Nu5,"&quot;")),B.indexOf("'")!=-1&&(B=B.replace(GW_,"&#39;")),B.indexOf("\x00")!=-1&&(B=B.replace(yau,"&#0;")));return B};
Edh=function(B){var R={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var V=_.R5.document.createElement("div");return B.replace(IK5,function(e,X){var Y=R[e];if(Y)return Y;X.charAt(0)=="#"&&(X=Number("0"+X.slice(1)),isNaN(X)||(Y=String.fromCharCode(X)));Y||(_.qV(V,aa(e+" ")),Y=V.firstChild.nodeValue.slice(0,-1));return R[e]=Y})};
Q54=function(B){return B.replace(/&([^;]+);/g,function(R,V){switch(V){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return V.charAt(0)!="#"||(V=Number("0"+V.slice(1)),isNaN(V))?R:String.fromCharCode(V)}})};
IK5=/&([^;\s<&]+);?/g;_.C8_=function(B){return String(B).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.qSo=String.prototype.repeat?function(B,R){return B.repeat(R)}:function(B,R){return Array(R+1).join(B)};
_.Rp=function(B,R){if(!Number.isFinite(B))return String(B);B=String(B);var V=B.indexOf(".");V===-1&&(V=B.length);var e=B[0]==="-"?"-":"";e&&(B=B.substring(1));return e+(0,_.qSo)("0",Math.max(0,R-V))+B};
QI=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.VG()).toString(36)};
EI=function(B){for(var R=0,V=0;V<B.length;++V)R=31*R+B.charCodeAt(V)>>>0;return R};
_.jk=function(B){return String(B).replace(/\-([a-z])/g,function(R,V){return V.toUpperCase()})};
_.JZ=function(B){return String(B).replace(/([A-Z])/g,"-$1").toLowerCase()};
cAJ=function(B){return B.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(R,V,e){return V+e.toUpperCase()})};var AAb=function(){this.names=new Map};
AAb.prototype.getName=function(B){var R=this.names.get(B);if(R)return R;var V;R=(V=B.description)!=null?V:QI();this.names.set(B,R);return R};var iZ_=function(B){var R=Error.call(this,B?B.length+" errors occurred during unsubscription:\n"+B.map(function(V,e){return e+1+") "+V.toString()}).join("\n  "):"");
this.message=R.message;"stack"in R&&(this.stack=R.stack);this.errors=B;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.l(iZ_,Error);var $q=function(B){this.initialTeardown=B;this.closed=!1;this._teardowns=this._parentage=null};
_.p=$q.prototype;
_.p.unsubscribe=function(){if(!this.closed){this.closed=!0;var B=this._parentage;if(Array.isArray(B))for(var R=_.h(B),V=R.next();!V.done;V=R.next())V.value.remove(this);else B==null||B.remove(this);R=this.initialTeardown;if(mL(R))try{R()}catch(Y){var e=Y instanceof iZ_?Y.errors:[Y]}var X=this._teardowns;if(X)for(this._teardowns=null,R=_.h(X),V=R.next();!V.done;V=R.next()){V=V.value;try{mL(V)?V():V.unsubscribe()}catch(Y){V=void 0,e=(V=e)!=null?V:[],Y instanceof iZ_?e=[].concat(_.MI(e),_.MI(Y.errors)):
e.push(Y)}}if(e)throw new iZ_(e);}};
_.p.add=function(B){if(B&&B!==this)if(this.closed)mL(B)?B():B.unsubscribe();else{if(B instanceof $q){if(B.closed||B._hasParent(this))return;B._addParent(this)}var R;(this._teardowns=(R=this._teardowns)!=null?R:[]).push(B)}};
_.p._hasParent=function(B){var R=this._parentage;return R===B||Array.isArray(R)&&R.includes(B)};
_.p._addParent=function(B){var R=this._parentage;this._parentage=Array.isArray(R)?(R.push(B),R):R?[R,B]:B};
_.p._removeParent=function(B){var R=this._parentage;R===B?this._parentage=null:Array.isArray(R)&&F5(R,B)};
_.p.remove=function(B){var R=this._teardowns;R&&F5(R,B);B instanceof $q&&B._removeParent(this)};
var s5J=new $q;s5J.closed=!0;$q.JSC$6976_EMPTY=s5J;var aYo=function(){setTimeout.apply(null,_.MI(_.HB.apply(0,arguments)))};var Vs=function(B){$q.call(this);this.JSC$6981_isStopped=!1;this.destination=B instanceof Vs?B:new e9(!B||mL(B)?{next:B!=null?B:void 0}:B);zkq(B)&&B.add(this)};
_.l(Vs,$q);Vs.JSC$6976_EMPTY=$q.JSC$6976_EMPTY;Vs.create=function(B,R,V){return new XK(B,R,V)};
_.p=Vs.prototype;_.p.next=function(B){this.JSC$6981_isStopped||this._next(B)};
_.p.error=function(B){this.JSC$6981_isStopped||(this.JSC$6981_isStopped=!0,this._error(B))};
_.p.complete=function(){this.JSC$6981_isStopped||(this.JSC$6981_isStopped=!0,this._complete())};
_.p.unsubscribe=function(){this.closed||(this.JSC$6981_isStopped=!0,$q.prototype.unsubscribe.call(this))};
_.p._next=function(B){this.destination.next(B)};
_.p._error=function(B){this.destination.error(B);this.unsubscribe()};
_.p._complete=function(){this.destination.complete();this.unsubscribe()};
var e9=function(B){this.partialObserver=B};
e9.prototype.next=function(B){var R=this.partialObserver;if(R.next)try{R.next(B)}catch(V){PB(V)}};
e9.prototype.error=function(B){var R=this.partialObserver;if(R.error)try{R.error(B)}catch(V){PB(V)}else PB(B)};
e9.prototype.complete=function(){var B=this.partialObserver;if(B.complete)try{B.complete()}catch(R){PB(R)}};
var XK=function(B,R,V){Vs.call(this);var e;mL(B)||!B?e={next:B!=null?B:void 0,error:R!=null?R:void 0,complete:V!=null?V:void 0}:e=B;this.destination=new e9(e)};
_.l(XK,Vs);XK.JSC$6976_EMPTY=Vs.JSC$6976_EMPTY;XK.create=Vs.create;var BR=typeof Symbol==="function"&&Symbol.observable||"@@observable";var O8=function(B){B&&(this._subscribe=B)};
_.p=O8.prototype;_.p.lift=function(B){var R=new O8;R.source=this;R.operator=B;return R};
_.p.subscribe=function(B,R,V){B=B&&B instanceof Vs||B&&mL(B.next)&&mL(B.error)&&mL(B.complete)&&zkq(B)?B:new XK(B,R,V);R=this.operator;V=this.source;B.add(R?R.call(B,V):V?this._subscribe(B):this._trySubscribe(B));return B};
_.p._trySubscribe=function(B){try{return this._subscribe(B)}catch(R){B.error(R)}};
_.p.forEach=function(B,R){var V=this;R=wyp(R);return new R(function(e,X){var Y=V.subscribe(function(t){try{B(t)}catch(b){X(b),Y==null||Y.unsubscribe()}},X,e)})};
_.p._subscribe=function(B){var R;return(R=this.source)==null?void 0:R.subscribe(B)};
O8.prototype[BR]=function(){return this};
O8.prototype.pipe=function(){var B=_.HB.apply(0,arguments);return B.length?dSZ(B)(this):this};
O8.create=function(B){return new O8(B)};var FIS=function(){var B=Error.call(this,"object unsubscribed");this.message=B.message;"stack"in B&&(this.stack=B.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.l(FIS,Error);var BH=function(){this.observers=[];this.hasError=this.JSC$6997_isStopped=this.closed=!1;this.thrownError=null};
_.l(BH,O8);_.p=BH.prototype;_.p.lift=function(B){var R=new pY(this,this);R.operator=B;return R};
_.p._throwIfClosed=function(){if(this.closed)throw new FIS;};
_.p.next=function(B){this._throwIfClosed();if(!this.JSC$6997_isStopped){var R=this.observers.slice();R=_.h(R);for(var V=R.next();!V.done;V=R.next())V.value.next(B)}};
_.p.error=function(B){this._throwIfClosed();if(!this.JSC$6997_isStopped){this.hasError=this.JSC$6997_isStopped=!0;this.thrownError=B;for(var R=this.observers;R.length;)R.shift().error(B)}};
_.p.complete=function(){this._throwIfClosed();if(!this.JSC$6997_isStopped){this.JSC$6997_isStopped=!0;for(var B=this.observers;B.length;)B.shift().complete()}};
_.p.unsubscribe=function(){this.JSC$6997_isStopped=this.closed=!0;this.observers=null};
_.p._trySubscribe=function(B){this._throwIfClosed();return O8.prototype._trySubscribe.call(this,B)};
_.p._subscribe=function(B){this._throwIfClosed();this._checkFinalizedStatuses(B);return this._innerSubscribe(B)};
_.p._innerSubscribe=function(B){var R=this,V=this.JSC$6997_isStopped,e=this.observers;return this.hasError||V?$q.JSC$6976_EMPTY:(e.push(B),new $q(function(){return F5(R.observers,B)}))};
_.p._checkFinalizedStatuses=function(B){var R=this.thrownError,V=this.JSC$6997_isStopped;this.hasError?B.error(R):V&&B.complete()};
BH.create=function(B,R){return new pY(B,R)};
var pY=function(B,R){BH.call(this);this.destination=B;this.source=R};
_.l(pY,BH);pY.create=BH.create;pY.prototype.next=function(B){var R,V;(R=this.destination)==null||(V=R.next)==null||V.call(R,B)};
pY.prototype.error=function(B){var R,V;(R=this.destination)==null||(V=R.error)==null||V.call(R,B)};
pY.prototype.complete=function(){var B,R;(B=this.destination)==null||(R=B.complete)==null||R.call(B)};
pY.prototype._subscribe=function(B){var R,V;return(V=(R=this.source)==null?void 0:R.subscribe(B))!=null?V:$q.JSC$6976_EMPTY};var IJ=function(B){BH.call(this);this._value=B};
_.l(IJ,BH);IJ.create=BH.create;IJ.prototype._subscribe=function(B){var R=BH.prototype._subscribe.call(this,B);!R.closed&&B.next(this._value);return R};
IJ.prototype.getValue=function(){var B=this.thrownError,R=this._value;if(this.hasError)throw B;this._throwIfClosed();return R};
IJ.prototype.next=function(B){BH.prototype.next.call(this,this._value=B)};
_.mh.Object.defineProperties(IJ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var dP=new O8(function(B){return B.complete()});var ob=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var QmN=function(B){return B&&typeof B.length==="number"&&typeof B!=="function"};var rAG={now:function(){return(rAG.delegate||Date).now()},
delegate:void 0};var s0=function(B,R,V){B=B===void 0?Infinity:B;R=R===void 0?Infinity:R;V=V===void 0?rAG:V;BH.call(this);this.JSC$7019_bufferSize=B;this.windowTime=R;this.timestampProvider=V;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=R===Infinity;this.JSC$7019_bufferSize=Math.max(1,B);this.windowTime=Math.max(1,R)};
_.l(s0,BH);s0.create=BH.create;s0.prototype.next=function(B){var R=this.buffer,V=this.infiniteTimeWindow,e=this.timestampProvider,X=this.windowTime;this.JSC$6997_isStopped||(R.push(B),!V&&R.push(e.now()+X));gdR(this);BH.prototype.next.call(this,B)};
s0.prototype._subscribe=function(B){this._throwIfClosed();gdR(this);for(var R=this._innerSubscribe(B),V=this.infiniteTimeWindow,e=this.buffer.slice(),X=0;X<e.length&&!B.closed;X+=V?1:2)B.next(e[X]);this._checkFinalizedStatuses(B);return R};
var gdR=function(B){var R=B.JSC$7019_bufferSize,V=B.timestampProvider,e=B.buffer;B=B.infiniteTimeWindow;var X=(B?1:2)*R;R<Infinity&&X<e.length&&e.splice(0,e.length-X);if(!B){R=V.now();V=0;for(B=1;B<e.length&&e[B]<=R;B+=2)V=B;V&&e.splice(0,V+1)}};var mYo=function(B,R){R=R===void 0?ZZ4:R;this.schedulerActionCtor=B;this.now=R};
mYo.prototype.schedule=function(B,R,V){R=R===void 0?0:R;return(new this.schedulerActionCtor(this,B)).schedule(V,R)};
var ZZ4=rAG.now;var dVI=function(){var B=Error.call(this,"no elements in sequence");this.message=B.message;"stack"in B&&(this.stack=B.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.l(dVI,Error);var yJ=function(B,R,V,e,X){Vs.call(this,B);this.onUnsubscribe=X;R&&(this._next=function(Y){try{R(Y)}catch(t){this.destination.error(t)}});
V&&(this._error=function(Y){try{V(Y)}catch(t){this.destination.error(t)}this.unsubscribe()});
e&&(this._complete=function(){try{e()}catch(Y){this.destination.error(Y)}this.unsubscribe()})};
_.l(yJ,Vs);yJ.JSC$6976_EMPTY=Vs.JSC$6976_EMPTY;yJ.create=Vs.create;yJ.prototype.unsubscribe=function(){var B;this.closed||(B=this.onUnsubscribe)!=null&&B.call(this);Vs.prototype.unsubscribe.call(this)};var Aq=function(B,R){this.source=B;this.subjectFactory=R;this._subject=null;this._refCount=0;this._connection=null};
_.l(Aq,O8);Aq.create=O8.create;Aq.prototype._subscribe=function(B){return $Yv(this).subscribe(B)};
var $Yv=function(B){var R=B._subject;if(!R||R.JSC$6997_isStopped)B._subject=B.subjectFactory();return B._subject};
Aq.prototype._teardown=function(){this._refCount=0;var B=this._connection;this._subject=this._connection=null;B==null||B.unsubscribe()};
Aq.prototype.connect=function(){var B=this,R=this._connection;if(!R){R=this._connection=new $q;var V=$Yv(this);R.add(this.source.subscribe(new yJ(V,void 0,function(e){B._teardown();V.error(e)},function(){B._teardown();
V.complete()},function(){return B._teardown()})));
R.closed&&(this._connection=null,R=$q.JSC$6976_EMPTY)}return R};var CId=Array.isArray;var nvd=Array.isArray,Coh=Object,ux5=Coh.getPrototypeOf,OfZ=Coh.prototype,oqK=Coh.keys;var fr=function(B,R,V){Vs.call(this,B);this._next=R;this.shouldComplete=V};
_.l(fr,Vs);fr.JSC$6976_EMPTY=Vs.JSC$6976_EMPTY;fr.create=Vs.create;fr.prototype._complete=function(){this.shouldComplete()?Vs.prototype._complete.call(this):this.unsubscribe()};var hJZ=["addListener","removeListener"],Y8d=["addEventListener","removeEventListener"],WLx=["on","off"];var YP=function(){$q.call(this)};
_.l(YP,$q);YP.JSC$6976_EMPTY=$q.JSC$6976_EMPTY;YP.prototype.schedule=function(){return this};var Poa=function(B,R){return setInterval.apply(null,[B,R].concat(_.MI(_.HB.apply(2,arguments))))};var h_=function(B,R){$q.call(this);this.scheduler=B;this.work=R;this.pending=!1};
_.l(h_,YP);h_.JSC$6976_EMPTY=YP.JSC$6976_EMPTY;h_.prototype.schedule=function(B,R){R=R===void 0?0:R;if(this.closed)return this;this.state=B;B=this.id;var V=this.scheduler;B!=null&&(this.id=ndl(this,B,R));this.pending=!0;this.delay=R;this.id=this.id||this.requestAsyncId(V,this.id,R);return this};
h_.prototype.requestAsyncId=function(B,R,V){V=V===void 0?0:V;return Poa(B.flush.bind(B,this),V)};
var ndl=function(B,R,V){V=V===void 0?0:V;if(V!=null&&B.delay===V&&B.pending===!1)return R;clearInterval(R)};
h_.prototype.execute=function(B,R){if(this.closed)return Error("la");this.pending=!1;if(B=this._execute(B,R))return B;this.pending===!1&&this.id!=null&&(this.id=ndl(this,this.id,null))};
h_.prototype._execute=function(B){var R=!1;try{this.work(B)}catch(e){R=!0;var V=!!e&&e||Error(e)}if(R)return this.unsubscribe(),V};
h_.prototype.unsubscribe=function(){if(!this.closed){var B=this.id,R=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;F5(R,this);B!=null&&(this.id=ndl(this,B,null));this.delay=null;YP.prototype.unsubscribe.call(this)}};var up5=function(B,R){R=R===void 0?ZZ4:R;mYo.call(this,B,R);this.actions=[];this.active=!1;this.scheduled=void 0};
_.l(up5,mYo);up5.prototype.flush=function(B){var R=this.actions;if(this.active)R.push(B);else{var V;this.active=!0;do if(V=B.execute(B.state,B.delay))break;while(B=R.shift());this.active=!1;if(V){for(;B=R.shift();)B.unsubscribe();throw V;}}};var Gg=new O8(C$);var b$5=Array.isArray;var t_=function(B,R){h_.call(this,B,R);this.scheduler=B;this.work=R};
_.l(t_,h_);t_.JSC$6976_EMPTY=h_.JSC$6976_EMPTY;t_.prototype.schedule=function(B,R){R=R===void 0?0:R;if(R>0)return h_.prototype.schedule.call(this,B,R);this.delay=R;this.state=B;this.scheduler.flush(this);return this};
t_.prototype.execute=function(B,R){return R>0||this.closed?h_.prototype.execute.call(this,B,R):this._execute(B,R)};
t_.prototype.requestAsyncId=function(B,R,V){V=V===void 0?0:V;return V!=null&&V>0||V==null&&this.delay>0?h_.prototype.requestAsyncId.call(this,B,R,V):B.flush(this)};var OZv=function(){up5.apply(this,arguments)};
_.l(OZv,up5);var mSY=new OZv(t_);var o5o=function(){this.performanceMonitor=new bZo;this.queue=new JAo;this.internalSymbol=Symbol();this.debugNames=new AAb};
o5o.prototype.getOnBackgrounded=function(){return Gg};
_.mh.Object.defineProperties(o5o.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Wx=function(B,R){R=Error.call(this,R?B+": "+R:String(B));this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=B;this.__proto__=Wx.prototype;this.name=String(B)};
_.l(Wx,Error);var SD=function(B){Wx.call(this,1E3,'sfr:"'+B+'"');this.measurementStrategyFailureReason=B;this.__proto__=SD.prototype};
_.l(SD,Wx);var HH=function(){Wx.call(this,1003);this.__proto__=HH.prototype};
_.l(HH,Wx);var b9=function(){Wx.call(this,1009);this.__proto__=b9.prototype};
_.l(b9,Wx);var B4J=function(){Wx.call(this,1011);this.__proto__=B4J.prototype};
_.l(B4J,Wx);var Rlh=function(){Wx.call(this,1007);this.__proto__=HH.prototype};
_.l(Rlh,Wx);var JF=function(B){Wx.call(this,1004,String(B));this.inputObservableIndex=B;this.__proto__=JF.prototype};
_.l(JF,Wx);var cqo=function(B){Wx.call(this,1010,B);this.__proto__=jD.prototype};
_.l(cqo,Wx);var jD=function(B){Wx.call(this,1005,B);this.__proto__=jD.prototype};
_.l(jD,Wx);var VJT=function(B){var R=_.HB.apply(1,arguments),V=this;this.orderedFactories=[];this.orderedFactories.push(B);R.forEach(function(e){V.orderedFactories.push(e)})};
VJT.prototype.isSupported=function(B){return this.orderedFactories.some(function(R){return R.isSupported(B)})};
VJT.prototype.makeBeacon=function(B,R){for(var V=0;V<this.orderedFactories.length;V++)if(this.orderedFactories[V].isSupported(R))return this.orderedFactories[V].makeBeacon(B,R);throw new b9;};var fOd=Symbol("ma"),elv=Symbol("na"),Lr=function(B,R){this.value=B;this.timeline=R},xb=function(B,R){if(R.timeline!==B.timeline)throw new Rlh;
return B.value-R.value};
_.p=Lr.prototype;_.p.equals=function(B){return xb(this,B)===0};
_.p.maximum=function(B){if(B.timeline!==this.timeline)throw new Rlh;return this.value>=B.value?this:B};
_.p.round=function(){return new Lr(Math.round(this.value),this.timeline)};
_.p.add=function(B){return new Lr(this.value+B,this.timeline)};
_.p.toString=function(){return String(this.value)};var J_=function(B,R){this.context=B;this.JSC$7103_pinger=R};
J_.prototype.isSupported=function(B){return this.JSC$7103_pinger.isSupported(B)};
J_.prototype.makeBeacon=function(B,R){if(!this.isSupported(R))throw new b9;return new j9(this.context,this.JSC$7103_pinger,R!=null?R:void 0,B)};
var j9=function(B,R,V,e){var X=this;this.JSC$7109_pinger=R;this.properties=V;this.url=e;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var Y;this.method=(Y=V==null?void 0:V.beaconMethod)!=null?Y:"GET";this.backgroundedSubscription=B.getOnBackgrounded().subscribe(function(){X.sendNow()})};
j9.prototype.deactivate=function(){this.internalIsPending=!1};
j9.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7109_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var B,R;this.JSC$7109_pinger.pingWithHeadersAndBody((B=this.properties)!=null?B:{},this.customHeaders,(R=this.body)!=null?R:"",this.url)}else this.JSC$7109_pinger.ping(this.url);this.internalIsPending=!1}catch(V){}else this.internalIsPending=!1};
j9.prototype.setHeader=function(B){this.customHeaders.set(B,void 0)};
_.mh.Object.defineProperties(j9.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var p2v=function(){for(var B=_.h(_.HB.apply(0,arguments)),R=B.next();!R.done;R=B.next())if(R=R.value,R.available()){this.timeProvider=R;return}this.timeProvider=new X24};
_.p=p2v.prototype;_.p.available=function(){return this.timeProvider.available()};
_.p.now=function(){return this.timeProvider.now()};
_.p.setTimeout=function(B,R){return this.timeProvider.setTimeout(B,R)};
_.p.clearTimeout=function(B){this.timeProvider.clearTimeout(B)};
_.p.interval=function(B,R){var V=this.intervalObservable(B).subscribe(R);return function(){return void V.unsubscribe()}};
_.p.intervalObservable=function(B){return this.timeProvider.intervalObservable(B)};
_.mh.Object.defineProperties(p2v.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var X24=function(){this.timeline=Symbol()};
_.p=X24.prototype;_.p.available=function(){return!1};
_.p.now=function(){return new Lr(0,this.timeline)};
_.p.setTimeout=function(){return 0};
_.p.clearTimeout=function(){};
_.p.interval=function(){return function(){}};
_.p.intervalObservable=function(){return Gg};var UO=function(B,R){this.intrinsicFunctionNamespace=B;this.performanceMonitor=R};
_.p=UO.prototype;_.p.setTimeout=function(B,R){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,B),R)};
_.p.clearTimeout=function(B){this.intrinsicFunctionNamespace.clearTimeout(B)};
_.p.interval=function(B,R){var V=this.intervalObservable(B).subscribe(R);return function(){return void V.unsubscribe()}};
_.p.intervalObservable=function(B){var R=this;return new O8(function(V){var e=0,X=R.intrinsicFunctionNamespace.setInterval(function(){V.next(e++)},B);
return function(){R.intrinsicFunctionNamespace.clearInterval(X)}})};
_.p.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Yo4=function(B,R){UO.call(this,B,R);this.timeline=elv};
_.l(Yo4,UO);Yo4.prototype.now=function(){return new Lr(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Yo4.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&UO.prototype.available.call(this)};var hlh=function(B,R){UO.call(this,B,R);this.timeline=fOd};
_.l(hlh,UO);hlh.prototype.now=function(){return new Lr(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
hlh.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&UO.prototype.available.call(this)};var Wbl=function(B){this.context=B;if(tJb===void 0)a:{var R,V,e=(R=B.global)==null?void 0:(V=R.document)==null?void 0:V.createElement("meta");if(e)try{e.httpEquiv="origin-trial";e.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";B.global.document.head.append(e);tJb=e;break a}catch(X){}tJb=void 0}},
tJb;
Wbl.prototype.isSupported=function(B){return kmu(this.context)!==void 0&&!(B==null||!B.endOfSession)&&!Nm(this.context)&&!(B==null?0:B.attributionEnabled)&&!(B==null?0:B.customHeaders)&&!(B==null?0:B.customBody)};
Wbl.prototype.makeBeacon=function(B,R){if(!this.isSupported(R))throw new b9;return new Gw(this.context,B,R)};
var Gw=function(B,R,V){this.context=B;this.properties=V;this.JSC$7136_urlWithoutToken=R;var e;this.beaconMethod=(e=V==null?void 0:V.beaconMethod)!=null?e:"GET";B=kmu(this.context);if(B===void 0)throw Error();this.fetchLater=B;bRo(this,Jh4(this))},bRo=function(B,R){B.beaconResult&&B.beaconResult.activated||(B.beaconAbort=new AbortController,B.beaconResult=B.fetchLater(R,{method:B.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:B.beaconAbort.signal,activateAfter:96E4}))},Jh4=function(B){B=B.JSC$7136_urlWithoutToken;
return(B.slice(-1)[0]==="&"?B:B+"&")+"flapi=1"};
Gw.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Gw.prototype.sendNow=function(){};
Gw.prototype.setHeader=function(){};
_.mh.Object.defineProperties(Gw.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7136_urlWithoutToken},
set:function(B){this.JSC$7136_urlWithoutToken=B;B=Jh4(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);bRo(this,B)}},
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 j42=function(B){this.context=B};
j42.prototype.isSupported=function(){return!Nm(this.context)&&!!this.context.global.fetch};
j42.prototype.ping=function(){var B=this;return wP.apply(null,_.MI(_.HB.apply(0,arguments).map(function(R){return VJ(B.context.global.fetch(R,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(HR(function(V){return V.status===200}))}))).pipe(wBo(function(R){return R}),xVA())};
j42.prototype.pingWithHeadersAndBody=function(B,R,V){for(var e=_.HB.apply(3,arguments),X=this,Y=new Headers,t=_.h(R.entries()),b=t.next();!b.done;b=t.next()){var J=_.h(b.value);b=J.next().value;J=J.next().value;Y.set(b,J)}var G,y=(G=B.keepAlive)!=null?G:!1;wP.apply(null,_.MI(e.map(function(S){return VJ(X.context.global.fetch(S,Object.assign({},{method:String(B.beaconMethod),cache:"no-cache"},y?{keepalive:!0}:{},{mode:"no-cors",headers:Y,body:V}))).pipe(HR(function(M){return M.status===200}))}))).pipe(wBo(function(S){return S}),
xVA())};var UTo,vou;_.ys=function(){};
_.sS=function(B){return B};
UTo=function(B){var R=R||0;return function(){return B.apply(this,Array.prototype.slice.call(arguments,0,R))}};
_.S9=function(B){var R=!1,V;return function(){R||(V=B(),R=!0);return V}};
_.Hx=function(B,R){var V=0;return function(e){_.R5.clearTimeout(V);var X=arguments;V=_.R5.setTimeout(function(){B.apply(void 0,X)},R)}};
vou=function(B,R){var V=0,e=!1,X=[],Y=function(){V=0;e&&(e=!1,t())},t=function(){V=_.R5.setTimeout(Y,R);
var b=X;X=[];B.apply(void 0,b)};
return function(b){X=arguments;V?e=!0:t()}};var GG_=function(){return yu&&Hd?Hd.mobile:!N4a()&&(fZ("iPod")||fZ("iPhone")||fZ("Android")||fZ("IEMobile"))},N4a=function(){return yu&&Hd?!Hd.mobile&&(fZ("iPad")||fZ("Android")||fZ("Silk")):fZ("iPad")||fZ("Android")&&!fZ("Mobile")||fZ("Silk")};var yhh;_.M_={};yhh="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.M_.add=function(B,R,V){if(B!==null&&R in B)throw Error("pa`"+R);B[R]=V};
_.M_.clear=function(B){for(var R in B)delete B[R]};
_.M_.clone=function(B){var R={},V;for(V in B)R[V]=B[V];return R};
_.M_.contains=function(B,R){return KLd(B,R)};
_.M_.containsKey=function(B,R){return B!==null&&R in B};
_.M_.containsValue=KLd;_.M_.create=Qao;_.M_.createImmutableView=function(B){var R=B;Object.isFrozen&&!Object.isFrozen(B)&&(R=Object.create(B),Object.freeze(R));return R};
_.M_.createSet=q85;_.M_.equals=function(B,R){for(var V in B)if(!(V in R)||B[V]!==R[V])return!1;for(var e in R)if(!(e in B))return!1;return!0};
_.M_.every=function(B,R,V){for(var e in B)if(!R.call(V,B[e],e,B))return!1;return!0};
_.M_.extend=function(B,R){for(var V,e,X=1;X<arguments.length;X++){e=arguments[X];for(V in e)B[V]=e[V];for(var Y=0;Y<yhh.length;Y++)V=yhh[Y],Object.prototype.hasOwnProperty.call(e,V)&&(B[V]=e[V])}};
_.M_.filter=function(B,R,V){var e={},X;for(X in B)R.call(V,B[X],X,B)&&(e[X]=B[X]);return e};
_.M_.findKey=IMd;_.M_.findValue=function(B,R,V){return(R=IMd(B,R,V))&&B[R]};
_.M_.forEach=function(B,R,V){for(var e in B)R.call(V,B[e],e,B)};
_.M_.get=function(B,R,V){return B!==null&&R in B?B[R]:V};
_.M_.getAllPropertyNames=function(B,R,V){if(!B)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return vqZ(B);for(var e={};B&&(B!==Object.prototype||R)&&(B!==Function.prototype||V);){for(var X=Object.getOwnPropertyNames(B),Y=0;Y<X.length;Y++)e[X[Y]]=!0;B=Object.getPrototypeOf(B)}return vqZ(e)};
_.M_.getAnyKey=function(B){for(var R in B)return R};
_.M_.getAnyValue=function(B){for(var R in B)return B[R]};
_.M_.getCount=function(B){var R=0,V;for(V in B)R++;return R};
_.M_.getKeys=vqZ;_.M_.getSuperClass=function(B){return(B=Object.getPrototypeOf(B.prototype))&&B.constructor};
_.M_.getValueByKeys=function(B,R){var V=_.R4(R),e=V?R:arguments;for(V=V?0:1;V<e.length;V++){if(B==null)return;B=B[e[V]]}return B};
_.M_.getValues=function(B){var R=[],V=0,e;for(e in B)R[V++]=B[e];return R};
_.M_.isEmpty=function(B){for(var R in B)return!1;return!0};
_.M_.isImmutableView=function(B){return!!Object.isFrozen&&Object.isFrozen(B)};
_.M_.map=function(B,R,V){var e={},X;for(X in B)e[X]=R.call(V,B[X],X,B);return e};
_.M_.remove=function(B,R){var V;(V=R in B)&&delete B[R];return V};
_.M_.set=function(B,R,V){B[R]=V};
_.M_.setIfUndefined=function(B,R,V){return R in B?B[R]:B[R]=V};
_.M_.setWithReturnValueIfNotSet=function(B,R,V){if(R in B)return B[R];V=V();return B[R]=V};
_.M_.some=function(B,R,V){for(var e in B)if(R.call(V,B[e],e,B))return!0;return!1};
_.M_.transpose=function(B){var R={},V;for(V in B)R[B[V]]=V;return R};
_.M_.unsafeClone=Eqp;var Mm=function(B,R,V,e,X){this.allowedElements=B;this.elementPolicies=R;this.allowedGlobalAttributes=V;this.globalAttributePolicies=e;this.globallyAllowedAttributePrefixes=X},Sob=function(B,R,V){V=B.elementPolicies.get(V);
return(V==null?0:V.has(R))?V.get(R):B.allowedGlobalAttributes.has(R)?{policyAction:1}:(V=B.globalAttributePolicies.get(R))?V:B.globallyAllowedAttributePrefixes&&[].concat(_.MI(B.globallyAllowedAttributePrefixes)).some(function(e){return R.indexOf(e)===0})?{policyAction:1}:{policyAction:0}};var HR4="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(" "),
MJT=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],kGa="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
DT5=[["dir",{policyAction:3,conditions:X5(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:X5(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:X5(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:X5(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],fSS=new Mm(new Set(HR4),new Map(MJT),new Set(kGa),new Map(DT5)),lSh=new Mm(new Set(HR4.concat(["BUTTON",
"INPUT"])),new Map(MJT),new Set(X5(function(){return kGa.concat(["class","id","name"])})),new Map(X5(function(){return DT5.concat([["style",
{policyAction:1}]])})));var zl4,aSl,w25;zl4=function(B,R,V,e){this.JSC$7196_sanitizerTable=B;this.styleElementSanitizer=R;this.styleAttributeSanitizer=V;this.JSC$7196_resourceUrlPolicy=e;this.changes=[]};
_.dT_=function(B,R){var V=document.implementation.createHTMLDocument("");B=aSl(B,R,V);V=V.body;V.appendChild(B);V=(new XMLSerializer).serializeToString(V);V=V.slice(V.indexOf(">")+1,V.lastIndexOf("</"));return aa(V)};
aSl=function(B,R,V){R=ARN(R,V);R=document.createTreeWalker(R,5,function(b){if(b.nodeType===3)b=1;else if(saA(b))if(b=i$I(b),b===null)b=2;else{var J=B.JSC$7196_sanitizerTable;b=b!=="FORM"&&(J.allowedElements.has(b)||J.elementPolicies.has(b))?1:2}else b=2;return b});
for(var e=R.nextNode(),X=V.createDocumentFragment(),Y=X;e!==null;){var t=void 0;if(e.nodeType===3)B.styleElementSanitizer&&Y.nodeName==="STYLE"?(e=B.styleElementSanitizer(e.data),t=B.createTextNode(e)):t=B.createTextNode(e.data);else if(saA(e))t=w25(B,e,V);else throw Error("da");Y.appendChild(t);if(e=R.firstChild())Y=t;else for(;!(e=R.nextSibling())&&(e=R.parentNode());)Y=Y.parentNode}return X};
zl4.prototype.createTextNode=function(B){return document.createTextNode(B)};
w25=function(B,R,V){var e,X=i$I(R);V=V.createElement(X);R=R.attributes;for(var Y=_.h(R),t=Y.next();!t.done;t=Y.next()){var b=t.value;t=b.name;b=b.value;var J=Sob(B.JSC$7196_sanitizerTable,t,X);a:{if(e=J.conditions){e=_.h(e);for(var G=e.next();!G.done;G=e.next()){var y=_.h(G.value);G=y.next().value;y=y.next().value;var S=void 0;if((G=(S=R.getNamedItem(G))==null?void 0:S.value)&&!y.has(G)){e=!1;break a}}}e=!0}if(e)switch(J.policyAction){case 1:nr(V,t,b);break;case 2:J=_.GXq(b);b=J!==void 0&&TxR.indexOf(J.toLowerCase())!==
-1?b:"about:invalid#zClosurez";nr(V,t,b);break;case 3:nr(V,t,b.toLowerCase());break;case 4:B.styleAttributeSanitizer?(b=B.styleAttributeSanitizer(b),nr(V,t,b)):nr(V,t,b);break;case 5:B.JSC$7196_resourceUrlPolicy?(J={type:2,attributeName:t,elementName:X},b=cR_(b),(b=B.JSC$7196_resourceUrlPolicy(b,J))&&nr(V,t,b.toString())):nr(V,t,b);break;case 6:if(B.JSC$7196_resourceUrlPolicy){J={type:2,attributeName:t,elementName:X};e=[];b=_.h(b.split(","));for(G=b.next();!G.done;G=b.next())y=_.h(G.value.trim().split(/\s+/,
2)),G=y.next().value,y=y.next().value,e.push({url:G,descriptor:y});b={parts:[]};e=_.h(e);for(G=e.next();!G.done;G=e.next())G=G.value,y=cR_(G.url),(y=B.JSC$7196_resourceUrlPolicy(y,J))&&b.parts.push({url:y.toString(),descriptor:G.descriptor});nr(V,t,FLq(b))}else nr(V,t,b)}}return V};
_.T45=X5(function(){return new zl4(fSS)});
_.xT4=X5(function(){return new zl4(lSh)});var Lbo=function(){this.calledBuild=!1;this.JSC$7208_sanitizerTable=fSS},v5T=function(){Lbo.apply(this,arguments)};
_.l(v5T,Lbo);v5T.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new zl4(this.JSC$7208_sanitizerTable,void 0,void 0,this.JSC$7208_resourceUrlPolicy)};var Kbo=/[^#]*/;var gk=function(B){try{return!!B&&B.location.href!=null&&aJ(B,"foo")}catch(R){return!1}},E5J=function(B){var R=IS5;
if(R)for(var V in R)Object.prototype.hasOwnProperty.call(R,V)&&B(R[V],V,R)},Q44=function(){var B=[];
E5J(function(R){B.push(R)});
return B},IS5={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"},qo5=_.S9(function(){return Q44()}),Ahv=function(){var B=chh("IFRAME"),
R={};
_.ij(qo5(),function(V){B.sandbox&&B.sandbox.supports&&B.sandbox.supports(V)&&(R[V]=!0)});
return R},chh=function(B,R){R=R===void 0?document:R;
return R.createElement(String(B).toLowerCase())};var kP;_.IH=function(B,R,V){return Math.min(Math.max(B,R),V)};
kP=function(B,R,V){return B+V*(R-B)};_.fx=function(B,R){this.x=B!==void 0?B:0;this.y=R!==void 0?R:0};
_.p=_.fx.prototype;_.p.clone=function(){return new _.fx(this.x,this.y)};
_.p.equals=function(B){return B instanceof _.fx&&(this==B?!0:this&&B?this.x==B.x&&this.y==B.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(B,R){B instanceof _.fx?(this.x+=B.x,this.y+=B.y):(this.x+=Number(B),typeof R==="number"&&(this.y+=R));return this};
_.p.scale=function(B,R){this.x*=B;this.y*=typeof R==="number"?R:B;return this};_.Yl=function(B,R){this.width=B;this.height=R};
_.p=_.Yl.prototype;_.p.clone=function(){return new _.Yl(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(B,R){this.width*=B;this.height*=typeof R==="number"?R:B;return this};var Ed=function(B,R){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=B===d9Z&&R||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=iR2};
Ed.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var s4R=function(B){return B instanceof Ed&&B.constructor===Ed&&B.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===iR2?B.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},iR2={},d9Z={};
new Ed(d9Z,"");var WH,N2,fY,FbG,ZR_,g5a,lg,$TG,P_h,C_S,dE,n5v,ezo,V2_,Rzo,XoG,poT,Y44,hzv,Zk_,t2a,be4,Jro,W6R,D1;WH=function(B){return B?new D1(_.zg(B)):Yaq||(Yaq=new D1)};
_.uP=function(B,R){return typeof R==="string"?B.getElementById(R):R};
N2=function(B,R){return(R||document).getElementsByTagName(String(B))};
_.rhl=function(B){return FbG("yt-formatted-string","paper-input-input",B)};
fY=function(B,R,V,e){B=e||B;return(R=R&&R!="*"?String(R).toUpperCase():"")||V?B.querySelectorAll(R+(V?"."+V:"")):B.getElementsByTagName("*")};
FbG=function(B,R,V){var e=document,X=B&&B!="*"?String(B).toUpperCase():"";return X||R?(V||e).querySelector(X+(R?"."+R:"")):fY(e,B,R,V)[0]||null};
ZR_=function(B,R){_.M_.forEach(R,function(V,e){e=="style"?B.style.cssText=V:e=="class"?B.className=V:e=="for"?B.htmlFor=V:g5a.hasOwnProperty(e)?B.setAttribute(g5a[e],V):_.pZ(e,"aria-")||_.pZ(e,"data-")?B.setAttribute(e,V):B[e]=V})};
g5a={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"};_.hF=function(B){B=(B||window).document;B=B.compatMode=="CSS1Compat"?B.documentElement:B.body;return new _.Yl(B.clientWidth,B.clientHeight)};
_.mT4=function(B){var R=_.l9(B);B=B.defaultView;return new _.fx(B.pageXOffset||R.scrollLeft,B.pageYOffset||R.scrollTop)};
_.l9=function(B){return B.scrollingElement?B.scrollingElement:_.Wb||B.compatMode!="CSS1Compat"?B.body||B.documentElement:B.documentElement};
lg=function(B){return B?B.defaultView:window};
_.zw=function(B,R,V){return $TG(document,arguments)};
$TG=function(B,R){var V=R[1],e=C_S(B,String(R[0]));V&&(typeof V==="string"?e.className=V:Array.isArray(V)?e.className=V.join(" "):ZR_(e,V));R.length>2&&P_h(B,e,R,2);return e};
P_h=function(B,R,V,e){function X(b){b&&R.appendChild(typeof b==="string"?B.createTextNode(b):b)}
for(;e<V.length;e++){var Y=V[e];if(!_.R4(Y)||_.Xa(Y)&&Y.nodeType>0)X(Y);else{a:{if(Y&&typeof Y.length=="number"){if(_.Xa(Y)){var t=typeof Y.item=="function"||typeof Y.item=="string";break a}if(typeof Y==="function"){t=typeof Y.item=="function";break a}}t=!1}_.ij(t?_.OS(Y):Y,X)}}};
_.jr=function(B){return C_S(document,B)};
C_S=function(B,R){R=String(R);B.contentType==="application/xhtml+xml"&&(R=R.toLowerCase());return B.createElement(R)};
_.ap=function(){return document.createTextNode("\n")};
dE=function(B){if(B.nodeType!=1)return!1;switch(B.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};
n5v=function(B,R){P_h(_.zg(B),B,arguments,1)};
_.wE=function(B){for(var R;R=B.firstChild;)B.removeChild(R)};
_.Tw=function(B,R){R.parentNode&&R.parentNode.insertBefore(B,R)};
_.xP=function(B,R){R.parentNode&&R.parentNode.insertBefore(B,R.nextSibling)};
_.UJ=function(B){return B&&B.parentNode?B.parentNode.removeChild(B):null};
_.uaJ=function(B,R){var V=R.parentNode;V&&V.replaceChild(B,R)};
_.ORJ=function(B){var R,V=B.parentNode;if(V&&V.nodeType!=11)if(B.removeNode)B.removeNode(!1);else{for(;R=B.firstChild;)V.insertBefore(R,B);_.UJ(B)}};
_.LY=function(B){return B.children!=void 0?B.children:Array.prototype.filter.call(B.childNodes,function(R){return R.nodeType==1})};
_.Beb=function(B){return B.nextElementSibling!==void 0?B.nextElementSibling:_.oml(B.nextSibling,!0)};
_.oml=function(B,R){for(;B&&B.nodeType!=1;)B=R?B.nextSibling:B.previousSibling;return B};
_.m4=function(B){return _.Xa(B)&&B.nodeType==1};
_.II=function(B,R){if(!B||!R)return!1;if(B.contains&&R.nodeType==1)return B==R||B.contains(R);if(typeof B.compareDocumentPosition!="undefined")return B==R||!!(B.compareDocumentPosition(R)&16);for(;R&&B!=R;)R=R.parentNode;return R==B};
ezo=function(B,R){if(B==R)return 0;if(B.compareDocumentPosition)return B.compareDocumentPosition(R)&2?1:-1;if("sourceIndex"in B||B.parentNode&&"sourceIndex"in B.parentNode){var V=B.nodeType==1,e=R.nodeType==1;if(V&&e)return B.sourceIndex-R.sourceIndex;var X=B.parentNode,Y=R.parentNode;return X==Y?Rzo(B,R):!V&&_.II(X,R)?-1*V2_(B,R):!e&&_.II(Y,B)?V2_(R,B):(V?B.sourceIndex:X.sourceIndex)-(e?R.sourceIndex:Y.sourceIndex)}e=_.zg(B);V=e.createRange();V.selectNode(B);V.collapse(!0);B=e.createRange();B.selectNode(R);
B.collapse(!0);return V.compareBoundaryPoints(_.R5.Range.START_TO_END,B)};
V2_=function(B,R){var V=B.parentNode;if(V==R)return-1;for(;R.parentNode!=V;)R=R.parentNode;return Rzo(R,B)};
Rzo=function(B,R){for(;R=R.previousSibling;)if(R==B)return-1;return 1};
XoG=function(B){var R,V=arguments.length;if(!V)return null;if(V==1)return arguments[0];var e=[],X=Infinity;for(R=0;R<V;R++){for(var Y=[],t=arguments[R];t;)Y.unshift(t),t=t.parentNode;e.push(Y);X=Math.min(X,Y.length)}Y=null;for(R=0;R<X;R++){t=e[0][R];for(var b=1;b<V;b++)if(t!=e[b][R])return Y;Y=t}return Y};
_.zg=function(B){return B.nodeType==9?B:B.ownerDocument||B.document};
poT=function(B){return B.contentDocument||B.contentWindow.document};
_.vx=function(B,R){if("textContent"in B)B.textContent=R;else if(B.nodeType==3)B.data=String(R);else if(B.firstChild&&B.firstChild.nodeType==3){for(;B.lastChild!=B.firstChild;)B.removeChild(B.lastChild);B.firstChild.data=String(R)}else _.wE(B),B.appendChild(_.zg(B).createTextNode(String(R)))};
Y44={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};hzv={IMG:" ",BR:"\n"};Zk_=function(B){var R;B.tagName=="A"&&B.hasAttribute("href")||B.tagName=="INPUT"||B.tagName=="TEXTAREA"||B.tagName=="SELECT"||B.tagName=="BUTTON"?R=!B.disabled&&(!B.hasAttribute("tabindex")||t2a(B)):R=B.hasAttribute("tabindex")&&t2a(B);return R};
t2a=function(B){B=B.tabIndex;return typeof B==="number"&&B>=0&&B<32768};
be4=function(B){var R=[];W6R(B,R,!0);B=R.join("");B=B.replace(/ \xAD /g," ").replace(/\xAD/g,"");B=B.replace(/\u200B/g,"");B=B.replace(/ +/g," ");B!=" "&&(B=B.replace(/^\s*/,""));return B};
Jro=function(B){var R=[];W6R(B,R,!1);return R.join("")};
W6R=function(B,R,V){if(!(B.nodeName in Y44))if(B.nodeType==3)V?R.push(String(B.nodeValue).replace(/(\r\n|\r|\n)/g,"")):R.push(B.nodeValue);else if(B.nodeName in hzv)R.push(hzv[B.nodeName]);else for(B=B.firstChild;B;)W6R(B,R,V),B=B.nextSibling};
_.jNv=function(B,R,V){if(!R&&!V)return null;var e=R?String(R).toUpperCase():null;return _.xl(B,function(X){return(!e||X.nodeName==e)&&(!V||typeof X.className==="string"&&_.gx(X.className.split(/\s+/),V))},!0)};
_.xl=function(B,R,V){B&&!V&&(B=B.parentNode);for(V=0;B;){if(R(B))return B;B=B.parentNode;V++}return null};
D1=function(B){this.JSC$7233_document_=B||_.R5.document||document};
_.p=D1.prototype;_.p.getElement=function(B){return _.uP(this.JSC$7233_document_,B)};
_.p.$=D1.prototype.getElement;_.p.getElementsByTagName=function(B,R){return(R||this.JSC$7233_document_).getElementsByTagName(String(B))};
_.p.getElementsByTagNameAndClass=function(B,R,V){return fY(this.JSC$7233_document_,B,R,V)};
_.p.$$=D1.prototype.getElementsByTagNameAndClass;_.p.setProperties=ZR_;_.p.JSC$7235_createDom=function(B,R,V){return $TG(this.JSC$7233_document_,arguments)};
_.p.createElement=function(B){return C_S(this.JSC$7233_document_,B)};
_.p.createTextNode=function(B){return this.JSC$7233_document_.createTextNode(String(B))};
_.p.getWindow=function(){return this.JSC$7233_document_.defaultView};
var tF=function(B){return _.mT4(B.JSC$7233_document_)};
_.p=D1.prototype;_.p.appendChild=function(B,R){B.appendChild(R)};
_.p.append=n5v;_.p.canHaveChildren=dE;_.p.removeNode=_.UJ;_.p.getChildren=_.LY;_.p.contains=_.II;_.p=oJ.prototype;_.p.getWidth=function(){return this.right-this.left};
_.p.getHeight=function(){return this.bottom-this.top};
_.p.clone=function(){return new oJ(this.top,this.right,this.bottom,this.left)};
_.p.contains=function(B){return this&&B?B instanceof oJ?B.left>=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom:B.x>=this.left&&B.x<=this.right&&B.y>=this.top&&B.y<=this.bottom:!1};
_.p.expand=function(B,R,V,e){_.Xa(B)?(this.top-=B.top,this.right+=B.right,this.bottom+=B.bottom,this.left-=B.left):(this.top-=B,this.right+=Number(R),this.bottom+=Number(V),this.left-=Number(e));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(B,R){B instanceof _.fx?(this.left+=B.x,this.right+=B.x,this.top+=B.y,this.bottom+=B.y):(this.left+=B,this.right+=B,typeof R==="number"&&(this.top+=R,this.bottom+=R));return this};
_.p.scale=function(B,R){R=typeof R==="number"?R:B;this.left*=B;this.right*=B;this.top*=R;this.bottom*=R;return this};var KY=function(B,R,V,e){this.left=B;this.top=R;this.width=V;this.height=e};
_.p=KY.prototype;_.p.clone=function(){return new KY(this.left,this.top,this.width,this.height)};
_.p.boundingRect=function(B){var R=Math.max(this.left+this.width,B.left+B.width),V=Math.max(this.top+this.height,B.top+B.height);this.left=Math.min(this.left,B.left);this.top=Math.min(this.top,B.top);this.width=R-this.left;this.height=V-this.top};
_.p.contains=function(B){return B instanceof _.fx?B.x>=this.left&&B.x<=this.left+this.width&&B.y>=this.top&&B.y<=this.top+this.height:this.left<=B.left&&this.left+this.width>=B.left+B.width&&this.top<=B.top&&this.top+this.height>=B.top+B.height};
_.p.distance=function(B){var R=B.x<this.left?this.left-B.x:Math.max(B.x-(this.left+this.width),0);B=B.y<this.top?this.top-B.y:Math.max(B.y-(this.top+this.height),0);return Math.sqrt(R*R+B*B)};
_.p.getSize=function(){return new _.Yl(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(B,R){B instanceof _.fx?(this.left+=B.x,this.top+=B.y):(this.left+=B,typeof R==="number"&&(this.top+=R));return this};
_.p.scale=function(B,R){R=typeof R==="number"?R:B;this.left*=B;this.width*=B;this.top*=R;this.height*=R;return this};var Ne5,Qs,JFd,EO,HeJ,S44,M2b,iio,kio,f7_;_.Ip=function(B,R,V){if(typeof R==="string")(R=_.Ujo(B,R))&&(B.style[R]=V);else for(var e in R){V=B;var X=R[e],Y=_.Ujo(V,e);Y&&(V.style[Y]=X)}};
Ne5={};_.Ujo=function(B,R){var V=Ne5[R];if(!V){var e=_.jk(R);V=e;B.style[e]===void 0&&(e=(_.Wb?"Webkit":_.to?"Moz":null)+cAJ(e),B.style[e]!==void 0&&(V=e));Ne5[R]=V}return V};
_.Dd=function(B,R){var V=_.zg(B);return V.defaultView&&V.defaultView.getComputedStyle&&(B=V.defaultView.getComputedStyle(B,null))?B[R]||B.getPropertyValue(R)||"":""};
_.Kd=function(B,R){return _.Dd(B,R)||(B.currentStyle?B.currentStyle[R]:null)||B.style&&B.style[R]};
_.Gil=function(B){return _.Kd(B,"position")};
Qs=function(B,R,V){if(R instanceof _.fx){var e=R.x;R=R.y}else e=R,R=V;B.style.left=EO(e,!1);B.style.top=EO(R,!1)};
JFd=function(B){try{return B.getBoundingClientRect()}catch(R){return{left:0,top:0,right:0,bottom:0}}};
_.wk=function(B){var R=_.zg(B),V=new _.fx(0,0);if(B==(R?_.zg(R):document).documentElement)return V;B=JFd(B);R=tF(WH(R));V.x=B.left+R.x;V.y=B.top+R.y;return V};
_.yra=function(B,R,V){if(R instanceof _.Yl)V=R.height,R=R.width;else if(V==void 0)throw Error("sa");B.style.width=EO(R,!0);B.style.height=EO(V,!0)};
EO=function(B,R){typeof B=="number"&&(B=(R?Math.round(B):B)+"px");return B};
HeJ=function(B){return S44(B)};
S44=function(B){var R=M2b;if(_.Kd(B,"display")!="none")return R(B);var V=B.style,e=V.display,X=V.visibility,Y=V.position;V.visibility="hidden";V.position="absolute";V.display="inline";B=R(B);V.display=e;V.position=Y;V.visibility=X;return B};
M2b=function(B){var R=B.offsetWidth,V=B.offsetHeight,e=_.Wb&&!R&&!V;return(R===void 0||e)&&B.getBoundingClientRect?(B=JFd(B),new _.Yl(B.right-B.left,B.bottom-B.top)):new _.Yl(R,V)};
iio=function(B){var R=_.wk(B);B=S44(B);return new KY(R.x,R.y,B.width,B.height)};
kio=function(B,R){B=B.style;"opacity"in B?B.opacity=R:"MozOpacity"in B?B.MozOpacity=R:"filter"in B&&(B.filter=R===""?"":"alpha(opacity="+Number(R)*100+")")};
_.iy=function(B,R){B.style.display=R?"":"none"};
_.Dj5=function(B){return"rtl"==_.Kd(B,"direction")};
f7_=function(B){var R=_.Dd(B,"marginLeft"),V=_.Dd(B,"marginRight"),e=_.Dd(B,"marginTop");B=_.Dd(B,"marginBottom");return new oJ(parseFloat(e),parseFloat(V),parseFloat(B),parseFloat(R))};
_.l74=function(B){var R=_.Dd(B,"borderLeftWidth"),V=_.Dd(B,"borderRightWidth"),e=_.Dd(B,"borderTopWidth");B=_.Dd(B,"borderBottomWidth");return new oJ(parseFloat(e),parseFloat(V),parseFloat(B),parseFloat(R))};var qm=function(B){this.context=B};
qm.prototype.isSupported=function(B){return(B==null?0:B.attributionEnabled)||(B==null?void 0:B.beaconMethod)==="POST"||(B==null?0:B.customHeaders)||(B==null?0:B.customBody)||(B==null?0:B.keepAlive)?!1:!Nm(this.context)};
qm.prototype.ping=function(){var B=this;return U0(_.HB.apply(0,arguments).map(function(R){try{var V=B.context.global,e=!1;e=e===void 0?!1:e;V.google_image_requests||(V.google_image_requests=[]);var X=chh("IMG",V.document);e&&(X.attributionSrc="");X.src=R;V.google_image_requests.push(X);return!0}catch(Y){return!1}}).every(function(R){return R}))};
qm.prototype.pingWithHeadersAndBody=function(B,R,V){this.ping.apply(this,_.MI(_.HB.apply(3,arguments)))};var zzh=function(B){this.context=B};
zzh.prototype.isSupported=function(B){return a7R&&!Nm(this.context)&&gqd(this.context)!==void 0&&!(B==null?0:B.attributionEnabled)&&(B==null?void 0:B.beaconMethod)!=="POST"&&!(B==null?0:B.customHeaders)&&!(B==null?0:B.customBody)};
zzh.prototype.makeBeacon=function(B,R){if(!this.isSupported(R))throw new b9;return new cx(this.context,B)};
var a7R=!1,cx=function(B,R){this.context=B;this.JSC$7254_urlWithoutToken=R;B=gqd(this.context);if(B===void 0)throw Error();this.wrappedBeacon=new B(dj4(this),{})},dj4=function(B){B=B.JSC$7254_urlWithoutToken;
return(B.slice(-1)[0]==="&"?B:B+"&")+"pbapi=1"};
cx.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
cx.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
cx.prototype.setHeader=function(){};
_.mh.Object.defineProperties(cx.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7254_urlWithoutToken},
set:function(B){this.JSC$7254_urlWithoutToken=B;this.wrappedBeacon.setURL(dj4(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(B){if(B!=="GET")throw new b9;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var wo4=function(B){this.context=B};
wo4.prototype.isSupported=function(B){if((B==null?0:B.attributionEnabled)||(B==null?void 0:B.beaconMethod)==="GET"||(B==null?0:B.customHeaders)||(B==null?0:B.customBody)||(B==null?0:B.keepAlive))return!1;var R;return!Nm(this.context)&&((R=this.context.global.navigator)==null?void 0:R.sendBeacon)!==void 0};
wo4.prototype.ping=function(){var B=this;return U0(_.HB.apply(0,arguments).map(function(R){var V;return(V=B.context.global.navigator)==null?void 0:V.sendBeacon(R)}).every(function(R){return R}))};
wo4.prototype.pingWithHeadersAndBody=function(B,R,V){this.ping.apply(this,_.MI(_.HB.apply(3,arguments)))};var XD=function(B){this.value=B},sh=function(B,R){return U0(B.value).pipe(Vc(R))},mO=new XD(!1),k$_=new XD(!0);var Lx=function(B){this.value=B;this.releasedSubject=new BH};
Lx.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.mh.Object.defineProperties(Lx.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7267_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var eOx=["FRAME","IMG","IFRAME"],u5Z=/^[01](px)?$/,VnY=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},ROK=function(){var B=new VnY;
B.crossDomainLoadedDefault=!0;B.pendingImagesBlockLoad=!0;return B};var TeG=function(B,R){var V=brN(B);if(V)if(V.onCreativeLoad)V.onCreativeLoad(R);else{var e=R?[R]:[],X=function(Y){for(var t=0;t<e.length;++t)try{e[t](1,Y)}catch(b){}e={push:function(b){b(1,Y)}}};
V.onCreativeLoad=function(Y){e.push(Y)};
V.setAttribute("data-creative-load-listener","");V.addEventListener("creativeLoad",function(Y){X(Y.detail)});
_.R5.addEventListener("message",function(Y){WCK(V,X,Y)})}};var A_=function(B,R){var V=this;this.global=B;this.parentContext=R;this.JSC$7278_onVisibilityChange=this.document?wP(U0(!0),ab(this.document,"visibilitychange")).pipe(vR(this.parentContext.performanceMonitor,748),HR(function(){return V.getVisibilityState()}),qI()):U0("visible");
this.document?ab(this.document,"DOMContentLoaded").pipe(vR(this.parentContext.performanceMonitor,739),QJ(1)):U0(PDY("DOMContentLoaded"))},MrY=function(B){return B.document!==null&&B.document.visibilityState!==void 0};
A_.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
A_.prototype.querySelector=function(B){return this.document?this.document.querySelector(B):null};
A_.prototype.querySelectorAll=function(B){return this.document?_.OS(this.document.querySelectorAll(B)):[]};
A_.prototype.elementFromPoint=function(B,R){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;B=this.document.elementFromPoint(B,R);return B===null?null:new Lx(B)};
var tr5=function(B,R,V){V=V===void 0?!1:V;if(R.ref===void 0||!B.document)return U0(R).pipe(vR(B.parentContext.performanceMonitor,749));var e=new s0(1),X=function(){e.next(R)};
V||TeG(R.ref,X);XRI(R.ref,X);return e.pipe(vR(B.parentContext.performanceMonitor,749),QJ(1))};
_.mh.Object.defineProperties(A_.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return aJ(this.global,"document")?this.global.document||null:null}}});var Jqd=_.$Q(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),jbd=_.$Q(["./reach_worklet.js"]),UId=_.$Q(["./reach_worklet.js"]),xjv=_.$Q(["./reach_worklet.html"]),L6l=_.$Q(["./reach_worklet.js"]),vmh=_.$Q(["./reach_worklet.js"]);_.u3(xjv);_.u3(L6l);_.u3(vmh);var Eh={left:0,top:0,width:0,height:0};var K6a,I75,Em_,QN4,CQ,cra,ArG,ieT,rr2,gm5,Zeo,mjR;K6a=function(B,R,V,e,X,Y,t){var b="";B&&(b+=B+":");V&&(b+="//",R&&(b+=R+"@"),b+=V,e&&(b+=":"+e));X&&(b+=X);Y&&(b+="?"+Y);t&&(b+="#"+t);return b};
I75=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Zk=function(B){return B.match(I75)};
_.w2=function(B,R){return B?R?decodeURI(B):decodeURIComponent(B):B};
Em_=function(B){B=_.Zk(B)[1]||null;!B&&_.R5.self&&_.R5.self.location&&(B=_.R5.self.location.protocol.slice(0,-1));return B?B.toLowerCase():""};
_.mn=function(B){return _.w2(_.Zk(B)[3]||null,!0)};
_.tu=function(B){return _.w2(_.Zk(B)[5]||null,!0)};
_.MKu=function(B){var R=B.indexOf("#");return R<0?null:B.slice(R+1)};
QN4=function(B){B=_.Zk(B);return K6a(B[1],B[2],B[3],B[4])};
_.q44=function(B){B=_.Zk(B);return K6a(B[1],null,B[3],B[4])};
_.QT=function(B){B=_.Zk(B);return K6a(null,null,null,null,B[5],B[6],B[7])};
_.gT=function(B){var R=B.indexOf("#");return R<0?B:B.slice(0,R)};
CQ=function(B,R){B=_.Zk(B);R=_.Zk(R);return B[3]==R[3]&&B[1]==R[1]&&B[4]==R[4]};
cra=function(B,R){if(B){B=B.split("&");for(var V=0;V<B.length;V++){var e=B[V].indexOf("="),X=null;if(e>=0){var Y=B[V].substring(0,e);X=B[V].substring(e+1)}else Y=B[V];R(Y,X?nQ(X):"")}}};
ArG=function(B){var R=B.indexOf("#");R<0&&(R=B.length);var V=B.indexOf("?");if(V<0||V>R){V=R;var e=""}else e=B.substring(V+1,R);return[B.slice(0,V),e,B.slice(R)]};
ieT=function(B,R){return R?B?B+"&"+R:R:B};
_.sN2=function(B,R){if(!R)return B;B=ArG(B);B[1]=ieT(B[1],R);return B[0]+(B[1]?"?"+B[1]:"")+B[2]};
_.F6a=function(B,R,V){if(Array.isArray(R))for(var e=0;e<R.length;e++)_.F6a(B,String(R[e]),V);else R!=null&&V.push(B+(R===""?"":"="+_.AS(R)))};
_.bN=function(B){var R=[],V;for(V in B)_.F6a(V,B[V],R);return R.join("&")};
_.gg=function(B,R){R=_.bN(R);return _.sN2(B,R)};
_.i9=function(B,R,V){V=V!=null?"="+_.AS(V):"";return _.sN2(B,R+V)};
rr2=function(B,R,V,e){for(var X=V.length;(R=B.indexOf(V,R))>=0&&R<e;){var Y=B.charCodeAt(R-1);if(Y==38||Y==63)if(Y=B.charCodeAt(R+X),!Y||Y==61||Y==38||Y==35)return R;R+=X+1}return-1};
gm5=/#|$/;_.EJ=function(B,R){var V=B.search(gm5),e=rr2(B,0,R,V);if(e<0)return null;var X=B.indexOf("&",e);if(X<0||X>V)X=V;e+=R.length+1;return nQ(B.slice(e,X!==-1?X:0))};
Zeo=/[?&]($|#)/;_.mc=function(B,R){for(var V=B.search(gm5),e=0,X,Y=[];(X=rr2(B,e,R,V))>=0;)Y.push(B.substring(e,X)),e=Math.min(B.indexOf("&",X)+1||V,V);Y.push(B.slice(e));return Y.join("").replace(Zeo,"$1")};
_.QU=function(B,R,V){return _.i9(_.mc(B,R),R,V)};
mjR=function(B){var R=ArG(window.location.href),V=R[1],e=[];V&&V.split("&").forEach(function(X){var Y=X.indexOf("=");Y=Y>=0?X.slice(0,Y):X;B.hasOwnProperty(Y)||e.push(X)});
R[1]=ieT(e.join("&"),_.bN(B));return R[0]+(R[1]?"?"+R[1]:"")+R[2]};var IXK=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(IXK,_.qS);IXK.prototype.getVersion=function(){return _.xU(this,2)};var KCK=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(KCK,_.qS);var dIo=function(B,R){return _.bg(B,2,R)},vbA=function(B,R){return _.bg(B,3,R)};
KCK.prototype.getModel=function(){return _.xU(this,4)};
var TPq=function(B,R){return _.bg(B,4,R)},aX5=function(B,R){return _.bg(B,5,R)},LCS=function(B,R){return _.bg(B,9,R)},zOS=function(B,R){return l8(B,10,R)},lXx=function(B,R){return _.Xn(B,11,R)},wRN=function(B,R){return _.bg(B,1,R)},xId=function(B,R){return _.Xn(B,7,R)};var DIK="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var ZO=function(B,R,V,e){B=B===void 0?window:B;R=R===void 0?null:R;V=V===void 0?new bZo:V;e=e===void 0?NPd():e;o5o.call(this);var X=this;this.global=B;this.debugChannel=R;this.performanceMonitor=V;this.onPageHide=z4(function(){return ab(X.global,"pagehide")}).pipe(vR(this.performanceMonitor,941));
this.onLoad=z4(function(){return ab(X.global,"load")}).pipe(vR(this.performanceMonitor,738),QJ(1));
this.onResize=z4(function(){return ab(X.global,"resize")}).pipe(vR(this.performanceMonitor,741));
this.onMessage=z4(function(){return ab(X.global,"message")}).pipe(vR(this.performanceMonitor,740));
this.document=new A_(this.global,this);this.timeProvider=new p2v(new hlh(this.intrinsicFunctionNamespace,this.performanceMonitor),new Yo4(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new VJT(new Wbl(this),new zzh(this),new J_(this,new j42(this)),new J_(this,new wo4(this)),new J_(this,new qm(this)))};
_.l(ZO,o5o);var Nm=function(B){var R=B.global;return!!B.global.HTMLFencedFrameElement&&!!R.fence&&typeof R.fence.reportEvent==="function"};
_.p=ZO.prototype;_.p.reportFencedFrameEvent=function(B){Nm(this)&&this.global.fence.reportEvent(B)};
_.p.getOnBackgrounded=function(){return this.onPageHide.pipe(vR(this.performanceMonitor,942),Vc(this.queue),HR(function(){}))};
_.p.postMessage=function(B,R,V){V=V===void 0?[]:V;this.global.postMessage(B,R,V)};
_.p.getWidth=function(){return gk(this.global)?this.global.width:0};
_.p.getHeight=function(){return gk(this.global)?this.global.height:0};
_.p.isMobile=function(){return N4a()||GG_()};
var vH=function(B,R){try{var V=Hru(R,B.global,B.isMobile());return{left:V.left,top:V.top,width:V.getWidth(),height:V.getHeight()}}catch(e){return Eh}};
ZO.prototype.validate=function(){var B=this.beaconFactory.isSupported()||Nm(this);return this.global&&this.timeProvider.available()&&B};
var mVI=function(B){return(B=QbS(B.global))?VJ(B):null};
_.mh.Object.defineProperties(ZO.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(B){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!gk(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}}});_.$j2=!_.ho&&!_.LZ();var D2d=function(B){return B};var lvS=function(B){return B.pipe(T4(function(R){var V=R.endOfSessionReason;var e;return((e=R.viewable)==null?void 0:e.extrapolateToNow().value)||V!=void 0}),QJ(1),Ib())};var FCY=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},rqd=function(B){var R=B.sequenceNumber.toString(10).padStart(2,"0");
R=""+B.startTime+R;B.sequenceNumber<99&&B.sequenceNumber++;return R};var Hdo=uD(mC(function(B){return B.endOfSessionReason===void 0}),HR(function(B){return Object.assign({},B,{timestamps:Uh(B)})}),T4(function(B){var R=B.viewable;
B=B.timestamps;var V;return(V=R==null?void 0:R.extrapolateUsingTimestampMap(B).value)!=null?V:!1}),HR(function(B){var R=B.beaconFactory;
var V=B.timestampedExposureHistory;var e=B.timeOnScreen;var X=B.binaryContext;B=B.timestamps;if(R===void 0||V===void 0||e===void 0||X===void 0)return!1;if(e.extrapolateUsingTimestampMap(B).value.every(function(Y){return Y>=0}))return!0;
V=V.map(function(Y){return Y.timestamp+":"+Y.value}).join(",");
e=N_({bin:X,tos:e},B);R.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+e+("&eh="+V)).sendNow();return!0}),mC(function(B){return!B}),Ib());var ZrI=function(B){return{id:B.pingId,mcvt:B.maxConsecutiveViewTime,p:B.creativePosition,asp:B.adSpeedPosition,tm:B.totalMeasurementTime,tu:B.totalUnviewedTime,mtos:B.maxTimeOnScreen,tos:B.timeOnScreen,v:B.binaryVersion,bin:B.binaryContext,avms:B.measurementStrategy,bs:B.browserSize,mc:B.maximumExposure,"if":B.crossDomainIframeState,vu:B.delayedImpressionJsState,app:B.inApp,mse:B.mraidError,mtop:B.mraidSituation,itpl:B.injectedTemplateId,adk:B.adKey,exk:B.awbidKey,rs:B.requestSource,la:B.isLargeAd,
cr:B.isContentRecommendationAd,uach:B.userAgentClientHints,vs:B.viewState,r:B.reasonCode,pay:B.hasCpmavUrl,co:B.clientPingOrderCounter,rst:B.adRenderStartTime,rpt:B.adRenderPeriodTime,isd:B.initialScrollDepth,lsd:B.loadedScrollDepth,context:B.errorContext,msg:B.errorMessage,stack:B.errorStack,name:B.errorName,ec:B.hasElementChanged,sfr:B.strategyFailureReasons,met:B.creativeSearchResult,wmsd:B.webMeasurementStartDiagnostic,pv:B.pageVisible,epv:B.eosPageVisible,pbe:B.inStatefulBeaconExperiment,fle:B.inFetchLaterBeaconExperiment,
vae:B.inViewableAttributionExperiment,spb:B.supportsPendingBeacon,sfl:B.supportsFetchLater,ffslot:B.isFencedFrameSlotTurtlex,reach:B.sharedStorageReachMode,io2:B.v2VisibilityBitVector,rxdbg:B.rxDebugger,omida:B.omidAppId,omidp:B.omidPartner,omidpv:B.omidPartnerVersion,omidor:B.omidOcclusionReasons,omidv:B.omidVersion,omids:B.omidSessionType,omidam:B.omidAccessMode,omidct:B.omidCreativeType,omidia:B.omidInApp,omiddc:B.omidDeviceCategory,omidlat:B.omidLastActivity,omiddit:B.omidDeviceIdleTime,qid:B.errorEscapedQueryId}};var fvA=function(B){var R=[];return B.pipe(HR(function(V){var e=V.beaconFactory,X=V.fetchBeaconFactory,Y=V.timeOnScreen,t=V.timeOnScreenUrlPrefixes,b=V.payloadMapper,J=V.timeOnScreenPingId,G=V.timeOnScreenReason,y=V.urlSerializer,S=V.viewable,M=V.hasImpressionFired,f=V.inStatefulBeaconExperiment,z=V.supportsPendingBeacon,T=V.supportsFetchLater,L=V.turtlexReportEventData;if(!V.geometryMeasurable||!M||V.maxTimeOnScreen===void 0||Y===void 0||t===void 0||b===void 0||J===void 0||y===void 0||e===void 0)return!1;
if(V.isTurtlex){if(G===void 0)return!1;t=V.reportFencedFrameEvent;if(!t)return!1;t({eventType:"active-view-time-on-screen",eventData:L!=null?L:"",destination:["buyer"]});return!0}if(!(f||T||G))return!1;L=Uh(V);var Q;S=(Q=S==null?void 0:S.extrapolateUsingTimestampMap(L).value)!=null?Q:!1;Q=y(Object.assign({},V,{pingId:J,viewState:S?4:3,reasonCode:G!=null?G:"u",payloadMapper:b,urlPrefixes:t}),L);if(f){for(;R.length>t.length;)V=void 0,(V=R.shift())==null||V.deactivate();Q.forEach(function(m,g){g>=R.length?
R.push(e.makeBeacon(m)):R[g].url=m});
return z&&X&&G!==void 0?(Q.forEach(function(m){X.makeBeacon(m).sendNow()}),!0):G!==void 0}if(z&&X&&G!==void 0)return Q.forEach(function(m){X.makeBeacon(m).sendNow()}),!0;
if(T&&X){for(;R.length>t.length;)z=void 0,(z=R.shift())==null||z.deactivate();var q=y(Object.assign({},V,{pingId:J,viewState:S?4:3,reasonCode:G!=null?G:"u",payloadMapper:b,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),L)[0];Q.forEach(function(m,g){g>=R.length?R.push(e.makeBeacon(q,{endOfSession:!0})):R[g].url=q});
return G!==void 0?(Q.forEach(function(m){X.makeBeacon(m).sendNow()}),!0):G!==void 0}return G!==void 0?(Q.forEach(function(m){e.makeBeacon(m).sendNow()}),!0):!1}),mC(function(V){return!V}),Ib())};var zQI=uD(T4(function(B){return B.immediateUrlPrefixes!==void 0&&B.payloadMapper!==void 0&&B.urlSerializer!==void 0&&B.inferredPingId!==void 0&&B.beaconFactory!==void 0}),T4(function(B){return olS(B)!==null}),ufN(function(B){return B.activeViewUnmeasurableEvent},function(B){return B.emit}),HR(function(B){if(B.isTurtlex){var R=B.reportFencedFrameEvent;
if(R){var V;R({eventType:"active-view-unmeasurable",eventData:(V=B.turtlexReportEventData)!=null?V:"",destination:["buyer"]})}}else{V=void 0;var e=olS(B);if(e==="x"){var X,Y=(X=B.geometricMeasurementErrors)!=null?X:B.contextValidationErrors;Y&&(R=Y.stack,V=Y.message)}B.urlSerializer(Object.assign({},B,{urlPrefixes:B.immediateUrlPrefixes,payloadMapper:B.payloadMapper,pingId:B.inferredPingId,viewState:2,reasonCode:e,errorMessage:V,errorStack:R}),Uh(B)).forEach(function(t){B.beaconFactory.makeBeacon(t).sendNow()})}}),
QJ(1),Ib());var BkS=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var SJd=uD(T4(function(B){return B.payloadMapper!==void 0&&B.immediateUrlPrefixes!==void 0&&B.urlSerializer!==void 0&&B.inferredPingId!==void 0&&B.beaconFactory!==void 0}),HR(function(B){return Object.assign({},B,{timestamps:Uh(B)})}),T4(function(B){var R=B.viewable;
var V=B.hasImpressionFired;B=B.timestamps;var e;return!!V&&((e=R==null?void 0:R.extrapolateUsingTimestampMap(B).value)!=null?e:!1)}),ufN(function(B){return B.activeViewViewableEvent},function(B){return B.emit}),HR(function(B){var R=B.beaconFactory,V=B.turtlexReportEventData;
if(B.isTurtlex){var e=B.reportFencedFrameEvent;if(!e)return!1;e({eventType:"active-view-viewable",eventData:V!=null?V:"",destination:["buyer"]});return!0}V=B.urlSerializer(Object.assign({},B,{urlPrefixes:B.immediateUrlPrefixes,payloadMapper:B.payloadMapper,pingId:B.inferredPingId,viewState:4,reasonCode:"v"}),B.timestamps);(e=B.cpmavUrls)&&e.length>0&&B.viewUrlSerializer&&B.viewUrlSerializer(e,B).forEach(function(X){R.makeBeacon(X).sendNow()});
(e=B.viewableRelayUrls)&&e.length>0&&B.viewUrlSerializer&&B.viewUrlSerializer(e,B).forEach(function(X){R.makeBeacon(X).sendNow()});
V.forEach(function(X){R.makeBeacon(X,{attributionEnabled:B.isViewableAttributionEnabled}).sendNow()});
return!0}),mC(function(B){return!B}),Ib());var rFZ=HR(function(B){return[B.value.topWindowViewportExternalGeometry.width,B.value.topWindowViewportExternalGeometry.height]});var Kx=function(B,R){this.callback=B;this.options=R;this.intersectionObserverV2=this.intersectionObserverV1=null},zCS=function(B,R){R?B.intersectionObserverV2||(R=Object.assign({},B.options,{delay:100,
trackVisibility:!0}),B.intersectionObserverV2=new IntersectionObserver(B.callback,R)):B.intersectionObserverV1||(B.intersectionObserverV1=new IntersectionObserver(B.callback,B.options))},C4o=function(B,R){B=R?B.intersectionObserverV2:B.intersectionObserverV1;
if(!B)throw new B4J;return B};
Kx.prototype.observe=function(B,R){C4o(this,B).observe(R)};
Kx.prototype.unobserve=function(B,R){C4o(this,B).unobserve(R)};
Kx.prototype.disconnect=function(B){C4o(this,B).disconnect()};
Kx.prototype.takeRecords=function(B){return C4o(this,B).takeRecords()};var Tg={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Eh,topWindowViewportExternalGeometry:Eh,measurementRequests:new BH,elementGeometrySourceName:"ns",elementGeometry:Eh,intersectionGeometry:Eh,viewportLocalAppOffset:{x:0,y:0}};var vlx=Qc(uD(HR(function(B){var R;return(R=B.exposureOverride)!=null?R:d_N(B)}),HR(function(B){return isFinite(B)?B:0}))),AFd=Qc(uD(HR(function(B){var R;
return(R=B.exposureOverride)!=null?R:d_N(B)}),HR(function(B){return isFinite(B)?B:-1})));var sO=function(B,R){this.a=B;this.b=R;if(B.clock.timeline!==R.clock.timeline)throw Error();};
sO.prototype.equivalentTo=function(B){return B instanceof sO?this.a.equivalentTo(B.a)&&this.b.equivalentTo(B.b):!1};
sO.prototype.extrapolateToTime=function(B){var R=this.a.extrapolateToTime(B).value,V=this.b.extrapolateToTime(B).value;return{timestamp:B,value:[R,V]}};
_.mh.Object.defineProperties(sO.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 B=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),R=this.a.lastMeasurement.timestamp.equals(B)?this.a.lastMeasurement.value:this.a.extrapolateToTime(B).value,V=this.b.lastMeasurement.timestamp.equals(B)?this.b.lastMeasurement.value:this.b.extrapolateToTime(B).value;return{timestamp:B,value:[R,V]}}}});var FK=function(B,R){this.input=B;this.mapFunction=R;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
FK.prototype.equivalentTo=function(B){return B instanceof FK?this.input.equivalentTo(B.input)&&this.mapFunction===B.mapFunction:!1};
FK.prototype.extrapolateToTime=function(B){B=this.input.extrapolateToTime(B);return{timestamp:B.timestamp,value:this.mapFunction(B.value)}};
_.mh.Object.defineProperties(FK.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var rE=function(){};
rE.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
rE.prototype.extrapolateUsingTimestampMap=function(B){var R=this.clock.timeline,V,e=(V=B.get(R))!=null?V:this.clock.now();B.set(R,e);return this.extrapolateToTime(e)};
rE.prototype.map=function(B){return new P4l(this,B)};
rE.prototype.joinWith=function(B){return new nma(this,B)};
var nma=function(){sO.apply(this,arguments);this.map=rE.prototype.map;this.joinWith=rE.prototype.joinWith;this.extrapolateToNow=rE.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=rE.prototype.extrapolateUsingTimestampMap};
_.l(nma,sO);var P4l=function(){FK.apply(this,arguments);this.map=rE.prototype.map;this.joinWith=rE.prototype.joinWith;this.extrapolateToNow=rE.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=rE.prototype.extrapolateUsingTimestampMap};
_.l(P4l,FK);var AF=function(B,R){this.lastMeasurement=R;this.extrapolateToNow=rE.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=rE.prototype.extrapolateUsingTimestampMap;this.map=rE.prototype.map;this.joinWith=rE.prototype.joinWith;this.clock=B};
AF.prototype.equivalentTo=function(B){return B.active};
AF.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.mh.Object.defineProperties(AF.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var FOZ=HR(function(B){if(B.value.viewportGeometrySourceName==="omid"){if(B.value.elementGeometrySourceName==="nio")return"omio";if(B.value.elementGeometrySourceName==="geo")return"omgeo"}return B.value.elementGeometrySourceName==="geo"||B.value.elementGeometrySourceName==="nio"?B.value.viewportGeometrySourceName:B.value.elementGeometrySourceName});var TkS=uD(T4(function(B){return!isNaN(B)}),rP(function(B,R){return isNaN(B)?R:Math.min(B,R)},NaN),qI());var KOd=Qc(uD(HR(function(B){return B.intersectionGeometry.width*B.intersectionGeometry.height/(B.exposedViewportLocalGeometry.width*B.exposedViewportLocalGeometry.height)}),HR(function(B){return isFinite(B)?Math.min(1,B):0})));var sJp=uD(Qc(HR(function(B){B=B.exposureOverride?B.elementGeometry.width*B.elementGeometry.height*B.exposureOverride/(B.topWindowViewportExternalGeometry.width*B.topWindowViewportExternalGeometry.height):B.intersectionGeometry.width*B.intersectionGeometry.height/(B.topWindowViewportExternalGeometry.width*B.topWindowViewportExternalGeometry.height);return isFinite(B)?B:0})));var Zxu=function(B,R){var V=this;this.timeProvider=B;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=R.pipe(qI()).subscribe(function(e){rk(V);V.measurementRequestObserver=e})},$_N=function(B,R){rk(B);
B.lastMeasurementRequest=B.timeProvider.setTimeout(function(){var V;return void((V=B.measurementRequestObserver)==null?void 0:V.next())},R)},rk=function(B){B.lastMeasurementRequest!==null&&B.timeProvider.clearTimeout(B.lastMeasurementRequest);
B.lastMeasurementRequest=null};
Zxu.prototype.dispose=function(){rk(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var uUT=function(){};var Nzx=function(B,R){this.context=B;this.strategies=R};
_.l(Nzx,uUT);Nzx.prototype.buildGeometrySource=function(B,R){var V=this.strategies.map(function(Y){return Y.buildGeometrySource(B,R)}),e=Ox_(V.map(function(Y){return Y.geometrySource})),X=e.capturedErrors.pipe(OeT());
return{geometrySource:e.chain.pipe(Vc(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:X,strategyErrors:e.capturedErrors}].concat(_.MI(V.map(function(Y){return Y.additionalOutputs}))))}};
var OeT=function(){return rP(function(B,R){R instanceof SD?B.push(R.measurementStrategyFailureReason):B.push(-1);return B},[])};var y4d=function(B,R){this.context=B;this.poller=R};
_.l(y4d,uUT);y4d.prototype.buildGeometrySource=function(B,R){var V=o0A(RQq(this.context,this.poller),U_o(this.context,R.requestSource));return{geometrySource:uDo(B.measurableCreative.pipe(V),R.inApp),additionalOutputs:{}}};var G$u=function(B,R,V){V=V===void 0?MDu(B,R):V;this.context=B;this.intersectionObserverStrategy=V};
_.l(G$u,uUT);G$u.prototype.buildGeometrySource=function(B,R){var V=this.intersectionObserverStrategy(R.useV2);return{geometrySource:uDo(B.measurableCreative.pipe(V,kg_(this.context)),R.inApp),additionalOutputs:{}}};var ovR=function(B,R,V){var e=e===void 0?Symbol():e;this.element=B;this.immediateUrls=R;this.timeOnScreenUrls=V;this.symbol=e};var FD=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),YJ_=Object.freeze([1,.75,FD.exposureThreshold,FD.largeAdExposureThreshold,0]);var Kiu=function(B,R){R=R===void 0?36E5:R;var V=V===void 0?!0:V;this.creatives=new BH;this.elementsToUnregister=new BH;this.elementMap=new Map;var e=new ZO(window,null);e.beaconFactory=new J_(e,new qm(e));U2Y(e,this.creatives,this.elementsToUnregister,B,R,V).subscribe()},QdI=function(B,R,V,e){if(!B.elementMap.has(R)){var X=new Lx(R);
B.elementMap.set(R,X);B.creatives.next(new ovR(X,V,e))}},EMN=function(B,R){B.elementsToUnregister.next(R);
var V=B.elementMap.get(R);V!==void 0&&(V.release(),B.elementMap.delete(R))};var kFS=avd("adurl"),Mc5=avd("ae"),Hk5=avd("dsh"),SXS=function(B){var R=B.url;B=B.uaDataValues;this.JSC$7383_url_=R;this.uaDataValues_=B;this.suid_=(new Date).getTime()-17040672E5},D1Z=function(B){B=B.uaDataValues_;
if(!B)return"";var R=$l("uap",B.platform)+$l("uapv",B.platformVersion)+$l("uafv",B.uaFullVersion)+$l("uaa",B.architecture)+$l("uam",B.model)+$l("uab",B.bitness);B.fullVersionList&&(R+="&uafvl="+encodeURIComponent(B.fullVersionList.map(function(V){return encodeURIComponent(V.brand)+";"+encodeURIComponent(V.version)}).join("|")));
B.wow64!=null&&(R+="&uaw="+Number(B.wow64));return R.slice(1)};var gE=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(gE,_.qS);gE.prototype.getId=function(){return _.xU(this,1)};
gE.prototype.setId=function(B){return _.oH(this,1,B)};var Z1=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Z1,_.qS);Z1.prototype.getSeconds=function(){return wX(this,1)};
Z1.prototype.setSeconds=function(B){return _.lI(this,1,Le(B),"0")};_.iH=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(_.iH,_.qS);_.iH.prototype.getSeconds=function(){return wX(this,1)};
_.iH.prototype.setSeconds=function(B){return _.lI(this,1,Le(B),"0")};
_.Bq4=function(B){var R=Number(vb(B,1));B=_.Bn(B,2);return new Date(R*1E3+B/1E6)};var mK=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(mK,_.qS);mK.prototype.getUrl=function(){return _.xU(this,1)};
mK.prototype.setUrl=function(B){return _.oH(this,1,B)};
mK.prototype.getHeight=function(){return _.Bn(this,2)};
mK.prototype.getWidth=function(){return _.Bn(this,3)};var $P=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l($P,_.qS);$P.prototype.getAspectRatio=function(){return To(this,1)};
$P.prototype.setAspectRatio=function(B){return _.lI(this,1,_.hr(B),0)};
$P.prototype.getDuration=function(){return _.OB(this,Z1,2)};var Rk2=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Rk2,_.qS);var Vzb=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Vzb,_.qS);var ekR=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(ekR,_.qS);var XyJ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(XyJ,_.qS);var pyR=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(pyR,_.qS);var YY4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(YY4,_.qS);var hk5=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(hk5,_.qS);var tzR=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(tzR,_.qS);var WlR=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(WlR,_.qS);var CY=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(CY,_.qS);var Px=[2,4,5,6,7];var bf_=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(bf_,_.qS);var zo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(zo,_.qS);_.p=zo.prototype;_.p.getId=function(){return _.OB(this,gE,1)};
_.p.setId=function(B){return _.Ra(this,1,B)};
_.p.getName=function(){return _.xU(this,2)};
_.p.setDescription=function(B){return _.oH(this,3,B)};
_.p.getUrl=function(){return _.xU(this,8)};
_.p.setUrl=function(B){return _.oH(this,8,B)};
var nY=function(B){return _.Oh(B,mK,10,_.oI())};
zo.prototype.getOwner=function(B){var R=_.Hy(this,40,_.co,3,!0);r4(R,B);return R[B]};
zo.prototype.getVersion=function(){return wX(this,45)};
var u9=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(u9,_.qS);_.JDJ=[0,OzA,ByA];_.jma=[0,OzA,ByA];var USa=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(USa,_.qS);var OO=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(OO,_.qS);OO.prototype.getStatus=function(){return _.LU(this,1)};
OO.prototype.removeItem=function(B){return GVY(this,2,B)};var Nq4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Nq4,_.qS);Nq4.prototype.getName=function(){return _.xU(this,8)};var oB=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(oB,_.qS);oB.prototype.getCommand=function(){return _.LU(this,1)};
oB.prototype.getSource=function(){return _.OB(this,Nq4,2)};
oB.prototype.setVisible=function(B){return _.zE(this,5,B)};
oB.prototype.removeItem=function(B){return GVY(this,7,B)};var GXJ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(GXJ,_.qS);GXJ.prototype.getCommand=function(){return _.LU(this,1)};
GXJ.prototype.removeItem=function(B){return GVY(this,4,B)};
var yDR=_.oa(GXJ);var B_=function(B,R,V){V=V===void 0?Error():V;var e=Error.call(this);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=B;R+=":";V instanceof Error?(this.message=R+V.message,this.stack=V.stack||""):(this.message=R+String(V),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(B_,Error);_.Hn=function(){this.JSC$7441_disposed_=this.JSC$7441_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Hn.prototype.JSC$7441_disposed_=!1;_.Hn.prototype.isDisposed=function(){return this.JSC$7441_disposed_};
_.Hn.prototype.dispose=function(){this.JSC$7441_disposed_||(this.JSC$7441_disposed_=!0,this.disposeInternal())};
_.Hn.prototype[Symbol.dispose]=function(){this.dispose()};
_.t4=function(B,R){B.addOnDisposeCallback(_.JE(_.Cx,R))};
_.Hn.prototype.addOnDisposeCallback=function(B,R){this.JSC$7441_disposed_?R!==void 0?B.call(R):B():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),R&&(B=B.bind(R)),this.onDisposeCallbacks_.push(B))};
_.Hn.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var RB=function(B){_.Hn.call(this);this.wpc=B};
_.l(RB,_.Hn);RB.prototype.d5r=function(){return this.wpc.f()};
RB.prototype.uHY=function(B){return this.wpc.c(B)};
RB.prototype.zJ=function(B){return this.wpc.m(v0K(B))};
RB.prototype.qO=function(B){return this.wpc.mws(v0K(B))};
var ug=function(B){_.Hn.call(this);var R=this;this.t3=B;this.hDD="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.jSs=void 0;this.j3j=this.t3.p;this.jO3=this.ede.bind(this);this.addOnDisposeCallback(function(){return void SYo(R)})};
_.l(ug,_.Hn);var Hf_=function(B){var R;return _.W(function(V){if(V.nextAddress==1){if(!B.t3.wpc)throw new B_(30,"NWA");return B.evO?V.return(B.evO):_.U(V,B.t3.wpc(),2)}R=V.yieldResult;B.evO=new RB(R);return V.return(B.evO)})};
ug.prototype.snapshot=function(B){return this.t3.s(Object.assign({},B.m6&&{c:B.m6},B.xrO&&{s:B.xrO},B.p1E!==void 0&&{p:B.p1E}))};
ug.prototype.ede=function(B){this.t3.e(B)};
ug.prototype.hjO=function(B,R){return this.t3.c(B,R,!1)};
var SYo=function(B){B.jSs!==void 0&&(B.hDD.forEach(function(R){var V;(V=B.jSs)==null||V.removeEventListener(R,B.jO3)}),B.jSs=void 0)};
ug.prototype.iDe=function(){return this.t3.l()};var Mzh,Vg=function(){_.Hn.apply(this,arguments);this.p9T=1;this[Mzh]=this.dispose};
_.l(Vg,_.Hn);Vg.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.p9T++;return this};
Vg.prototype.dispose=function(){--this.p9T||_.Hn.prototype.dispose.call(this)};
Mzh=Symbol.dispose;var BAq=function(B){this.oE3=B;B.addNewEventMetric("/client_streamz/bg/frs",_.er("mk"))};
BAq.prototype.record=function(B,R){this.oE3.record("/client_streamz/bg/frs",B,R)};
var XUI=function(B){this.anp=B;B.addNewEventMetric("/client_streamz/bg/wrl",_.er("mn"),VI("ac"),VI("sc"),_.er("rk"),_.er("mk"))};
XUI.prototype.record=function(B,R,V,e,X,Y){this.anp.record("/client_streamz/bg/wrl",B,R,V,e,X,Y)};
var VAI=function(B){this.kE3=B;B.addNewCounter("/client_streamz/bg/ec",_.er("en"),_.er("mk"))};
VAI.prototype.increment=function(B,R){this.kE3.JSC$7694_incrementCounter("/client_streamz/bg/ec",B,R)};
var eTp=function(B){this.q3U=B;B.addNewEventMetric("/client_streamz/bg/el",_.er("en"),_.er("mk"))};
eTp.prototype.record=function(B,R,V){this.q3U.record("/client_streamz/bg/el",B,R,V)};
var RTp=function(B){this.fnr=B;B.addNewCounter("/client_streamz/bg/cec",VI("ec"),_.er("mk"))};
RTp.prototype.increment=function(B,R){this.fnr.JSC$7694_incrementCounter("/client_streamz/bg/cec",B,R)};
var pUu=function(B){this.p1p=B;B.addNewCounter("/client_streamz/bg/po/csc",VI("cs"),_.er("mk"))};
pUu.prototype.increment=function(B,R){this.p1p.JSC$7694_incrementCounter("/client_streamz/bg/po/csc",B,R)};
var YZK=function(B){this.rmO=B;B.addNewCounter("/client_streamz/bg/po/ctav",_.er("av"),_.er("mk"))};
YZK.prototype.increment=function(B,R){this.rmO.JSC$7694_incrementCounter("/client_streamz/bg/po/ctav",B,R)};
var hTI=function(B){this.nEp=B;B.addNewCounter("/client_streamz/bg/po/cwsc",_.er("su"),_.er("mk"))};
hTI.prototype.increment=function(B,R){this.nEp.JSC$7694_incrementCounter("/client_streamz/bg/po/cwsc",B,R)};var Gaq=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Gaq,_.qS);var NAd=function(B,R){return _.ff(B,3,R,ndN)};var kX2=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(kX2,_.qS);var DST=[1,2,3];var fYa=[0,DST,_.pid,R_N,XiA];var lYa=[0,_.$U,[0,PBI,_.rX]];var zkJ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(zkJ,_.qS);var aY_=[1,2,3];var dSR=[0,aY_,oVd,nwx,_.CU,lYa];var wya=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(wya,_.qS);var Tq2=[0,_.$U,fYa,dSR];var xSJ=[0,_.mg];var Ll5=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Ll5,_.qS);var vvh=[0,_.mg,-1,_.Z4];var Klh=[0,_.mg,-1,_.gX,_.Z4];var IYh=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(IYh,_.qS);var Ev4=[1,2,3];var Qml=[0,Ev4,_.CU,vvh,_.CU,Klh,_.CU,xSJ];var qYb=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(qYb,_.qS);qYb.prototype.JSC$7514_serializeBinary=Bqx([0,_.mg,Qml,YUu,_.$U,Tq2,VtY,e_S]);var cDo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(cDo,_.qS);var sm_=function(B){var R=new qYb;R=_.bg(R,1,B.JSC$7630_metricName);var V=AD4(B);R=_.ff(R,3,V,_.Qn);V=[];for(var e=[],X=_.h(B.cellMap.keys()),Y=X.next();!Y.done;Y=X.next())e.push(Y.value.split(","));for(X=0;X<e.length;X++){Y=e[X];for(var t=B.cellType,b=B.getCells(Y)||[],J=[],G=0;G<b.length;G++){var y=b[G],S=y&&y.cellValue;y=new zkJ;switch(t){case 3:S=Number(S);Number.isFinite(S)&&JK(y,1,aY_,Le(S));break;case 2:JK(y,2,aY_,_.hr(Number(S)))}J.push(y)}t=J;for(b=0;b<t.length;b++){J=t[b];G=new wya;J=_.Ra(G,
2,J);G=[];y=if4(B);for(S=0;S<y.length;S++){var M=y[S],f=Y[S],z=new kX2;switch(M){case 3:JK(z,1,DST,qj(String(f)));break;case 2:M=Number(f);Number.isFinite(M)&&JK(z,2,DST,_.D7(M));break;case 1:JK(z,3,DST,$Yu(f==="true"))}G.push(z)}l8(J,1,G);V.push(J)}}l8(R,4,V);return R};var Fl_=function(B){if(!B)return"";if(/^about:(?:blank|srcdoc)$/.test(B))return window.origin||"";B.indexOf("blob:")===0&&(B=B.substring(5));B=B.split("#")[0].split("?")[0];B=B.toLowerCase();B.indexOf("//")==0&&(B=window.location.protocol+B);/^[\w\-]*:\/\//.test(B)||(B=window.location.href);var R=B.substring(B.indexOf("://")+3),V=R.indexOf("/");V!=-1&&(R=R.substring(0,V));V=B.substring(0,B.indexOf("://"));if(!V)throw Error("ua`"+B);if(V!=="http"&&V!=="https"&&V!=="chrome-extension"&&V!=="moz-extension"&&
V!=="file"&&V!=="android-app"&&V!=="chrome-search"&&V!=="chrome-untrusted"&&V!=="chrome"&&V!=="app"&&V!=="devtools")throw Error("va`"+V);B="";var e=R.indexOf(":");if(e!=-1){var X=R.substring(e+1);R=R.substring(0,e);if(V==="http"&&X!=="80"||V==="https"&&X!=="443")B=":"+X}return V+"://"+R+B};var gvo=function(B,R,V){var e=String(_.R5.location.href);return e&&B&&R?[R,rD2(Fl_(e),B,V||null)].join(" "):null},rD2=function(B,R,V){var e=[],X=[];
if((Array.isArray(V)?2:1)==1)return X=[R,B],_.ij(e,function(b){X.push(b)}),Zfo(X.join(" "));
var Y=[],t=[];_.ij(V,function(b){t.push(b.key);Y.push(b.value)});
V=Math.floor((new Date).getTime()/1E3);X=Y.length==0?[V,R,B]:[Y.join(":"),V,R,B];_.ij(e,function(b){X.push(b)});
B=Zfo(X.join(" "));B=[V,B];t.length==0||B.push(t.join(""));return B.join("_")},Zfo=function(B){var R=idZ();
R.update(B);return R.digestString().toLowerCase()};var eI=function(B){this.JSC$7525_document_=B||{cookie:""}},mST;
_.p=eI.prototype;_.p.isEnabled=function(){if(!_.R5.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(B,R,V){var e=!1;if(typeof V==="object"){var X=V.sameSite;e=V.secure||!1;var Y=V.domain||void 0;var t=V.path||void 0;var b=V.maxAge}if(/[;=\s]/.test(B))throw Error("wa`"+B);if(/[;\r\n]/.test(R))throw Error("xa`"+R);b===void 0&&(b=-1);V=Y?";domain="+Y:"";t=t?";path="+t:"";e=e?";secure":"";b=b<0?"":b==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+b*1E3)).toUTCString();this.JSC$7525_document_.cookie=B+"="+R+V+t+b+e+(X!=null?";samesite="+X:"")};
_.p.get=function(B,R){for(var V=B+"=",e=(this.JSC$7525_document_.cookie||"").split(";"),X=0,Y;X<e.length;X++){Y=US(e[X]);if(Y.lastIndexOf(V,0)==0)return Y.slice(V.length);if(Y==B)return""}return R};
_.p.remove=function(B,R,V){var e=this.containsKey(B);this.set(B,"",{maxAge:0,path:R,domain:V});return e};
_.p.getKeys=function(){return mST(this).keys};
_.p.getValues=function(){return mST(this).values};
_.p.isEmpty=function(){return!this.JSC$7525_document_.cookie};
_.p.getCount=function(){return this.JSC$7525_document_.cookie?(this.JSC$7525_document_.cookie||"").split(";").length:0};
_.p.containsKey=function(B){return this.get(B)!==void 0};
_.p.containsValue=function(B){for(var R=mST(this).values,V=0;V<R.length;V++)if(R[V]==B)return!0;return!1};
_.p.clear=function(){for(var B=mST(this).keys,R=B.length-1;R>=0;R--)this.remove(B[R])};
mST=function(B){B=(B.JSC$7525_document_.cookie||"").split(";");for(var R=[],V=[],e,X,Y=0;Y<B.length;Y++)X=US(B[Y]),e=X.indexOf("="),e==-1?(R.push(""),V.push(X)):(R.push(X.substring(0,e)),V.push(X.substring(e+1)));return{keys:R,values:V}};
_.UB=new eI(typeof document=="undefined"?null:document);var h5u=function(){var B=_.R5.__SAPISID||_.R5.__APISID||_.R5.__3PSAPISID||_.R5.__1PSAPISID||_.R5.__OVERRIDE_SID;if(B)return!0;typeof document!=="undefined"&&(B=new eI(document),B=B.get("SAPISID")||B.get("APISID")||B.get("__Secure-3PAPISID")||B.get("__Secure-1PAPISID"));return!!B},$S4=function(B,R,V,e){(B=_.R5[B])||typeof document==="undefined"||(B=(new eI(document)).get(R));
return B?gvo(B,V,e):null},$RA=function(B){var R=Fl_(_.R5==null?void 0:_.R5.location.href),V=[];
if(h5u()){R=R.indexOf("https:")==0||R.indexOf("chrome-extension:")==0||R.indexOf("chrome-untrusted://new-tab-page")==0||R.indexOf("moz-extension:")==0;var e=R?_.R5.__SAPISID:_.R5.__APISID;e||typeof document==="undefined"||(e=new eI(document),e=e.get(R?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?gvo(e,R?"SAPISIDHASH":"APISIDHASH",B):null)&&V.push(e);R&&((R=$S4("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",B))&&V.push(R),(B=$S4("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",B))&&V.push(B))}return V.length==
0?null:V.join(" ")};var CI2=function(){this.minSize=1024};
CI2.prototype.compress=function(B){var R,V,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:return R=new CompressionStream("gzip"),V=(new Response(R.readable)).arrayBuffer(),e=R.writable.getWriter(),_.U(Y,e.write((new TextEncoder).encode(B)),2);case 2:return _.U(Y,e.close(),3);case 3:return X=Uint8Array,_.U(Y,V,4);case 4:return Y.return(new X(Y.yieldResult))}})};
CI2.prototype.isSupported=function(B){return B<this.minSize?!1:typeof CompressionStream!=="undefined"};var PI4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(PI4,_.qS);var Xd=function(B,R){this.intervalMs=B;this.callback=R;this.enabled=!1;this.nowFn=function(){return _.VG()};
this.lastTimeMs=this.nowFn()};
Xd.prototype.setInterval=function(B){this.intervalMs=B;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Xd.prototype.start=function(){var B=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){B.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Xd.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Xd.prototype.tick=function(){var B=this;if(this.enabled){var R=Math.max(this.nowFn()-this.lastTimeMs,0);R<this.intervalMs*.8?this.timer=setTimeout(function(){B.tick()},this.intervalMs-R):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var nv5=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(nv5,_.qS);var ux4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(ux4,_.qS);var OfR=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(OfR,_.qS);OfR.prototype.getTransmissionType=function(){return _.LU(this,1)};var g0p=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(g0p,_.qS);g0p.prototype.getVersion=function(){return _.xU(this,2)};var pT=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(pT,_.qS);var r4d=function(B){l8(Zdx,1,B)};
pT.prototype.getModel=function(){return _.xU(this,6)};
var oqS=_.oa(pT);var BcS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(BcS,_.qS);var sIN=["platform","platformVersion","architecture","model","uaFullVersion"],Zdx=new pT,FqN=null;var RJ4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(RJ4,_.qS);var V4T=function(B){return _.ou(B,1,1)};var eJa=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B,4)};
_.l(eJa,_.qS);_.Y3=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B,36)};
_.l(_.Y3,_.qS);_.Y3.prototype.getExperimentIds=function(){return _.OB(this,PI4,16)};var XBo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B,19)};
_.l(XBo,_.qS);XBo.prototype.setLogSource=function(B){return _.ou(this,2,B)};
XBo.prototype.setScheduler=function(B){return _.ou(this,10,B)};var Y85=function(B,R){this.isServiceWorkerScope=R=R===void 0?!1:R;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new XBo;Number.isInteger(B)&&this.logRequest.setLogSource(B);R||(this.locale=document.documentElement.getAttribute("lang"));pB_(this,new RJ4)};
Y85.prototype.setLogSource=function(B){this.logRequest.setLogSource(B);return this};
var pB_=function(B,R){_.Ra(B.logRequest,1,R);_.LU(R,1)||V4T(R);B.isServiceWorkerScope||(R=h8(B),_.xU(R,5)||_.bg(R,5,B.locale));B.uach&&(R=h8(B),_.OB(R,pT,9)||_.Ra(R,9,B.uach))},hJR=function(B,R){B.transmissionType=R},t4l=function(B){var R=R===void 0?sIN:R;
var V=B.isServiceWorkerScope?void 0:lg();V?m2Y(V,R).then(function(e){B.uach=oqS(e!=null?e:"[]");e=h8(B);_.Ra(e,9,B.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},h8=function(B){B=_.OB(B.logRequest,RJ4,1);
var R=_.OB(B,BcS,11);R||(R=new BcS,_.Ra(B,11,R));return R};
Y85.prototype.build=function(B,R,V,e,X,Y){R=R===void 0?0:R;V=V===void 0?0:V;e=e===void 0?null:e;X=X===void 0?0:X;Y=Y===void 0?0:Y;if(!this.isServiceWorkerScope){var t=h8(this);var b=new OfR;b=_.ou(b,1,this.transmissionType);b=_.Xn(b,2,this.isFinal);V=_.ED(b,3,V>0?V:void 0);V=_.ED(V,4,X>0?X:void 0);V=_.ED(V,5,Y>0?Y:void 0);X=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Y=X[_.w4]|0;V=qT(V,Y)?V:Wy(V,X,Y)?hD(V,X):new V.constructor(Yv(X,Y,!0));_.Ra(t,10,V)}t=this.logRequest.clone();V=Date.now().toString();
t=_.Bf(t,4,Le(V));B=B.slice();B=l8(t,3,B);e&&(t=new nv5,e=_.ED(t,13,e),t=new ux4,e=_.Ra(t,2,e),t=new eJa,e=_.Ra(t,1,e),e=_.ou(e,2,9),_.Ra(B,18,e));R&&_.H5(B,14,R);return B};pd.prototype.currBackoffCount_=0;pd.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
pd.prototype.getValue=function(){return this.currValue_};
var WL4=function(B){B.currBaseValue_=Math.min(B.maxValue_,B.currBaseValue_*B.backoffFactor_);B.currValue_=Math.min(B.maxValue_,B.currBaseValue_+(B.randomFactor_?Math.round(B.randomFactor_*(Math.random()-.5)*2*B.currBaseValue_):0));B.currBackoffCount_++};var J6x=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B,8)};
_.l(J6x,_.qS);var b$4=_.oa(J6x);var jzd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(jzd,_.qS);var t8;t8=new UQY;var W_=function(B){_.Hn.call(this);var R=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7603_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$7603_sendBeaconApiEnabled=!1;this.logSource=B.logSource;this.getAuthHeaderValue=
B.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Y85(B.logSource,B.isServiceWorkerScope);this.network=B.network||null;this.productID=B.productID||null;this.clearcutUrl=B.urlOverride||null;this.sessionIndex=B.sessionIndex||null;this.disableAutomaticFlush=B.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!B.disableWithCredentials;this.isServiceWorkerScope=B.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!lg()&&!!lg().navigator&&lg().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(JRS())).searchParams&&!!(new URL(JRS())).searchParams.set;var V=V4T(new RJ4);pB_(this.logRequestBuilder,V);this.flushBackoff=new pd(1E4,3E5,.1);B=jaS(this,B.backgroundJobDeferrer);this.JSC$7603_flushTimer=new Xd(this.flushBackoff.getValue(),B);this.backupTimer=new Xd(6E5,B);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){UV4(R);
var e;(e=R.metalogService)==null||e.flush()}}),document.addEventListener("pagehide",function(){UV4(R);
var e;(e=R.metalogService)==null||e.flush()}))};
_.l(W_,_.Hn);var jaS=function(B,R){return B.isBrowserSupported?R?function(){R().then(function(){B.flush()})}:function(){B.flush()}:function(){}};
W_.prototype.disposeInternal=function(){UV4(this);this.JSC$7603_flushTimer.stop();this.backupTimer.stop();_.Hn.prototype.disposeInternal.call(this)};
var Ncl=function(B){B.clearcutUrl||(B.clearcutUrl=JRS());try{return(new URL(B.clearcutUrl)).toString()}catch(R){return(new URL(B.clearcutUrl,lg().location.origin)).toString()}};
W_.prototype.dispatch=function(B){if(B instanceof _.Y3)this.log(B);else try{var R=new _.Y3,V=B.serialize();var e=_.bg(R,8,V);this.log(e)}catch(X){bK(this,4,1)}};
var bK=function(B,R,V){B.metalogService&&B.metalogService.increment(R,V)};
W_.prototype.log=function(B){bK(this,2,1);if(this.isBrowserSupported){B=B.clone();var R=this.sequencePosition++;B=_.H5(B,21,R);this.componentId&&_.bg(B,26,this.componentId);R=B;if(j4d(_.yG(R,1))==null){var V=Date.now();V=Number.isFinite(V)?V.toString():"0";_.Bf(R,1,Le(V))}_.Jhx(_.yG(R,15))!=null||_.H5(R,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(V=this.experimentIds.clone(),_.Ra(R,16,V));bK(this,1,1);R=this.pendingEvents.length-1E3+1;R>0&&(this.pendingEvents.splice(0,R),this.numLogsDroppedSinceLastFlush+=
R,bK(this,3,R));this.pendingEvents.push(B);this.disableAutomaticFlush||this.JSC$7603_flushTimer.enabled||this.JSC$7603_flushTimer.start()}};
W_.prototype.flush=function(B,R){var V=this;if(this.pendingEvents.length===0)B&&B();else if(this.JSC$7603_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Gmv(this);else{var e=Date.now();if(this.noFlushUntilMs>e&&this.startWaitingMs<e)R&&R("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?hJR(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var X=this.pendingEvents.length,
Y=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),t=this.getAuthHeaderValue();if(t&&this.lastFailedAuth===t)R&&R("stale-auth-token");else{this.pendingEvents=[];this.JSC$7603_flushTimer.enabled&&this.JSC$7603_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;e=Y.serialize();var b;this.JSC$7603_compressor&&this.JSC$7603_compressor.isSupported(e.length)&&
(b=this.JSC$7603_compressor.compress(e));var J=yRS(this,e,t),G=function(M){V.flushBackoff.reset();V.JSC$7603_flushTimer.setInterval(V.flushBackoff.getValue());if(M){var f=null;try{var z=JSON.stringify(JSON.parse(M.replace(")]}'\n","")));f=b$4(z)}catch(T){}f&&(M=Number(wX(f,1,_.nR("-1"))),M>0&&(V.startWaitingMs=Date.now(),V.noFlushUntilMs=V.startWaitingMs+M),LbS(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t8.fieldIndex),T4d(f,t8.fieldIndex),f=t8.ctor?t8.getExtensionFn(f,t8.ctor,t8.fieldIndex,
t8.JSC$6783_hasMessageId):t8.getExtensionFn(f,t8.fieldIndex,null,t8.JSC$6783_hasMessageId),f=f===null?void 0:f)&&(f=_.Bn(f,1,-1),f!==-1&&(V.flushBackoff=new pd(f<1?1:f,3E5,.1),V.JSC$7603_flushTimer.setInterval(V.flushBackoff.getValue())))}B&&B();V.numRetriesSinceLastSuccessfulFlush=0},y=function(M,f){var z=_.Oh(Y,_.Y3,3,_.oI());
var T=Number(wX(Y,14));WL4(V.flushBackoff);V.JSC$7603_flushTimer.setInterval(V.flushBackoff.getValue());M===401&&t&&(V.lastFailedAuth=t);T&&(V.numLogsDroppedSinceLastFlush+=T);f===void 0&&(f=V.isRetryable(M));f&&(V.pendingEvents=z.concat(V.pendingEvents),V.disableAutomaticFlush||V.JSC$7603_flushTimer.enabled||V.JSC$7603_flushTimer.start());bK(V,7,1);R&&R("net-send-failed",M);++V.numRetriesSinceLastSuccessfulFlush},S=function(){V.network&&V.network.send(J,G,y)};
b?b.then(function(M){bK(V,5,X);J.requestHeaders["Content-Encoding"]="gzip";J.requestHeaders["Content-Type"]="application/binary";J.body=M;J.bodyType=2;S()},function(){bK(V,6,X);
S()}):S()}}}};
var yRS=function(B,R,V){V=V===void 0?null:V;var e=e===void 0?B.withCredentials:e;var X={},Y=new URL(Ncl(B));V&&(X.Authorization=V);B.sessionIndex&&(X["X-Goog-AuthUser"]=B.sessionIndex,Y.searchParams.set("authuser",B.sessionIndex));B.pageId&&(Object.defineProperty(X,"X-Goog-PageId",{value:B.pageId}),Y.searchParams.set("pageId",B.pageId));return{url:Y.toString(),body:R,bodyType:1,requestHeaders:X,requestType:"POST",withCredentials:e,timeoutMillis:B.timeoutMillis}},UV4=function(B){B.logRequestBuilder.isFinal=
!0;
B.flush();B.logRequestBuilder.isFinal=!1},Gmv=function(B){S8T(B,function(R,V){R=new URL(R);
R.searchParams.set("format","json");var e=!1;try{e=lg().navigator.sendBeacon(R.toString(),V.serialize())}catch(X){}e||(B.isSendBeaconSupported=!1);return e})},S8T=function(B,R){if(B.pendingEvents.length!==0){var V=new URL(Ncl(B));
V.searchParams.delete("format");var e=B.getAuthHeaderValue();e&&V.searchParams.set("auth",e);V.searchParams.set("authuser",B.sessionIndex||"0");for(e=0;e<10&&B.pendingEvents.length;++e){var X=B.pendingEvents.slice(0,32),Y=B.logRequestBuilder.build(X,B.numLogsDroppedSinceLastFlush,B.numRetriesSinceLastSuccessfulFlush,B.productID,B.persistedLogRecoveredCount,B.persistedLogExpiredCount);if(!R(V.toString(),Y)){++B.numRetriesSinceLastSuccessfulFlush;break}B.numLogsDroppedSinceLastFlush=0;B.numRetriesSinceLastSuccessfulFlush=
0;B.persistedLogRecoveredCount=0;B.persistedLogExpiredCount=0;B.pendingEvents=B.pendingEvents.slice(X.length)}B.JSC$7603_flushTimer.enabled&&B.JSC$7603_flushTimer.stop()}};
W_.prototype.isRetryable=function(B){return 500<=B&&B<600||B===401||B===0};
var JRS=function(){return"https://play.google.com/log?format=json&hasfast=true"};var H$a=function(){this.abortSupported=typeof AbortController!=="undefined"};
H$a.prototype.send=function(B,R,V){var e=this,X,Y,t,b,J,G,y,S,M,f;return _.W(function(z){switch(z.nextAddress){case 1:return Y=(X=e.abortSupported?new AbortController:void 0)?setTimeout(function(){X.abort()},B.timeoutMillis):void 0,_.en(z,2,3),t=Object.assign({},{method:B.requestType,
headers:Object.assign({},B.requestHeaders)},B.body&&{body:B.body},B.withCredentials&&{credentials:"include"},{signal:B.timeoutMillis&&X?X.signal:null}),_.U(z,fetch(B.url,t),5);case 5:b=z.yieldResult;if(b.status!==200){(J=V)==null||J(b.status);z.jumpTo(3);break}if((G=R)==null){z.jumpTo(7);break}return _.U(z,b.text(),8);case 8:G(z.yieldResult);case 7:case 3:_.pr(z);clearTimeout(Y);_.tq(z,0);break;case 2:y=_.WR(z);switch((S=y)==null?void 0:S.name){case "AbortError":(M=V)==null||M(408);break;default:(f=
V)==null||f(400)}z.jumpTo(3)}})};
H$a.prototype.getTransmissionType=function(){return 4};_.h4=function(B,R){R=R===void 0?"0":R;_.Hn.call(this);this.logSource=B;this.sessionIndex=R;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7621_clearExperimentIds=this.productID=null;this.JSC$7621_sendBeaconApiEnabled=!1;this.pageId=null};
_.l(_.h4,_.Hn);var JI_=function(B,R){B.buildLabel=R;return B},bWd=function(B,R){B.network=R;
return B},UWp=function(B,R){B.JSC$7621_clearExperimentIds=R},Wop=function(B){B.JSC$7621_sendBeaconApiEnabled=!0;
return B};
_.h4.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.h4.prototype.build=function(){this.network||(this.network=new H$a);var B=new W_({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:$RA,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.t4(this,B);if(this.buildLabel){var R=this.buildLabel,V=h8(B.logRequestBuilder);
_.bg(V,7,R)}B.JSC$7603_compressor=new CI2;this.componentId&&(B.componentId=this.componentId);this.productID&&(B.productID=this.productID);this.pageId&&(B.pageId=this.pageId);this.JSC$7621_clearExperimentIds&&((V=this.JSC$7621_clearExperimentIds)?(B.experimentIds||(B.experimentIds=new PI4),R=B.experimentIds,V=V.serialize(),_.bg(R,4,V)):B.experimentIds&&_.Bf(B.experimentIds,4));this.JSC$7621_sendBeaconApiEnabled&&(B.JSC$7603_sendBeaconApiEnabled=B.isSendBeaconSupported);t4l(B.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(B);return B};var yIx=function(B,R,V,e,X,Y,t){B=B===void 0?-1:B;R=R===void 0?"":R;V=V===void 0?"":V;e=e===void 0?!1:e;X=X===void 0?"":X;_.Hn.call(this);this.logSource=B;this.componentId=R;Y?R=Y:(B=new _.h4(B,"0"),B.componentId=R,_.t4(this,B),V!==""&&(B.destinationUrl=V),e&&(B.serviceWorkerScopeEnabled=!0),X&&JI_(B,X),t&&bWd(B,t),R=B.build());this.JSC$7625_transport=R};
_.l(yIx,_.Hn);yIx.prototype.flush=function(B){B=B||[];if(B.length){for(var R=new cDo,V=[],e=0;e<B.length;e++){var X=B[e],Y=sm_(X);V.push(Y);X.clear()}l8(R,1,V);this.JSC$7625_transport.dispatch(R);this.JSC$7625_transport.flush()}};var M4b=function(B){this.cellValue=B};var J8=function(B,R,V){this.JSC$7630_metricName=B;this.cellType=R;this.fields=V||[];this.cellMap=new Map},if4=function(B){return B.fields.map(function(R){return R.fieldType})},AD4=function(B){return B.fields.map(function(R){return R.fieldName})};
_.p=J8.prototype;_.p.addCell=function(B){var R=_.HB.apply(1,arguments),V=this.getCells(R);V?V.push(new M4b(B)):this.JSC$7630_setCell(B,R)};
_.p.JSC$7630_setCell=function(B){var R=this.JSC$7630_getKey(_.HB.apply(1,arguments));this.cellMap.set(R,[new M4b(B)])};
_.p.getCells=function(){var B=this.JSC$7630_getKey(_.HB.apply(0,arguments));return this.cellMap.has(B)?this.cellMap.get(B):void 0};
_.p.getCell=function(){var B=this.getCells(_.HB.apply(0,arguments));return B&&B.length?B[0]:void 0};
_.p.clear=function(){this.cellMap.clear()};
_.p.JSC$7630_getKey=function(){var B=_.HB.apply(0,arguments);return B?B.join(","):"key"};var kmv=function(B,R){J8.call(this,B,3,R)};
_.l(kmv,J8);kmv.prototype.JSC$7633_incrementCounterBy=function(B){var R=_.HB.apply(1,arguments),V=0,e=this.getCell(R);e&&(V=e.cellValue);this.JSC$7630_setCell(V+B,R)};var DVT=function(B,R){J8.call(this,B,2,R)};
_.l(DVT,J8);DVT.prototype.record=function(B){this.addCell(B,_.HB.apply(1,arguments))};_.jI=function(B){this.id=B};
_.jI.prototype.toString=function(){return this.id};_.Un=function(B,R){this.type=B instanceof _.jI?String(B):B;this.currentTarget=this.target=R;this.defaultPrevented=this.propagationStopped_=!1};
_.Un.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Un.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Nu=function(B,R){_.Un.call(this,B?B.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;B&&this.init(B,R)};
_.eY(_.Nu,_.Un);
_.Nu.prototype.init=function(B,R){var V=this.type=B.type,e=B.changedTouches&&B.changedTouches.length?B.changedTouches[0]:null;this.target=B.target||B.srcElement;this.currentTarget=R;R=B.relatedTarget;R||(V=="mouseover"?R=B.fromElement:V=="mouseout"&&(R=B.toElement));this.relatedTarget=R;e?(this.clientX=e.clientX!==void 0?e.clientX:e.pageX,this.clientY=e.clientY!==void 0?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0):(this.offsetX=_.Wb||B.offsetX!==void 0?B.offsetX:B.layerX,
this.offsetY=_.Wb||B.offsetY!==void 0?B.offsetY:B.layerY,this.clientX=B.clientX!==void 0?B.clientX:B.pageX,this.clientY=B.clientY!==void 0?B.clientY:B.pageY,this.screenX=B.screenX||0,this.screenY=B.screenY||0);this.button=B.button;this.keyCode=B.keyCode||0;this.key=B.key||"";this.charCode=B.charCode||(V=="keypress"?B.keyCode:0);this.ctrlKey=B.ctrlKey;this.altKey=B.altKey;this.shiftKey=B.shiftKey;this.metaKey=B.metaKey;this.pointerId=B.pointerId||0;this.pointerType=B.pointerType;this.state=B.state;
this.timeStamp=B.timeStamp;this.event_=B;B.defaultPrevented&&_.Nu.superClass_.preventDefault.call(this)};
_.Nu.prototype.stopPropagation=function(){_.Nu.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Nu.prototype.preventDefault=function(){_.Nu.superClass_.preventDefault.call(this);var B=this.event_;B.preventDefault?B.preventDefault():B.returnValue=!1};var fMS="closure_listenable_"+(Math.random()*1E6|0),GH=function(B){return!(!B||!B[fMS])};var lMJ=0;var zJG=function(B,R,V,e,X){this.listener=B;this.proxy=null;this.src=R;this.type=V;this.capture=!!e;this.handler=X;this.key=++lMJ;this.removed=this.callOnce=!1},aMJ=function(B){B.removed=!0;
B.listener=null;B.proxy=null;B.src=null;B.handler=null};Y0.prototype.add=function(B,R,V,e,X){var Y=B.toString();B=this.listeners[Y];B||(B=this.listeners[Y]=[],this.typeCount_++);var t=dVb(B,R,e,X);t>-1?(R=B[t],V||(R.callOnce=!1)):(R=new zJG(R,this.src,Y,!!e,X),R.callOnce=V,B.push(R));return R};
Y0.prototype.remove=function(B,R,V,e){B=B.toString();if(!(B in this.listeners))return!1;var X=this.listeners[B];R=dVb(X,R,V,e);return R>-1?(aMJ(X[R]),_.mI(X,R),X.length==0&&(delete this.listeners[B],this.typeCount_--),!0):!1};
var wB_=function(B,R){var V=R.type;if(!(V in B.listeners))return!1;var e=_.uo(B.listeners[V],R);e&&(aMJ(R),B.listeners[V].length==0&&(delete B.listeners[V],B.typeCount_--));return e};
Y0.prototype.removeAll=function(B){B=B&&B.toString();var R=0,V;for(V in this.listeners)if(!B||V==B){for(var e=this.listeners[V],X=0;X<e.length;X++)++R,aMJ(e[X]);delete this.listeners[V];this.typeCount_--}return R};
Y0.prototype.getListener=function(B,R,V,e){B=this.listeners[B.toString()];var X=-1;B&&(X=dVb(B,R,V,e));return X>-1?B[X]:null};
Y0.prototype.hasListener=function(B,R){var V=B!==void 0,e=V?B.toString():"",X=R!==void 0;return _.M_.some(this.listeners,function(Y){for(var t=0;t<Y.length;++t)if(!(V&&Y[t].type!=e||X&&Y[t].capture!=R))return!0;return!1})};
var dVb=function(B,R,V,e){for(var X=0;X<B.length;++X){var Y=B[X];if(!Y.removed&&Y.listener==R&&Y.capture==!!V&&Y.handler==e)return X}return-1};var Tch,xVh,LL5,KL2,IM5,JJ,jR,q84,Eqa,Qa_,yg,cRG,vqR;Tch="closure_lm_"+(Math.random()*1E6|0);xVh={};LL5=0;_.G2=function(B,R,V,e,X){if(e&&e.once)return JJ(B,R,V,e,X);if(Array.isArray(R)){for(var Y=0;Y<R.length;Y++)_.G2(B,R[Y],V,e,X);return null}V=vqR(V);return GH(B)?B.listen(R,V,_.Xa(e)?!!e.capture:!!e,X):KL2(B,R,V,!1,e,X)};
KL2=function(B,R,V,e,X,Y){if(!R)throw Error("za");var t=_.Xa(X)?!!X.capture:!!X,b=yg(B);b||(B[Tch]=b=new Y0(B));V=b.add(R,V,e,t,Y);if(V.proxy)return V;e=IM5();V.proxy=e;e.src=B;e.listener=V;if(B.addEventListener)_.FXd||(X=t),X===void 0&&(X=!1),B.addEventListener(R.toString(),e,X);else if(B.attachEvent)B.attachEvent(Eqa(R.toString()),e);else if(B.addListener&&B.removeListener)B.addListener(e);else throw Error("Aa");LL5++;return V};
IM5=function(){var B=Qa_,R=function(V){return B.call(R.src,R.listener,V)};
return R};
JJ=function(B,R,V,e,X){if(Array.isArray(R)){for(var Y=0;Y<R.length;Y++)JJ(B,R[Y],V,e,X);return null}V=vqR(V);return GH(B)?B.listenOnce(R,V,_.Xa(e)?!!e.capture:!!e,X):KL2(B,R,V,!0,e,X)};
_.SI=function(B,R,V,e,X){if(Array.isArray(R))for(var Y=0;Y<R.length;Y++)_.SI(B,R[Y],V,e,X);else e=_.Xa(e)?!!e.capture:!!e,V=vqR(V),GH(B)?B.unlisten(R,V,e,X):B&&(B=yg(B))&&(R=B.getListener(R,V,e,X))&&jR(R)};
jR=function(B){if(typeof B==="number"||!B||B.removed)return!1;var R=B.src;if(GH(R))return wB_(R.eventTargetListeners_,B);var V=B.type,e=B.proxy;R.removeEventListener?R.removeEventListener(V,e,B.capture):R.detachEvent?R.detachEvent(Eqa(V),e):R.addListener&&R.removeListener&&R.removeListener(e);LL5--;(V=yg(R))?(wB_(V,B),V.typeCount_==0&&(V.src=null,R[Tch]=null)):aMJ(B);return!0};
q84=function(B,R,V,e,X){V=vqR(V);e=!!e;return GH(B)?B.getListener(R,V,e,X):B?(B=yg(B))?B.getListener(R,V,e,X):null:null};
Eqa=function(B){return B in xVh?xVh[B]:xVh[B]="on"+B};
Qa_=function(B,R){if(B.removed)B=!0;else{R=new _.Nu(R,this);var V=B.listener,e=B.handler||B.src;B.callOnce&&jR(B);B=V.call(e,R)}return B};
yg=function(B){B=B[Tch];return B instanceof Y0?B:null};
cRG="__closure_events_fn_"+(Math.random()*1E9>>>0);vqR=function(B){if(typeof B==="function")return B;B[cRG]||(B[cRG]=function(R){return B.handleEvent(R)});
return B[cRG]};_.H_=function(){_.Hn.call(this);this.eventTargetListeners_=new Y0(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.eY(_.H_,_.Hn);_.H_.prototype[fMS]=!0;_.p=_.H_.prototype;_.p.setParentEventTarget=function(B){this.parentEventTarget_=B};
_.p.addEventListener=function(B,R,V,e){_.G2(this,B,R,V,e)};
_.p.removeEventListener=function(B,R,V,e){_.SI(this,B,R,V,e)};
_.p.dispatchEvent=function(B){var R,V=this.parentEventTarget_;if(V)for(R=[];V;V=V.parentEventTarget_)R.push(V);V=this.actualEventTarget_;var e=B.type||B;if(typeof B==="string")B=new _.Un(B,V);else if(B instanceof _.Un)B.target=B.target||V;else{var X=B;B=new _.Un(e,V);_.M_.extend(B,X)}X=!0;var Y;if(R)for(Y=R.length-1;!B.propagationStopped_&&Y>=0;Y--){var t=B.currentTarget=R[Y];X=ARl(t,e,!0,B)&&X}B.propagationStopped_||(t=B.currentTarget=V,X=ARl(t,e,!0,B)&&X,B.propagationStopped_||(X=ARl(t,e,!1,B)&&
X));if(R)for(Y=0;!B.propagationStopped_&&Y<R.length;Y++)t=B.currentTarget=R[Y],X=ARl(t,e,!1,B)&&X;return X};
_.p.disposeInternal=function(){_.H_.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.p.listen=function(B,R,V,e){return this.eventTargetListeners_.add(String(B),R,!1,V,e)};
_.p.listenOnce=function(B,R,V,e){return this.eventTargetListeners_.add(String(B),R,!0,V,e)};
_.p.unlisten=function(B,R,V,e){return this.eventTargetListeners_.remove(String(B),R,V,e)};
_.p.removeAllListeners=function(B){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(B):0};
var ARl=function(B,R,V,e){R=B.eventTargetListeners_.listeners[String(R)];if(!R)return!0;R=R.concat();for(var X=!0,Y=0;Y<R.length;++Y){var t=R[Y];if(t&&!t.removed&&t.capture==V){var b=t.listener,J=t.handler||t.src;t.callOnce&&wB_(B.eventTargetListeners_,t);X=b.call(J,e)!==!1&&X}}return X&&!e.defaultPrevented};
_.H_.prototype.getListener=function(B,R,V,e){return this.eventTargetListeners_.getListener(String(B),R,V,e)};
_.H_.prototype.hasListener=function(B,R){return this.eventTargetListeners_.hasListener(B!==void 0?String(B):void 0,R)};var Mu=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(B){return B&&AsyncContext.Snapshot.wrap(B)}:function(B){return B};var i$b=function(B,R){this.create_=B;this.reset_=R;this.occupants_=0;this.JSC$7665_head_=null};
i$b.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var B=this.JSC$7665_head_;this.JSC$7665_head_=B.next;B.next=null}else B=this.create_();return B};
i$b.prototype.put=function(B){this.reset_(B);this.occupants_<100&&(this.occupants_++,B.next=this.JSC$7665_head_,this.JSC$7665_head_=B)};var sah=function(){this.workTail_=this.workHead_=null};
sah.prototype.add=function(B,R){var V=Cyd.get();V.set(B,R);this.workTail_?this.workTail_.next=V:this.workHead_=V;this.workTail_=V};
sah.prototype.remove=function(){var B=null;this.workHead_&&(B=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),B.next=null);return B};
var Cyd=new i$b(function(){return new FLJ},function(B){return B.reset()}),FLJ=function(){this.next=this.scope=this.fn=null};
FLJ.prototype.set=function(B,R){this.fn=B;this.scope=R;this.next=null};
FLJ.prototype.reset=function(){this.next=this.scope=this.fn=null};var rRh,Py5,$2A,gq2;Py5=!1;$2A=new sah;_.k3=function(B,R){rRh||gq2();Py5||(rRh(),Py5=!0);$2A.add(B,R)};
gq2=function(){var B=Promise.resolve(void 0);rRh=function(){B.then(n0o)}};var Z$h=function(B){B.prototype.$goog_Thenable=!0},mVb=function(B){if(!B)return!1;
try{return!!B.$goog_Thenable}catch(R){return!1}};var $Vl,CD4,PDT,u5R,O$T,ob_,eO4,Y0J,brl,tn4,sld;_.be=function(B,R){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(B!=_.ys)try{var V=this;B.call(R,function(e){V.resolve_(2,e)},function(e){V.resolve_(3,e)})}catch(e){this.resolve_(3,e)}};
$Vl=function(){this.next=this.context=this.JSC$7676_onRejected=this.JSC$7676_onFulfilled=this.child=null;this.always=!1};
$Vl.prototype.reset=function(){this.context=this.JSC$7676_onRejected=this.JSC$7676_onFulfilled=this.child=null;this.always=!1};
CD4=new i$b(function(){return new $Vl},function(B){B.reset()});
PDT=function(B,R,V){var e=CD4.get();e.JSC$7676_onFulfilled=B;e.JSC$7676_onRejected=R;e.context=V;return e};
_.XT=function(B){if(B instanceof _.be)return B;var R=new _.be(_.ys);R.resolve_(2,B);return R};
_.SR=function(B){return new _.be(function(R,V){V(B)})};
u5R=function(B,R,V){nql(B,R,V,null)||_.k3(_.JE(R,B))};
_.DG=function(B){return new _.be(function(R,V){var e=B.length,X=[];if(e)for(var Y=function(G,y){e--;X[G]=y;e==0&&R(X)},t=function(G){V(G)},b,J=0;J<B.length;J++)b=B[J],u5R(b,_.JE(Y,J),t);
else R(X)})};
O$T=function(B){return new _.be(function(R){var V=B.length,e=[];if(V)for(var X=function(b,J,G){V--;e[b]=J?{fulfilled:!0,value:G}:{fulfilled:!1,reason:G};V==0&&R(e)},Y,t=0;t<B.length;t++)Y=B[t],u5R(Y,_.JE(X,t,!0),_.JE(X,t,!1));
else R(e)})};
ob_=function(B){return new _.be(function(R,V){var e=B.length,X=[];if(e)for(var Y=function(G){R(G)},t=function(G,y){e--;
X[G]=y;e==0&&V(X)},b,J=0;J<B.length;J++)b=B[J],u5R(b,Y,_.JE(t,J));
else R(void 0)})};
_.A3=function(){var B,R,V=new _.be(function(e,X){B=e;R=X});
return new BPb(V,B,R)};
_.be.prototype.then=function(B,R,V){return ROS(this,Mu(typeof B==="function"?B:null),Mu(typeof R==="function"?R:null),V)};
Z$h(_.be);eO4=function(B,R,V,e){VnT(B,PDT(R||_.ys,V||null,e))};
_.fT=function(B,R){R=Mu(R);R=PDT(R,R);R.always=!0;VnT(B,R);return B};
_.be.prototype.finally=function(B){var R=this;B=Mu(B);return new Promise(function(V,e){eO4(R,function(X){B();V(X)},function(X){B();
e(X)})})};
_.be.prototype.thenCatch=function(B,R){return ROS(this,null,Mu(B),R)};
_.be.prototype.catch=_.be.prototype.thenCatch;_.be.prototype.cancel=function(B){if(this.state_==0){var R=new _.Cw(B);_.k3(function(){XRb(this,R)},this)}};
var XRb=function(B,R){if(B.state_==0)if(B.parent_){var V=B.parent_;if(V.callbackEntries_){for(var e=0,X=null,Y=null,t=V.callbackEntries_;t&&(t.always||(e++,t.child==B&&(X=t),!(X&&e>1)));t=t.next)X||(Y=t);X&&(V.state_==0&&e==1?XRb(V,R):(Y?(e=Y,e.next==V.callbackEntriesTail_&&(V.callbackEntriesTail_=e),e.next=e.next.next):pRR(V),Y0J(V,X,3,R)))}B.parent_=null}else B.resolve_(3,R)},VnT=function(B,R){B.callbackEntries_||B.state_!=2&&B.state_!=3||hOR(B);
B.callbackEntriesTail_?B.callbackEntriesTail_.next=R:B.callbackEntries_=R;B.callbackEntriesTail_=R},ROS=function(B,R,V,e){var X=PDT(null,null,null);
X.child=new _.be(function(Y,t){X.JSC$7676_onFulfilled=R?function(b){try{var J=R.call(e,b);Y(J)}catch(G){t(G)}}:Y;
X.JSC$7676_onRejected=V?function(b){try{var J=V.call(e,b);J===void 0&&b instanceof _.Cw?t(b):Y(J)}catch(G){t(G)}}:t});
X.child.parent_=B;VnT(B,X);return X.child};
_.be.prototype.unblockAndFulfill_=function(B){this.state_=0;this.resolve_(2,B)};
_.be.prototype.unblockAndReject_=function(B){this.state_=0;this.resolve_(3,B)};
_.be.prototype.resolve_=function(B,R){this.state_==0&&(this===R&&(B=3,R=new TypeError("Ba")),this.state_=1,nql(R,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=R,this.state_=B,this.parent_=null,hOR(this),B!=3||R instanceof _.Cw||tn4(this,R)))};
var nql=function(B,R,V,e){if(B instanceof _.be)return eO4(B,R,V,e),!0;if(mVb(B))return B.then(R,V,e),!0;if(_.Xa(B))try{var X=B.then;if(typeof X==="function")return WCS(B,X,R,V,e),!0}catch(Y){return V.call(e,Y),!0}return!1},WCS=function(B,R,V,e,X){var Y=!1,t=function(J){Y||(Y=!0,V.call(X,J))},b=function(J){Y||(Y=!0,e.call(X,J))};
try{R.call(B,t,b)}catch(J){b(J)}},hOR=function(B){B.executing_||(B.executing_=!0,_.k3(B.executeCallbacks_,B))},pRR=function(B){var R=null;
B.callbackEntries_&&(R=B.callbackEntries_,B.callbackEntries_=R.next,R.next=null);B.callbackEntries_||(B.callbackEntriesTail_=null);return R};
_.be.prototype.executeCallbacks_=function(){for(var B;B=pRR(this);)Y0J(this,B,this.state_,this.result_);this.executing_=!1};
Y0J=function(B,R,V,e){if(V==3&&R.JSC$7676_onRejected&&!R.always)for(;B&&B.hadUnhandledRejection_;B=B.parent_)B.hadUnhandledRejection_=!1;if(R.child)R.child.parent_=null,brl(R,V,e);else try{R.always?R.JSC$7676_onFulfilled.call(R.context):brl(R,V,e)}catch(X){sld.call(null,X)}CD4.put(R)};
brl=function(B,R,V){R==2?B.JSC$7676_onFulfilled.call(B.context,V):B.JSC$7676_onRejected&&B.JSC$7676_onRejected.call(B.context,V)};
tn4=function(B,R){B.hadUnhandledRejection_=!0;_.k3(function(){B.hadUnhandledRejection_&&sld.call(null,R)})};
sld=eq;_.Cw=function(B){_.o5.call(this,B)};
_.eY(_.Cw,_.o5);_.Cw.prototype.name="cancel";var BPb=function(B,R,V){this.promise=B;this.resolve=R;this.reject=V};var lK;_.Oq=function(B,R){_.H_.call(this);this.JSC$7688_interval_=B||1;this.timerObject_=R||_.R5;this.boundTick_=(0,_.M2)(this.tick_,this);this.last_=_.VG()};
_.eY(_.Oq,_.H_);_.p=_.Oq.prototype;_.p.enabled=!1;_.p.JSC$7690_timer_=null;_.p.setInterval=function(B){this.JSC$7688_interval_=B;this.JSC$7690_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7690_timer_&&this.stop()};
_.p.tick_=function(){if(this.enabled){var B=_.VG()-this.last_;B>0&&B<this.JSC$7688_interval_*.8?this.JSC$7690_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7688_interval_-B):(this.JSC$7690_timer_&&(this.timerObject_.clearTimeout(this.JSC$7690_timer_),this.JSC$7690_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.p.start=function(){this.enabled=!0;this.JSC$7690_timer_||(this.JSC$7690_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7688_interval_),this.last_=_.VG())};
_.p.stop=function(){this.enabled=!1;this.JSC$7690_timer_&&(this.timerObject_.clearTimeout(this.JSC$7690_timer_),this.JSC$7690_timer_=null)};
_.p.disposeInternal=function(){_.Oq.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
lK=function(B,R,V){if(typeof B==="function")V&&(B=(0,_.M2)(B,V));else if(B&&typeof B.handleEvent=="function")B=(0,_.M2)(B.handleEvent,B);else throw Error("Ca");return Number(R)>2147483647?-1:_.R5.setTimeout(B,R||0)};
_.Jq2=function(B){var R=null;return(new _.be(function(V,e){R=lK(function(){V(void 0)},B);
R==-1&&e(Error("Da"))})).thenCatch(function(V){_.R5.clearTimeout(R);
throw V;})};var Wn=function(B){_.Hn.call(this);this.streamzLogger=B;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7694_flushTimer=new _.Oq(this.flushInterval);this.JSC$7694_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.t4(this,this.JSC$7694_flushTimer)};
_.l(Wn,_.Hn);Wn.prototype.sendIsolatedPayload=function(B){this.shouldSendIsolatedPayload=B;this.invocationLimit=1};
var jb5=function(B){B.JSC$7694_flushTimer.enabled||B.JSC$7694_flushTimer.start();B.invocationCount++;B.invocationCount>=B.invocationLimit&&B.snapshotAndFlush()};
Wn.prototype.snapshotAndFlush=function(){var B=this.metricMap.values();B=[].concat(_.MI(B)).filter(function(R){return R.cellMap.size});
B.length&&this.streamzLogger.flush(B,this.shouldSendIsolatedPayload);UI2(B);this.invocationCount=0;this.JSC$7694_flushTimer.enabled&&this.JSC$7694_flushTimer.stop()};
Wn.prototype.addNewCounter=function(B){var R=_.HB.apply(1,arguments);this.metricMap.has(B)||this.metricMap.set(B,new kmv(B,R))};
Wn.prototype.addNewEventMetric=function(B){var R=_.HB.apply(1,arguments);this.metricMap.has(B)||this.metricMap.set(B,new DVT(B,R))};
var NP5=function(B,R){return B.disabledMetrics.has(R)?void 0:B.metricMap.get(R)};
Wn.prototype.JSC$7694_incrementCounter=function(B){this.JSC$7694_incrementCounterBy(B,1,_.HB.apply(1,arguments))};
Wn.prototype.JSC$7694_incrementCounterBy=function(B,R){var V=_.HB.apply(2,arguments),e=NP5(this,B);e&&e instanceof kmv&&(e.JSC$7633_incrementCounterBy(R,V),jb5(this))};
Wn.prototype.record=function(B,R){var V=_.HB.apply(2,arguments),e=NP5(this,B);e&&e instanceof DVT&&(e.record(R,V),jb5(this))};
var UI2=function(B){for(var R=0;R<B.length;R++)B[R].clear()};_.zH=function(B,R,V){V=V===void 0?{}:V;R=Error.call(this,R);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=B;this.metadata=V;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(_.zH,Error);_.zH.prototype.toString=function(){var B="RpcError("+(OdK(this.code)||String(this.code))+")";this.message&&(B+=": "+this.message);return B};_.G4b=_.R5.JSON.parse;_.aB=_.R5.JSON.stringify;_.ls=_.R5.JSON.parse;_.yqS=function(B){switch(B){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 S0o=function(B){switch(B){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Hrv,Mna=function(){};
_.eY(Mna,_.oRZ);Mna.prototype.createInstance=function(){return new XMLHttpRequest};
Hrv=new Mna;_.dK=function(B){_.H_.call(this);this.headers=new Map;this.JSC$7703_xmlHttpFactory_=B||null;this.JSC$7703_active_=!1;this.JSC$7703_xhr_=null;this.JSC$7703_lastUri_="";this.JSC$7703_lastErrorCode_=0;this.JSC$7703_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7703_timeoutId_=null;this.responseType_="";this.JSC$7703_withCredentials_=!1};
_.eY(_.dK,_.H_);var k45=/^https?$/i,DIS=["POST","PUT"],fX5=[],bTS=function(B,R,V,e,X,Y,t){var b=new _.dK;fX5.push(b);R&&b.listen("complete",R);b.listenOnce("ready",b.cleanupSend_);Y&&(b.timeoutInterval_=Math.max(0,Y));t&&(b.JSC$7703_withCredentials_=t);b.send(B,V,e,X)};
_.dK.prototype.cleanupSend_=function(){this.dispose();_.uo(fX5,this)};
_.dK.prototype.send=function(B,R,V,e){if(this.JSC$7703_xhr_)throw Error("Ea`"+this.JSC$7703_lastUri_+"`"+B);R=R?R.toUpperCase():"GET";this.JSC$7703_lastUri_=B;this.JSC$7703_lastError_="";this.JSC$7703_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7703_active_=!0;this.JSC$7703_xhr_=this.createXhr();this.JSC$7703_xhr_.onreadystatechange=Mu((0,_.M2)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7703_xhr_.open(R,String(B),!0),this.inOpen_=!1}catch(t){lX4(this,t);return}B=V||"";V=new Map(this.headers);
if(e)if(Object.getPrototypeOf(e)===Object.prototype)for(var X in e)V.set(X,e[X]);else if(typeof e.keys==="function"&&typeof e.get==="function"){X=_.h(e.keys());for(var Y=X.next();!Y.done;Y=X.next())Y=Y.value,V.set(Y,e.get(Y))}else throw Error("Fa`"+String(e));e=Array.from(V.keys()).find(function(t){return"content-type"==t.toLowerCase()});
X=_.R5.FormData&&B instanceof _.R5.FormData;!_.gx(DIS,R)||e||X||V.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");R=_.h(V);for(e=R.next();!e.done;e=R.next())V=_.h(e.value),e=V.next().value,V=V.next().value,this.JSC$7703_xhr_.setRequestHeader(e,V);this.responseType_&&(this.JSC$7703_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7703_xhr_&&this.JSC$7703_xhr_.withCredentials!==this.JSC$7703_withCredentials_&&(this.JSC$7703_xhr_.withCredentials=this.JSC$7703_withCredentials_);
try{this.JSC$7703_timeoutId_&&(clearTimeout(this.JSC$7703_timeoutId_),this.JSC$7703_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7703_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7703_xhr_.send(B),this.inSend_=!1}catch(t){lX4(this,t)}};
_.dK.prototype.createXhr=function(){return this.JSC$7703_xmlHttpFactory_?this.JSC$7703_xmlHttpFactory_.createInstance():Hrv.createInstance()};
_.dK.prototype.timeout_=function(){typeof Buu!="undefined"&&this.JSC$7703_xhr_&&(this.JSC$7703_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7703_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var lX4=function(B,R){B.JSC$7703_active_=!1;B.JSC$7703_xhr_&&(B.inAbort_=!0,B.JSC$7703_xhr_.abort(),B.inAbort_=!1);B.JSC$7703_lastError_=R;B.JSC$7703_lastErrorCode_=5;zOo(B);aX4(B)},zOo=function(B){B.errorDispatched_||(B.errorDispatched_=!0,B.dispatchEvent("complete"),B.dispatchEvent("error"))};
_.dK.prototype.abort=function(B){this.JSC$7703_xhr_&&this.JSC$7703_active_&&(this.JSC$7703_active_=!1,this.inAbort_=!0,this.JSC$7703_xhr_.abort(),this.inAbort_=!1,this.JSC$7703_lastErrorCode_=B||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),aX4(this))};
_.dK.prototype.disposeInternal=function(){this.JSC$7703_xhr_&&(this.JSC$7703_active_&&(this.JSC$7703_active_=!1,this.inAbort_=!0,this.JSC$7703_xhr_.abort(),this.inAbort_=!1),aX4(this,!0));_.dK.superClass_.disposeInternal.call(this)};
_.dK.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)dI_(this);else this.onReadyStateChangeEntryPoint_()};
_.dK.prototype.onReadyStateChangeEntryPoint_=function(){dI_(this)};
var dI_=function(B){if(B.JSC$7703_active_&&typeof Buu!="undefined")if(B.inSend_&&_.wK(B)==4)setTimeout(B.onReadyStateChange_.bind(B),0);else if(B.dispatchEvent("readystatechange"),B.isComplete()){B.JSC$7703_active_=!1;try{if(B.isSuccess())B.dispatchEvent("complete"),B.dispatchEvent("success");else{B.JSC$7703_lastErrorCode_=6;try{var R=_.wK(B)>2?B.JSC$7703_xhr_.statusText:""}catch(V){R=""}B.JSC$7703_lastError_=R+" ["+B.getStatus()+"]";zOo(B)}}finally{aX4(B)}}},aX4=function(B,R){if(B.JSC$7703_xhr_){B.JSC$7703_timeoutId_&&
(clearTimeout(B.JSC$7703_timeoutId_),B.JSC$7703_timeoutId_=null);
var V=B.JSC$7703_xhr_;B.JSC$7703_xhr_=null;R||B.dispatchEvent("ready");try{V.onreadystatechange=null}catch(e){}}};
_.dK.prototype.isActive=function(){return!!this.JSC$7703_xhr_};
_.dK.prototype.isComplete=function(){return _.wK(this)==4};
_.dK.prototype.isSuccess=function(){var B=this.getStatus(),R;if(!(R=S0o(B))){if(B=B===0)B=Em_(String(this.JSC$7703_lastUri_)),B=!k45.test(B);R=B}return R};
_.wK=function(B){return B.JSC$7703_xhr_?B.JSC$7703_xhr_.readyState:0};
_.p=_.dK.prototype;_.p.getStatus=function(){try{return _.wK(this)>2?this.JSC$7703_xhr_.status:-1}catch(B){return-1}};
_.p.getResponseText=function(){try{return this.JSC$7703_xhr_?this.JSC$7703_xhr_.responseText:""}catch(B){return""}};
_.p.getResponse=function(){try{if(!this.JSC$7703_xhr_)return null;if("response"in this.JSC$7703_xhr_)return this.JSC$7703_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7703_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7703_xhr_)return this.JSC$7703_xhr_.mozResponseArrayBuffer}return null}catch(B){return null}};
_.p.getAllResponseHeaders=function(){return this.JSC$7703_xhr_&&_.wK(this)>=2?this.JSC$7703_xhr_.getAllResponseHeaders()||"":""};
_.p.getLastError=function(){return typeof this.JSC$7703_lastError_==="string"?this.JSC$7703_lastError_:String(this.JSC$7703_lastError_)};var jKK=function(){};
jKK.prototype.send=function(B,R,V){R=R===void 0?function(){}:R;
V=V===void 0?function(){}:V;
bTS(B.url,function(e){e=e.target;e.isSuccess()?R(e.getResponseText()):V(e.getStatus())},B.requestType,B.body,B.requestHeaders,B.timeoutMillis,B.withCredentials)};
jKK.prototype.getTransmissionType=function(){return 1};var wRl=function(B,R){this.logger=B;this.event=R;this.startTime=by()};
wRl.prototype.done=function(){this.logger.xu(this.event,by()-this.startTime)};
var TH=function(){Vg.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.l(TH,Vg);var x3=function(B,R,V){var e=by();R=R();B.xu(V,by()-e);return R},HWZ=function(){TH.apply(this,arguments)};
_.l(HWZ,TH);_.p=HWZ.prototype;_.p.qH0=function(){};
_.p.rQ=function(){};
_.p.xu=function(){};
_.p.logError=function(){};
_.p.ox=function(){};
_.p.d35=function(){};
_.p.nvz=function(){};
_.p.gvr=function(){};
_.p.ruL=function(){};
var TPJ=function(B){TH.call(this);var R=this;this.logger=B;this.TEST_ONLY={wFg:function(){return R.logger},
getExperimentIds:function(){return R.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void R.logger.dispose()})};
_.l(TPJ,TH);_.p=TPJ.prototype;_.p.update=function(B){this.logger.dispose();this.logger=B};
_.p.rQ=function(B){this.logger.rQ(B)};
_.p.xu=function(B,R){this.logger.xu(B,R)};
_.p.logError=function(B){this.logger.logError(B)};
_.p.ox=function(){this.logger.ox()};
_.p.d35=function(B){this.logger.d35(B)};
_.p.nvz=function(B){this.logger.nvz(B)};
_.p.gvr=function(B){this.logger.gvr(B)};
_.p.ruL=function(B){this.logger.ruL(B)};
_.p.qH0=function(B){this.logger.qH0(B)};
var xI2=function(B,R){_.Hn.call(this);var V=this;this.callback=B;this.gcn=R;this.gDT=-R;this.addOnDisposeCallback(function(){return void clearTimeout(V.timer)})};
_.l(xI2,_.Hn);var LCo=function(B){if(B.timer===void 0){var R=Math.max(0,B.gDT+B.gcn-by());B.timer=setTimeout(function(){try{B.callback()}finally{B.gDT=by(),B.timer=void 0}},R)}},vbh=function(B,R){TH.call(this);
this.metrics=B;this.kq=R};
_.l(vbh,TH);_.p=vbh.prototype;_.p.qH0=function(B){this.metrics.r0R.record(B,this.kq)};
_.p.rQ=function(B){this.metrics.eventCount.increment(B,this.kq)};
_.p.xu=function(B,R){this.metrics.m8n.record(R,B,this.kq)};
_.p.logError=function(B){this.metrics.errorCount.increment(B,this.kq)};
_.p.d35=function(B){this.metrics.tP0.increment(B,this.kq)};
_.p.nvz=function(B){this.metrics.f2r.increment(B,this.kq)};
_.p.gvr=function(B){this.metrics.mdn.increment(B,this.kq)};
var MAN=function(B,R){R=R===void 0?[]:R;var V={kq:B.kq||"_",cH5:B.cH5||[],sXr:B.sXr|0,destinationUrl:B.destinationUrl,lkz:B.lkz||function(){},
cP:B.cP||function(Y,t){return SZS(Y,t,V.lkz,V.destinationUrl)}},e=V.cP("49",V.cH5.concat(R));
vbh.call(this,tA5(e),V.kq);var X=this;this.TEST_ONLY={getExperimentIds:function(){return X.options.cH5.concat(X.t0W).sort(function(Y,t){return Y-t})}};
this.options=V;this.service=e;this.h7P=!B.cP;this.flushDebouncer=new xI2(function(){return void X.service.snapshotAndFlush()},V.sXr);
this.addOnDisposeCallback(function(){X.flushDebouncer.dispose();X.h7P&&X.service.dispose()});
(this.t0W=R.slice()).sort(_.b_)};
_.l(MAN,vbh);MAN.prototype.ruL=function(B){var R=this;B=B.slice();B.sort(_.b_);_.Jh(B,this.t0W)||(this.flushDebouncer.dispose(),this.h7P&&this.service.dispose(),this.service=this.options.cP("49",this.options.cH5.concat(B)),this.flushDebouncer=new xI2(function(){return void R.service.snapshotAndFlush()},this.options.sXr),this.metrics=tA5(this.service),this.t0W=B)};
MAN.prototype.ox=function(){LCo(this.flushDebouncer)};var wNd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(wNd,_.qS);_.T5u=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(_.T5u,_.qS);var Oy=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B,0,Oy.messageId)};
_.l(Oy,_.qS);var KCS=_.Rkd(Oy);Oy.messageId="bfkj";var QII=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(QII,_.qS);var IXS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(IXS,_.qS);var Eb5=_.oa(IXS);_.Xs=function(){var B=this;this.promise=new Promise(function(R,V){B.resolve=R;B.reject=V})};_.LT=function(B){_.Hn.call(this);var R=this;this.u8c=Math.floor(Math.random()*200);this.ehL=new IXS;if("challenge"in B&&KCS(B.challenge)){var V=_.xU(B.challenge,4,void 0,g4);var e=_.xU(B.challenge,5,void 0,g4);_.xU(B.challenge,7,void 0,g4)&&(this.ehL=Eb5(_.xU(B.challenge,7,void 0,g4)))}else V=B.program,e=B.globalName;this.addOnDisposeCallback(function(){var z,T,L;return _.W(function(Q){if(Q.nextAddress==1)return _.U(Q,R.orj,2);z=Q.yieldResult;T=z.eni;(L=T)==null||L();_.b3(Q)})});
this.logger=cIu(B.kK||{},this.ehL,B.cBs);_.t4(this,this.logger);var X=new _.Xs;this.orj=X.promise;this.logger.rQ("t");var Y=this.logger.share(),t=new wRl(Y,"t"),b=function(z,T,L,Q){if(!R.logger.isDisposed()){var q="k";T?q="h":L&&(q="u");q!=="k"?Q!==0&&(R.logger.rQ(q),R.logger.xu(q,z)):R.u8c<=0?(R.logger.rQ(q),R.logger.xu(q,z),R.u8c=Math.floor(Math.random()*200)):R.u8c--}},J=function(z,T,L,Q){Promise.resolve().then(function(){t.done();
Y.ox();Y.dispose();X.resolve({nkl:z,eni:T,jgt:L,yK3:Q})})};
if(!_.R5[e])throw this.logger.logError(25),Error("Ga");if(!_.R5[e].a)throw this.logger.logError(26),Error("Ha");try{var G=_.R5[e].a;e=[];for(var y=[],S=qJd(this.ehL),M=0;M<S.length;M++)e.push(S[M]),y.push(1);var f=c4q(this.ehL);for(S=0;S<f.length;S++)e.push(f[S]),y.push(2);this.m4G=_.h(G(V,J,!0,B.gxn,b,[e,y],_.xU(this.ehL,5))).next().value;this.j3j=X.promise.then(function(){})}catch(z){throw this.logger.logError(28),z;
}};
_.l(_.LT,_.Hn);_.LT.prototype.snapshot=function(B){if(this.isDisposed())throw Error("Ia");this.logger.rQ("n");var R=this.logger.share();return this.orj.then(function(V){var e=V.nkl;return new Promise(function(X){var Y=new wRl(R,"n");e(function(t){Y.done();R.qH0(t.length);R.ox();R.dispose();X(t)},[B.m6,
B.xrO,B.ofJ,B.p1E])})})};
_.Qbo=function(B,R){if(B.isDisposed())throw Error("Ia");B.logger.rQ("n");var V=x3(B.logger,function(){return B.m4G([R.m6,R.xrO,R.ofJ,R.p1E])},"n");
B.logger.qH0(V.length);B.logger.ox();return V};
_.LT.prototype.ede=function(B){this.orj.then(function(R){var V;(V=R.jgt)==null||V(B)})};
_.LT.prototype.hjO=function(B,R){return this.orj.then(function(V){var e;return(e=V.yK3)==null?void 0:e(B,R,!1)})};
_.LT.prototype.iDe=function(){return this.logger.share()};var q0G=function(){this.hBW={};this.ogP=null},cq_=function(){q0G.instance||(q0G.instance=new q0G);
return q0G.instance},irJ=function(B,R){return AqS(B,_.OB(R,wNd,1,g4),_.OB(R,_.T5u,2,g4),_.xU(R,3,void 0,g4))},AqS=function(B,R,V,e){if(!R&&!V)return Promise.resolve();
if(!e)return Foo(R,V);var X;(X=B.hBW)[e]||(X[e]=new Promise(function(Y,t){Foo(R,V).then(function(){B.ogP=e;Y()},function(b){delete B.hBW[e];
t(b)})}));
return B.hBW[e]};var sb4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(sb4,_.qS);var FCT=function(B,R){return _.oH(B,1,R)},rq2=function(B,R){return _.oH(B,2,R)};var v_=function(B){_.Hn.call(this);var R=this;this.options=B;this.qy5=new _.Xs;this.j3j=this.qy5.promise;this.fuz=new _.Xs;this.viM=1;this.bPe=new _.Xs;this.jN5=[];this.wDL=B.wDL||function(){};
this.logger=new TPJ(cIu(B.kK||{}));gbJ(this,B.tI,B.aVO,B.xbw,B.ryt,Object.assign({},Zrb,B.tnj||{}));this.addOnDisposeCallback(function(){return void mIG(R)})};
_.l(v_,_.Hn);v_.prototype.snapshot=function(B){var R=this;return _.W(function(V){switch(V.nextAddress){case 1:if(R.isDisposed())throw Error("Ia");if(R.sB||R.bIk){V.jumpTo(2);break}return _.U(V,R.fuz.promise,2);case 2:if(!R.sB){V.jumpTo(4);break}return _.U(V,R.sB.snapshot(B),5);case 5:return V.return(V.yieldResult);case 4:throw R.bIk;}})};
var $Il=function(B){var R;return _.W(function(V){if(B.isDisposed())throw Error("Ia");(R=B.wB)!=null&&(R.endTimeMs=0,R.resolver(1));return _.U(V,B.bPe.promise,0)})},mIG=function(B){B.bIk=Error("Ka");
B.fuz.resolve();A4o(B.qy5.promise);B.qy5.reject(Error("Ka"));B.logger.dispose();Promise.all(B.jN5).then(function(){var V;return _.W(function(e){(V=B.sB)==null||V.dispose();B.sB=void 0;_.b3(e)})});
B.jN5=[];var R;(R=B.wB)!=null&&(R.endTimeMs=0,R.resolver(1));A4o(B.bPe.promise);B.bPe.reject(Error("Ka"))};
v_.prototype.ede=function(B){var R,V;(R=this.sB)==null||(V=R.ede)==null||V.call(R,B)};
v_.prototype.hjO=function(B,R){var V,e,X;return(X=(V=this.sB)==null?void 0:(e=V.hjO)==null?void 0:e.call(V,B,R))!=null?X:Promise.resolve()};
var C34=function(B,R){var V=B.wDL;B.wDL=function(){V();R()}},P3S=function(B,R){B.isDisposed()||(B.sB=R,B.logger.update(R.iDe()),B.fuz.resolve(),B.qy5.resolve(void 0),B.wDL())};
v_.prototype.handleError=function(B){if(!this.isDisposed()){this.bIk=B;this.fuz.resolve();var R,V;(V=(R=this.options).mRl)==null||V.call(R,B)}};
var nb_=function(B,R){R&&(Promise.all(B.jN5).then(function(){return void R.dispose()}),B.jN5=[])},KT=function(B,R){B.viM=R;
var V,e;(e=(V=B.options).gYg)==null||e.call(V,R)},ufl=function(B){B.isDisposed()||(B.bPe.resolve(),B.bPe=new _.Xs)},gbJ=function(B,R,V,e,X,Y){e=e===void 0?cq_():e;
X=X===void 0?Promise.resolve(void 0):X;var t,b,J,G,y,S,M,f,z,T,L,Q;_.W(function(q){switch(q.nextAddress){case 1:return _.U(q,0,3);case 3:b=null;if(!t){q.jumpTo(6);break}KT(B,7);_.en(q,7);return _.U(q,G$(t.snapshot({}),Y.xw9,function(){return Promise.resolve("E:CTO")}),9);
case 9:b=q.yieldResult;_.c8(q,6);break;case 7:_.WR(q),b="E:UCE";case 6:J=void 0,G=t?Y.sM9:Y.g2r,y=new pd(G,Y.d83,Y.zNu,Y.n2p),S=1;case 10:if(!(S<=Y.maxAttempts)){q.jumpTo(12);break}if(S===1){q.jumpTo(13);break}KT(B,0);B.wB=new Or_(y.getValue(),Y.fqp,Y.iIn);return _.U(q,B.wB.promise,14);case 14:M=q.yieldResult,B.wB=void 0,M===1?(S=1,y.reset()):WL4(y);case 13:_.en(q,15);f=void 0;if(V){f=V;q.jumpTo(17);break}KT(B,5);z=e.ogP;return _.U(q,G$(olo(R,z,b),Y.dUl,function(){return Promise.reject(Error("La"))}),
18);
case 18:f=q.yieldResult;case 17:return KT(B,3),_.U(q,G$(irJ(e,f),Y.nGJ,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return KT(B,8),_.U(q,X,20);case 20:return T=new _.LT({challenge:f,kK:B.options.kK,gxn:B.options.gxn}),_.U(q,G$(T.j3j,Y.wge,function(){return Promise.reject(Error("Na"))}),21);
case 21:J=T;q.jumpTo(12);break;case 15:L=_.WR(q),B.handleError(L),ufl(B);case 11:S++;q.jumpTo(10);break;case 12:if(B.isDisposed()){q.jumpTo(5);break}J&&(V=void 0,nb_(B,t),t=J,P3S(B,J),ufl(B));KT(B,2);B.wB=new Or_(Y.roM,Y.fqp,Y.iIn);return _.U(q,B.wB.promise,22);case 22:B.wB=void 0;if(B.isDisposed()){q.jumpTo(5);break}q.jumpTo(3);break;case 5:(Q=t)==null||Q.dispose(),_.b3(q)}})};
v_.prototype.iDe=function(){return this.logger.share()};
var Zrb={roM:432E5,fqp:3E5,iIn:10,xw9:1E4,dUl:3E4,nGJ:3E4,wge:6E4,g2r:1E3,sM9:6E4,d83:6E5,zNu:.25,n2p:2,maxAttempts:10},Or_=function(B,R,V){var e=this;this.endTimeMs=Date.now()+B;this.promise=new Promise(function(Y){e.resolver=Y});
var X=function(){var Y=e.endTimeMs-Date.now();Y<=V?e.resolver(0):setTimeout(X,Math.min(Y,R))};
X()};var Bko,ZWI=(Bko=Math.imul)!=null?Bko:function(B,R){return B*R|0},yI=[196,
200,224,18],IB=function(B,R,V){V=V===void 0?[]:V;this.maxItems=B;this.cO=R===void 0?0:R;this.rD=V},RCJ=function(B){var R=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!R)return new IB(B);var V=R.split(",");if(V.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new IB(B);R=V.slice(1);R.length===1&&R[0]===""&&(R=[]);V=Number(V[0]);return isNaN(V)||V<0||V>R.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new IB(B)):new IB(B,V,R)};
IB.prototype.serialize=function(){return String(this.cO)+","+this.rD.join()};
IB.prototype.insert=function(B,R){var V=void 0;if(this.rD[this.cO]!==B){var e=this.rD.indexOf(B);e!==-1?(this.rD.splice(e,1),e<this.cO&&this.cO--,this.rD.splice(this.cO,0,B)):(V=this.rD[this.cO],this.rD[this.cO]=B)}this.cO=(this.cO+1)%this.maxItems;B=rIK("iU5q-!O9@$",this.serialize());V&&B&&R(V);return B};
var VDl=function(B,R){this.logger=R;try{var V=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(e){V=!1}V&&(this.index=RCJ(B))},eCJ=function(B,R,V,e,X){var Y=B.index?x3(B.logger,function(){return PJN(B.index,$WK(R),V,e,X)},"W"):"u";
B.logger.gvr(Y)},XHo=function(B,R,V){var e=_.h(B.index?x3(B.logger,function(){return nRZ($WK(R),V)},"R"):["u"]),X=e.next().value;
e=e.next().value;B.logger.nvz(X);return e};var pH4={toString:function(B){var R=[],V=0;B-=-2147483648;R[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(B%52);for(B=Math.floor(B/52);B>0;)R[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(B%62),B=Math.floor(B/62);return R.join("")}};var tDl=function(B){B=YhT(B);for(var R=2654435769,V=2654435769,e=314159265,X=B.length,Y=X,t=0,b=function(){R-=V;R-=e;R^=e>>>13;V-=e;V-=R;V^=R<<8;e-=R;e-=V;e^=V>>>13;R-=V;R-=e;R^=e>>>12;V-=e;V-=R;V^=R<<16;e-=R;e-=V;e^=V>>>5;R-=V;R-=e;R^=e>>>3;V-=e;V-=R;V^=R<<10;e-=R;e-=V;e^=V>>>15};Y>=12;Y-=12,t+=12)R+=hC_(B,t),V+=hC_(B,t+4),e+=hC_(B,t+8),b();
e+=X;switch(Y){case 11:e+=B[t+10]<<24;case 10:e+=B[t+9]<<16;case 9:e+=B[t+8]<<8;case 8:V+=B[t+7]<<24;case 7:V+=B[t+6]<<16;case 6:V+=B[t+5]<<8;case 5:V+=B[t+4];case 4:R+=B[t+3]<<24;case 3:R+=B[t+2]<<16;case 2:R+=B[t+1]<<8;case 1:R+=B[t]}b();return pH4.toString(e)},YhT=function(B){for(var R=[],V=0;V<B.length;V++)R.push(B.charCodeAt(V));
return R},hC_=function(B,R){return B[R]+(B[R+1]<<8)+(B[R+2]<<16)+(B[R+3]<<24)};var WOl,En=function(B){_.Hn.call(this);this.logger=B;this.vXq=new _.Xs;this[WOl]=this.dispose};
_.l(En,_.Hn);var bxb=function(B,R){var V=setTimeout(function(){B.vXq.resolve()},R);
B.addOnDisposeCallback(function(){return void clearTimeout(V)})};
En.prototype.qO=function(B,R){var V=this.zJ(B);R==null||R(V);return x3(this.logger,function(){return _.O4(V,2)},this.meJ)};
var JF2=function(B,R,V,e){return x3(B.logger,function(){return V?B.qO(R,e):B.zJ(R,e)},B.fl)};
WOl=Symbol.dispose;var jJ2=function(B,R,V,e){En.call(this,B);this.xM6=R;this.if3=V;this.fl="m";this.meJ="x";this.lm6=0;bxb(this,e)};
_.l(jJ2,En);jJ2.prototype.zJ=function(B,R){var V=this;this.logger.rQ(this.fl);++this.lm6>=this.if3&&this.vXq.resolve();var e=B();B=x3(this.logger,function(){return V.xM6(e)},"C");
if(B===void 0)throw new B_(17,"YNJ:Undefined");if(!(B instanceof Uint8Array))throw new B_(18,"ODM:Invalid");R==null||R(B);return B};
var U__=function(B,R,V){En.call(this,B);this.nZt=R;this.fl="f";this.meJ="z";bxb(this,V)};
_.l(U__,En);U__.prototype.zJ=function(){return this.nZt};
var Nkb=function(B,R,V){En.call(this,B);this.a5l=R;this.fl="w";this.meJ="z";bxb(this,V)};
_.l(Nkb,En);Nkb.prototype.zJ=function(){var B=this;return x3(this.logger,function(){return _.Uo(B.a5l)},"d")};
Nkb.prototype.qO=function(){return this.a5l};
var Ggl=function(B,R){En.call(this,B);this.error=R;this.fl="e";this.meJ="y"};
_.l(Ggl,En);var yF2=function(B,R){var V=(R(B.error.message)+":"+R(B.error.stack)).substring(0,2048);R=V.length+1;V=uBA(V);var e=new Uint8Array(4+V.length);e.set([42,R&127|128,R>>7,B.error.code]);e.set(V,4);return e};
Ggl.prototype.zJ=function(){if(this.mNM)return this.mNM;this.mNM=yF2(this,function(B){return"_"+tDl(B)});
return yF2(this,function(B){return B})};
var ShJ=function(B,R,V){En.call(this,B);this.rCJ=R;this.clientState=V;this.fl="S";this.meJ="q"};
_.l(ShJ,En);ShJ.prototype.zJ=function(){var B=Math.floor(Date.now()/1E3),R=[Math.random()*255,Math.random()*255],V=R.concat([this.rCJ&255,this.clientState],[B>>24&255,B>>16&255,B>>8&255,B&255]);B=new Uint8Array(2+V.length);B[0]=34;B[1]=V.length;B.set(V,2);V=B.subarray(2);for(var e=R=R.length;e<V.length;++e)V[e]^=V[e%R];this.logger.d35(this.clientState);return B};var Hx4={xUr:3E4,ngA:2E4},Qg=function(B){_.Hn.call(this);var R=this;this.b0x=new _.Xs;this.hwr=0;this.hI=void 0;this.state=2;this.t3=B.t3;this.tI=B.tI;this.tnj=Object.assign({},Hx4,B.tnj||{});this.logger=B.t3.iDe();var V;this.onError=(V=B.onError)!=null?V:function(){};
this.uos=B.uos||!1;if(MDv(B)){var e=this.t3;this.djM=function(){return $Il(e).catch(function(t){t=R.reportError(new B_(R.u5?20:32,"TRG:Disposed",t));R.hI=t;var b;(b=R.u5)==null||b.dispose();R.u5=void 0;R.b0x.reject(t)})};
C34(e,function(){return void kgG(R)});
e.viM===2&&kgG(this)}else this.djM=B.f2w,kgG(this);var X=this.logger.share();X.rQ("o");var Y=new wRl(X,"o");this.b0x.promise.then(function(){Y.done();X.ox();X.dispose()},function(){return void X.dispose()});
this.addOnDisposeCallback(function(){R.u5?(R.u5.dispose(),R.u5=void 0):R.hI?R.logger.ox():(R.hI=R.reportError(new B_(32,"TNP:Disposed")),R.logger.ox(),R.b0x.reject(R.hI))});
_.t4(this,this.logger)};
_.l(Qg,_.Hn);Qg.prototype.d5r=function(){return this.b0x.promise};
var D_o=function(B,R){if(!(R instanceof B_))if(R instanceof _.zH){var V=Error(R.toString());V.stack=R.stack;R=new B_(11,"EBH:Error",V)}else R=new B_(12,"BSO:Unknown",R);return B.reportError(R)},kgG=function(B){var R,V,e,X,Y,t,b,J,G,y,S,M,f,z,T;
return _.W(function(L){switch(L.nextAddress){case 1:R=void 0;B.hwr++;V=new _.Xs;B.t3 instanceof v_&&B.t3.jN5.push(V.promise);if(!B.uos){L.jumpTo(2);break}e=new _.Xs;setTimeout(function(){return void e.resolve()});
return _.U(L,e.promise,2);case 2:return X=B.logger.share(),_.en(L,4,5),B.state=5,Y={},t=[],_.U(L,G$(B.t3.snapshot({m6:Y,ofJ:t}),B.tnj.ngA,function(){return Promise.reject(new B_(15,"MDA:Timeout"))}),7);
case 7:b=L.yieldResult;if(B.isDisposed())throw new B_(B.u5?20:32,"MDA:Disposed");J=t[0];B.state=6;return _.U(L,G$(fO5(B.tI,b),B.tnj.xUr,function(){return Promise.reject(new B_(10,"BWB:Timeout"))}),8);
case 8:G=L.yieldResult;if(B.isDisposed())throw new B_(B.u5?20:32,"BWB:Disposed");B.state=7;R=x3(X,function(){var q=lOl(B,G,V,J);q.vXq.promise.then(function(){return void B.djM()});
return q},"i");
case 5:_.pr(L);X.dispose();_.tq(L,6);break;case 4:y=_.WR(L);(S=R)==null||S.dispose();if(!B.hI){M=D_o(B,y);V.resolve();var Q;if(Q=B.t3 instanceof v_&&B.hwr<2)a:if(y instanceof B_)Q=y.code!==32&&y.code!==20&&y.code!==10;else{if(y instanceof _.zH)switch(y.code){case 2:case 13:case 14:case 4:break;default:Q=!1;break a}Q=!0}if(Q)return f=(1+Math.random()*.25)*(B.u5?6E4:1E3),z=setTimeout(function(){return void B.djM()},f),B.addOnDisposeCallback(function(){return void clearTimeout(z)}),L.return();
B.hI=M}X.logError(B.u5?13:14);B.b0x.reject(B.hI);return L.return();case 6:B.state=8,B.hwr=0,(T=B.u5)==null||T.dispose(),B.u5=R,B.b0x.resolve(),_.b3(L)}})},lOl=function(B,R,V,e){var X=yiZ(R,2)*1E3;
if(X<=0)throw new B_(31,"TTM:Invalid");if(_.xU(R,4))return new Nkb(B.logger,_.xU(R,4),X);if(!yiZ(R,3))return new U__(B.logger,owu(_.M6(R,1)),X);if(!e)throw new B_(4,"PMD:Undefined");e=e(owu(_.M6(R,1)));if(!(e instanceof Function))throw new B_(16,"APF:Failed");B.jo3=Math.floor((Date.now()+X)/1E3);B=new jJ2(B.logger,e,yiZ(R,3),X);B.addOnDisposeCallback(function(){return void V.resolve()});
return B};
Qg.prototype.zJ=function(B){return zCo(this,Object.assign({},B),!1)};
Qg.prototype.qO=function(B){return zCo(this,Object.assign({},B),!0)};
Qg.prototype.uHY=function(B){if(B>150)return!1;try{return this.cache=new VDl(B,this.logger),!0}catch(R){return this.reportError(new B_(22,"GBJ:init",R)),!1}};
Qg.prototype.reportError=function(B){this.logger.logError(B.code);this.onError(B);return B};
var aOS=function(B,R){R=R instanceof B_?R:new B_(5,"TVD:error",R);return B.reportError(R)},zCo=function(B,R,V){try{if(B.isDisposed())throw new B_(21,"BNT:disposed");
if(!B.u5&&B.hI)throw B.hI;var e,X;return(X=(e=d_l(B,R,V))!=null?e:wH4(B,R,V))!=null?X:Tko(B,R,V)}catch(Y){if(!R.rTq)throw aOS(B,Y);return x_4(B,V,Y)}},d_l=function(B,R,V){var e;
return(e=B.u5)==null?void 0:JF2(e,function(){return LOJ(B,R)},V,function(X){var Y;
if(B.u5 instanceof jJ2&&((Y=R.sQ)==null?0:Y.e53))try{var t;(t=B.cache)==null||eCJ(t,LOJ(B,R),X,R.sQ.pkl,B.jo3-120)}catch(b){B.reportError(new B_(24,"ELX:write",b))}})},wH4=function(B,R,V){var e;
if((e=R.sQ)!=null&&e.g2q)try{var X,Y=(X=B.cache)==null?void 0:XHo(X,LOJ(B,R),R.sQ.pkl);return Y?V?x3(B.logger,function(){return _.O4(Y,2)},"a"):Y:void 0}catch(t){B.reportError(new B_(23,"RXO:read",t))}},Tko=function(B,R,V){var e={stack:[],
error:void 0,hasError:!1};try{if(!R.pR0)throw new B_(29,"SDF:notready");return JF2(MZK(e,new ShJ(B.logger,0,B.state)),function(){return LOJ(B,R)},V)}catch(X){e.error=X,e.hasError=!0}finally{lZA(e)}},x_4=function(B,R,V){var e={stack:[],
error:void 0,hasError:!1};try{var X=aOS(B,V);return JF2(MZK(e,new Ggl(B.logger,X)),function(){return[]},R)}catch(Y){e.error=Y,e.hasError=!0}finally{lZA(e)}},LOJ=function(B,R){return R.ieL?R.ieL:R.m6?x3(B.logger,function(){return R.ieL=uBA(R.m6)},"c"):[]},MDv=function(B){return CR(function(R){if(!RK(R))return!1;
for(var V=_.h(Object.entries(B)),e=V.next();!e.done;e=V.next()){var X=_.h(e.value);e=X.next().value;X=X.next().value;if(!(e in R)){if(X.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!X(R[e]))return!1}return!0})}({t3:function(B){return CR(function(R){return R instanceof B})}(v_)},"");var vl4=function(){var B=_.B$();this.JSC$7818_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",RI("cookie_enabled"),RI("cookie_3p_enabled"),_.er("browser"))};
vl4.prototype.increment=function(B,R,V){this.JSC$7818_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",B,R,V)};
var S_d=function(){var B=_.B$();this.JSC$7842_streamzService=B;B.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",VI("tick"),RI("from_st_cookie"))};
S_d.prototype.increment=function(B,R){this.JSC$7842_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",B,R)};
var KO2=function(){var B=_.B$();this.JSC$7848_streamzService=B;B.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.er("status"))};
KO2.prototype.increment=function(B){this.JSC$7848_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",B)};
var IOo=function(){var B=_.B$();this.JSC$7851_streamzService=B;B.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.er("stage"),RI("is_using_ytd_player"),RI("has_expandable_tiles"))};
IOo.prototype.increment=function(B,R,V){this.JSC$7851_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",B,R,V)};
var Elh=function(){var B=_.B$();this.JSC$7854_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/response_signature",_.er("check_status"))};
Elh.prototype.increment=function(B){this.JSC$7854_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/response_signature",B)};
var QJo=function(){var B=_.B$();this.JSC$7857_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.er("sig"),VI("de"))};
QJo.prototype.increment=function(B,R){this.JSC$7857_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/e_sig_log",B,R)};
var qhb=function(){var B=_.B$();this.JSC$7860_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.er("sig"),VI("de"))};
qhb.prototype.increment=function(B,R){this.JSC$7860_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/e_sig_en",B,R)};
_.cF2=function(){var B=_.B$();this.JSC$7863_streamzService=B;B.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.er("action"))};
_.cF2.prototype.increment=function(B){this.JSC$7863_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web/enforcement_intent",B)};var C6q=function(){var B=_.B$();this.JSC$7866_streamzService=B;B.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.er("tagname"))};
C6q.prototype.increment=function(B){this.JSC$7866_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",B)};var qu=window;var AF2=(new Date).getTime();var ix4=function(B){this.servicePromise_=B;B.then((0,_.M2)(function(){},this),function(){},this)},sJa=function(B,R,V){B.servicePromise_.then(function(e){var X=e[R];
if(!X)throw Error("Oa`"+R);return X.apply(e,V)})},gla=function(B,R,V){for(var e=Array(arguments.length-2),X=2;X<arguments.length;X++)e[X-2]=arguments[X];
X=FOR(B,R).then(function(Y){return Y.apply(null,e)},function(Y){Y=Error("Pa`"+R+"`"+B,{cause:Y});
delete rFR[R];return _.SR(Y)});
return new ix4(X)},rFR={},FOR=function(B,R){var V=rFR[R];
if(V)return V;V=(V=_.qN(R))?_.XT(V):(new _.be(function(e,X){var Y=(new D1(document)).createElement("SCRIPT");Y.async=!0;_.Qm(Y,_.Yq(s4R(B)));Y.onload=Y.onreadystatechange=function(){Y.readyState&&Y.readyState!="loaded"&&Y.readyState!="complete"||e()};
Y.onerror=function(t){X(Error("Qa`"+R+"`"+B,{cause:t}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(Y)})).then(function(){var e=_.qN(R);
if(!e)throw Error("Ra`"+R+"`"+B);return e});
return rFR[R]=V};var Zxv={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},$_l=function(){var B=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=OWZ(function(){return _.W(function(R){if(R.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?R.return(Promise.resolve()):_.U(R,m_h(B),2);B.rsaForList.length>
0&&document.addEventListener("click",B.requestAccessForHelpPanel);_.b3(R)})});
this.requestAccessForHelpPanel=function(){if(!(B.rsaForPromises.length>0)){for(var R=_.h(B.rsaForList),V=R.next();!V.done;V=R.next()){V=V.value;try{B.rsaForPromises.push(document.requestStorageAccessFor(V))}catch(e){}}Promise.all(B.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){B.reset()})}}};
$_l.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var m_h=function(B){var R,V,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:R=_.h(Object.values(Zxv)),V=R.next();case 2:if(V.done){Y.jumpTo(0);break}e=V.value;_.en(Y,5);return _.U(Y,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:e}),7);case 7:X=Y.yieldResult;X.state!=="granted"&&B.rsaForList.push(e);_.c8(Y,3);break;case 5:_.WR(Y);Y.jumpTo(0);break;case 3:V=R.next(),Y.jumpTo(2)}})};(new $_l).initialize();var CgR=function(B){this.JSC$7880_loader_=B};
CgR.prototype.startHelp=function(B){sJa(this.JSC$7880_loader_,"startHelp",arguments)};
CgR.prototype.JSC$7882_loadChatSupport=function(B){sJa(this.JSC$7880_loader_,"loadChatSupport",arguments)};
var nlS=function(B,R){R=R||{};B=gla(Pg_,"help.service.Lazy.create",B,{apiKey:R.apiKey||R.apiKey,asxUiUri:R.asxUiUri||R.asxUiUri,environment:R.environment||R.environment,flow:R.flow||R.flow,frdProductData:R.frdProductData||R.frdProductData,frdProductDataSerializedJspb:R.frdProductDataSerializedJspb||R.frdProductDataSerializedJspb,helpCenterPath:R.helpCenterPath||R.helpCenterPath,locale:R.locale||R.locale||"en-US".replace(/-/g,"_"),nonce:R.nonce||R.nonce,productData:R.productData||R.productData,receiverUri:R.receiverUri||
R.receiverUri,renderApiUri:R.renderApiUri||R.renderApiUri,theme:R.theme||R.theme,window:R.window||R.window});return new CgR(B)},Pg_=new Ed(d9Z,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var uD_=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(uD_,_.qS);var OxG=_.oa(uD_);new Uint8Array([]);_.o0h=new function(B,R,V,e){this.configType=B;this.flagName=V;this.defaultValue=e;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 RQJ=function(){this.retriever=_.Oz().resolve(Bzh)};Bgx(Node);Bgx(Element);var Vrb=Bgx(HTMLElement);Bgx(SVGElement);var eQv,Xn4,iK,pn_;eQv=function(B){return typeof B.className=="string"?B.className:B.getAttribute&&B.getAttribute("class")||""};
Xn4=function(B){return B.classList?B.classList:eQv(B).match(/\S+/g)||[]};
_.c_=function(B,R){typeof B.className=="string"?B.className=R:B.setAttribute&&B.setAttribute("class",R)};
_.A8=function(B,R){return B.classList?B.classList.contains(R):_.gx(Xn4(B),R)};
_.s5=function(B,R){if(B.classList)B.classList.add(R);else if(!_.A8(B,R)){var V=eQv(B);_.c_(B,V+(V.length>0?" "+R:R))}};
iK=function(B,R){if(B.classList)Array.prototype.forEach.call(R,function(X){_.s5(B,X)});
else{var V={};Array.prototype.forEach.call(Xn4(B),function(X){V[X]=!0});
Array.prototype.forEach.call(R,function(X){V[X]=!0});
R="";for(var e in V)R+=R.length>0?" "+e:e;_.c_(B,R)}};
_.AJ=function(B,R){B.classList?B.classList.remove(R):_.A8(B,R)&&_.c_(B,Array.prototype.filter.call(Xn4(B),function(V){return V!=R}).join(" "))};
pn_=function(B,R){B.classList?Array.prototype.forEach.call(R,function(V){_.AJ(B,V)}):_.c_(B,Array.prototype.filter.call(Xn4(B),function(V){return!_.gx(R,V)}).join(" "))};var YJG=function(B){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=B.document},Wq_=function(B,R){hQ_(B);
var V=document.createElement("div"),e;(e=R.parentNode)==null||e.insertBefore(V,R);V.tabIndex=0;V.id="fc-focus-trap-pre-div";V=document.createElement("div");var X;(X=R.parentNode)==null||X.insertBefore(V,R.nextSibling);V.tabIndex=0;V.id="fc-focus-trap-post-div";var Y=tr4(B,R),t=tr4(B,R,!0);Y&&t&&(B.focusChangeHandler=function(){var b=B.document.activeElement;if(b)if(_.II(R,b))B.previouslyFocusedElement=b;else if(b===B.document.activeElement)switch(B.previouslyFocusedElement){case Y:t.focus();B.previouslyFocusedElement=
t;break;default:Y.focus(),B.previouslyFocusedElement=Y}},B.document.addEventListener("focus",B.focusChangeHandler,!0),B.document.addEventListener("focusin",B.focusChangeHandler))},hQ_=function(B){B.focusChangeHandler&&(document.removeEventListener("focus",B.focusChangeHandler,!0),document.removeEventListener("focusin",B.focusChangeHandler),B.focusChangeHandler=null);
var R;(R=document.getElementById("fc-focus-trap-pre-div"))==null||R.remove();var V;(V=document.getElementById("fc-focus-trap-post-div"))==null||V.remove()},bdv=function(B,R,V,e,X){V=V===void 0?!0:V;
var Y;X=(Y=X===void 0?null:X)!=null?Y:tr4(B,R,e===void 0?!1:e);X!==null&&(X.focus(),V&&Wq_(B,R))};
YJG.prototype.disableButton=function(B,R){R=R===void 0?null:R;B.disabled=!0;R&&_.s5(B,R)};
var tr4=function(B,R,V){V=V===void 0?!1:V;if(Zk_(R)&&!V)return R;var e=V?[].slice.call(R.children,0).reverse():R.children;e=_.h(e);for(var X=e.next();!X.done;X=e.next())if(X=X.value,Vrb(X)&&(X=tr4(B,X,V)))return X;return Zk_(R)&&V?R:null};var J44=function(B){this.originalBodyOverflow="";this.JSC$7908_domHelper=WH(B)};_.eY(_.k0,_.Hn);_.p=_.k0.prototype;_.p.JSC$7911_id_=0;_.p.disposeInternal=function(){_.k0.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7909_listener_;delete this.handler_};
_.p.start=function(B){this.stop();this.JSC$7911_id_=lK(this.callback_,B!==void 0?B:this.JSC$7909_interval_)};
_.p.stop=function(){this.isActive()&&_.R5.clearTimeout(this.JSC$7911_id_);this.JSC$7911_id_=0};
_.p.fire=function(){this.stop();this.JSC$7911_doAction_()};
_.p.isActive=function(){return this.JSC$7911_id_!=0};
_.p.JSC$7911_doAction_=function(){this.JSC$7911_id_=0;this.JSC$7909_listener_&&this.JSC$7909_listener_.call(this.handler_)};_.oL=function(B){_.Hn.call(this);this.handler_=B;this.JSC$7912_keys_={}};
_.eY(_.oL,_.Hn);var jIv=[];_.oL.prototype.listen=function(B,R,V,e){Array.isArray(R)||(R&&(jIv[0]=R.toString()),R=jIv);for(var X=0;X<R.length;X++){var Y=_.G2(B,R[X],V||this.handleEvent,e||!1,this.handler_||this);if(!Y)break;this.JSC$7912_keys_[Y.key]=Y}return this};
_.oL.prototype.listenOnce=function(B,R,V,e){return U2T(this,B,R,V,e)};
var U2T=function(B,R,V,e,X,Y){if(Array.isArray(V))for(var t=0;t<V.length;t++)U2T(B,R,V[t],e,X,Y);else{R=JJ(R,V,e||B.handleEvent,X,Y||B.handler_||B);if(!R)return B;B.JSC$7912_keys_[R.key]=R}return B};
_.oL.prototype.unlisten=function(B,R,V,e,X){if(Array.isArray(R))for(var Y=0;Y<R.length;Y++)this.unlisten(B,R[Y],V,e,X);else if(B=q84(B,R,V||this.handleEvent,_.Xa(e)?!!e.capture:!!e,X||this.handler_||this))jR(B),delete this.JSC$7912_keys_[B.key];return this};
_.oL.prototype.removeAll=function(){_.M_.forEach(this.JSC$7912_keys_,function(B,R){this.JSC$7912_keys_.hasOwnProperty(R)&&jR(B)},this);
this.JSC$7912_keys_={}};
_.oL.prototype.disposeInternal=function(){_.oL.superClass_.disposeInternal.call(this);this.removeAll()};
_.oL.prototype.handleEvent=function(){throw Error("Sa");};var sn=function(){_.Hn.call(this);this.services_={}};
_.eY(sn,_.Hn);_.p=sn.prototype;_.p.logger=null;_.p.connect=function(B){B&&B()};
_.p.isConnected=function(){return!0};
_.p.registerService=function(B,R,V){this.services_[B]={callback:R,objectPayload:!!V}};
_.p.getService=function(B,R){var V=this.services_[B];return V?V:this.defaultService_?{callback:_.JE(this.defaultService_,B),objectPayload:_.Xa(R)}:null};
var Nz4=function(B,R){if(R&&typeof B==="string")try{return JSON.parse(B)}catch(V){return null}else if(!R&&typeof B!=="string")return(0,_.aB)(B);return B};
sn.prototype.disposeInternal=function(){sn.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 Fd=function(B,R){this.sequence_=[];this.onCancelFunction_=B;this.defaultScope_=R||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
Fd.prototype.cancel=function(B){if(this.fired_)this.result_ instanceof Fd&&this.result_.cancel();else{if(this.parent_){var R=this.parent_;delete this.parent_;B?R.cancel(B):(R.branches_--,R.branches_<=0&&R.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new rK(this))}};
Fd.prototype.continue_=function(B,R){this.blocked_=!1;G$v(this,B,R)};
var G$v=function(B,R,V){B.fired_=!0;B.result_=V;B.hadError_=!R;y45(B)},Hd_=function(B){if(B.fired_){if(!B.silentlyCanceled_)throw new SJ2(B);
B.silentlyCanceled_=!1}};
Fd.prototype.callback=function(B){Hd_(this);G$v(this,!0,B)};
Fd.prototype.errback=function(B){Hd_(this);G$v(this,!1,B)};
var MrT=function(B,R,V){gK(B,R,null,V)};
Fd.prototype.finally=function(B){var R=this;return new Promise(function(V,e){gK(R,function(X){B();V(X)},function(X){B();
e(X)})})};
var gK=function(B,R,V,e){var X=B.fired_;X||(R===V?R=V=Mu(R):(R=Mu(R),V=Mu(V)));B.sequence_.push([R,V,e]);X&&y45(B)};
Fd.prototype.then=function(B,R,V){var e,X,Y=new _.be(function(t,b){X=t;e=b});
gK(this,X,function(t){t instanceof rK?Y.cancel():e(t);return k$G},this);
return Y.then(B,R,V)};
Z$h(Fd);var D22=function(B,R){R instanceof Fd?MrT(B,(0,_.M2)(R.branch,R)):MrT(B,function(){return R})};
Fd.prototype.branch=function(B){var R=new Fd;gK(this,R.callback,R.errback,R);B&&(R.parent_=this,this.branches_++);return R};
Fd.prototype.isError=function(B){return B instanceof Error};
var fvh=function(B){return Fy(B.sequence_,function(R){return typeof R[1]==="function"})},k$G={},y45=function(B){if(B.unhandledErrorId_&&B.fired_&&fvh(B)){var R=B.unhandledErrorId_,V=lvo[R];
V&&(_.R5.clearTimeout(V.JSC$7929_id_),delete lvo[R]);B.unhandledErrorId_=0}B.parent_&&(B.parent_.branches_--,delete B.parent_);R=B.result_;for(var e=V=!1;B.sequence_.length&&!B.blocked_;){var X=B.sequence_.shift(),Y=X[0],t=X[1];X=X[2];if(Y=B.hadError_?t:Y)try{var b=Y.call(X||B.defaultScope_,R);b===k$G&&(b=void 0);b!==void 0&&(B.hadError_=B.hadError_&&(b==R||B.isError(b)),B.result_=R=b);if(mVb(R)||typeof _.R5.Promise==="function"&&R instanceof _.R5.Promise)e=!0,B.blocked_=!0}catch(J){R=J,B.hadError_=
!0,fvh(B)||(V=!0)}}B.result_=R;e&&(b=(0,_.M2)(B.continue_,B,!0),e=(0,_.M2)(B.continue_,B,!1),R instanceof Fd?(gK(R,b,e),R.blocking_=!0):R.then(b,e));V&&(R=new zQb(R),lvo[R.JSC$7929_id_]=R,B.unhandledErrorId_=R.JSC$7929_id_)},SJ2=function(){_.o5.call(this)};
_.eY(SJ2,_.o5);SJ2.prototype.message="Deferred has already fired";SJ2.prototype.name="AlreadyCalledError";var rK=function(){_.o5.call(this)};
_.eY(rK,_.o5);rK.prototype.message="Deferred was canceled";rK.prototype.name="CanceledError";var zQb=function(B){this.JSC$7929_id_=_.R5.setTimeout((0,_.M2)(this.throwError,this),0);this.JSC$7929_error_=B};
zQb.prototype.throwError=function(){delete lvo[this.JSC$7929_id_];throw this.JSC$7929_error_;};
var lvo={};var av2={1:"NativeMessagingTransport"},d2a=["pu","lru","pru","lpu","ppu"],Tz4=function(){for(var B=10,R=wn5,V=R.length,e="";B-- >0;)e+=R.charAt(Math.floor(Math.random()*V));return e},wn5="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var ZG=function(B){_.Hn.call(this);this.JSC$7932_domHelper_=B||WH()};
_.eY(ZG,_.Hn);ZG.prototype.transportType=0;ZG.prototype.getWindow=function(){return this.JSC$7932_domHelper_.getWindow()};
ZG.prototype.getName=function(){return av2[String(this.transportType)]||""};var mt=function(B,R,V,e,X){ZG.call(this,V);this.JSC$7935_channel_=B;this.protocolVersion_=X||2;this.peerHostname_=R||"*";this.JSC$7935_eventHandler_=new _.oL(this);this.maybeAttemptToConnectTimer_=new _.Oq(100,this.getWindow());this.oneSidedHandshake_=!!e;this.setupAckReceived_=new Fd;this.setupAckSent_=new Fd;this.JSC$7935_connected_=new Fd;this.endpointId_=Tz4();this.peerEndpointId_=null;this.oneSidedHandshake_?x2o(this.JSC$7935_channel_)==1?D22(this.JSC$7935_connected_,this.setupAckReceived_):
D22(this.JSC$7935_connected_,this.setupAckSent_):(D22(this.JSC$7935_connected_,this.setupAckReceived_),this.protocolVersion_==2&&D22(this.JSC$7935_connected_,this.setupAckSent_));MrT(this.JSC$7935_connected_,this.notifyConnected_,this);this.JSC$7935_connected_.callback(!0);this.JSC$7935_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.eY(mt,ZG);mt.prototype.peerProtocolVersion_=null;mt.prototype.initialized_=!1;mt.prototype.transportType=1;var Lq4={};mt.prototype.sendTimerId_=0;
var Iva=function(B){var R=B.event_.data;if(typeof R!=="string")return!1;var V=R.indexOf("|"),e=R.indexOf(":");if(V==-1||e==-1)return!1;var X=R.substring(0,V);V=R.substring(V+1,e);R=R.substring(e+1);if(e=$3[X])return e.xpcDeliver(V,R,B.event_.origin),!0;e=v0S(R)[0];for(var Y in $3){var t=$3[Y];if(x2o(t)==1&&!t.isConnected()&&V=="tp"&&(e=="SETUP"||e=="SETUP_NTPV2")&&Kq4(t,B.event_.origin))return delete $3[t.name],t.name=X,$3[X]=t,t.xpcDeliver(V,R),!0}return!1},E0a=function(B){B.protocolVersion_!=2||
B.peerProtocolVersion_!=null&&B.peerProtocolVersion_!=2||B.send("tp","SETUP_NTPV2,"+B.endpointId_);
B.peerProtocolVersion_!=null&&B.peerProtocolVersion_!=1||B.send("tp","SETUP")},QIb=function(B,R){if(B.protocolVersion_!=2||B.peerProtocolVersion_!=null&&B.peerProtocolVersion_!=2||R!=2){if(B.peerProtocolVersion_!=null&&B.peerProtocolVersion_!=1||R!=1)return;
B.send("tp","SETUP_ACK")}else B.send("tp","SETUP_ACK_NTPV2");B.setupAckSent_.fired_||B.setupAckSent_.callback(!0)},qJ5=function(B,R){R>B.peerProtocolVersion_&&(B.peerProtocolVersion_=R);
B.peerProtocolVersion_==1&&(B.setupAckSent_.fired_||B.oneSidedHandshake_||B.setupAckSent_.callback(!0),B.peerEndpointId_=null)};
_.p=mt.prototype;_.p.connect=function(){var B=this.getWindow(),R=_.Y5(B),V=Lq4[R];typeof V!=="number"&&(V=0);V==0&&_.G2(B.postMessage?B:B.document,"message",Iva,!1,mt);Lq4[R]=V+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.p.maybeAttemptToConnect_=function(){var B=x2o(this.JSC$7935_channel_)==0;this.oneSidedHandshake_&&B||this.JSC$7935_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),E0a(this))};
_.p.send=function(B,R){var V=this.JSC$7935_channel_.peerWindowObject_;V&&(this.send=function(e,X){var Y=this,t=this.JSC$7935_channel_.name;this.sendTimerId_=lK(function(){Y.sendTimerId_=0;try{var b=V.postMessage?V:V.document;b.postMessage&&b.postMessage(t+"|"+e+":"+X,Y.peerHostname_)}catch(J){}},0)},this.send(B,R))};
_.p.notifyConnected_=function(){var B=this.JSC$7935_channel_,R=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;B.isConnected()||B.connectionDelay_&&B.connectionDelay_.isActive()||(B.state_=2,_.Cx(B.connectionDelay_),R!==void 0?(B.connectionDelay_=new _.k0(B.connectCb_,R),B.connectionDelay_.start()):(B.connectionDelay_=null,B.connectCb_()))};
_.p.disposeInternal=function(){if(this.initialized_){var B=this.getWindow(),R=_.Y5(B),V=Lq4[R];Lq4[R]=V-1;V==1&&_.SI(B.postMessage?B:B.document,"message",Iva,!1,mt)}this.sendTimerId_&&(_.R5.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Cx(this.JSC$7935_eventHandler_);delete this.JSC$7935_eventHandler_;_.Cx(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7935_connected_.cancel();delete this.JSC$7935_connected_;delete this.send;mt.superClass_.disposeInternal.call(this)};
var v0S=function(B){B=B.split(",");B[1]=B[1]||null;return B};_.CT=function(B){if(B.getValues&&typeof B.getValues=="function")return B.getValues();if(typeof Map!=="undefined"&&B instanceof Map||typeof Set!=="undefined"&&B instanceof Set)return Array.from(B.values());if(typeof B==="string")return B.split("");if(_.R4(B)){for(var R=[],V=B.length,e=0;e<V;e++)R.push(B[e]);return R}return _.M_.getValues(B)};
_.c4J=function(B){if(B.getKeys&&typeof B.getKeys=="function")return B.getKeys();if(!B.getValues||typeof B.getValues!="function"){if(typeof Map!=="undefined"&&B instanceof Map)return Array.from(B.keys());if(!(typeof Set!=="undefined"&&B instanceof Set)){if(_.R4(B)||typeof B==="string"){var R=[];B=B.length;for(var V=0;V<B;V++)R.push(V);return R}return _.M_.getKeys(B)}}};
_.A4_=function(B,R,V){if(B.forEach&&typeof B.forEach=="function")B.forEach(R,V);else if(_.R4(B)||typeof B==="string")Array.prototype.forEach.call(B,R,V);else for(var e=_.c4J(B),X=_.CT(B),Y=X.length,t=0;t<Y;t++)R.call(V,X[t],e&&e[t],B)};var daZ,Rj,ep,m2T,idR,Fql,sIl,Zd4,r45;
_.FO=function(B,R){this.JSC$7940_domain_=this.userInfo_=this.scheme_="";this.JSC$7940_port_=null;this.fragment_=this.JSC$7940_path_="";this.JSC$7940_ignoreCase_=!1;var V;B instanceof _.FO?(this.JSC$7940_ignoreCase_=R!==void 0?R:B.JSC$7940_ignoreCase_,_.P_(this,B.scheme_),this.userInfo_=B.userInfo_,_.nT(this,B.JSC$7940_domain_),_.uK(this,B.JSC$7940_port_),_.On(this,B.getPath()),_.oj(this,B.JSC$7940_queryData_.clone()),_.BT(this,B.fragment_)):B&&(V=_.Zk(String(B)))?(this.JSC$7940_ignoreCase_=!!R,_.P_(this,
V[1]||"",!0),this.userInfo_=Rj(V[2]||""),_.nT(this,V[3]||"",!0),_.uK(this,V[4]),_.On(this,V[5]||"",!0),_.oj(this,V[6]||"",!0),_.BT(this,V[7]||"",!0)):(this.JSC$7940_ignoreCase_=!!R,this.JSC$7940_queryData_=new _.VZ(null,this.JSC$7940_ignoreCase_))};
_.FO.prototype.toString=function(){var B=[],R=this.scheme_;R&&B.push(ep(R,idR,!0),":");var V=this.JSC$7940_domain_;if(V||R=="file")B.push("//"),(R=this.userInfo_)&&B.push(ep(R,idR,!0),"@"),B.push(_.AS(V).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),V=this.JSC$7940_port_,V!=null&&B.push(":",String(V));if(V=this.getPath())this.JSC$7940_domain_&&V.charAt(0)!="/"&&B.push("/"),B.push(ep(V,V.charAt(0)=="/"?sIl:Fql,!0));(V=this.JSC$7940_queryData_.toString())&&B.push("?",V);(V=this.fragment_)&&B.push("#",ep(V,
r45));return B.join("")};
_.FO.prototype.resolve=function(B){var R=this.clone(),V=!!B.scheme_;V?_.P_(R,B.scheme_):V=!!B.userInfo_;V?R.userInfo_=B.userInfo_:V=!!B.JSC$7940_domain_;V?_.nT(R,B.JSC$7940_domain_):V=B.JSC$7940_port_!=null;var e=B.getPath();if(V)_.uK(R,B.JSC$7940_port_);else if(V=!!B.JSC$7940_path_){if(e.charAt(0)!="/")if(this.JSC$7940_domain_&&!this.JSC$7940_path_)e="/"+e;else{var X=R.getPath().lastIndexOf("/");X!=-1&&(e=R.getPath().slice(0,X+1)+e)}X=e;if(X==".."||X==".")e="";else if(_.bo(X,"./")||_.bo(X,"/.")){e=
_.pZ(X,"/");X=X.split("/");for(var Y=[],t=0;t<X.length;){var b=X[t++];b=="."?e&&t==X.length&&Y.push(""):b==".."?((Y.length>1||Y.length==1&&Y[0]!="")&&Y.pop(),e&&t==X.length&&Y.push("")):(Y.push(b),e=!0)}e=Y.join("/")}else e=X}V?_.On(R,e):V=B.JSC$7940_queryData_.toString()!=="";V?_.oj(R,B.JSC$7940_queryData_.clone()):V=!!B.fragment_;V&&_.BT(R,B.fragment_);return R};
_.FO.prototype.clone=function(){return new _.FO(this)};
_.P_=function(B,R,V){B.scheme_=V?Rj(R,!0):R;B.scheme_&&(B.scheme_=B.scheme_.replace(/:$/,""));return B};
_.nT=function(B,R,V){B.JSC$7940_domain_=V?Rj(R,!0):R;return B};
_.uK=function(B,R){if(R){R=Number(R);if(isNaN(R)||R<0)throw Error("Ta`"+R);B.JSC$7940_port_=R}else B.JSC$7940_port_=null;return B};
_.FO.prototype.getPath=function(){return this.JSC$7940_path_};
_.On=function(B,R,V){B.JSC$7940_path_=V?Rj(R,!0):R;return B};
_.oj=function(B,R,V){R instanceof _.VZ?(B.JSC$7940_queryData_=R,g0a(B.JSC$7940_queryData_,B.JSC$7940_ignoreCase_)):(V||(R=ep(R,Zd4)),B.JSC$7940_queryData_=new _.VZ(R,B.JSC$7940_ignoreCase_));return B};
_.A4=function(B,R,V){B.JSC$7940_queryData_.set(R,V);return B};
_.cn=function(B,R){return B.JSC$7940_queryData_.get(R)};
_.BT=function(B,R,V){B.fragment_=V?Rj(R):R;return B};
_.X8=function(B){_.A4(B,"zx",QI());return B};
_.q2=function(B,R){return B instanceof _.FO?B.clone():new _.FO(B,R)};
daZ=function(B,R){B instanceof _.FO||(B=_.q2(B));R instanceof _.FO||(R=_.q2(R));return B.resolve(R)};
Rj=function(B,R){return B?R?decodeURI(B.replace(/%25/g,"%2525")):decodeURIComponent(B):""};
ep=function(B,R,V){return typeof B==="string"?(B=encodeURI(B).replace(R,m2T),V&&(B=B.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),B):null};
m2T=function(B){B=B.charCodeAt(0);return"%"+(B>>4&15).toString(16)+(B&15).toString(16)};
idR=/[#\/\?@]/g;Fql=/[#\?:]/g;sIl=/[#\?]/g;Zd4=/[#\?@]/g;r45=/#/g;_.VZ=function(B,R){this.count_=this.keyMap_=null;this.encodedQuery_=B||null;this.JSC$7941_ignoreCase_=!!R};
_.pa=function(B){B.keyMap_||(B.keyMap_=new Map,B.count_=0,B.encodedQuery_&&cra(B.encodedQuery_,function(R,V){B.add(nQ(R),V)}))};
_.p=_.VZ.prototype;_.p.getCount=function(){_.pa(this);return this.count_};
_.p.add=function(B,R){_.pa(this);this.encodedQuery_=null;B=Y$(this,B);var V=this.keyMap_.get(B);V||this.keyMap_.set(B,V=[]);V.push(R);this.count_+=1;return this};
_.p.remove=function(B){_.pa(this);B=Y$(this,B);return this.keyMap_.has(B)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(B).length,this.keyMap_.delete(B)):!1};
_.p.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.p.isEmpty=function(){_.pa(this);return this.count_==0};
_.p.containsKey=function(B){_.pa(this);B=Y$(this,B);return this.keyMap_.has(B)};
_.p.containsValue=function(B){var R=this.getValues();return _.gx(R,B)};
_.p.forEach=function(B,R){_.pa(this);this.keyMap_.forEach(function(V,e){V.forEach(function(X){B.call(R,X,e,this)},this)},this)};
_.p.getKeys=function(){_.pa(this);for(var B=Array.from(this.keyMap_.values()),R=Array.from(this.keyMap_.keys()),V=[],e=0;e<R.length;e++)for(var X=B[e],Y=0;Y<X.length;Y++)V.push(R[e]);return V};
_.p.getValues=function(B){_.pa(this);var R=[];if(typeof B==="string")this.containsKey(B)&&(R=R.concat(this.keyMap_.get(Y$(this,B))));else{B=Array.from(this.keyMap_.values());for(var V=0;V<B.length;V++)R=R.concat(B[V])}return R};
_.p.set=function(B,R){_.pa(this);this.encodedQuery_=null;B=Y$(this,B);this.containsKey(B)&&(this.count_-=this.keyMap_.get(B).length);this.keyMap_.set(B,[R]);this.count_+=1;return this};
_.p.get=function(B,R){if(!B)return R;B=this.getValues(B);return B.length>0?String(B[0]):R};
_.$2h=function(B,R,V){B.remove(R);V.length>0&&(B.encodedQuery_=null,B.keyMap_.set(Y$(B,R),_.OS(V)),B.count_+=V.length)};
_.VZ.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var B=[],R=Array.from(this.keyMap_.keys()),V=0;V<R.length;V++){var e=R[V],X=_.AS(e);e=this.getValues(e);for(var Y=0;Y<e.length;Y++){var t=X;e[Y]!==""&&(t+="="+_.AS(e[Y]));B.push(t)}}return this.encodedQuery_=B.join("&")};
_.VZ.prototype.clone=function(){var B=new _.VZ;B.encodedQuery_=this.encodedQuery_;this.keyMap_&&(B.keyMap_=new Map(this.keyMap_),B.count_=this.count_);return B};
var Y$=function(B,R){R=String(R);B.JSC$7941_ignoreCase_&&(R=R.toLowerCase());return R},g0a=function(B,R){R&&!B.JSC$7941_ignoreCase_&&(_.pa(B),B.encodedQuery_=null,B.keyMap_.forEach(function(V,e){var X=e.toLowerCase();
e!=X&&(this.remove(e),_.$2h(this,X,V))},B));
B.JSC$7941_ignoreCase_=R};
_.VZ.prototype.extend=function(B){for(var R=0;R<arguments.length;R++)_.A4_(arguments[R],function(V,e){this.add(e,V)},this)};var hH=function(B,R){sn.call(this);for(var V=0,e;e=d2a[V];V++)if(e in B&&!/^https?:\/\//.test(B[e]))throw Error("Va`"+B[e]+"`"+e);this.cfg_=B;this.name=this.cfg_.cn||Tz4();this.JSC$7936_domHelper_=R||WH();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.oL(this);B.lpu=B.lpu||QN4(this.JSC$7936_domHelper_.getWindow().location.href)+"/robots.txt";B.ppu=B.ppu||QN4(B.pu||"")+"/robots.txt";$3[this.name]=this;q84(window,"unload",Cy2)||JJ(window,"unload",Cy2)};
_.eY(hH,sn);var Py4=RegExp("^%*tp$"),n0_=RegExp("^%+tp$");_.p=hH.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(B){this.connectCb_=B||_.ys;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?MrT(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.p.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7936_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var B=this.iframeElement_.contentWindow;B||(B=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=B}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7936_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new mt(this,this.cfg_.ph,this.JSC$7936_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.p.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Cx(this.transport_);this.connectCb_=this.transport_=null;_.Cx(this.connectionDelay_);this.connectionDelay_=null};
_.p.send=function(B,R){if(this.isConnected()){try{var V=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(X){V=!1}if(V){_.Xa(R)&&(R=(0,_.aB)(R));V=this.transport_;var e=V.send;Py4.test(B)&&(B="%"+B);B=B.replace(/[%:|]/g,encodeURIComponent);e.call(V,B,R)}else this.close()}};
_.p.xpcDeliver=function(B,R,V){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.M2)(this.xpcDeliver,this,B,R,V));else if(Kq4(this,V)&&!this.isDisposed()&&this.state_!=3)if(B&&B!="tp")this.isConnected()&&(B=B.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),B=n0_.test(B)?B.substring(1):B,B=this.getService(B,R))&&(R=Nz4(R,B.objectPayload),R!=null&&B.callback(R));else switch(B=this.transport_,V=v0S(R),R=V[1],V[0]){case "SETUP_ACK":qJ5(B,1);B.setupAckReceived_.fired_||B.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":B.protocolVersion_==2&&(qJ5(B,2),B.setupAckReceived_.fired_||B.setupAckReceived_.callback(!0));break;case "SETUP":qJ5(B,1);QIb(B,1);break;case "SETUP_NTPV2":B.protocolVersion_==2&&(V=B.peerProtocolVersion_,qJ5(B,2),QIb(B,2),V!=1&&B.peerEndpointId_==null||B.peerEndpointId_==R||E0a(B),B.peerEndpointId_=R)}};
var x2o=function(B){var R=B.cfg_.role;return typeof R==="number"?R:window.parent==B.peerWindowObject_?1:0},Kq4=function(B,R){var V=B.cfg_.ph;
return _.Wd(R==null?"":String(R))||_.Wd(V==null?"":String(V))||R==B.cfg_.ph};
hH.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete $3[this.name];_.Cx(this.peerLoadHandler_);delete this.peerLoadHandler_;hH.superClass_.disposeInternal.call(this)};
var Cy2=function(){for(var B in $3)_.Cx($3[B])},$3={};var OdS=function(B,R){this.JSC$7950_win=B;this.allowAdsHttpEndpoint=R;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7950_domHelper=WH(B);this.scrollManager=new J44(B);this.accessibilityManager=new YJG(B);unJ(this)},unJ=function(B){var R=function(){B.allowAdsPopup&&B.allowAdsPopup.style.setProperty("display","none","important");
B.wallElement.style.setProperty("display","","important");hQ_(B.accessibilityManager);bdv(B.accessibilityManager,B.wallElement.querySelector(".fc-dialog-container"),!1,!1,B.wallElement.querySelector(".fc-button-whitelist"));var X=B.scrollManager;X.JSC$7908_domHelper.JSC$7233_document_.body.style.overflow=X.originalBodyOverflow};
B.allowAdsPopup=B.JSC$7950_domHelper.JSC$7235_createDom("DIV",{"class":"fc-whitelist-root"});B.allowAdsPopup.style.setProperty("display","none","important");B.JSC$7950_domHelper.appendChild(B.JSC$7950_domHelper.JSC$7233_document_.body,B.allowAdsPopup);var V=B.JSC$7950_domHelper.JSC$7235_createDom("DIV",{"class":"fc-dialog-overlay"});B.JSC$7950_domHelper.appendChild(B.allowAdsPopup,V);var e=B.JSC$7950_domHelper.JSC$7235_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:R});B.JSC$7950_domHelper.appendChild(B.allowAdsPopup,
e);V=B.JSC$7950_domHelper.JSC$7235_createDom("IFRAME");V.className="fc-whitelist-dialog";V.frameBorder="0";V.id="fc-whitelist-iframe";V.tabIndex="0";_.wc(V,B.allowAdsHttpEndpoint);B.JSC$7950_domHelper.appendChild(e,V);e={};e.pu=_.hR(B.allowAdsHttpEndpoint).toString();e.tp=1;e.cn="fc-whitelist-channel";e.ifrid=V.id;e.osh=!0;B.allowAdsCrossPageChannel=new hH(e);B.allowAdsCrossPageChannel.registerService("close",R);B.allowAdsCrossPageChannel.registerService("refresh",function(){B.JSC$7950_win.location.reload()});
B.allowAdsCrossPageChannel.registerService("resize",function(X){if(X){var Y=B.allowAdsPopup.querySelector(".fc-whitelist-dialog");X.width&&Y.style.setProperty("width",X.width,"important");X.height&&Y.style.setProperty("height",X.height,"important")}},!0);
B.allowAdsCrossPageChannel.connect()};
OdS.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7950_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var tH=window,b0=document,oRR=tH.location,BAJ=function(){},RTa=/\[native code\]/,JH=function(B,R,V){return B[R]=B[R]||V},VAb=function(B){B=B.sort();
for(var R=[],V=void 0,e=0;e<B.length;e++){var X=B[e];X!=V&&R.push(X);V=X}return R},jp=function(){var B;
if((B=Object.create)&&RTa.test(B))B=B(null);else{B={};for(var R in B)B[R]=void 0}return B},Ue=JH(tH,"gapi",{});var NE={};NE=JH(tH,"___jsl",jp());JH(NE,"I",0);JH(NE,"hel",10);var eTa=function(){var B=oRR.href;if(NE.dpo)var R=NE.h;else{R=NE.h;var V=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),e=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(B=B&&(V.exec(B)||e.exec(B)))try{R=decodeURIComponent(B[2])}catch(X){}}return R},XUb=function(B){var R=JH(NE,"PQ",[]);
NE.PQ=[];var V=R.length;if(V===0)B();else for(var e=0,X=function(){++e===V&&B()},Y=0;Y<V;Y++)R[Y](X)},pUv=function(B){return JH(JH(NE,"H",jp()),B,jp())};var G3=function(B){this.JSC$7952_obj_=B};
G3.prototype.value=function(){return this.JSC$7952_obj_};
G3.prototype.getWidth=function(){return this.JSC$7952_obj_.width};
G3.prototype.getHeight=function(){return this.JSC$7952_obj_.height};
G3.prototype.getStyle=function(){return this.JSC$7952_obj_.style};var YZS=function(B){this.JSC$7955_obj_=B||{}};
_.p=YZS.prototype;_.p.value=function(){return this.JSC$7955_obj_};
_.p.setUrl=function(B){this.JSC$7955_obj_.url=B;return this};
_.p.getUrl=function(){return this.JSC$7955_obj_.url};
_.p.getStyle=function(){return this.JSC$7955_obj_.style};
_.p.setId=function(B){this.JSC$7955_obj_.id=B;return this};
_.p.getId=function(){return this.JSC$7955_obj_.id};
_.p.getContext=function(){return this.JSC$7955_obj_.context};
var hTb=function(B){B.JSC$7955_obj_.attributes=B.JSC$7955_obj_.attributes||{};return new G3(B.JSC$7955_obj_.attributes)};var tA4=function(){YZS.apply(this,arguments)};
_.l(tA4,YZS);var Woa=JH(NE,"perf",jp());JH(Woa,"g",jp());var bW2=JH(Woa,"i",jp());JH(Woa,"r",[]);jp();jp();var jKS=function(B,R,V){R&&R.length>0&&(R=JIG(R),V&&V.length>0&&(R+="___"+JIG(V)),R.length>28&&(R=R.substr(0,28)+(R.length-28)),V=R,R=JH(bW2,"_p",jp()),JH(R,V,jp())[B]=(new Date).getTime(),R=Woa.r,typeof R==="function"?R(B,"_p",V):R.push([B,"_p",V]))},JIG=function(B){return B.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var UWa=jp(),NA5=[],yZ=function(B){throw Error("Ya`"+B);};
NA5.push(["jsl",function(B){for(var R in B)if(Object.prototype.hasOwnProperty.call(B,R)){var V=B[R];typeof V=="object"?NE[R]=JH(NE,R,[]).concat(V):JH(NE,R,V)}if(R=B.u)B=JH(NE,"us",[]),B.push(R),(R=/^https:(.*)$/.exec(R))&&B.push("http:"+R[1])}]);
var GaJ=/^(\/[a-zA-Z0-9_\-]+)+$/,yI4=[/\/amp\//,/\/amp$/,/^\/amp$/],SZo=/^[a-zA-Z0-9\-_\.,!]+$/,HWR=/^gapi\.loaded_[0-9]+$/,MAl=/^[a-zA-Z0-9,._-]+$/,lmJ=function(B,R,V,e,X){var Y=B.split(";"),t=Y.shift(),b=UWa[t],J=null;b?J=b(Y,R,V,e):yZ("no hint processor for: "+t);J||yZ("failed to generate load url");R=J;V=R.match(kah);(e=R.match(DWG))&&e.length===1&&fm_.test(R)&&V&&V.length===1||yZ("failed sanity: "+B);try{B="?";if(X&&X.length>0){th(X);var G=X.join(",");J=J+"?le="+G;B="&"}if(NE.rol){var y=NE.ol;
y&&y.length&&(J=""+J+B+"ol="+y.length)}}catch(S){}return J},dWl=function(B,R,V,e){B=zTv(B);
HWR.test(V)||yZ("invalid_callback");R=am4(R);e=e&&e.length?am4(e):null;var X=function(Y){return encodeURIComponent(Y).replace(/%2C/g,",")};
return[encodeURIComponent(B.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",X(B.version),"/m=",X(R),e?"/exm="+X(e):"","/rt=j/sv=1/d=1/ed=1",B.activeMods?"/am="+X(B.activeMods):"",B.resourceSig?"/rs="+X(B.resourceSig):"",B.zcms?"/t="+X(B.zcms):"","/cb=",X(V)].join("")},zTv=function(B){B.charAt(0)!=="/"&&yZ("relative path");
for(var R=B.substring(1).split("/"),V=[];R.length;){B=R.shift();if(!B.length||B.indexOf(".")==0)yZ("empty/relative directory");else if(B.indexOf("=")>0){R.unshift(B);break}V.push(B)}B={};for(var e=0,X=R.length;e<X;++e){var Y=R[e].split("="),t=decodeURIComponent(Y[0]),b=decodeURIComponent(Y[1]);Y.length==2&&t&&b&&(B[t]=B[t]||b)}R="/"+V.join("/");GaJ.test(R)||yZ("invalid_prefix");V=0;for(e=yI4.length;V<e;++V)yI4[V].test(R)&&yZ("invalid_prefix");V=wUl(B,"k",!0);e=wUl(B,"am");X=wUl(B,"rs");B=wUl(B,"t");
return{pathPrefix:R,version:V,activeMods:e,resourceSig:X,zcms:B}},am4=function(B){for(var R=[],V=0,e=B.length;V<e;++V){var X=B[V].replace(/\./g,"_").replace(/-/g,"_");
MAl.test(X)&&R.push(X)}return R.join(",")},wUl=function(B,R,V){B=B[R];
!B&&V&&yZ("missing: "+R);if(B){if(SZo.test(B))return B;yZ("invalid: "+R)}return null},fm_=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,DWG=/\/cb=/g,kah=/\/\//g;
UWa.m=function(B,R,V,e){(B=B[0])||yZ("missing_hint");return"https://apis.google.com"+dWl(B,R,V,e)};
var TAS=decodeURI("%73cript"),xWT=/^[-+_0-9\/A-Za-z]+={0,2}$/,Lob=function(B,R){for(var V=[],e=0;e<B.length;++e){var X=B[e],Y;if(Y=X){a:{for(Y=0;Y<R.length;Y++)if(R[Y]===X)break a;Y=-1}Y=Y<0}Y&&V.push(X)}return V},vRo=function(){var B=NE.nonce;
return B!==void 0?B&&B===String(B)&&B.match(xWT)?B:NE.nonce=null:b0.querySelector?(B=b0.querySelector("script[nonce]"))?(B=B.nonce||B.getAttribute("nonce")||"",B&&B===String(B)&&B.match(xWT)?NE.nonce=B:NE.nonce=null):null:null},ERb=function(B){if(b0.readyState!="loading")KoJ(B);
else{var R=vRo(),V="";R!==null&&(V=' nonce="'+R+'"');B="<"+TAS+' src="'+encodeURI(B)+'"'+V+"></"+TAS+">";b0.write(ImT?ImT.createHTML(B):B)}},KoJ=function(B){var R=b0.createElement(TAS);
R.setAttribute("src",ImT?ImT.createScriptURL(B):B);B=vRo();B!==null&&R.setAttribute("nonce",B);R.async="true";(B=b0.getElementsByTagName(TAS)[0])?B.parentNode.insertBefore(R,B):(b0.head||b0.body||b0.documentElement).appendChild(R)},qZR=function(B,R,V){QK_(function(){var e=R===eTa()?JH(Ue,"_",jp()):jp();
e=JH(pUv(R),"_",e);B(e)},V)},DEo=function(B,R){var V=R||{};
typeof R=="function"&&(V={},V.callback=R);var e=(R=V)&&R._c;if(e)for(var X=0;X<NA5.length;X++){var Y=NA5[X][0],t=NA5[X][1];t&&Object.prototype.hasOwnProperty.call(e,Y)&&t(e[Y],B,R)}R=[];B?R=B.split(":"):V.features&&(R=V.features);if(!(B=V.h)&&(B=eTa(),!B))throw Error("Za");cIv(R||[],V,B)},cIv=function(B,R,V){B=VAb(B)||[];
var e=R.callback,X=R.config,Y=R.timeout,t=R.ontimeout,b=R.onerror,J=void 0;typeof b=="function"&&(J=b);var G=null,y=!1;if(Y&&!t||!Y&&t)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";b=JH(pUv(V),"r",[]).sort();var S=JH(pUv(V),"L",[]).sort(),M=NE.le||[],f=[].concat(b),z=function(m,g){if(y)return 0;tH.clearTimeout(G);S.push.apply(S,T);var Vu=((Ue||{}).config||{}).update;Vu?Vu(X):X&&JH(NE,"cu",[]).push(X);if(g){jKS("me0",m,f);try{qZR(g,V,J)}finally{jKS("me1",m,f)}}return 1};
Y>0&&(G=tH.setTimeout(function(){y=!0;t()},Y));
var T=Lob(B,S);if(T.length){T=Lob(B,b);var L=JH(NE,"CP",[]),Q=L.length;L[Q]=function(m){if(!m)return 0;jKS("ml1",T,f);var g=function(n){L[Q]=null;z(T,m)&&XUb(function(){e&&e();n()})},Vu=function(){var n=L[Q+1];
n&&n()};
Q>0&&L[Q-1]?L[Q]=function(){g(Vu)}:g(Vu)};
if(T.length){var q="loaded_"+NE.I++;Ue[q]=function(m){L[Q](m);Ue[q]=null};
B=lmJ(V,T,"gapi."+q,b,M);b.push.apply(b,T);jKS("ml0",T,f);R.sync||tH.___gapisync?ERb(B):KoJ(B)}else L[Q](BAJ)}else z(T)&&e&&e()},AIl;
var iWb=null,sKh=_.R5.trustedTypes;if(sKh&&sKh.createPolicy){try{iWb=sKh.createPolicy("goog#gapi",{createHTML:pYd,createScript:pYd,createScriptURL:pYd})}catch(B){_.R5.console&&_.R5.console.error(B.message)}AIl=iWb}else AIl=iWb;var ImT=AIl,QK_=function(B,R){if(NE.hee&&NE.hel>0)try{return B()}catch(V){R&&R(V),NE.hel--,DEo("debug_error",function(){try{window.___jsl.hefn(V)}catch(e){throw V;}})}else try{return B()}catch(V){throw R&&R(V),V;
}},Fo_=Ue.load;
Fo_&&JH(NE,"ol",[]).push(Fo_);Ue.load=function(B,R){return QK_(function(){return DEo(B,R)})};var pE5;var rIS=function(B,R){this.serviceId_=B;this.moduleId_=R||null};
rIS.prototype.toString=function(){return this.serviceId_};
rIS.prototype.getModuleId=function(){return this.moduleId_};var Xwq=new rIS("MpJwZc","MpJwZc");var Yqu=new _.jI("a"),pw5=function(B,R,V){_.Un.call(this,B,R);this.node=R;this.kind=V};
_.l(pw5,_.Un);var gRG=function(){this.JSC$7968_keys_={};this.urlPrefix_="";this.JSC$7968_queryData_={}};
gRG.prototype.toString=function(){var B=this.urlPrefix_+ZWb(this),R=_.bN(this.JSC$7968_queryData_),V="";R!=""&&(V="?"+R);return B+V};
var mWv=function(B){B=Sp(B,"md");return!!B&&B!=="0"},ZWb=function(B){var R=[],V=(0,_.M2)(function(e){this.JSC$7968_keys_[e]!==void 0&&R.push(e+"="+this.JSC$7968_keys_[e])},B);
mWv(B)?(V("md"),V("k"),V("ck"),V("am"),V("rs"),V("gssmodulesetproto"),V("slk"),V("dti")):(V("sdch"),V("k"),V("ck"),V("am"),V("rt"),"d"in B.JSC$7968_keys_||HT(B,"d","0"),V("d"),V("exm"),V("excm"),(B.JSC$7968_keys_.excm||B.JSC$7968_keys_.exm)&&R.push("ed=1"),V("im"),V("dg"),V("sm"),Sp(B,"br")!="1"&&Sp(B,"br")!="0"||V("br"),V("br-d"),Sp(B,"rb")=="1"&&V("rb"),Sp(B,"zs")!=="0"&&V("zs"),$WS(B)!==""&&V("wt"),V("gssmodulesetproto"),V("ujg"),V("sp"),V("rs"),V("cb"),V("ee"),V("slk"),V("dti"),V("m"));return R.join("/")},
Sp=function(B,R){return B.JSC$7968_keys_[R]?B.JSC$7968_keys_[R]:null},HT=function(B,R,V){V?B.JSC$7968_keys_[R]=V:delete B.JSC$7968_keys_[R]},CJh=function(B,R){B.urlPrefix_=R},PJl=function(B,R){R&&R.length>0?(R.sort(),HT(B,"exm",R.join(","))):HT(B,"exm",null)},nRR=function(B,R){R&&R.length>0?(R.sort(),HT(B,"excm",R.join(","))):HT(B,"excm",null)},uBh=function(B){return(B=Sp(B,"m"))?B.split(","):[]},$WS=function(B){switch(Sp(B,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},OWR=function(B,R){var V=Object.keys(R).filter(function(e){return!!Object.keys(R[e]).length}).map(function(e){var X=Object.keys(R[e]);
X.length>1&&X.sort();return e+":"+X.join(",")});
V.sort();HT(B,"ee",V.join(";"))},njK=function(B){var R=Sp(B,"ee");
if(!R)return{};B={};R=_.h(R.split(";"));for(var V=R.next();!V.done;V=R.next()){var e=_.h(V.value.split(":"));V=e.next().value;e=e.next().value;B[V]={};e=_.h(e.split(","));for(var X=e.next();!X.done;X=e.next())B[V][X.value]=!0}return B},ojo=function(B){delete B.JSC$7968_keys_.m;
delete B.JSC$7968_keys_.exm;delete B.JSC$7968_keys_.ed};
gRG.prototype.clone=function(){if(a8d){var B=new gRG;B.JSC$7968_keys_=Object.assign({},this.JSC$7968_keys_);B.urlPrefix_=this.urlPrefix_;B.JSC$7968_queryData_=Object.assign({},this.JSC$7968_queryData_);return B}return uy(this.toString())};
var uy=function(B,R){R=R===void 0?!0:R;var V=Bg4(B),e=new gRG,X=_.Zk(V)[5];_.M_.forEach(R7J,function(t){var b=X.match("/"+t+"=([^/]+)");b&&HT(e,t,b[1])});
var Y="";Y=B.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";CJh(e,B.substr(0,B.indexOf(Y)+Y.length));if(!R)return e;(B=_.Zk(V)[6]||null)&&cra(B,function(t,b){e.JSC$7968_queryData_[t]=b});
return e},$Nu=function(B){B=_.tu(Bg4(B));
return B===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(B)?/\/k=/.test(B):!1},Bg4=function(B){return B.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?B.substr(65):B},R7J={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"},VvR=RegExp("^loaded_(g|h)?[_\\d]+$");_.ME=function(B){this.JSC$7980_id_=B;this.opts={}};
_.ME.prototype.JSC$7982_setLabel=function(B){this.label_=B||void 0;return this};
_.ME.prototype.addUploadMetadata=function(B,R){var V=this.opts.data||{};V[B]=R;this.opts.data=V;return this};
var e7G=function(B){var R=_.M_.filter(B.opts,function(V){return V!==null});
R=_.M_.isEmpty(R)?null:R;B=[B.JSC$7980_id_,B.label_,R];R=SSp(B);return B=B.slice(0,R+1)};
_.ME.prototype.toString=function(){var B=e7G(this);return"("+_.DO(B,function(R){return JSON.stringify(R)}).join(",")+")"};
_.ME.prototype.getId=function(){return this.JSC$7980_id_};
_.ME.prototype.getOptions=function(){return _.M_.clone(this.opts)};var k$=function(){_.ME.call(this,"image-search")};
_.l(k$,_.ME);k$.prototype.setSize=function(B){this.opts.imgsz=B;return this};
k$.prototype.JSC$7982_setLabel=function(B){_.ME.prototype.JSC$7982_setLabel.call(this,B);return this};
k$.prototype.addUploadMetadata=function(B,R){_.ME.prototype.addUploadMetadata.call(this,B,R);return this};var D$=function(){_.ME.call(this,"maps")};
_.l(D$,_.ME);D$.prototype.setZoom=function(B){this.opts.zoom=B;return this};
D$.prototype.JSC$7982_setLabel=function(B){_.ME.prototype.JSC$7982_setLabel.call(this,B);return this};
D$.prototype.addUploadMetadata=function(B,R){_.ME.prototype.addUploadMetadata.call(this,B,R);return this};_.fa=function(){_.ME.call(this,"photos")};
_.l(_.fa,_.ME);_.fa.prototype.JSC$7982_setLabel=function(B){_.ME.prototype.JSC$7982_setLabel.call(this,B);return this};
_.fa.prototype.addUploadMetadata=function(B,R){_.ME.prototype.addUploadMetadata.call(this,B,R);return this};var l0=function(){_.ME.call(this,"url")};
_.l(l0,_.ME);var XEG=function(){var B=new l0;B.opts.type="video";B.opts.site="youtube.com";return B};
l0.prototype.JSC$7982_setLabel=function(B){_.ME.prototype.JSC$7982_setLabel.call(this,B);return this};
l0.prototype.addUploadMetadata=function(B,R){_.ME.prototype.addUploadMetadata.call(this,B,R);return this};var z3=function(){_.ME.call(this,"video-search")};
_.l(z3,_.ME);var pE4=function(){var B=new z3;B.opts.site="youtube.com";return B};
z3.prototype.JSC$7982_setLabel=function(B){_.ME.prototype.JSC$7982_setLabel.call(this,B);return this};
z3.prototype.addUploadMetadata=function(B,R){_.ME.prototype.addUploadMetadata.call(this,B,R);return this};var YzT=function(){_.ME.call(this,"web")};
_.l(YzT,_.ME);YzT.prototype.JSC$7982_setLabel=function(B){_.ME.prototype.JSC$7982_setLabel.call(this,B);return this};
YzT.prototype.addUploadMetadata=function(B,R){_.ME.prototype.addUploadMetadata.call(this,B,R);return this};var aj=function(){this.items_=[];this.opts={}},h75=function(B){switch(B){case "image-search":return new k$;
case "maps":return new D$;case "photos":return new _.fa;case "url":return new l0;case "video-search":return new z3;case "web":return new YzT}return new _.ME(B)};
aj.prototype.addView=function(B){this.items_.push(typeof B==="string"?h75(B):B);return this};
var tvh=function(B){return"("+_.DO(B.items_,function(R){return R.toString()}).join(",")+")"};
aj.prototype.toString=function(){return tvh(this)};
aj.prototype.getViews=function(B,R){R=R===void 0?[]:R;for(var V=this.items_,e=0;e<V.length;e++){var X=V[e];X instanceof aj?X.getViews(B,R):X.getId()==B&&R.push(X)}return R};
aj.prototype.getOptions=function(){return _.M_.clone(this.opts)};var Ld=function(B){this.basePickerUrl_=B||"https://docs.google.com/picker";this.nav_=new aj};
Ld.prototype.nav_=null;Ld.prototype.addView=function(B){this.nav_.addView(B);return this};
Ld.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Ld.prototype.getViews=function(B){return this.nav_.getViews(B)};
_.Wno=function(B,R){B.callback_=R;return B};var bQT=new Map;bQT.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");bQT.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");bQT.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var JS4=new Set;JS4.add("application/vnd.google-apps.kix");JS4.add("application/vnd.google-apps.ritz");JS4.add("application/vnd.google-apps.punch");var lk5=function(B,R,V){var e=V&&_.xU(V,1);V=jP4(V);var X=B[0].getId();switch(_.LU(X,2)){case 13:return UNa(B,R,e,V);case 3:return Ngo(B,R,e,V);case 10:return GMR(B,R,e,V);case 27:return GMR(B,R,e,V);case 12:return ySa(B,R);case 2:return Szl(B,R,e,V);case 5:return HQo(B,R,e,V);case 9:return Mvb(B,R,e,V);case 6:return kMl(B,R,e,V);case 25:return DNS(B,R,e,V);case 1:return _.SY(B[0],Rk2,26)?fko(B,R,e,V):GMR(B,R,e,V);default:return{}}},kMl=function(B,R,V,e){B=B.map(function(X){return{id:X.getId().getId(),
serviceId:"youtube",name:X.getName(),description:_.xU(X,3),type:dU(X),lastEditedUtc:_.Bq4(_.OB(X,_.iH,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:X.getUrl(),embedUrl:_.xU(X,13),thumbnails:wU(nY(X))}});
return{action:R,docs:B,viewToken:e,view:V||"youtube",v2Translated:!0}},Szl=function(B,R,V,e){var X=B.map(function(Y){var t=Y.getId().getId(),b=_.xU(Y,7),J=Y.getName(),G=dU(Y),y=_.Bq4(_.OB(Y,_.iH,12)).getTime(),S=Y.getUrl(),M=Number(SkZ(Y)),f=_.xU(Y,3),z=_.xU(Y,11),T=wU(nY(Y));
var L=_.OB(Y,u9,21);L=_.dX(L,1);var Q=_.OB(Y,u9,21);Q=_.xU(Q,10);var q=_.xU(Y,13);var m=_.OB(Y,u9,21);m=_.dX(m,9);var g=_.OB(Y,u9,21);g=_.xU(g,11);t={id:t,serviceId:"docs",mimeType:b,name:J,type:G,lastEditedUtc:y,url:S,sizeBytes:M,description:f,iconUrl:z,thumbnails:T,isShared:L,downloadUrl:Q,embedUrl:q,copyable:m,resourceKey:g};b=_.OB(Y,u9,21);_.dX(b,12)&&(t.uploadState="success",t.isNew=!0);b=_.OB(Y,u9,21);_.SY(b,$P,3)&&(Y=_.OB(Y,u9,21),Y=_.OB(Y,$P,3),_.SY(Y,Z1,2)&&(b=T$(Y.getDuration().getSeconds()),
J=Y.getDuration(),J=_.Bn(J,2),t.duration=b+J/1E9),t.aspectRatio=Y.getAspectRatio());return t});
return{action:R,docs:X,viewToken:e,view:V||"all",extraUserInputs:z7J(B),v2Translated:!0}},HQo=function(B,R,V,e){B=B.map(function(X){var Y=_.OB(X,bf_,15);
Y=_.OB(Y,mK,1);Ne(X,10,mK,Y);return{id:X.getId().getId(),serviceId:"web",mimeType:_.xU(X,7),name:X.getName(),type:dU(X),url:X.getUrl(),description:_.xU(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wU(nY(X))}});
return{action:R,docs:B,viewToken:e,view:V||"image-search",v2Translated:!0}},Mvb=function(B,R,V,e){B=B.map(function(X){return{serviceId:"url",
name:nY(X)[0].getUrl().split("/").pop(),type:dU(X),mimeType:_.xU(X,7),url:X.getUrl(),description:_.xU(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wU(nY(X))}});
return{action:R,docs:B,viewToken:e,view:V||"url",v2Translated:!0}},fko=function(B,R,V,e){B=B.map(function(X){return{id:X.getId().getId(),
serviceId:"picasa",name:X.getName(),type:dU(X),description:_.xU(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wU(nY(X))}});
return{action:R,docs:B,viewToken:e,view:V||"webcam",v2Translated:!0}},GMR=function(B,R,V,e){return{action:R,
docs:B.map(ak4),viewToken:e,view:dNa(V||"upload",B),extraUserInputs:z7J(B),v2Translated:!0}},dNa=function(B,R){return R.some(function(V){var e;
return((e=_.OB(V,CY,30))==null?void 0:_.LU(e,3))===9})?B+"/gmailphotos":B},Ngo=function(B,R,V,e){var X=B.map(function(Y){var t={id:Y.getId().getId(),
serviceId:"picasa",mimeType:_.xU(Y,7),name:Y.getName(),type:dU(Y),lastEditedUtc:_.Bq4(_.OB(Y,_.iH,12)).getTime(),url:Y.getUrl(),sizeBytes:Number(SkZ(Y)),description:_.xU(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wU(nY(Y)),mediaKey:Y.getId().getId(),parentId:_.xU(Y,4)},b,J=(b=_.OB(Y,XyJ,18))==null?void 0:_.OB(b,ekR,3);J&&(t.latitude=To(J,1),t.longitude=To(J,2));var G;Y=(G=_.OB(Y,XyJ,18))==null?void 0:wX(G,6);G=Y!=null?T$(Y):void 0;G&&(t.version=
G);return t});
return{action:R,docs:X,viewToken:e,view:V||"photos",extraUserInputs:z7J(B),v2Translated:!0}},UNa=function(B,R,V,e){B=B.map(function(X){return{id:X.getId().getId(),
serviceId:"et",name:nY(X)[0].getUrl().split("/").pop(),description:_.xU(X,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wU(nY(X),"etjpg")}});
return{action:R,docs:B,viewToken:e,view:V||"et",v2Translated:!0}},DNS=function(B,R,V,e){B=B.map(function(X){var Y=X.getId().getId(),t=e["2"];
return{id:Y,serviceId:t.type!=="gmail_themes"&&t.parent==="6226252643674576769"?"picasa":"static_themes",name:X.getName(),mimeType:_.xU(X,7),type:dU(X),description:_.xU(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:X.getUrl(),embedUrl:X.getUrl(),thumbnails:wU(nY(X))}});
return{action:R,docs:B,viewToken:e,view:V||"photos",v2Translated:!0}},ySa=function(B,R){B=B.map(function(V){var e=_.OB(V,Vzb,27);
e=_.Hy(e,1,_.co,_.oI())[0];return{id:V.getId().getId(),serviceId:"contacts",mimeType:_.xU(V,7),name:V.getName(),description:_.xU(V,3),url:"mailto:"+e,thumbnail:[{url:_.xU(V,11)}],email:e}});
return{action:R,docs:B,view:"contacts",v2Translated:!0}},jP4=function(B){if(!B)return{};
var R=_.xU(B,3);R=R&&JSON.parse(R)||{};return{0:_.xU(B,1),1:_.xU(B,2),2:R}},wU=function(B,R){R=R===void 0?"":R;
if(!B.length)return null;R=="etjpg"&&(B=B.filter(function(V){return V.getUrl().includes("w1200-h300")}));
return B.map(function(V){return{url:V.getUrl(),height:V.getHeight(),width:V.getWidth(),type:R}})},z7J=function(B){return{isAttachment:B.some(function(R){return _.dX(R,31)})}},ak4=function(B){var R,V={id:(R=B.getId())==null?void 0:R.getId(),
serviceId:wEl(B),mimeType:_.xU(B,7),name:B.getName(),type:dU(B),sizeBytes:Number(SkZ(B)),description:_.xU(B,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wU(nY(B)),isNew:!0};if(R=_.OB(B,CY,30)){V.dataUrl=_.xU(R,1)||null;a:{var e=_.OB(B,CY,30);switch(_.LU(e,3)){case 9:e=_.I6(e,tzR,2,Px);e={remoteRefs:e&&_.xU(e,1)};break a;case 10:case 15:e=_.I6(e,hk5,4,Px);var X=nY(B);e={photo_id:e&&_.xU(e,1),media_key:B.getId().getId(),media_type:_.LU(B,6)===1?1:2,image_url:X&&
X[0].getUrl(),width:X&&String(X[0].getWidth()),height:X&&String(X[0].getHeight())};break a}e=null}V.uploadMetadata=e;V.uploadId=_.xU(R,9)||null;V.uploadState=Tgh(R)||null}(e=R&&_.I6(R,hk5,4,Px))&&(V.id=_.xU(e,1));(e=R&&_.I6(R,WlR,5,Px))&&(V.contentId=_.xU(e,1));(e=R&&_.I6(R,pyR,7,Px))&&(V.contentId=_.xU(e,1));(e=R&&_.I6(R,YY4,6,Px))&&(V.contentId=_.xU(e,1));(R==null?void 0:_.LU(R,3))===1&&(V.mediaKey=B.getId().getId());return V},wEl=function(B){var R;
switch(((R=_.OB(B,CY,30))==null?void 0:_.LU(R,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},dU=function(B){switch(_.LU(B,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 _.xU(B,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},Tgh=function(B){switch(B==null?void 0:_.LU(B,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 KnR,xNR,LnT,vjo;_.T3=function(B,R){var V=R||{};R=V.document||document;var e=_.hR(B).toString(),X=(new D1(R)).createElement("SCRIPT"),Y={script_:X,timeout_:void 0},t=new Fd(xNR,Y),b=null,J=V.timeout!=null?V.timeout:5E3;J>0&&(b=window.setTimeout(function(){LnT(X,!0);t.errback(new vjo(1,"Timeout reached for loading script "+e))},J),Y.timeout_=b);
X.onload=X.onreadystatechange=function(){X.readyState&&X.readyState!="loaded"&&X.readyState!="complete"||(LnT(X,V.cleanupWhenDone||!1,b),t.callback(null))};
X.onerror=function(){LnT(X,!0,b);t.errback(new vjo(0,"Error while loading script "+e))};
Y=V.attributes||{};_.M_.extend(Y,{type:"text/javascript",charset:"UTF-8"});ZR_(X,Y);_.Qm(X,B);KnR(R).appendChild(X);return t};
KnR=function(B){var R=N2("HEAD",B);return R&&R.length!==0?R[0]:B.documentElement};
xNR=function(){if(this&&this.script_){var B=this.script_;B&&B.tagName=="SCRIPT"&&LnT(B,!0,this.timeout_)}};
LnT=function(B,R,V){V!=null&&_.R5.clearTimeout(V);B.onload=function(){};
B.onerror=function(){};
B.onreadystatechange=function(){};
R&&window.setTimeout(function(){_.UJ(B)},0)};
vjo=function(B,R){var V="Jsloader error (code #"+B+")";R&&(V+=": "+R);_.o5.call(this,V);this.code=B};
_.eY(vjo,_.o5);var Ik5=_.$Q(["https://apis.google.com/js/api.js"]),Ej2=_.u3(Ik5),AS_=function(B,R){var V=!1,e=QPb(B,R).then(function(Y){V=!0;return Y}),X=_.Jq2(5E3).then(function(){return V?QPb(B,R):qza(R).then(function(Y){return cS5(Y,B)})});
return ob_([e,X])},QPb=function(B,R){return iQ5(R).then(function(V){return cS5(V,B)})},cS5=function(B,R){var V=_.pZ(R,"gapi.")?R.slice(5):R;
return B[V]?_.XT(B[V]):new _.be(function(e,X){var Y=lK(function(){X(Error("bb"))},3E4);
B.load(R,{callback:function(){_.R5.clearTimeout(Y);e(B[V])},
onerror:function(t){_.R5.clearTimeout(Y);X(t)}})})},iQ5=function(B){return B.gapi&&B.gapi.load?_.XT(B.gapi):qza(B)},qza=function(B){return _.T3(Ej2,{document:B.document}).then(function(){return B.gapi})},sP5=function(){};
sP5.prototype.load=function(B,R){R=R===void 0?window:R;var V=Date.now();return AS_(B,R).then(function(e){var X=Date.now();return{library:e,loadStartMs:V,loadEndMs:X}},function(e){throw e instanceof Error?e:Error(String(e));
})};var HQS=function(){_.Hn.call(this);this.gapiLoader_=new sP5;this.origin_=null;this.gapiPickerIframeResolver_=_.A3();this.gapiIframesResolver_=_.A3();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.l(HQS,_.Hn);var Fn2=function(B,R){var V=_.qN("gapi.iframes",R);return V?(B=Date.now(),_.XT({library:V,loadStartMs:B,loadEndMs:B})):B.gapiLoader_.load("gapi.iframes",R)},rSa=function(B,R,V,e,X,Y){var t=!1;
t=t===void 0?!1:t;Fn2(B,lg(R.ownerDocument)).then(function(b){var J=b.library;B.gapiIframesResolver_.resolve(J);b=B.gapiPickerIframeResolver_;var G=b.resolve,y=t;y=y===void 0?!1:y;var S={};S["host-message-handler"]=V;B.hostMessageHandlerInternal_=S;var M=_.q2(e);M=_.q2(M);M=_.uK(_.nT(_.P_(new _.FO,M.scheme_),M.JSC$7940_domain_),M.JSC$7940_port_).toString();B.origin_=M;M=(new tA4).setUrl(e);M.JSC$7955_obj_.where=R;M.JSC$7955_obj_.allowPost=y;M.JSC$7955_obj_.messageHandlers=S;y=_.qN("makeWhiteListIframesFilter",
J)([B.origin_]);M.JSC$7955_obj_.messageHandlersFilter=y;X!=null&&M.setId(X);Y!=null&&(M.JSC$7955_obj_.rpctoken=Y);y=hTb(M);y.JSC$7952_obj_.style={display:"block","min-width":"100%",width:"1px"};y.JSC$7952_obj_.height="100%";hTb(M).value().allow="camera 'src' "+B.origin_;J=J.getContext().openChild(M.value());G.call(b,J)},function(b){B.gapiIframesResolver_.reject(b);
B.gapiPickerIframeResolver_.reject(b)});
return B.gapiPickerIframeResolver_.promise},gjS=function(B,R){return _.DG([B.gapiIframesResolver_.promise,
B.gapiPickerIframeResolver_.promise]).then(function(V){var e=_.h(V);V=e.next().value;return(e=e.next().value)?e.send("picker-message-handler",R,void 0,_.qN("makeWhiteListIframesFilter",V)([B.origin_])):_.SR(Error("cb"))})};
HQS.prototype.disposeInternal=function(){ZQR(this);_.Hn.prototype.disposeInternal.call(this)};
var ZQR=function(B){B.gapiPickerIframeResolver_.promise.then(function(R){R&&(R.unregister("host-message-handler"),delete B.hostMessageHandlerInternal_["host-message-handler"])})};var mN4=function(){this.nextId=0};var Cj5=function(B,R){switch(B.action){case "select-contacts":B=$Nv(B.contacts);break;case "visibility":B=B.visible;var V=new oB;B=_.QG(V,1,7).setVisible(B);V={};V["iframe-command"]=B.serialize();B=V;break;default:B=null}return B?gjS(R,B):_.XT()},$Nv=function(B){if(!B||B.length==0)return null;
var R=new oB;_.QG(R,1,11);var V=new mN4;B.forEach(function(e){if(e.email){var X=new zo;X=_.oH(X,2,e.name?e.name:e.email);var Y=new Vzb;e=_.Y45(Y,1,_.Qn,e.email,_.co);e=_.Ra(X,27,e);X=e.setId;Y=(new gE).setId(":"+(V.nextId++).toString(36));Y=_.QG(Y,2,12);e=X.call(e,Y)}else e=null;e&&Ne(R,7,zo,e)});
B={};B["iframe-command"]=R.serialize();return B};_.PjJ=function(){if(vYu){var B=/Windows NT ([0-9.]+)/;return(B=B.exec(_.G_()))?B[1]:"0"}return _.LT_?(B=/1[0|1][_.][0-9_.]+/,(B=B.exec(_.G_()))?B[0].replace(/_/g,"."):"10"):tp_?(B=/Android\s+([^\);]+)(\)|;)/,(B=B.exec(_.G_()))?B[1]:""):I8u||EYK||Q2A?(B=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(B=B.exec(_.G_()))?B[1].replace(/_/g,"."):""):""}();var x$;x$=function(B){return(B=B.exec(_.G_()))?B[1]:""};
_.njS=function(){if(_.Jo)return x$(/Firefox\/([0-9.]+)/);if(_.ho||gS||wYd)return raq;if(_.jY){if(_.I5()||_.UYp()){var B=x$(/CriOS\/([0-9.]+)/);if(B)return B}return x$(/Chrome\/([0-9.]+)/)}if(_.v8&&!_.I5())return x$(/Version\/([0-9.]+)/);if(z6S||agd){if(B=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.G_()))return B[1]+"."+B[2]}else if(CbZ)return(B=x$(/Android\s+([0-9.]+)/))?B:x$(/Version\/([0-9.]+)/);return""}();var uW4=function(){};
_.R6(uW4);uW4.prototype.nextId_=0;_.La=function(B){return":"+(B.nextId_++).toString(36)};var vT=function(B){_.H_.call(this);this.JSC$8050_dom_=B||WH();this.JSC$8050_id_=null;this.inDocument_=!1;this.JSC$8050_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.eY(vT,_.H_);vT.prototype.idGenerator_=uW4.getInstance();vT.prototype.getId=function(){return this.JSC$8050_id_||(this.JSC$8050_id_=_.La(this.idGenerator_))};
vT.prototype.setId=function(B){this.parent_&&this.parent_.childIndex_&&(_.M_.remove(this.parent_.childIndex_,this.JSC$8050_id_),_.M_.add(this.parent_.childIndex_,B,this));this.JSC$8050_id_=B};
vT.prototype.getElement=function(){return this.JSC$8050_element_};
var Ka=function(B){B.googUiComponentHandler_||(B.googUiComponentHandler_=new _.oL(B));return B.googUiComponentHandler_},OQ4=function(B,R){if(B==R)throw Error("db");
var V;if(V=R&&B.parent_&&B.JSC$8050_id_){V=B.parent_;var e=B.JSC$8050_id_;V=V.childIndex_&&e?_.M_.get(V.childIndex_,e)||null:null}if(V&&B.parent_!=R)throw Error("db");B.parent_=R;vT.superClass_.setParentEventTarget.call(B,R)};
vT.prototype.setParentEventTarget=function(B){if(this.parent_&&this.parent_!=B)throw Error("eb");vT.superClass_.setParentEventTarget.call(this,B)};
vT.prototype.JSC$8052_createDom=function(){this.JSC$8050_element_=this.JSC$8050_dom_.createElement("DIV")};
vT.prototype.render=function(B){ozl(this,B)};
var ozl=function(B,R,V){if(B.inDocument_)throw Error("fb");B.JSC$8050_element_||B.JSC$8052_createDom();R?R.insertBefore(B.JSC$8050_element_,V||null):B.JSC$8050_dom_.JSC$7233_document_.body.appendChild(B.JSC$8050_element_);B.parent_&&!B.parent_.inDocument_||B.enterDocument()};
_.p=vT.prototype;_.p.decorate=function(B){if(this.inDocument_)throw Error("fb");if(B&&this.canDecorate(B)){this.wasDecorated_=!0;var R=_.zg(B);this.JSC$8050_dom_&&this.JSC$8050_dom_.JSC$7233_document_==R||(this.JSC$8050_dom_=WH(B));this.decorateInternal(B);this.enterDocument()}else throw Error("gb");};
_.p.canDecorate=function(){return!0};
_.p.decorateInternal=function(B){this.JSC$8050_element_=B};
_.p.enterDocument=function(){this.inDocument_=!0;BSS(this,function(B){!B.inDocument_&&B.getElement()&&B.enterDocument()})};
_.p.exitDocument=function(){BSS(this,function(B){B.inDocument_&&B.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.p.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);BSS(this,function(B){B.dispose()});
!this.wasDecorated_&&this.JSC$8050_element_&&_.UJ(this.JSC$8050_element_);this.parent_=this.model_=this.JSC$8050_element_=this.childIndex_=this.children_=null;vT.superClass_.disposeInternal.call(this)};
_.p.getModel=function(){return this.model_};
_.p.addChild=function(B,R){var V=this.children_?this.children_.length:0;if(B.inDocument_&&(R||!this.inDocument_))throw Error("fb");if(V<0||V>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);B.parent_==this?(_.M_.set(this.childIndex_,B.getId(),B),_.uo(this.children_,B)):_.M_.add(this.childIndex_,B.getId(),B);OQ4(B,this);_.MqN(this.children_,V,0,B);B.inDocument_&&this.inDocument_&&B.parent_==this?(R=this.getContentElement(),
(R.childNodes[V]||null)!=B.getElement()&&(B.getElement().parentElement==R&&R.removeChild(B.getElement()),V=R.childNodes[V]||null,R.insertBefore(B.getElement(),V))):R?(this.JSC$8050_element_||this.JSC$8052_createDom(),V=this.children_?this.children_[V+1]||null:null,ozl(B,this.getContentElement(),V?V.JSC$8050_element_:null)):this.inDocument_&&!B.inDocument_&&B.JSC$8050_element_&&B.JSC$8050_element_.parentNode&&B.JSC$8050_element_.parentNode.nodeType==1&&B.enterDocument()};
_.p.getContentElement=function(){return this.JSC$8050_element_};
var BSS=function(B,R){B.children_&&B.children_.forEach(R,void 0)};
vT.prototype.removeChild=function(B,R){if(B){var V=typeof B==="string"?B:B.getId();B=this.childIndex_&&V?_.M_.get(this.childIndex_,V)||null:null;V&&B&&(_.M_.remove(this.childIndex_,V),_.uo(this.children_,B),R&&(B.exitDocument(),B.JSC$8050_element_&&_.UJ(B.JSC$8050_element_)),OQ4(B,null))}if(!B)throw Error("ib");return B};_.eY(WnS,tvA);_.eY(bQY,tvA);var R4T;var VC5=function(B,R){R?B.setAttribute("role",R):B.removeAttribute("role")},Ij=function(B,R,V){Array.isArray(V)&&(V=V.join(" "));
var e="aria-"+R;V===""||V==void 0?(R4T||(V={},R4T=(V.atomic=!1,V.autocomplete="none",V.dropeffect="none",V.haspopup=!1,V.live="off",V.multiline=!1,V.multiselectable=!1,V.orientation="vertical",V.readonly=!1,V.relevant="additions text",V.required=!1,V.sort="none",V.busy=!1,V.disabled=!1,V.hidden=!1,V.invalid="false",V)),V=R4T,R in V?B.setAttribute(e,V[R]):B.removeAttribute(e)):B.setAttribute(e,V)};var e4o;_.Ee=function(B,R,V){_.H_.call(this);this.target=B;this.handle=R||B;this.limits=V||new KY(NaN,NaN,NaN,NaN);this.JSC$8055_document_=_.zg(B);this.JSC$8055_eventHandler_=new _.oL(this);_.t4(this,this.JSC$8055_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;_.G2(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=e4o};
_.eY(_.Ee,_.H_);e4o=_.R5.document&&_.R5.document.documentElement&&!!_.R5.document.documentElement.setCapture&&!!_.R5.document.releaseCapture;_.X85=function(B,R){B.hysteresisDistanceSquared_=Math.pow(R,2)};
_.p=_.Ee.prototype;_.p.setEnabled=function(B){this.enabled_=B};
_.p.disposeInternal=function(){_.Ee.superClass_.disposeInternal.call(this);_.SI(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8055_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8055_document_.releaseCapture();this.handle=this.target=null};
_.p.startDrag=function(B){var R=B.type=="mousedown";if(!this.enabled_||this.dragging_||R&&(B.event_.button!=0||_.LT_&&B.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new QZ("start",this,B.clientX,B.clientY,B)))this.dragging_=!0,R&&B.preventDefault();else return;else R&&B.preventDefault();R=this.JSC$8055_document_;var V=R.documentElement,e=!this.useSetCapture_;this.JSC$8055_eventHandler_.listen(R,["touchmove","mousemove"],this.handleMove_,
{capture:e,passive:!1});this.JSC$8055_eventHandler_.listen(R,["touchend","mouseup"],this.endDrag,e);this.useSetCapture_?(V.setCapture(!1),this.JSC$8055_eventHandler_.listen(V,"losecapture",this.endDrag)):this.JSC$8055_eventHandler_.listen(lg(R),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8055_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,e);this.clientX=this.startX=B.clientX;this.clientY=this.startY=B.clientY;this.screenX=B.screenX;this.screenY=B.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=tF(WH(this.JSC$8055_document_))}};
_.p.endDrag=function(B,R){this.JSC$8055_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8055_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new QZ("end",this,B.clientX,B.clientY,B,p8o(this,this.deltaX),YBT(this,this.deltaY),R||B.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.p.handleMove_=function(B){if(this.enabled_){var R=B.clientX-this.clientX,V=B.clientY-this.clientY;this.clientX=B.clientX;this.clientY=B.clientY;this.screenX=B.screenX;this.screenY=B.screenY;if(!this.dragging_){var e=this.startX-this.clientX,X=this.startY-this.clientY;if(e*e+X*X>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new QZ("start",this,B.clientX,B.clientY,B)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(B);return}}V=h4v(this,R,V);R=V.x;V=V.y;this.dragging_&&this.dispatchEvent(new QZ("beforedrag",
this,B.clientX,B.clientY,B,R,V))&&(tCa(this,B,R,V),B.preventDefault())}};
var h4v=function(B,R,V){var e=tF(WH(B.JSC$8055_document_));R+=e.x-B.pageScroll.x;V+=e.y-B.pageScroll.y;B.pageScroll=e;B.deltaX+=R;B.deltaY+=V;return new _.fx(p8o(B,B.deltaX),YBT(B,B.deltaY))};
_.Ee.prototype.onScroll_=function(B){var R=h4v(this,0,0);B.clientX=this.clientX;B.clientY=this.clientY;tCa(this,B,R.x,R.y)};
var tCa=function(B,R,V,e){B.target.style.left=V+"px";B.target.style.top=e+"px";B.dispatchEvent(new QZ("drag",B,R.clientX,R.clientY,R,V,e))},p8o=function(B,R){var V=B.limits;
B=isNaN(V.left)?null:V.left;V=isNaN(V.width)?0:V.width;return Math.min(B!=null?B+V:Infinity,Math.max(B!=null?B:-Infinity,R))},YBT=function(B,R){var V=B.limits;
B=isNaN(V.top)?null:V.top;V=isNaN(V.height)?0:V.height;return Math.min(B!=null?B+V:Infinity,Math.max(B!=null?B:-Infinity,R))};
_.Ee.prototype.isDragging=function(){return this.dragging_};
var QZ=function(B,R,V,e,X,Y,t){_.Un.call(this,B);this.clientX=V;this.clientY=e;this.browserEvent=X;this.left=Y!==void 0?Y:R.deltaX;this.top=t!==void 0?t:R.deltaY};
_.eY(QZ,_.Un);var qE=function(B){this.JSC$8062_map_=new Map;var R=arguments.length;if(R>1){if(R%2)throw Error("oa");for(var V=0;V<R;V+=2)this.set(arguments[V],arguments[V+1])}else B&&this.addAll(B)};
_.p=qE.prototype;_.p.getCount=function(){return this.JSC$8062_map_.size};
_.p.getValues=function(){return Array.from(this.JSC$8062_map_.values())};
_.p.getKeys=function(){return Array.from(this.JSC$8062_map_.keys())};
_.p.containsKey=function(B){return this.JSC$8062_map_.has(B)};
_.p.containsValue=function(B){return this.getValues().some(function(R){return R==B})};
_.p.equals=function(B,R){var V=this;R=R===void 0?function(e,X){return e===X}:R;
return this===B?!0:this.JSC$8062_map_.size!=B.getCount()?!1:this.getKeys().every(function(e){return R(V.JSC$8062_map_.get(e),B.get(e))})};
_.p.isEmpty=function(){return this.JSC$8062_map_.size==0};
_.p.clear=function(){this.JSC$8062_map_.clear()};
_.p.remove=function(B){return this.JSC$8062_map_.delete(B)};
_.p.get=function(B,R){return this.JSC$8062_map_.has(B)?this.JSC$8062_map_.get(B):R};
_.p.set=function(B,R){this.JSC$8062_map_.set(B,R);return this};
_.p.addAll=function(B){if(B instanceof qE){B=_.h(B.JSC$8062_map_);for(var R=B.next();!R.done;R=B.next()){var V=_.h(R.value);R=V.next().value;V=V.next().value;this.JSC$8062_map_.set(R,V)}}else if(B)for(B=_.h(Object.entries(B)),R=B.next();!R.done;R=B.next())V=_.h(R.value),R=V.next().value,V=V.next().value,this.JSC$8062_map_.set(R,V)};
_.p.forEach=function(B,R){var V=this;R=R===void 0?this:R;this.JSC$8062_map_.forEach(function(e,X){return B.call(R,e,X,V)})};
_.p.clone=function(){return new qE(this)};(function(){for(var B=["ms","moz","webkit","o"],R,V=0;R=B[V]&&!_.R5.requestAnimationFrame;++V)_.R5.requestAnimationFrame=_.R5[R+"RequestAnimationFrame"],_.R5.cancelAnimationFrame=_.R5[R+"CancelAnimationFrame"]||_.R5[R+"CancelRequestAnimationFrame"];if(!_.R5.requestAnimationFrame){var e=0;_.R5.requestAnimationFrame=function(X){var Y=(new Date).getTime(),t=Math.max(0,16-(Y-e));e=Y+t;return _.R5.setTimeout(function(){X(Y+t)},t)};
_.R5.cancelAnimationFrame||(_.R5.cancelAnimationFrame=function(X){clearTimeout(X)})}})();
var WkR=[[],[]],bqJ=0,Ju_=!1,jCa=0,NSl=function(B,R){var V=jCa++,e={measureTask:{id:V,fn:B.measure,context:R},mutateTask:{id:V,fn:B.mutate,context:R},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(e.args||(e.args=[]),e.args.length=0,e.args.push.apply(e.args,arguments),e.args.push(e.state)):e.args&&e.args.length!=0?(e.args[0]=e.state,e.args.length=1):e.args=[e.state];e.isScheduled||(e.isScheduled=!0,WkR[bqJ].push(e));Ju_||(Ju_=!0,window.requestAnimationFrame(Una))}},Una=
function(){Ju_=!1;
var B=WkR[bqJ],R=B.length;bqJ=(bqJ+1)%2;for(var V,e=0;e<R;++e){V=B[e];var X=V.measureTask;V.isScheduled=!1;X.fn&&X.fn.apply(X.context,V.args)}for(e=0;e<R;++e)V=B[e],X=V.mutateTask,V.isScheduled=!1,X.fn&&X.fn.apply(X.context,V.args),V.state={};B.length=0};var GKR=_.$Q(["about:blank"]),yuh=_.$Q(["javascript:undefined"]),SB5=_.u3(GKR);_.hR(SB5);var Hqa=_.u3(yuh);_.hR(Hqa);var cT=function(B){_.H_.call(this);this.JSC$8068_element_=B;this.listenKeyIn_=_.G2(this.JSC$8068_element_,"focus",this,!0);this.listenKeyOut_=_.G2(this.JSC$8068_element_,"blur",this,!0)};
_.eY(cT,_.H_);cT.prototype.handleEvent=function(B){var R=new _.Nu(B.event_);R.type=B.type=="focusin"||B.type=="focus"?"focusin":"focusout";this.dispatchEvent(R)};
cT.prototype.disposeInternal=function(){cT.superClass_.disposeInternal.call(this);jR(this.listenKeyIn_);jR(this.listenKeyOut_);delete this.JSC$8068_element_};var MCG=function(B,R){this.JSC$8071_element_=B;this.JSC$8071_dom_=R};var AH=function(B,R){vT.call(this,R);this.useIframeMask_=!!B;this.lastFocus_=null;this.resizeBackgroundTask_=NSl({mutate:this.resizeBackground_},this);NSl({mutate:this.updateModalAndBackground_},this)};
_.eY(AH,vT);_.p=AH.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$8052_createDom=function(){AH.superClass_.JSC$8052_createDom.call(this);var B=this.getElement(),R=US(this.getCssClass()).split(" ");iK(B,R);B.tabIndex=0;_.iy(B,!1);kK_(this);Dnl(this)};
var kK_=function(B){if(B.useIframeMask_&&!B.bgIframeEl_){var R=B.JSC$8050_dom_.JSC$7235_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.wc(R,SB5);B.bgIframeEl_=R;B.bgIframeEl_.className=B.getCssClass()+"-bg";_.iy(B.bgIframeEl_,!1);kio(B.bgIframeEl_,0)}B.bgEl_||(B.bgEl_=B.JSC$8050_dom_.JSC$7235_createDom("DIV",B.getCssClass()+"-bg"),_.iy(B.bgEl_,!1))},Dnl=function(B){B.tabCatcherElement_||(B.tabCatcherElement_=B.JSC$8050_dom_.createElement("SPAN"),_.iy(B.tabCatcherElement_,
!1),B.tabCatcherElement_.tabIndex=0,B.tabCatcherElement_.style.position="absolute")};
_.p=AH.prototype;_.p.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.p.canDecorate=function(B){return!!B&&B.tagName=="DIV"};
_.p.decorateInternal=function(B){AH.superClass_.decorateInternal.call(this,B);B=US(this.getCssClass()).split(" ");iK(this.getElement(),B);kK_(this);Dnl(this);this.getElement().tabIndex=0;_.iy(this.getElement(),!1)};
_.p.enterDocument=function(){this.bgIframeEl_&&_.Tw(this.bgIframeEl_,this.getElement());_.Tw(this.bgEl_,this.getElement());AH.superClass_.enterDocument.call(this);_.xP(this.tabCatcherElement_,this.getElement());this.focusHandler_=new cT(this.JSC$8050_dom_.JSC$7233_document_);Ka(this).listen(this.focusHandler_,"focusin",this.onFocus);fN5(this,!1)};
_.p.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Cx(this.focusHandler_);AH.superClass_.exitDocument.call(this);_.UJ(this.bgIframeEl_);_.UJ(this.bgEl_);_.UJ(this.tabCatcherElement_)};
_.p.setVisible=function(B){if(B!=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_&&fN5(this,B),B){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8050_dom_.JSC$7233_document_.activeElement}catch(X){}this.updateModalAndBackground_();Ka(this).listen(this.JSC$8050_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8050_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);lN_(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)JJ(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Ka(this).unlisten(this.JSC$8050_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8050_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)JJ(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var R=this.JSC$8050_dom_,V=R.JSC$7233_document_.body,e=R.JSC$7233_document_.activeElement||V;if(!this.lastFocus_||this.lastFocus_==V){this.lastFocus_=null;break a}(e==V||R.contains(this.getElement(),e))&&this.lastFocus_.focus()}catch(X){}this.lastFocus_=
null}}};
var fN5=function(B,R){B.modalAriaVisibilityHelper_||(B.modalAriaVisibilityHelper_=new MCG(B.JSC$8050_element_,B.JSC$8050_dom_));B=B.modalAriaVisibilityHelper_;if(R){B.hiddenElements_||(B.hiddenElements_=[]);R=B.JSC$8071_dom_.getChildren(B.JSC$8071_dom_.JSC$7233_document_.body);for(var V=0;V<R.length;V++){var e=R[V],X;if(X=e!=B.JSC$8071_element_)X=e.getAttribute("aria-hidden"),X=!(X==null||X==void 0?0:String(X));X&&(Ij(e,"hidden",!0),B.hiddenElements_.push(e))}}else if(B.hiddenElements_){for(R=0;R<
B.hiddenElements_.length;R++)B.hiddenElements_[R].removeAttribute("aria-hidden");B.hiddenElements_=null}};
AH.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var lN_=function(B,R){B.bgIframeEl_&&_.iy(B.bgIframeEl_,R);B.bgEl_&&_.iy(B.bgEl_,R);_.iy(B.getElement(),R);_.iy(B.tabCatcherElement_,R)};
_.p=AH.prototype;_.p.onShow=function(){this.dispatchEvent("show")};
_.p.onHide=function(){lN_(this,!1);this.dispatchEvent("hide")};
_.p.isVisible=function(){return this.visible_};
_.p.focus=function(){this.focusElement_()};
_.p.resizeBackground_=function(){this.bgIframeEl_&&_.iy(this.bgIframeEl_,!1);this.bgEl_&&_.iy(this.bgEl_,!1);var B=this.JSC$8050_dom_.JSC$7233_document_;var R=_.hF(lg(this.JSC$8050_dom_.JSC$7233_document_)||window);var V=Math.max(R.width,Math.max(B.body.scrollWidth,B.documentElement.scrollWidth));B=Math.max(R.height,Math.max(B.body.scrollHeight,B.documentElement.scrollHeight));this.bgIframeEl_&&(_.iy(this.bgIframeEl_,!0),_.yra(this.bgIframeEl_,V,B));this.bgEl_&&(_.iy(this.bgEl_,!0),_.yra(this.bgEl_,
V,B))};
_.p.reposition=function(){var B;if(_.Gil(this.getElement())=="fixed")var R=B=0;else R=tF(this.JSC$8050_dom_),B=R.x,R=R.y;var V=HeJ(this.getElement());var e=_.hF(lg(this.JSC$8050_dom_.JSC$7233_document_)||window);B=Math.max(B+e.width/2-V.width/2,0);R=Math.max(R+e.height/2-V.height/2,0);Qs(this.getElement(),B,R);Qs(this.tabCatcherElement_,B,R)};
_.p.onFocus=function(B){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():B.target==this.tabCatcherElement_&&lK(this.focusElement_,0,this)};
_.p.focusElement_=function(){try{this.getElement().focus()}catch(B){}};
_.p.disposeInternal=function(){_.Cx(this.popupShowTransition_);this.popupShowTransition_=null;_.Cx(this.popupHideTransition_);this.popupHideTransition_=null;_.Cx(this.bgShowTransition_);this.bgShowTransition_=null;_.Cx(this.bgHideTransition_);this.bgHideTransition_=null;AH.superClass_.disposeInternal.call(this)};var x0=function(B,R,V){AH.call(this,R,V);this.JSC$8081_class_=B||"modal-dialog";this.buttons_=(new i0).addButton(z4o,!0).addButton(aN2,!1,!0)};
_.eY(x0,AH);_.p=x0.prototype;_.p.escapeToCancel_=!0;_.p.hasTitleCloseButton_=!0;_.p.modal_=!0;_.p.draggable_=!0;_.p.backgroundElementOpacity_=.5;_.p.title_="";_.p.JSC$8083_dragger_=null;_.p.JSC$8083_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$8081_class_};
_.p.setTitle=function(B){this.title_=B;this.titleTextEl_&&_.vx(this.titleTextEl_,B)};
_.p.getTitle=function(){return this.title_};
_.p.getContent=function(){return""};
_.p.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var dnb=function(B){B.getElement()||B.render();return B.getElement()};
x0.prototype.getBackgroundElement=function(){this.getElement()||this.render();return x0.superClass_.getBackgroundElement.call(this)};
var w84=function(B,R){B.backgroundElementOpacity_=R;B.getElement()&&(R=B.getBackgroundElement())&&kio(R,B.backgroundElementOpacity_)};
x0.prototype.setDraggable=function(B){this.draggable_=B;TSo(this,B&&this.inDocument_)};
x0.prototype.JSC$8083_handleDrag=function(){};
var TSo=function(B,R){var V=US(B.JSC$8081_class_+"-title-draggable").split(" ");B.getElement()&&(R?iK(B.titleEl_,V):pn_(B.titleEl_,V));R&&!B.JSC$8083_dragger_?(R=new _.Ee(B.getElement(),B.titleEl_),B.JSC$8083_dragger_=R,iK(B.titleEl_,V),_.G2(B.JSC$8083_dragger_,"start",B.setDraggerLimits_,!1,B),_.G2(B.JSC$8083_dragger_,"drag",B.JSC$8083_handleDrag,!1,B)):!R&&B.JSC$8083_dragger_&&(B.JSC$8083_dragger_.dispose(),B.JSC$8083_dragger_=null)};
_.p=x0.prototype;
_.p.JSC$8052_createDom=function(){x0.superClass_.JSC$8052_createDom.call(this);var B=this.getElement(),R=this.JSC$8050_dom_;this.titleTextId_=this.getId();var V=this.getId()+".contentEl";this.titleEl_=R.JSC$7235_createDom("DIV",this.JSC$8081_class_+"-title",this.titleTextEl_=R.JSC$7235_createDom("SPAN",{className:this.JSC$8081_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=R.JSC$7235_createDom("SPAN",this.JSC$8081_class_+"-title-close"));n5v(B,this.titleEl_,this.contentEl_=
R.JSC$7235_createDom("DIV",{className:this.JSC$8081_class_+"-content",id:V}),this.buttonEl_=R.JSC$7235_createDom("DIV",this.JSC$8081_class_+"-buttons"));VC5(this.titleTextEl_,"heading");VC5(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Ij(this.titleCloseEl_,"label","Close");VC5(B,"dialog");Ij(B,"labelledby",this.titleTextId_||"");_.iy(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(B=this.buttons_,B.JSC$8084_element_=this.buttonEl_,B.render());_.iy(this.buttonEl_,!!this.buttons_);
w84(this,this.backgroundElementOpacity_)};
_.p.decorateInternal=function(B){x0.superClass_.decorateInternal.call(this,B);B=this.getElement();var R=this.JSC$8081_class_+"-content";this.contentEl_=fY(document,null,R,B)[0];this.contentEl_||(this.contentEl_=this.JSC$8050_dom_.JSC$7235_createDom("DIV",R),B.appendChild(this.contentEl_));R=this.JSC$8081_class_+"-title";var V=this.JSC$8081_class_+"-title-text",e=this.JSC$8081_class_+"-title-close";(this.titleEl_=fY(document,null,R,B)[0])?(this.titleTextEl_=fY(document,null,V,this.titleEl_)[0],this.titleCloseEl_=
fY(document,null,e,this.titleEl_)[0]):(this.titleEl_=this.JSC$8050_dom_.JSC$7235_createDom("DIV",R),B.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=be4(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.zw("SPAN",{className:V,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Ij(B,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8050_dom_.JSC$7235_createDom("SPAN",
e),this.titleEl_.appendChild(this.titleCloseEl_));_.iy(this.titleCloseEl_,this.hasTitleCloseButton_);R=this.JSC$8081_class_+"-buttons";(this.buttonEl_=fY(document,null,R,B)[0])?(this.buttons_=new i0(this.JSC$8050_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8050_dom_.JSC$7235_createDom("DIV",R),B.appendChild(this.buttonEl_),this.buttons_&&(B=this.buttons_,B.JSC$8084_element_=this.buttonEl_,B.render()),_.iy(this.buttonEl_,!!this.buttons_));w84(this,this.backgroundElementOpacity_)};
_.p.enterDocument=function(){x0.superClass_.enterDocument.call(this);Ka(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Ka(this).listen(this.buttonEl_,"click",this.onButtonClick_);TSo(this,this.draggable_);Ka(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var B=this.getElement();VC5(B,"dialog");this.titleTextEl_.id!==""&&Ij(B,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){B=this.JSC$8050_dom_;
var R=this.getBackgroundElement();B.removeNode(this.bgIframeEl_);B.removeNode(R)}this.isVisible()&&fN5(this,!1)}};
_.p.exitDocument=function(){this.isVisible()&&this.setVisible(!1);TSo(this,!1);x0.superClass_.exitDocument.call(this)};
_.p.setVisible=function(B){B!=this.isVisible()&&(this.inDocument_||this.render(),x0.superClass_.setVisible.call(this,B))};
_.p.onShow=function(){x0.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.p.onHide=function(){x0.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8083_disposeOnHide_&&this.dispose()};
_.p.setDraggerLimits_=function(){var B=this.JSC$8050_dom_.JSC$7233_document_,R=_.hF(lg(B)||window),V=Math.max(B.body.scrollWidth,R.width);B=Math.max(B.body.scrollHeight,R.height);var e=HeJ(this.getElement());_.Gil(this.getElement())=="fixed"?this.JSC$8083_dragger_.limits=new KY(0,0,Math.max(0,R.width-e.width),Math.max(0,R.height-e.height)):this.JSC$8083_dragger_.limits=new KY(0,0,V-e.width,B-e.height)};
_.p.onTitleCloseClick_=function(){xnv(this)};
var xnv=function(B){if(B.hasTitleCloseButton_){var R=B.buttons_,V=R&&R.cancelButton_;V?(R=R.get(V),B.dispatchEvent(new se(V,R))&&B.setVisible(!1)):B.setVisible(!1)}},Lk4=function(B){B.hasTitleCloseButton_=!1;
B.titleCloseEl_&&_.iy(B.titleCloseEl_,B.hasTitleCloseButton_)};
x0.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;x0.superClass_.disposeInternal.call(this)};
x0.prototype.onButtonClick_=function(B){a:{for(B=B.target;B!=null&&B!=this.buttonEl_;){if(B.tagName=="BUTTON")break a;B=B.parentNode}B=null}if(B&&!B.disabled){B=B.name;var R=this.buttons_.get(B);this.dispatchEvent(new se(B,R))&&this.setVisible(!1)}};
x0.prototype.onKey_=function(B){var R=!1,V=!1,e=this.buttons_,X=B.target;if(B.type=="keydown")if(this.escapeToCancel_&&B.keyCode==27){var Y=e&&e.cancelButton_;X=X.tagName=="SELECT"&&!X.disabled;Y&&!X?(V=!0,R=e.get(Y),R=this.dispatchEvent(new se(Y,R))):X||(R=!0)}else{if(B.keyCode==9&&B.shiftKey&&X==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(y){}lK(this.resetBackwardTabWrap_,0,this)}}else if(B.keyCode==13){if(X.tagName=="BUTTON"&&!X.disabled)Y=X.name;
else if(X==this.titleCloseEl_)xnv(this);else if(e){var t=e.defaultButton_,b;if(b=t)a:{b=N2("BUTTON",e.JSC$8084_element_);for(var J,G=0;J=b[G];G++)if(J.name==t||J.id==t){b=J;break a}b=null}X=(X.tagName=="TEXTAREA"||X.tagName=="SELECT"||X.tagName=="A")&&!X.disabled;!b||b.disabled||X||(Y=t)}Y&&e&&(V=!0,R=this.dispatchEvent(new se(Y,String(e.get(Y)))))}else X!=this.titleCloseEl_||B.keyCode!=32&&B.key!=" "||xnv(this);if(R||V)B.stopPropagation(),B.preventDefault();R&&this.setVisible(!1)};
var se=function(B,R){this.type="dialogselect";this.key=B;this.caption=R};
_.eY(se,_.Un);var i0=function(B){qE.call(this);B||WH();this.cancelButton_=this.JSC$8084_element_=this.defaultButton_=null};
_.eY(i0,qE);_.p=i0.prototype;_.p.clear=function(){qE.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.p.set=function(B,R,V,e){qE.prototype.set.call(this,B,R);V&&(this.defaultButton_=B);e&&(this.cancelButton_=B);return this};
_.p.addButton=function(B,R,V){return this.set(B.key,B.caption,R,V)};
_.p.render=function(){if(this.JSC$8084_element_){_.qV(this.JSC$8084_element_,fkS);var B=WH(this.JSC$8084_element_);this.forEach(function(R,V){R=B.JSC$7235_createDom("BUTTON",{name:V},R);V==this.defaultButton_&&(R.className="goog-buttonset-default");this.JSC$8084_element_.appendChild(R)},this)}};
_.p.decorate=function(B){if(B&&B.nodeType==1){this.JSC$8084_element_=B;B=N2("BUTTON",this.JSC$8084_element_);for(var R,V,e,X=0;R=B[X];X++)if(V=R.name||R.id,e=be4(R)||R.value,V){var Y=X==0;this.set(V,e,Y,R.name=="cancel");Y&&_.s5(R,"goog-buttonset-default")}}};
_.p.getElement=function(){return this.JSC$8084_element_};
var z4o={key:"ok",caption:"OK"},aN2={key:"cancel",caption:"Cancel"},vz_={key:"yes",caption:"Yes"},Kkh={key:"no",caption:"No"},INb={key:"save",caption:"Save"},Ezh={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new i0).addButton(z4o,!0,!0),(new i0).addButton(z4o,!0).addButton(aN2,!1,!0),(new i0).addButton(vz_,!0).addButton(Kkh,!1,!0),(new i0).addButton(vz_).addButton(Kkh,!0).addButton(aN2,!1,!0),(new i0).addButton(Ezh).addButton(INb).addButton(aN2,!0,!0));_.eY(JSx,x0);_.eY(jP5,Ld);var QCT=_.$Q(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),qBh=_.$Q(["//apis.google.com/js/rpc.js"]),DNK=_.u3(QCT),kMN=_.u3(qBh),NgS=null;var vn=function(B,R){_.H_.call(this);this.JSC$8093_element_=B;B=_.m4(this.JSC$8093_element_)?this.JSC$8093_element_:this.JSC$8093_element_?this.JSC$8093_element_.body:null;this.isRtl_=!!B&&_.Dj5(B);this.listenKey_=_.G2(this.JSC$8093_element_,_.to?"DOMMouseScroll":"mousewheel",this,R)};
_.eY(vn,_.H_);vn.prototype.handleEvent=function(B){var R=0,V=0,e=B.event_;e.type=="mousewheel"?(B=cu_(-e.wheelDelta),e.wheelDeltaX!==void 0?(R=cu_(-e.wheelDeltaX),V=cu_(-e.wheelDeltaY)):V=B):(B=e.detail,B>100?B=3:B<-100&&(B=-3),e.axis!==void 0&&e.axis===e.HORIZONTAL_AXIS?R=B:V=B);typeof this.maxDeltaX_==="number"&&(R=_.IH(R,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(V=_.IH(V,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(R=-R);R=new Aub(B,e,R,V);this.dispatchEvent(R)};
var cu_=function(B){return _.Wb&&(_.LT_||KTY)&&B%40!=0?B:B/40};
vn.prototype.disposeInternal=function(){vn.superClass_.disposeInternal.call(this);jR(this.listenKey_);this.listenKey_=null};
var Aub=function(B,R,V,e){_.Nu.call(this,R);this.type="mousewheel";this.detail=B;this.deltaX=V;this.deltaY=e};
_.eY(Aub,_.Nu);_.hn=function(B){var R="instance_";if(B.instance_&&B.hasOwnProperty(R))return B.instance_;R=new B;return B.instance_=R};var MvI;var iqR=_.$Q(["https://about:blank"]),sCa=_.$Q(['javascript:""']),Fkv=_.$Q(["about:blank"]);_.eY(sJ,JSx);_.p=sJ.prototype;_.p.JSC$8101_url_="";_.p.JSC$8101_iframe_=null;_.p.iframeLoaded_=!1;_.p.loadedFired_=!1;_.p.callback_=function(){};
_.p.enterDocument=function(){sJ.superClass_.enterDocument.call(this);SzN(this.getBackgroundElement(),Ka(this))};
_.p.render=function(B){var R=this;sJ.superClass_.render.call(this,B);this.useGapi_?Fn2(this.iframeManager_,window).then(function(){return ruT(R)}).then(null,function(){R.callback_({action:"error"})}):gzl(this)};
var ruT=function(B){var R=B.JSC$8050_dom_.JSC$7235_createDom("div",["picker-dialog-content","picker-frame"]);_.iy(R,!1);B.getContentElement().appendChild(R);return rSa(B.iframeManager_,R,function(V){var e=yDR(V["iframe-command"]);switch(e.getCommand()){case 1:V=B.callback_;e=_.OB(e,OO,2);var X="";switch(e.getStatus()){case 2:X="cancel";break;case 1:X="picked";break;case 3:X="error"}var Y=_.Oh(e,zo,2,_.oI(ejS));e=Y.length===0?{action:X}:lk5(Y,X,_.OB(e,USa,7));V.call(B,e);B.setVisible(!1);break;case 4:Lk4(B);
B.callback_({action:"loaded"});break;case 7:case 8:V=B.callback_;a:{X=e.getCommand();Y=_.OB(e,OO,2);switch(X){case 7:X="uploadScheduled";break;case 8:X="uploadStateChange";break;default:e={};break a}e=_.Oh(Y,zo,2,_.oI(ejS));if(e.length===0)e={action:X};else{var t=_.OB(Y,USa,7);Y=t&&_.xU(t,1);t=jP4(t);e=GMR(e,X,Y,t)}}V.call(B,e)}},B.JSC$8101_url_,B.targetId_,B.rpcToken_).then(function(V){B.JSC$8101_iframe_=V.getIframeEl();
Zqb(B);_.iy(B.JSC$8101_iframe_.parentElement,!0);_.s5(B.getElement(),"picker-dialog");mna(B);return V})},gzl=function(B){B.JSC$8101_iframe_=B.JSC$8050_dom_.JSC$7235_createDom("IFRAME",{id:B.targetId_,
name:B.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.wc(B.JSC$8101_iframe_,$nG(B));_.s5(B.getElement(),"picker-dialog");B.getContentElement().appendChild(B.JSC$8101_iframe_);Ka(B).listen(B.JSC$8101_iframe_,"load",function(){return void Zqb(B)});
B.JSC$8101_iframe_.src=B.JSC$8101_url_;mna(B)},PNJ=function(B){CN_(B,(0,_.M2)(function(R){R.setAuthToken(this.targetId_,this.rpcToken_)},B))},mna=function(B){var R=_.cn(_.q2(B.JSC$8101_url_),"title");
R&&B.setTitle(R)},$nG=function(B){return _.bZS("Internet Explorer")>=7&&_.pZ(B.JSC$8101_url_,"https")?_.u3(iqR):_.ho?_.u3(sCa):_.u3(Fkv)},Zqb=function(B){PNJ(B);
B.iframeLoaded_=!0;B.JSC$8101_iframe_.tabIndex=0;B.isVisible()&&B.focus()};
sJ.prototype.handleKeydown_=function(B){B.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),B.stopPropagation(),B.preventDefault())};
var CN_=function(B,R){var V=B.JSC$8099_gadgetsDomHelper_;GMZ(function(){R(V.getWindow().gadgets.rpc)},V)};
sJ.prototype.setUrl=function(B){B=_.A4(new _.FO(B),"rpcService",this.targetId_);_.A4(B,"rpctoken",this.rpcToken_);_.BT(B,"rpctoken="+this.rpcToken_);_.P_(B,"https");this.JSC$8101_url_=B.toString();this.JSC$8101_iframe_&&(this.JSC$8101_iframe_.src=this.JSC$8101_url_)};
var nzG=function(B,R){B.callback_=R;CN_(B,(0,_.M2)(function(V){V.register(this.targetId_,(0,_.M2)(this.handlePickerAction_,this))},B))};
sJ.prototype.handlePickerAction_=function(B){var R=B.action;R=="loaded"&&(this.loadedFired_=!0,u0R(this,new bQY(this.isVisible())),Oq_(this),Lk4(this),Ka(this).unlisten(this.JSC$8050_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8101_iframe_.tabIndex=0);R!="picked"&&R!="cancel"||this.setVisible(!1);this.callback_(B)};
var Oq_=function(B){B.JSC$8101_appId_&&u0R(B,new WnS(B.JSC$8101_appId_,window.location.protocol+"//"+window.location.host))};
sJ.prototype.setRelayUrl=function(B){CN_(this,(0,_.M2)(function(R){R.setRelayUrl(this.targetId_,B)},this))};
var u0R=function(B,R){B.useGapi_&&Cj5(R,B.iframeManager_).then(null,function(){B.callback_({action:"error"})});
CN_(B,(0,_.M2)(function(V){V.call(this.targetId_,"picker",null,R)},B))};
sJ.prototype.resizePicker_=function(){var B=lg(this.JSC$8050_dom_.JSC$7233_document_)||window;if(_.cn(_.q2(this.JSC$8101_url_),"ignoreLimits")=="true")B=new _.Yl(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.cn(_.q2(this.JSC$8101_url_),"shadeDialog")=="true"){var R=dnb(this);R=f7_(R);var V=_.hF(B);B=V.width-80;V=V.height-40;R&&(B-=R.left?R.left:0,B-=R.right?R.right:0,V-=R.top?R.top:0,V-=R.bottom?R.bottom:0);B=new _.Yl(B>0?B:0,V>0?V:0)}else(R=this.preferredDialogWidth_)?(R=Math.max(320,
Math.min(1051,R)),(V=this.preferredDialogHeight_)||(V=_.hF(B).height*.85),V=Math.max(480,Math.min(650,V))):(R=_.hF(B),V=R.width*.618,V=V<R.height?Math.round(Math.max(480,Math.min(650,V*.85))):Math.round(Math.max(480,Math.min(650,R.height*.85))),R=Math.round(V/.618)),B=_.hF(B),R=Math.min(R,Math.max(B.width,320)),V=Math.min(V,Math.max(B.height,480)),B=new _.Yl(R,V);_.yra(this.getContentElement(),B);this.reposition()};
sJ.prototype.reposition=function(){if(_.cn(_.q2(this.JSC$8101_url_),"shadeDialog")=="true"){var B=HeJ(this.getElement()),R=_.hF(this.JSC$8050_dom_.getWindow());B=Math.floor(R.width/2-B.width/2);R=dnb(this);if(R=f7_(R)){var V=R.left?R.left:0;V+=R.right?R.right:0;B=Math.floor(B-V/2)}B=B>0?B:0;R=tF(this.JSC$8050_dom_).y;Qs(this.getElement(),B,R)}else sJ.superClass_.reposition.call(this)};
sJ.prototype.setVisible=function(B){if(B!=this.isVisible()&&this.autoSizeDialog_){var R=this.JSC$8050_dom_.getWindow();B?(this.resizePicker_(),Ka(this).listen(R,"resize",this.resizePicker_),this.iframeLoaded_||Ka(this).listen(R,"keydown",this.handleKeydown_)):(Ka(this).unlisten(R,"resize",this.resizePicker_),this.iframeLoaded_||Ka(this).unlisten(R,"keydown",this.handleKeydown_))}sJ.superClass_.setVisible.call(this,B);u0R(this,new bQY(B))};
sJ.prototype.focus=function(){sJ.superClass_.focus.call(this);if(this.JSC$8101_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8101_iframe_.focus()}catch(B){}};var Sc=function(B,R){R=R===void 0?sJ:R;Ld.call(this,B);this.pickerConstructor=R;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(B=window.location.origin)||(B=window.location.protocol+"//"+window.location.host);B&&this.urlParamMap_.set("origin",B);this.postProcessors_=[]};
_.l(Sc,jP5);Sc.prototype.JSC$8106_disposeOnHide_=!1;
Sc.prototype.build=function(){this.JSC$8007_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8007_appId_);this.getRelayUrl()||this.setRelayUrl(_.On(_.BT(_.oj(_.q2(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var B=new this.pickerConstructor(oW5(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);B.JSC$8083_disposeOnHide_=this.JSC$8106_disposeOnHide_;
B.JSC$8101_appId_=this.JSC$8007_appId_;B.loadedFired_&&Oq_(B);nzG(B,this.callback_);return B};
var BVJ=function(B){B.urlParamMap_.set("multiselectEnabled","true");return B};
Sc.prototype.getHeight=function(){return this.dialogHeight_};
Sc.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
Sc.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
Sc.prototype.getWidth=function(){return this.dialogWidth_};
var Rta=function(B){B.JSC$8106_disposeOnHide_=void 0;return B};
Sc.prototype.setRelayUrl=function(B){this.urlParamMap_.set("parent",B);return this};
var Vba=function(B,R){B.urlParamMap_.set("selectButtonLabel",R);return B};
Sc.prototype.setSize=function(B,R){this.dialogWidth_=B;this.dialogHeight_=R;return this};
Sc.prototype.setTitle=function(B){this.urlParamMap_.set("title",B);return this};
var oW5=function(B){B.postProcessors_.length&&B.urlParamMap_.set("pp",JSON.stringify(B.postProcessors_));B.urlParamMap_.set("nav",tvh(B.nav_));var R=new _.FO(B.getBaseUrl());B.urlParamMap_.forEach(function(V,e){_.A4(R,e,V)});
return R};var pf4=function(B,R){B.name!==void 0?(this.name=B.name,this.code=et5[B.name]):(this.code=B=B.code,this.name=Xfb(B));_.o5.call(this,KIS("%s %s",this.name,R))};
_.eY(pf4,_.o5);var Xfb=function(B){var R=_.M_.findKey(et5,function(V){return B==V});
if(R===void 0)throw Error("lb`"+B);return R},F8={},et5=(F8.AbortError=3,F8.EncodingError=5,F8.InvalidModificationError=9,F8.InvalidStateError=7,F8.NotFoundError=1,F8.NotReadableError=4,F8.NoModificationAllowedError=6,F8.PathExistsError=12,F8.QuotaExceededError=10,F8.SecurityError=2,F8.SyntaxError=8,F8.TypeMismatchError=11,F8);var Y7T=function(B,R){_.Un.call(this,B.type,R);this.event_=B};
_.eY(Y7T,_.Un);var hth=function(B,R,V){V===void 0&&(V=B.size);return B.slice?B.slice(R,V):null};var z7q=new WeakMap,lkd=function(B,R){B=[B];for(var V=R.length-1;V>=0;--V)B.push(typeof R[V],R[V]);return B.join("\v")};_.dNp(function(){if(!_.R5.Blob)return!1;var B=new Uint8Array(100);try{var R=new Blob([B])}catch(V){return!1}return R.size!=100?!1:!0});
var tb2=_.dNp(function(){if(!_.R5.Blob)return!1;var B=new Uint8Array(100);try{var R=new Blob([B])}catch(V){return!1}return hth(R,0,1)===null?!1:!0});_.R5.U3bHHf!=null||(_.R5.U3bHHf=0);_.R5.U3bHHf++;var TgA={};var Zv=void 0;var LnY=Symbol("tb");var rSp=$0("WizInjectionContext_Dispatcher");var cSd=$0("WizInjectionContext_RootElement");var iQd=$0("WizInjectionContext_AppContext"),ASo=$0("WizInjectionContext_ModelRootElement"),sPd=$0("WizInjectionContext_RendererData"),Fnd=$0("WizInjectionContext_InjectingConstructor"),qzp=$0("WizInjectionContext_AsyncDeps"),gjK={};var Pjq=!1;var W4J=Symbol("xb"),Fku=Symbol("yb"),mnp=Symbol("zb"),gzN=Symbol("Ab"),oWd=CR(function(B){return RK(B)&&W4J in B});var ozN={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:l8Z,enableLazyTsx:zGd,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var OJ=Object.assign({},{attributes:{},handleError:function(B){throw B;}},ozN);var p8S=Symbol("Bb"),rU={},e4S=(rU[p8S]=!0,rU.debugName="[component]",rU.getComponentStack=function(){for(var B=[],R=this;R;)YBY(R)&&B.push(R.debugName),R=R.parent;return B},rU.registerSignal=function(){},rU.registerEffect=function(){},rU);var VP=null,XB=!1,jCp=1,hI=Symbol("Cb"),UZ={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var gU=Symbol("Db"),Z$=Symbol("Eb"),YR=Symbol("Fb"),kKo=Object.assign({},UZ,{value:gU,dirty:!0,error:null,equal:h4u,kind:"computed",producerMustRecompute:function(B){return B.value===gU||B.value===Z$},
producerRecomputeValue:function(B){if(B.value===Z$)throw Error("da");var R=B.value;B.value=Z$;var V=SBd(B),e=!1;try{var X=B.computation();eA(null);e=R!==gU&&R!==YR&&X!==YR&&B.equal(R,X)}catch(Y){X=YR,B.error=Y}finally{Hqp(B,V)}e?B.value=R:(B.value=X,B.version++)}});var aNd=function(){throw Error();};var w85=null,fNd=Object.assign({},UZ,{equal:h4u,value:void 0,kind:"signal"});Object.assign({},UZ,{value:gU,dirty:!0,error:null,equal:h4u,kind:"linkedSignal",producerMustRecompute:function(B){return B.value===gU||B.value===Z$},
producerRecomputeValue:function(B){if(B.value===Z$)throw Error("da");var R=B.value;B.value=Z$;var V=SBd(B);try{var e=B.source();var X=B.computation(e,R===gU||R===YR?void 0:{source:B.sourceValue,value:R});B.sourceValue=e}catch(Y){X=YR,B.error=Y}finally{Hqp(B,V)}R!==gU&&X!==YR&&B.equal(R,X)?B.value=R:(B.value=X,B.version++)}});Object.assign({},UZ,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(B){B.schedule!==null&&B.schedule(B.ref)},
hasRun:!1,cleanupFn:function(){}});var xnu=Symbol("Gb"),bJ=Symbol("Hb");var JI=Array.isArray;var AuI;var b62={},sCp=cuo(Object.assign({},{consumerAllowSignalWrites:!0},b62)),bj=cuo(Object.assign({},{consumerAllowSignalWrites:!0},b62));var yP=0,mH=function(){this.queue=new Set};
mH.prototype.remove=function(B){this.queue.delete(B)};
mH.prototype.clear=function(){this.queue.clear()};
var J$J=function(){mH.apply(this,arguments)};
_.l(J$J,mH);J$J.prototype.schedule=function(B){this.queue.add(B)};
J$J.prototype.flush=function(){if(this.queue.size)for(var B=_.h(this.queue),R=B.next();!R.done;R=B.next()){R=R.value;this.queue.delete(R);try{R.run()}catch(V){jub(V)}}};
var UCR=new J$J,$$=function(){mH.apply(this,arguments)};
_.l($$,mH);var NVS=function(){$$.apply(this,arguments)};
_.l(NVS,$$);NVS.prototype.schedule=function(B){B.hasRun?this.queue.add(B):B.run()};
NVS.prototype.flush=function(){if(this.queue.size){var B=this.queue;this.queue=new Set;BVq(B)}};
var ruY=new NVS,GLR=function(){$$.apply(this,arguments)};
_.l(GLR,$$);GLR.prototype.schedule=function(B){var R=this;return _.W(function(V){if(V.nextAddress==1)return B.hasRun?V.jumpTo(2):_.U(V,Promise.resolve(),3);if(V.nextAddress!=2)return B.run(),V.return();R.queue.add(B);_.b3(V)})};
GLR.prototype.flush=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1){if(!B.queue.size)return V.return();R=B.queue;B.queue=new Set;return _.U(V,Promise.resolve(),2)}BVq(R);_.b3(V)})};
var $n_=new GLR,y$v=function(){$$.apply(this,arguments)};
_.l(y$v,$$);y$v.prototype.schedule=function(B){this.queue.add(B)};
y$v.prototype.flush=function(){this.queue.size&&BVq(this.queue)};
var ZqI=new y$v,u0Z=[ruY,UCR,ZqI,$n_],S7v=[ruY,ZqI,$n_],PNq=[];w85=function(){Oqo();for(var B=_.h(PNq),R=B.next();!R.done;R=B.next())R=R.value,R()};
var jub=eq;var HU=Symbol("Mb");var SA=null,XfI,pf5=null,Y7Y;var Ca={},H6R=Object.assign({},UZ,(Ca[W4J]=!0,Ca.effectType=Fku,Ca.isResettableContext=!0,Ca.producerNode=void 0,Ca.hasRun=!1,Ca.effectFn=null,Ca.consumerIsAlwaysLive=!0,Ca.consumerAllowSignalWrites=!0,Ca.consumerMarkedDirty=CNo,Ca.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(XB)throw Error("Nb");this.dirty=!1;if(!this.hasRun||Unp(this)){this.hasRun=!0;QPI(this);var B=mq(this),R=SBd(this);R4Y("effectRun",this.debugName);try{OJ.enableContextBasedComponentStacks?this.effectFn():fW(this.effectFn,
this.componentStack)}catch(V){throw OJ.enableContextBasedComponentStacks&&kR(V),V;}finally{VCd("effectRun",this.debugName),Hqp(this,R),mq(B)}}}},Ca.componentStack=void 0,Ca.debugName="[effect]",Ca[Symbol.dispose]=function(){tCp(this);
if(pW(this))for(var B=0;B<this.producerNode.length;B++)WkZ(this.producerNode[B],this.producerIndexOfThis[B]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);B=_.h(S7v);for(var R=B.next();!R.done;R=B.next())R.value.remove(this);Ejd(this)},Ca));var W4q=Object.assign({},H6R,{effectType:mnp});var b6d=Object.assign({},H6R,{effectType:Fku});var J$q=Symbol("Ob");var $CA=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var uJ=Symbol("Pb");var tS=function(){},GM=function(B){this.props=B;
this.__unmounted=!1};
GM.prototype.didPatch=function(){};
GM.prototype.didMount=function(){};
GM.prototype.didUnmount=function(){};
GM.prototype.didUpdate=function(){};var NVK={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},UCZ={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}]}},iUZ={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},S7u=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],y$u={"*":{async:1,dir:0,loading:2,target:3}};var MbJ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,PT={},Mbq=(PT[1]=null,PT[2]=function(B,R){return R instanceof zm?dc(R):Gm.toString()},PT[3]=function(B,R){return JR(R)?_.j4(R):MbJ.test(String(R))?String(R):Gm.toString()},PT[4]=function(B,R){return R instanceof p$?_.hR(R):Gm.toString()},PT[5]=function(B,R){return String(R)},PT[7]=null,PT[8]=null,PT[10]=null,PT);var tQA=Symbol("Sb");var uVx=function(B){var R=kL4,V=B,e="",X="",Y=1;B<0&&(B=-B);if(B===Infinity)B=(Infinity*Math.sign(V)).toString();else{for(var t=0;t<DCa.length;t++){var b=DCa[t];Y=R[b];if(B>=Y||Y<=1&&B>.1*Y){e=b;break}}e?(e+="B",X=" "):Y=1;B=Math.round(V/Y*10)/10+X+e}return B},DCa="Y Z E P T G M K  m u n".split(" "),kL4={"":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};_.ft2=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 ev={};RegExp.prototype.hasOwnProperty("sticky");var nWd=function(B){B=String(B);for(var R=function(e,X,Y){for(var t=Math.min(X.length-Y,e.length),b=0;b<t;b++){var J=X[Y+b];if(e[b]!==("A"<=J&&J<="Z"?J.toLowerCase():J))return!1}return!0},V=0;(V=B.indexOf("<",V))!=-1;){if(R("\x3c/script",B,V)||R("\x3c!--",B,V))return"zSoyz";
V+=1}return B};var vU={default:"__default"};var dC5=Object.prototype.hasOwnProperty;ftd.prototype=Object.create(null);var P5=xCo();var gA=null;var su5=function(B){this.created=[];this.deleted=[];this.node=B};var F4_=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var B=this,R=B;B;)R=B,B=B.parentNode;return R};var vWK=function(B,R){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=B;this.key=R;this.text=void 0};var QP=null,qW=null,IK=null,AI=null,q7_=[],Quu=ItY,FB=[],rA=[],hqp=function(B){return r$o(function(R,V,e){IK=qW=R;qW=null;V(e);EWd(null);qW=IK;IK=IK.parentNode;return R},B)}(),YsN=function(B){return r$o(function(R,V,e){var X={nextSibling:R};
qW=X;V(e);IK&&EWd(R.nextSibling);return X===qW?null:qW},B)}();var Zm=[],Z6u=0;var CW=new ftd;var M9=new ftd;var ltG=xCo(),Pfd=ltG[vU.default],uyY=ltG.style,CfK=["focusin","focusout"];var vDK=function(){},knx=function(){},qd5=function(){},IhI=function(){};var nW=Symbol("Zb");var X5p,ebx=VGp;var pQ=Symbol("$b");var GnS={};var QqN=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(" ")),
EDu=new Set(["a","font","script","style","title"]);var JS={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var jv=null,Uz=function(B,R){GM.call(this,B);var V=this;this.functionComponent=R;this.hooks=[];this.hookCounter=0;this.disposeEffects=dA(function(e){V.effectContext=e;_.aK(function(){zbx(V,V.el)})},OJ.alwaysTrackContexts||!!Zv)};
_.l(Uz,GM);Uz.prototype.render=function(B){var R=jv;jv=this;this.hookCounter=0;var V=eA(bj),e=mq(this.effectContext);try{return R4Y("render",this.componentName),this.functionComponent(B)}finally{VCd("render",this.componentName),mq(e),eA(V),jv=R}};
_.mh.Object.defineProperties(Uz.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return Vbp(this.functionComponent)}}});var cKN=Symbol("nc"),xex=function(B,R,V){this.kind=B;this.props=R;this.children=V};
_.l(xex,tS);xex.prototype.render=function(){return TnY(this.kind,this.props,this.children)};
xex.prototype.getChildren=function(){return this.children};var iE5=[];aNd=function(B){throw Error("sb`"+B.debugName);};
(function(){var B=gA;gA=function(R){B==null||B(R);sqq(R)}})();var zt_=void 0,atR={},dC4=new WeakMap,FAS={getComponent:function(B){if(B.hasAttribute("ng-version"))return atR;if(!B.__wizComponent)return null;B=B.__wizComponent;dC4.set(B.propsAndState,B);return B.propsAndState},
getDirectiveMetadata:function(B){if(B===atR)return{framework:"wiz",name:"<Root>",props:{}};B=dC4.get(B);if(!B)throw Error("oc");return{framework:"wiz",name:B.name,props:Object.fromEntries(Object.keys(B.props).map(function(R){return[R,R]}))}},
"\u0275setProfiler":function(B){var R;(R=zt_)==null||R();zt_=nz_(function(){B(2)})},
isSignal:function(B){return typeof B==="function"&&B[hI]!==void 0}};var gDo={nonNullableCondIsNull:function(){return Error("sc")}};_.N.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.N.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.N.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var nDu=function(){this.map=new Map};
nDu.prototype.push=function(B,R){var V=this.map;V.has(B)&&(this.multi||(this.multi=new Map),this.multi.set(R,V.get(B)));V.set(B,R)};
nDu.prototype.pop=function(B){var R=this.map,V=R.get(B),e;V!==void 0&&((e=this.multi)==null?0:e.has(V))?(R.set(B,this.multi.get(V)),this.multi.delete(V)):R.delete(B);return V};var RWx={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(B){return Error("uc`"+B)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(B,R){return Error("yc`"+B+"`"+R)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(B){return Error("zc`"+B)},
USE_ELEMENT_NOT_ASSIGNED:function(B){return Error("Ac`"+String(B))}};X5p=LAd;var t65=Symbol("Bc");fhd({beforeRender:function(B){var R=mq(B.effectContext);try{var V;((V=B.__syncEffects)==null?0:V.length)&&bnd(B.__syncEffects)}finally{mq(R)}},
didPatch:function(B){var R=mq(B.effectContext);try{var V;((V=B.__syncEffects)==null?0:V.length)&&bnd(B.__syncEffects)}finally{mq(R)}},
didUnmount:function(B){var R;((R=B.hooks)==null?0:R.length)&&B.hooks.forEach(Whd)}});var wf5,TVa,xC_;wf5=_.R5.window;_.xj=(wf5==null?void 0:(TVa=wf5.yt)==null?void 0:TVa.config_)||(wf5==null?void 0:(xC_=wf5.ytcfg)==null?void 0:xC_.data_)||{};_.mk("yt.config_",_.xj);var L42={},NBp=[];_.H8=function(B){var R=_.HB.apply(1,arguments);var V=Error.call(this,B);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.args=[].concat(_.MI(R));Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(_.H8,Error);var k3x=function(B,R,V){this.actionName=B;this.optionalAction=R===void 0?!1:R;this.args=V===void 0?null:V;this.returnValue=[]};_.P=function(B){this.name=B};_.c5=new _.P("signalAction");var apo=/^[\w.]*$/,M6q={q:!0,search_query:!0},Hnx=String(SqN);var na;na=Symbol("Cc");_.u0=function(B){this.name=B};
_.u0.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var dK_=function(B){this.key=B},xKK=function(B){this.deferredKey=B},TBo=function(){var B=this;
this.providers=new Map;this.JSC$8322_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(B.providers)}}};
TBo.prototype.addProvider=function(B){this.providers.set(B.provide,B);var R=this.JSC$8322_deferred.get(B.provide);if(R)try{R.resolver(this.resolve(B.provide))}catch(V){R.rejector(V)}};
TBo.prototype.resolve=function(B){return B instanceof xKK?vWS(this,B):B instanceof dK_?K4h(this,B.key,[],!0):K4h(this,B,[])};
var vWS=function(B,R){R=R.deferredKey;if(B.JSC$8322_deferred.has(R))return B.JSC$8322_deferred.get(R).promise;var V={};V.promise=new Promise(function(e,X){V.resolver=e;V.rejector=X});
B.JSC$8322_deferred.set(R,V);return V.promise},K4h=function(B,R,V,e){e=e===void 0?!1:e;
if(V.indexOf(R)>-1)throw Error("Dc`"+R);if(B.cachedValues.has(R))return B.cachedValues.get(R);if(!B.providers.has(R)){if(e)return;throw Error("Ec`"+R);}e=B.providers.get(R);V.push(R);if(e.useValue!==void 0)var X=e.useValue;else if(e.useFactory)X=e[na]?ItT(B,e[na],V):[],X=e.useFactory.apply(e,_.MI(X));else if(e.useClass){X=e.useClass;var Y=X[na]?ItT(B,X[na],V):[];X=new (Function.prototype.bind.apply(X,[null].concat(_.MI(Y))))}else throw Error("Fc`"+R);V.pop();e.skipCache||B.cachedValues.set(R,X);return X},
ItT=function(B,R,V){return R?R.map(function(e){return e instanceof dK_?K4h(B,e.key,V,!0):K4h(B,e,V)}):[]};var wwI;var AK=new _.u0("ENDPOINT_HANDLER_TOKEN");_.ie=new _.P("urlEndpoint");var EW2=function(){this.data=[];this.cachedPackedInt52=-1};
EW2.prototype.set=function(B,R){R=R===void 0?!0:R;0<=B&&B<52&&Number.isInteger(B)&&this.data[B]!==R&&(this.data[B]=R,this.cachedPackedInt52=-1)};
EW2.prototype.get=function(B){return!!this.data[B]};
var Quv=function(B){B.cachedPackedInt52===-1&&(B.cachedPackedInt52=B.data.reduce(function(R,V,e){return R+(V?Math.pow(2,e):0)},0));
return B.cachedPackedInt52};var g_p=function(B){var R=q7G;B=B===void 0?_.qN("yt.ads.biscotti.lastId_")||"":B;var V=Object,e=V.assign,X={};X.dt=AF2;X.flash="0";a:{try{var Y=R.JSC$8328_win_.top.location.href}catch(kd){Y=2;break a}Y=Y?Y===R.doc_.location.href?0:1:2}X=(X.frm=Y,X);try{X.u_tz=-(new Date).getTimezoneOffset();var t=t===void 0?qu:t;try{var b=t.history.length}catch(kd){b=0}X.u_his=b;var J;X.u_h=(J=qu.screen)==null?void 0:J.height;var G;X.u_w=(G=qu.screen)==null?void 0:G.width;var y;X.u_ah=(y=qu.screen)==null?void 0:y.availHeight;
var S;X.u_aw=(S=qu.screen)==null?void 0:S.availWidth;var M;X.u_cd=(M=qu.screen)==null?void 0:M.colorDepth}catch(kd){}b=R.JSC$8328_win_;try{var f=b.screenX;var z=b.screenY}catch(kd){}try{var T=b.outerWidth;var L=b.outerHeight}catch(kd){}try{var Q=b.innerWidth;var q=b.innerHeight}catch(kd){}try{var m=b.screenLeft;var g=b.screenTop}catch(kd){}try{Q=b.innerWidth,q=b.innerHeight}catch(kd){}try{var Vu=b.screen.availWidth;var n=b.screen.availTop}catch(kd){}f=[m,g,f,z,Vu,n,T,L,Q,q];z=S0S(!1,R.JSC$8328_win_.top);
T={};var Yd=Yd===void 0?_.R5:Yd;L=new EW2;"SVGElement"in Yd&&"createElementNS"in Yd.document&&L.set(0);Q=Ahv();Q["allow-top-navigation-by-user-activation"]&&L.set(1);Q["allow-popups-to-escape-sandbox"]&&L.set(2);Yd.crypto&&Yd.crypto.subtle&&L.set(3);"TextDecoder"in Yd&&"TextEncoder"in Yd&&L.set(4);Yd=Quv(L);R=(T.bc=Yd,T.bih=z.height,T.biw=z.width,T.brdim=f.join(),T.vis=VrI(R.doc_),T.wgl=!!qu.WebGLRenderingContext,T);V=e.call(V,X,R);V.ca_type="image";B&&(V.bid=B);return V},q7G=new function(){var B=
window.document;
this.JSC$8328_win_=window;this.doc_=B};
_.mk("yt.ads_.signals_.getAdSignalsString",function(B){return k8Y(g_p(B))});_.VG();navigator.userAgent.indexOf(" (CrKey ");var E_q="XMLHttpRequest"in _.R5?function(){return new XMLHttpRequest}:null;var c$R="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),A$T=[].concat(_.MI(c$R),["client_dev_set_cookie"]);var rmN={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"},cm_="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(_.MI(c$R)),oaZ=!1,inS=_.ZnY,n_u=FhY;var a9x=[{messageFn:function(B){return"Cannot read property '"+B.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(B){return"Cannot call '"+B.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(B){return B.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var i6a={messageWeights:[],callbackWeights:[{callback:e6Y,weight:500},{callback:XJA,weight:500}]};var su4=function(){this.callbackWeights=[];this.messageWeights=[]},F4G,zIY=function(){if(!F4G){var B=F4G=new su4;
B.messageWeights.length=0;B.callbackWeights.length=0;i5p(B,i6a)}return F4G},i5p=function(B,R){R.messageWeights&&B.messageWeights.push.apply(B.messageWeights,R.messageWeights);
R.callbackWeights&&B.callbackWeights.push.apply(B.callbackWeights,R.callbackWeights)};_.eY(_.Ju,_.Hn);_.Ju.prototype.subscribe=function(B,R,V){var e=this.topics_[B];e||(e=this.topics_[B]=[]);var X=this.JSC$8352_key_;this.subscriptions_[X]=B;this.subscriptions_[X+1]=R;this.subscriptions_[X+2]=V;this.JSC$8352_key_=X+3;e.push(X);return X};
var r$_=function(B){var R=x9u,V=!1,e=R.subscribe("handleError",function(X){V||(V=!0,this.unsubscribeByKey(e),B.apply(void 0,arguments))},R)};
_.Ju.prototype.unsubscribe=function(B,R,V){if(B=this.topics_[B]){var e=this.subscriptions_;if(B=B.find(function(X){return e[X+1]==R&&e[X+2]==V}))return this.unsubscribeByKey(B)}return!1};
_.Ju.prototype.unsubscribeByKey=function(B){var R=this.subscriptions_[B];if(R){var V=this.topics_[R];this.publishDepth_!=0?(this.pendingKeys_.push(B),this.subscriptions_[B+1]=function(){}):(V&&_.uo(V,B),delete this.subscriptions_[B],delete this.subscriptions_[B+1],delete this.subscriptions_[B+2])}return!!R};
_.Ju.prototype.publish=function(B,R){var V=this.topics_[B];if(V){var e=Array(arguments.length-1),X=arguments.length,Y;for(Y=1;Y<X;Y++)e[Y-1]=arguments[Y];if(this.async_)for(Y=0;Y<V.length;Y++)X=V[Y],gWR(this.subscriptions_[X+1],this.subscriptions_[X+2],e);else{this.publishDepth_++;try{for(Y=0,X=V.length;Y<X&&!this.isDisposed();Y++){var t=V[Y];this.subscriptions_[t+1].apply(this.subscriptions_[t+2],e)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;V=this.pendingKeys_.pop();)this.unsubscribeByKey(V)}}return Y!=
0}return!1};
var gWR=function(B,R,V){_.k3(function(){B.apply(R,V)})};
_.Ju.prototype.clear=function(B){if(B){var R=this.topics_[B];R&&(R.forEach(this.unsubscribeByKey,this),delete this.topics_[B])}else this.subscriptions_.length=0,this.topics_={}};
_.Ju.prototype.getCount=function(B){if(B){var R=this.topics_[B];return R?R.length:0}B=0;for(R in this.topics_)B+=this.getCount(R);return B};
_.Ju.prototype.disposeInternal=function(){_.Ju.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var x9u=new _.Ju;var Ru=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Ru,_.qS);Ru.prototype.getColdHashData=function(){return _.xU(this,3)};
Ru.prototype.getHotHashData=function(){return _.xU(this,5)};
Ru.prototype.setHotHashData=function(B){return _.bg(this,5,B)};var H0A=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(H0A,_.qS);var PpK=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(PpK,_.qS);_.p=PpK.prototype;_.p.getDeviceId=function(){return _.xU(this,6)};
_.p.getExperimentIds=function(B){var R=_.Hy(this,9,_.l4,3,!0);r4(R,B);return R[B]};
_.p.getPlayerType=function(){return _.LU(this,36)};
_.p.setHomeGroupInfo=function(B){return _.Ra(this,81,B)};
_.p.clearLocationPlayabilityToken=function(){return _.Bf(this,89)};var Ud=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Ud,_.qS);Ud.prototype.setKey=function(B){return _.bg(this,1,B)};
Ud.prototype.getValue=function(){return KU(this,2,uX_)};
var uX_=[2,3,4,5,6];var Z6v=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Z6v,_.qS);Z6v.prototype.setTrackingParams=function(B){return _.Bf(this,1,_.Fa(B,!1))};var npd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(npd,_.qS);var DdI=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(DdI,_.qS);DdI.prototype.getExperimentIds=function(B){var R=_.Hy(this,5,_.zi,3,!0);r4(R,B);return R[B]};var SG=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(SG,_.qS);SG.prototype.getToken=function(){return _.J4(this,2)};
SG.prototype.setToken=function(B){return _.bg(this,2,B)};var Gn=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Gn,_.qS);Gn.prototype.setSafetyMode=function(B){return _.ou(this,5,B)};var jG=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(jG,_.qS);jG.prototype.setClient=function(B){return _.Ra(this,1,B)};var kpY={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 MOY;_.Kk=function(){var B=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.R5.addEventListener("beforeinstallprompt",function(R){R.preventDefault();B.deferredInstallPrompt=R});
_.R5.addEventListener("appinstalled",function(){B.appInstalledEventFired=!0},{once:!0})};
MOY=function(){if(!_.R5.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.R5.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.R5.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.R5.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.R5.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(B){return"WEB_DISPLAY_MODE_UNKNOWN"}};var zeo=function(){this.syncHeaders=!0},aId=function(B){var R={},V=[];
"USER_SESSION_ID"in _.xj&&V.push({key:"u",value:_.vE("USER_SESSION_ID")});if(V=$RA(V))R.Authorization=V,V=B=B==null?void 0:B.sessionIndex,V===void 0&&(V=Number(_.vE("SESSION_INDEX",0)),V=isNaN(V)?0:V),_.k("voice_search_auth_header_removal")||(R["X-Goog-AuthUser"]=V.toString()),"INNERTUBE_HOST_OVERRIDE"in _.xj||(R["X-Origin"]=window.location.origin),B===void 0&&"DELEGATED_SESSION_ID"in _.xj&&(R["X-Goog-PageId"]=_.vE("DELEGATED_SESSION_ID"));return R};var mCT={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Oe=_.qN("ytglobal.prefsUserPrefsPrefs_")||{},$Ch;_.mk("ytglobal.prefsUserPrefsPrefs_",Oe);_.ok=function(){this.cookieName=_.vE("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.vE("ALT_PREF_COOKIE_DOMAIN","youtube.com");var B=_.UB.get(this.cookieName,void 0);B&&this.parse(B)};
_.UV=function(){$Ch||($Ch=new _.ok);return $Ch};
_.ok.prototype.get=function(B,R){CfS(B);Pf5(B);B=Oe[B]!==void 0?Oe[B].toString():null;return B!=null?B:R?R:""};
_.ok.prototype.set=function(B,R){CfS(B);Pf5(B);if(R==null)throw Error("Ic");Oe[B]=R.toString()};
_.ok.prototype.getFlag=function(B){return!!((nW5("f"+(Math.floor(B/31)+1))||0)&1<<B%31)};
_.Nd=function(B,R,V){B="f"+(Math.floor(R/31)+1);R=1<<R%31;var e=nW5(B)||0;e=V?e|R:e&~R;e===0?delete Oe[B]:(V=e.toString(16),Oe[B]=V.toString())};
_.ok.prototype.remove=function(B){CfS(B);Pf5(B);delete Oe[B]};
_.ok.prototype.save=function(){var B=!0;_.k("web_secure_pref_cookie_killswitch")&&(B=!1);_.Nn(this.cookieName,this.dump(),63072E3,this.cookieDomain,B)};
_.ok.prototype.clear=function(){_.M_.clear(Oe)};
_.ok.prototype.dump=function(){var B=[],R;for(R in Oe)Oe.hasOwnProperty(R)&&B.push(R+"="+encodeURIComponent(String(Oe[R])));return B.join("&")};
var Pf5=function(B){if(/^f([1-9][0-9]*)$/.test(B))throw Error("Jc`"+B);},CfS=function(B){if(!/^\w+$/.test(B))throw Error("Kc`"+B);
},nW5=function(B){B=Oe[B]!==void 0?Oe[B].toString():null;
return B!=null&&/^[A-Fa-f0-9]+$/.test(B)?parseInt(B,16):null};
_.ok.prototype.parse=function(B){B=decodeURIComponent(B).split("&");for(var R=0;R<B.length;R++){var V=B[R].split("="),e=V[0];(V=V[1])&&(Oe[e]=V.toString())}};var UrS={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"},fIZ={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},lI_={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},GEd={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var nc;_.BW=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.kD=function(B,R,V){return B.addJob(R,0,V)};
_.BW.prototype.addLowPriorityJob=function(B,R){return this.addJob(B,1,R)};
_.kx=function(B,R,V){return B.addJob(R,2,V)};
_.db=function(B,R,V){return B.addJob(R,3,V)};
_.ua=function(B,R,V){return B.addJob(R,4,V)};
nc=function(B){var R=_.qN("yt.scheduler.instance.addImmediateJob");R?R(B):B()};
_.BW.prototype.debounce=function(B,R,V){var e=this,X=0,Y=function(){X&&e.cancelJob(X);X=e.addJob(B,R,V);e.cancelDebouncedJobMap.set(Y,X)};
return Y};
_.BW.prototype.cancelThrottle=function(B){(B=this.cancelThrottledJobMap.get(B))&&B()};var Rk=function(){_.BW.apply(this,arguments)};
_.l(Rk,_.BW);_.TT=function(){Rk.instance||(Rk.instance=new Rk);return Rk.instance};
Rk.prototype.addJob=function(B,R,V){V!==void 0&&Number.isNaN(Number(V))&&(V=void 0);var e=_.qN("yt.scheduler.instance.addJob");return e?e(B,R,V):V===void 0?(B(),NaN):_.pq(B,V||0)};
Rk.prototype.cancelJob=function(B){if(B===void 0||!Number.isNaN(Number(B))){var R=_.qN("yt.scheduler.instance.cancelJob");R?R(B):_.hu(B)}};
Rk.prototype.start=function(){var B=_.qN("yt.scheduler.instance.start");B&&B()};
Rk.prototype.pause=function(){var B=_.qN("yt.scheduler.instance.pause");B&&B()};
_.dV=_.TT();_.Mn.prototype.set=function(B,R){R===void 0?this.mechanism.remove(B):this.mechanism.set(B,(0,_.aB)(R))};
_.Mn.prototype.get=function(B){try{var R=this.mechanism.get(B)}catch(V){return}if(R!==null)try{return JSON.parse(R)}catch(V){throw"Storage: Invalid value was encountered";}};
_.Mn.prototype.remove=function(B){this.mechanism.remove(B)};var V8=function(B){this.mechanism=B};
_.eY(V8,_.Mn);var uyT=function(B){this.data=B},O6_=function(B){return B===void 0||B instanceof uyT?B:new uyT(B)};
V8.prototype.set=function(B,R){V8.superClass_.set.call(this,B,O6_(R))};
V8.prototype.getWrapper=function(B){B=V8.superClass_.get.call(this,B);if(B===void 0||B instanceof Object)return B;throw"Storage: Invalid value was encountered";};
V8.prototype.get=function(B){if(B=this.getWrapper(B)){if(B=B.data,B===void 0)throw"Storage: Invalid value was encountered";}else B=void 0;return B};_.eY(kz,V8);_.oDG=function(B){var R=B.creation;B=B.expiration;return!!B&&B<_.VG()||!!R&&R>_.VG()};
kz.prototype.set=function(B,R,V){if(R=O6_(R)){if(V){if(V<_.VG()){kz.prototype.remove.call(this,B);return}R.expiration=V}R.creation=_.VG()}kz.superClass_.set.call(this,B,R)};
kz.prototype.getWrapper=function(B,R){var V=kz.superClass_.getWrapper.call(this,B);if(V)if(!R&&_.oDG(V))kz.prototype.remove.call(this,B);else return V};var eP=function(){};
eP.prototype.next=function(){return XC};
var XC={done:!0,value:void 0},pg=function(B){return{value:B,done:!1}};
eP.prototype.__iterator__=function(){return this};
_.Bn5=function(B){if(B instanceof eP)return B;if(typeof B.__iterator__=="function")return B.__iterator__(!1);if(_.R4(B)){var R=0,V=new eP;V.next=function(){for(;;){if(R>=B.length)return XC;if(R in B)return pg(B[R++]);R++}};
return V}throw Error("Lc");};var Rb_=function(B){if(B instanceof YX||B instanceof hw||B instanceof tw)return B;if(typeof B.next=="function")return new YX(function(){return B});
if(typeof B[Symbol.iterator]=="function")return new YX(function(){return B[Symbol.iterator]()});
if(typeof B.__iterator__=="function")return new YX(function(){return B.__iterator__()});
throw Error("Mc");},YX=function(B){this.func_=B};
YX.prototype.__iterator__=function(){return new hw(this.func_())};
YX.prototype[Symbol.iterator]=function(){return new tw(this.func_())};
YX.prototype.toEs6=function(){return new tw(this.func_())};
var hw=function(B){this.JSC$8436_iter_=B};
_.l(hw,eP);hw.prototype.next=function(){return this.JSC$8436_iter_.next()};
hw.prototype[Symbol.iterator]=function(){return new tw(this.JSC$8436_iter_)};
hw.prototype.toEs6=function(){return new tw(this.JSC$8436_iter_)};
var tw=function(B){YX.call(this,function(){return B});
this.JSC$8439_iter_=B};
_.l(tw,YX);tw.prototype.next=function(){return this.JSC$8439_iter_.next()};var VGa=function(){};var WW=function(){};
_.eY(WW,VGa);WW.prototype.getCount=function(){for(var B=0,R=_.h(this),V=R.next();!V.done;V=R.next())B++;return B};
WW.prototype[Symbol.iterator]=function(){return Rb_(this.__iterator__(!0)).toEs6()};
WW.prototype.clear=function(){var B=Array.from(this);B=_.h(B);for(var R=B.next();!R.done;R=B.next())this.remove(R.value)};_.eY(DN,WW);_.p=DN.prototype;_.p.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var B=this.storage_;if(B)try{B.setItem("__sak","1");B.removeItem("__sak");var R=!0}catch(V){R=V instanceof DOMException&&(V.name==="QuotaExceededError"||V.code===22||V.code===1014||V.name==="NS_ERROR_DOM_QUOTA_REACHED")&&B&&B.length!==0}else R=!1;this.cachedIsStorageAvailable_=R}return this.cachedIsStorageAvailable_};
_.p.set=function(B,R){bC(this);try{this.storage_.setItem(B,R)}catch(V){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.p.get=function(B){bC(this);B=this.storage_.getItem(B);if(typeof B!=="string"&&B!==null)throw"Storage mechanism: Invalid value was encountered";return B};
_.p.remove=function(B){bC(this);this.storage_.removeItem(B)};
_.p.getCount=function(){bC(this);return this.storage_.length};
_.p.__iterator__=function(B){bC(this);var R=0,V=this.storage_,e=new eP;e.next=function(){if(R>=V.length)return XC;var X=V.key(R++);if(B)return pg(X);X=V.getItem(X);if(typeof X!=="string")throw"Storage mechanism: Invalid value was encountered";return pg(X)};
return e};
_.p.clear=function(){bC(this);this.storage_.clear()};
_.p.key=function(B){bC(this);return this.storage_.key(B)};
var bC=function(B){if(B.storage_==null)throw Error("Nc");B.isAvailable()||eq(Error("Nc"))};_.eY(SId,DN);_.eY(HpA,DN);_.eY(fq,WW);fq.prototype.set=function(B,R){this.mechanism_.set(this.JSC$8454_prefix_+B,R)};
fq.prototype.get=function(B){return this.mechanism_.get(this.JSC$8454_prefix_+B)};
fq.prototype.remove=function(B){this.mechanism_.remove(this.JSC$8454_prefix_+B)};
fq.prototype.__iterator__=function(B){var R=this.mechanism_[Symbol.iterator](),V=this,e=new eP;e.next=function(){var X=R.next();if(X.done)return X;for(X=X.value;X.slice(0,V.JSC$8454_prefix_.length)!=V.JSC$8454_prefix_;){X=R.next();if(X.done)return X;X=X.value}return pg(B?X.slice(V.JSC$8454_prefix_.length):V.mechanism_.get(X))};
return e};_.vf=function(B){this.expiringStorage_=(B=_.MkN(B))?new kz(B):null;this.JSC$8458_domain_=document.domain||window.location.hostname};
_.vf.prototype.set=function(B,R,V,e){V=V||31104E3;this.remove(B);if(this.expiringStorage_)try{this.expiringStorage_.set(B,R,Date.now()+V*1E3);return}catch(Y){}var X="";if(e)try{X=escape((0,_.aB)(R))}catch(Y){return}else X=escape(R);_.Nn(B,X,V,this.JSC$8458_domain_)};
_.vf.prototype.get=function(B,R){var V=void 0,e=!this.expiringStorage_;if(!e)try{V=this.expiringStorage_.get(B)}catch(X){e=!0}if(e&&(V=_.UB.get(B,void 0))&&(V=unescape(V),R))try{V=JSON.parse(V)}catch(X){this.remove(B),V=void 0}return V};
_.vf.prototype.remove=function(B){this.expiringStorage_&&this.expiringStorage_.remove(B);_.bpN(B,"/",this.JSC$8458_domain_)};
_.vf.prototype.getCreationTime=function(B){return this.expiringStorage_&&(B=(this.expiringStorage_.getWrapper(B)||{}).creation,typeof B==="number")?B:null};var Drd=function(){var B;return function(){B||(B=new _.vf("ytidb"));return B}}();var lg_;_.zK=[];lg_=!1;var rZp=z6S||agd;var Jw={},eb4=(Jw.AUTH_INVALID="No user identifier specified.",Jw.EXPLICIT_ABORT="Transaction was explicitly aborted.",Jw.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Jw.MISSING_INDEX="Index not created.",Jw.MISSING_OBJECT_STORES="Object stores not created.",Jw.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Jw.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Jw.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Jw.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Jw.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Jw.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Jw.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Jw),jP={},X5a=(jP.AUTH_INVALID="ERROR",jP.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",jP.EXPLICIT_ABORT="IGNORED",
jP.IDB_NOT_SUPPORTED="ERROR",jP.MISSING_INDEX="WARNING",jP.MISSING_OBJECT_STORES="ERROR",jP.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",jP.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",jP.QUOTA_EXCEEDED="WARNING",jP.QUOTA_MAYBE_EXCEEDED="WARNING",jP.UNKNOWN_ABORT="WARNING",jP.INCOMPATIBLE_DB_VERSION="WARNING",jP),Uc={},p5o=(Uc.AUTH_INVALID=!1,Uc.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Uc.EXPLICIT_ABORT=!1,Uc.IDB_NOT_SUPPORTED=!1,Uc.MISSING_INDEX=!1,Uc.MISSING_OBJECT_STORES=!1,Uc.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Uc.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Uc.QUOTA_EXCEEDED=!1,Uc.QUOTA_MAYBE_EXCEEDED=!0,Uc.UNKNOWN_ABORT=!0,Uc.INCOMPATIBLE_DB_VERSION=!1,Uc),Lq=function(B,R,V,e,X){R=R===void 0?{}:R;V=V===void 0?eb4[B]:V;e=e===void 0?X5a[B]:e;X=X===void 0?p5o[B]:X;_.H8.call(this,V,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:B},R));this.type=B;this.message=V;this.level=e;this.retryable=X;Object.setPrototypeOf(this,Lq.prototype)};
_.l(Lq,_.H8);var Ydo=function(B,R){Lq.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:R,foundObjectStores:B},eb4.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Ydo.prototype)};
_.l(Ydo,Lq);var wJo=function(B,R){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.index=B;this.objectStore=R;Object.setPrototypeOf(this,wJo.prototype)};
_.l(wJo,Error);var TTx=["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 EB=function(B){this.executor=B},IC=function(B){var R=this;
this.state={status:"PENDING"};this.JSC$8486_onFulfilled=[];this.JSC$8486_onRejected=[];B=B.executor;var V=function(X){if(R.state.status==="PENDING"){R.state={status:"FULFILLED",value:X};X=_.h(R.JSC$8486_onFulfilled);for(var Y=X.next();!Y.done;Y=X.next())Y=Y.value,Y()}},e=function(X){if(R.state.status==="PENDING"){R.state={status:"REJECTED",
reason:X};X=_.h(R.JSC$8486_onRejected);for(var Y=X.next();!Y.done;Y=X.next())Y=Y.value,Y()}};
try{B(V,e)}catch(X){e(X)}};
IC.all=function(B){return new IC(new EB(function(R,V){var e=[],X=B.length;X===0&&R(e);for(var Y={i$jscomp$504:0};Y.i$jscomp$504<B.length;Y={i$jscomp$504:Y.i$jscomp$504},++Y.i$jscomp$504)IC.resolve(B[Y.i$jscomp$504]).then(function(t){return function(b){e[t.i$jscomp$504]=b;X--;X===0&&R(e)}}(Y)).catch(function(t){V(t)})}))};
IC.resolve=function(B){return new IC(new EB(function(R,V){B instanceof IC?B.then(R,V):R(B)}))};
IC.reject=function(B){return new IC(new EB(function(R,V){V(B)}))};
IC.prototype.then=function(B,R){var V=this,e=B!=null?B:vad,X=R!=null?R:LcZ;return new IC(new EB(function(Y,t){V.state.status==="PENDING"?(V.JSC$8486_onFulfilled.push(function(){hbv(V,V,e,Y,t)}),V.JSC$8486_onRejected.push(function(){tGR(V,V,X,Y,t)})):V.state.status==="FULFILLED"?hbv(V,V,e,Y,t):V.state.status==="REJECTED"&&tGR(V,V,X,Y,t)}))};
IC.prototype.catch=function(B){return this.then(void 0,B)};
var hbv=function(B,R,V,e,X){try{if(B.state.status!=="FULFILLED")throw Error("Qc");var Y=V(B.state.value);Y instanceof IC?WAG(B,R,Y,e,X):e(Y)}catch(t){X(t)}},tGR=function(B,R,V,e,X){try{if(B.state.status!=="REJECTED")throw Error("Rc");
var Y=V(B.state.reason);Y instanceof IC?WAG(B,R,Y,e,X):e(Y)}catch(t){X(t)}},WAG=function(B,R,V,e,X){R===V?X(new TypeError("Sc")):V.then(function(Y){Y instanceof IC?WAG(B,R,Y,e,X):e(Y)},function(Y){X(Y)})};var Np;Np=window;_.P8=Np.ytcsi&&Np.ytcsi.now?Np.ytcsi.now:Np.performance&&Np.performance.timing&&Np.performance.now&&Np.performance.timing.navigationStart?function(){return Np.performance.timing.navigationStart+Np.performance.now()}:function(){return(new Date).getTime()};var qn=function(B,R){this.JSC$8498_wrapped=B;this.options=R;this.transactionCount=0;this.startedMs=Math.round((0,_.P8)());this.hasUnknownAbortedTransaction=!1},jq2,Uev,SP,yK4;
qn.prototype.add=function(B,R,V){return _.sB(this,[B],{mode:"readwrite",enableRetries:!0},function(e){return e.objectStore(B).add(R,V)})};
qn.prototype.clear=function(B){return _.sB(this,[B],{mode:"readwrite",enableRetries:!0},function(R){return R.objectStore(B).clear()})};
qn.prototype.close=function(){this.JSC$8498_wrapped.close();var B;((B=this.options)==null?0:B.closed)&&this.options.closed()};
qn.prototype.count=function(B,R){return _.sB(this,[B],{mode:"readonly",enableRetries:!0},function(V){return V.objectStore(B).count(R)})};
var Iu=function(B,R,V){B=B.JSC$8498_wrapped.createObjectStore(R,V);return new GA(B)};
qn.prototype.delete=function(B,R){return _.sB(this,[B],{mode:"readwrite",enableRetries:!0},function(V){return V.objectStore(B).delete(R)})};
var bES=function(B,R){return _.sB(B,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(V){return V.objectStore("ResponseStore").index("byInterface").delete(R)})};
qn.prototype.get=function(B,R){return _.sB(this,[B],{mode:"readonly",enableRetries:!0},function(V){return V.objectStore(B).get(R)})};
qn.prototype.getAll=function(B,R,V){return _.sB(this,[B],{mode:"readonly",enableRetries:!0},function(e){return e.objectStore(B).getAll(R,V)})};
qn.prototype.put=function(B,R,V){return _.sB(this,[B],{mode:"readwrite",enableRetries:!0},function(e){return e.objectStore(B).put(R,V)})};
qn.prototype.objectStoreNames=function(){return Array.from(this.JSC$8498_wrapped.objectStoreNames)};
_.sB=function(B,R,V,e){var X,Y,t,b,J,G,y,S,M,f,z,T;return _.W(function(L){switch(L.nextAddress){case 1:var Q={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof V==="string"?Q.mode=V:Object.assign(Q,V);X=Q;B.transactionCount++;Y=X.enableRetries?3:1;t=0;case 2:if(b){L.jumpTo(4);break}t++;J=Math.round((0,_.P8)());_.en(L,5);G=B.JSC$8498_wrapped.transaction(R,X.mode);Q=new QLA(G);Q=JKv(Q,e);return _.U(L,Q,7);case 7:return y=L.yieldResult,S=Math.round((0,_.P8)()),jq2(B,J,S,t,void 0,
R.join(),X),L.return(y);case 5:M=_.WR(L);f=Math.round((0,_.P8)());z=xrZ(M,B.JSC$8498_wrapped.name,R.join(),B.JSC$8498_wrapped.version);if((T=z instanceof Lq&&!z.retryable)||t>=Y)jq2(B,J,f,t,z,R.join(),X),b=z;L.jumpTo(2);break;case 4:return L.return(Promise.reject(b))}})};
jq2=function(B,R,V,e,X,Y,t){R=V-R;X?(X instanceof Lq&&(X.type==="QUOTA_EXCEEDED"||X.type==="QUOTA_MAYBE_EXCEEDED")&&dS("QUOTA_EXCEEDED",{dbName:TK(B.JSC$8498_wrapped.name),objectStoreNames:Y,transactionCount:B.transactionCount,transactionMode:t.mode}),X instanceof Lq&&X.type==="UNKNOWN_ABORT"&&(V-=B.startedMs,V<0&&V>=2147483648&&(V=0),dS("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:Y,transactionDuration:R,transactionCount:B.transactionCount,dbDuration:V}),B.hasUnknownAbortedTransaction=!0),
Uev(B,!1,e,Y,R,t.tag),_.aC(X)):Uev(B,!0,e,Y,R,t.tag)};
Uev=function(B,R,V,e,X,Y){dS("TRANSACTION_ENDED",{objectStoreNames:e,connectionHasUnknownAbortedTransaction:B.hasUnknownAbortedTransaction,duration:X,isSuccessful:R,tryCount:V,tag:Y===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":Y})};
qn.prototype.getVersion=function(){return this.JSC$8498_wrapped.version};
qn.prototype.getName=function(){return this.JSC$8498_wrapped.name};
var GA=function(B){this.JSC$8513_wrapped=B};
GA.prototype.add=function(B,R){return Q_(this.JSC$8513_wrapped.add(B,R))};
GA.prototype.autoIncrement=function(){return this.JSC$8513_wrapped.autoIncrement};
GA.prototype.clear=function(){return Q_(this.JSC$8513_wrapped.clear()).then(function(){})};
var E7=function(B,R,V){B.JSC$8513_wrapped.createIndex(R,V,{unique:!1})};
GA.prototype.count=function(B){return Q_(this.JSC$8513_wrapped.count(B))};
var Nnh=function(B,R){return rS(B,{query:R},function(V){return V.delete().then(function(){return V.continue()})}).then(function(){})};
GA.prototype.delete=function(B){return B instanceof IDBKeyRange?Nnh(this,B):Q_(this.JSC$8513_wrapped.delete(B))};
GA.prototype.get=function(B){return Q_(this.JSC$8513_wrapped.get(B))};
GA.prototype.getAll=function(B,R){return"getAll"in IDBObjectStore.prototype?Q_(this.JSC$8513_wrapped.getAll(B,R)):Gno(this,B,R)};
var Gno=function(B,R,V){var e=[];return rS(B,{query:R},function(X){if(!(V!==void 0&&e.length>=V))return e.push(X.getValue()),X.continue()}).then(function(){return e})};
GA.prototype.index=function(B){try{return new y8(this.JSC$8513_wrapped.index(B))}catch(R){if(R instanceof Error&&R.name==="NotFoundError")throw new wJo(B,this.JSC$8513_wrapped.name);throw R;}};
GA.prototype.getName=function(){return this.JSC$8513_wrapped.name};
GA.prototype.keyPath=function(){return this.JSC$8513_wrapped.keyPath};
GA.prototype.put=function(B,R){return Q_(this.JSC$8513_wrapped.put(B,R))};
var rS=function(B,R,V){B=B.JSC$8513_wrapped.openCursor(R.query,R.direction);return yK4(B).then(function(e){return EaZ(e,V)})},QLA=function(B){var R=this;
this.JSC$8521_wrapped=B;this.objectStoreCache=new Map;this.JSC$8521_aborted=!1;this.done=new Promise(function(V,e){R.JSC$8521_wrapped.addEventListener("complete",function(){V()});
R.JSC$8521_wrapped.addEventListener("error",function(X){X.currentTarget===X.target&&e(R.JSC$8521_wrapped.error)});
R.JSC$8521_wrapped.addEventListener("abort",function(){var X=R.JSC$8521_wrapped.error;if(X)e(X);else if(!R.JSC$8521_aborted){X=Lq;for(var Y=R.JSC$8521_wrapped.objectStoreNames,t=[],b=0;b<Y.length;b++){var J=Y.item(b);if(J===null)throw Error("Tc");t.push(J)}X=new X("UNKNOWN_ABORT",{objectStoreNames:t.join(),dbName:R.JSC$8521_wrapped.db.name,mode:R.JSC$8521_wrapped.mode});e(X)}})})},JKv=function(B,R){var V=new Promise(function(e,X){try{R(B).then(function(Y){e(Y)}).catch(X)}catch(Y){X(Y),B.abort()}});
return Promise.all([V,B.done]).then(function(e){return _.h(e).next().value})};
QLA.prototype.abort=function(){this.JSC$8521_wrapped.abort();this.JSC$8521_aborted=!0;throw new Lq("EXPLICIT_ABORT");};
QLA.prototype.objectStore=function(B){B=this.JSC$8521_wrapped.objectStore(B);var R=this.objectStoreCache.get(B);R||(R=new GA(B),this.objectStoreCache.set(B,R));return R};
var y8=function(B){this.JSC$8523_wrapped=B};
y8.prototype.count=function(B){return Q_(this.JSC$8523_wrapped.count(B))};
y8.prototype.delete=function(B){return _.nq(this,{query:B},function(R){return R.delete().then(function(){return R.continue()})})};
y8.prototype.get=function(B){return Q_(this.JSC$8523_wrapped.get(B))};
y8.prototype.getAll=function(B,R){return"getAll"in IDBIndex.prototype?Q_(this.JSC$8523_wrapped.getAll(B,R)):Sd4(this,B,R)};
var Sd4=function(B,R,V){var e=[];return _.nq(B,{query:R},function(X){if(!(V!==void 0&&e.length>=V))return e.push(X.getValue()),X.continue()}).then(function(){return e})};
y8.prototype.keyPath=function(){return this.JSC$8523_wrapped.keyPath};
y8.prototype.unique=function(){return this.JSC$8523_wrapped.unique};
_.nq=function(B,R,V){B=B.JSC$8523_wrapped.openCursor(R.query===void 0?null:R.query,R.direction===void 0?"next":R.direction);return yK4(B).then(function(e){return EaZ(e,V)})};
SP=function(B,R){this.request=B;this.cursor=R};
yK4=function(B){return Q_(B).then(function(R){return R?new SP(B,R):null})};
SP.prototype.continue=function(B){this.cursor.continue(B);return yK4(this.request)};
SP.prototype.delete=function(){return Q_(this.cursor.delete()).then(function(){})};
SP.prototype.getValue=function(){return this.cursor.value};
SP.prototype.update=function(B){return Q_(this.cursor.update(B))};var HW=function(B,R){this.name=B;this.options=R;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},HEv;
HW.prototype.openDb=function(B,R,V){V=V===void 0?{}:V;return cZI(B,R,V)};
HW.prototype.delete=function(B){B=B===void 0?{}:B;return _.Au(this.name,B)};
HEv=function(B,R){return new Lq("INCOMPATIBLE_DB_VERSION",{dbName:B.name,oldVersion:B.options.version,newVersion:R})};
_.iN=function(B,R){if(!R)throw Kq("openWithToken",TK(B.name));return B.open()};
HW.prototype.open=function(){var B=this;if(!this.isCompatible)throw HEv(this);if(this.connectionPromise)return this.connectionPromise;var R,V=function(){B.connectionPromise===R&&(B.connectionPromise=void 0)},e={blocking:function(Y){Y.close()},
closed:V,terminated:V,upgrade:this.options.upgrade},X=function(){var Y,t,b,J,G,y,S,M,f,z;return _.W(function(T){switch(T.nextAddress){case 1:return t=(Y=Error().stack)!=null?Y:"",_.en(T,2),_.U(T,B.openDb(B.name,B.options.version,e),4);case 4:for(var L=b=T.yieldResult,Q=B.options,q=[],m=_.h(Object.keys(Q.objectStores)),g=m.next();!g.done;g=m.next()){g=g.value;var Vu=Q.objectStores[g],n=Vu.removedAtVersion===void 0?Number.MAX_VALUE:Vu.removedAtVersion;!(L.JSC$8498_wrapped.version>=Vu.addedAtVersion)||
L.JSC$8498_wrapped.version>=n||L.JSC$8498_wrapped.objectStoreNames.contains(g)||q.push(g)}J=q;if(J.length===0){T.jumpTo(5);break}G=Object.keys(B.options.objectStores);y=b.objectStoreNames();if(B.timesReopenedToFixMissingObjectStore<_.RC("ytidb_reopen_db_retries",0))return B.timesReopenedToFixMissingObjectStore++,b.close(),_.aC(new Lq("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:B.name,expectedObjectStores:G,foundObjectStores:y})),T.return(X());if(!(B.timesDeletedToFixMissingObjectStore<_.RC("ytidb_remake_db_retries",
1))){T.jumpTo(6);break}B.timesDeletedToFixMissingObjectStore++;return _.U(T,B.delete(),7);case 7:return _.aC(new Lq("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:B.name,expectedObjectStores:G,foundObjectStores:y})),T.return(X());case 6:throw new Ydo(y,G);case 5:return T.return(b);case 2:S=_.WR(T);if(S instanceof DOMException?S.name!=="VersionError":"DOMError"in self&&S instanceof DOMError?S.name!=="VersionError":!(S instanceof Object&&"message"in S)||S.message!=="An attempt was made to open a database using a lower version than the existing version."){T.jumpTo(8);
break}return _.U(T,B.openDb(B.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:M=T.yieldResult;f=M.getVersion();if(B.options.version!==void 0&&f>B.options.version+1)throw M.close(),B.isCompatible=!1,HEv(B,f);return T.return(M);case 8:throw V(),S instanceof Error&&!_.k("ytidb_async_stack_killswitch")&&(S.stack=S.stack+"\n"+t.substring(t.indexOf("\n")+1)),xrZ(S,B.name,"",(z=B.options.version)!=null?z:-1);}})};
return this.connectionPromise=R=X()};var AZd=new HW("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(B,R){R(1)&&Iu(B,"databases",{keyPath:"actualName"})}});var mru,gad=new function(){}(new function(){});new _.Xs;var MGb=function(B,R){HW.call(this,B,R);this.options=R;wS(B)};
_.l(MGb,HW);var VOx=function(B,R){var V;return function(){V||(V=new MGb(B,R));return V}};
MGb.prototype.openDb=function(B,R,V){V=V===void 0?{}:V;return(this.options.shared?uOd:nau)(B,R,Object.assign({},V))};
MGb.prototype.delete=function(B){B=B===void 0?{}:B;return(this.options.shared?Rep:OpY)(this.name,B)};var kn4={},ee5=Cq("ytGcfConfig",{objectStores:(kn4.coldConfigStore={addedAtVersion:1},kn4.hotConfigStore={addedAtVersion:1},kn4),shared:!1,upgrade:function(B,R){R(1)&&(E7(Iu(B,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),E7(Iu(B,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var DeG=function(){_.Hn.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var B=_.qN("yt.gcf.config.hotUpdateCallbacks");B?(this.localHotConfigJobQueue=[].concat(_.MI(B)),this.sharedHotConfigJobQueue=B):(this.sharedHotConfigJobQueue=[],_.mk("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.l(DeG,_.Hn);DeG.prototype.disposeInternal=function(){for(var B=_.h(this.localHotConfigJobQueue),R=B.next();!R.done;R=B.next()){var V=this.sharedHotConfigJobQueue;R=V.indexOf(R.value);R>=0&&V.splice(R,1)}this.localHotConfigJobQueue.length=0;_.Hn.prototype.disposeInternal.call(this)};var fE=function(){var B=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new DeG;this.TEST_ONLY={initializeConfigDb:function(){B.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return B.coldGlobalConfigGroup},
setHotConfigGroup:function(R){fh2(B,R)},
setHotHashData:function(R){B.setHotHashData(R)},
setColdConfigGroup:function(R){lh4(B,R)},
getColdHashData:function(){return B.coldHashData},
getHotHashData:function(){return B.hotHashData},
getHotConfigGroup:function(){return B.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return zb4()},
getExportedHotConfigGroup:function(){return Mp()},
getExportedColdHashData:function(){return _.qN("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.qN("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){ah5(B)},
resetInstance:function(){B.setHotHashData(void 0);de_(B);delete fE.instance},
setDebounceTimer:function(R){B.debounceTimer=R},
getDebounceTimer:function(){return B.debounceTimer}}},w5b=function(){if(!fE.instance){var B=new fE;
fE.instance=B}return fE.instance},LA2=function(B){var R;
_.W(function(V){if(V.nextAddress==1)return _.k("start_client_gcf")||_.k("delete_gcf_config_db")?_.k("start_client_gcf")?_.U(V,_.$z(),3):V.jumpTo(2):V.return();V.nextAddress!=2&&((R=V.yieldResult)&&_.SC()&&!_.k("delete_gcf_config_db")?(B.isConfigDbInitialized=!0,ah5(B)):(TnT(B),xe4(B)));return _.k("delete_gcf_config_db")?_.U(V,Wyu(),0):V.jumpTo(0)})},U9I=function(){var B;
return(B=Mp())!=null?B:_.vE("RAW_HOT_CONFIG_GROUP")},vDS=function(B){var R,V,e,X,Y,t;
return _.W(function(b){switch(b.nextAddress){case 1:if(B.hotGlobalConfigGroup)return b.return(Mp());if(!B.isConfigDbInitialized)return R=Kq("getHotConfig IDB not initialized"),_.cE(R),b.return(Promise.reject(R));V=ZN();e=_.vE("TIME_CREATED_MS");if(!V){X=Kq("getHotConfig token error");_.cE(X);b.jumpTo(2);break}return _.U(b,tOd(V),3);case 3:if((Y=b.yieldResult)&&Y.timestamp>e)return fh2(B,Y.config),B.setHotHashData(Y.hashData),b.return(Mp());case 2:xe4(B);if(!(V&&B.hotGlobalConfigGroup&&B.hotHashData)){b.jumpTo(4);
break}return _.U(b,pzp(B.hotGlobalConfigGroup,B.hotHashData,V,e),4);case 4:return B.hotGlobalConfigGroup?b.return(Mp()):(t=new _.H8("Config not available in ytConfig"),_.cE(t),b.return(Promise.reject(t)))}})},Ihb=function(B){var R,V,e,X,Y,t;
return _.W(function(b){switch(b.nextAddress){case 1:if(B.coldGlobalConfigGroup)return b.return(zb4());if(!B.isConfigDbInitialized)return R=Kq("getColdConfig IDB not initialized"),_.cE(R),b.return(Promise.reject(R));V=ZN();e=_.vE("TIME_CREATED_MS");if(!V){X=Kq("getColdConfig");_.cE(X);b.jumpTo(2);break}return _.U(b,he5(V),3);case 3:if((Y=b.yieldResult)&&Y.timestamp>e)return lh4(B,Y.config),KAT(B,Y.configData),de_(B,Y.hashData),b.return(zb4());case 2:TnT(B);if(!(V&&B.coldGlobalConfigGroup&&B.coldHashData&&
B.configData)){b.jumpTo(4);break}return _.U(b,YVI(B.coldGlobalConfigGroup,B.coldHashData,B.configData,V,e),4);case 4:return B.coldGlobalConfigGroup?b.return(zb4()):(t=new _.H8("Config not available in ytConfig"),_.cE(t),b.return(Promise.reject(t)))}})},ah5=function(B){if(!B.hotGlobalConfigGroup||!B.coldGlobalConfigGroup){if(!ZN()){var R=Kq("scheduleGetConfigs");
_.cE(R)}B.initJob||(B.initJob=_.dV.addLowPriorityJob(function(){return _.W(function(V){switch(V.nextAddress){case 1:return _.en(V,2),_.U(V,vDS(B),4);case 4:_.c8(V,3);break;case 2:_.WR(V);case 3:return _.en(V,5),_.U(V,Ihb(B),7);case 7:_.c8(V,6);break;case 5:_.WR(V);case 6:B.initJob&&(B.initJob=0),_.b3(V)}})},100))}},tR_=function(B,R,V){var e,X,Y;
return _.W(function(t){switch(t.nextAddress){case 1:if(!_.k("start_client_gcf")){t.jumpTo(0);break}V&&fh2(B,V);B.setHotHashData(R);e=ZN();if(!e){t.jumpTo(3);break}if(V){t.jumpTo(4);break}return _.U(t,tOd(e),5);case 5:X=t.yieldResult,V=(Y=X)==null?void 0:Y.config;case 4:return _.U(t,pzp(V,R,e),3);case 3:if(V)for(var b=V,J=_.h(B.configUpdateService.sharedHotConfigJobQueue),G=J.next();!G.done;G=J.next())G=G.value,G(b);_.b3(t)}})},WRo=function(B,R,V){var e,X,Y,t;
return _.W(function(b){if(b.nextAddress==1){if(!_.k("start_client_gcf"))return b.jumpTo(0);de_(B,R);return(e=ZN())?V?b.jumpTo(4):_.U(b,he5(e),5):b.jumpTo(0)}b.nextAddress!=4&&(X=b.yieldResult,V=(Y=X)==null?void 0:Y.config);if(!V)return b.jumpTo(0);t=V.configData;return _.U(b,YVI(V,R,t,e),0)})},wzx=function(){var B=w5b(),R=(0,_.P8)()-B.debounceTimer;
if(!(B.debounceTimer!==0&&R<_.RC("send_config_hash_timer"))){R=_.qN("yt.gcf.config.coldConfigData");var V=_.qN("yt.gcf.config.hotHashData"),e=_.qN("yt.gcf.config.coldHashData");R&&V&&e&&(B.debounceTimer=(0,_.P8)());return{coldConfigData:R,hotHashData:V,coldHashData:e}}},TnT=function(B){lh4(B,_.vE("RAW_COLD_CONFIG_GROUP"));
de_(B,_.vE("SERIALIZED_COLD_HASH_DATA"));var R;KAT(B,(R=B.coldGlobalConfigGroup)==null?void 0:R.configData)},xe4=function(B){fh2(B,_.vE("RAW_HOT_CONFIG_GROUP"));
B.setHotHashData(_.vE("SERIALIZED_HOT_HASH_DATA"))},fh2=function(B,R){B.hotGlobalConfigGroup=R;
_.mk("yt.gcf.config.hotConfigGroup",B.hotGlobalConfigGroup||null)},lh4=function(B,R){B.coldGlobalConfigGroup=R;
_.mk("yt.gcf.config.coldConfigGroup",B.coldGlobalConfigGroup||null)};
fE.prototype.setHotHashData=function(B){this.hotHashData=B;_.mk("yt.gcf.config.hotHashData",this.hotHashData||null)};
var de_=function(B,R){B.coldHashData=R;_.mk("yt.gcf.config.coldHashData",B.coldHashData||null)},KAT=function(B,R){B.configData=R;
_.mk("yt.gcf.config.coldConfigData",B.configData||null)},Mp=function(){return _.qN("yt.gcf.config.hotConfigGroup")},zb4=function(){return _.qN("yt.gcf.config.coldConfigGroup")};var YW={},EDv=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";YW.assign=function(B){for(var R=Array.prototype.slice.call(arguments,1);R.length;){var V=R.shift();if(V){if(typeof V!=="object")throw new TypeError("Wc`"+V);for(var e in V)Object.prototype.hasOwnProperty.call(V,e)&&(B[e]=V[e])}}return B};
YW.shrinkBuf=function(B,R){if(B.length===R)return B;if(B.subarray)return B.subarray(0,R);B.length=R;return B};
var Qql={arraySet:function(B,R,V,e,X){if(R.subarray&&B.subarray)B.set(R.subarray(V,V+e),X);else for(var Y=0;Y<e;Y++)B[X+Y]=R[V+Y]},
flattenChunks:function(B){var R,V;var e=V=0;for(R=B.length;e<R;e++)V+=B[e].length;var X=new Uint8Array(V);e=V=0;for(R=B.length;e<R;e++){var Y=B[e];X.set(Y,V);V+=Y.length}return X}},qd4={arraySet:function(B,R,V,e,X){for(var Y=0;Y<e;Y++)B[X+Y]=R[V+Y]},
flattenChunks:function(B){return[].concat.apply([],B)}};
YW.setTyped=function(){EDv?(YW.Buf8=Uint8Array,YW.Buf16=Uint16Array,YW.Buf32=Int32Array,YW.assign(YW,Qql)):(YW.Buf8=Array,YW.Buf16=Array,YW.Buf32=Array,YW.assign(YW,qd4))};
YW.setTyped();var cKl=!0;try{new Uint8Array(1)}catch(B){cKl=!1}
var tuK=function(B){var R,V,e=B.length,X=0;for(R=0;R<e;R++){var Y=B.charCodeAt(R);if((Y&64512)===55296&&R+1<e){var t=B.charCodeAt(R+1);(t&64512)===56320&&(Y=65536+(Y-55296<<10)+(t-56320),R++)}X+=Y<128?1:Y<2048?2:Y<65536?3:4}var b=new YW.Buf8(X);for(R=V=0;V<X;R++)Y=B.charCodeAt(R),(Y&64512)===55296&&R+1<e&&(t=B.charCodeAt(R+1),(t&64512)===56320&&(Y=65536+(Y-55296<<10)+(t-56320),R++)),Y<128?b[V++]=Y:(Y<2048?b[V++]=192|Y>>>6:(Y<65536?b[V++]=224|Y>>>12:(b[V++]=240|Y>>>18,b[V++]=128|Y>>>12&63),b[V++]=
128|Y>>>6&63),b[V++]=128|Y&63);return b};var PFp={};PFp=function(B,R,V,e){var X=B&65535|0;B=B>>>16&65535|0;for(var Y;V!==0;){Y=V>2E3?2E3:V;V-=Y;do X=X+R[e++]|0,B=B+X|0;while(--Y);X%=65521;B%=65521}return X|B<<16|0};for(var Dt={},kX,AK4=[],iE4=0;iE4<256;iE4++){kX=iE4;for(var sqJ=0;sqJ<8;sqJ++)kX=kX&1?3988292384^kX>>>1:kX>>>1;AK4[iE4]=kX}Dt=function(B,R,V,e){V=e+V;for(B^=-1;e<V;e++)B=B>>>8^AK4[(B^R[e])&255];return B^-1};var bf={};bf={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 cEx=[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],i0_=[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],hAY=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$dd=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],yX=Array(576);VX(yX);var Sb=Array(60);VX(Sb);var t$=Array(512);VX(t$);var h$=Array(256);VX(h$);var AEY=Array(29);VX(AEY);var sFN=Array(30);VX(sFN);var Xk_,pkp,Y$5,eAd=!1;var au;
au=[new zL(0,0,0,0,function(B,R){var V=65535;for(V>B.pending_buf_size-5&&(V=B.pending_buf_size-5);;){if(B.lookahead<=1){f6(B);if(B.lookahead===0&&R===0)return 1;if(B.lookahead===0)break}B.strstart+=B.lookahead;B.lookahead=0;var e=B.block_start+V;if(B.strstart===0||B.strstart>=e)if(B.lookahead=B.strstart-e,B.strstart=e,Hf(B,!1),B.strm.avail_out===0)return 1;if(B.strstart-B.block_start>=B.w_size-262&&(Hf(B,!1),B.strm.avail_out===0))return 1}B.insert=0;if(R===4)return Hf(B,!0),B.strm.avail_out===0?3:
4;B.strstart>B.block_start&&Hf(B,!1);return 1}),
new zL(4,4,8,4,n8d),new zL(4,5,16,8,n8d),new zL(4,6,32,32,n8d),new zL(4,4,16,16,lf),new zL(8,16,32,32,lf),new zL(8,16,128,128,lf),new zL(8,32,128,256,lf),new zL(32,128,258,1024,lf),new zL(32,258,258,4096,lf)];var Vu_={};Vu_=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 WP5=Object.prototype.toString;
RAI.prototype.push=function(B,R){var V=this.strm,e=this.options.chunkSize;if(this.ended)return!1;var X=R===~~R?R:R===!0?4:0;typeof B==="string"?V.input=tuK(B):WP5.call(B)==="[object ArrayBuffer]"?V.input=new Uint8Array(B):V.input=B;V.next_in=0;V.avail_in=V.input.length;do{V.avail_out===0&&(V.output=new YW.Buf8(e),V.next_out=0,V.avail_out=e);B=B6p(V,X);if(B!==1&&B!==0)return FAo(this,B),this.ended=!0,!1;if(V.avail_out===0||V.avail_in===0&&(X===4||X===2))if(this.options.to==="string"){var Y=YW.shrinkBuf(V.output,
V.next_out);R=Y;Y=Y.length;if(Y<65537&&(R.subarray&&cKl||!R.subarray))R=String.fromCharCode.apply(null,YW.shrinkBuf(R,Y));else{for(var t="",b=0;b<Y;b++)t+=String.fromCharCode(R[b]);R=t}this.chunks.push(R)}else R=YW.shrinkBuf(V.output,V.next_out),this.chunks.push(R)}while((V.avail_in>0||V.avail_out===0)&&B!==1);if(X===4)return(V=this.strm)&&V.state?(e=V.state.status,e!==42&&e!==69&&e!==73&&e!==91&&e!==103&&e!==113&&e!==666?B=jb(V,-2):(V.state=null,B=e===113?jb(V,-3):0)):B=-2,FAo(this,B),this.ended=
!0,B===0;X===2&&(FAo(this,0),V.avail_out=0);return!0};
var FAo=function(B,R){R===0&&(B.result=B.options.to==="string"?B.chunks.join(""):YW.flattenChunks(B.chunks));B.chunks=[];B.err=R;B.msg=B.strm.msg};var rK4=typeof TextEncoder!=="undefined"?new TextEncoder:null,Asq=rK4?function(B){return rK4.encode(B)}:function(B){B=_.Sr(B);
for(var R=new Uint8Array(B.length),V=0;V<R.length;V++)R[V]=B[V];return R};var GAI={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},ScZ={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var DA=function(B,R){this.version=B;this.args=R};
DA.prototype.serialize=function(){return{version:this.version,args:this.args}};var N6S=function(B,R){this.topic=B;this.dataClass=R};
N6S.prototype.toString=function(){return this.topic};var gD_=_.qN("ytPubsub2Pubsub2Instance")||new _.Ju;_.Ju.prototype.subscribe=_.Ju.prototype.subscribe;_.Ju.prototype.unsubscribeByKey=_.Ju.prototype.unsubscribeByKey;_.Ju.prototype.publish=_.Ju.prototype.publish;_.Ju.prototype.clear=_.Ju.prototype.clear;_.mk("ytPubsub2Pubsub2Instance",gD_);var URd=_.qN("ytPubsub2Pubsub2SubscribedKeys")||{};_.mk("ytPubsub2Pubsub2SubscribedKeys",URd);var yso=_.qN("ytPubsub2Pubsub2TopicToKeys")||{};_.mk("ytPubsub2Pubsub2TopicToKeys",yso);
var Gzp=_.qN("ytPubsub2Pubsub2IsAsync")||{};_.mk("ytPubsub2Pubsub2IsAsync",Gzp);_.mk("ytPubsub2Pubsub2SkipSubKey",null);var dRu=void 0,zAd=void 0;var EG5=_.RC("max_body_size_to_compress",5E5),Qrp=_.RC("min_body_size_to_compress",500),TL=!0,FPd=0,xW=0,srd=_.RC("compression_performance_threshold_lr",250),rsS=_.RC("slow_compressions_before_abandon_count",4),xRI=!1,LPd=new Map,csx=1,q$d=!0;_.eY(L6,mRx);L6.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 ZES=function(B,R,V){V||(V=0);var e=B.W_;if(typeof R==="string")for(var X=0;X<16;X++)e[X]=R.charCodeAt(V)<<24|R.charCodeAt(V+1)<<16|R.charCodeAt(V+2)<<8|R.charCodeAt(V+3),V+=4;else for(X=0;X<16;X++)e[X]=R[V]<<24|R[V+1]<<16|R[V+2]<<8|R[V+3],V+=4;for(R=16;R<80;R++)V=e[R-3]^e[R-8]^e[R-14]^e[R-16],e[R]=(V<<1|V>>>31)&4294967295;R=B.chain_[0];V=B.chain_[1];X=B.chain_[2];for(var Y=B.chain_[3],t=B.chain_[4],b,J,G=0;G<80;G++)G<40?G<20?(b=Y^V&(X^Y),J=1518500249):(b=V^X^Y,J=1859775393):G<60?(b=V&X|Y&(V|X),
J=2400959708):(b=V^X^Y,J=3395469782),b=(R<<5|R>>>27)+b+t+J+e[G]&4294967295,t=Y,Y=X,X=(V<<30|V>>>2)&4294967295,V=R,R=b;B.chain_[0]=B.chain_[0]+R&4294967295;B.chain_[1]=B.chain_[1]+V&4294967295;B.chain_[2]=B.chain_[2]+X&4294967295;B.chain_[3]=B.chain_[3]+Y&4294967295;B.chain_[4]=B.chain_[4]+t&4294967295};
L6.prototype.update=function(B,R){if(B!=null){R===void 0&&(R=B.length);for(var V=R-this.blockSize,e=0,X=this.buf_,Y=this.inbuf_;e<R;){if(Y==0)for(;e<=V;)ZES(this,B,e),e+=this.blockSize;if(typeof B==="string")for(;e<R;){if(X[Y]=B.charCodeAt(e),++Y,++e,Y==this.blockSize){ZES(this,X);Y=0;break}}else for(;e<R;)if(X[Y]=B[e],++Y,++e,Y==this.blockSize){ZES(this,X);Y=0;break}}this.inbuf_=Y;this.total_+=R}};
L6.prototype.digest=function(){var B=[],R=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var V=this.blockSize-1;V>=56;V--)this.buf_[V]=R&255,R/=256;ZES(this,this.buf_);for(V=R=0;V<5;V++)for(var e=24;e>=0;e-=8)B[R]=this.chain_[V]>>e&255,++R;return B};var PzI;var lC=function(B){var R=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(y){R.databaseToken=y},
triggerThrottle:function(){R.throttledSend()},
cancelThrottle:function(){R.cancelThrottledSend()},
immediateSend:function(y){return _.W(function(S){return _.U(S,R.immediateSend(y),0)})},
requestWithinAgeLimit:function(y,S){return R.requestWithinAgeLimit(y,S)},
retryQueuedRequests:function(){R.retryQueuedRequests()}};
var V;this.throttleTimeout=(V=B.throttleTimeout)!=null?V:100;var e;this.retryMaxAttempts=(e=B.retryMaxAttempts)!=null?e:1;var X;this.requestAgeLimitMs=(X=B.requestAgeLimitMs)!=null?X:2592E6;var Y;this.queuedRequestAgeLimitMs=(Y=B.queuedRequestAgeLimitMs)!=null?Y:12E4;var t;this.retryDelayMs=(t=B.retryDelayMs)!=null?t:5E3;var b;this.databaseToken=(b=B.databaseToken)!=null?b:void 0;this.enableCleaning=!!B.enableCleaning;var J;this.cleaningRate=(J=B.cleaningRate)!=null?J:.1;var G;this.potentialEsfErrorLimit=
(G=B.potentialEsfErrorLimit)!=null?G:10;B.handleError&&(this.handleError=B.handleError);B.handleWarning&&(this.handleWarning=B.handleWarning);B.disableYtIdbTransactions&&(this.disableYtIdbTransactions=B.disableYtIdbTransactions);B.bypassDbTokenDependency&&(this.bypassDbTokenDependency=B.bypassDbTokenDependency);this.getBooleanFlag=B.getBooleanFlag;this.jobManager=B.jobManager;this.logsStore=B.logsStore;this.networkManager=B.networkManager;this.sendFn=B.sendFn;this.onlineEvent=B.onlineEvent;this.offlineEvent=
B.offlineEvent;fg(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&meJ(this)},meJ=function(B){fg(B)&&!B.disableYtIdbTransactions&&(B.initialized=!0,B.enableCleaning&&Math.random()<=B.cleaningRate&&B.logsStore.cleanLogsStore(B.databaseToken),B.retryQueuedRequests(),B.networkManager.isNetworkAvailable()&&B.throttledSend(),B.networkManager.listen(B.onlineEvent,B.throttledSend.bind(B)),B.networkManager.listen(B.offlineEvent,B.cancelThrottledSend.bind(B)))};
_.p=lC.prototype;_.p.writeThenSend=function(B,R){var V=this;R=R===void 0?{}:R;if(fg(this)&&this.initialized){var e={url:B,options:R,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(e,this.databaseToken).then(function(X){e.id=X;V.networkManager.isNetworkAvailable()&&V.immediateSend(e)}).catch(function(X){V.immediateSend(e);
$eJ(V,X)})}else this.sendFn(B,R)};
_.p.sendThenWrite=function(B,R,V){var e=this;R=R===void 0?{}:R;if(fg(this)&&this.initialized){var X={url:B,options:R,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(X.skipRetry=V);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!X.skipRetry){if(!X.skipRetry){var Y=R.onError?R.onError:function(){};
R.onError=function(t,b){return _.W(function(J){if(J.nextAddress==1)return _.U(J,e.logsStore.set(X,e.databaseToken).catch(function(G){$eJ(e,G)}),2);
Y(t,b);_.b3(J)})}}this.sendFn(B,R,X.skipRetry)}else this.logsStore.set(X,this.databaseToken).catch(function(t){e.sendFn(B,R,X.skipRetry);
$eJ(e,t)})}else this.sendFn(B,R,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&V)};
_.p.sendAndWrite=function(B,R){var V=this;R=R===void 0?{}:R;if(fg(this)&&this.initialized){var e={url:B,options:R,timestamp:this.now(),status:"NEW",sendCount:0},X=!1,Y=R.onSuccess?R.onSuccess:function(){};
e.options.onSuccess=function(t,b){e.id!==void 0?V.logsStore.deleteRequest(e.id,V.databaseToken):X=!0;V.networkManager.networkStatusHint&&V.getBooleanFlag&&V.getBooleanFlag("vss_network_hint")&&V.networkManager.networkStatusHint(!0);Y(t,b)};
this.sendFn(e.url,e.options,void 0,!0);this.logsStore.set(e,this.databaseToken).then(function(t){e.id=t;X&&V.logsStore.deleteRequest(e.id,V.databaseToken)}).catch(function(t){$eJ(V,t)})}else this.sendFn(B,R,void 0,!0)};
_.p.throttledSend=function(){var B=this;if(!fg(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,B.logsStore.getMostRecentByStatus("NEW",B.databaseToken),2);if(V.nextAddress!=3)return R=V.yieldResult,R?_.U(V,B.immediateSend(R),3):(B.cancelThrottledSend(),V.return());B.intervalJob&&(B.intervalJob=0,B.throttledSend());_.b3(V)})},this.throttleTimeout))};
_.p.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.p.immediateSend=function(B){var R=this,V;return _.W(function(e){switch(e.nextAddress){case 1:if(!fg(R))throw Error("$c");if(B.id===void 0){e.jumpTo(2);break}return _.U(e,R.logsStore.markAsQueued(B.id,R.databaseToken),3);case 3:(V=e.yieldResult)||R.handleWarning(Error("ad"));case 2:if(R.requestWithinAgeLimit(B,R.requestAgeLimitMs)){e.jumpTo(4);break}R.handleWarning(Error("bd"));if(B.id===void 0){e.jumpTo(5);break}return _.U(e,R.logsStore.deleteRequest(B.id,R.databaseToken),5);case 5:return e.return();
case 4:B.skipRetry||(B=CeJ(R,B));if(!B){e.jumpTo(0);break}if(!B.skipRetry||B.id===void 0){e.jumpTo(8);break}return _.U(e,R.logsStore.deleteRequest(B.id,R.databaseToken),8);case 8:R.sendFn(B.url,B.options,!!B.skipRetry),_.b3(e)}})};
var CeJ=function(B,R){if(!fg(B))throw Error("cd");var V=R.options.onError?R.options.onError:function(){};
R.options.onError=function(X,Y){var t,b,J,G;return _.W(function(y){switch(y.nextAddress){case 1:t=Brp(Y);(b=RZp(Y))&&B.getBooleanFlag&&B.getBooleanFlag("web_enable_error_204")&&B.handleError(Error("dd"),R.url,Y);if(!(B.getBooleanFlag&&B.getBooleanFlag("nwl_consider_error_code")&&t||B.getBooleanFlag&&!B.getBooleanFlag("nwl_consider_error_code")&&B.potentialEsfErrorCounter<=B.potentialEsfErrorLimit)){y.jumpTo(2);break}if(!B.networkManager.sendNetworkCheckRequest){y.jumpTo(3);break}return _.U(y,B.networkManager.sendNetworkCheckRequest(),
3);case 3:if(B.networkManager.isNetworkAvailable()){y.jumpTo(2);break}V(X,Y);if(!B.getBooleanFlag||!B.getBooleanFlag("nwl_consider_error_code")||((J=R)==null?void 0:J.id)===void 0){y.jumpTo(6);break}return _.U(y,B.logsStore.resetRequest(R.id,B.databaseToken,!1),6);case 6:return y.return();case 2:if(B.getBooleanFlag&&B.getBooleanFlag("nwl_consider_error_code")&&!t&&B.potentialEsfErrorCounter>B.potentialEsfErrorLimit)return y.return();B.potentialEsfErrorCounter++;if(((G=R)==null?void 0:G.id)===void 0){y.jumpTo(8);
break}return R.sendCount<B.retryMaxAttempts?_.U(y,B.logsStore.resetRequest(R.id,B.databaseToken,!0,b?!1:void 0),12):_.U(y,B.logsStore.deleteRequest(R.id,B.databaseToken),8);case 12:B.jobManager.addLowPriorityJob(function(){B.networkManager.isNetworkAvailable()&&B.throttledSend()},B.retryDelayMs);
case 8:V(X,Y),_.b3(y)}})};
var e=R.options.onSuccess?R.options.onSuccess:function(){};
R.options.onSuccess=function(X,Y){var t;return _.W(function(b){if(b.nextAddress==1)return((t=R)==null?void 0:t.id)===void 0?b.jumpTo(2):_.U(b,B.logsStore.deleteRequest(R.id,B.databaseToken),2);B.networkManager.networkStatusHint&&B.getBooleanFlag&&B.getBooleanFlag("vss_network_hint")&&B.networkManager.networkStatusHint(!0);e(X,Y);_.b3(b)})};
return R};
lC.prototype.requestWithinAgeLimit=function(B,R){B=B.timestamp;return this.now()-B>=R?!1:!0};
lC.prototype.retryQueuedRequests=function(){var B=this;if(!fg(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(R){R&&!B.requestWithinAgeLimit(R,B.queuedRequestAgeLimitMs)?B.jobManager.addLowPriorityJob(function(){return _.W(function(V){if(V.nextAddress==1)return R.id===void 0?V.jumpTo(2):_.U(V,B.logsStore.resetRequest(R.id,B.databaseToken),2);B.retryQueuedRequests();_.b3(V)})}):B.networkManager.isNetworkAvailable()&&B.throttledSend()})};
var $eJ=function(B,R){B.writeError&&!B.networkManager.isNetworkAvailable()?B.writeError(R):B.handleError(R)},fg=function(B){return!!B.databaseToken||B.bypassDbTokenDependency};var VcK;var jTI={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var Pel={},jGd=Cq("ServiceWorkerLogsDatabase",{objectStores:(Pel.SWHealthLog={addedAtVersion:1},Pel),shared:!0,upgrade:function(B,R){R(1)&&E7(Iu(B,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var lxu={},fxp=0;var w$_;var zA=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},s7=function(){if(!zA.instance){var B=_.qN("yt.networkRequestMonitor.instance")||new zA;
_.mk("yt.networkRequestMonitor.instance",B);zA.instance=B}return zA.instance};
zA.prototype.requestComplete=function(B,R){R&&(this.anyRequestHasSucceeded=!0);B=this.removeParams(B);this.requestMap.get(B)||this.requestMap.set(B,R)};
zA.prototype.isEndpointCFR=function(B){B=this.removeParams(B);return(B=this.requestMap.get(B))?!1:B===!1&&this.anyRequestHasSucceeded?!0:null};
zA.prototype.removeParams=function(B){return B.split("?")[0]};
zA.prototype.removeParams=zA.prototype.removeParams;zA.prototype.isEndpointCFR=zA.prototype.isEndpointCFR;zA.prototype.requestComplete=zA.prototype.requestComplete;zA.getInstance=s7;var ak=function(B){_.H_.call(this);var R=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=B!=null?B:{addLowPriorityJob:function(X,Y){return setTimeout(X,Y)},
cancelJob:function(X){clearTimeout(X)}};
var V,e;this.isOnline=(e=(V=window.navigator)==null?void 0:V.onLine)!=null?e:!0;this.onNavigatorChange=function(){return _.W(function(X){return _.U(X,nDv(R),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||uo2(this)};
_.l(ak,_.H_);ak.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete ak.instance};
ak.prototype.isNetworkAvailable=function(){return this.isOnline};
var uo2=function(B){B.pollingJob=B.jobManager.addLowPriorityJob(function(){var R;return _.W(function(V){if(V.nextAddress==1)return B.isOnline?((R=window.navigator)==null?0:R.onLine)?V.jumpTo(3):_.U(V,nDv(B),3):_.U(V,nDv(B),3);uo2(B);_.b3(V)})},3E4)},nDv=function(B,R){return B.networkRequestPromise?B.networkRequestPromise:B.networkRequestPromise=new Promise(function(V){var e,X,Y,t;
return _.W(function(b){switch(b.nextAddress){case 1:return e=window.AbortController?new window.AbortController:void 0,Y=(X=e)==null?void 0:X.signal,t=!1,_.en(b,2,3),e&&(B.abortTimeoutKey=B.jobManager.addLowPriorityJob(function(){e.abort()},R||2E4)),_.U(b,fetch("/generate_204",{method:"HEAD",
signal:Y}),5);case 5:t=!0;case 3:_.pr(b);B.networkRequestPromise=void 0;B.abortTimeoutKey&&(B.jobManager.cancelJob(B.abortTimeoutKey),B.abortTimeoutKey=0);t!==B.isOnline&&(B.isOnline=t,B.isOnline?B.dispatchEvent("networkstatus-online"):B.dispatchEvent("networkstatus-offline"));V(t);_.tq(b,0);break;case 2:_.WR(b),t=!1,b.jumpTo(3)}})})};var dO=function(){_.H_.call(this);var B=this;this.shouldFlushErrors=!1;ak.instance||(ak.instance=new ak(_.dV));this.sharedNetworkStatusManager=ak.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(B.shouldFlushErrors&&_.k("offline_error_handling")){var R=TrS().get("errors",!0);if(R){for(var V in R)if(R[V]){var e=new _.H8(V,"sent via offline_errors");e.name=R[V].name;e.stack=R[V].stack;e.level=R[V].level;_.IP(e)}TrS().set("errors",{},2592E3,!0)}}})};
_.l(dO,_.H_);var OE4=function(){if(!dO.instance){var B=_.qN("yt.networkStatusManager.instance")||new dO;_.mk("yt.networkStatusManager.instance",B);dO.instance=B}return dO.instance};
_.p=dO.prototype;_.p.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.p.networkStatusHint=function(B){this.sharedNetworkStatusManager.isOnline=B};
_.p.getWindowStatus=function(){var B=window.navigator.onLine;return B===void 0?!0:B};
_.p.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.p.listen=function(B,R){return this.sharedNetworkStatusManager.listen(B,R)};
_.p.sendNetworkCheckRequest=function(B){B=nDv(this.sharedNetworkStatusManager,B);B.then(function(R){_.k("use_cfr_monitor")&&s7().requestComplete("generate_204",R)});
return B};
dO.prototype.sendNetworkCheckRequest=dO.prototype.sendNetworkCheckRequest;dO.prototype.listen=dO.prototype.listen;dO.prototype.enableErrorFlushing=dO.prototype.enableErrorFlushing;dO.prototype.getWindowStatus=dO.prototype.getWindowStatus;dO.prototype.networkStatusHint=dO.prototype.networkStatusHint;dO.prototype.isNetworkAvailable=dO.prototype.isNetworkAvailable;dO.getInstance=OE4;_.A$=function(B){B=B===void 0?{}:B;_.H_.call(this);var R=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=OE4();var V=_.qN("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);V&&(B.rateLimit?(this.rateLimit=B.rateLimit,V("networkstatus-online",function(){o_a(R,"publicytnetworkstatus-online")}),V("networkstatus-offline",function(){o_a(R,"publicytnetworkstatus-offline")})):(V("networkstatus-online",function(){R.dispatchEvent("publicytnetworkstatus-online")}),V("networkstatus-offline",
function(){R.dispatchEvent("publicytnetworkstatus-offline")})))};
_.l(_.A$,_.H_);_.A$.prototype.isNetworkAvailable=function(){var B=_.qN("yt.networkStatusManager.instance.isNetworkAvailable");return B?B.bind(this.nsmInstance)():!0};
_.A$.prototype.networkStatusHint=function(B){var R=_.qN("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);R&&R(B)};
_.A$.prototype.sendNetworkCheckRequest=function(B){var R=this,V;return _.W(function(e){V=_.qN("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(R.nsmInstance);return _.k("skip_network_check_if_cfr")&&s7().isEndpointCFR("generate_204")?e.return(new Promise(function(X){var Y;R.networkStatusHint(((Y=window.navigator)==null?void 0:Y.onLine)||!0);X(R.isNetworkAvailable())})):V?e.return(V(B)):e.return(!0)})};
var o_a=function(B,R){B.rateLimit?B.lastJobTime?(_.dV.cancelJob(B.schedulerJob),B.schedulerJob=_.dV.addLowPriorityJob(function(){B.lastPublicSignalSent!==R&&(B.dispatchEvent(R),B.lastPublicSignalSent=R,B.lastJobTime=(0,_.P8)())},B.rateLimit-((0,_.P8)()-B.lastJobTime))):(B.dispatchEvent(R),B.lastPublicSignalSent=R,B.lastJobTime=(0,_.P8)()):B.dispatchEvent(R)};var Ixd,wO=function(){lC.call(this,{logsStore:{cleanLogsStore:bkA,deleteRequest:W5K,getMostRecentByStatus:YXN,markAsQueued:hZx,resetRequest:tcA,set:p$q},networkManager:_.EA5(),handleError:function(B,R,V){var e,X=V==null?void 0:(e=V.error)==null?void 0:e.code;if(X===400||X===415){var Y;B=new _.H8(B.message,R,V==null?void 0:(Y=V.error)==null?void 0:Y.code);_.cE(B,void 0,void 0,void 0,!0)}else _.IP(B)},
handleWarning:_.cE,sendFn:vAu,now:_.P8,writeError:x1q,jobManager:_.TT(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.RC("potential_esf_error_limit",10),getBooleanFlag:_.k,disableYtIdbTransactions:!(_.SC()&&_.QGd())});this.initializationPromise=new _.Xs;_.k("networkless_immediately_drop_all_requests")&&Jz5();Rep("LogsDatabaseV2")};
_.l(wO,lC);_.RW4=function(){var B=_.qN("yt.networklessRequestController.instance");B||(B=new wO,_.mk("yt.networklessRequestController.instance",B),_.k("networkless_logging")&&_.$z().then(function(R){B.databaseToken=R;meJ(B);B.initializationPromise.resolve();B.enableCleaning&&Math.random()<=B.cleaningRate&&B.databaseToken&&Nrp(B.databaseToken);_.k("networkless_immediately_drop_sw_health_store")&&BBR(B)}));
return B};
wO.prototype.writeThenSend=function(B,R){R||(R={});R=K5q(B,R);_.SC()||(this.initialized=!1);lC.prototype.writeThenSend.call(this,B,R)};
wO.prototype.sendThenWrite=function(B,R,V){R||(R={});R=K5q(B,R);_.SC()||(this.initialized=!1);lC.prototype.sendThenWrite.call(this,B,R,V)};
wO.prototype.sendAndWrite=function(B,R){R||(R={});R=K5q(B,R);_.SC()||(this.initialized=!1);lC.prototype.sendAndWrite.call(this,B,R)};
wO.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var BBR=function(B){var R;_.W(function(V){if(!B.databaseToken)throw R=Kq("clearSWHealthLogsDb"),R;return V.return(GF5(B.databaseToken).catch(function(e){B.handleError(e)}))})};_.czo=!1;_.qXI=_.R5.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.czo};_.mk("ytNetworklessLoggingInitializationOptions",_.qXI);var aq=function(B){var R=this;this.config_=null;B?this.config_=B:b0o()&&(this.config_=_.uN());_.kD(_.dV,function(){oAZ(R)},5E3)};
aq.prototype.isReady=function(){!this.config_&&b0o()&&(this.config_=_.uN());return!!this.config_};
var O7K=function(B,R,V,e){!_.vE("VISITOR_DATA")&&R!=="visitor_id"&&Math.random()<.01&&_.cE(new _.H8("Missing VISITOR_DATA when sending innertube request.",R,V,e));if(!B.isReady()){var X=new _.H8("innertube xhrclient not ready",R,V,e);_.IP(X);throw X;}var Y={headers:e.headers||{},method:"POST",postParams:V,postBody:e.postBody,postBodyFormat:e.postBodyFormat||"JSON",onTimeout:function(){e.onTimeout()},
onFetchTimeout:e.onTimeout,onSuccess:function(S,M){if(e.onSuccess)e.onSuccess(M)},
onFetchSuccess:function(S){if(e.onSuccess)e.onSuccess(S)},
onError:function(S,M){if(e.onError)e.onError(M)},
onFetchError:function(S){if(e.onError)e.onError(S)},
timeout:e.timeout,withCredentials:!0,compress:e.compress};Y.headers["Content-Type"]||(Y.headers["Content-Type"]="application/json");var t="";(X=B.config_.innertubeHostOverride)&&(t=X);var b=B.config_.innertubeUseThirdPartyAuth||!1,J=_.ddI(b,t,e);Object.assign(Y.headers,J);Y.headers.Authorization&&!t&&b&&(Y.headers["x-origin"]=window.location.origin);var G=_.rg(t+("/youtubei/"+B.config_.innertubeApiVersion+"/"+R),{alt:"json"}),y=function(S){S=S===void 0?!1:S;var M;if(e.retry&&t!="www.youtube-nocookie.com"&&
(S||_.k("skip_ls_gel_retry")||Y.headers["Content-Type"]!=="application/json"||(M=nGI(R,V,J,b)),M)){var f=Y.onSuccess,z=Y.onFetchSuccess;Y.onSuccess=function(Q,q){uFd(M);f(Q,q)};
V.onFetchSuccess=function(Q,q){uFd(M);z(Q,q)}}try{if(S&&e.retry&&!e.networklessOptions.bypassNetworkless)Y.method="POST",e.networklessOptions.writeThenSend?_.RW4().writeThenSend(G,Y):_.RW4().sendAndWrite(G,Y);
else if(e.compress){var T=!e.networklessOptions.writeThenSend;if(Y.postBody){var L=Y.postBody;typeof L!=="string"&&(L=JSON.stringify(Y.postBody));i75(G,L,Y,_.W8,T)}else i75(G,JSON.stringify(Y.postParams),Y,mKN,T)}else _.k("web_all_payloads_via_jspb")?_.W8(G,Y):mKN(G,Y)}catch(Q){if(Q.name==="InvalidAccessError")M&&(uFd(M),M=0),_.cE(Error("fd"));else throw Q;}M&&_.kD(_.dV,function(){oAZ(B)},5E3)};
_.AzI()?$rN().then(function(S){y(S)}):y(!1)};var Zax=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Zax,_.qS);var V64=0,sGA=_.Wb?"webkit":_.to?"moz":_.ho?"ms":wYd?"o":"";_.mk("ytDomDomGetNextId",_.qN("ytDomDomGetNextId")||function(){return++V64});var eWo={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},C6=function(B){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(B=
B||window.event){this.event=B;for(var R in B)R in eWo||(this[R]=B[R]);this.scale=B.scale;this.rotation=B.rotation;var V=B.target||B.srcElement;V&&V.nodeType==3&&(V=V.parentNode);this.target=V;var e=B.relatedTarget;if(e)try{e=e.nodeName?e:null}catch(X){e=null}else this.type=="mouseover"?e=B.fromElement:this.type=="mouseout"&&(e=B.toElement);this.relatedTarget=e;this.clientX=B.clientX!=void 0?B.clientX:B.pageX;this.clientY=B.clientY!=void 0?B.clientY:B.pageY;this.keyCode=B.keyCode?B.keyCode:B.which;
this.charCode=B.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=B.altKey;this.ctrlKey=B.ctrlKey;this.shiftKey=B.shiftKey;this.metaKey=B.metaKey;this.pageX_=B.pageX;this.pageY_=B.pageY}}catch(X){}},XwJ=function(B){if(document.body&&document.documentElement){var R=document.body.scrollTop+document.documentElement.scrollTop;
B.pageX_=B.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);B.pageY_=B.clientY+R}};
C6.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
C6.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
C6.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var $W=_.R5.ytEventsEventsListeners||{};_.mk("ytEventsEventsListeners",$W);var $15=_.R5.ytEventsEventsCounter||{count:0};_.mk("ytEventsEventsCounter",$15);var Ci_=_.S9(function(){var B=!1;try{var R=Object.defineProperty({},"capture",{get:function(){B=!0}});
window.addEventListener("test",null,R)}catch(V){}return B});_.eY(O7,_.Hn);O7.prototype.onMouseMove_=function(B){B.pageX_===void 0&&XwJ(B);var R=B.pageX_;B.pageY_===void 0&&XwJ(B);this.position_=new _.fx(R,B.pageY_)};
O7.prototype.checkPosition_=function(){if(this.position_){var B=(0,_.P8)();if(this.previousTime_!=0){var R=this.previousPosition_,V=this.position_,e=R.x-V.x;R=R.y-V.y;e=Math.sqrt(e*e+R*R)/(B-this.previousTime_);this.cycles_[this.index_]=Math.abs((e-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(V=R=0;V<4;V++)R+=this.cycles_[V]||0;R>=3&&this.callback_();this.previousVelocity_=e}this.previousTime_=B;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
O7.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.PiK(this.mouseListenerKey_)};var opq={};var hIo=new _.P("rawColdConfigGroup");var Y5d=new _.P("rawHotConfigGroup");var pw4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(pw4,_.qS);var g$I=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(g$I,_.qS);var Me=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B,500)};
_.l(Me,_.qS);Me.prototype.getPayloadCase=function(){return _.fU(this,Yqv)};
Me.prototype.getContext=function(){return _.OB(this,g$I,33)};
var Yqv=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var BlK=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(BlK,_.qS);var xUu=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(xUu,_.qS);xUu.prototype.setVideoId=function(B){return JK(this,1,Lao,qj(B))};
xUu.prototype.getPlaylistId=function(){return _.J4(this,yU(this,Lao,2))};
var Lao=[1,2];var CpN=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(CpN,_.qS);CpN.prototype.getContext=function(){return _.OB(this,jG,1)};
CpN.prototype.getTier=function(){return _.LU(this,7)};var hWG,VU,eG;hWG=_.R5.ytPubsubPubsubInstance||new _.Ju;VU=_.R5.ytPubsubPubsubSubscribedKeys||{};eG=_.R5.ytPubsubPubsubTopicToKeys||{};_.BHp=_.R5.ytPubsubPubsubIsSynchronous||{};_.Ju.prototype.subscribe=_.Ju.prototype.subscribe;_.Ju.prototype.unsubscribeByKey=_.Ju.prototype.unsubscribeByKey;_.Ju.prototype.publish=_.Ju.prototype.publish;_.Ju.prototype.clear=_.Ju.prototype.clear;_.mk("ytPubsubPubsubInstance",hWG);_.mk("ytPubsubPubsubTopicToKeys",eG);_.mk("ytPubsubPubsubIsSynchronous",_.BHp);
_.mk("ytPubsubPubsubSubscribedKeys",VU);var pE=window;var TA=_.k("web_enable_lifecycle_monitoring")&&pcx()!==0,t64=_.k("web_enable_lifecycle_monitoring");var bn5=function(B){var R=this;var V=V===void 0?0:V;var e=e===void 0?_.TT():e;this.JSC$8720_defaultPriority=V;this.scheduler=e;this.completedResolver=new _.Xs;this.scheduledPayloads=B;for(B={i$jscomp$528:0};B.i$jscomp$528<this.scheduledPayloads.length;B={payload$jscomp$18:void 0,i$jscomp$528:B.i$jscomp$528},B.i$jscomp$528++)B.payload$jscomp$18=this.scheduledPayloads[B.i$jscomp$528],V=function(X){return function(){X.payload$jscomp$18.job();R.scheduledPayloads[X.i$jscomp$528].processed=!0;R.scheduledPayloads.every(function(Y){return Y.processed===
!0})&&R.completedResolver.resolve()}}(B),e=this.scheduler.addJob(V,Wh2(this,B.payload$jscomp$18)),this.scheduledPayloads[B.i$jscomp$528]=Object.assign({},B.payload$jscomp$18,{job:V,
jobId:e})};
bn5.prototype.flushJobs=function(){var B=this,R=Array.from(this.scheduledPayloads.keys()).sort(function(e,X){return Wh2(B,B.scheduledPayloads[X])-Wh2(B,B.scheduledPayloads[e])});
R=_.h(R);for(var V=R.next();!V.done;V=R.next())V=this.scheduledPayloads[V.value],V.jobId===void 0||V.processed||(this.scheduler.cancelJob(V.jobId),this.scheduler.addJob(V.job,10))};
bn5.prototype.cancel=function(){for(var B=_.h(this.scheduledPayloads),R=B.next();!R.done;R=B.next())R=R.value,R.jobId===void 0||R.processed||this.scheduler.cancelJob(R.jobId),R.processed=!0;this.completedResolver.resolve()};
var Wh2=function(B,R){var V;return(V=R.priority)!=null?V:B.JSC$8720_defaultPriority};var xX=function(B){this.state=B;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};TA&&Yxx(this.state)};
xX.prototype.install=function(B){this.plugins.push(B);return this};
xX.prototype.uninstall=function(){var B=this;_.HB.apply(0,arguments).forEach(function(R){R=B.plugins.indexOf(R);R>-1&&B.plugins.splice(R,1)})};
xX.prototype.transition=function(B,R){var V=this;TA&&h1o(this.state);var e=this.transitions.find(function(Y){return Array.isArray(Y.from)?Y.from.find(function(t){return t===V.state&&Y.to===B}):Y.from===V.state&&Y.to===B});
if(e){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Jm_(this,B,R);this.state=B;TA&&Yxx(this.state);e=e.action.bind(this);var X=this.plugins.filter(function(Y){return Y[B]}).map(function(Y){return Y[B]});
e(jAb(this,X),R)}else throw Error("gd`"+this.state+"`"+B);};
var jAb=function(B,R){var V=R.filter(function(X){return UK_(B,X)===10}),e=R.filter(function(X){return UK_(B,X)!==10});
return B.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var X=_.HB.apply(0,arguments);return _.W(function(Y){if(Y.nextAddress==1)return _.U(Y,B.runImmediateJobsAsync.apply(B,[V].concat(_.MI(X))),2);B.setJobSetWithScheduledJobs.apply(B,[e].concat(_.MI(X)));_.b3(Y)})}:function(){var X=_.HB.apply(0,arguments);
B.runImmediateJobsSync.apply(B,[V].concat(_.MI(X)));B.setJobSetWithScheduledJobs.apply(B,[e].concat(_.MI(X)))}};
xX.prototype.runImmediateJobsSync=function(B){var R=_.HB.apply(1,arguments);_.TT();for(var V=_.h(B),e=V.next(),X={};!e.done;X={lifecycle$jscomp$2:void 0},e=V.next())X.lifecycle$jscomp$2=e.value,nc(function(Y){return function(){NBa(Y.lifecycle$jscomp$2.name);WaS(function(){return Y.lifecycle$jscomp$2.callback.apply(Y.lifecycle$jscomp$2,_.MI(R))});
Lg(Y.lifecycle$jscomp$2.name)}}(X))};
xX.prototype.runImmediateJobsAsync=function(B){var R=_.HB.apply(1,arguments),V,e,X,Y;return _.W(function(t){t.nextAddress==1&&(_.TT(),V=_.h(B),e=V.next(),X={});if(t.nextAddress!=3){if(e.done)return t.jumpTo(0);X.lifecycle$jscomp$3=e.value;X.asyncJobCompletion=void 0;Y=function(b){return function(){NBa(b.lifecycle$jscomp$3.name);var J=WaS(function(){return b.lifecycle$jscomp$3.callback.apply(b.lifecycle$jscomp$3,_.MI(R))});
pjd(J)?b.asyncJobCompletion=_.k("web_lifecycle_error_handling_killswitch")?J.then(function(){Lg(b.lifecycle$jscomp$3.name)}):J.then(function(){Lg(b.lifecycle$jscomp$3.name)},function(G){tmN(G);
Lg(b.lifecycle$jscomp$3.name)}):Lg(b.lifecycle$jscomp$3.name)}}(X);
nc(Y);return X.asyncJobCompletion?_.U(t,X.asyncJobCompletion,3):t.jumpTo(3)}X={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};e=V.next();return t.jumpTo(2)})};
xX.prototype.setJobSetWithScheduledJobs=function(B){var R=_.HB.apply(1,arguments),V=this,e=B.map(function(X){return{job:function(){NBa(X.name);WaS(function(){return X.callback.apply(X,_.MI(R))});
Lg(X.name)},
priority:UK_(V,X)}});
e.length&&(this.jobSet=new bn5(e))};
var UK_=function(B,R){var V,e;return(e=(V=B.overridePriority)!=null?V:R.priority)!=null?e:0},NBa=function(B){TA&&B&&Yxx(B)},Lg=function(B){TA&&B&&h1o(B)},Jm_=function(B,R,V){t64&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+B.constructor.name+"] '"+B.state+"' to '"+R+"'"),console.log("with message: ",V),console.groupEnd())};
_.mh.Object.defineProperties(xX.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var G8a=function(B){xX.call(this,B===void 0?"none":B);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(){}}]},ymT;
_.l(G8a,xX);G8a.prototype.runApplicationNavigationBegin=function(B,R){var V=this;this.navigationTimer=_.kD(_.dV,function(){V.currentState==="application_navigating"&&V.transition("none")},5E3);
B(R==null?void 0:R.event)};
G8a.prototype.runApplicationNavigationEnd=function(B,R){this.navigationTimer&&(_.dV.cancelJob(this.navigationTimer),this.navigationTimer=null);B(R==null?void 0:R.event)};
_.pKx=function(){ymT||(ymT=new G8a);return ymT};var XKd=[];_.mk("yt.logging.transport.getScrapedGelPayloads",function(){return XKd});var YD=function(){var B=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return B.totalEntries}}};
YD.prototype.storePayload=function(B,R){B=bJu(B);this.store[B]?this.store[B].push(R):(this.memoizedKeySequences={},this.store[B]=[R]);this.totalEntries++;_.k("more_accurate_gel_parser")&&(R=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(R));return B};
YD.prototype.smartExtractMatchingEntries=function(B){if(!B.keys.length)return[];for(var R=Sql(this,B.keys.splice(0,1)[0]),V=[],e=0;e<R.length;e++)this.store[R[e]]&&B.sizeLimit&&(this.store[R[e]].length<=B.sizeLimit?(V.push.apply(V,_.MI(this.store[R[e]])),delete this.store[R[e]]):V.push.apply(V,_.MI(this.store[R[e]].splice(0,B.sizeLimit))));this.totalEntries-=V.length;(B==null?0:B.sizeLimit)&&V.length<(B==null?void 0:B.sizeLimit)&&(B.sizeLimit-=V.length,V.push.apply(V,_.MI(this.smartExtractMatchingEntries(B))));
return V};
YD.prototype.extractMatchingEntries=function(B){B=Sql(this,B);for(var R=[],V=0;V<B.length;V++)this.store[B[V]]&&(R.push.apply(R,_.MI(this.store[B[V]])),delete this.store[B[V]]);this.totalEntries-=R.length;return R};
YD.prototype.getSequenceCount=function(B){B=Sql(this,B);for(var R=0,V=0;V<B.length;V++){var e=void 0;R+=((e=this.store[B[V]])==null?void 0:e.length)||0}return R};
var Sql=function(B,R){var V=bJu(R);if(B.memoizedKeySequences[V])return B.memoizedKeySequences[V];var e=Object.keys(B.store)||[];if(e.length<=1&&bJu(R)===e[0])return e;for(var X=[],Y=0;Y<e.length;Y++){var t=e[Y].split("/");if(Hn4(R.auth,t[0])){var b=R.isJspb;Hn4(b===void 0?"undefined":b?"true":"false",t[1])&&Hn4(R.cttAuthInfo,t[2])&&(b=R.tier,b=b===void 0?"undefined":JSON.stringify(b),Hn4(b,t[3])&&X.push(e[Y]))}}return B.memoizedKeySequences[V]=X},Hn4=function(B,R){return B===void 0||B==="undefined"?
!0:B===R};
YD.prototype.getSequenceCount=YD.prototype.getSequenceCount;YD.prototype.extractMatchingEntries=YD.prototype.extractMatchingEntries;YD.prototype.smartExtractMatchingEntries=YD.prototype.smartExtractMatchingEntries;YD.prototype.storePayload=YD.prototype.storePayload;var iJ5,cMK,s_d,W5,M6J,JJK,bcI,qxp,Q_K,z1Z,AMo,VRu,Kad;iJ5=_.RC("initial_gel_batch_timeout",2E3);cMK=_.RC("gel_queue_timeout_max_ms",6E4);s_d=_.RC("gel_min_batch_size",5);W5=void 0;M6J=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
JJK=new M6J;bcI=new M6J;qxp=new M6J;Q_K=new M6J;AMo=!0;VRu=1;_.RIN=new Map;Kad=_.R5.ytLoggingTransportTokensToCttTargetIds_||{};_.mk("ytLoggingTransportTokensToCttTargetIds_",Kad);var vpu=_.R5.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.mk("ytLoggingTransportTokensToJspbCttTargetIds_",vpu);var tK={};var le=_.R5.ytLoggingGelSequenceIdObj_||{};_.mk("ytLoggingGelSequenceIdObj_",le);var G2K=[];var wKu=new Set,k2S=0,vTd=0,LRd=0,f9A=[],D9S=[],KR5=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var m9o=function(){};
m9o.prototype.getUrl=function(B,R){R=R===void 0?!1:R;return B.hasOwnProperty("shareEndpoint")?null:_.q5K(B,null,R)};
var O2Z=function(B,R,V){B={endpoint:R,actions:[]};V=(V.path?V.path[0]:V.target).icon||"";R=V.indexOf(":");R>0&&(V=V.substr(R+1));V&&B.actions.push(V);return B};var rJ_=/Command$/,FRY=/Endpoint$/,AJA=new Map;var k8T,DKv;k8T=1;_.sd=function(){this.actionRoutingMap=new Map};
_.sd.prototype.triggerAction=function(B){var R=new k3x(B,!1,_.HB.apply(1,arguments));this.handleAction(R);return R.returnValue};
_.sd.prototype.triggerOptionalAction=function(B){var R=new k3x(B,!0,_.HB.apply(1,arguments));this.handleAction(R);return R.returnValue};
_.vW=function(B,R,V){R.forEach(function(e){var X=sT_(e);X&&B.triggerOptionalAction(X,e,V,void 0)})};
_.sd.prototype.handleAction=function(B){var R=this.actionRoutingMap.get(B.actionName);R&&DKv(B,R);B.optionalAction||B.returnValue.length!==0||(B=new _.H8("Unhandled action",B.actionName),_.cE(B))};
DKv=function(B,R){R.forEach(function(V){var e=null;V?e=V.apply(null,B.args):(V=Error("hd"),V.params=B.actionName,_.IP(V));B.returnValue.push(e)})};
_.Fo=function(B,R,V){V||(V=k8T++);for(var e=_.h(Object.keys(R)),X=e.next();!X.done;X=e.next()){X=X.value;var Y=B.actionRoutingMap.get(X);Y||(Y=new Map,B.actionRoutingMap.set(X,Y));B.registerActionHandler(V,X,R[X],Y)}return V};
_.sd.prototype.registerActionHandler=function(B,R,V,e){e.set(B,_.Qh(V))};
_.rn=function(B,R,V){R=_.h(Object.keys(R));for(var e=R.next();!e.done;e=R.next())(e=B.actionRoutingMap.get(e.value))&&e.delete(V)};
_.R6(_.sd);var Pao=function(B,R){var V=_.sd.getInstance();_.zM(function(){var e={},X=_.Fo(V,(e[B]=R,e));_.aK(function(){var Y={};_.rn(V,(Y[B]="",Y),X)})})};var oBx=function(B,R){_.zM(function(){var V=B.value;V?(V.addEventListener("yt-service-request-sent",R,void 0),_.aK(function(){V?V.removeEventListener("yt-service-request-sent",R,void 0):B1d(B)})):B1d(B)})};X5p=LAd;var Uxu=new Set(["For","If","Match","Watch"]),fph={},lp5=(fph[vU.default]=function(){return O6o},fph.style=function(){return O6o},fph),zWS;
for(zWS in lp5)OJ.attributes[zWS]=lp5[zWS](OJ.attributes[zWS]);var ue=new _.u0("VISIBILITY_OBSERVER");var lP5={retrieve:function(B){return this.id.\u0275prov.token===B.\u0275prov.token?this.contextValue:this?vjS(this,this.id):LnY}};var ap_=function(B,R,V){if(B!==$D)return!1;B=hqp(document.createElement("div"),function(){var e=oP(!1);try{V[0]()}finally{oP(e)}});
B=Array.from(B.childNodes);B.length===1&&(B=B[0]);return B};var dKG=function(B){B=B.clone();ojo(B);HT(B,"dg",null);HT(B,"d","0");PJl(B,null);nRR(B,null);return B},wwb=!0,TB_=function(B,R,V){var e=V===void 0?{}:V;
V=e.cssRowKey===void 0?void 0:e.cssRowKey;var X=e.combinedSignature===void 0?void 0:e.combinedSignature;var Y=e.extraEdges===void 0?void 0:e.extraEdges;e=e.callback===void 0?void 0:e.callback;HT(B,"m",R.join(","));Y&&OWR(B,Y);V&&(HT(B,"ck",V),X?HT(B,"rs",X):wwb&&(wwb=!1));if(e){if(e!=null&&!VvR.test(e))throw Error("ab`"+e);HT(B,"cb",e)}B=B.toString();_.pZ(B,"/")&&(B=QN4(document.location.href)+B);return _.Yq(B)};var LhR=function(B){return xKS(B).then(function(R){return JSON.parse(R.responseText)})},xKS=function(B){var R={},V=R.xmlHttpFactory?R.xmlHttpFactory.createInstance():Hrv.createInstance();
return(new _.be(function(e,X){var Y;try{V.open("GET",B,!0)}catch(J){X(new Kg("Error opening XHR: "+J.message,B,V))}V.onreadystatechange=function(){if(V.readyState==4){_.R5.clearTimeout(Y);var J;!(J=S0o(V.status))&&(J=V.status===0)&&(J=Em_(B),J=!(J=="http"||J=="https"||J==""));J?e(V):X(new v_S(V.status,B,V))}};
V.onerror=function(){X(new Kg("Network error",B,V))};
if(R.headers)for(var t in R.headers){var b=R.headers[t];b!=null&&V.setRequestHeader(t,b)}R.withCredentials&&(V.withCredentials=R.withCredentials);R.responseType&&(V.responseType=R.responseType);R.mimeType&&V.overrideMimeType(R.mimeType);R.timeoutMs>0&&(Y=_.R5.setTimeout(function(){V.onreadystatechange=function(){};
V.abort();X(new Kh5(B,V))},R.timeoutMs));
try{V.send(null)}catch(J){V.onreadystatechange=function(){},_.R5.clearTimeout(Y),X(new Kg("Error sending XHR: "+J.message,B,V))}})).thenCatch(function(e){e instanceof _.Cw&&V.abort();
throw e;})},Kg=function(B,R,V){_.o5.call(this,B+", url="+R);
this.url=R;this.xhr=V};
_.eY(Kg,_.o5);Kg.prototype.name="XhrError";var v_S=function(B,R,V){Kg.call(this,"Request Failed, status="+B,R,V);this.status=B};
_.eY(v_S,Kg);v_S.prototype.name="XhrHttpError";var Kh5=function(B,R){Kg.call(this,"Request timed out",B,R)};
_.eY(Kh5,Kg);Kh5.prototype.name="XhrTimeoutError";Bb=Bb||{};var Ik=function(){_.Hn.call(this)};
_.eY(Ik,_.Hn);Ik.prototype.initialize=function(){};var Ip4=function(B,R){this.fn_=B;this.handler_=R};
Ip4.prototype.execute=function(B){this.fn_&&(this.fn_.call(this.handler_||null,B),this.fn_=this.handler_=null)};
Ip4.prototype.abort=function(){this.handler_=this.fn_=null};var Ec=function(B,R){_.Hn.call(this);this.deps_=B;this.JSC$8847_id_=R;this.onloadCallbacks_=[];this.JSC$8847_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.eY(Ec,_.Hn);Ec.prototype.moduleConstructor_=Ik;Ec.prototype.module_=null;Ec.prototype.getId=function(){return this.JSC$8847_id_};
Ec.prototype.registerCallback=function(B,R){return E_J(this.onloadCallbacks_,B,R)};
var QAJ=function(B,R){E_J(B.JSC$8847_onErrorCallbacks_,R)},E_J=function(B,R,V){R=new Ip4(R,V);
B.push(R);return R};
Ec.prototype.isLoaded=function(){return!!this.module_};
Ec.prototype.onLoad=function(B){var R=new this.moduleConstructor_;R.initialize(B());this.module_=R;R=(R=qq2(this.earlyOnloadCallbacks_,B()))||qq2(this.onloadCallbacks_,B());R||(this.JSC$8847_onErrorCallbacks_.length=0);return R};
Ec.prototype.onError=function(B){(B=qq2(this.JSC$8847_onErrorCallbacks_,B))&&eq(Error("nd`"+B));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var qq2=function(B,R){for(var V=[],e=0;e<B.length;e++)try{B[e].execute(R)}catch(X){eq(X),V.push(X)}B.length=0;return V.length?V:null};
Ec.prototype.disposeInternal=function(){Ec.superClass_.disposeInternal.call(this);_.Cx(this.module_)};var cmG,g_a,FhT,rml,ino,sAS,PAl,$K5,CAG;
_.qp=function(B,R,V,e,X){e=e===void 0?!1:e;X=X===void 0?!1:X;var Y=Y===void 0?!0:Y;this.scsReferenceUrl_=uy(_.hR(B).toString(),Y);this.cssRowKey_=R;this.combinedSignature_=V;this.useNegativeLoading_=e;this.requestedModuleMap_={};this.JSC$8850_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(B=Sp(this.scsReferenceUrl_,"excm"))?B.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;uWx();this.logger=null;_.Q8(this,uBh(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
cmG=function(B,R){if(R.href||R.getAttribute("data-href"))if(R=R.href||R.getAttribute("data-href"),$Nu(R)&&!uy(R).urlPrefix_.endsWith("_/js/")){R=uBh(uy(R));R=_.h(R);for(var V=R.next();!V.done;V=R.next())V=V.value,B.loadedCssModuleList_.includes(V)||B.loadedCssModuleList_.push(V)}};
_.qp.prototype.JSC$8852_loadModules=function(B,R,V){var e=V===void 0?{}:V;V=e.extraEdges;var X=e.onError;var Y=e.onSuccess;e=e.forceReload;this.JSC$8850_moduleInfoMap_=R;if(!B)throw Error("od");if(this.shouldScanForCss_){R=_.h(document.getElementsByTagName("style"));for(var t=R.next();!t.done;t=R.next())cmG(this,t.value);R=_.h(document.getElementsByTagName("link"));for(t=R.next();!t.done;t=R.next())cmG(this,t.value)}AmR(this,ino(this,B),V,X,Y,e)};
var AmR=function(B,R,V,e,X,Y){e=e===void 0?function(){}:e;
X=X===void 0?function(){}:X;
Y=Y===void 0?!1:Y;sAS(B,R,function(t,b,J){J=J===void 0?b:J;B.enableFallbackFetch&&Y?B.loadWithFetch(t,b,e,X,J):B.load(t,b,e,X,J,V)},V)||e(-1)};
_.qp.prototype.loadWithFetch=function(){_.W(function(){throw Error("pd");})};
_.qp.prototype.maybeSetAdditionalFields=function(){};
g_a=function(B,R,V){if(B.useNegativeLoading_){var e=B.scsReferenceUrl_;B={cssRowKey:B.cssRowKey_,combinedSignature:B.combinedSignature_,extraEdges:V,requestedModuleIds:FhT(B),requestedCssModuleIds:rml(B)};var X=B===void 0?{}:B;B=X.requestedModuleIds===void 0?[]:X.requestedModuleIds;V=X.requestedCssModuleIds===void 0?[]:X.requestedCssModuleIds;var Y=X.cssRowKey===void 0?void 0:X.cssRowKey;var t=X.combinedSignature===void 0?void 0:X.combinedSignature;var b=X.extraEdges===void 0?void 0:X.extraEdges;
X=X.callback===void 0?void 0:X.callback;e=dKG(e);HT(e,"d","1");PJl(e,B);nRR(e,V);R=TB_(e,R,{cssRowKey:Y,combinedSignature:t,extraEdges:b,callback:X})}else e=B.scsReferenceUrl_,B={cssRowKey:B.cssRowKey_,combinedSignature:B.combinedSignature_,requestedModuleIds:FhT(B),requestedCssModuleIds:rml(B)},b=B===void 0?{}:B,B=b.requestedCssModuleIds===void 0?[]:b.requestedCssModuleIds,V=b.cssRowKey===void 0?void 0:b.cssRowKey,Y=b.combinedSignature===void 0?void 0:b.combinedSignature,t=b.extraEdges===void 0?
void 0:b.extraEdges,b=b.callback===void 0?void 0:b.callback,e=dKG(e),nRR(e,B),R=TB_(e,R,{cssRowKey:V,combinedSignature:Y,extraEdges:t,callback:b});return R};
_.Q8=function(B,R){for(var V=!1,e=[],X=0;X<R.length;++X){var Y=R[X];B.requestedModuleMap_[Y]||(B.requestedModuleMap_[Y]=!0,B.requestedModuleList_.push(Y),V=!0,e.push(Y))}V&&(B.requestedModuleListSorted_=!1)};
_.cW=function(B,R){for(var V=[],e=0;e<R.length;++e){var X=R[e];B.requestedModuleMap_[X]&&(delete B.requestedModuleMap_[X],_.uo(B.requestedModuleList_,X),V.push(X))}};
_.qp.prototype.load=function(B,R,V,e,X){X=X===void 0?R:X;_.hR(B);var Y=this.useCors_,t=this.corsMode_,b=this.fetchPriority,J=_.jr("SCRIPT");_.Qm(J,B);Y&&(J.crossOrigin=t);J.async=!1;b&&J.setAttribute("fetchpriority",b);_.Q8(this,R);_.ZnT(this,B,J,R,V,e,X)};
_.ZnT=function(B,R,V,e,X,Y,t){t=t===void 0?e:t;B.lastScript_=V;B.insertPos.insertBefore(V,B.insertPos.firstChild);_.mKl(V,e,function(){V.parentElement.removeChild(V);B.lastScript_==V&&(B.lastScript_=null);var b=new Set;e.map(function(G){return b.add(G)});
for(var J in B.JSC$8850_moduleInfoMap_)B.JSC$8850_moduleInfoMap_[J].isLoaded()&&b.add(J);Array.from(b);Y()},function(b){V.parentElement.removeChild(V);
B.lastScript_==V&&(B.lastScript_=null);_.cW(B,b);B.pendingModuleGraphUpdate_?B.pendingModuleGraphUpdate_.then(function(){X(-1,R)}):X(-1,R)},t)};
_.mKl=function(B,R,V,e,X){X=X===void 0?R:X;var Y=R.length,t=function(){Y=0;B.onload=null;B.onerror=null;b=function(){}},b=function(){t();
var G=X.filter(function(y){return!z$().getModuleInfo(y).isLoaded()});
G.length!==0?e(G,"Response was successful but was missing module(s) "+G+"."):V()},J=function(){Y--;
Y==0&&b()};
R.forEach(function(G){G=z$().getModuleInfo(G);G.isLoaded()?J():(E_J(G.earlyOnloadCallbacks_,J),QAJ(G,J))});
B.onload=function(){return b()};
B.onerror=function(){t();e(R)}};
FhT=function(B){B.requestedModuleListSorted_||(B.requestedModuleListSorted_=!0,B.requestedModuleList_.sort());return B.requestedModuleList_};
rml=function(B){B=B.loadedCssModuleList_;B.sort();return B};
ino=function(B,R){return R.filter(function(V){return!B.requestedModuleMap_[V]})};
sAS=function(B,R,V,e){if(B.pendingModuleGraphUpdate_)return B.pendingModuleGraphUpdate_.then(function(){sAS(B,R,V,e)}),!0;
if(!B.useNegativeLoading_){var X=[],Y=Object.assign({},B.requestedModuleMap_);$K5(B,R,function(y){X.push(y.getId())},e,function(y){return!y.isLoaded()},Y);
R=X}for(Y=0;Y<R.length;){for(var t=R.length-Y,b=Y==0?R:R.slice(Y,R.length),J=g_a(B,b,e),G=_.hR(J).toString();G.length>B.urlMaxLength;)if(t>1)t-=Math.ceil((G.length-B.urlMaxLength)/6),t=Math.max(t,1),b=R.slice(Y,Y+t),J=g_a(B,b,e),G=_.hR(J).toString();else return B.useNegativeLoading_?(B.useNegativeLoading_=!1,B.pendingModuleGraphUpdate_=CAG(B).then(function(y){PAl(B,y,e)}),sAS(B,R.slice(Y),V,e)):!1;
Y+=t;B.useNegativeLoading_?V(J,b):V(J,b,Y===R.length?R:[])}return!0};
PAl=function(B,R,V){z$().setAllModuleInfoString((R||{}).moduleGraph);$K5(B,FhT(B),function(e){_.Q8(B,[e.getId()])},V);
B.pendingModuleGraphUpdate_=null};
$K5=function(B,R,V,e,X,Y){Y=Y===void 0?{}:Y;var t=z$();R=_.h(R);for(var b=R.next();!b.done;b=R.next()){b=b.value;var J=t.getModuleInfo(b);if(!(Y[b]||X&&!X(J))){Y[b]=!0;var G=J.deps_||[];if(e){var y=[];e[b]&&(y=Object.keys(e[b]));G=G.concat(y)}$K5(B,G,V,e,X,Y);V(J)}}};
CAG=function(B){B=B.scsReferenceUrl_.clone();ojo(B);HT(B,"dg",null);HT(B,"md","1");return LhR(B.toString())};var dxY=new Uint8Array(123);var n_v=[];var uiv=function(){this.JSC$7962_loader_=null};
_.p=uiv.prototype;_.p.setBatchModeEnabled=function(){};
_.p.setAllModuleInfoString=function(){};
_.p.addExtraEdge=function(){throw Error("qd");};
_.p.removeExtraEdge=function(){throw Error("rd");};
_.p.getModuleContext=function(){return null};
_.p.isActive=function(){return!1};
_.p.isUserActive=function(){return!1};
_.p.registerCallback=function(){};var Aw=function(B,R,V,e,X){var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.name="ModuleLoadFailure";this.type=B;this.status=R;this.requestedModuleIds=V;this.url=e;this.cause=X;this.message=this.toString()};
_.l(Aw,Error);Aw.prototype.toString=function(){return OnR(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var OnR=function(B){switch(B.type){case Aw.JSC$8862_Type.UNAUTHORIZED:return"Unauthorized";case Aw.JSC$8862_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Aw.JSC$8862_Type.TIMEOUT:return"Timed out";case Aw.JSC$8862_Type.OLD_CODE_GONE:return"Out of date module id";case Aw.JSC$8862_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+B.type}};
Bb.ModuleLoadFailure=Aw;Bb.ModuleLoadFailure.JSC$8862_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var iC=function(){this.moduleIds_=this.JSC$7962_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8865_extraEdges_={};this.JSC$8865_callbackMap_={};this.JSC$8865_currentlyLoadingModule_=this.baseModuleInfo_=new Ec([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Fd;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.eY(iC,uiv);var oaR=function(B,R){_.o5.call(this,"Error loading "+B+": "+R)};
_.eY(oaR,_.o5);iC.prototype.setBatchModeEnabled=function(B){this.batchModeEnabled_=B};
iC.prototype.setAllModuleInfoString=function(B,R){if(!(this instanceof iC))this.setAllModuleInfoString(B,R);else if(typeof B==="string"){if(B.startsWith("d$")){B=B.substring(2);for(var V=[],e=0,X=B.indexOf("/"),Y=0,t=!1,b=0;;){var J=t?B.substring(Y):B.substring(Y,X);if(J.length===0)e++,Y="sy"+e.toString(36),J=[];else{var G=J.indexOf(":");if(G<0)Y=J,J=[];else if(G===J.length-1)Y=J.substring(0,G),J=Array(V[b-1]);else{Y=J.substring(0,G);J=J.substring(G+1).split(",");G=b;for(var y=0;y<J.length;y++)G-=
J[y].length===0?1:Number(J[y]),J[y]=V[G]}G=0;if(Y.length===0)G=1;else if(Y.charAt(0)==="+"||Y.charAt(0)==="-")G=Number(Y);G!==0&&(e+=G,Y="sy"+e.toString(36))}V.push(Y);BTR(this,Y,J);if(t)break;Y=X+1;X=B.indexOf("/",Y);X===-1&&(t=!0);b++}this.moduleIds_=V}else if(B.startsWith("p$"))R6_(this,B);else{B=B.split("/");V=[];for(e=0;e<B.length;e++){b=B[e].split(":");X=b[0];t=[];if(b[1])for(t=b[1].split(","),b=0;b<t.length;b++)t[b]=V[parseInt(t[b],36)];V.push(X);BTR(this,X,t)}this.moduleIds_=V}R&&R.length?
(_.Vv(this.loadingModuleIds_,R),this.lastInitialModuleId_=_.qY(R)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8865_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8865_currentlyLoadingModule_=null,(R=this.baseModuleInfo_.onLoad((0,_.M2)(this.getModuleContext,this)))&&R.length&&Vko(this,new Bb.ModuleLoadFailure(Bb.ModuleLoadFailure.JSC$8862_Type.INIT_ERROR,void 0,void 0,void 0,R[0])),sc(this))}};
var R6_=function(B,R){var V=R.substring(2);for(R=0;R<64;R++)dxY["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(R)]=R;var e={buf:V,pos:0};Bw(e);var X=Bw(e),Y=Bw(e)+1;R=Array(X);var t=Array(X),b=Array(X);Y=Array(Y);var J=0,G=0,y=e.pos,S=e.buf.indexOf("|",e.pos);e.pos=S+1;for(S=0;S<X;S++){var M=Bw(e),f=M&2,z=M&1;M>>>=2;z?(J+=M>>>1^-(M&1),M="sy"+J.toString(36)):(z=y,y+=M,M=V.substring(z,y));R[S]=M;f&&(Y[G++]=M)}Y[G]="";e.pos++;G=X&-2;V=X&1;for(J=0;J<G;J+=2)y=wrI(e),b[J]=
y&7,b[J+1]=y>>>3&7;V&&(V=wrI(e),b[G]=V&7);e.pos++;for(G=0;G<X;G++)b[G]===7&&(b[G]=Bw(e));e.pos++;for(V=G=0;V<X;V++){J=b[V];y=J===0?n_v:Array(J);t[V]=y;S=G;for(f=0;f<J;f++)S-=Bw(e),y[f]=Y[S];Y[G]===R[V]&&G++}for(e=0;e<R.length;e++)BTR(B,R[e],t[e]);B.moduleIds_=R};
_.p=iC.prototype;_.p.getModuleInfo=function(B){return this.moduleInfoMap[B]};
_.p.addExtraEdge=function(B,R){var V=this.getModuleInfo(B);V&&V.isLoaded()?this.load(R):(this.JSC$8865_extraEdges_[B]||(this.JSC$8865_extraEdges_[B]={}),this.JSC$8865_extraEdges_[B][R]=!0)};
_.p.removeExtraEdge=function(B,R){if(this.JSC$8865_extraEdges_[B]){delete this.JSC$8865_extraEdges_[B][R];for(var V in this.JSC$8865_extraEdges_[B])return;delete this.JSC$8865_extraEdges_[B]}};
_.p.isActive=function(){return this.loadingModuleIds_.length>0};
_.p.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var sc=function(B){var R=B.lastActive_,V=B.isActive();V!=R&&(B.executeCallbacks_(V?"active":"idle"),B.lastActive_=V);R=B.isUserActive();R!=B.userLastActive_&&(B.executeCallbacks_(R?"userActive":"userIdle"),B.userLastActive_=R)},BTR=function(B,R,V){B.moduleInfoMap[R]?(B=B.moduleInfoMap[R].deps_,B!=V&&B.splice.apply(B,[0,
B.length].concat(_.MI(V)))):B.moduleInfoMap[R]=new Ec(V,R)},XJh=function(B,R,V){var e=[];
th(R,e);R=[];for(var X={},Y=0;Y<e.length;Y++){var t=e[Y],b=B.getModuleInfo(t);if(!b)throw Error("sd`"+t);var J=new Fd;X[t]=J;b.isLoaded()?J.callback(null):(e6T(B,t,b,!!V,J),B.isModuleLoading(t)||R.push(t))}R.length>0&&(B.loadingModuleIds_.length===0?B.loadModules_(R):(B.requestedModuleIdsQueue_.push(R),sc(B)));return X},e6T=function(B,R,V,e,X){V.registerCallback(X.callback,X);
QAJ(V,function(Y){X.errback(new oaR(R,Y))});
B.isModuleLoading(R)?e&&(pJG(B,R),sc(B)):e&&pJG(B,R)};
iC.prototype.loadModules_=function(B,R,V){var e=this;R||(this.consecutiveFailures_=0);var X=YIS(this,B);this.loadingModuleIds_=X;this.requestedLoadingModuleIds_=this.batchModeEnabled_?B:_.OS(X);sc(this);if(X.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,X);if(Object.keys(this.JSC$8865_extraEdges_).length>0&&!this.JSC$7962_loader_.supportsExtraEdges)throw Error("td");B=(0,_.M2)(this.JSC$7962_loader_.JSC$8852_loadModules,this.JSC$7962_loader_,_.OS(X),this.moduleInfoMap,{extraEdges:this.JSC$8865_extraEdges_,
forceReload:!!V,onError:function(Y,t){var b=e.requestedLoadingModuleIds_;Y=Y!=null?Y:void 0;e.consecutiveFailures_++;var J=_.OS(X);e.requestedLoadingModuleIds_=b;X.forEach(_.JE(_.uo,e.requestedModuleIds_),e);Y==401?(Vko(e,new Bb.ModuleLoadFailure(Bb.ModuleLoadFailure.JSC$8862_Type.UNAUTHORIZED,Y)),e.requestedModuleIdsQueue_.length=0):Y==410?(h6_(e,new Bb.ModuleLoadFailure(Bb.ModuleLoadFailure.JSC$8862_Type.OLD_CODE_GONE,Y)),tkS(e)):e.consecutiveFailures_>=3?(h6_(e,new Bb.ModuleLoadFailure(Bb.ModuleLoadFailure.JSC$8862_Type.CONSECUTIVE_FAILURES,
Y,J,t)),tkS(e)):e.loadModules_(e.requestedLoadingModuleIds_,!0,Y==8001||!1)},
onTimeout:(0,_.M2)(this.handleLoadTimeout_,this)});(R=Math.pow(this.consecutiveFailures_,2)*5E3)?_.R5.setTimeout(B,R):B()}};
var YIS=function(B,R){R=R.filter(function(X){return B.moduleInfoMap[X].isLoaded()?(_.R5.setTimeout(function(){return Error("ud`"+X)},0),!1):!0});
for(var V=[],e=0;e<R.length;e++)V=V.concat(Wc4(B,R[e]));th(V);return!B.batchModeEnabled_&&V.length>1?(R=V.shift(),B.requestedModuleIdsQueue_=V.map(function(X){return[X]}).concat(B.requestedModuleIdsQueue_),[R]):V},Wc4=function(B,R){var V=_.M_.createSet(B.requestedModuleIds_),e=[];
V[R]||e.push(R);R=[R];for(var X=0;X<R.length;X++)for(var Y=B.getModuleInfo(R[X]).deps_,t=Y.length-1;t>=0;t--){var b=Y[t];B.getModuleInfo(b).isLoaded()||V[b]||(e.push(b),R.push(b))}e.reverse();th(e);return e};
iC.prototype.JSC$8860_setLoaded=function(){if(this.JSC$8865_currentlyLoadingModule_){var B=this.JSC$8865_currentlyLoadingModule_.getId(),R=[];if(this.JSC$8865_extraEdges_[B]){for(var V=_.h(Object.keys(this.JSC$8865_extraEdges_[B])),e=V.next();!e.done;e=V.next()){e=e.value;var X=this.getModuleInfo(e);X&&!X.isLoaded()&&(this.removeExtraEdge(B,e),R.push(e))}this.loadMultiple(R)}this.isDisposed()||((R=this.moduleInfoMap[B].onLoad((0,_.M2)(this.getModuleContext,this)))&&R.length&&Vko(this,new Bb.ModuleLoadFailure(Bb.ModuleLoadFailure.JSC$8862_Type.INIT_ERROR,
void 0,void 0,void 0,R[0])),_.uo(this.userInitiatedLoadingModuleIds_,B),_.uo(this.loadingModuleIds_,B),this.loadingModuleIds_.length===0&&tkS(this),this.lastInitialModuleId_&&B==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),sc(this),this.JSC$8865_currentlyLoadingModule_=null)}};
iC.prototype.isModuleLoading=function(B){if(_.gx(this.loadingModuleIds_,B))return!0;for(var R=0;R<this.requestedModuleIdsQueue_.length;R++)if(_.gx(this.requestedModuleIdsQueue_[R],B))return!0;return!1};
iC.prototype.load=function(B,R){return XJh(this,[B],R)[B]};
iC.prototype.loadMultiple=function(B){return XJh(this,B)};
var pJG=function(B,R){_.gx(B.userInitiatedLoadingModuleIds_,R)||B.userInitiatedLoadingModuleIds_.push(R)};
iC.prototype.beforeLoadModuleCode=function(B){var R=this;this.JSC$8865_currentlyLoadingModule_&&this.JSC$8865_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8860_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[B]&&bpl(this,this.moduleInfoMap[B].deps_||[],function(V){V.module_=new Ik;_.uo(R.loadingModuleIds_,V.getId())},function(V){return!V.isLoaded()});
this.JSC$8865_currentlyLoadingModule_=this.getModuleInfo(B)};
iC.prototype.handleLoadTimeout_=function(){h6_(this,new Bb.ModuleLoadFailure(Bb.ModuleLoadFailure.JSC$8862_Type.TIMEOUT));tkS(this)};
var h6_=function(B,R){B.requestedLoadingModuleIds_.length>1?B.requestedModuleIdsQueue_=B.requestedLoadingModuleIds_.map(function(V){return[V]}).concat(B.requestedModuleIdsQueue_):Vko(B,R)},Vko=function(B,R){var V=B.requestedLoadingModuleIds_;
B.loadingModuleIds_.length=0;for(var e=[],X=0;X<B.requestedModuleIdsQueue_.length;X++){var Y=B.requestedModuleIdsQueue_[X].filter(function(J){var G=Wc4(this,J);return Fy(V,function(y){return _.gx(G,y)})},B);
_.Vv(e,Y)}for(X=0;X<V.length;X++)_.ZK(e,V[X]);for(X=0;X<e.length;X++){for(Y=0;Y<B.requestedModuleIdsQueue_.length;Y++)_.uo(B.requestedModuleIdsQueue_[Y],e[X]);_.uo(B.userInitiatedLoadingModuleIds_,e[X])}if(X=B.JSC$8865_callbackMap_.error)for(Y=0;Y<X.length;Y++)for(var t=X[Y],b=0;b<e.length;b++)t("error",e[b],R);for(e=0;e<V.length;e++)if(B.moduleInfoMap[V[e]])B.moduleInfoMap[V[e]].onError(R);B.requestedLoadingModuleIds_.length=0;sc(B)},tkS=function(B){for(;B.requestedModuleIdsQueue_.length;){var R=
B.requestedModuleIdsQueue_.shift().filter(function(V){return!this.getModuleInfo(V).isLoaded()},B);
if(R.length>0){B.loadModules_(R);return}}sc(B)};
iC.prototype.registerCallback=function(B,R){Array.isArray(B)||(B=[B]);for(var V=0;V<B.length;V++){var e=B[V],X=R,Y=this.JSC$8865_callbackMap_;Y[e]||(Y[e]=[]);Y[e].push(X)}};
iC.prototype.executeCallbacks_=function(B){for(var R=this.JSC$8865_callbackMap_[B],V=0;R&&V<R.length;V++)R[V](B)};
var bpl=function(B,R,V,e,X){e=e===void 0?function(){return!0}:e;
X=X===void 0?{}:X;R=_.h(R);for(var Y=R.next();!Y.done;Y=R.next()){Y=Y.value;var t=B.getModuleInfo(Y);!X[Y]&&e(t)&&(X[Y]=!0,bpl(B,t.deps_||[],V,e,X),V(t))}};
iC.prototype.dispose=function(){_.PH(_.M_.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8865_callbackMap_={};this.isDisposed_=!0};
iC.prototype.isDisposed=function(){return this.isDisposed_};
_.ly=function(){return new iC};var JZ4=[5E3,2E4],jLv=function(){this.JSC$7962_loader_=null;this.JSC$8873_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8873_queue_=[];this.JSC$8873_extraEdges_=Object.create(null);this.JSC$8873_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.l(jLv,uiv);_.p=jLv.prototype;_.p.setAllModuleInfoString=function(){this.JSC$8873_currentlyLoadingModule_&&this.JSC$8873_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8860_setLoaded()};
_.p.getModuleInfo=function(B){var R=this.JSC$8873_moduleInfoMap_[B];R||(R=new Ec([],B),this.JSC$8873_moduleInfoMap_[B]=R);return R};
_.p.addExtraEdge=function(B,R){this.getModuleInfo(B).isLoaded()?this.load(R):(this.JSC$8873_extraEdges_[B]||(this.JSC$8873_extraEdges_[B]={}),this.JSC$8873_extraEdges_[B][R]=!0)};
_.p.removeExtraEdge=function(B,R){if(this.JSC$8873_extraEdges_[B]){delete this.JSC$8873_extraEdges_[B][R];for(var V in this.JSC$8873_extraEdges_[B])return;delete this.JSC$8873_extraEdges_[B]}};
_.p.isModuleLoading=function(B){return!!this.loadingModules_[B]};
_.p.load=function(B){Uro(this,[B]);return NTR(this,B)};
_.p.loadMultiple=function(B){var R=this,V=Object.create(null),e=[];B.forEach(function(X){V[X]||(V[X]=NTR(R,X),e.push(X))});
Uro(this,e);return V};
_.p.beforeLoadModuleCode=function(B){var R;((R=this.JSC$8873_currentlyLoadingModule_)==null?void 0:R.getId())==="synthetic_module_overhead"&&this.JSC$8860_setLoaded();var V,e;GE5(this,(e=(V=this.JSC$8873_moduleInfoMap_[B])==null?void 0:V.deps_)!=null?e:[],function(X){X.module_=new Ik},function(X){return!X.isLoaded()});
this.JSC$8873_currentlyLoadingModule_=this.getModuleInfo(B)};
_.p.JSC$8860_setLoaded=function(){if(this.JSC$8873_currentlyLoadingModule_){var B=this.JSC$8873_currentlyLoadingModule_.getId(),R=[];if(this.JSC$8873_extraEdges_[B]){for(var V=_.h(Object.keys(this.JSC$8873_extraEdges_[B])),e=V.next();!e.done;e=V.next())e=e.value,this.getModuleInfo(e).isLoaded()||(this.removeExtraEdge(B,e),R.push(e));this.loadMultiple(R)}this.JSC$8873_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8873_currentlyLoadingModule_=null;(!this.isModuleLoading(B)&&/^sy[0-9a-z]{0,4}$/.test(B)||B==="synthetic_module_overhead")&&delete this.JSC$8873_moduleInfoMap_[B];this.unsetModulesAsLoading(B)}};
_.p.setModulesAsLoading=function(){var B=this;_.HB.apply(0,arguments).forEach(function(R){B.loadingModules_[R]=!0})};
_.p.unsetModulesAsLoading=function(){var B=this;_.HB.apply(0,arguments).forEach(function(R){delete B.loadingModules_[R]})};
var NTR=function(B,R){return new _.be(function(V,e){var X=B.getModuleInfo(R);X.isLoaded()?V(null):(X.registerCallback(function(){V(null)}),QAJ(X,function(Y){var t="Error loading "+R+": "+Y;
Y instanceof Bb.ModuleLoadFailure&&Y.url&&(t=t+", requested url: "+Y.url.toString());e(Error(t))}))})},Uro=function(B,R){R=R.filter(function(V){return!B.isModuleLoading(V)&&!B.getModuleInfo(V).isLoaded()});
R.length>0&&(B.setModulesAsLoading.apply(B,_.MI(R)),B.JSC$8873_queue_.push(R),yZa(B))},yZa=function(B){for(var R={};B.activeLoads_<Infinity&&B.JSC$8873_queue_.length>0;R={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})R.ids$jscomp$36=B.JSC$8873_queue_.shift().filter(function(V){return!B.getModuleInfo(V).isLoaded()}),R.ids$jscomp$36.length>0&&(B.activeLoads_++,R.finishLoad=function(V){return function(){B.activeLoads_--;
yZa(B);V.finishLoad=function(){}}}(R),_.DG(R.ids$jscomp$36.map(function(V){return NTR(B,V)})).then(function(V){return function(){(0,V.finishLoad)()}}(R)),R.attempt$jscomp$6=0,R.load$jscomp$1=function(V){return function(){if(Object.keys(B.JSC$8873_extraEdges_).length>0&&!B.JSC$7962_loader_.supportsExtraEdges)throw Error("td");
B.JSC$7962_loader_.JSC$8852_loadModules(V.ids$jscomp$36,B.JSC$8873_moduleInfoMap_,{extraEdges:B.JSC$8873_extraEdges_,onError:function(e,X){var Y=JZ4[V.attempt$jscomp$6++];Y!==void 0?setTimeout(function(){(0,V.load$jscomp$1)()},Y):(B.unsetModulesAsLoading.apply(B,_.MI(V.ids$jscomp$36)),(0,V.finishLoad)(),V.ids$jscomp$36.forEach(function(t){t=B.getModuleInfo(t);
if(!t.isLoaded())t.onError(new Bb.ModuleLoadFailure(Bb.ModuleLoadFailure.JSC$8862_Type.CONSECUTIVE_FAILURES,e,V.ids$jscomp$36,X))}))}})}}(R),(0,R.load$jscomp$1)())},GE5=function(B,R,V,e,X){e=e===void 0?function(){return!0}:e;
X=X===void 0?{}:X;R=_.h(R);for(var Y=R.next();!Y.done;Y=R.next()){Y=Y.value;var t=B.getModuleInfo(Y);!X[Y]&&e(t)&&(X[Y]=!0,GE5(B,t.deps_||[],V,e,X),V(t))}};var SI2=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var xxu=Symbol("wd");window.JSCompiler_renameProperty=function(B){return B};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Hph=!SI2||HTMLElement.es5Shimmed||_.R5.Reflect===void 0||_.R5.customElements===void 0||_.R5.customElements.polyfillWrapFlushCallback||!1,Mkl,XaI=function(){var B=HTMLElement;if(Hph)return B;if(Mkl!==void 0)return Mkl;var R=_.R5.Reflect,V=function(){return R.construct(B,[],this.constructor)};
V.prototype=B.prototype;V.prototype.constructor=V;V.es5Shimmed=!0;Object.setPrototypeOf(V,B);return Mkl=V},kEh=!1;Hph||kEh||(kEh=!0,_.R5.HTMLElement=XaI());/*

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 EB5=/(url\()([^)]*)(\))/g,K3q=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,IPd,RA;var Kn=!window.ShadyDOM||!window.ShadyDOM.inUse,Dr2=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),fg2=!window.customElements.polyfillWrapFlushCallback,lgG;if(lgG=Kn&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var z6o=new CSSStyleSheet;z6o.replaceSync("");var ag5=document.createElement("div");ag5.attachShadow({mode:"open"});ag5.shadowRoot.adoptedStyleSheets=[z6o];lgG=ag5.shadowRoot.adoptedStyleSheets[0]===z6o}catch(B){lgG=!1}
var drl=lgG,wJ_=window.Polymer&&window.Polymer.rootPath||qsq(document.baseURI||window.location.href),G8=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,mo5=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,qK=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,TT4=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,vw=window.Polymer&&window.Polymer.legacyOptimizations||!1,Q6=window.Polymer&&window.Polymer.legacyWarnings||!1,xrR=window.Polymer&&window.Polymer.syncInitialRender||
!1,S6=window.Polymer&&window.Polymer.legacyUndefined||!1,LcR=window.Polymer&&window.Polymer.orderedComputed||!1,FC=window.Polymer&&window.Polymer.removeNestedTemplates||!1,rO=window.Polymer&&window.Polymer.fastDomIf||!1,gO=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,va5=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Kca=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var ZA={},IgS={},MK=function(){return HTMLElement.apply(this,arguments)||this};
_.l(MK,HTMLElement);MK.import=function(B,R){return B?(B=ZA[B]||IgS[B.toLowerCase()])&&R?B.querySelector(R):B:null};
MK.prototype.attributeChangedCallback=function(B,R,V){R!==V&&this.register()};
MK.prototype.register=function(B){if(B=B||this.id){if(qK&&(ZA[B]||IgS[B.toLowerCase()])!==void 0)throw ZA[B]=IgS[B.toLowerCase()]=null,Error("xd`"+B);this.id=B;ZA[B]=IgS[B.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.mh.Object.defineProperties(MK.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var B=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;B=_.V6(this.getAttribute("assetpath")||"",B.baseURI);this.__assetpath=qsq(B)}return this.__assetpath}}});
_.mh.Object.defineProperties(MK,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
MK["import"]=MK.import;MK.prototype.modules=ZA;customElements.define("dom-module",MK);var EaR=0,A3u=0,e6=[],QLh=0,c3p=!1,qIo=document.createTextNode(""),cZb,x_;(new window.MutationObserver(iDI)).observe(qIo,{characterData:!0});_.mB={after:function(B){return{run:function(R){return window.setTimeout(R,B)},
cancel:function(R){window.clearTimeout(R)}}},
run:function(B,R){return window.setTimeout(B,R)},
cancel:function(B){window.clearTimeout(B)}};
_.yM={run:function(B){return window.requestAnimationFrame(B)},
cancel:function(B){window.cancelAnimationFrame(B)}};
cZb={run:function(B){return window.requestIdleCallback?window.requestIdleCallback(B):window.setTimeout(B,16)},
cancel:function(B){window.cancelIdleCallback?window.cancelIdleCallback(B):window.clearTimeout(B)}};
x_={run:function(B){c3p||(c3p=!0,qIo.textContent=QLh++);e6.push(B);return EaR++},
cancel:function(B){var R=B-A3u;if(R>=0){if(!e6[R])throw Error("yd`"+B);e6[R]=null}}};var AZ2=0,$X=function(B){var R=B.__mixinApplications;R||(R=new WeakMap,B.__mixinApplications=R);var V=AZ2++;return function(e){var X=e.__mixinSet;if(X&&X[V])return e;var Y=R,t=Y.get(e);t||(t=B(e),Y.set(e,t),e=Object.create(t.__mixinSet||X||null),e[V]=!0,t.__mixinSet=e);return t}};_.NK=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(B){return ShadyDOM.patch(B)}:function(B){return B};var ip4=$X(function(B){var R=function(){var V=B.call(this)||this;V.__dataEnabled=!1;V.__dataReady=!1;V.__dataInvalid=!1;V.__data={};V.__dataPending=null;V.__dataOld=null;V.__dataInstanceProps=null;V.__dataCounter=0;V.__serializing=!1;V._initializeProperties();return V};
_.l(R,B);R.createProperties=function(V){var e=this.prototype,X;for(X in V)X in e||e._createPropertyAccessor(X)};
R.attributeNameForProperty=function(V){return V.toLowerCase()};
R.typeForProperty=function(){};
R.prototype._createPropertyAccessor=function(V,e){this._addPropertyToAttributeMap(V);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[V]||(this.__dataHasAccessor[V]=!0,this._definePropertyAccessor(V,e))};
R.prototype._addPropertyToAttributeMap=function(V){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var e=this.__dataAttributes[V];e||(e=this.constructor.attributeNameForProperty(V),this.__dataAttributes[e]=V);return e};
R.prototype._definePropertyAccessor=function(V,e){Object.defineProperty(this,V,{get:function(){return this.__data[V]},
set:e?function(){}:function(X){this._setPendingProperty(V,X,!0)&&this._invalidateProperties()}})};
R.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
R.prototype._initializeProperties=function(){for(var V in this.__dataHasAccessor)this.hasOwnProperty(V)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[V]=this[V],delete this[V])};
R.prototype._initializeInstanceProperties=function(V){Object.assign(this,V)};
R.prototype._setProperty=function(V,e){this._setPendingProperty(V,e)&&this._invalidateProperties()};
R.prototype._getProperty=function(V){return this.__data[V]};
R.prototype._setPendingProperty=function(V,e){var X=this.__data[V],Y=this._shouldPropertyChange(V,e,X);Y&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||V in this.__dataOld||(this.__dataOld[V]=X),this.__data[V]=e,this.__dataPending[V]=e);return Y};
R.prototype._isPropertyPending=function(V){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(V))};
R.prototype._invalidateProperties=function(){var V=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,x_.run(function(){V.__dataInvalid&&(V.__dataInvalid=!1,V._flushProperties())}))};
R.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
R.prototype._flushProperties=function(){this.__dataCounter++;var V=this.__data,e=this.__dataPending,X=this.__dataOld;this._shouldPropertiesChange(V,e,X)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(V,e,X));this.__dataCounter--};
R.prototype._shouldPropertiesChange=function(V,e){return!!e};
R.prototype._propertiesChanged=function(){};
R.prototype._shouldPropertyChange=function(V,e,X){return X!==e&&(X===X||e===e)};
R.prototype.attributeChangedCallback=function(V,e,X,Y){e!==X&&this._attributeToProperty(V,X);B.prototype.attributeChangedCallback&&B.prototype.attributeChangedCallback.call(this,V,e,X,Y)};
R.prototype._attributeToProperty=function(V,e,X){if(!this.__serializing){var Y=this.__dataAttributes;V=Y&&Y[V]||V;this[V]=this._deserializeValue(e,X||this.constructor.typeForProperty(V))}};
R.prototype._propertyToAttribute=function(V,e,X){this.__serializing=!0;X=arguments.length<3?this[V]:X;this._valueToNodeAttribute(this,X,e||this.constructor.attributeNameForProperty(V));this.__serializing=!1};
R.prototype._valueToNodeAttribute=function(V,e,X){e=this._serializeValue(e);if(X==="class"||X==="name"||X==="slot")V=(0,_.NK)(V);e===void 0?V.removeAttribute(X):V.setAttribute(X,e===""&&window.trustedTypes?window.trustedTypes.emptyScript:e)};
R.prototype._serializeValue=function(V){switch(typeof V){case "boolean":return V?"":void 0;default:return V!=null?V.toString():void 0}};
R.prototype._deserializeValue=function(V,e){switch(e){case Boolean:return V!==null;case Number:return Number(V);default:return V}};
return R});var sLG=0,sON=[];var FcG=$X(function(B){function R(Y){Y=Object.getPrototypeOf(Y);return Y.prototype instanceof X?Y:null}
function V(Y){if(!Y.hasOwnProperty("__ownProperties")){var t=null;if(Y.hasOwnProperty("properties")){var b=Y.properties;if(b){t={};for(var J in b){var G=b[J];t[J]=typeof G==="function"?{type:G}:G}}}Y.__ownProperties=t}return Y.__ownProperties}
var e=ip4(B),X=function(){return e.apply(this,arguments)||this};
_.l(X,e);X.finalize=function(){if(!this.hasOwnProperty("__finalized")){var Y=R(this);Y&&Y.finalize();this.__finalized=!0;this._finalizeClass()}};
X._finalizeClass=function(){var Y=V(this);Y&&this.createProperties(Y)};
X.typeForProperty=function(Y){return(Y=this._properties[Y])&&Y.type};
X.prototype._initializeProperties=function(){sLG++;this.constructor.finalize();e.prototype._initializeProperties.call(this)};
X.prototype.connectedCallback=function(){e.prototype.connectedCallback&&e.prototype.connectedCallback.call(this);this._enableProperties()};
X.prototype.disconnectedCallback=function(){e.prototype.disconnectedCallback&&e.prototype.disconnectedCallback.call(this)};
_.mh.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var Y=this;if(!this.hasOwnProperty("__observedAttributes")){F3_(this.prototype);var t=this._properties;this.__observedAttributes=t?Object.keys(t).map(function(b){return Y.prototype._addPropertyToAttributeMap(b)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var Y=R(this);this.__properties=Object.assign({},Y&&Y._properties,V(this))}return this.__properties}}});
return X});var r3d={},gBx=/-[a-z]/g,ZDN=/([A-Z])/g;for(var rZa={},ga5=HTMLElement.prototype;ga5;){for(var ZpR=Object.getOwnPropertyNames(ga5),mrv=0;mrv<ZpR.length;mrv++)rZa[ZpR[mrv]]=!0;ga5=Object.getPrototypeOf(ga5)}var $rl=window.trustedTypes?function(B){return trustedTypes.isHTML(B)||trustedTypes.isScript(B)||trustedTypes.isScriptURL(B)}:function(){return!1},Cs4=$X(function(B){var R=ip4(B);
B=function(){return R.apply(this,arguments)||this};
_.l(B,R);B.createPropertiesForAttributes=function(){for(var V=this.observedAttributes,e=0;e<V.length;e++)this.prototype._createPropertyAccessor(Xi(V[e]))};
B.attributeNameForProperty=function(V){return pn(V)};
B.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);R.prototype._initializeProperties.call(this)};
B.prototype._initializeProtoProperties=function(V){for(var e in V)this._setProperty(e,V[e])};
B.prototype._ensureAttribute=function(V,e){this.hasAttribute(V)||this._valueToNodeAttribute(this,e,V)};
B.prototype._serializeValue=function(V){switch(typeof V){case "object":if(V instanceof Date)return V.toString();if(V){if($rl(V))return V;try{return JSON.stringify(V)}catch(e){return""}}default:return R.prototype._serializeValue.call(this,V)}};
B.prototype._deserializeValue=function(V,e){switch(e){case Object:try{var X=JSON.parse(V)}catch(Y){X=V}break;case Array:try{X=JSON.parse(V)}catch(Y){X=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+V)}break;case Date:X=isNaN(V)?String(V):Number(V);X=new Date(X);break;default:X=R.prototype._deserializeValue.call(this,V,e)}return X};
B.prototype._definePropertyAccessor=function(V,e){if(!rZa[V]){var X=this[V];X!==void 0&&(this.__data?this._setPendingProperty(V,X):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[V]=X))}R.prototype._definePropertyAccessor.call(this,V,e)};
B.prototype._hasAccessor=function(V){return this.__dataHasAccessor&&this.__dataHasAccessor[V]};
B.prototype._isPropertyPending=function(V){return!!(this.__dataPending&&V in this.__dataPending)};
return B});var Psl={"dom-if":!0,"dom-repeat":!0},nav=!1,uO5=!1,OpT=function(){var B=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(R){return R}});
return function(R,V,e){V=V.getAttribute(e);B&&e.startsWith("on-")?R.setAttribute(e,B.createScript(V,e)):R.setAttribute(e,V)}}(),o8_=$X(function(B){var R=function(){return B.apply(this,arguments)||this};
_.l(R,B);R._parseTemplate=function(V,e){if(!V._templateInfo){var X=V._templateInfo={};X.nodeInfoList=[];X.nestedTemplate=!!e;X.stripWhiteSpace=e&&e.stripWhiteSpace||V.hasAttribute&&V.hasAttribute("strip-whitespace");this._parseTemplateContent(V,X,{parent:null})}return V._templateInfo};
R._parseTemplateContent=function(V,e,X){return this._parseTemplateNode(V.content,e,X)};
R._parseTemplateNode=function(V,e,X){var Y=!1;V.localName!="template"||V.hasAttribute("preserve-content")?V.localName==="slot"&&(e.hasInsertionPoint=!0):Y=this._parseTemplateNestedTemplate(V,e,X)||Y;if(!nav){nav=!0;var t=document.createElement("textarea");t.placeholder="a";uO5=t.placeholder===t.textContent}uO5&&V.localName==="textarea"&&V.placeholder&&V.placeholder===V.textContent&&(V.textContent=null);V.firstChild&&this._parseTemplateChildNodes(V,e,X);V.hasAttributes&&V.hasAttributes()&&(Y=this._parseTemplateNodeAttributes(V,
e,X)||Y);return Y||X.noted};
R._parseTemplateChildNodes=function(V,e,X){if(V.localName!=="script"&&V.localName!=="style")for(var Y=V.firstChild,t=0,b;Y;Y=b){if(Y.localName=="template"){var J=Y.getAttribute("is");if(J&&Psl[J])for(b=Y,b.removeAttribute("is"),Y=b.ownerDocument.createElement(J),b.parentNode.replaceChild(Y,b),Y.appendChild(b);b.attributes.length;)J=b.attributes[0].name,OpT(Y,b,J),b.removeAttribute(J)}b=Y.nextSibling;if(Y.nodeType===Node.TEXT_NODE){for(J=b;J&&J.nodeType===Node.TEXT_NODE;)Y.textContent+=J.textContent,
b=J.nextSibling,V.removeChild(J),J=b;if(e.stripWhiteSpace&&!Y.textContent.trim()){V.removeChild(Y);continue}}J={parentIndex:t,parentInfo:X};this._parseTemplateNode(Y,e,J)&&(J.infoIndex=e.nodeInfoList.push(J)-1);Y.parentNode&&t++}};
R._parseTemplateNestedTemplate=function(V,e,X){e=this._parseTemplate(V,e);(e.content=V.content.ownerDocument.createDocumentFragment()).appendChild(V.content);X.templateInfo=e;return!0};
R._parseTemplateNodeAttributes=function(V,e,X){for(var Y=!1,t=Array.from(V.attributes),b=t.length-1,J;J=t[b];b--)Y=this._parseTemplateNodeAttribute(V,e,X,J.name,J.value)||Y;return Y};
R._parseTemplateNodeAttribute=function(V,e,X,Y,t){return Y.slice(0,3)==="on-"?(V.removeAttribute(Y),X.events=X.events||[],X.events.push({name:Y.slice(3),value:t}),!0):Y==="id"?(X.id=t,!0):!1};
R._contentForTemplate=function(V){var e=V._templateInfo;return e&&e.content||V.content};
R.prototype._stampTemplate=function(V,e){V&&!V.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(V);e=e||this.constructor._parseTemplate(V);var X=e.nodeInfoList;V=document.importNode(e.content||V.content,!0);V.__noInsertionPoint=!e.hasInsertionPoint;var Y=V.nodeList=Array(X.length);V.$={};for(var t=0,b=X.length,J=void 0;t<b&&(J=X[t]);t++){var G=Y[t]=mxu(V,J);J.id&&(V.$[J.id]=G);var y=G,S=J,M=e;S.templateInfo&&(y._templateInfo=S.templateInfo,y._parentTemplateInfo=
M);if(J.events&&J.events.length)for(y=0,S=J.events,M=void 0;y<S.length&&(M=S[y]);y++)this._addMethodEventListenerToNode(G,M.name,M.value,this)}return V};
R.prototype._addMethodEventListenerToNode=function(V,e,X,Y){X=$xp(Y||V,X);this._addEventListenerToNode(V,e,X);return X};
R.prototype._addEventListenerToNode=function(V,e,X){V.addEventListener(e,X)};
R.prototype._removeEventListenerFromNode=function(V,e,X){V.removeEventListener(e,X)};
return R});var j6=0,y6=[],Bi4={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Rea=/[A-Z]/,VO4=function(B,R,V,e,X){var Y=X?hm(B):B;if(R=R[Y])for(Y=0;Y<R.length;Y++){var t=R[Y];if(t.info.lastRun!==j6&&(!X||oxp(B,t.trigger))){t.info.lastRun=j6;t=t.info;for(var b=V,J=e,G=0,y=b.length-1,S=-1;G<=y;){var M=G+y>>1,f=J.get(b[M].methodInfo)-J.get(t.methodInfo);if(f<0)G=M+1;else if(f>0)y=M-1;else{S=M;break}}S<
0&&(S=y+1);b.splice(S,0,t)}}},Nb_=[],ee4=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"),PW=$X(function(B){var R=o8_(Cs4(B));
B=function(){var V=R.call(this)||this;V.__isPropertyEffectsClient=!0;return V};
_.l(B,R);B.prototype._initializeProperties=function(){R.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
B.prototype._registerHost=function(){if(Cg.length){var V=Cg[Cg.length-1];V._enqueueClient(this);this.__dataHost=V}};
B.prototype._initializeProtoProperties=function(V){this.__data=Object.create(V);this.__dataPending=Object.create(V);this.__dataOld={}};
B.prototype._initializeInstanceProperties=function(V){var e=this.__readOnly,X;for(X in V)e&&e[X]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[X]=this.__dataPending[X]=V[X])};
B.prototype._addPropertyEffect=function(V,e,X){this._createPropertyAccessor(V,e=="__readOnly");var Y=ODo(this,e,!0)[V];Y||(Y=this[e][V]=[]);Y.push(X)};
B.prototype._removePropertyEffect=function(V,e,X){V=ODo(this,e,!0)[V];X=V.indexOf(X);X>=0&&V.splice(X,1)};
B.prototype._hasPropertyEffect=function(V,e){e=this[e];return!(!e||!e[V])};
B.prototype._hasReadOnlyEffect=function(V){return this._hasPropertyEffect(V,"__readOnly")};
B.prototype._hasNotifyEffect=function(V){return this._hasPropertyEffect(V,"__notifyEffects")};
B.prototype._hasReflectEffect=function(V){return this._hasPropertyEffect(V,"__reflectEffects")};
B.prototype._hasComputedEffect=function(V){return this._hasPropertyEffect(V,"__computeEffects")};
B.prototype._setPendingPropertyOrPath=function(V,e,X,Y){if(Y||hm(Array.isArray(V)?V[0]:V)!==V){if(!Y&&(Y=Jm(this,V),V=uES(this,V,e),!V||!R.prototype._shouldPropertyChange.call(this,V,e,Y)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(V,e,X)){if(X=this.__dataLinkedPaths)for(var t in X)Y=X[t],tm(t,V)?(Y=Ww(t,Y,V),this._setPendingPropertyOrPath(Y,e,!0,!0)):tm(Y,V)&&(Y=Ww(Y,t,V),this._setPendingPropertyOrPath(Y,e,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[V])return this._setPendingProperty(V,
e,X);this[V]=e}return!1};
B.prototype._setUnmanagedPropertyToNode=function(V,e,X){if(X!==V[e]||typeof X=="object")e==="className"&&(V=(0,_.NK)(V)),V[e]=X};
B.prototype._setPendingProperty=function(V,e,X){var Y=this.__dataHasPaths&&Y_(V);if(this._shouldPropertyChange(V,e,(Y?this.__dataTemp:this.__data)[V])){this.__dataPending||(this.__dataPending={},this.__dataOld={});V in this.__dataOld||(this.__dataOld[V]=this.__data[V]);Y?this.__dataTemp[V]=e:this.__data[V]=e;this.__dataPending[V]=e;if(Y||this.__notifyEffects&&this.__notifyEffects[V])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[V]=X;return!0}return!1};
B.prototype._setProperty=function(V,e){this._setPendingProperty(V,e,!0)&&this._invalidateProperties()};
B.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
B.prototype._enqueueClient=function(V){this.__dataPendingClients=this.__dataPendingClients||[];V!==this&&this.__dataPendingClients.push(V)};
B.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
B.prototype.__enableOrFlushClients=function(){var V=this.__dataPendingClients;if(V){this.__dataPendingClients=null;for(var e=0;e<V.length;e++){var X=V[e];X.__dataEnabled?X.__dataPending&&X._flushProperties():X._enableProperties()}}};
B.prototype._readyClients=function(){this.__enableOrFlushClients()};
B.prototype.setProperties=function(V,e){for(var X in V)!e&&this.__readOnly&&this.__readOnly[X]||this._setPendingPropertyOrPath(X,V[X],!0);this._invalidateProperties()};
B.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
B.prototype._propertiesChanged=function(V,e,X){V=this.__dataHasPaths;this.__dataHasPaths=!1;var Y;if(Y=this.__computeEffects)if(LcR){j6++;var t=p7d(this),b=[],J;for(J in e)VO4(J,Y,b,t,V);for(;J=b.shift();)hwS(this,"",e,X,J)&&VO4(J.methodInfo,Y,b,t,V);Object.assign(X,this.__dataOld);Object.assign(e,this.__dataPending);this.__dataPending=null}else for(t=e;Uq(this,Y,t,X,V);)Object.assign(X,this.__dataOld),Object.assign(e,this.__dataPending),t=this.__dataPending,this.__dataPending=null;Y=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(e,X,V);this._flushClients();Uq(this,this.__reflectEffects,e,X,V);Uq(this,this.__observeEffects,e,X,V);if(Y){t=this.__notifyEffects;b=j6++;for(var G in Y)if(Y[G]){if(J=t){var y=t;J=b;var S=G,M=e,f=X,z=V,T=!1,L=z?hm(S):S;if(y=y[L]){L=0;for(var Q=y.length,q=void 0;L<Q&&(q=y[L]);L++)q.info&&q.info.lastRun===J||z&&!oxp(S,q.trigger)||(q.info&&(q.info.lastRun=J),q.fn(this,S,M,f,q.info,z,void 0),T=!0)}J=T}if(J)var m=!0;else{if(J=V)J=G,S=e,M=hm(J),M!==
J?(M=pn(M)+"-changed",RwY(this,M,S[J],J),J=!0):J=!1;J&&(m=!0)}}var g;m&&(g=this.__dataHost)&&g._invalidateProperties&&g._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
B.prototype._propagatePropertyChanges=function(V,e,X){this.__propagateEffects&&Uq(this,this.__propagateEffects,V,e,X);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,V,e,X)};
B.prototype._runEffectsForTemplate=function(V,e,X,Y){var t=this,b=function(J,G){Uq(t,V.propertyEffects,J,X,G,V.nodeList);for(var y=V.firstChild;y;y=y.nextSibling)t._runEffectsForTemplate(y,J,X,G)};
V.runEffects?V.runEffects(b,e,Y):b(e,Y)};
B.prototype.linkPaths=function(V,e){V=bA(V);e=bA(e);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[V]=e};
B.prototype.unlinkPaths=function(V){V=bA(V);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[V]};
B.prototype.notifySplices=function(V,e){var X={path:""};V=Jm(this,V,X);HOx(this,V,X.path,e)};
B.prototype.get=function(V,e){return Jm(e||this,V)};
B.prototype.set=function(V,e,X){X?uES(X,V,e):this.__readOnly&&this.__readOnly[V]||this._setPendingPropertyOrPath(V,e,!0)&&this._invalidateProperties()};
B.prototype.push=function(V){var e=_.HB.apply(1,arguments),X={path:""},Y=Jm(this,V,X),t=Y.length,b=Y.push.apply(Y,_.MI(e));e.length&&Hw(this,Y,X.path,t,e.length,[]);return b};
B.prototype.pop=function(V){var e={path:""};V=Jm(this,V,e);var X=!!V.length,Y=V.pop();X&&Hw(this,V,e.path,V.length,0,[Y]);return Y};
B.prototype.splice=function(V,e,X){var Y=_.HB.apply(3,arguments),t={path:""},b=Jm(this,V,t);e<0?e=b.length-Math.floor(-e):e&&(e=Math.floor(e));var J=arguments.length===2?b.splice(e):b.splice.apply(b,[e,X].concat(_.MI(Y)));(Y.length||J.length)&&Hw(this,b,t.path,e,Y.length,J);return J};
B.prototype.shift=function(V){var e={path:""};V=Jm(this,V,e);var X=!!V.length,Y=V.shift();X&&Hw(this,V,e.path,0,0,[Y]);return Y};
B.prototype.unshift=function(V){var e=_.HB.apply(1,arguments),X={path:""},Y=Jm(this,V,X),t=Y.unshift.apply(Y,_.MI(e));e.length&&Hw(this,Y,X.path,0,e.length,[]);return t};
B.prototype.notifyPath=function(V,e){if(arguments.length==1){var X={path:""};e=Jm(this,V,X);X=X.path}else X=Array.isArray(V)?bA(V):V;this._setPendingPropertyOrPath(X,e,!0,!0)&&this._invalidateProperties()};
B.prototype._createReadOnlyProperty=function(V,e){this._addPropertyEffect(V,"__readOnly");e&&(this["_set"+(V[0].toUpperCase()+V.substring(1))]=function(X){this._setProperty(V,X)})};
B.prototype._createPropertyObserver=function(V,e,X){var Y={property:V,method:e,dynamicFn:!!X};this._addPropertyEffect(V,"__observeEffects",{fn:Bbp,info:Y,trigger:{name:V}});X&&this._addPropertyEffect(e,"__observeEffects",{fn:Bbp,info:Y,trigger:{name:e}})};
B.prototype._createMethodObserver=function(V,e){var X=yvI(V);if(!X)throw Error("zd`"+V);jVK(this,X,"__observeEffects",YQu,null,e)};
B.prototype._createNotifyingProperty=function(V){this._addPropertyEffect(V,"__notifyEffects",{fn:VXd,info:{eventName:pn(V)+"-changed",property:V}})};
B.prototype._createReflectedProperty=function(V){var e=this.constructor.attributeNameForProperty(V);e[0]==="-"?console.warn("Property "+V+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(V,"__reflectEffects",{fn:ewZ,info:{attrName:e}})};
B.prototype._createComputedProperty=function(V,e,X){var Y=yvI(e);if(!Y)throw Error("Ad`"+e);e=jVK(this,Y,"__computeEffects",hwS,V,X);ODo(this,"__computeInfo")[V]=e};
B.prototype._marshalArgs=function(V,e,X){for(var Y=this.__data,t=[],b=0,J=V.length;b<J;b++){var G=V[b],y=G.name,S=G.structured,M=G.wildcard,f=G.value;G.literal||(M?(G=tm(y,e),S=SQN(Y,X,G?e:y),f={path:G?e:y,value:S,base:G?Jm(Y,y):S}):f=S?SQN(Y,X,y):Y[y]);if(S6&&!this._overrideLegacyUndefined&&f===void 0&&V.length>1)return y6;t[b]=f}return t};
B.addPropertyEffect=function(V,e,X){this.prototype._addPropertyEffect(V,e,X)};
B.createPropertyObserver=function(V,e,X){this.prototype._createPropertyObserver(V,e,X)};
B.createMethodObserver=function(V,e){this.prototype._createMethodObserver(V,e)};
B.createNotifyingProperty=function(V){this.prototype._createNotifyingProperty(V)};
B.createReadOnlyProperty=function(V,e){this.prototype._createReadOnlyProperty(V,e)};
B.createReflectedProperty=function(V){this.prototype._createReflectedProperty(V)};
B.createComputedProperty=function(V,e,X){this.prototype._createComputedProperty(V,e,X)};
B.bindTemplate=function(V){return this.prototype._bindTemplate(V)};
B.prototype._bindTemplate=function(V,e){var X=this.constructor._parseTemplate(V),Y=this.__preBoundTemplateInfo==X;if(!Y)for(var t in X.propertyEffects)this._createPropertyAccessor(t);e?(X=Object.create(X),X.wasPreBound=Y,this.__templateInfo?(V=V._parentTemplateInfo||this.__templateInfo,e=V.lastChild,X.parent=V,V.lastChild=X,(X.previousSibling=e)?e.nextSibling=X:V.firstChild=X):this.__templateInfo=X):this.__preBoundTemplateInfo=X;return X};
B._addTemplatePropertyEffect=function(V,e,X){(V.hostProps=V.hostProps||{})[e]=!0;V=V.propertyEffects=V.propertyEffects||{};(V[e]=V[e]||[]).push(X)};
B.prototype._stampTemplate=function(V,e){e=e||this._bindTemplate(V,!0);Cg.push(this);V=R.prototype._stampTemplate.call(this,V,e);Cg.pop();e.nodeList=V.nodeList;if(!e.wasPreBound)for(var X=e.childNodes=[],Y=V.firstChild;Y;Y=Y.nextSibling)X.push(Y);V.templateInfo=e;X=e.nodeList;Y=e.nodeInfoList;if(Y.length)for(var t=0;t<Y.length;t++){var b=X[t],J=Y[t].bindings;if(J)for(var G=0;G<J.length;G++){var y=J[G],S=b,M=y;if(M.isCompound){for(var f=S.__dataCompoundStorage||(S.__dataCompoundStorage={}),z=M.parts,
T=Array(z.length),L=0;L<z.length;L++)T[L]=z[L].literal;z=M.target;f[z]=T;M.literal&&M.kind=="property"&&(z==="className"&&(S=(0,_.NK)(S)),S[z]=M.literal)}Jvd(b,this,y)}b.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients());return V};
B.prototype._removeBoundDom=function(V){V=V.templateInfo;var e=V.previousSibling,X=V.nextSibling,Y=V.parent;e?e.nextSibling=X:Y&&(Y.firstChild=X);X?X.previousSibling=e:Y&&(Y.lastChild=e);V.nextSibling=V.previousSibling=null;V=V.childNodes;for(e=0;e<V.length;e++)X=V[e],(0,_.NK)((0,_.NK)(X).parentNode).removeChild(X)};
B._parseTemplateNode=function(V,e,X){var Y=R._parseTemplateNode.call(this,V,e,X);if(V.nodeType===Node.TEXT_NODE){var t=this._parseBindings(V.textContent,e);t&&(V.textContent=UoY(t)||" ",bO5(this,e,X,"text","textContent",t),Y=!0)}return Y};
B._parseTemplateNodeAttribute=function(V,e,X,Y,t){var b=this._parseBindings(t,e);if(b){t=Y;var J="property";Rea.test(Y)?J="attribute":Y[Y.length-1]=="$"&&(Y=Y.slice(0,-1),J="attribute");var G=UoY(b);G&&J=="attribute"&&(Y=="class"&&V.hasAttribute("class")&&(G+=" "+V.getAttribute(Y)),V.setAttribute(Y,G));J=="attribute"&&t=="disable-upgrade$"&&V.setAttribute(Y,"");V.localName==="input"&&t==="value"&&V.setAttribute(t,"");V.removeAttribute(t);J==="property"&&(Y=Xi(Y));bO5(this,e,X,J,Y,b,G);return!0}return R._parseTemplateNodeAttribute.call(this,
V,e,X,Y,t)};
B._parseTemplateNestedTemplate=function(V,e,X){var Y=R._parseTemplateNestedTemplate.call(this,V,e,X),t=V.parentNode,b=X.templateInfo,J=t.localName==="dom-if",G=t.localName==="dom-repeat";FC&&(J||G)&&(t.removeChild(V),X=X.parentInfo,X.templateInfo=b,X.noted=!0,Y=!1);V=b.hostProps;if(rO&&J)V&&(e.hostProps=Object.assign(e.hostProps||{},V),FC||(X.parentInfo.noted=!0));else for(var y in V)bO5(this,e,X,"property","_host_"+y,[{mode:"{",source:y,dependencies:[y],hostProp:!0}]);return Y};
B._parseBindings=function(V,e){for(var X=[],Y=0,t;(t=ee4.exec(V))!==null;){t.index>Y&&X.push({literal:V.slice(Y,t.index)});Y=t[1][0];var b=!!t[2];t=t[3].trim();var J=!1,G="",y=-1;Y=="{"&&(y=t.indexOf("::"))>0&&(G=t.substring(y+2),t=t.substring(0,y),J=!0);y=yvI(t);var S=[];if(y){var M=y,f=M.args;M=M.methodName;for(var z=0;z<f.length;z++){var T=f[z];T.literal||S.push(T)}if((f=e.dynamicFns)&&f[M]||y.static)S.push(M),y.dynamicFn=!0}else S.push(t);X.push({source:t,mode:Y,negate:b,customEvent:J,signature:y,
dependencies:S,event:G});Y=ee4.lastIndex}Y&&Y<V.length&&(V=V.substring(Y))&&X.push({literal:V});return X.length?X:null};
B._evaluateBinding=function(V,e,X,Y,t,b){V=e.signature?YQu(V,X,Y,t,e.signature):X!=e.source?Jm(V,e.source):b&&Y_(X)?Jm(V,X):V.__data[X];e.negate&&(V=!V);return V};
_.mh.Object.defineProperties(B.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Bi4}}});
return B}),Cg=[];var Xza=window.ShadyCSS&&window.ShadyCSS.cssBuild,uC=$X(function(B){function R(e,X,Y,t){if(!Xza){for(var b=X.content.querySelectorAll("style"),J=fEI(X),G=lE_(Y),y=X.content.firstElementChild,S=0;S<G.length;S++){var M=G[S];M.textContent=e._processStyleText(M.textContent,t);X.content.insertBefore(M,y)}for(y=G=0;y<J.length;y++)S=J[y],M=b[G],M!==S?(S=S.cloneNode(!0),M.parentNode.insertBefore(S,M)):G++,S.textContent=e._processStyleText(S.textContent,t)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(X,
Y);if(Kca&&Xza&&drl&&(X=X.content.querySelectorAll("style"))){var f="";Array.from(X).forEach(function(z){f+=z.textContent;z.parentNode.removeChild(z)});
e._styleSheet=new CSSStyleSheet;e._styleSheet.replaceSync(f)}}
var V=FcG(PW(B));B=function(){return V.call(this)||this};
_.l(B,V);B._finalizeClass=function(){V._finalizeClass.call(this);var e;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(e=this.__ownObservers)&&this.createObservers(e,this._properties);this._prepareTemplate()};
B._prepareTemplate=function(){var e=this.template;e&&(typeof e==="string"?(console.error("template getter must return HTMLTemplateElement"),e=null):vw||(e=e.cloneNode(!0)));this.prototype._template=e};
B.createProperties=function(e){for(var X in e){var Y=this.prototype,t=X,b=e[X],J=e;b.computed&&(b.readOnly=!0);b.computed&&(Y._hasReadOnlyEffect(t)?console.warn("Cannot redefine computed property '"+t+"'."):Y._createComputedProperty(t,b.computed,J));b.readOnly&&!Y._hasReadOnlyEffect(t)?Y._createReadOnlyProperty(t,!b.computed):b.readOnly===!1&&Y._hasReadOnlyEffect(t)&&console.warn("Cannot make readOnly property '"+t+"' non-readOnly.");b.reflectToAttribute&&!Y._hasReflectEffect(t)?Y._createReflectedProperty(t):
b.reflectToAttribute===!1&&Y._hasReflectEffect(t)&&console.warn("Cannot make reflected property '"+t+"' non-reflected.");b.notify&&!Y._hasNotifyEffect(t)?Y._createNotifyingProperty(t):b.notify===!1&&Y._hasNotifyEffect(t)&&console.warn("Cannot make notify property '"+t+"' non-notify.");b.observer&&Y._createPropertyObserver(t,b.observer,J[b.observer]);Y._addPropertyToAttributeMap(t)}};
B.createObservers=function(e,X){for(var Y=this.prototype,t=0;t<e.length;t++)Y._createMethodObserver(e[t],X)};
B.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);V.prototype._initializeProperties.call(this);this.rootPath=wJ_;this.importPath=this.constructor.importPath;var e=this.constructor;if(!e.hasOwnProperty("__propertyDefaults")){e.__propertyDefaults=null;var X=e._properties,Y;for(Y in X){var t=X[Y];"value"in t&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[Y]=t)}}if(e=e.__propertyDefaults)for(var b in e)X=e[b],
this._canApplyPropertyDefault(b)&&(X=typeof X.value=="function"?X.value.call(this):X.value,this._hasAccessor(b)?this._setPendingProperty(b,X,!0):this[b]=X)};
B.prototype._canApplyPropertyDefault=function(e){return!this.hasOwnProperty(e)};
B._processStyleText=function(e,X){return QOo(e,X)};
B._finalizeTemplate=function(e){var X=this.prototype._template;if(X&&!X.__polymerFinalized){X.__polymerFinalized=!0;var Y=this.importPath;Y=Y?_.V6(Y):"";R(this,X,e,Y);this.prototype._bindTemplate(X)}};
B.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);V.prototype.connectedCallback.call(this)};
B.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);V.prototype.ready.call(this)};
B.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));V.prototype._readyClients.call(this)};
B.prototype._attachDom=function(e){var X=(0,_.NK)(this);if(X.attachShadow)return e?(X.shadowRoot||(X.attachShadow({mode:"open",shadyUpgradeFragment:e}),X.shadowRoot.appendChild(e),this.constructor._styleSheet&&(X.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),xrR&&window.ShadyDOM&&window.ShadyDOM.flushInitial(X.shadowRoot),X.shadowRoot):null;throw Error("Cd");};
B.prototype.updateStyles=function(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)};
B.prototype.resolveUrl=function(e,X){!X&&this.importPath&&(X=_.V6(this.importPath));return _.V6(e,X)};
B._parseTemplateContent=function(e,X,Y){X.dynamicFns=X.dynamicFns||this._properties;return V._parseTemplateContent.call(this,e,X,Y)};
B._addTemplatePropertyEffect=function(e,X,Y){!Q6||X in this._properties||Y.info.part.signature&&Y.info.part.signature.static||Y.info.part.hostProp||e.nestedTemplate||console.warn("Property '"+X+"' used in template but not declared in 'properties'; attribute will not be observed.");return V._addTemplatePropertyEffect.call(this,e,X,Y)};
_.mh.Object.defineProperties(B,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var e=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof e==="function"&&(e=e());if(e===void 0){if(e=this.hasOwnProperty("is")){e=this.is;var X=null;if(e&&(!qK||TT4)&&(X=MK.import(e,"template"),qK&&!X))throw Error("Bd`"+e);e=X}e=e||Object.getPrototypeOf(this.prototype).constructor.template}this._template=e}return this._template},
set:function(e){this._template=e}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var e=this.importMeta;e?this._importPath=qsq(e.url):this._importPath=(e=MK.import(this.is))&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return B});var pza=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(B){return B}}),vxo=function(B,R){YVb(B,R);
this.value=R.reduce(function(V,e,X){return V+KJo(e)+B[X+1]},B[0]).toString()},YVb;
vxo.prototype.toString=function(){return this.value};
_.he4=function(B){var R=_.HB.apply(1,arguments);YVb(B,R);var V=document.createElement("template");R=R.reduce(function(e,X,Y){if(X instanceof HTMLTemplateElement)X=X.innerHTML;else if(X instanceof vxo)X=KJo(X);else throw Error("Ed`"+X);return e+X+B[Y+1]},B[0]);
pza&&(R=pza.createHTML(R));V.innerHTML=R;return V};
YVb=function(B,R){if(!Array.isArray(B)||!Array.isArray(B.raw)||R.length!==B.length-1)throw new TypeError("Fd");};var Oc=uC(HTMLElement);var tO2=$X(function(B){var R=uC(B);B=function(){var V=R.call(this)||this;V.__lastItems=null;V.__lastMulti=null;V.__selectedMap=null;return V};
_.l(B,R);B.prototype.__updateSelection=function(V,e){var X=e.path;X=="items"?(e=e.base||[],X=this.__lastItems,V!==this.__lastMulti&&this.clearSelection(),X&&(X=xoI(e,X),this.__applySplices(X)),this.__lastItems=e,this.__lastMulti=V):e.path=="items.splices"?this.__applySplices(e.value.indexSplices):(V=X.slice(6),e=parseInt(V,10),V.indexOf(".")<0&&V==e&&this.__deselectChangedIdx(e))};
B.prototype.__applySplices=function(V){for(var e=this,X=this.__selectedMap,Y={},t=0;t<V.length;Y={s$jscomp$108:void 0},t++){Y.s$jscomp$108=V[t];X.forEach(function(y){return function(S,M){S<y.s$jscomp$108.index||(S>=y.s$jscomp$108.index+y.s$jscomp$108.removed.length?X.set(M,S+y.s$jscomp$108.addedCount-y.s$jscomp$108.removed.length):X.set(M,-1))}}(Y));
for(var b=0;b<Y.s$jscomp$108.addedCount;b++){var J=Y.s$jscomp$108.index+b;X.has(this.items[J])&&X.set(this.items[J],J)}}this.__updateLinks();var G=0;X.forEach(function(y,S){y<0?(e.multi?e.splice("selected",G,1):e.selected=e.selectedItem=null,X.delete(S)):G++})};
B.prototype.__updateLinks=function(){var V=this;this.__dataLinkedPaths={};if(this.multi){var e=0;this.__selectedMap.forEach(function(X){X>=0&&V.linkPaths("items."+X,"selected."+e++)})}else this.__selectedMap.forEach(function(X){V.linkPaths("selected","items."+X);
V.linkPaths("selectedItem","items."+X)})};
B.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
B.prototype.isSelected=function(V){return this.__selectedMap.has(V)};
B.prototype.isIndexSelected=function(V){return this.isSelected(this.items[V])};
B.prototype.__deselectChangedIdx=function(V){var e=this,X=this.__selectedIndexForItemIndex(V);if(X>=0){var Y=0;this.__selectedMap.forEach(function(t,b){X==Y++&&e.deselect(b)})}};
B.prototype.__selectedIndexForItemIndex=function(V){if(V=this.__dataLinkedPaths["items."+V])return parseInt(V.slice(9),10)};
B.prototype.deselect=function(V){var e=this.__selectedMap.get(V);if(e>=0){this.__selectedMap.delete(V);var X;this.multi&&(X=this.__selectedIndexForItemIndex(e));this.__updateLinks();this.multi?this.splice("selected",X,1):this.selected=this.selectedItem=null}};
B.prototype.deselectIndex=function(V){this.deselect(this.items[V])};
B.prototype.select=function(V){this.selectIndex(this.items.indexOf(V))};
B.prototype.selectIndex=function(V){var e=this.items[V];this.isSelected(e)?this.toggle&&this.deselectIndex(V):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(e,V),this.__updateLinks(),this.multi?this.push("selected",e):this.selected=this.selectedItem=e)};
_.mh.Object.defineProperties(B,{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 B}),Wyv=tO2(Oc),oc=function(){return Wyv.apply(this,arguments)||this};
_.l(oc,Wyv);_.mh.Object.defineProperties(oc,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(oc.is,oc);var b0_=window.Polymer;window.Polymer=function(B){return window.Polymer._polymerFn(B)};
b0_&&Object.assign(Polymer,b0_);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:QOo,resolveUrl:_.V6,pathFromUrl:qsq};Polymer.DomModule=MK;Polymer.Async={timeOut:_.mB,animationFrame:_.yM,idlePeriod:cZb,microTask:x_};Polymer.dedupingMixin=$X;Polymer.wrap=_.NK;Polymer.PropertiesChanged=ip4;Polymer.telemetry={instanceCount:sLG,incrementInstanceCount:function(){sLG++},
registrations:sON,register:F3_,dumpRegistrations:function(){sON.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=FcG;Polymer.CaseMap={dashToCamelCase:Xi,camelToDashCase:pn};Polymer.PropertyAccessors=Cs4;Polymer.TemplateStamp=o8_;Polymer.Path={isPath:Y_,root:hm,isAncestor:CPS,isDescendant:tm,translate:Ww,matches:PPK,normalize:bA,split:nB5,get:Jm,set:uES,isDeep:Y_};Polymer.Settings={useShadow:Kn,useNativeCSSProperties:Dr2,useNativeCustomElements:fg2,get rootPath(){return wJ_},setRootPath:function(B){wJ_=B},
get sanitizeDOMValue(){return G8},setSanitizeDOMValue:function(B){G8=B},
get passiveTouchGestures(){return mo5},setPassiveTouchGestures:function(B){mo5=B},
get strictTemplatePolicy(){return qK},setStrictTemplatePolicy:function(B){qK=B},
get allowTemplateFromDomModule(){return TT4},setAllowTemplateFromDomModule:function(B){TT4=B},
get legacyOptimizations(){return vw},setLegacyOptimizations:function(B){vw=B},
get syncInitialRender(){return xrR},setSyncInitialRender:function(B){xrR=B},
get legacyUndefined(){return S6},setLegacyUndefined:function(B){S6=B},
get legacyWarnings(){return Q6},setLegacyWarnings:function(B){Q6=B},
get orderedComputed(){return LcR},setOrderedComputed:function(B){LcR=B},
get fastDomIf(){return rO},setFastDomIf:function(B){rO=B},
get removeNestedTemplates(){return FC},setRemoveNestedTemplates:function(B){FC=B},
get suppressTemplateNotifications(){return gO},setSuppressTemplateNotifications:gO};Polymer.rootPath!==void 0&&(wJ_=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(G8=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(mo5=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(qK=Polymer.strictTemplatePolicy);TT4=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(vw=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(xrR=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(S6=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Q6=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(LcR=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(rO=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(FC=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(gO=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return G8},
set:function(B){G8=B}});Polymer.PropertyEffects=PW;Polymer.StyleGather={stylesFromModules:Dod,stylesFromModule:krd,stylesFromTemplate:fEI,stylesFromModuleImports:lE_,cssFromModules:aES,cssFromModule:zwN,cssFromTemplate:do_,cssFromModuleImports:function(B){return(B=MK.import(B))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(B):""}};Polymer.ElementMixin=uC;Polymer.updateStyles=function(B){window.ShadyCSS&&window.ShadyCSS.styleDocument(B)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:xoI};Polymer.html=_.he4;Polymer.htmlLiteral=function(B){return new vxo(B,_.HB.apply(1,arguments))};Polymer.Element=Oc;Polymer.ArraySelectorMixin=tO2;Polymer.ArraySelector=oc;var JEG=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,jFl=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,jHA=/@media\s(.*)/;var qQu=null,QVp=window.HTMLImports&&window.HTMLImports.whenReady||null,cvp;var Ud4=null,B9=null,Rc=function(){this.customStyles=[];this.enqueued=!1;Avu(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Nib=function(B){!B.enqueued&&B9&&(B.enqueued=!0,Avu(B9))};
Rc.prototype.addCustomStyle=function(B){B.__seenByShadyCSS||(B.__seenByShadyCSS=!0,this.customStyles.push(B),Nib(this))};
Rc.prototype.getStyleForCustomStyle=function(B){if(B.__shadyCSSCachedStyle)return B.__shadyCSSCachedStyle;var R;B.getStyle?R=B.getStyle():R=B;return R};
Rc.prototype.processStyles=function(){for(var B=this.customStyles,R=0;R<B.length;R++){var V=B[R];if(!V.__shadyCSSCachedStyle){var e=this.getStyleForCustomStyle(V);e&&(e=e.__appliedElement||e,Ud4&&Ud4(e),V.__shadyCSSCachedStyle=e)}}return B};
Rc.prototype.addCustomStyle=Rc.prototype.addCustomStyle;Rc.prototype.getStyleForCustomStyle=Rc.prototype.getStyleForCustomStyle;Rc.prototype.processStyles=Rc.prototype.processStyles;Object.defineProperties(Rc.prototype,{transformCallback:{get:function(){return Ud4},
set:function(B){Ud4=B}},
validateCallback:{get:function(){return B9},
set:function(B){var R=!1;B9||(R=!0);B9=B;R&&Nib(this)}}});var sVd=!(window.ShadyDOM&&window.ShadyDOM.inUse),iOK,Zp;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Zp=window.ShadyCSS.cssBuild);var GpG=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?iOK=window.ShadyCSS.nativeCss:window.ShadyCSS?(FJS(window.ShadyCSS),window.ShadyCSS=void 0):FJS(window.WebComponents&&window.WebComponents.flags);var WNq=iOK;var yE5=new Rc;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(B,R){yE5.processStyles();IEN(B,R)},
styleElement:function(){yE5.processStyles()},
styleDocument:function(B){yE5.processStyles();IEN(document.body,B)},
getComputedStyleValue:function(B,R){return ExA(B,R)},
flushCustomStyles:function(){},
nativeCss:WNq,nativeShadow:sVd,cssBuild:Zp,disableRuntime:GpG});window.ShadyCSS.CustomStyleInterface=yE5;var SVS=window.ShadyCSS.CustomStyleInterface,Vk=function(){var B=HTMLElement.call(this)||this;B._style=null;SVS.addCustomStyle(B);return B};
_.l(Vk,HTMLElement);Vk.prototype.getStyle=function(){if(this._style)return this._style;var B=this.querySelector("style");if(!B)return null;this._style=B;var R=B.getAttribute("include");R&&(B.removeAttribute("include"),B.textContent=aES(R)+B.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Vk.prototype.getStyle=Vk.prototype.getStyle;window.customElements.define("custom-style",Vk);Polymer.CustomStyle=Vk;var eH=function(){this._timer=this._callback=this._asyncModule=null},XJ,MOT;
eH.prototype.setConfig=function(B,R){var V=this;this._asyncModule=B;this._callback=R;this._timer=this._asyncModule.run(function(){V._timer=null;XJ.delete(V);V._callback()})};
eH.prototype.cancel=function(){this.isActive()&&(H0h(this),XJ.delete(this))};
var H0h=function(B){B.isActive()&&(B._asyncModule.cancel(B._timer),B._timer=null)};
eH.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
eH.prototype.isActive=function(){return this._timer!=null};
_.p8=function(B,R,V){B instanceof eH?H0h(B):B=new eH;B.setConfig(R,V);return B};
XJ=new Set;_.Y6=function(B){XJ.add(B)};
MOT=function(){var B=!!XJ.size;XJ.forEach(function(R){try{R.flush()}catch(V){setTimeout(function(){throw V;})}});
return B};var gxZ=typeof document.head.style.touchAction==="string",rvp=["mousedown","mousemove","mouseup","click"],o1u=[0,1,4,2],kpT;try{kpT=(new MouseEvent("test",{buttons:1})).buttons===1}catch(B){kpT=!1}var OOZ=kpT,ZOK=!1;(function(){try{var B=Object.defineProperty({},"passive",{get:function(){ZOK=!0}});
window.addEventListener("test",null,B);window.removeEventListener("test",null,B)}catch(R){}})();
var ClK=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Pl_=[],Ddb={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Jk5={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},nxY=function(B){var R=B.sourceCapabilities;if(!R||R.firesTouchEvents)if(B.__polymerGesturesHandled={skip:!0},B.type==="click"){R=!1;for(var V=eud(B),e=0;e<V.length;e++){if(V[e].nodeType===Node.ELEMENT_NODE)if(V[e].localName==="label")Pl_.push(V[e]);
else if(Ddb[V[e].localName]){var X=V[e];var Y=Array.prototype.slice.call(X.labels||[]);if(!Y.length){Y=[];try{var t=X.getRootNode();if(X.id){var b=t.querySelectorAll("label[for = '"+X.id+"']");for(X=0;X<b.length;X++)Y.push(b[X])}}catch(J){}}for(X=0;X<Y.length;X++)R=R||Pl_.indexOf(Y[X])>-1}if(V[e]===fIR)return}R||(B.preventDefault(),B.stopPropagation())}},fIR=null,hf=null,pId=0,YyY=0,XId=-1,huS=!1;
document.addEventListener("touchend",function(B){hf||utd(!0);fIR=eud(B)[0];hf=_.p8(hf,_.mB.after(2500),function(){utd();hf=fIR=null})},ZOK?{passive:!0}:!1);
var eud=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(B){return B.composedPath&&B.composedPath()||[]},aA={},lA=[];
tBx({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){fn(this.info)},
mousedown:function(B){if(Dp(B)){var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B),V=this;RuZ(this.info,function(e){Dp(e)||(Ln("up",R,e),fn(V.info))},function(e){Dp(e)&&Ln("up",R,e);
fn(V.info)});
Ln("down",R,B)}},
touchstart:function(B){Ln("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B),B.changedTouches[0],B)},
touchend:function(B){Ln("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B),B.changedTouches[0],B)}});
tBx({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(B){this.moves.length>2&&this.moves.shift();this.moves.push(B)},
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;fn(this.info)},
mousedown:function(B){if(Dp(B)){var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B),V=this,e=function(X){var Y=X.clientX,t=X.clientY;W2S(V.info,Y,t)&&(V.info.state=V.info.started?X.type==="mouseup"?"end":"track":"start",V.info.state==="start"&&z8("tap"),V.info.addMove({x:Y,y:t}),Dp(X)||(V.info.state="end",fn(V.info)),R&&bw5(V.info,R,X),V.info.started=!0)};
RuZ(this.info,e,function(X){V.info.started&&e(X);fn(V.info)});
this.info.x=B.clientX;this.info.y=B.clientY}},
touchstart:function(B){B=B.changedTouches[0];this.info.x=B.clientX;this.info.y=B.clientY},
touchmove:function(B){var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B);B=B.changedTouches[0];var V=B.clientX,e=B.clientY;W2S(this.info,V,e)&&(this.info.state==="start"&&z8("tap"),this.info.addMove({x:V,y:e}),bw5(this.info,R,B),this.info.state="track",this.info.started=!0)},
touchend:function(B){var R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B);B=B.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:B.clientX,y:B.clientY}),bw5(this.info,R,B))}});
tBx({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(B){Dp(B)&&(this.info.x=B.clientX,this.info.y=B.clientY)},
click:function(B){Dp(B)&&j7u(this.info,B)},
touchstart:function(B){B=B.changedTouches[0];this.info.x=B.clientX;this.info.y=B.clientY},
touchend:function(B){j7u(this.info,B.changedTouches[0],B)}});var lIG=$X(function(B){var R=function(){return B.apply(this,arguments)||this};
_.l(R,B);R.prototype._addEventListenerToNode=function(V,e,X){dB(V,e,X)||B.prototype._addEventListenerToNode.call(this,V,e,X)};
R.prototype._removeEventListenerFromNode=function(V,e,X){wB(V,e,X)||B.prototype._removeEventListenerFromNode.call(this,V,e,X)};
return R});var tf=$X(function(B){var R=function(){return B.apply(this,arguments)||this};
_.l(R,B);R.prototype._shouldPropertyChange=function(V,e,X){return UsI(this,V,e,X,!0)};
return R}),ze_=$X(function(B){var R=function(){return B.apply(this,arguments)||this};
_.l(R,B);R.prototype._shouldPropertyChange=function(V,e,X){return UsI(this,V,e,X,this.mutableData)};
_.mh.Object.defineProperties(R,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return R});
tf._mutablePropertyChange=UsI;var NLZ=!1;var aI2=lIG(ze_(PW(HTMLElement))),W9=function(){var B=aI2.call(this)||this;if(qK)throw Error("Hd");B.root=null;B.$=null;B.__children=null;return B};
_.l(W9,aI2);_.p=W9.prototype;_.p.attributeChangedCallback=function(){this.mutableData=!0};
_.p.connectedCallback=function(){GPN()||(this.style.display="none");this.render()};
_.p.disconnectedCallback=function(){this.__removeChildren()};
_.p.__insertChildren=function(){(0,_.NK)((0,_.NK)(this).parentNode).insertBefore(this.root,this)};
_.p.__removeChildren=function(){if(this.__children)for(var B=0;B<this.__children.length;B++)this.root.appendChild(this.__children[B])};
_.p.render=function(){var B=this;if(!this.__children){var R=R||this.querySelector("template");if(!R){var V=new MutationObserver(function(){if(R=B.querySelector("template"))V.disconnect(),B.render();else throw Error("Id");});
V.observe(this,{childList:!0});return}this.root=this._stampTemplate(R);this.$=this.root.$;this.__children=[];for(var e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.mh.Object.defineProperties(W9,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",W9);Polymer.Debouncer=eH;Polymer.Gestures={gestures:aA,recognizers:lA,deepTargetFind:VBu,addListener:dB,removeListener:wB,register:tBx,setTouchAction:_.T8,prevent:z8,resetMouseCanceller:function(){hf&&hf.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:dB,remove:wB};Polymer.GestureEventListeners=lIG;Polymer.MutableData=tf;Polymer.OptionalMutableData=ze_;Polymer.DomBind=W9;_.bx=function(){do{var B=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var R=MOT()}while(B||R)};var ykx=null;Syx.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Syx,writable:!0}});var adK=PW(Syx),zuo=tf(adK),ddb=PW(function(){}),IA=function(B){var R=ddb.call(this)||this;
R._configureProperties(B);R.root=R._stampTemplate(R.__dataHost);var V=[];R.children=V;for(var e=R.root.firstChild;e;e=e.nextSibling)V.push(e),e.__templatizeInstance=R;R.__templatizeOwner&&R.__templatizeOwner.__hideTemplateChildren__&&R._showHideChildren(!0);V=R.__templatizeOptions;(B&&V.instanceProps||!V.instanceProps)&&R._enableProperties();return R};
_.l(IA,ddb);_.p=IA.prototype;_.p._configureProperties=function(B){if(this.__templatizeOptions.forwardHostProp)for(var R in this.__hostProps)this._setPendingProperty(R,this.__dataHost["_host_"+R]);for(var V in B)this._setPendingProperty(V,B[V])};
_.p.forwardHostProp=function(B,R){this._setPendingPropertyOrPath(B,R,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.p._addEventListenerToNode=function(B,R,V){var e=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(B,R,function(Y){Y.model=e;V(Y)});
else{var X=this.__dataHost.__dataHost;X&&X._addEventListenerToNode(B,R,V)}};
_.p._showHideChildren=function(B){MBS(B,this.children)};
_.p._setUnmanagedPropertyToNode=function(B,R,V){B.__hideTemplateChildren__&&B.nodeType==Node.TEXT_NODE&&R=="textContent"?B.__polymerTextContent__=V:ddb.prototype._setUnmanagedPropertyToNode.call(this,B,R,V)};
_.p.dispatchEvent=function(){return!0};
_.mh.Object.defineProperties(IA.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var B=this.__parentModel;if(!B){var R;B=this;do B=B.__dataHost.__dataHost;while((R=B.__templatizeOptions)&&!R.parentModel);this.__parentModel=B}return B}}});
var Dsu=tf(IA);var Jf=function(){var B=Oc.call(this)||this;B.__renderDebouncer=null;B._lastIf=!1;B.__hideTemplateChildren__=!1;return B};
_.l(Jf,Oc);_.p=Jf.prototype;_.p.__debounceRender=function(){var B=this;this.__renderDebouncer=_.p8(this.__renderDebouncer,x_,function(){return B.__render()});
_.Y6(this.__renderDebouncer)};
_.p.disconnectedCallback=function(){Oc.prototype.disconnectedCallback.call(this);var B=(0,_.NK)(this).parentNode;B&&(B.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.NK)(B).host)||this.__teardownInstance()};
_.p.connectedCallback=function(){Oc.prototype.connectedCallback.call(this);GPN()||(this.style.display="none");this.if&&this.__debounceRender()};
_.p.__ensureTemplate=function(){var B=this;if(!this.__template){var R=this._templateInfo?this:(0,_.NK)(this).querySelector("template");if(!R){var V=new MutationObserver(function(){if((0,_.NK)(B).querySelector("template"))V.disconnect(),B.__render();else throw Error("Ld");});
V.observe(this,{childList:!0});return!1}this.__template=R}return!0};
_.p.__ensureInstance=function(){var B=(0,_.NK)(this).parentNode;if(this.__hasInstance()){var R=this.__getInstanceNodes();if(R&&R.length&&(0,_.NK)(this).previousSibling!==R[R.length-1])for(var V=0,e=void 0;V<R.length&&(e=R[V]);V++)(0,_.NK)(B).insertBefore(e,this)}else{if(!B||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(B)}return!0};
_.p.render=function(){_.bx()};
_.p.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();gO&&!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(){};
_.mh.Object.defineProperties(Jf,{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:Jf.prototype.__debounceRender},restamp:{type:Boolean,observer:Jf.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var wz4=function(){var B=Jf.call(this)||this;B.__instance=null;B.__syncInfo=null;return B};
_.l(wz4,Jf);_.p=wz4.prototype;_.p.__hasInstance=function(){return!!this.__instance};
_.p.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.p.__createAndInsertInstance=function(B){var R=this,V=this.__dataHost||this;if(qK&&!this.__dataHost)throw Error("Jd");var e=V._bindTemplate(this.__template,!0);e.runEffects=function(X,Y,t){var b=R.__syncInfo;if(R.if)b&&(R.__syncInfo=null,R._showHideChildren(),Y=Object.assign(b.changedProps,Y)),X(Y,t);else if(R.__instance)if(b||(b=R.__syncInfo={runEffects:X,changedProps:{}}),t)for(var J in Y)X=hm(J),b.changedProps[X]=R.__dataHost[X];else Object.assign(b.changedProps,Y)};
this.__instance=V._stampTemplate(this.__template,e);(0,_.NK)(B).insertBefore(this.__instance,this)};
_.p.__syncHostProperties=function(){var B=this.__syncInfo;B&&(this.__syncInfo=null,B.runEffects(B.changedProps,!1))};
_.p.__teardownInstance=function(){var B=this.__dataHost||this;this.__instance&&(B._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.p._showHideChildren=function(){var B=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==B&&(this.__instance.__hidden=B,MBS(B,this.__instance.templateInfo.childNodes));B||this.__syncHostProperties()};
var Ti5=function(){var B=Jf.call(this)||this;B.__ctor=null;B.__instance=null;B.__invalidProps=null;return B};
_.l(Ti5,Jf);_.p=Ti5.prototype;_.p.__hasInstance=function(){return!!this.__instance};
_.p.__getInstanceNodes=function(){return this.__instance.children};
_.p.__createAndInsertInstance=function(B){this.__ctor||(this.__ctor=Eq(this.__template,this,{mutableData:!0,forwardHostProp:function(R,V){this.__instance&&(this.if?this.__instance.forwardHostProp(R,V):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[hm(R)]=!0))}}));
this.__instance=new this.__ctor;(0,_.NK)(B).insertBefore(this.__instance.root,this)};
_.p.__teardownInstance=function(){if(this.__instance){var B=this.__instance.children;if(B&&B.length){var R=(0,_.NK)(B[0]).parentNode;if(R){R=(0,_.NK)(R);for(var V=0,e=void 0;V<B.length&&(e=B[V]);V++)R.removeChild(e)}}this.__instance=this.__invalidProps=null}};
_.p.__syncHostProperties=function(){var B=this.__invalidProps;if(B){this.__invalidProps=null;for(var R in B)this.__instance._setPendingProperty(R,this.__dataHost[R]);this.__instance._flushProperties()}};
_.p._showHideChildren=function(){var B=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==B&&(this.__instance.__hidden=B,this.__instance._showHideChildren(B));B||this.__syncHostProperties()};
_.MU=rO?wz4:Ti5;customElements.define(_.MU.is,_.MU);Polymer.enqueueDebouncer=_.Y6;Polymer.flush=_.bx;Polymer.Templatize={templatize:Eq,modelForElement:v1I};Polymer.TemplateInstanceBase=IA;Polymer.DomIf=_.MU;var xda=ze_(Oc),Hc=function(){var B=xda.call(this)||this;B.__instances=[];B.__renderDebouncer=null;B.__itemsIdxToInstIdx={};B.__chunkCount=null;B.__renderStartTime=null;B.__itemsArrayChanged=!1;B.__shouldMeasureChunk=!1;B.__shouldContinueChunking=!1;B.__chunkingId=0;B.__sortFn=null;B.__filterFn=null;B.__observePaths=null;B.__ctor=null;B.__isDetached=!0;B.template=null;return B};
_.l(Hc,xda);_.p=Hc.prototype;_.p.disconnectedCallback=function(){xda.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var B=0;B<this.__instances.length;B++)this.__detachInstance(B);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.p.connectedCallback=function(){xda.prototype.connectedCallback.call(this);GPN()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var B=(0,_.NK)((0,_.NK)(this).parentNode),R=0;R<this.__instances.length;R++)this.__attachInstance(R,B);this.__chunkingId&&this.__render()}};
_.p.__ensureTemplatized=function(){var B=this;if(!this.__ctor){var R=this.template=this._templateInfo?this:this.querySelector("template");if(!R){var V=new MutationObserver(function(){if(B.querySelector("template"))V.disconnect(),B.__render();else throw Error("Md");});
V.observe(this,{childList:!0});return!1}var e={};e[this.as]=!0;e[this.indexAs]=!0;e[this.itemsIndexAs]=!0;this.__ctor=Eq(R,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:e,forwardHostProp:function(X,Y){for(var t=this.__instances,b=0,J=void 0;b<t.length&&(J=t[b]);b++)J.forwardHostProp(X,Y)},
notifyInstanceProp:function(X,Y,t){PPK(this.as,Y)&&(X=X[this.itemsIndexAs],Y==this.as&&(this.items[X]=t),Y=Ww(this.as,"items."+X,Y),this.notifyPath(Y,t))}})}return!0};
_.p.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.p.__functionFromPropertyValue=function(B){if(typeof B==="string"){var R=this.__getMethodHost();return function(){return R[B].apply(R,arguments)}}return B};
_.p.__sortChanged=function(B){this.__sortFn=this.__functionFromPropertyValue(B);this.items&&this.__debounceRender(this.__render)};
_.p.__filterChanged=function(B){this.__filterFn=this.__functionFromPropertyValue(B);this.items&&this.__debounceRender(this.__render)};
_.p.__computeFrameTime=function(B){return Math.ceil(1E3/B)};
_.p.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.p.__handleObservedPaths=function(B){if(this.__sortFn||this.__filterFn)if(!B)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var R=this.__observePaths,V=0;V<R.length;V++)B.indexOf(R[V])===0&&this.__debounceRender(this.__render,this.delay)};
_.p.__itemsChanged=function(B){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(B.path,B.value)||(B.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.p.__debounceRender=function(B,R){R=R===void 0?0:R;this.__renderDebouncer=_.p8(this.__renderDebouncer,R>0?_.mB.after(R):x_,B.bind(this));_.Y6(this.__renderDebouncer)};
_.p.render=function(){this.__debounceRender(this.__render);_.bx()};
_.p.__render=function(){var B=this;if(this.__ensureTemplatized()){var R=this.items||[],V=this.__sortAndFilterItems(R),e=this.__calculateLimit(V.length);this.__updateInstances(R,e,V);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){B.__chunkingId=null;B.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);gO&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.p.__sortAndFilterItems=function(B){for(var R=this,V=Array(B.length),e=0;e<B.length;e++)V[e]=e;this.__filterFn&&(V=V.filter(function(X,Y,t){return R.__filterFn(B[X],Y,t)}));
this.__sortFn&&V.sort(function(X,Y){return R.__sortFn(B[X],B[Y])});
return V};
_.p.__calculateLimit=function(B){var R=B,V=this.__instances.length;if(this.initialCount){var e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(R=Math.min(B,this.initialCount),this.__chunkCount=(e=Math.max(R-V,0))||1):(e=Math.min(Math.max(B-V,0),this.__chunkCount),R=Math.min(V+e,B));this.__shouldMeasureChunk=e===this.__chunkCount;this.__shouldContinueChunking=R<B;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return R};
_.p.__continueChunking=function(){if(this.__shouldMeasureChunk){var B=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/B*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.p.__updateInstances=function(B,R,V){var e=this.__itemsIdxToInstIdx={},X;for(X=0;X<R;X++){var Y=this.__instances[X],t=V[X],b=B[t];e[t]=X;Y?(Y._setPendingProperty(this.as,b),Y._setPendingProperty(this.indexAs,X),Y._setPendingProperty(this.itemsIndexAs,t),Y._flushProperties()):this.__insertInstance(b,X,t)}for(B=this.__instances.length-1;B>=X;B--)this.__detachAndRemoveInstance(B)};
_.p.__detachInstance=function(B){B=this.__instances[B];for(var R=(0,_.NK)(B.root),V=0;V<B.children.length;V++)R.appendChild(B.children[V]);return B};
_.p.__attachInstance=function(B,R){R.insertBefore(this.__instances[B].root,this)};
_.p.__detachAndRemoveInstance=function(B){this.__detachInstance(B);this.__instances.splice(B,1)};
_.p.__stampInstance=function(B,R,V){var e={};e[this.as]=B;e[this.indexAs]=R;e[this.itemsIndexAs]=V;return new this.__ctor(e)};
_.p.__insertInstance=function(B,R,V){B=this.__stampInstance(B,R,V);V=(V=this.__instances[R+1])?V.children[0]:this;(0,_.NK)((0,_.NK)(this).parentNode).insertBefore(B.root,V);return this.__instances[R]=B};
_.p._showHideChildren=function(B){for(var R=0;R<this.__instances.length;R++)this.__instances[R]._showHideChildren(B)};
_.p.__handleItemPath=function(B,R){var V=B.slice(6),e=V.indexOf(".");B=e<0?V:V.substring(0,e);if(B==parseInt(B,10)){V=e<0?"":V.substring(e+1);this.__handleObservedPaths(V);if(B=this.__instances[this.__itemsIdxToInstIdx[B]])B._setPendingPropertyOrPath(this.as+(V?"."+V:""),R,!1,!0),B._flushProperties();return!0}};
_.p.itemForElement=function(B){return(B=this.modelForElement(B))&&B[this.as]};
_.p.indexForElement=function(B){return(B=this.modelForElement(B))&&B[this.indexAs]};
_.p.modelForElement=function(B){return v1I(this.template,B)};
_.mh.Object.defineProperties(Hc,{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:Hc.prototype.__sortChanged},filter:{type:Function,observer:Hc.prototype.__filterChanged},observe:{type:String,observer:Hc.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!gO,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.*)"]}}});
Hc.prototype._setRenderedItemCount=function(){};
customElements.define(Hc.is,Hc);Polymer.DomRepeat=Hc;var Lyh=function(B,R){var V=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=B;this.callback=R;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){V._schedule()};
this.connect();this._schedule()},v82=function(B){var R=(0,_.NK)(B);
if(cw(B))return R.assignedNodes({flatten:!0});B=[];for(var V=0;V<R.childNodes.length;V++){var e=R.childNodes[V];cw(e)?B.push.apply(B,_.MI((0,_.NK)(e).assignedNodes({flatten:!0}))):B.push(e)}return B};
_.p=Lyh.prototype;_.p.connect=function(){var B=this;cw(this._target)?this._listenSlots([this._target]):(0,_.NK)(this._target).children&&(this._listenSlots((0,_.NK)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(R){B._processMutations(R)}):(this._nativeChildrenObserver=new MutationObserver(function(R){B._processMutations(R)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.p.disconnect=function(){cw(this._target)?this._unlistenSlots([this._target]):(0,_.NK)(this._target).children&&(this._unlistenSlots((0,_.NK)(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 B=this;this._scheduled||(this._scheduled=!0,x_.run(function(){return B.flush()}))};
_.p._processMutations=function(B){this._processSlotMutations(B);this.flush()};
_.p._processSlotMutations=function(B){if(B)for(var R=0;R<B.length;R++){var V=B[R];V.addedNodes&&this._listenSlots(V.addedNodes);V.removedNodes&&this._unlistenSlots(V.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 B={target:this._target,addedNodes:[],removedNodes:[]},R=v82(this._target),V=xoI(R,this._effectiveNodes),e=0,X=void 0;e<V.length&&(X=V[e]);e++)for(var Y=0,t=void 0;Y<X.removed.length&&(t=X.removed[Y]);Y++)B.removedNodes.push(t);
e=0;for(X=void 0;e<V.length&&(X=V[e]);e++)for(Y=X.index;Y<X.index+X.addedCount;Y++)B.addedNodes.push(R[Y]);this._effectiveNodes=R;R=!1;if(B.addedNodes.length||B.removedNodes.length)R=!0,this.callback.call(this._target,B);return R};
_.p._listenSlots=function(B){for(var R=0;R<B.length;R++){var V=B[R];cw(V)&&V.addEventListener("slotchange",this._boundSchedule)}};
_.p._unlistenSlots=function(B){for(var R=0;R<B.length;R++){var V=B[R];cw(V)&&V.removeEventListener("slotchange",this._boundSchedule)}};var jH=Element.prototype,Ky4=jH.matches||jH.matchesSelector||jH.mozMatchesSelector||jH.msMatchesSelector||jH.oMatchesSelector||jH.webkitMatchesSelector,IIG=function(B,R){return Ky4.call(B,R)},Am=function(B){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(B);
this.node=B},cE4;
_.p=Am.prototype;_.p.observeNodes=function(B){return new Lyh(this.node,B)};
_.p.unobserveNodes=function(B){B.disconnect()};
_.p.notifyObserver=function(){};
_.p.deepContains=function(B){if((0,_.NK)(this.node).contains(B))return!0;var R=B;for(B=B.ownerDocument;R&&R!==B&&R!==this.node;)R=(0,_.NK)(R).parentNode||(0,_.NK)(R).host;return R===this.node};
_.p.getOwnerRoot=function(){return(0,_.NK)(this.node).getRootNode()};
_.p.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.NK)(this.node).assignedNodes({flatten:!0}):[]};
_.p.getDestinationInsertionPoints=function(){for(var B=[],R=(0,_.NK)(this.node).assignedSlot;R;)B.push(R),R=(0,_.NK)(R).assignedSlot;return B};
_.p.importNode=function(B,R){return(0,_.NK)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(B,R)};
_.p.getEffectiveChildNodes=function(){return v82(this.node)};
_.p.queryDistributedElements=function(B){for(var R=this.getEffectiveChildNodes(),V=[],e=0,X=R.length,Y=void 0;e<X&&(Y=R[e]);e++)Y.nodeType===Node.ELEMENT_NODE&&IIG(Y,B)&&V.push(Y);return V};
_.mh.Object.defineProperties(Am.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var B=this.node;return B._activeElement!==void 0?B._activeElement:B.activeElement}}});
var Uj=function(B){this.event=B};
_.mh.Object.defineProperties(Uj.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 E8G=Am;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var QFo=window.ShadyDOM.Wrapper,qV2=function(){return QFo.apply(this,arguments)||this};
_.l(qV2,QFo);Object.getOwnPropertyNames(Am.prototype).forEach(function(B){B!="activeElement"&&B!="constructor"&&(qV2.prototype[B]=Am.prototype[B])});
Idd(qV2.prototype,["classList"]);E8G=qV2;Object.defineProperties(Uj.prototype,{localTarget:{get:function(){var B=this.event.currentTarget;B=B&&_.Mr(B).getOwnerRoot();for(var R=this.path,V=0;V<R.length;V++){var e=R[V];if(_.Mr(e).getOwnerRoot()===B)return e}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else K2q(),Idd(Am.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),E1u();cE4=E8G;_.Mr=function(B){B=B||document;if(B instanceof E8G)return B;if(B instanceof Uj)return B;var R=B.__domApi;R||(B instanceof Event?R=new Uj(B):R=new E8G(B),B.__domApi=R);return R};var AET=/:host\(:dir\((ltr|rtl)\)\)/g,i0G=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,sFl=/:dir\((?:ltr|rtl)\)/,Fya=!(!window.ShadyDOM||!window.ShadyDOM.inUse),sq=[],N7=null,iA="",rEb=$X(function(B){Fya||N7||(iA=document.documentElement.getAttribute("dir"),N7=new MutationObserver(Q7d),N7.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var R=Cs4(B);B=function(){var V=R.call(this)||this;V.__autoDirOptOut=!1;return V};
_.l(B,R);B._processStyleText=function(V,e){V=R._processStyleText.call(this,V,e);!Fya&&sFl.test(V)&&(V=this._replaceDirInCssText(V),this.__activateDir=!0);return V};
B._replaceDirInCssText=function(V){V=V.replace(AET,':host([dir="$1"])');return V=V.replace(i0G,':host([dir="$2"]) $1')};
B.prototype.ready=function(){R.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
B.prototype.connectedCallback=function(){R.prototype.connectedCallback&&R.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(N7&&N7.takeRecords().length&&Q7d(),sq.push(this),this.__autoDirOptOut||this.setAttribute("dir",iA))};
B.prototype.disconnectedCallback=function(){R.prototype.disconnectedCallback&&R.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var V=sq.indexOf(this);V>-1&&sq.splice(V,1)}};
B.__activateDir=!1;return B});var g8J=function(B){for(;B;){var R=Object.getOwnPropertyDescriptor(B,"observedAttributes");if(R)return R.get;B=Object.getPrototypeOf(B.prototype).constructor}return function(){return[]}};
$X(function(B){var R=uC(B),V=g8J(R);B=function(){return R.call(this)||this};
_.l(B,R);B.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:R.prototype._initializeProperties.call(this)};
B.prototype._enableProperties=function(){this.__isUpgradeDisabled||R.prototype._enableProperties.call(this)};
B.prototype._canApplyPropertyDefault=function(e){return R.prototype._canApplyPropertyDefault.call(this,e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))};
B.prototype.attributeChangedCallback=function(e,X,Y,t){e=="disable-upgrade"?this.__isUpgradeDisabled&&Y==null&&(R.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.NK)(this).isConnected&&R.prototype.connectedCallback.call(this)):R.prototype.attributeChangedCallback.call(this,e,X,Y,t)};
B.prototype.connectedCallback=function(){this.__isUpgradeDisabled||R.prototype.connectedCallback.call(this)};
B.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||R.prototype.disconnectedCallback.call(this)};
_.mh.Object.defineProperties(B,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return V.call(this).concat("disable-upgrade")}}});
return B});var Fi=!1,cku=[],rB=[];var F2d=window.ShadyDOM,rku=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",Zw_):document.readyState==="interactive"||document.readyState==="complete"?Zw_():window.addEventListener("DOMContentLoaded",Zw_);var CHp=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=""},msd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,$s5=/@import[^;]*;/gim,B2u=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Rxu=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,VVp=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,exo=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Owx=/^@[^\s]*keyframes/,
uHN=/\s+/g;var XSp={};var hxS=Promise.resolve();var Z0o=new Set;var mdo=/;\s*/m,$d5=/^\s*(initial)|(inherit)\s*$/,CF2=/\s*!important/,PFa=function(){this._map={}};
PFa.prototype.set=function(B,R){B=B.trim();this._map[B]={properties:R,dependants:{}}};
PFa.prototype.get=function(B){B=B.trim();return this._map[B]||null};
var n85=null,Gs=function(){this._measureElement=this._currentElement=null;this._map=new PFa};
_.p=Gs.prototype;_.p.detectMixin=function(B){B=jFl.test(B)||JEG.test(B);jFl.lastIndex=0;JEG.lastIndex=0;return B};
_.p.transformTemplate=function(B,R){if(B._gatheredStyle===void 0){var V=[];for(var e=B.content.querySelectorAll("style"),X=0;X<e.length;X++){var Y=e[X];if(Y.hasAttribute("shady-unscoped")){if(!sVd){var t=Y.textContent;if(!Z0o.has(t)){Z0o.add(t);var b=document.createElement("style");b.setAttribute("shady-unscoped","");b.textContent=t;document.head.appendChild(b)}Y.parentNode.removeChild(Y)}}else V.push(Y.textContent),Y.parentNode.removeChild(Y)}(V=V.join("").trim())?(e=document.createElement("style"),
e.textContent=V,B.content.insertBefore(e,B.content.firstChild),V=e):V=null;B._gatheredStyle=V}return(B=B._gatheredStyle)?this.JSC$9083_transformStyle(B,R):null};
_.p.JSC$9083_transformStyle=function(B,R){R=R===void 0?"":R;var V=JnI(B);this.transformRules(V,R);B.textContent=biq(V);return V};
_.p.transformCustomStyle=function(B){var R=this,V=JnI(B);Ul5(V,function(e){e.selector===":root"&&(e.selector="html");R.transformRule(e)});
B.textContent=biq(V);return V};
_.p.transformRules=function(B,R){var V=this;this._currentElement=R;Ul5(B,function(e){V.transformRule(e)});
this._currentElement=null};
_.p.transformRule=function(B){B.cssText=uTh(this,B.parsedCssText,B);B.selector===":root"&&(B.selector=":host > *")};
var uTh=function(B,R,V){R=R.replace(JEG,function(e,X,Y,t){return B._produceCssProperties(e,X,Y,t,V)});
return B._consumeCssProperties(R,V)};
_.p=Gs.prototype;_.p._getInitialValueForProperty=function(B){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(B)};
_.p._fallbacksFromPreviousRules=function(B){for(var R=this,V=B;V.parent;)V=V.parent;var e={},X=!1;Ul5(V,function(Y){(X=X||Y===B)||Y.selector===B.selector&&Object.assign(e,R._cssTextToMap(Y.parsedCssText))});
return e};
_.p._consumeCssProperties=function(B,R){for(var V;V=jFl.exec(B);){var e=V[0],X=V[1];V=V.index;var Y=V+e.indexOf("@apply"),t=V+e.length;e=B.slice(0,Y);B=B.slice(t);Y=R?this._fallbacksFromPreviousRules(R):{};Object.assign(Y,this._cssTextToMap(e));X=this._atApplyToCssProperties(X,Y);B=e+X+B;jFl.lastIndex=V+X.length}return B};
_.p._atApplyToCssProperties=function(B,R){B=B.replace(mdo,"");var V=[],e=this._map.get(B);e||(this._map.set(B,{}),e=this._map.get(B));if(e){this._currentElement&&(e.dependants[this._currentElement]=!0);var X,Y=e.properties;for(X in Y){var t=R&&R[X];e=[X,": var(",B,"_-_",X];t&&e.push(",",t.replace(CF2,""));e.push(")");CF2.test(Y[X])&&e.push(" !important");V.push(e.join(""))}}return V.join("; ")};
_.p._replaceInitialOrInherit=function(B,R){var V=$d5.exec(R);V&&(R=V[1]?this._getInitialValueForProperty(B):"apply-shim-inherit");return R};
_.p._cssTextToMap=function(B,R){R=R===void 0?!1:R;B=B.split(";");for(var V,e,X={},Y=0;Y<B.length;Y++)if(V=B[Y])e=V.split(":"),e.length>1&&(V=e[0].trim(),e=e.slice(1).join(":"),R&&(e=this._replaceInitialOrInherit(V,e)),X[V]=e);return X};
_.p._invalidateMixinEntry=function(B){if(n85)for(var R in B.dependants)R!==this._currentElement&&n85(R)};
_.p._produceCssProperties=function(B,R,V,e,X){var Y=this;V&&N2I(V,function(z,T){T&&Y._map.get(T)&&(e="@apply "+T+";")});
if(!e)return B;var t=this._consumeCssProperties(""+e,X);X=B.slice(0,B.indexOf("--"));var b=t=this._cssTextToMap(t,!0),J=this._map.get(R),G=J&&J.properties;G?b=Object.assign(Object.create(G),t):this._map.set(R,b);var y=[],S,M=!1;for(S in b){var f=t[S];f===void 0&&(f="initial");!G||S in G||(M=!0);y.push(R+"_-_"+S+": "+f)}M&&this._invalidateMixinEntry(J);J&&(J.properties=b);V&&(X=B+";"+X);return X+y.join("; ")+";"};
Gs.prototype.detectMixin=Gs.prototype.detectMixin;Gs.prototype.transformStyle=Gs.prototype.JSC$9083_transformStyle;Gs.prototype.transformCustomStyle=Gs.prototype.transformCustomStyle;Gs.prototype.transformRules=Gs.prototype.transformRules;Gs.prototype.transformRule=Gs.prototype.transformRule;Gs.prototype.transformTemplate=Gs.prototype.transformTemplate;Gs.prototype._separator="_-_";Object.defineProperty(Gs.prototype,"invalidCallback",{get:function(){return n85},
set:function(B){n85=B}});var yk=new Gs,O0h=function(){this.customStyleInterface=null;yk.invalidCallback=pSI},SH=function(B){!B.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(B.customStyleInterface=window.ShadyCSS.CustomStyleInterface,B.customStyleInterface.transformCallback=function(R){yk.transformCustomStyle(R)},B.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){B.customStyleInterface.enqueued&&B.flushCustomStyles()})})};
_.p=O0h.prototype;_.p.prepareTemplate=function(B,R){SH(this);GTI(B)===""&&(XSp[R]=B,R=yk.transformTemplate(B,R),B._styleAst=R)};
_.p.flushCustomStyles=function(){SH(this);if(this.customStyleInterface){var B=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var R=0;R<B.length;R++){var V=this.customStyleInterface.getStyleForCustomStyle(B[R]);V&&yk.transformCustomStyle(V)}this.customStyleInterface.enqueued=!1}}};
_.p.styleSubtree=function(B,R){SH(this);R&&IEN(B,R);if(B.shadowRoot)for(this.styleElement(B),B=B.shadowRoot.children||B.shadowRoot.childNodes,R=0;R<B.length;R++)this.styleSubtree(B[R]);else for(B=B.children||B.childNodes,R=0;R<B.length;R++)this.styleSubtree(B[R])};
_.p.styleElement=function(B){SH(this);var R=B.localName,V;R?R.indexOf("-")>-1?V=R:V=B.getAttribute&&B.getAttribute("is")||"":V=B.is;R=XSp[V];if(!(R&&GTI(R)!==""||!R||YTq(R))){if(YTq(R)||R._applyShimValidatingVersion!==R._applyShimNextVersion)this.prepareTemplate(R,V),tVN(R);if(B=B.shadowRoot)if(B=B.querySelector("style"))B.__cssRules=R._styleAst,B.textContent=biq(R._styleAst)}};
_.p.styleDocument=function(B){SH(this);this.styleSubtree(document.body,B)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var H9=new O0h,oGo=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(B,R){H9.flushCustomStyles();H9.prepareTemplate(B,R)},
prepareTemplateStyles:function(B,R,V){window.ShadyCSS.prepareTemplate(B,R,V)},
prepareTemplateDom:function(){},
styleSubtree:function(B,R){H9.flushCustomStyles();H9.styleSubtree(B,R)},
styleElement:function(B){H9.flushCustomStyles();H9.styleElement(B)},
styleDocument:function(B){H9.flushCustomStyles();H9.styleDocument(B)},
getComputedStyleValue:function(B,R){return ExA(B,R)},
flushCustomStyles:function(){H9.flushCustomStyles()},
nativeCss:WNq,nativeShadow:sVd,cssBuild:Zp,disableRuntime:GpG};oGo&&(window.ShadyCSS.CustomStyleInterface=oGo)}window.ShadyCSS.ApplyShim=yk;var B6a;B6a=window.ShadyCSS;_.M7=$X(function(B){B=lIG(uC(B));var R=Xza?B:rEb(B),V=g8J(R),e={x:"pan-x",y:"pan-y",none:"none",all:"auto"};B=function(){return R.call(this)||this};
_.l(B,R);B.prototype.created=function(){};
B.prototype.__attributeReaction=function(X,Y,t){(this.__dataAttributes&&this.__dataAttributes[X]||X==="disable-upgrade")&&this.attributeChangedCallback(X,Y,t,null)};
B.prototype.setAttribute=function(X,Y){if(va5&&!this._legacyForceObservedAttributes){var t=this.getAttribute(X);R.prototype.setAttribute.call(this,X,Y);this.__attributeReaction(X,t,String(Y))}else R.prototype.setAttribute.call(this,X,Y)};
B.prototype.removeAttribute=function(X){if(va5&&!this._legacyForceObservedAttributes){var Y=this.getAttribute(X);R.prototype.removeAttribute.call(this,X);this.__attributeReaction(X,Y,null)}else R.prototype.removeAttribute.call(this,X)};
B.prototype._enableProperties=function(){this.__isUpgradeDisabled||R.prototype._enableProperties.call(this)};
B.prototype._canApplyPropertyDefault=function(X){return R.prototype._canApplyPropertyDefault.call(this,X)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(X))};
B.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(R.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
B.prototype.attached=function(){};
B.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(R.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
B.prototype.detached=function(){};
B.prototype.attributeChangedCallback=function(X,Y,t,b){Y!==t&&(X=="disable-upgrade"?this.__isUpgradeDisabled&&t==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.NK)(this).isConnected&&this.connectedCallback()):(R.prototype.attributeChangedCallback.call(this,X,Y,t,b),this.attributeChanged(X,Y,t)))};
B.prototype.attributeChanged=function(){};
B.prototype._initializeProperties=function(){if(vw&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var X=Object.getPrototypeOf(this);X.hasOwnProperty("__hasRegisterFinished")||(this._registered(),X.__hasRegisterFinished=!0);R.prototype._initializeProperties.call(this);this.root=this;this.created();va5&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
B.prototype._takeAttributes=function(){for(var X=this.attributes,Y=0,t=X.length;Y<t;Y++){var b=X[Y];this.__attributeReaction(b.name,null,b.value)}};
B.prototype._registered=function(){};
B.prototype.ready=function(){this._ensureAttributes();R.prototype.ready.call(this)};
B.prototype._ensureAttributes=function(){};
B.prototype._applyListeners=function(){};
B.prototype.serialize=function(X){return this._serializeValue(X)};
B.prototype.deserialize=function(X,Y){return this._deserializeValue(X,Y)};
B.prototype.reflectPropertyToAttribute=function(X,Y,t){this._propertyToAttribute(X,Y,t)};
B.prototype.serializeValueToAttribute=function(X,Y,t){this._valueToNodeAttribute(t||this,X,Y)};
B.prototype.extend=function(X,Y){if(!X||!Y)return X||Y;for(var t=Object.getOwnPropertyNames(Y),b=0,J=void 0;b<t.length&&(J=t[b]);b++){var G=Object.getOwnPropertyDescriptor(Y,J);G&&Object.defineProperty(X,J,G)}return X};
B.prototype.mixin=function(X,Y){for(var t in Y)X[t]=Y[t];return X};
B.prototype.chainObject=function(X,Y){X&&Y&&X!==Y&&(X.__proto__=Y);return X};
B.prototype.instanceTemplate=function(X){X=this.constructor._contentForTemplate(X);return document.importNode(X,!0)};
B.prototype.fire=function(X,Y,t){t=t||{};Y=Y===null||Y===void 0?{}:Y;X=new Event(X,{bubbles:t.bubbles===void 0?!0:t.bubbles,cancelable:!!t.cancelable,composed:t.composed===void 0?!0:t.composed});X.detail=Y;(0,_.NK)(t.node||this).dispatchEvent(X);return X};
B.prototype.listen=function(X,Y,t){X=X||this;var b=this.__boundListeners||(this.__boundListeners=new WeakMap),J=b.get(X);J||(J={},b.set(X,J));b=Y+t;J[b]||(J[b]=this._addMethodEventListenerToNode(X,Y,t,this))};
B.prototype.unlisten=function(X,Y,t){X=X||this;var b=this.__boundListeners&&this.__boundListeners.get(X);t=Y+t;var J=b&&b[t];J&&(this._removeEventListenerFromNode(X,Y,J),b[t]=null)};
B.prototype.setScrollDirection=function(X,Y){_.T8(Y||this,e[X]||"auto")};
B.prototype.$$=function(X){return this.root.querySelector(X)};
B.prototype.distributeContent=function(){var X=_.Mr(this);window.ShadyDOM&&X.shadowRoot&&ShadyDOM.flush()};
B.prototype.getEffectiveChildNodes=function(){return _.Mr(this).getEffectiveChildNodes()};
B.prototype.queryDistributedElements=function(X){return _.Mr(this).queryDistributedElements(X)};
B.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(X){return X.nodeType===Node.ELEMENT_NODE})};
B.prototype.getEffectiveTextContent=function(){for(var X=this.getEffectiveChildNodes(),Y=[],t=0,b;b=X[t];t++)b.nodeType!==Node.COMMENT_NODE&&Y.push(b.textContent);return Y.join("")};
B.prototype.queryEffectiveChildren=function(X){return(X=this.queryDistributedElements(X))&&X[0]};
B.prototype.queryAllEffectiveChildren=function(X){return this.queryDistributedElements(X)};
B.prototype.getContentChildNodes=function(X){return(X=this.root.querySelector(X||"slot"))?_.Mr(X).getDistributedNodes():[]};
B.prototype.getContentChildren=function(X){return this.getContentChildNodes(X).filter(function(Y){return Y.nodeType===Node.ELEMENT_NODE})};
B.prototype.isLightDescendant=function(X){return this!==X&&(0,_.NK)(this).contains(X)&&(0,_.NK)(this).getRootNode()===(0,_.NK)(X).getRootNode()};
B.prototype.isLocalDescendant=function(X){return this.root===(0,_.NK)(X).getRootNode()};
B.prototype.scopeSubtree=function(X,Y){return g1K(X,Y===void 0?!1:Y)};
B.prototype.getComputedStyleValue=function(X){return B6a.getComputedStyleValue(this,X)};
B.prototype.debounce=function(X,Y,t){this._debouncers=this._debouncers||{};return this._debouncers[X]=_.p8(this._debouncers[X],t>0?_.mB.after(t):x_,Y.bind(this))};
B.prototype.isDebouncerActive=function(X){this._debouncers=this._debouncers||{};X=this._debouncers[X];return!(!X||!X.isActive())};
B.prototype.flushDebouncer=function(X){this._debouncers=this._debouncers||{};(X=this._debouncers[X])&&X.flush()};
B.prototype.cancelDebouncer=function(X){this._debouncers=this._debouncers||{};(X=this._debouncers[X])&&X.cancel()};
B.prototype.async=function(X,Y){return Y>0?_.mB.run(X.bind(this),Y):~x_.run(X.bind(this))};
B.prototype.cancelAsync=function(X){X<0?x_.cancel(~X):_.mB.cancel(X)};
B.prototype.create=function(X,Y){X=document.createElement(X);if(Y)if(X.setProperties)X.setProperties(Y);else for(var t in Y)X[t]=Y[t];return X};
B.prototype.elementMatches=function(X,Y){return IIG(Y||this,X)};
B.prototype.toggleAttribute=function(X,Y){var t=this;arguments.length===3&&(t=arguments[2]);arguments.length==1&&(Y=!t.hasAttribute(X));if(Y)return(0,_.NK)(t).setAttribute(X,""),!0;(0,_.NK)(t).removeAttribute(X);return!1};
B.prototype.toggleClass=function(X,Y,t){t=t||this;arguments.length==1&&(Y=!t.classList.contains(X));Y?t.classList.add(X):t.classList.remove(X)};
B.prototype.transform=function(X,Y){Y=Y||this;Y.style.webkitTransform=X;Y.style.transform=X};
B.prototype.translate3d=function(X,Y,t,b){this.transform("translate3d("+X+","+Y+","+t+")",b||this)};
B.prototype.arrayDelete=function(X,Y){if(Array.isArray(X)){if(Y=X.indexOf(Y),Y>=0)return X.splice(Y,1)}else if(Y=Jm(this,X).indexOf(Y),Y>=0)return this.splice(X,Y,1);return null};
B.prototype._logger=function(X,Y){Array.isArray(Y)&&Y.length===1&&Array.isArray(Y[0])&&(Y=Y[0]);switch(X){case "log":case "warn":case "error":console[X].apply(console,_.MI(Y))}};
B.prototype._log=function(){this._logger("log",_.HB.apply(0,arguments))};
B.prototype._warn=function(){this._logger("warn",_.HB.apply(0,arguments))};
B.prototype._error=function(){this._logger("error",_.HB.apply(0,arguments))};
B.prototype._logf=function(X){return["[%s::%s]",this.is,X].concat(_.MI(_.HB.apply(1,arguments)))};
_.mh.Object.defineProperties(B.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var X=(0,_.NK)(this).getRootNode();return X instanceof DocumentFragment?X.host:X}}});
_.mh.Object.defineProperties(B,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return va5&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],F3_(this.prototype)),this.__observedAttributes):V.call(this).concat("disable-upgrade")}}});
B.prototype.is="";return B});Polymer.FlattenedNodesObserver=Lyh;Polymer.DomApi=cE4;Polymer.EventApi=Uj;Polymer.dom=_.Mr;Polymer.dom.matchesSelector=IIG;Polymer.dom.flush=_.bx;Polymer.dom.addDebouncer=_.Y6;Polymer.DirMixin=rEb;Polymer.RenderStatus={beforeNextRender:_.s7x,afterNextRender:_.gB,flush:function(){for(;cku.length||rB.length;)qyu(cku),qyu(rB);Fi=!1}};Polymer.LegacyElementMixin=_.M7;var RAb;RAb=tf._mutablePropertyChange;var VuG={properties:{mutableData:Boolean},_shouldPropertyChange:function(B,R,V){return RAb(this,B,R,V,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(B,R,V){return RAb(this,B,R,V,!0)}};
Polymer.OptionalMutableDataBehavior=VuG;var ynx={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Dlq={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},kT_=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Dlq),eA2=(0,_.M7)(HTMLElement),WZN=function(B,R){B||console.warn("Polymer.Class requires `info` argument");R=R?R(eA2):eA2;R=foA(B,R,B.behaviors);R.is=R.prototype.is=
B.is;return R};Polymer.Class=WZN;Polymer.mixinBehaviors=function(B,R){return foA({},(0,_.M7)(R),B)};
Polymer.GenerateClassFromInfo=foA;_.Sm=function(B){var R=typeof B==="function"?B:_.Sm.Class(B);B._legacyForceObservedAttributes&&(R.prototype._legacyForceObservedAttributes=B._legacyForceObservedAttributes);customElements.define(R.is,R);return R};
_.Sm.Class=WZN;Polymer._polymerFn=_.Sm;var XkG=window.onLegacyPolymerFunctionDefinedCallback;XkG&&XkG();var J5_={templatize:function(B,R){this._templatizerTemplate=B;this.ctor=Eq(B,this,{mutableData:!!R,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(B){return new this.ctor(B)},
modelForElement:function(B){return v1I(this._templatizerTemplate,B)}};Polymer.Templatizer=J5_;_.k6=(0,_.M7)(HTMLElement).prototype;Polymer.Base=_.k6;var zxI=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.$_=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.l(_.$_,PolymerFakeBaseClass);var Cn=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.l(Cn,PolymerFakeBaseClass);var aoq=Symbol("Nd"),Io_=[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 pka=pka||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Y$4;(function(B){function R(g,Vu,n){var Yd=m.get(g);if(!Yd){if(!n)return;Yd=new Q;m.set(g,Yd)}g=Yd.get(Vu);if(!g){if(!n)return;g=new Q;Yd.set(Vu,g)}return g}
function V(g,Vu,n){if(e(g,Vu,n))return!0;Vu=M(Vu);return Vu!==null?V(g,Vu,n):!1}
function e(g,Vu,n){Vu=R(Vu,n,!1);return Vu===void 0?!1:!!Vu.has(g)}
function X(g,Vu,n){if(e(g,Vu,n))return Y(g,Vu,n);Vu=M(Vu);if(Vu!==null)return X(g,Vu,n)}
function Y(g,Vu,n){Vu=R(Vu,n,!1);if(Vu!==void 0)return Vu.get(g)}
function t(g,Vu){var n=b(g,Vu);g=M(g);if(g===null)return n;var Yd=t(g,Vu);if(Yd.length<=0)return n;if(n.length<=0)return Yd;Vu=new q;g=[];n=_.h(n);for(var kd=n.next();!kd.done;kd=n.next())kd=kd.value,Vu.has(kd)||(Vu.add(kd),g.push(kd));n=_.h(Yd);for(Yd=n.next();!Yd.done;Yd=n.next())Yd=Yd.value,Vu.has(Yd)||(Vu.add(Yd),g.push(Yd));return g}
function b(g,Vu){g=R(g,Vu,!1);var n=[];g&&g.forEach(function(Yd,kd){return n.push(kd)});
return n}
function J(g){return g===void 0}
function G(g){return typeof g==="object"?g!==null:typeof g==="function"}
function y(g){return typeof g==="function"}
function S(g){return typeof g==="symbol"?g:String(g)}
function M(g){var Vu=Object.getPrototypeOf(g);if(typeof g!=="function"||g===L||Vu!==L)return Vu;var n=Object.getPrototypeOf(g.prototype);if(n==null||n===Object.prototype)return Vu;n=n.constructor;return typeof n!=="function"||n===g?Vu:n}
function f(){function g(){this._keys=[];this._values=[];this._cache=Vu}
var Vu={};g.prototype={get size(){return this._keys.length},has:function(n){return n===this._cache?!0:this._find(n)>=0?(this._cache=n,!0):!1},
get:function(n){var Yd=this._find(n);if(Yd>=0)return this._cache=n,this._values[Yd]},
set:function(n,Yd){this.delete(n);this._keys.push(n);this._values.push(Yd);this._cache=n;return this},
delete:function(n){n=this._find(n);return n>=0?(this._keys.splice(n,1),this._values.splice(n,1),this._cache=Vu,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=Vu},
forEach:function(n){for(var Yd=this.size,kd=0;kd<Yd;++kd){var a5=this._keys[kd],lo=this._values[kd];this._cache=a5;n.call(this,lo,a5,this)}},
_find:function(n){for(var Yd=this._keys,kd=Yd.length,a5=0;a5<kd;++a5)if(Yd[a5]===n)return a5;return-1}};
return g}
function z(){function g(){this._map=new Q}
g.prototype={get size(){return this._map.length},has:function(Vu){return this._map.has(Vu)},
add:function(Vu){this._map.set(Vu,Vu);return this},
delete:function(Vu){return this._map.delete(Vu)},
clear:function(){this._map.clear()},
forEach:function(Vu,n){this._map.forEach(Vu,n)}};
return g}
function T(){function g(){this._key=n()}
function Vu(vd,cd){for(var ES=0;ES<cd;++ES)vd[ES]=Math.random()*255|0}
function n(){do{if(kd)var vd=kd.randomBytes(16);else typeof Uint8Array==="function"?(vd=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(vd):Vu(vd,16)):(vd=Array(16),Vu(vd,16));vd[6]=vd[6]&79|64;vd[8]=vd[8]&191|128;for(var cd="",ES=0;ES<16;++ES){var $d=vd[ES];if(ES===4||ES===6||ES===8)cd+="-";$d<16&&(cd+="0");cd+=$d.toString(16).toLowerCase()}vd="@@WeakMap@@"+cd}while(a5.call(lo,vd));lo[vd]=!0;return vd}
function Yd(vd,cd){if(!a5.call(vd,io)){if(!cd)return;Object.defineProperty(vd,io,{value:Object.create(null)})}return vd[io]}
var kd=typeof global!=="undefined"&&typeof pka==="object"&&typeof require==="function"&&require("crypto"),a5=Object.prototype.hasOwnProperty,lo={},io=n();g.prototype={has:function(vd){return(vd=Yd(vd,!1))?this._key in vd:!1},
get:function(vd){if(vd=Yd(vd,!1))return vd[this._key]},
set:function(vd,cd){Yd(vd,!0)[this._key]=cd;return this},
delete:function(vd){return(vd=Yd(vd,!1))&&this._key in vd?delete vd[this._key]:!1},
clear:function(){this._key=n()}};
return g}
var L=Object.getPrototypeOf(Function),Q=typeof Map==="function"?Map:f(),q=typeof Set==="function"?Set:z(),m=new (typeof WeakMap==="function"?WeakMap:T());B.decorate=function(g,Vu,n,Yd){if(J(Yd)){if(J(n)){if(!Array.isArray(g))throw new TypeError;if(!y(Vu))throw new TypeError;for(n=g.length-1;n>=0;--n)if(Yd=(0,g[n])(Vu),!J(Yd)){if(!y(Yd))throw new TypeError;Vu=Yd}return Vu}if(!Array.isArray(g))throw new TypeError;if(!G(Vu))throw new TypeError;n=S(n);for(Yd=g.length-1;Yd>=0;--Yd)(0,g[Yd])(Vu,n)}else{if(Array.isArray(g))if(G(Vu)){if(J(n))throw new TypeError;
if(!G(Yd))throw new TypeError;}else throw new TypeError;else throw new TypeError;n=S(n);for(var kd=g.length-1;kd>=0;--kd){var a5=(0,g[kd])(Vu,n,Yd);if(!J(a5)){if(!G(a5))throw new TypeError;Yd=a5}}return Yd}};
B.metadata=function(g,Vu){return function(n,Yd){if(J(Yd)){if(!y(n))throw new TypeError;R(n,void 0,!0).set(g,Vu)}else{if(!G(n))throw new TypeError;Yd=S(Yd);R(n,Yd,!0).set(g,Vu)}}};
B.defineMetadata=function(g,Vu){var n;if(G(Vu))J(n)||(n=S(n));else throw new TypeError;R(Vu,n,!0).set("parameters",g)};
B.hasMetadata=function(g,Vu,n){if(G(Vu))J(n)||(n=S(n));else throw new TypeError;return V(g,Vu,n)};
B.hasOwnMetadata=function(g,Vu,n){if(G(Vu))J(n)||(n=S(n));else throw new TypeError;return e(g,Vu,n)};
B.getMetadata=function(g,Vu,n){if(G(Vu))J(n)||(n=S(n));else throw new TypeError;return X(g,Vu,n)};
B.getOwnMetadata=function(g,Vu,n){if(G(Vu))J(n)||(n=S(n));else throw new TypeError;return Y(g,Vu,n)};
B.getMetadataKeys=function(g,Vu){if(G(g))J(Vu)||(Vu=S(Vu));else throw new TypeError;return t(g,Vu)};
B.getOwnMetadataKeys=function(g,Vu){if(G(g))J(Vu)||(Vu=S(Vu));else throw new TypeError;return b(g,Vu)};
B.deleteMetadata=function(g,Vu,n){if(G(Vu))J(n)||(n=S(n));else throw new TypeError;var Yd=R(Vu,n,!1);if(!J(Yd)){if(!Yd.delete(g))return!1;if(Yd.size>0)return!0;g=m.get(Vu);g.delete(n);if(g.size>0)return!0;m.delete(Vu);return!0}};
(function(g){if(typeof g.Reflect!=="undefined"){if(g.Reflect!==B)for(var Vu in B)g.Reflect[Vu]=B[Vu]}else g.Reflect=B})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Y$4||(Y$4={}));var cdo=self;var hAT=[0,_.gX,_.mg,_.gX];var tuS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(tuS,_.qS);var WP4=_.uI(tuS,[0,_.ttS,_.$U,hAT,_.mg,_.Pb]);_.eY(_.Pw,_.Hn);_.p=_.Pw.prototype;_.p.start=function(){this.stop();this.usingListeners_=!1;var B=b7T(this),R=Jsv(this);B&&!R&&this.JSC$9126_win_.mozRequestAnimationFrame?(this.JSC$9126_id_=_.G2(this.JSC$9126_win_,"MozBeforePaint",this.callback_),this.JSC$9126_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9126_id_=B&&R?B.call(this.JSC$9126_win_,this.callback_):this.JSC$9126_win_.setTimeout(UTo(this.callback_),20)};
_.p.stop=function(){if(this.isActive()){var B=b7T(this),R=Jsv(this);B&&!R&&this.JSC$9126_win_.mozRequestAnimationFrame?jR(this.JSC$9126_id_):B&&R?R.call(this.JSC$9126_win_,this.JSC$9126_id_):this.JSC$9126_win_.clearTimeout(this.JSC$9126_id_)}this.JSC$9126_id_=null};
_.p.fire=function(){this.stop();this.JSC$9128_doAction_()};
_.p.isActive=function(){return this.JSC$9126_id_!=null};
_.p.JSC$9128_doAction_=function(){this.usingListeners_&&this.JSC$9126_id_&&jR(this.JSC$9126_id_);this.JSC$9126_id_=null;this.JSC$9126_listener_.call(this.handler_,_.VG())};
_.p.disposeInternal=function(){this.stop();_.Pw.superClass_.disposeInternal.call(this)};
var b7T=function(B){B=B.JSC$9126_win_;return B.requestAnimationFrame||B.webkitRequestAnimationFrame||B.mozRequestAnimationFrame||B.oRequestAnimationFrame||B.msRequestAnimationFrame||null},Jsv=function(B){B=B.JSC$9126_win_;
return B.cancelAnimationFrame||B.cancelRequestAnimationFrame||B.webkitCancelRequestAnimationFrame||B.mozCancelRequestAnimationFrame||B.oCancelRequestAnimationFrame||B.msCancelRequestAnimationFrame||null};_.o7=function(B,R,V){_.Hn.call(this);this.JSC$9129_listener_=V!=null?B.bind(V):B;this.JSC$9129_interval_=R;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9129_timer_=null};
_.l(_.o7,_.Hn);_.p=_.o7.prototype;_.p.fire=function(B){this.args_=arguments;this.JSC$9129_timer_||this.pauseCount_?this.shouldFire_=!0:jr5(this)};
_.p.stop=function(){this.JSC$9129_timer_&&(_.R5.clearTimeout(this.JSC$9129_timer_),this.JSC$9129_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.p.pause=function(){this.pauseCount_++};
_.p.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9129_timer_||(this.shouldFire_=!1,jr5(this))};
_.p.disposeInternal=function(){_.Hn.prototype.disposeInternal.call(this);this.stop()};
var jr5=function(B){B.JSC$9129_timer_=lK(function(){B.JSC$9129_timer_=null;B.shouldFire_&&!B.pauseCount_&&(B.shouldFire_=!1,jr5(B))},B.JSC$9129_interval_);
var R=B.args_;B.args_=null;B.JSC$9129_listener_.apply(null,R)};var UR2=function(B,R){this.childIterator_=B[_.R5.Symbol.iterator]();this.mapFn_=R};
UR2.prototype[Symbol.iterator]=function(){return this};
UR2.prototype.next=function(){var B=this.childIterator_.next();return{value:B.done?void 0:this.mapFn_.call(void 0,B.value),done:B.done}};
var N6o=function(B,R){return new UR2(B,R)};var Gza={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 asd=function(B){var R=ys_(B);if(!R)throw Error("Rd`"+B);return R},ys_=function(B){var R={};
B=String(B);var V=B.charAt(0)=="#"?B:"#"+B;if(S$a.test(V))return R.hex=kDY(V),R.type="hex",R;V=xZu(B);return V.length?(R.hex=RnA(V[0],V[1],V[2]),R.type="rgb",R):Gza&&(B=Gza[B.toLowerCase()])?(R.hex=B,R.type="named",R):null},H7v=/#(.)(.)(.)/,kDY=function(B){if(!S$a.test(B))throw Error("Td`"+B);
B.length==4&&(B=B.replace(H7v,"#$1$1$2$2$3$3"));return B.toLowerCase()},dZK=function(B){B=kDY(B);
B=parseInt(B.slice(1),16);return[B>>16,B>>8&255,B&255]},RnA=function(B,R,V){B=Number(B);
R=Number(R);V=Number(V);if(B!=(B&255)||R!=(R&255)||V!=(V&255))throw Error("Ud`"+B+"`"+R+"`"+V);R=B<<16|R<<8|V;return B<16?"#"+(16777216|R).toString(16).slice(1):"#"+R.toString(16)},S$a=/^#(?:[0-9a-f]{3}){1,2}$/i,Mu4=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,xZu=function(B){var R=B.match(Mu4);
if(R){B=Number(R[1]);var V=Number(R[2]);R=Number(R[3]);if(B>=0&&B<=255&&V>=0&&V<=255&&R>=0&&R<=255)return[B,V,R]}return[]};var kzh={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},a7=kzh;a7=kzh;var $BA,DR2,fz4;$BA=function(B,R){switch(R){case 1:return B%4!=0||B%100==0&&B%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
DR2=function(B,R,V,e,X){B=new Date(B,R,V);X=X||0;return B.valueOf()+(((e!==void 0?e:3)-X+7)%7-((B.getDay()+6)%7-X+7)%7)*864E5};
_.Dr=function(B,R,V){typeof B==="number"?(this.date=fz4(B,R||0,V||1),lzG(this,V||1)):_.Xa(B)?(this.date=fz4(B.getFullYear(),B.getMonth(),B.getDate()),lzG(this,B.getDate())):(this.date=new Date(_.VG()),B=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),lzG(this,B))};
fz4=function(B,R,V){R=new Date(B,R,V);B>=0&&B<100&&R.setFullYear(R.getFullYear()-1900);return R};
_.p=_.Dr.prototype;_.p.firstDayOfWeek_=a7.FIRSTDAYOFWEEK;_.p.firstWeekCutOffDay_=a7.FIRSTWEEKCUTOFFDAY;_.p.clone=function(){var B=new _.Dr(this.date);B.firstDayOfWeek_=this.firstDayOfWeek_;B.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return B};
_.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(B){this.date=new Date(B.getFullYear(),B.getMonth(),B.getDate())};
_.p.setFullYear=function(B){this.date.setFullYear(B)};
_.p.setYear=function(B){this.setFullYear(B)};
_.p.setMonth=function(B){this.date.setMonth(B)};
_.p.setDate=function(B){this.date.setDate(B)};
_.p.setTime=function(B){this.date.setTime(B)};
_.p.setUTCFullYear=function(B){this.date.setUTCFullYear(B)};
_.p.setUTCMonth=function(B){this.date.setUTCMonth(B)};
_.p.setUTCDate=function(B){this.date.setUTCDate(B)};
_.p.add=function(B){if(B.years||B.months){var R=this.getMonth()+B.months+B.years*12,V=this.getYear()+Math.floor(R/12);R%=12;R<0&&(R+=12);var e=Math.min($BA(V,R),this.getDate());this.setDate(1);this.setFullYear(V);this.setMonth(R);this.setDate(e)}B.days&&(V=this.getYear(),R=V>=0&&V<=99?-1900:0,B=new Date((new Date(V,this.getMonth(),this.getDate(),12)).getTime()+B.days*864E5),this.setDate(1),this.setFullYear(B.getFullYear()+R),this.setMonth(B.getMonth()),this.setDate(B.getDate()),lzG(this,B.getDate()))};
_.p.JSC$9142_toIsoString=function(B){var R=this.getFullYear(),V=R<0?"-":R>=1E4?"+":"";return[V+_.Rp(Math.abs(R),V?6:4),_.Rp(this.getMonth()+1,2),_.Rp(this.getDate(),2)].join(B?"-":"")};
_.p.equals=function(B){return!(!B||this.getYear()!=B.getYear()||this.getMonth()!=B.getMonth()||this.getDate()!=B.getDate())};
_.p.toString=function(){return this.JSC$9142_toIsoString()};
var lzG=function(B,R){B.getDate()!=R&&B.date.setUTCHours(B.date.getUTCHours()+(B.getDate()<R?1:-1))};
_.Dr.prototype.valueOf=function(){return this.date.valueOf()};var lx=function(B,R,V,e,X){this.reversed=!!R;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!V;B&&f8(this,B,e);this.depth=X!=void 0?X:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.eY(lx,eP);var f8=function(B,R,V,e){if(B.node=R)B.tagType=typeof V==="number"?V:B.node.nodeType!=1?0:B.reversed?-1:1;typeof e==="number"&&(B.depth=e)};
_.p=lx.prototype;_.p.JSC$9157_copyFrom=function(B){this.node=B.node;this.tagType=B.tagType;this.depth=B.depth;this.reversed=B.reversed;this.constrained=B.constrained};
_.p.clone=function(){return new lx(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 XC;var B=this.node;var R=this.reversed?-1:1;if(this.tagType==R){var V=this.reversed?B.lastChild:B.firstChild;V?f8(this,V):f8(this,B,R*-1)}else(V=this.reversed?B.previousSibling:B.nextSibling)?f8(this,V):f8(this,B.parentNode,R*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(B=this.node)?pg(B):XC};
_.p.equals=function(B){return B.node==this.node&&(!this.node||B.tagType==this.tagType)};
_.p.splice=function(B){var R=this.node,V=this.reversed?1:-1;this.tagType==V&&(this.tagType=V*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;lx.prototype.next.call(this);this.reversed=!this.reversed;V=_.R4(arguments[0])?arguments[0]:arguments;for(var e=V.length-1;e>=0;e--)_.xP(V[e],R);_.UJ(R)};var zA5=function(){},zs=function(B){for(var R=[],V=B.getTextRangeCount(),e=0;e<V;e++)R.push(B.getTextRange(e));
return R};
zA5.prototype.isReversed=function(){return!1};
zA5.prototype.getWindow=function(){return lg(_.zg(this.JSC$9159_getStartNode()))};
var az4=function(B,R){lx.call(this,B,R,!0)};
_.eY(az4,lx);var ac=function(B,R,V,e,X){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!X;if(B){this.startNode_=B;this.startOffset_=R;this.endNode_=V;this.endOffset_=e;if(B.nodeType==1&&B.tagName!="BR")if(B=B.childNodes,R=B[R])this.startNode_=R,this.startOffset_=0;else{B.length&&(this.startNode_=_.qY(B));var Y=!0}V.nodeType==1&&((this.endNode_=V.childNodes[e])?this.endOffset_=0:this.endNode_=V)}lx.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);Y&&this.next()};
_.eY(ac,az4);_.p=ac.prototype;_.p.JSC$9165_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()?XC:ac.superClass_.next.call(this)};
_.p.JSC$9157_copyFrom=function(B){this.startNode_=B.startNode_;this.endNode_=B.endNode_;this.startOffset_=B.startOffset_;this.endOffset_=B.endOffset_;this.isReversed_=B.isReversed_;ac.superClass_.JSC$9157_copyFrom.call(this,B)};
_.p.clone=function(){var B=new ac(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);B.JSC$9157_copyFrom(this);return B};var dRv=function(){};
dRv.prototype.__iterator__=function(){return new ac(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var dp=function(B){this.range_=B};
_.eY(dp,dRv);var wkR=function(B){var R=_.zg(B).createRange();if(B.nodeType==3)R.setStart(B,0),R.setEnd(B,B.length);else if(dE(B)||B.nodeType==3){for(var V,e=B;(V=e.firstChild)&&(dE(V)||V.nodeType==3);)e=V;R.setStart(e,0);for(e=B;(V=e.lastChild)&&(dE(V)||V.nodeType==3);)e=V;R.setEnd(e,e.nodeType==1?e.childNodes.length:e.length)}else V=B.parentNode,B=Array.prototype.indexOf.call(V.childNodes,B),R.setStart(V,B),R.setEnd(V,B+1);return R},T6S=function(B,R,V,e){var X=_.zg(B).createRange();
X.setStart(B,R);X.setEnd(V,e);return X};
_.p=dp.prototype;_.p.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.p.getContainer=function(){return this.range_.commonAncestorContainer};
_.p.compareBrowserRangeEndpoints=function(B,R,V){return this.range_.compareBoundaryPoints(V==1?R==1?_.R5.Range.START_TO_START:_.R5.Range.START_TO_END:R==1?_.R5.Range.END_TO_START:_.R5.Range.END_TO_END,B)};
_.p.isCollapsed=function(){return this.range_.collapsed};
_.p.select=function(B){this.selectInternal(lg(_.zg(this.range_.startContainer)).getSelection(),B)};
_.p.selectInternal=function(B){B.removeAllRanges();B.addRange(this.range_)};
_.p.insertNode=function(B,R){var V=this.range_.cloneRange();V.collapse(R);V.insertNode(B);V.detach();return B};
_.p.collapse=function(B){this.range_.collapse(B)};_.eY(nn,dp);nn.prototype.selectInternal=function(B,R){!R||this.isCollapsed()?nn.superClass_.selectInternal.call(this,B,R):(B.collapse(this.range_.endContainer,this.range_.endOffset),B.extend(this.range_.startContainer,this.range_.startOffset))};_.eY(uA,dp);uA.prototype.compareBrowserRangeEndpoints=function(B,R,V){return uA.superClass_.compareBrowserRangeEndpoints.call(this,B,R,V)};
uA.prototype.selectInternal=function(B,R){R?B.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):B.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var xRb=function(B){return _.Wb?new uA(B):_.to?new nn(B):new dp(B)};var wp=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},LP2;
_.eY(wp,zA5);LP2=function(B,R){var V=new wp;V.browserRangeWrapper_=B;V.isReversed_=!!R;return V};
_.vGJ=function(B){B=_.Wb?new uA(wkR(B)):_.to?new nn(wkR(B)):new dp(wkR(B));return LP2(B)};
_.Ts=function(B,R,V,e){var X=new wp;X.isReversed_=KPo(B,R,V,e);if(_.m4(B)&&!dE(B)){var Y=B.parentNode;R=Array.prototype.indexOf.call(Y.childNodes,B);B=Y}_.m4(V)&&!dE(V)&&(Y=V.parentNode,e=Array.prototype.indexOf.call(Y.childNodes,V),V=Y);X.isReversed_?(X.startNode_=V,X.startOffset_=e,X.endNode_=B,X.endOffset_=R):(X.startNode_=B,X.startOffset_=R,X.endNode_=V,X.endOffset_=e);return X};
_.p=wp.prototype;_.p.clone=function(){var B=new wp;B.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();B.startNode_=this.startNode_;B.startOffset_=this.startOffset_;B.endNode_=this.endNode_;B.endOffset_=this.endOffset_;B.isReversed_=this.isReversed_;return B};
_.p.JSC$9159_getType=function(){return"text"};
_.p.getBrowserRangeObject=function(){return x6(this).range_};
_.p.getTextRangeCount=function(){return 1};
_.p.getTextRange=function(){return this};
var x6=function(B){var R;if(!(R=B.browserRangeWrapper_)){R=B.JSC$9159_getStartNode();var V=B.JSC$9159_getStartOffset(),e=B.JSC$9159_getEndNode(),X=B.JSC$9159_getEndOffset();R=_.Wb?new uA(T6S(R,V,e,X)):_.to?new nn(T6S(R,V,e,X)):new dp(T6S(R,V,e,X));R=B.browserRangeWrapper_=R}return R};
_.p=wp.prototype;_.p.getContainer=function(){return x6(this).getContainer()};
_.p.JSC$9159_getStartNode=function(){return this.startNode_||(this.startNode_=x6(this).range_.startContainer)};
_.p.JSC$9159_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=x6(this).range_.startOffset};
_.p.JSC$9159_getEndNode=function(){return this.endNode_||(this.endNode_=x6(this).range_.endContainer)};
_.p.JSC$9159_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=x6(this).range_.endOffset};
_.p.isReversed=function(){return this.isReversed_};
_.p.JSC$9159_containsRange=function(B,R){if(B.JSC$9159_getType()=="text"){var V=x6(this);B=x6(B);R=R&&!B.isCollapsed();B=B.range_;V=R?V.compareBrowserRangeEndpoints(B,0,1)>=0&&V.compareBrowserRangeEndpoints(B,1,0)<=0:V.compareBrowserRangeEndpoints(B,0,0)>=0&&V.compareBrowserRangeEndpoints(B,1,1)<=0}else V=!1;return V};
_.p.isCollapsed=function(){return x6(this).isCollapsed()};
_.p.JSC$9159_getText=function(){return x6(this).range_.toString()};
_.p.__iterator__=function(){return new ac(this.JSC$9159_getStartNode(),this.JSC$9159_getStartOffset(),this.JSC$9159_getEndNode(),this.JSC$9159_getEndOffset())};
_.p.select=function(){x6(this).select(this.isReversed_)};
_.p.JSC$9159_removeContents=function(){var B=x6(this).range_;B.extractContents();if(B.startContainer.hasChildNodes()&&(B=B.startContainer.childNodes[B.startOffset])){var R=B.previousSibling;Jro(B)==""&&_.UJ(B);R&&Jro(R)==""&&_.UJ(R)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.p.insertNode=function(B,R){B=x6(this).insertNode(B,R);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return B};
_.p.collapse=function(B){B=this.isReversed()?!B:B;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(B);B?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var IzG=function(){};
_.eY(IzG,zA5);IzG.prototype.JSC$9159_containsRange=function(B,R){var V=zs(this);B=zs(B);return(R?Fy:_.V5p)(B,function(e){return Fy(V,function(X){return X.JSC$9159_containsRange(e,R)})})};
IzG.prototype.insertNode=function(B,R){R?_.Tw(B,this.JSC$9159_getStartNode()):_.xP(B,this.JSC$9159_getEndNode());return B};var EG4,Qra=WH().JSC$7233_document_.documentElement;EG4=Qra.requestFullscreen?"fullscreenchange":Qra.webkitRequestFullscreen?"webkitfullscreenchange":Qra.mozRequestFullScreen?"mozfullscreenchange":Qra.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var q$5=function(){var B=WH().JSC$7233_document_;return!!(B.webkitIsFullScreen||B.mozFullScreen||B.msFullscreenElement||B.fullscreenElement)};var L8=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.eY(L8,IzG);_.p=L8.prototype;_.p.clone=function(){var B=new L8;B.browserRanges_=_.OS(this.browserRanges_);return B};
_.p.JSC$9159_getType=function(){return"mutli"};
_.p.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.p.getTextRangeCount=function(){return this.browserRanges_.length};
_.p.getTextRange=function(B){this.ranges_[B]||(this.ranges_[B]=LP2(xRb(this.browserRanges_[B])));return this.ranges_[B]};
_.p.getContainer=function(){if(!this.container_){for(var B=[],R=this.getTextRangeCount(),V=0;V<R;V++)B.push(this.getTextRange(V).getContainer());this.container_=XoG.apply(null,B)}return this.container_};
var v9=function(B){B.sortedRanges_||(B.sortedRanges_=zs(B),B.sortedRanges_.sort(function(R,V){var e=R.JSC$9159_getStartNode();R=R.JSC$9159_getStartOffset();var X=V.JSC$9159_getStartNode();V=V.JSC$9159_getStartOffset();return e==X&&R==V?0:KPo(e,R,X,V)?1:-1}));
return B.sortedRanges_};
_.p=L8.prototype;_.p.JSC$9159_getStartNode=function(){return v9(this)[0].JSC$9159_getStartNode()};
_.p.JSC$9159_getStartOffset=function(){return v9(this)[0].JSC$9159_getStartOffset()};
_.p.JSC$9159_getEndNode=function(){return _.qY(v9(this)).JSC$9159_getEndNode()};
_.p.JSC$9159_getEndOffset=function(){return _.qY(v9(this)).JSC$9159_getEndOffset()};
_.p.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.p.JSC$9159_getText=function(){return zs(this).map(function(B){return B.JSC$9159_getText()}).join("")};
_.p.__iterator__=function(){return new K8(this)};
_.p.select=function(){var B=this.getWindow().getSelection();B.removeAllRanges();for(var R=this.getTextRangeCount(),V=0;V<R;V++)B.addRange(this.getTextRange(V).getBrowserRangeObject())};
_.p.JSC$9159_removeContents=function(){zs(this).forEach(function(B){B.JSC$9159_removeContents()})};
_.p.collapse=function(B){if(!this.isCollapsed()){var R=B?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;R.collapse(B);this.ranges_=[R];this.sortedRanges_=[R];this.browserRanges_=[R.getBrowserRangeObject()]}};
var K8=function(B){this.iterators_=null;this.currentIdx_=0;B&&(this.iterators_=v9(B).map(function(R){return _.Bn5(R)}));
lx.call(this,B?this.JSC$9165_getStartNode():null,!1,!0)};
_.eY(K8,az4);_.p=K8.prototype;_.p.JSC$9165_getStartNode=function(){return this.iterators_[0].JSC$9165_getStartNode()};
_.p.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.p.next=function(){for(;this.currentIdx_<this.iterators_.length;){var B=this.iterators_[this.currentIdx_],R=B.next();if(R.done)this.currentIdx_++;else return f8(this,B.node,B.tagType,B.depth),R}return XC};
_.p.JSC$9157_copyFrom=function(B){this.iterators_=_.OS(B.iterators_);K8.superClass_.JSC$9157_copyFrom.call(this,B)};
_.p.clone=function(){var B=new K8(null);B.JSC$9157_copyFrom(this);return B};var cs4,KPo;_.k1=function(){var B=window.getSelection();return B&&cs4(B)};
cs4=function(B){var R=!1;if(B.createRange)try{var V=B.createRange()}catch(X){return null}else if(B.rangeCount){if(B.rangeCount>1){V=new L8;R=B.rangeCount;for(var e=0;e<R;e++)V.browserRanges_.push(B.getRangeAt(e));return V}V=B.getRangeAt(0);R=KPo(B.anchorNode,B.anchorOffset,B.focusNode,B.focusOffset)}else return null;return LP2(xRb(V),R)};
_.Ic=function(B,R){return _.Ts(B,R,B,R)};
_.Ej=function(B,R,V,e){return _.Ts(B,R,V,e)};
KPo=function(B,R,V,e){if(B==V)return e<R;var X;if(B.nodeType==1&&R)if(X=B.childNodes[R])B=X,R=0;else if(_.II(B,V))return!0;if(V.nodeType==1&&e)if(X=V.childNodes[e])V=X,e=0;else if(_.II(V,B))return!1;return(ezo(B,V)||R-e)>0};var Qk=function(){_.H_.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.M2)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.M2)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.M2)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.M2)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.M2)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.M2)(this.dispatchProgressEvent_,this)};
_.eY(Qk,_.H_);Qk.prototype.abort=function(){try{this.reader_.abort()}catch(B){throw new pf4(B,"aborting read");}};
Qk.prototype.getError=function(){return this.reader_.error&&new pf4(this.reader_.error,"reading file")};
Qk.prototype.dispatchProgressEvent_=function(B){this.dispatchEvent(new Y7T(B,this))};
Qk.prototype.disposeInternal=function(){Qk.superClass_.disposeInternal.call(this);delete this.reader_};
var i74=function(B){var R=new Qk,V=AsJ(R);R.reader_.readAsArrayBuffer(B);return V},sr5=function(B){var R=new Qk,V=AsJ(R);
R.reader_.readAsDataURL(B);return V},AsJ=function(B){var R=new Fd;
B.listen("loadend",_.JE(function(V,e){var X=e.reader_.result,Y=e.getError();X==null||Y?V.errback(Y):V.callback(X);e.dispose()},R,B));
return R};var q7=function(){_.H_.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9199_eventHandler_=new _.oL(this);this.JSC$9199_isInitialized_=!1};
_.eY(q7,_.H_);var FP2=new _.jI("d"),rso=new _.jI("beforedragstart"),gG4=new _.jI("dragstart"),Z7J=new _.jI("beforedragmove"),mR4=new _.jI("dragmove"),$Rh=new _.jI("beforedragend"),Cz2=new _.jI("dragend"),Pzb=new _.jI("e");q7.prototype.isDragging=function(){return!!this.JSC$9199_dragger_};
var nGb=function(B,R){R.dlgGrowthDirection_=0;R.dlgDragHoverClass_=void 0;R.dlgDragPermission=0;B.dragLists_.push(R)},uF5=function(B,R){B.getHandleForDragItem_=R};
q7.prototype.init=function(){if(!this.JSC$9199_isInitialized_){for(var B=this.dragLists_.length,R=0;R<B;R++)for(var V=_.LY(this.dragLists_[R]),e=V.length,X=0;X<e;++X){var Y=V[X],t=this.getHandleForDragItem_(Y),b=_.Y5(t);this.dragItemForHandle_[b]=Y;this.dragItemHoverClasses_&&(this.JSC$9199_eventHandler_.listen(Y,"mouseover",this.handleDragItemMouseover_),this.JSC$9199_eventHandler_.listen(Y,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9199_eventHandler_.listen(t,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9199_eventHandler_.listen(t,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(Y);this.JSC$9199_eventHandler_.listen(t,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9199_isInitialized_=!0}};
q7.prototype.disposeInternal=function(){this.JSC$9199_eventHandler_.dispose();for(var B=this.dragLists_.length,R=0;R<B;R++){var V=this.dragLists_[R];V.dlgGrowthDirection_=void 0;V.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;O7S(this);q7.superClass_.disposeInternal.call(this)};
var oAR=function(B,R){for(var V=B.dragLists_.length,e=0;e<V;e++){var X=B.dragLists_[e];X.dlgBounds_=iio(X)}V=B.dragItems_.length;for(e=0;e<V;e++)X=B.dragItems_[e],X!=R&&(X.dlgBounds_=iio(X))};
_.p=q7.prototype;
_.p.handlePotentialDragStart_=function(B){var R=_.Y5(B.currentTarget);R=this.dragItemForHandle_[R];if(R.parentElement.dlgDragPermission!=2){this.currDragItem_=R;a:{R=this.currDragItem_;for(var V=R.cloneNode(!0),e=N2("TEXTAREA",R),X=N2("TEXTAREA",V),Y=0;Y<e.length;Y++)X[Y].value=e[Y].value;switch(R.tagName){case "TR":R=_.zw("TABLE",null,_.zw("TBODY",null,V));break a;case "TD":case "TH":R=_.zw("TABLE",null,_.zw("TBODY",null,_.zw("TR",null,V)));break a;case "TEXTAREA":V.value=R.value;default:R=V;break a}R=
void 0}this.draggerEl_=R;this.draggerElClasses_&&iK(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.zg(this.currDragItem_).body.appendChild(this.draggerEl_);V=_.wk(this.currDragItem_);R=this.draggerEl_;e=_.wk(R);if(V instanceof _.fx){var t=V.y;V=V.x}Qs(R,R.offsetLeft+(V-e.x),R.offsetTop+(Number(t)-e.y));this.JSC$9199_dragger_=new _.Ee(this.draggerEl_);_.X85(this.JSC$9199_dragger_,this.hysteresisDistance_);
_.G2(this.JSC$9199_dragger_,"start",this.handleDragStart_,!1,this);_.G2(this.JSC$9199_dragger_,"end",this.handleDragEnd_,!1,this);_.G2(this.JSC$9199_dragger_,"earlycancel",this.JSC$9201_cleanup_,!1,this);this.dispatchEvent(new c9(FP2,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_));this.JSC$9199_dragger_.startDrag(B)}};
_.p.handleDragStart_=function(B){if(this.dispatchEvent(new c9(rso,this,B.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Beb(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?iK(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var R=S44(this.draggerEl_);this.draggerEl_.halfWidth=R.width/2;this.draggerEl_.halfHeight=R.height/2;R=this.draggerEl_.getBoundingClientRect();
var V=B.clientY,e=p8o(this.JSC$9199_dragger_,B.clientX);if(e>R.right){var X=this.currDragItem_.getBoundingClientRect();this.JSC$9199_dragger_.deltaX=e-(e-X.left)/X.width*R.width}V=YBT(this.JSC$9199_dragger_,V);V>R.bottom&&(this.JSC$9199_dragger_.deltaY+=V-R.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";oAR(this,this.currDragItem_);this.currDragItem_.style.display="";_.G2(this.JSC$9199_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new c9(gG4,
this,B.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_))}else B.preventDefault(),this.JSC$9201_cleanup_()};
_.p.handleDragMove_=function(B){var R=_.wk(this.draggerEl_);R=new _.fx(R.x+this.draggerEl_.halfWidth,R.y+this.draggerEl_.halfHeight);a:{var V=null;if(this.currDragItem_.style.display!="none"){V=this.currDragItem_.parentNode;var e=iio(V);if(Bra(R,e))break a}e=this.dragLists_.length;for(var X=0;X<e;X++){var Y=this.dragLists_[X];if(Y!=V&&Bra(R,Y.dlgBounds_)){V=Y;break a}}V=null}if(V){if(V==null)throw Error("Vd");e=0;X=!1;Y=void 0;switch(V.dlgGrowthDirection_){case 0:e=R.y;var t=RZa;var b=VcS;break;case 4:X=
!0;case 2:e=R.x;t=eZR;b=VcS;break;case 5:X=!0;case 3:e=R.x,t=X$5,b=p$J}for(var J=null,G,y=_.LY(V),S=y.length,M=0;M<S;M++){var f=y[M];if(f!=this.currDragItem_){var z=t(f.dlgBounds_);if(X){var T=YXl(f,R);Y===void 0&&(Y=T);b(e,z)&&(G==void 0||T<Y||T==Y&&(b(z,G)||z==G))&&(J=f,G=z);T<Y&&(Y=T)}else b(e,z)&&(G==void 0||b(z,G))&&(J=f,G=z)}}t=J!==null&&YXl(J,R)>Y?null:J}else t=null;if(!this.dispatchEvent(new c9(Z7J,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_,R,V,t)))return!1;if(V&&V.dlgDragPermission!=
1)this.currDragItem_.parentNode==V&&_.Beb(this.currDragItem_)==t||V.insertBefore(this.currDragItem_,t),this.currDragItem_.style.display="",V.dlgDragHoverClass_&&_.s5(V,V.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",b=this.dragLists_.length,G=0;G<b;G++)e=this.dragLists_[G],e.dlgDragHoverClass_&&_.AJ(e,e.dlgDragHoverClass_);V!=this.currHoverList_&&(this.currHoverList_=V,oAR(this,this.currDragItem_));this.dispatchEvent(new c9(mR4,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_,
R,V,t));return!1};
_.p.JSC$9201_cleanup_=function(){O7S(this);this.JSC$9199_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var B=this.dragLists_.length,R=0;R<B;R++)this.dragLists_[R].dlgBounds_=null;B=this.dragItems_.length;for(R=0;R<B;R++)this.dragItems_[R].dlgBounds_=null};
_.p.handleDragEnd_=function(B){if(!this.dispatchEvent(new c9($Rh,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_)))return!1;O7S(this);this.dispatchEvent(new c9(Cz2,this,B,this.currDragItem_,this.draggerEl_,this.JSC$9199_dragger_));this.JSC$9201_cleanup_();return!0};
var O7S=function(B){_.Cx(B.JSC$9199_dragger_);var R=B.draggerEl_&&B.draggerEl_.parentElement;B.draggerEl_&&_.UJ(B.draggerEl_);B.currDragItem_&&B.currDragItem_.style.display=="none"&&(B.origList_.insertBefore(B.currDragItem_,B.origNextItem_),B.currDragItem_.style.display="");B.currDragItemClasses_&&B.currDragItem_?pn_(B.currDragItem_,B.currDragItemClasses_||[]):B.currDragItem_&&(B.currDragItem_.style.visibility="");for(var V=B.dragLists_.length,e=0;e<V;e++){var X=B.dragLists_[e];X.dlgDragHoverClass_&&
_.AJ(X,X.dlgDragHoverClass_)}R&&B.dispatchEvent(new c9(Pzb,B,null,B.currDragItem_,B.draggerEl_,B.JSC$9199_dragger_))};
_.p=q7.prototype;_.p.getHandleForDragItem_=function(B){return B};
_.p.handleDragItemMouseover_=function(B){iK(B.currentTarget,this.dragItemHoverClasses_||[])};
_.p.handleDragItemMouseout_=function(B){pn_(B.currentTarget,this.dragItemHoverClasses_||[])};
_.p.handleDragItemHandleMouseover_=function(B){iK(B.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.p.handleDragItemHandleMouseout_=function(B){pn_(B.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Bra=function(B,R){return B.x>R.left&&B.x<R.left+R.width&&B.y>R.top&&B.y<R.top+R.height},YXl=function(B,R){B=B.dlgBounds_;
return Math.abs(R.y-(B.top+(B.height-1)/2))},RZa=function(B){return B.top+B.height-1},eZR=function(B){return B.left+B.width-1},X$5=function(B){return B.left||0},VcS=function(B,R){return B<R},p$J=function(B,R){return B>R},c9=function(B,R,V,e,X,Y){_.Un.call(this,B);
this.event=V;this.currDragItem=e;this.draggerEl=X;this.JSC$9203_dragger=Y};
_.eY(c9,_.Un);_.eY(BJ,_.Hn);var hZ4=new _.fx(0,0);BJ.prototype.JSC$9207_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
BJ.prototype.JSC$9207_onMouseMove=function(B){var R=this.containerIsActuallyContent_?hZ4:tF(WH(this.containerNode_)),V=this.horizontalScrolling_?this.calculateScrollDelta(B.clientX+R.x,this.scrollBounds_.left,this.scrollBounds_.width):0,e=this.calculateScrollDelta(B.clientY+R.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=V;this.scrollDelta_.y=e;!(V=!V&&!e)&&(V=this.constrainScroll_)&&(V=B.clientX+R.x,B=B.clientY+R.y,R=this.containerBounds_,V=!(R.left<=V&&R.left+R.width>=
V&&R.top<=B&&R.top+R.height>=B));V?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
BJ.prototype.calculateScrollDelta=function(B,R,V){var e=0;B<R?e=-8:B>R+V&&(e=8);return e};
BJ.prototype.disposeInternal=function(){BJ.superClass_.disposeInternal.call(this);this.JSC$9205_eventHandler_.dispose();this.scrollTimer_.dispose()};var tch={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"}}},Af=tch;Af=tch;var ix={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 W5S=function(){},ck=function(B){if(typeof B=="number"){var R=new W5S;
R.standardOffset_=B;var V=B;if(V==0)V="Etc/GMT";else{var e=["Etc/GMT",V<0?"-":"+"];V=Math.abs(V);e.push(Math.floor(V/60)%100);V%=60;V!=0&&e.push(":",_.Rp(V,2));V=e.join("")}R.timeZoneId_=V;V=B;V==0?V="UTC":(e=["UTC",V<0?"+":"-"],V=Math.abs(V),e.push(Math.floor(V/60)%100),V%=60,V!=0&&e.push(":",V),V=e.join(""));B=bkh(B);R.tzNames_=[V,V];R.tzNamesExt_={STD_LONG_NAME_GMT:B,STD_GENERIC_LOCATION:B};R.transitions_=[];return R}R=new W5S;R.timeZoneId_=B.id;R.standardOffset_=-B.std_offset;R.tzNames_=B.names;
R.tzNamesExt_=B.names_ext;R.transitions_=B.transitions;return R},bkh=function(B){var R=["GMT"];
R.push(B<=0?"+":"-");B=Math.abs(B);R.push(_.Rp(Math.floor(B/60)%100,2),":",_.Rp(B%60,2));return R.join("")},Jz4=function(B,R){R=Date.UTC(R.getUTCFullYear(),R.getUTCMonth(),R.getUTCDate(),R.getUTCHours(),R.getUTCMinutes())/36E5;
for(var V=0;V<B.transitions_.length&&R>=B.transitions_[V];)V+=2;return V==0?0:B.transitions_[V-1]},jG2=function(B,R){B=B.standardOffset_-Jz4(B,R);
return B===-1440?0:B};var As=function(B,R){this.patternParts_=[];this.JSC$9218_dateTimeSymbols_=R||a7;typeof B=="number"?U1T(this,B):Nra(this,B)},GF4=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],sj=function(B){return B.getHours?B.getHours():0},Nra=function(B,R){for(byd&&(R=R.replace(/\u200f/g,""));R;){for(var V=R,e=0;e<GF4.length;++e){var X=R.match(GF4[e]);
if(X){var Y=X[0];R=R.substring(Y.length);e==0&&(Y=="''"?Y="'":(Y=Y.substring(1,X[1]=="'"?Y.length-1:Y.length),Y=Y.replace(/''/g,"'")));B.patternParts_.push({text:Y,type:e});break}}if(V===R)throw Error("Wd`"+R);}};
As.prototype.format=function(B,R){if(!B)throw Error("Xd");var V=R?(B.getTimezoneOffset()-jG2(R,B))*6E4:0,e=V?new Date(B.getTime()+V):B,X=e;R&&e.getTimezoneOffset()!=B.getTimezoneOffset()&&(e=new Date(e.getTime()+(e.getTimezoneOffset()-B.getTimezoneOffset())*6E4),X=new Date(B.getTime()+(V+(V>0?-864E5:864E5))));V=[];for(var Y=0;Y<this.patternParts_.length;++Y){var t=this.patternParts_[Y].text;1==this.patternParts_[Y].type?V.push(yzG(this,t,B,e,X,R)):V.push(t)}return V.join("")};
var U1T=function(B,R){if(R<4)var V=B.JSC$9218_dateTimeSymbols_.DATEFORMATS[R];else if(R<8)V=B.JSC$9218_dateTimeSymbols_.TIMEFORMATS[R-4];else if(R<12)V=B.JSC$9218_dateTimeSymbols_.DATETIMEFORMATS[R-8],V=V.replace("{1}",B.JSC$9218_dateTimeSymbols_.DATEFORMATS[R-8]),V=V.replace("{0}",B.JSC$9218_dateTimeSymbols_.TIMEFORMATS[R-8]);else if(R===12)V=B.JSC$9218_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(R===13)V=B.JSC$9218_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{U1T(B,10);return}Nra(B,V)},FJ=function(B,R){R=String(R);
B=B.JSC$9218_dateTimeSymbols_||a7;if(B.ZERODIGIT!==void 0&&!WfI){for(var V=[],e=0;e<R.length;e++){var X=R.charCodeAt(e);V.push(48<=X&&X<=57?String.fromCharCode(B.ZERODIGIT+X-48):R.charAt(e))}R=V.join("")}return R},WfI=!1,byd=!1,Hk4=function(B,R,V,e){V=V.getFullYear();
V<=0&&e&&(V=1-V);return FJ(B,SXo(V,R))},SXo=function(B,R){R==2&&(B%=100);
B<0&&R++;return _.Rp(B,R)},rp=function(B){if(!(B.getHours&&B.getSeconds&&B.getMinutes))throw Error("Yd");
},Mc4=function(B,R){rp(R);
R=sj(R);return B.JSC$9218_dateTimeSymbols_.AMPMS[R>=12&&R<24?1:0]},yzG=function(B,R,V,e,X,Y){var t=R.length;
switch(R.charAt(0)){case "G":return V=e.getFullYear()>0?1:0,t>=4?B.JSC$9218_dateTimeSymbols_.ERANAMES[V]:B.JSC$9218_dateTimeSymbols_.ERAS[V];case "y":return Hk4(B,t,e,!0);case "Y":return V=(new Date(DR2(e.getFullYear(),e.getMonth(),e.getDate(),B.JSC$9218_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,B.JSC$9218_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),t==2&&(V%=100),FJ(B,SXo(V,t));case "u":return Hk4(B,t,e,!1);case "M":a:switch(V=e.getMonth(),t){case 5:t=B.JSC$9218_dateTimeSymbols_.NARROWMONTHS[V];break a;
case 4:t=B.JSC$9218_dateTimeSymbols_.MONTHS[V];break a;case 3:t=B.JSC$9218_dateTimeSymbols_.SHORTMONTHS[V];break a;default:t=FJ(B,_.Rp(V+1,t))}return t;case "k":return rp(X),FJ(B,_.Rp(sj(X)||24,t));case "S":return FJ(B,(X.getMilliseconds()/1E3).toFixed(Math.min(3,t)).slice(2)+(t>3?_.Rp(0,t-3):""));case "E":return V=e.getDay(),t>=4?B.JSC$9218_dateTimeSymbols_.WEEKDAYS[V]:B.JSC$9218_dateTimeSymbols_.SHORTWEEKDAYS[V];case "a":return Mc4(B,X);case "b":return Mc4(B,X);case "B":return Mc4(B,X);case "h":return rp(X),
FJ(B,_.Rp(sj(X)%12||12,t));case "K":return rp(X),FJ(B,_.Rp(sj(X)%12,t));case "H":return rp(X),FJ(B,_.Rp(sj(X),t));case "c":a:switch(V=e.getDay(),t){case 5:t=B.JSC$9218_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[V];break a;case 4:t=B.JSC$9218_dateTimeSymbols_.STANDALONEWEEKDAYS[V];break a;case 3:t=B.JSC$9218_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[V];break a;default:t=FJ(B,_.Rp(V,1))}return t;case "L":a:switch(V=e.getMonth(),t){case 5:t=B.JSC$9218_dateTimeSymbols_.STANDALONENARROWMONTHS[V];break a;
case 4:t=B.JSC$9218_dateTimeSymbols_.STANDALONEMONTHS[V];break a;case 3:t=B.JSC$9218_dateTimeSymbols_.STANDALONESHORTMONTHS[V];break a;default:t=FJ(B,_.Rp(V+1,t))}return t;case "Q":return V=Math.floor(e.getMonth()/3),t<4?B.JSC$9218_dateTimeSymbols_.SHORTQUARTERS[V]:B.JSC$9218_dateTimeSymbols_.QUARTERS[V];case "d":return FJ(B,_.Rp(e.getDate(),t));case "m":return rp(X),FJ(B,_.Rp(X.getMinutes?X.getMinutes():0,t));case "s":return rp(X),FJ(B,_.Rp(X.getSeconds(),t));case "v":return(Y||ck(V.getTimezoneOffset())).timeZoneId_;
case "V":return B=Y||ck(V.getTimezoneOffset()),t<=2?B.timeZoneId_:Jz4(B,V)>0?B.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?B.tzNamesExt_.DST_GENERIC_LOCATION:B.tzNamesExt_.DST_GENERIC_LOCATION:B.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?B.tzNamesExt_.STD_GENERIC_LOCATION:B.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return V=DR2(X.getFullYear(),X.getMonth(),X.getDate(),B.JSC$9218_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,B.JSC$9218_dateTimeSymbols_.FIRSTDAYOFWEEK),FJ(B,_.Rp(Math.floor(Math.round((V-(new Date((new Date(V)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,t));case "z":return B=Y||ck(V.getTimezoneOffset()),t<4?B.tzNames_[Jz4(B,V)>0?2:0]:B.tzNames_[Jz4(B,V)>0?3:1];case "Z":return R=Y||ck(V.getTimezoneOffset()),t<4?(t=-jG2(R,V),B=[t<0?"-":"+"],t=Math.abs(t),B.push(_.Rp(Math.floor(t/60)%100,2),_.Rp(t%60,2)),t=B.join("")):t=FJ(B,bkh(jG2(R,V))),t;default:return""}};var kFo=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,D1R=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,H15=function(B){this.patternParts_=[];this.JSC$9227_dateTimeSymbols_=a7;if(typeof B=="number"){B>11&&(B=10);if(B<4)var R=this.JSC$9227_dateTimeSymbols_.DATEFORMATS[B];else B<8?R=this.JSC$9227_dateTimeSymbols_.TIMEFORMATS[B-4]:(R=this.JSC$9227_dateTimeSymbols_.DATETIMEFORMATS[B-8],R=R.replace("{1}",this.JSC$9227_dateTimeSymbols_.DATEFORMATS[B-8]),R=R.replace("{0}",this.JSC$9227_dateTimeSymbols_.TIMEFORMATS[B-
8]));fxa(this,R)}else fxa(this,B)},fxa=function(B,R){for(var V=!1,e="",X=0;X<R.length;X++){var Y=R.charAt(X);
if(kFo.test(Y))for(e.length>0&&(B.patternParts_.push({text:e,count:0,abutStart:!1,numeric:!1}),e=""),B.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});X<R.length-1&&R.charAt(X+1)==" ";)X++;else if(V)Y=="'"?X+1<R.length&&R.charAt(X+1)=="'"?(e+="'",X++):V=!1:e+=Y;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(Y)>=0){e.length>0&&(B.patternParts_.push({text:e,count:0,abutStart:!1,numeric:!1}),e="");for(var t=R.charAt(X),b=X+1;b<R.length&&R.charAt(b)==t;)b++;t=b-X;t<=0?b=!1:(b="MydhHmsSDkK".indexOf(Y),
b=b>0||b==0&&t<3);B.patternParts_.push({text:Y,count:t,abutStart:!1,numeric:b});X+=t-1}else Y=="'"?X+1<R.length&&R.charAt(X+1)=="'"?(e+="'",X++):V=!0:e+=Y}e.length>0&&B.patternParts_.push({text:e,count:0,abutStart:!1,numeric:!1});R=!1;for(V=0;V<B.patternParts_.length;V++)B.patternParts_[V].numeric?!R&&V+1<B.patternParts_.length&&B.patternParts_[V+1].numeric&&(R=!0,B.patternParts_[V].abutStart=!0):R=!1};
H15.prototype.parse=function(B,R,V){var e=!1,X=!1;V&&(e=V.predictive||!1,X=V.validate||!1);if(e)for(V=0;V<this.patternParts_.length;V++){var Y=this.patternParts_[V];if(Y.count>0&&("abBhHkKm".indexOf(Y.text.charAt(0))<0||Y.count>2||Y.abutStart))throw Error("Zd`"+Y.text.charAt(0));}Y=new lxv;V=[0];Y.dayPeriodIndex=-1;for(var t=0;t<this.patternParts_.length&&!(e&&V[0]>=B.length);t++){if(this.patternParts_[t].count==0){a:{var b=B;var J=V,G=this.patternParts_[t],y=e;if(G.text.match(kFo)!=null){if(G=J[0],
zZv(b,J),J[0]>G){b=!0;break a}}else{if(b.indexOf(G.text,J[0])==J[0]){J[0]+=G.text.length;b=!0;break a}if(y&&G.text.indexOf(b.substring(J[0]))==0){J[0]+=b.length-J[0];b=!0;break a}}b=!1}if(b)continue;return 0}if(this.patternParts_[t].abutStart){a:{J=B;G=V;y=t;var S=G[0],M=0;for(b=y;b<this.patternParts_.length;b++){var f=this.patternParts_[b],z=f.count;if(z===0)break;if(b==y&&(z-=M,M++,z==0)){b=0;break a}var T=b>y&&f.numeric,L=G[0];if(!axv(this,J,G,f,z,Y,!1)||T&&G[0]-L<z)b=y-1,G[0]=S}b-=y}if(b<=0)return 0;
t+=b-1}else if(!axv(this,B,V,this.patternParts_[t],0,Y,e))return 0}a:{B=X;if(R==null)throw Error("$d");Y.era!=void 0&&Y.year!=void 0&&Y.era==0&&Y.year>0&&(Y.year=-(Y.year-1));Y.year!=void 0&&R.setFullYear(Y.year);e=R.getDate();R.setDate(1);Y.month!=void 0&&R.setMonth(Y.month);Y.day!=void 0?R.setDate(Y.day):(X=$BA(R.getFullYear(),R.getMonth()),R.setDate(e>X?X:e));typeof R.setHours==="function"&&(Y.hours==void 0&&(Y.hours=R.getHours()),Y.hours<12&&(Y.ampm!=void 0&&Y.ampm>0?Y.hours+=12:Y.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(Y.dayPeriodName)||["night1","night2"].includes(Y.dayPeriodName)&&Y.hours>=6)&&(Y.hours+=12)),R.setHours(Y.hours));typeof R.setMinutes==="function"&&Y.minutes!=void 0&&R.setMinutes(Y.minutes);typeof R.setSeconds==="function"&&Y.seconds!=void 0&&R.setSeconds(Y.seconds);typeof R.setMilliseconds==="function"&&Y.milliseconds!=void 0&&R.setMilliseconds(Y.milliseconds);if(B&&(Y.year&&Y.year!=R.getFullYear()||Y.month&&Y.month!=
R.getMonth()||Y.day&&Y.day!=R.getDate()||Y.hours&&Y.hours>=24||Y.minutes&&Y.minutes>=60||Y.seconds&&Y.seconds>=60||Y.milliseconds&&Y.milliseconds>=1E3))R=!1;else{Y.tzOffset!=void 0&&R.setTime(R.getTime()+(Y.tzOffset-R.getTimezoneOffset())*60*1E3);Y.ambiguousYear&&(B=new Date,B.setFullYear(B.getFullYear()-80),R.getTime()<B.getTime()&&R.setFullYear(B.getFullYear()+100));if(Y.dayOfWeek!=void 0)if(Y.day==void 0)Y=(7+Y.dayOfWeek-R.getDay())%7,Y>3&&(Y-=7),B=R.getMonth(),R.setDate(R.getDate()+Y),R.getMonth()!=
B&&R.setDate(R.getDate()+(Y>0?-7:7));else if(Y.dayOfWeek!=R.getDay()){R=!1;break a}R=!0}}return R?V[0]:0};
var axv=function(B,R,V,e,X,Y,t){zZv(R,V);if(e.numeric&&X>0&&V[0]+X>R.length)return!1;switch(e.text.charAt(0)){case "G":return gp(R,V,[B.JSC$9227_dateTimeSymbols_.ERAS],function(b){return Y.era=b}),!0;
case "M":case "L":return d15(B,R,V,X,e,Y);case "E":return gp(R,V,[B.JSC$9227_dateTimeSymbols_.WEEKDAYS,B.JSC$9227_dateTimeSymbols_.SHORTWEEKDAYS],function(b){return Y.dayOfWeek=b});
case "B":case "b":return X=[],B=[[].concat(B.JSC$9227_dateTimeSymbols_.AMPMS)],X.push("isAm"),X.push("isPm"),R=gp(R,V,B,function(b){return Y.dayPeriodIndex=b},t),Y.dayPeriodName=X[Y.dayPeriodIndex],t?R:!0;
case "a":return R=gp(R,V,[B.JSC$9227_dateTimeSymbols_.AMPMS],function(b){return Y.ampm=b},t),t?R:!0;
case "y":return w$G(B,R,V,e,X,Y);case "Q":return gp(R,V,[B.JSC$9227_dateTimeSymbols_.QUARTERS,B.JSC$9227_dateTimeSymbols_.SHORTQUARTERS],function(b){Y.month=b*3;Y.day=1});
case "d":return Zr(B,R,V,e,X,function(b){Y.day=b}),!0;
case "S":return Tro(B,R,V,X,Y);case "h":case "K":case "H":case "k":return R=Zr(B,R,V,e,X,function(b){Y.hours=e.text.charAt(0)==="h"&&b===12?0:b},t),t?R:!0;
case "m":return R=Zr(B,R,V,e,X,function(b){Y.minutes=b},t),t?R:!0;
case "s":return Zr(B,R,V,e,X,function(b){Y.seconds=b}),!0;
case "z":case "Z":case "v":return x1J(B,R,V,Y);default:return!1}},w$G=function(B,R,V,e,X,Y){var t=V[0];
X=mG(B,R,V,X);X===null&&(X=mG(B,R,V,0,!0));if(X===null)return!1;X>=0&&V[0]-t==2&&e.count==2?(B=X,R=(new Date).getFullYear()-80,V=R%100,Y.ambiguousYear=B==V,B+=Math.floor(R/100)*100+(B<V?100:0),Y.year=B):Y.year=X;return!0},d15=function(B,R,V,e,X,Y){return X.numeric&&Zr(B,R,V,X,e,function(t){Y.month=t-1})?!0:gp(R,V,[B.JSC$9227_dateTimeSymbols_.MONTHS,
B.JSC$9227_dateTimeSymbols_.STANDALONEMONTHS,B.JSC$9227_dateTimeSymbols_.SHORTMONTHS,B.JSC$9227_dateTimeSymbols_.STANDALONESHORTMONTHS],function(t){Y.month=t})},Tro=function(B,R,V,e,X){var Y=V[0];
B=mG(B,R,V,e);if(B===null)return!1;V=V[0]-Y;X.milliseconds=V<3?B*Math.pow(10,3-V):Math.round(B/Math.pow(10,V-3));return!0},x1J=function(B,R,V,e){R.indexOf("GMT",V[0])==V[0]&&(V[0]+=3);
if(V[0]>=R.length)return e.tzOffset=0,!0;var X=V[0],Y=mG(B,R,V,0,!0);if(Y===null)return!1;if(V[0]<R.length&&R.charAt(V[0])==":"){var t=Y*60;V[0]++;Y=mG(B,R,V,0);if(Y===null)return!1;t+=Y}else t=Y,t=t<24&&V[0]-X<=3?t*60:t%100+t/100*60;e.tzOffset=-t;return!0},Zr=function(B,R,V,e,X,Y,t){t=t||!1;
var b=V[0];B=mG(B,R,V,X);if(B===null)return!1;if(t&&V[0]-b<e.count){if(V[0]<R.length)return!1;B*=Math.pow(10,e.count-(V[0]-b))}Y(B);return!0},gp=function(B,R,V,e,X){X=X||!1;
for(var Y,t=0;t<V.length;t++){Y=R;for(var b=V[t],J=X,G=0,y=null,S=B.substring(Y[0]).toLowerCase(),M=0;M<b.length;M++){var f=b[M].toLowerCase();if(J&&f.indexOf(S)==0){G=S.length;y=M;break}b[M].length>G&&S.indexOf(f)==0&&(G=b[M].length,y=M)}y!==null&&(Y[0]+=G);Y=y;if(Y!==null)return e(Y),!0}return!1},zZv=function(B,R){(B=B.substring(R[0]).match(D1R))&&(R[0]+=B[0].length)},mG=function(B,R,V,e,X){R=e>0?R.substring(0,V[0]+e):R;
X=X||!1;if(B.JSC$9227_dateTimeSymbols_.ZERODIGIT){e=[];for(var Y=V[0];Y<R.length;Y++){var t=R.charCodeAt(Y)-B.JSC$9227_dateTimeSymbols_.ZERODIGIT;e.push(0<=t&&t<=9?String.fromCharCode(t+48):R.charAt(Y))}R=e.join("")}else R=R.substring(V[0]);B=R.match(new RegExp("^"+(X?"[+-]?":"")+"\\d+"));if(!B)return null;V[0]+=B[0].length;return parseInt(B[0],10)},lxv=function(){};
lxv.prototype.ambiguousYear=!1;_.L5b={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 vAv={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"},K5J=vAv,Ix5=vAv;Ix5=K5J=vAv;var QG2,$6,P9,mPd,C8,EA4;
_.Ir=function(B,R,V,e){var X;if(X=R){a:if(R&&R.length===3){for(X=0;X<3;X++){var Y=R[X];if(Y<"A"||Y>"Z"&&Y<"a"||Y>"z"){X=!1;break a}}X=!0}else X=!1;X=!X}if(X)throw new TypeError("ae");this.intlCurrencyCode_=R?R.toUpperCase():null;this.currencyStyle_=V||0;this.overrideNumberFormatSymbols_=e||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_=$6(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof B==="number")switch(B){case 1:C8(this,$6(this).DECIMAL_PATTERN);break;case 2:C8(this,$6(this).SCIENTIFIC_PATTERN);break;case 3:C8(this,$6(this).PERCENT_PATTERN);break;case 4:B=$6(this).CURRENCY_PATTERN;R=["0"];if(V=
ix[P9(this)]){V=V[0]&7;if(V>0)for(R.push("."),e=0;e<V;e++)R.push("0");B=B.replace(/0.00/g,R.join(""))}C8(this,B);break;case 5:EA4(this,1);break;case 6:EA4(this,2);break;default:throw Error("de");}else C8(this,B)};
QG2=!1;$6=function(B){return B.overrideNumberFormatSymbols_||(QG2?Ix5:K5J)};
P9=function(B){return B.intlCurrencyCode_||$6(B).DEF_CURRENCY_CODE};
mPd=function(B,R){if(R>308)throw Error("ce`"+R);B.maximumFractionDigits_=R;return B};
C8=function(B,R){var V=[0];B.positivePrefix_=qXb(B,R,V);for(var e=V[0],X=-1,Y=0,t=0,b=0,J=-1,G=R.length,y=!0;V[0]<G&&y;V[0]++)switch(R.charAt(V[0])){case "#":t>0?b++:Y++;J>=0&&X<0&&J++;break;case "0":if(b>0)throw Error("je`"+R);t++;J>=0&&X<0&&J++;break;case ",":J>0&&B.groupingArray_.push(J);J=0;break;case ".":if(X>=0)throw Error("ke`"+R);X=Y+t+b;break;case "E":if(B.useExponentialNotation_)throw Error("le`"+R);B.useExponentialNotation_=!0;B.minExponentDigits_=0;V[0]+1<G&&R.charAt(V[0]+1)=="+"&&(V[0]++,
B.useSignForPositiveExponent_=!0);for(;V[0]+1<G&&R.charAt(V[0]+1)=="0";)V[0]++,B.minExponentDigits_++;if(Y+t<1||B.minExponentDigits_<1)throw Error("me`"+R);y=!1;break;default:V[0]--,y=!1}t==0&&Y>0&&X>=0&&(t=X,t==0&&t++,b=Y-t,Y=t-1,t=1);if(X<0&&b>0||X>=0&&(X<Y||X>Y+t)||J==0)throw Error("ne`"+R);b=Y+t+b;B.maximumFractionDigits_=X>=0?b-X:0;X>=0&&(B.minimumFractionDigits_=Y+t-X,B.minimumFractionDigits_<0&&(B.minimumFractionDigits_=0));B.minimumIntegerDigits_=(X>=0?X:b)-Y;B.useExponentialNotation_&&(B.maximumIntegerDigits_=
Y+B.minimumIntegerDigits_,B.maximumFractionDigits_==0&&B.minimumIntegerDigits_==0&&(B.minimumIntegerDigits_=1));B.groupingArray_.push(Math.max(0,J));B.decimalSeparatorAlwaysShown_=X==0||X==b;e=V[0]-e;B.positiveSuffix_=qXb(B,R,V);V[0]<R.length&&R.charAt(V[0])==";"?(V[0]++,B.multiplier_!=1&&(B.negativePercentSignExpected_=!0),B.negativePrefix_=qXb(B,R,V),V[0]+=e,B.negativeSuffix_=qXb(B,R,V)):(B.negativePrefix_+=B.positivePrefix_,B.negativeSuffix_+=B.positiveSuffix_)};
EA4=function(B,R){B.compactStyle_=R;C8(B,$6(B).DECIMAL_PATTERN);B.minimumFractionDigits_=0;mPd(B,2);if(B.minimumFractionDigits_>0)throw Error("be");B.significantDigits_=2};
_.Ir.prototype.parse=function(B,R){R=R||[0];if(this.compactStyle_!==0)throw Error("ee");B=B.replace(/ |\u202f/g,"\u00a0");var V=B.indexOf(this.positivePrefix_,R[0])==R[0],e=B.indexOf(this.negativePrefix_,R[0])==R[0];V&&e&&(this.positivePrefix_.length>this.negativePrefix_.length?e=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(V=!1));V?R[0]+=this.positivePrefix_.length:e&&(R[0]+=this.negativePrefix_.length);if(B.indexOf($6(this).INFINITY,R[0])==R[0]){R[0]+=$6(this).INFINITY.length;var X=
Infinity}else{X=B;var Y=!1,t=!1,b=!1,J=-1,G=1,y=$6(this).DECIMAL_SEP,S=$6(this).GROUP_SEP,M=$6(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");S=S.replace(/\u202f/g,"\u00a0");for(var f="";R[0]<X.length;R[0]++){var z=X.charAt(R[0]),T=cz_(this,z);if(T>=0&&T<=9)f+=T,b=!0;else if(z==y.charAt(0)){if(Y||t)break;f+=".";Y=!0}else if(z==S.charAt(0)&&("\u00a0"!=S.charAt(0)||R[0]+1<X.length&&cz_(this,X.charAt(R[0]+1))>=0)){if(Y||t)break}else if(z==M.charAt(0)){if(t)break;f+="E";t=!0;J=R[0]}else if(z==
"+"||z=="-"){if(b&&J!=R[0]-1)break;f+=z}else if(this.multiplier_==1&&z==$6(this).PERCENT.charAt(0)){if(G!=1)break;G=100;if(b){R[0]++;break}}else if(this.multiplier_==1&&z==$6(this).PERMILL.charAt(0)){if(G!=1)break;G=1E3;if(b){R[0]++;break}}else break}this.multiplier_!=1&&(G=this.multiplier_);X=parseFloat(f)/G}if(V){if(B.indexOf(this.positiveSuffix_,R[0])!=R[0])return NaN;R[0]+=this.positiveSuffix_.length}else if(e){if(B.indexOf(this.negativeSuffix_,R[0])!=R[0])return NaN;R[0]+=this.negativeSuffix_.length}return e?
-X:X};
_.Ir.prototype.format=function(B){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(B))return $6(this).NAN;var R=[];var V=B;if(this.compactStyle_==0)V=n8;else{V=Math.abs(V);var e=Azb(this,V<=1?0:ik2(V)).divisorBase;V=Azb(this,e+ik2(sGh(this,ux(V,-e)).intValue))}B=ux(B,-V.divisorBase);(e=B<0||B==0&&1/B<0)?V.negative_prefix?R.push(V.negative_prefix):(R.push(V.prefix),R.push(this.negativePrefix_)):(R.push(V.prefix),R.push(this.positivePrefix_));if(isFinite(B))if(B*=
e?-1:1,B*=this.multiplier_,this.useExponentialNotation_){var X=B;if(X==0)F5h(this,X,this.minimumIntegerDigits_,R),rzo(this,0,R);else{var Y=Math.floor(Math.log(X)/Math.log(10)+2E-15);X=ux(X,-Y);var t=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(t=Y%this.maximumIntegerDigits_,t<0&&(t=this.maximumIntegerDigits_+t),X=ux(X,t),Y-=t,t=1):this.minimumIntegerDigits_<1?(Y++,X=ux(X,-1)):(Y-=this.minimumIntegerDigits_-1,X=ux(X,this.minimumIntegerDigits_-
1));F5h(this,X,t,R);rzo(this,Y,R)}}else F5h(this,B,this.minimumIntegerDigits_,R);else R.push($6(this).INFINITY);e?V.negative_suffix?R.push(V.negative_suffix):(isFinite(B)&&R.push(V.suffix),R.push(this.negativeSuffix_)):(isFinite(B)&&R.push(V.suffix),R.push(this.positiveSuffix_));return R.join("")};
var sGh=function(B,R){var V=ux(R,B.maximumFractionDigits_);B.significantDigits_>0&&(V=gAT(V,B.significantDigits_,B.maximumFractionDigits_));V=Math.round(V);if(isFinite(V)){var e=Math.floor(ux(V,-B.maximumFractionDigits_));V=Math.floor(V-ux(e,B.maximumFractionDigits_));if(V<0||V>=ux(1,B.maximumFractionDigits_))e=Math.round(R),V=0}else e=R,V=0;return{intValue:e,fracValue:V}},F5h=function(B,R,V,e){if(B.minimumFractionDigits_>B.maximumFractionDigits_)throw Error("ge");
e||(e=[]);R=sGh(B,R);var X=R.intValue,Y=R.fracValue,t=B.minimumFractionDigits_>0||Y>0||!1;R=B.minimumFractionDigits_;t&&(R=B.minimumFractionDigits_);for(var b="",J=X;J>1E20;)b="0"+b,J=Math.round(ux(J,-1));b=J+b;var G=$6(B).DECIMAL_SEP;J=$6(B).ZERO_DIGIT.codePointAt(0);var y=b.length,S=0;if(X>0||V>0){for(X=y;X<V;X++)e.push(String.fromCodePoint(J));if(B.groupingArray_.length>=2)for(V=1;V<B.groupingArray_.length;V++)S+=B.groupingArray_[V];V=y-S;if(V>0){X=B.groupingArray_;S=y=0;for(var M,f=$6(B).GROUP_SEP,
z=b.length,T=0;T<z;T++)if(e.push(String.fromCodePoint(J+Number(b.charAt(T)))),z-T>1)if(M=X[S],T<V){var L=V-T;(M===1||M>0&&L%M===1)&&e.push(f)}else S<X.length&&(T===V?S+=1:M===T-V-y+1&&(e.push(f),y+=M,S+=1))}else{V=b;b=B.groupingArray_;X=$6(B).GROUP_SEP;M=V.length;f=[];for(y=b.length-1;y>=0&&M>0;y--){S=b[y];for(z=0;z<S&&M-z-1>=0;z++)f.push(String.fromCodePoint(J+Number(V.charAt(M-z-1))));M-=S;M>0&&f.push(X)}e.push.apply(e,f.reverse())}}else t||e.push(String.fromCodePoint(J));(B.decimalSeparatorAlwaysShown_||
t)&&e.push(G);Y=String(Y);t=Y.split("e+");t.length==2&&(Y=String(gAT(parseFloat(t[0]),B.significantDigits_,1)),Y=Y.replace(".",""),Y+=(0,_.qSo)("0",parseInt(t[1],10)-Y.length+1));B.maximumFractionDigits_+1>Y.length&&(Y="1"+(0,_.qSo)("0",B.maximumFractionDigits_-Y.length)+Y);for(B=Y.length;Y.charAt(B-1)=="0"&&B>R+1;)B--;for(R=1;R<B;R++)e.push(String.fromCodePoint(J+Number(Y.charAt(R))))},rzo=function(B,R,V){V.push($6(B).EXP_SYMBOL);
R<0?(R=-R,V.push($6(B).MINUS_SIGN)):B.useSignForPositiveExponent_&&V.push($6(B).PLUS_SIGN);R=""+R;for(var e=$6(B).ZERO_DIGIT,X=R.length;X<B.minExponentDigits_;X++)V.push(e);B=e.codePointAt(0)-ZkG;for(e=0;e<R.length;e++)V.push(String.fromCodePoint(B+R.codePointAt(e)))},cz_=function(B,R){R=R.codePointAt(0);
if(48<=R&&R<58)return R-48;B=$6(B).ZERO_DIGIT.codePointAt(0);return B<=R&&R<B+10?R-B:-1},ZkG="0".codePointAt(0),qXb=function(B,R,V){for(var e="",X=!1,Y=R.length;V[0]<Y;V[0]++){var t=R.charAt(V[0]);
if(t=="'")V[0]+1<Y&&R.charAt(V[0]+1)=="'"?(V[0]++,e+="'"):X=!X;else if(X)e+=t;else switch(t){case "#":case "0":case ",":case ".":case ";":return e;case "\u00a4":if(V[0]+1<Y&&R.charAt(V[0]+1)=="\u00a4")V[0]++,e+=P9(B);else switch(B.currencyStyle_){case 0:t=P9(B);e+=t in ix?ix[t][1]:t;break;case 2:t=P9(B);var b=ix[t];e+=b?t==b[1]?t:t+" "+b[1]:t;break;case 1:t=P9(B),e+=t in ix?ix[t][2]:t}break;case "%":if(!B.negativePercentSignExpected_&&B.multiplier_!=1)throw Error("he");if(B.negativePercentSignExpected_&&
B.multiplier_!=100)throw Error("ie");B.multiplier_=100;B.negativePercentSignExpected_=!1;e+=$6(B).PERCENT;break;case "\u2030":if(!B.negativePercentSignExpected_&&B.multiplier_!=1)throw Error("he");if(B.negativePercentSignExpected_&&B.multiplier_!=1E3)throw Error("ie");B.multiplier_=1E3;B.negativePercentSignExpected_=!1;e+=$6(B).PERMILL;break;default:e+=t}}return e},n8={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},Azb=function(B,R){B=B.compactStyle_==1?Af.COMPACT_DECIMAL_SHORT_PATTERN:Af.COMPACT_DECIMAL_LONG_PATTERN;B==null&&(B=Af.COMPACT_DECIMAL_SHORT_PATTERN);if(R<3)return n8;R=Math.min(14,R);var V=B[ux(1,R)];for(--R;!V&&R>=3;)V=B[ux(1,R)],R--;if(!V)return n8;V=V.other;var e=B="",X=V.indexOf(";");X>=0&&(V=V.substring(0,X),X=V.substring(X+1))&&(e=/([^0]*)(0+)(.*)/.exec(X),B=e[1],e=e[3]);return V&&V!="0"?(V=/([^0]*)(0+)(.*)/.exec(V))?{divisorBase:R+
1-(V[2].length-1),negative_prefix:B,negative_suffix:e,prefix:V[1],suffix:V[3]}:n8:n8},ik2=function(B){if(!isFinite(B))return B>0?B:0;
for(var R=0;(B/=10)>=1;)R++;return R},ux=function(B,R){if(!B||!isFinite(B)||R==0)return B;
B=String(B).split("e");return parseFloat(B[0]+"e"+(parseInt(B[1]||0,10)+R))},m1J=function(B,R){return B&&isFinite(B)?ux(Math.round(ux(B,R)),-R):B},gAT=function(B,R,V){if(!B)return B;
R=R-ik2(B)-1;return R<-V?m1J(B,-V):m1J(B,R)};var $14=function(B){return B%10==1&&B%100!=11?"one":B%10==2&&B%100!=12?"two":B%10==3&&B%100!=13?"few":"other"},CiG=$14;
CiG=$14;var PiS;PiS=function(B,R){var V=B|0;if(void 0===R){R=Math;var e=R.min,X=B+"",Y=X.indexOf(".");R=e.call(R,Y===-1?0:X.length-Y-1,3)}e=Math.pow(10,R);B={v:R,f:(B*e|0)%e};return V==1&&B.v==0?"one":"other"};
_.iz=PiS;_.iz=PiS;var nA_,usb,OkJ,BHa,R12;_.opJ=function(B){this.JSC$9270_pattern_=B;this.parsedPattern_=this.literals_=this.initialLiterals_=null;B=K5J;var R=Af;if(nA_!==B||usb!==R)nA_=B,usb=R,OkJ=new _.Ir(1);this.numberFormatter_=OkJ};
nA_=null;usb=null;OkJ=null;BHa=RegExp("'([{}#].*?)'","g");R12=RegExp("''","g");
_.opJ.prototype.format=function(B){if(this.JSC$9270_pattern_){this.initialLiterals_=[];var R=VmR(this,this.JSC$9270_pattern_);this.parsedPattern_=e14(this,R);this.JSC$9270_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.OS(this.initialLiterals_),R=[],Xcl(this,this.parsedPattern_,B,!1,R),B=R.join("");this.literals_.length>0;)B=B.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else B="";return B};
var Xcl=function(B,R,V,e,X){for(var Y=0;Y<R.length;Y++)switch(R[Y].type){case 4:X.push(R[Y].value);break;case 3:var t=R[Y].value;var b=B,J=X,G=V[t];G===void 0?J.push("Undefined parameter - "+t):(b.literals_.push(G),J.push(b.buildPlaceholder_(b.literals_)));break;case 2:t=R[Y].value;b=B;J=V;G=e;var y=X,S=t.argumentIndex;J[S]===void 0?y.push("Undefined parameter - "+S):(S=t[J[S]],S===void 0&&(S=t.other),Xcl(b,S,J,G,y));break;case 0:t=R[Y].value;pc4(B,t,V,_.iz,e,X);break;case 1:t=R[Y].value,pc4(B,t,
V,CiG,e,X)}},pc4=function(B,R,V,e,X,Y){var t=R.argumentIndex,b=R.argumentOffset,J=+V[t];
isNaN(J)?Y.push("Undefined or invalid parameter - "+t):(b=J-b,t=R[V[t]],t===void 0&&(e=e(Math.abs(b)),t=R[e],t===void 0&&(t=R.other)),R=[],Xcl(B,t,V,X,R),V=R.join(""),X?Y.push(V):(B=B.numberFormatter_.format(b),Y.push(V.replace(/#/g,B))))},VmR=function(B,R){var V=B.initialLiterals_,e=B.buildPlaceholder_.bind(B);
R=R.replace(R12,function(){V.push("'");return e(V)});
return R=R.replace(BHa,function(X,Y){V.push(Y);return e(V)})},Yx4=function(B){var R=0,V=[],e=[],X=/[{}]/g;
X.lastIndex=0;for(var Y;Y=X.exec(B);){var t=Y.index;Y[0]=="}"?(V.pop(),V.length==0&&(Y={type:1},Y.value=B.substring(R,t),e.push(Y),R=t+1)):(V.length==0&&(R=B.substring(R,t),R!=""&&e.push({type:0,value:R}),R=t+1),V.push("{"))}B=B.substring(R);B!=""&&e.push({type:0,value:B});return e},h1_=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,tml=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Wao=/^\s*(\w+)\s*,\s*select\s*,/,e14=function(B,R){var V=[];
R=Yx4(R);for(var e=0;e<R.length;e++){var X={};if(0==R[e].type)X.type=4,X.value=R[e].value;else if(1==R[e].type){var Y=R[e].value;switch(h1_.test(Y)?0:tml.test(Y)?1:Wao.test(Y)?2:/^\s*\w+\s*/.test(Y)?3:5){case 2:X.type=2;X.value=bJv(B,R[e].value);break;case 0:X.type=0;X.value=JM5(B,R[e].value);break;case 1:X.type=1;X.value=j_J(B,R[e].value);break;case 3:X.type=3,X.value=R[e].value}}V.push(X)}return V},bJv=function(B,R){var V="";
R=R.replace(Wao,function(b,J){V=J;return""});
var e={};e.argumentIndex=V;R=Yx4(R);for(var X=0;X<R.length;){var Y=R[X].value;X++;var t=void 0;1==R[X].type&&(t=e14(B,R[X].value));e[Y.replace(/\s/g,"")]=t;X++}return e},JM5=function(B,R){var V="",e=0;
R=R.replace(h1_,function(J,G,y){V=G;y&&(e=parseInt(y,10));return""});
var X={};X.argumentIndex=V;X.argumentOffset=e;R=Yx4(R);for(var Y=0;Y<R.length;){var t=R[Y].value;Y++;var b=void 0;1==R[Y].type&&(b=e14(B,R[Y].value));X[t.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=b;Y++}return X},j_J=function(B,R){var V="";
R=R.replace(tml,function(b,J){V=J;return""});
var e={};e.argumentIndex=V;e.argumentOffset=0;R=Yx4(R);for(var X=0;X<R.length;){var Y=R[X].value;X++;var t=void 0;1==R[X].type&&(t=e14(B,R[X].value));e[Y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=t;X++}return e};
_.opJ.prototype.buildPlaceholder_=function(B){return"\ufddf_"+(B.length-1).toString(10)+"_"};var UUG;
UUG={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 Uy_=function(){this.rdtfSymbols_=NH4||UUG;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Uy_.prototype.format=function(B,R){a:{R=GvJ(this,R);switch(this.style_){case 2:if(R.NARROW!=void 0){R=R.NARROW;break a}case 1:if(R.SHORT!=void 0){R=R.SHORT;break a}default:R=R.LONG;break a}R=void 0}if(!this.alwaysNumeric_&&R&&R.R&&R.R[""+B])B=R.R[""+B];else if(R){var V=Math.abs(B);B=(new _.opJ("{N,plural,"+(B>0||B==0&&1/B==Infinity?R.F:R.P)+"}")).format({N:V})}else B="";return B};
var GvJ=function(B,R){switch(R){default:case 0:return B.rdtfSymbols_.YEAR;case 1:return B.rdtfSymbols_.QUARTER;case 2:return B.rdtfSymbols_.MONTH;case 3:return B.rdtfSymbols_.WEEK;case 4:return B.rdtfSymbols_.DAY;case 5:return B.rdtfSymbols_.HOUR;case 6:return B.rdtfSymbols_.MINUTE;case 7:return B.rdtfSymbols_.SECOND}};var yMb=function(B,R,V,e,X,Y,t,b){this.x0=B;this.y0=R;this.x1=V;this.y1=e;this.x2=X;this.y2=Y;this.x3=t;this.y3=b};
yMb.prototype.clone=function(){return new yMb(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
yMb.prototype.equals=function(B){return this.x0==B.x0&&this.y0==B.y0&&this.x1==B.x1&&this.y1==B.y1&&this.x2==B.x2&&this.y2==B.y2&&this.x3==B.x3&&this.y3==B.y3};
var SxT=function(B,R){if(R==0)return B.x0;if(R==1)return B.x3;var V=kP(B.x0,B.x1,R),e=kP(B.x1,B.x2,R);B=kP(B.x2,B.x3,R);V=kP(V,e,R);e=kP(e,B,R);return kP(V,e,R)},HJ2=function(B,R){var V=(R-B.x0)/(B.x3-B.x0);
if(V<=0)return 0;if(V>=1)return 1;for(var e=0,X=1,Y=0,t=0;t<8;t++){Y=SxT(B,V);var b=(SxT(B,V+1E-6)-Y)/1E-6;if(Math.abs(Y-R)<1E-6)return V;if(Math.abs(b)<1E-6)break;else Y<R?e=V:X=V,V-=(Y-R)/b}for(t=0;Math.abs(Y-R)>1E-6&&t<8;t++)Y<R?(e=V,V=(V+X)/2):(X=V,V=(V+e)/2),Y=SxT(B,V);return V};var Oj=function(){_.H_.call(this);this.JSC$9291_name_="closure_frame"+Mm4++;this.iframesForDisposal_=[];kvl[this.JSC$9291_name_]=this},oh;
_.eY(Oj,_.H_);var kvl={},Mm4=0,DUh=function(B,R){var V=WH(B);_.A4_(R,function(e,X){Array.isArray(e)||(e=[e]);_.ij(e,function(Y){Y=V.JSC$7235_createDom("INPUT",{type:"hidden",name:X,value:Y});B.appendChild(Y)})})};
_.p=Oj.prototype;_.p.JSC$9293_form_=null;_.p.JSC$9293_iframe_=null;_.p.iframeName_=null;_.p.nextIframeId_=0;_.p.JSC$9293_active_=!1;_.p.complete_=!1;_.p.success_=!1;_.p.lastContent_=null;_.p.JSC$9293_lastErrorCode_=0;_.p.iframeDisposalTimer_=null;
_.p.send=function(B,R,V,e){if(this.JSC$9293_active_)throw Error("oe");B=new _.FO(B);R=R?R.toUpperCase():"GET";V&&_.X8(B);oh||(oh=_.zw("FORM"),oh.acceptCharset="utf-8",V=oh.style,V.position="absolute",V.visibility="hidden",V.top=V.left="-10px",V.width=V.height="10px",V.overflow="hidden",document.body.appendChild(oh));this.JSC$9293_form_=oh;R=="GET"&&DUh(this.JSC$9293_form_,B.JSC$7940_queryData_);e&&DUh(this.JSC$9293_form_,e);V=B.toString();V=R7q(V);e=this.JSC$9293_form_;V=_.kq(bD(V));V!==void 0&&(e.action=
V);this.JSC$9293_form_.method=R;fqo(this);lqR(this)};
_.p.abort=function(B){if(this.JSC$9293_active_){var R=B6(this);if(R)if(GH(R))R.removeAllListeners(void 0);else if(R=yg(R)){var V=0,e;for(e in R.listeners)for(var X=R.listeners[e].concat(),Y=0;Y<X.length;++Y)jR(X[Y])&&++V}this.success_=this.JSC$9293_active_=this.complete_=!1;this.JSC$9293_lastErrorCode_=B||7;this.dispatchEvent("abort");z1R(this)}};
_.p.disposeInternal=function(){this.JSC$9293_active_&&this.abort();Oj.superClass_.disposeInternal.call(this);this.JSC$9293_iframe_&&aq5(this);lqR(this);this.JSC$9293_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9293_form_=null;this.JSC$9293_lastErrorCode_=0;delete kvl[this.JSC$9291_name_]};
_.p.isComplete=function(){return this.complete_};
_.p.isSuccess=function(){return this.success_};
_.p.isActive=function(){return this.JSC$9293_active_};
_.p.getResponseText=function(){return this.lastContent_};
_.p.getLastError=function(){return _.yqS(this.JSC$9293_lastErrorCode_)};
var fqo=function(B){B.JSC$9293_active_=!0;B.complete_=!1;B.JSC$9293_lastErrorCode_=0;B.iframeName_=B.JSC$9291_name_+"_"+(B.nextIframeId_++).toString(36);B.JSC$9293_iframe_=WH(B.JSC$9293_form_).JSC$7235_createDom("IFRAME",{name:B.iframeName_,id:B.iframeName_});var R=B.JSC$9293_iframe_.style;R.visibility="hidden";R.width=R.height="10px";R.display="none";_.Wb?R.marginTop=R.marginLeft="-10px":(R.position="absolute",R.top=R.left="-10px");WH(B.JSC$9293_form_).JSC$7233_document_.body.appendChild(B.JSC$9293_iframe_);
R=B.iframeName_+"_inner";var V=poT(B.JSC$9293_iframe_);if(document.baseURI){var e=eX(R);e='<head><base href="'+eX(document.baseURI)+'"></head><body><iframe id="'+e+'" name="'+e+'"></iframe>';e=aa(e)}else e=eX(R),e=aa('<body><iframe id="'+e+'" name="'+e+'"></iframe>');V.write(dc(e));_.G2(V.getElementById(R),"load",B.onIframeLoaded_,!1,B);e=N2("TEXTAREA",B.JSC$9293_form_);for(var X=0,Y=e.length;X<Y;X++){var t=e[X].value;Jro(e[X])!=t&&(_.vx(e[X],t),e[X].value=t)}e=V.importNode(B.JSC$9293_form_,!0);e.target=
R;e.action=B.JSC$9293_form_.action;V.body.appendChild(e);X=N2("SELECT",B.JSC$9293_form_);Y=N2("SELECT",e);t=0;for(var b=X.length;t<b;t++)for(var J=N2("OPTION",X[t]),G=N2("OPTION",Y[t]),y=0,S=J.length;y<S;y++)G[y].selected=J[y].selected;X=N2("INPUT",B.JSC$9293_form_);Y=N2("INPUT",e);t=0;for(b=X.length;t<b;t++)if(X[t].type=="file"&&X[t].value!=Y[t].value){B.JSC$9293_form_.target=R;e=B.JSC$9293_form_;break}try{B.errorHandled_=!1,e.submit(),V.close(),_.to&&setTimeout(B.testForFirefoxSilentError_.bind(B),
250)}catch(M){_.SI(V.getElementById(R),"load",B.onIframeLoaded_,!1,B),V.close(),Rh(B,2)}};
Oj.prototype.onIframeLoaded_=function(){_.SI(B6(this),"load",this.onIframeLoaded_,!1,this);try{var B=this.JSC$9293_iframe_?poT(B6(this)):null;this.complete_=!0;this.JSC$9293_active_=!1;try{var R=B.body;this.lastContent_=R.textContent||R.innerText}catch(X){var V=1}var e;V||typeof this.errorChecker_!="function"||(e=this.errorChecker_(B))&&(V=4);V?Rh(this,V):(this.success_=!0,this.JSC$9293_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),z1R(this))}catch(X){Rh(this,1)}};
var Rh=function(B,R){B.errorHandled_||(B.success_=!1,B.JSC$9293_active_=!1,B.complete_=!0,B.JSC$9293_lastErrorCode_=R,B.dispatchEvent("complete"),B.dispatchEvent("error"),z1R(B),B.errorHandled_=!0)},z1R=function(B){aq5(B);
lqR(B);B.JSC$9293_form_=null;B.dispatchEvent("ready")},aq5=function(B){var R=B.JSC$9293_iframe_;
R&&(R.onreadystatechange=null,R.onload=null,R.onerror=null,B.iframesForDisposal_.push(R));B.iframeDisposalTimer_&&(clearTimeout(B.iframeDisposalTimer_),B.iframeDisposalTimer_=null);_.to?B.iframeDisposalTimer_=setTimeout(B.disposeIframes_.bind(B),2E3):B.disposeIframes_();B.JSC$9293_iframe_=null;B.iframeName_=null};
Oj.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var B=this.iframesForDisposal_.pop();_.UJ(B)}};
var lqR=function(B){B.JSC$9293_form_&&B.JSC$9293_form_==oh&&_.wE(B.JSC$9293_form_)},B6=function(B){return B.JSC$9293_iframe_?poT(B.JSC$9293_iframe_).getElementById(B.iframeName_+"_inner"):null};
Oj.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9293_active_){var B=this.JSC$9293_iframe_?poT(B6(this)):null;B&&!aJ(B,"documentUri")?(_.SI(B6(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Rh(this,3):Rh(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Vt=function(B){return B=="\r"||B=="\n"||B==" "||B=="\t"};var dU4;_.eo=function(B){this.errorMessage_=null;this.result_=[];this.JSC$9295_buffer_="";this.stack_=[];this.JSC$9295_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!B||!B.deliverMessageAsRawString)};
dU4={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};_.eo.prototype.isInputValid=function(){return this.streamState_!=3};
_.eo.prototype.done=function(){return this.streamState_===2};
var X3=function(B,R,V){B.streamState_=3;B.errorMessage_="The stream is broken @"+B.JSC$9295_pos_+"/"+V+". With input:\n"+R;throw Error(B.errorMessage_);};
_.eo.prototype.acceptsBinaryInput=function(){return!1};
_.eo.prototype.parse=function(B){function R(){for(;M<B.length;)if(_.Vt(B[M]))M++,Y.JSC$9295_pos_++;else break;return M<G}
function V(){for(var z;;){z=B[M++];if(!z)break;Y.JSC$9295_pos_++;switch(Y.state_){case J.INIT:z==="{"?Y.state_=J.OBJECT_OPEN:z==="["?Y.state_=J.ARRAY_OPEN:_.Vt(z)||X3(Y,B,M);continue;case J.KEY_START:case J.OBJECT_OPEN:if(_.Vt(z))continue;if(Y.state_===J.KEY_START)t.push(J.KEY_END);else if(z==="}"){X("{}");Y.state_=e();continue}else t.push(J.OBJECT_END);z==='"'?Y.state_=J.STRING:X3(Y,B,M);continue;case J.KEY_END:case J.OBJECT_END:if(_.Vt(z))continue;z===":"?(Y.state_===J.OBJECT_END&&(t.push(J.OBJECT_END),
Y.depth_++),Y.state_=J.VALUE):z==="}"?(Y.depth_--,X(),Y.state_=e()):z===","?(Y.state_===J.OBJECT_END&&t.push(J.OBJECT_END),Y.state_=J.KEY_START):X3(Y,B,M);continue;case J.ARRAY_OPEN:case J.VALUE:if(_.Vt(z))continue;if(Y.state_===J.ARRAY_OPEN)if(Y.depth_++,Y.state_=J.VALUE,z==="]"){Y.depth_--;if(Y.depth_===0){Y.state_=J.ARRAY_END;return}X("[]");Y.state_=e();continue}else t.push(J.ARRAY_END);z==='"'?Y.state_=J.STRING:z==="{"?Y.state_=J.OBJECT_OPEN:z==="["?Y.state_=J.ARRAY_OPEN:z==="t"?Y.state_=J.TRUE1:
z==="f"?Y.state_=J.FALSE1:z==="n"?Y.state_=J.NULL1:z!=="-"&&("0123456789".indexOf(z)!==-1?Y.state_=J.NUM_DIGIT:X3(Y,B,M));continue;case J.ARRAY_END:if(z===",")t.push(J.ARRAY_END),Y.state_=J.VALUE,Y.depth_===1&&(S=M);else if(z==="]"){Y.depth_--;if(Y.depth_===0)return;X();Y.state_=e()}else if(_.Vt(z))continue;else X3(Y,B,M);continue;case J.STRING:var T=M;a:for(;;){for(;Y.unicodeCount_>0;)if(z=B[M++],Y.unicodeCount_===4?Y.unicodeCount_=0:Y.unicodeCount_++,!z)break a;if(z==='"'&&!Y.slashed_){Y.state_=
e();break}if(z==="\\"&&!Y.slashed_&&(Y.slashed_=!0,z=B[M++],!z))break;if(Y.slashed_)if(Y.slashed_=!1,z==="u"&&(Y.unicodeCount_=1),z=B[M++])continue;else break;b.lastIndex=M;z=b.exec(B);if(!z){M=B.length+1;break}M=z.index+1;z=B[z.index];if(!z)break}Y.JSC$9295_pos_+=M-T;continue;case J.TRUE1:if(!z)continue;z==="r"?Y.state_=J.TRUE2:X3(Y,B,M);continue;case J.TRUE2:if(!z)continue;z==="u"?Y.state_=J.TRUE3:X3(Y,B,M);continue;case J.TRUE3:if(!z)continue;z==="e"?Y.state_=e():X3(Y,B,M);continue;case J.FALSE1:if(!z)continue;
z==="a"?Y.state_=J.FALSE2:X3(Y,B,M);continue;case J.FALSE2:if(!z)continue;z==="l"?Y.state_=J.FALSE3:X3(Y,B,M);continue;case J.FALSE3:if(!z)continue;z==="s"?Y.state_=J.FALSE4:X3(Y,B,M);continue;case J.FALSE4:if(!z)continue;z==="e"?Y.state_=e():X3(Y,B,M);continue;case J.NULL1:if(!z)continue;z==="u"?Y.state_=J.NULL2:X3(Y,B,M);continue;case J.NULL2:if(!z)continue;z==="l"?Y.state_=J.NULL3:X3(Y,B,M);continue;case J.NULL3:if(!z)continue;z==="l"?Y.state_=e():X3(Y,B,M);continue;case J.NUM_DECIMAL_POINT:z===
"."?Y.state_=J.NUM_DIGIT:X3(Y,B,M);continue;case J.NUM_DIGIT:if("0123456789.eE+-".indexOf(z)!==-1)continue;else M--,Y.JSC$9295_pos_--,Y.state_=e();continue;default:X3(Y,B,M)}}}
function e(){var z=t.pop();return z!=null?z:J.VALUE}
function X(z){Y.depth_>1||(z||(z=S===-1?Y.JSC$9295_buffer_+B.substring(y,M):B.substring(S,M)),Y.deliverMessageAsRawString_?Y.result_.push(z):Y.result_.push(JSON.parse(z)),S=M)}
for(var Y=this,t=Y.stack_,b=Y.stringInputPattern_,J=dU4,G=B.length,y=0,S=-1,M=0;M<G;)switch(Y.streamState_){case 3:return X3(Y,B,M),null;case 2:return R()&&X3(Y,B,M),null;case 0:if(R()){var f=B[M++];Y.JSC$9295_pos_++;if(f==="["){Y.streamState_=1;y=M;Y.state_=J.ARRAY_OPEN;continue}else X3(Y,B,M)}return null;case 1:return V(),Y.depth_===0&&Y.state_==J.ARRAY_END?(Y.streamState_=2,Y.JSC$9295_buffer_=B.substring(M)):Y.JSC$9295_buffer_=S===-1?Y.JSC$9295_buffer_+B.substring(y):B.substring(S),Y.result_.length>
0?(f=Y.result_,Y.result_=[],f):null}return null};_.eY(_.RL,kz);VT.prototype.getValue=function(){return this.JSC$9303_value_};
VT.prototype.clone=function(){return new VT(this.JSC$9303_key_,this.JSC$9303_value_)};var pC=function(B){this.nodes_=[];if(B)a:{if(B instanceof pC){var R=B.getKeys();B=B.getValues();if(this.getCount()<=0){for(var V=this.nodes_,e=0;e<R.length;e++)V.push(new VT(R[e],B[e]));break a}}else R=_.M_.getKeys(B),B=_.M_.getValues(B);for(V=0;V<R.length;V++)this.insert(R[V],B[V])}};
_.p=pC.prototype;_.p.insert=function(B,R){var V=this.nodes_;V.push(new VT(B,R));B=V.length-1;R=this.nodes_;for(V=R[B];B>0;){var e=B-1>>1;if(R[e].JSC$9303_key_>V.JSC$9303_key_)R[B]=R[e],B=e;else break}R[B]=V};
_.p.remove=function(){var B=this.nodes_,R=B.length,V=B[0];if(!(R<=0)){if(R==1)B.length=0;else{B[0]=B.pop();B=0;R=this.nodes_;for(var e=R.length,X=R[B];B<e>>1;){var Y=B*2+1,t=B*2+2;Y=t<e&&R[t].JSC$9303_key_<R[Y].JSC$9303_key_?t:Y;if(R[Y].JSC$9303_key_>X.JSC$9303_key_)break;R[B]=R[Y];B=Y}R[B]=X}return V.getValue()}};
_.p.peek=function(){var B=this.nodes_;if(B.length!=0)return B[0].getValue()};
_.p.getValues=function(){for(var B=this.nodes_,R=[],V=B.length,e=0;e<V;e++)R.push(B[e].getValue());return R};
_.p.getKeys=function(){for(var B=this.nodes_,R=[],V=B.length,e=0;e<V;e++)R.push(B[e].JSC$9303_key_);return R};
_.p.containsValue=function(B){return this.nodes_.some(function(R){return R.getValue()==B})};
_.p.containsKey=function(B){return this.nodes_.some(function(R){return R.JSC$9303_key_==B})};
_.p.clone=function(){return new pC(this)};
_.p.getCount=function(){return this.nodes_.length};
_.p.isEmpty=function(){return this.nodes_.length===0};
_.p.clear=function(){this.nodes_.length=0};_.YI=function(B,R){this.JSC$9309_map_={};this.JSC$9309_keys_=[];this.version_=this.size=0;var V=arguments.length;if(V>1){if(V%2)throw Error("oa");for(var e=0;e<V;e+=2)this.set(arguments[e],arguments[e+1])}else B&&this.addAll(B)};
_.p=_.YI.prototype;_.p.getCount=function(){return this.size};
_.p.getValues=function(){hT(this);for(var B=[],R=0;R<this.JSC$9309_keys_.length;R++)B.push(this.JSC$9309_map_[this.JSC$9309_keys_[R]]);return B};
_.p.getKeys=function(){hT(this);return this.JSC$9309_keys_.concat()};
_.p.containsKey=function(B){return this.has(B)};
_.p.has=function(B){return tT(this.JSC$9309_map_,B)};
_.p.containsValue=function(B){for(var R=0;R<this.JSC$9309_keys_.length;R++){var V=this.JSC$9309_keys_[R];if(tT(this.JSC$9309_map_,V)&&this.JSC$9309_map_[V]==B)return!0}return!1};
_.p.equals=function(B,R){if(this===B)return!0;if(this.size!=B.getCount())return!1;R=R||wc4;hT(this);for(var V,e=0;V=this.JSC$9309_keys_[e];e++)if(!R(this.get(V),B.get(V)))return!1;return!0};
var wc4=function(B,R){return B===R};
_.YI.prototype.isEmpty=function(){return this.size==0};
_.YI.prototype.clear=function(){this.JSC$9309_map_={};this.version_=this.size=this.JSC$9309_keys_.length=0};
_.YI.prototype.remove=function(B){return this.delete(B)};
_.YI.prototype.delete=function(B){return tT(this.JSC$9309_map_,B)?(delete this.JSC$9309_map_[B],--this.size,this.version_++,this.JSC$9309_keys_.length>2*this.size&&hT(this),!0):!1};
var hT=function(B){if(B.size!=B.JSC$9309_keys_.length){for(var R=0,V=0;R<B.JSC$9309_keys_.length;){var e=B.JSC$9309_keys_[R];tT(B.JSC$9309_map_,e)&&(B.JSC$9309_keys_[V++]=e);R++}B.JSC$9309_keys_.length=V}if(B.size!=B.JSC$9309_keys_.length){R={};for(e=V=0;V<B.JSC$9309_keys_.length;){var X=B.JSC$9309_keys_[V];tT(R,X)||(B.JSC$9309_keys_[e++]=X,R[X]=1);V++}B.JSC$9309_keys_.length=e}};
_.p=_.YI.prototype;_.p.get=function(B,R){return tT(this.JSC$9309_map_,B)?this.JSC$9309_map_[B]:R};
_.p.set=function(B,R){tT(this.JSC$9309_map_,B)||(this.size+=1,this.JSC$9309_keys_.push(B),this.version_++);this.JSC$9309_map_[B]=R};
_.p.addAll=function(B){if(B instanceof _.YI)for(var R=B.getKeys(),V=0;V<R.length;V++)this.set(R[V],B.get(R[V]));else for(R in B)this.set(R,B[R])};
_.p.forEach=function(B,R){for(var V=this.getKeys(),e=0;e<V.length;e++){var X=V[e],Y=this.get(X);B.call(R,Y,X,this)}};
_.p.clone=function(){return new _.YI(this)};
_.p.transpose=function(){for(var B=new _.YI,R=0;R<this.JSC$9309_keys_.length;R++){var V=this.JSC$9309_keys_[R];B.set(this.JSC$9309_map_[V],V)}return B};
_.p.keys=function(){return Rb_(this.__iterator__(!0)).toEs6()};
_.p.values=function(){return Rb_(this.__iterator__(!1)).toEs6()};
_.p.entries=function(){var B=this;return N6o(this.keys(),function(R){return[R,B.get(R)]})};
_.p.__iterator__=function(B){hT(this);var R=0,V=this.version_,e=this,X=new eP;X.next=function(){if(V!=e.version_)throw Error("pe");if(R>=e.JSC$9309_keys_.length)return XC;var Y=e.JSC$9309_keys_[R++];return pg(B?Y:e.JSC$9309_map_[Y])};
return X};
var tT=function(B,R){return Object.prototype.hasOwnProperty.call(B,R)};var xUv=function(){this.JSC$9312_map_=new _.YI;this.JSC$9312_head_=new THS("");this.JSC$9312_head_.next=this.JSC$9312_head_.prev=this.JSC$9312_head_},La_=function(B,R){if(R=B.JSC$9312_map_.get(R))R.remove(),B.insert_(R);
return R};
_.p=xUv.prototype;_.p.get=function(B,R){return(B=La_(this,B))?B.value:R};
_.p.set=function(B,R){var V=La_(this,B);V?V.value=R:(V=new THS(B,R),this.JSC$9312_map_.set(B,V),this.insert_(V))};
_.p.peek=function(){return this.JSC$9312_head_.next.value};
_.p.shift=function(){return vpv(this,this.JSC$9312_head_.next)};
_.p.pop=function(){return vpv(this,this.JSC$9312_head_.prev)};
_.p.remove=function(B){return(B=this.JSC$9312_map_.get(B))?(this.removeNode(B),!0):!1};
_.p.removeNode=function(B){B.remove();this.JSC$9312_map_.remove(B.key)};
_.p.getCount=function(){return this.JSC$9312_map_.getCount()};
_.p.isEmpty=function(){return this.JSC$9312_map_.isEmpty()};
_.p.getKeys=function(){return this.map(function(B,R){return R})};
_.p.getValues=function(){return this.map(function(B){return B})};
_.p.contains=function(B){return this.some(function(R){return R==B})};
_.p.containsKey=function(B){return this.JSC$9312_map_.containsKey(B)};
_.p.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9312_head_.prev)};
_.p.forEach=function(B,R){for(var V=this.JSC$9312_head_.next;V!=this.JSC$9312_head_;V=V.next)B.call(R,V.value,V.key,this)};
_.p.map=function(B,R){for(var V=[],e=this.JSC$9312_head_.next;e!=this.JSC$9312_head_;e=e.next)V.push(B.call(R,e.value,e.key,this));return V};
_.p.some=function(B,R){for(var V=this.JSC$9312_head_.next;V!=this.JSC$9312_head_;V=V.next)if(B.call(R,V.value,V.key,this))return!0;return!1};
_.p.every=function(B,R){for(var V=this.JSC$9312_head_.next;V!=this.JSC$9312_head_;V=V.next)if(!B.call(R,V.value,V.key,this))return!1;return!0};
_.p.insert_=function(B){B.next=this.JSC$9312_head_.next;B.prev=this.JSC$9312_head_;this.JSC$9312_head_.next=B;for(B.next.prev=B;this.getCount()>40;)this.removeNode(this.JSC$9312_head_.prev)};
var vpv=function(B,R){B.JSC$9312_head_!=R&&B.removeNode(R);return R.value},THS=function(B,R){this.key=B;
this.value=R};
THS.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Ka5=function(){pC.apply(this,arguments)};
_.l(Ka5,pC);Ka5.prototype.enqueue=function(B,R){this.insert(B,R)};var Iqv=function(){var B=Error();B.name="SecurityError";throw B;},T7_=function(){return{get opener(){return null},
get closed(){return!0},get location(){Iqv()},get document(){Iqv()},postMessage:function(){},
close:function(){},
focus:function(){}}};var sHp={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 gQS={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 Epl={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(gQS).join("|");var Q_S=function(){function B(b){b.substr(-1)!==";"&&(b+=";");return t(b)}
for(var R=Object.keys(Epl).sort(rnS),V=Object.keys(gQS).sort(rnS),e=0,X=0;e<V.length;e++)R[X]===V[e]?(V[e]+=";?",X++):V[e]+=";";var Y=new RegExp("&(?:"+V.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),t=Zio();return function(b){return String(b).replace(Y,B)}}();/*

 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 qxa={};var cMS=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"),AM_=/[\\&]/,iJ4=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),s_5=RegExp('[&<>"]',"g"),Fal=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),rMS=function(B){return B.charCodeAt(0)===92?B.charAt(1):Q_S(B)},gpo=function(B){return AM_.test(B)?B.replace(iJ4,rMS):B},ZJT=function(B){try{var R,V="";
if(typeof X!=="string"){var e=X;var X=";/?:@&=+$,-_.!~*'()#"}typeof e==="undefined"&&(e=!0);var Y,t=qxa[X];if(t)var b=t;else{t=qxa[X]=[];for(Y=0;Y<128;Y++){var J=String.fromCharCode(Y);/^[0-9a-z]$/i.test(J)?t.push(J):t.push("%"+("0"+Y.toString(16).toUpperCase()).slice(-2))}for(Y=0;Y<X.length;Y++)t[X.charCodeAt(Y)]=X[Y];b=t}var G=0;for(R=B.length;G<R;G++){var y=B.charCodeAt(G);if(e&&y===37&&G+2<R&&/^[0-9a-f]{2}$/i.test(B.slice(G+1,G+3)))V+=B.slice(G,G+3),G+=2;else if(y<128)V+=b[y];else if(y>=55296&&
y<=57343){if(y>=55296&&y<=56319&&G+1<R){var S=B.charCodeAt(G+1);if(S>=56320&&S<=57343){V+=encodeURIComponent(B[G]+B[G+1]);G++;continue}}V+="%EF%BF%BD"}else V+=encodeURIComponent(B[G])}return V}catch(M){return B}},mUo=function(B){switch(B){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return B}},W6=function(B,R){return s_5.test(B)?R?B.replace(Fal,mUo):B.replace(s_5,mUo):B};/*

 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 bv;if(String.fromCodePoint)bv=function(B){try{return String.fromCodePoint(B)}catch(R){if(R instanceof RangeError)return String.fromCharCode(65533);throw R;}};
else{var $Ul=String.fromCharCode,Cpl=Math.floor;bv=function(){var B=[],R=-1,V=arguments.length;if(!V)return"";for(var e="";++R<V;){var X=Number(arguments[R]);if(!isFinite(X)||X<0||X>1114111||Cpl(X)!==X)return String.fromCharCode(65533);if(X<=65535)B.push(X);else{X-=65536;var Y=(X>>10)+55296;X=X%1024+56320;B.push(Y,X)}if(R+1===V||B.length>16384)e+=$Ul.apply(null,B),B.length=0}return e}};var PpS=function(B){this.root=this.current=B;this.entering=!0};
PpS.prototype.next=function(){var B=this.current,R=this.entering;if(B===null)return null;a:switch(B._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 V=!0;break a;default:V=!1}R&&V?B._firstChild?(this.current=B._firstChild,this.entering=!0):this.entering=!1:B===this.root?this.current=null:B._next===null?(this.current=
B._parent,this.entering=!1):(this.current=B._next,this.entering=!0);return{entering:R,node:B}};
var Ya=function(B,R){this._type=B;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=R;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
Ya.prototype.appendChild=function(B){JT(B);B._parent=this;this._lastChild?(this._lastChild._next=B,B._prev=this._lastChild):this._firstChild=B;this._lastChild=B};
var JT=function(B){B._prev?B._prev._next=B._next:B._parent&&(B._parent._firstChild=B._next);B._next?B._next._prev=B._prev:B._parent&&(B._parent._lastChild=B._prev);B._parent=null;B._next=null;B._prev=null},np5=function(B,R){JT(R);
R._next=B._next;R._next&&(R._next._prev=R);R._prev=B;B._next=R;R._parent=B._parent;R._next||(R._parent._lastChild=R)};
Ya.prototype.insertBefore=function(B){JT(B);B._prev=this._prev;B._prev&&(B._prev._next=B);B._next=this;this._prev=B;B._parent=this._parent;B._prev||(B._parent._firstChild=B)};
_.mh.Object.defineProperties(Ya.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(B){this._literal=B}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(B){this._destination=B}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(B){this._title=B}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(B){this._info=B}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(B){this._level=B}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(B){this._listData.type=B}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(B){this._listData.tight=B}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(B){this._listData.start=B}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(B){this._onEnter=B}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(B){this._onExit=B}}});var mlY=/[ \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,
$lu={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 uXG=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]/),
OJ5=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),oTv=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),BlS=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),RIl=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),VRv=/`+/,eIR=/^`+/,XK5=/\.\.\./g,pK4=/--+/g,Y52=/^<([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])?)*)>/,
hI_=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,tRG=/^ *(?:\n *)?/,WR_=/^[ \t\n\x0b\x0c\x0d]/,bcb=/[ \t\n\x0b\x0c\x0d]+/g,JJS=/^\s/,jTb=/ *$/,U9b=/^ */,Nla=/^ *(?:\n|$)/,G2S=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),yJb=/^[^\n`\[\]\\!<&*_'"]+/m,jo=function(B){var R=new Ya("text");R._literal=B;return R},Ur=function(B){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=B||{}};
Ur.prototype.match=function(B){B=B.exec(this.subject.slice(this.pos));if(B===null)return null;this.pos+=B.index+B[0].length;return B[0]};
Ur.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Nk=function(B){B.match(tRG);return!0},S55=function(B,R,V){var e=0;
var X=B.pos;if(R===39||R===34)e++,B.pos++;else for(;B.peek()===R;)e++,B.pos++;if(e===0)e=null;else{var Y=X===0?"\n":B.subject.charAt(X-1);var t=B.peek();t=t===-1?"\n":bv(t);var b=JJS.test(t);t=uXG.test(t);var J=JJS.test(Y);var G=uXG.test(Y);Y=!b&&!(t&&!J&&!G);b=!J&&!(G&&!b&&!t);R===95?(J=Y&&(!b||G),t=b&&(!Y||t)):(J=R===39||R===34?Y&&!b:Y,t=b);B.pos=X;e={numdelims:e,can_open:J,can_close:t}}if(!e)return!1;X=e.numdelims;t=B.pos;B.pos+=X;t=R===39?"\u2019":R===34?"\u201c":B.subject.slice(t,B.pos);t=jo(t);
V.appendChild(t);B.delimiters={cc:R,numdelims:X,origdelims:X,node:t,previous:B.delimiters,next:null,can_open:e.can_open,can_close:e.can_close};B.delimiters.previous!==null&&(B.delimiters.previous.next=B.delimiters);return!0},HcR=function(B,R){R.previous!==null&&(R.previous.next=R.next);
R.next===null?B.delimiters=R.previous:R.next.previous=R.previous},MRR=function(B,R){var V,e,X=[],Y=!1;
X[95]=R;X[42]=R;X[39]=R;X[34]=R;for(V=B.delimiters;V!==null&&V.previous!==R;)V=V.previous;for(;V!==null;){var t=V.cc;if(V.can_close){var b=V.previous;for(e=!1;b!==null&&b!==R&&b!==X[t];){Y=(V.can_open||b.can_close)&&(b.origdelims+V.origdelims)%3===0;if(b.cc===V.cc&&b.can_open&&!Y){e=!0;break}b=b.previous}var J=V;if(t===42||t===95)if(e){var G=V.numdelims>=2&&b.numdelims>=2?2:1;var y=b.node;var S=V.node;b.numdelims-=G;V.numdelims-=G;y._literal=y._literal.slice(0,y._literal.length-G);S._literal=S._literal.slice(0,
S._literal.length-G);var M=new Ya(G===1?"emph":"strong");for(G=y._next;G&&G!==S;){var f=G._next;JT(G);M.appendChild(G);G=f}np5(y,M);G=b;f=V;G.next!==f&&(G.next=f,f.previous=G);b.numdelims===0&&(JT(y),HcR(B,b));V.numdelims===0&&(JT(S),b=V.next,HcR(B,V),V=b)}else V=V.next;else t===39?(V.node._literal="\u2019",e&&(b.node._literal="\u2018"),V=V.next):t===34&&(V.node._literal="\u201d",e&&(b.node.literal="\u201c"),V=V.next);e||Y||(X[t]=J.previous,J.can_open||HcR(B,J))}else V=V.next}for(;B.delimiters!==
null&&B.delimiters!==R;)HcR(B,B.delimiters)},k2o=function(B){B=B.match(OJ5);
return B===null?null:gpo(B.substr(1,B.length-2))},D9o=function(B){var R=B.match(oTv);
if(R===null){R=B.pos;for(var V=0,e;(e=B.peek())!==-1;)if(e===92)B.pos+=1,B.peek()!==-1&&(B.pos+=1);else if(e===40)B.pos+=1,V+=1;else if(e===41)if(V<1)break;else B.pos+=1,--V;else if(WR_.exec(bv(e))!==null)break;else B.pos+=1;R=B.subject.substr(R,B.pos-R);return ZJT(gpo(R))}return ZJT(gpo(R.substr(1,R.length-2)))},f9h=function(B){B=B.match(G2S);
return B===null||B.length>1001?0:B.length},l9T=function(B,R,V,e){B.brackets!==null&&(B.brackets.bracketAfter=!0);
B.brackets={node:R,previous:B.brackets,previousDelimiter:B.delimiters,index:V,image:e,active:!0}},zIT=function(B,R){var V;
return(V=B.match(yJb))?(B.options.smart?R.appendChild(jo(V.replace(XK5,"\u2026").replace(pK4,function(e){var X=0,Y=0;e.length%3===0?Y=e.length/3:e.length%2===0?X=e.length/2:e.length%3===2?(X=1,Y=(e.length-2)/3):(X=2,Y=(e.length-4)/3);e="";var t;for(t=0;t<Y;t++)e+="\u2014";for(t=0;t<X;t++)e+="\u2013";return e}))):R.appendChild(jo(V)),!0):!1},a94=function(B,R,V){B.subject=R;
B.pos=0;R=B.pos;var e=f9h(B);if(e===0)return 0;var X=B.subject.substr(0,e);if(B.peek()===58)B.pos++;else return B.pos=R,0;Nk(B);e=D9o(B);if(e===null||e.length===0)return B.pos=R,0;var Y=B.pos;Nk(B);var t=k2o(B);t===null&&(t="",B.pos=Y);var b=!0;B.match(Nla)===null&&(t===""?b=!1:(t="",B.pos=Y,b=B.match(Nla)!==null));if(!b)return B.pos=R,0;X=C5x(X);if(X==="")return B.pos=R,0;V[X]||(V[X]={destination:e,title:t});return B.pos-R},d9R=function(B,R){var V,e=B.peek();
if(e===-1)return!1;switch(e){case 10:B.pos+=1;if((V=R._lastChild)&&V.type==="text"&&V._literal[V._literal.length-1]===" "){var X=V._literal[V._literal.length-2]===" ";V._literal=V._literal.replace(jTb,"");R.appendChild(new Ya(X?"linebreak":"softbreak"))}else R.appendChild(new Ya("softbreak"));B.match(U9b);V=!0;break;case 92:V=B.subject;B.pos+=1;B.peek()===10?(B.pos+=1,V=new Ya("linebreak"),R.appendChild(V)):BlS.test(V.charAt(B.pos))?(R.appendChild(jo(V.charAt(B.pos))),B.pos+=1):R.appendChild(jo("\\"));
V=!0;break;case 96:a:if(V=B.match(eIR),V===null)V=!1;else{X=B.pos;for(var Y;(Y=B.match(VRv))!==null;)if(Y===V){Y=new Ya("code");Y._literal=B.subject.slice(X,B.pos-V.length).trim().replace(bcb," ");R.appendChild(Y);V=!0;break a}B.pos=X;R.appendChild(jo(V));V=!0}break;case 42:case 95:V=S55(B,e,R);break;case 39:case 34:V=B.options.smart&&S55(B,e,R);break;case 91:V=B.pos;B.pos+=1;X=jo("[");R.appendChild(X);l9T(B,X,V,!1);V=!0;break;case 33:V=B.pos;B.pos+=1;B.peek()===91?(B.pos+=1,X=jo("!["),R.appendChild(X),
l9T(B,X,V+1,!0)):R.appendChild(jo("!"));V=!0;break;case 93:var t,b=!1,J;B.pos+=1;var G=B.pos;X=B.brackets;if(X===null)R.appendChild(jo("]"));else if(X.active){V=X.image;var y=B.pos;B.peek()===40&&(B.pos++,Nk(B)&&(Y=D9o(B))!==null&&Nk(B)&&(WR_.test(B.subject.charAt(B.pos-1))&&(t=k2o(B)),1)&&Nk(B)&&B.peek()===41?(B.pos+=1,b=!0):B.pos=y);if(!b){var S=B.pos,M=f9h(B);M>2?J=B.subject.slice(S,S+M):X.bracketAfter||(J=B.subject.slice(X.index,G));M===0&&(B.pos=y);J&&(J=B.refmap[C5x(J)])&&(Y=J.destination,t=
J.title,b=!0)}if(b){G=new Ya(V?"image":"link");G._destination=Y;G._title=t||"";for(Y=X.node._next;Y;)t=Y._next,JT(Y),G.appendChild(Y),Y=t;R.appendChild(G);MRR(B,X.previousDelimiter);B.brackets=B.brackets.previous;JT(X.node);if(!V)for(X=B.brackets;X!==null;)X.image||(X.active=!1),X=X.previous}else B.brackets=B.brackets.previous,B.pos=G,R.appendChild(jo("]"))}else R.appendChild(jo("]")),B.brackets=B.brackets.previous;V=!0;break;case 60:(V=B.match(Y52))?(V=V.slice(1,V.length-1),X=new Ya("link"),X._destination=
ZJT("mailto:"+V),X._title="",X.appendChild(jo(V)),R.appendChild(X),V=!0):(V=B.match(hI_))?(V=V.slice(1,V.length-1),X=new Ya("link"),X._destination=ZJT(V),X._title="",X.appendChild(jo(V)),R.appendChild(X),V=!0):V=!1;V||(V=B.match(cMS),V===null?V=!1:(X=new Ya("html_inline"),X._literal=V,R.appendChild(X),V=!0));break;case 38:(V=B.match(RIl))?(R.appendChild(jo(Q_S(V))),V=!0):V=!1;break;default:V=zIT(B,R)}V||(B.pos+=1,R.appendChild(jo(bv(e))));return!0};
Ur.prototype.parseInlines=function(B){this.subject=B._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;d9R(this,B););B._string_content=null;MRR(this,null)};
Ur.prototype.parse=Ur.prototype.parseInlines;var wKv=[/./,/^<(?: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")],Tlh=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],x9v=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,LR5=/^[#`~*+_=<>0-9-\|]|\|/,vT2=/[^ \t\f\v\r\n]/,KR4=/^[*+-]/,I95=/^(\d{1,9})([.)])/,ETv=/^#{1,6}(?:[ \t]+|$)/,QTa=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,q5S=/^(?:`{3,}|~{3,})(?= *$)/,cJ2=/^(?:=+|-+)[ \t]*$/,AJh=/\r\n|\n|\r/,nQS=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,uMd=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,ic4={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(B){return B!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(B,R){for(B=R._firstChild;B;){if(P5o(B)&&B._next){R._listData.tight=!1;break}for(var V=B._firstChild;V;){if(P5o(V)&&(B._next||V._next)){R._listData.tight=!1;break}V=V._next}B=B._next}},
canContain:function(B){return B==="item"},
acceptsLines:!1},block_quote:{continue:function(B){var R=B.currentLine;if(B.indented||XO(R,B.nextNonspace)!==62)return 1;G0(B);So(B,1,!1);ek(XO(R,B.offset))&&So(B,1,!0);return 0},
finalize:function(){},
canContain:function(B){return B!=="item"},
acceptsLines:!1},item:{continue:function(B,R){if(B.blank){if(R._firstChild==null)return 1;G0(B)}else if(B.indent>=R._listData.markerOffset+R._listData.padding)So(B,R._listData.markerOffset+R._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(B){return B!=="item"&&!Oio(B)},
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(B,R){var V=B.currentLine,e=B.indent;if(R._isFenced){if((e=e<=3&&V.charAt(B.nextNonspace)===R._fenceChar&&V.slice(B.nextNonspace).match(q5S))&&e[0].length>=R._fenceLength)return B.finalize(R,B.lineNumber),2;for(R=R._fenceOffset;R>0&&ek(XO(V,B.offset));)So(B,1,!0),R--}else if(e>=4)So(B,4,!0);else if(B.blank)G0(B);else return 1;return 0},
finalize:function(B,R){if(R._isFenced){var V=R._string_content,e=V.indexOf("\n");B=V.slice(0,e);V=V.slice(e+1);R.info=gpo(B.trim());R._literal=V}else R._literal=R._string_content.replace(/(\n *)+$/,"\n");R._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(B,R){return!B.blank||R._htmlBlockType!==6&&R._htmlBlockType!==7?0:1},
finalize:function(B,R){R._literal=R._string_content.replace(/(\n *)+$/,"");R._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(B){return B.blank?1:0},
finalize:function(B,R){for(var V,e=!1;XO(R._string_content,0)===91&&(V=a94(B.inlineParser,R._string_content,B.refmap));)R._string_content=R._string_content.slice(V),e=!0;e&&!vT2.test(R._string_content)&&JT(R)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(B){return pp(B.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(B){return B=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(B,R){if(!R._rowIsDelimiter){B=R._isHeader?"th":"td";for(var V=R._parent._tableColumns,e=R._string_content,X=0,Y="",t,b=R._sourcepos[0][0];X<e.length;){switch(e[X]){case "|":t&&(t._string_content=Y.trim(),Y="",t=null,V--,V<=0&&(X=e.length));break;default:if(!t){t=new Ya(B,[[b,X],[b,X]]);var J=R._parent._columnAlignment,G=R._parent._tableColumns-V;J&&G<=J.length&&G>=0&&(t._alignment=J[G]);R.appendChild(t)}Y+=e[X];t._sourcepos[1][1]=X}X++}t&&(t._string_content=Y.trim());R._string_content=
""}},
canContain:function(B){return B!=="row"},
acceptsLines:!1}},sTG=[function(B){if(B.indented||XO(B.currentLine,B.nextNonspace)!==62)return 0;G0(B);So(B,1,!1);ek(XO(B.currentLine,B.offset))&&So(B,1,!0);H6(B);B.addChild("block_quote",B.nextNonspace);return 1},
function(B){var R;if(!B.indented&&(R=B.currentLine.slice(B.nextNonspace).match(ETv))){G0(B);So(B,R[0].length,!1);H6(B);var V=B.addChild("heading",B.nextNonspace);V.level=R[0].trim().length;V._string_content=B.currentLine.slice(B.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");So(B,B.currentLine.length-B.offset);return 2}return 0},
function(B){var R;if(!B.indented&&(R=B.currentLine.slice(B.nextNonspace).match(QTa))){var V=R[0].length;H6(B);var e=B.addChild("code_block",B.nextNonspace);e._isFenced=!0;e._fenceLength=V;e._fenceChar=R[0][0];e._fenceOffset=B.indent;G0(B);So(B,V,!1);return 2}return 0},
function(B,R){if(!B.indented&&XO(B.currentLine,B.nextNonspace)===60){var V=B.currentLine.slice(B.nextNonspace),e;for(e=1;e<=7;e++)if(wKv[e].test(V)&&(e<7||R.type!=="paragraph"))return H6(B),B.addChild("html_block",B.offset)._htmlBlockType=e,2}return 0},
function(B,R){var V;if(!B.indented&&R.type==="paragraph"&&(V=B.currentLine.slice(B.nextNonspace).match(cJ2))){H6(B);var e=new Ya("heading",R.sourcepos);e.level=V[0][0]==="="?1:2;e._string_content=R._string_content;np5(R,e);JT(R);B.tip=e;So(B,B.currentLine.length-B.offset,!1);return 2}return 0},
function(B){return!B.indented&&x9v.test(B.currentLine.slice(B.nextNonspace))?(H6(B),B.addChild("thematic_break",B.nextNonspace),So(B,B.currentLine.length-B.offset,!1),2):0},
function(B,R){var V,e;if(!(e=B.indented&&R.type!=="list")){a:{var X=R,Y=B.currentLine.slice(B.nextNonspace);e={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:B.indent};if(V=Y.match(KR4))e.type="bullet",e.bulletChar=V[0][0];else{if(!(V=Y.match(I95))||X.type==="paragraph"&&V[1]!=="1"){V=null;break a}e.type="ordered";e.start=parseInt(V[1],10);e.delimiter=V[2]}var t=XO(B.currentLine,B.nextNonspace+V[0].length);if(t!==-1&&t!==9&&t!==32||X.type==="paragraph"&&!B.currentLine.slice(B.nextNonspace+
V[0].length).match(vT2))V=null;else{G0(B);So(B,V[0].length,!0);X=B.column;Y=B.offset;do So(B,1,!0),t=XO(B.currentLine,B.offset);while(B.column-X<5&&ek(t));t=XO(B.currentLine,B.offset)===-1;var b=B.column-X;b>=5||b<1||t?(e.padding=V[0].length+1,B.column=X,B.offset=Y,ek(XO(B.currentLine,B.offset))&&So(B,1,!0)):e.padding=V[0].length+b;V=e}}e=!V}if(e)return 0;H6(B);(e=B.tip.type!=="list")||(R=R._listData,e=!(R.type===V.type&&R.delimiter===V.delimiter&&R.bulletChar===V.bulletChar));e&&(R=B.addChild("list",
B.nextNonspace),R._listData=V);R=B.addChild("item",B.nextNonspace);R._listData=V;return 1},
function(B){var R;return((R=B.options.shouldParseIndentAsCodeBlock)!=null?R:1)&&B.indented&&B.tip.type!=="paragraph"&&!B.blank?(So(B,4,!0),H6(B),B.addChild("code_block",B.offset),2):0},
function(B,R){var V=pp(B.currentLine),e=pp(B.lookahead);if(V!==0&&e<0&&Math.abs(V)==Math.abs(e)&&!Oio(R.type)){H6(B);R=B.addChild("table",B.nextNonspace);R._tableRows=1;R._tableColumns=Math.abs(V);V=B.lookahead;if(uMd.test(V)){e=[];for(var X=0,Y=!1,t=0,b=void 0;X<V.length;){var J=t>=3;switch(V[X]){case "-":t++;break;case "|":Y&&(e.push(b),b=void 0,t=0);Y=!0;break;case ":":b||J||(b="left"),!b&&J&&(b="right"),b==="left"&&J&&(b="center")}X++}V=e}else V=void 0;R._columnAlignment=V;R=B.addChild("row",
B.nextNonspace);R._isHeader=!0;So(B,B.currentLine.length-B.offset,!1);R._string_content=B.currentLine;return 1}return 0},
function(B,R){if(R.type=="table"&&pp(B.currentLine)!==0){H6(B);var V=R;R=B.addChild("row",B.nextNonspace);pp(B.currentLine)<0?R._rowIsDelimiter=!0:V._tableRows+=1;So(B,B.currentLine.length-B.offset,!1);R._string_content=B.currentLine;return 2}return 0}],Y2I=function(){var B={shouldParseIndentAsCodeBlock:!1};
B=B===void 0?{}:B;this.lastMatchedContainer=this.doc=oUu();this.refmap={};this.lastLineLength=0;this.inlineParser=new Ur(B);this.options=B;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=ic4;this.blockStarts=sTG},FRT=function(B){B.partiallyConsumedTab&&(B.offset+=1,B.tip._string_content+=" ".repeat(4-B.column%
4));
B.tip._string_content+=B.currentLine.slice(B.offset)+"\n"};
Y2I.prototype.addChild=function(B,R){for(;!this.blocks[this.tip.type].canContain(B);)this.finalize(this.tip,this.lineNumber-1);B=new Ya(B,[[this.lineNumber,R+1],[0,0]]);B._string_content="";this.tip.appendChild(B);return this.tip=B};
var H6=function(B){if(!B.allClosed){for(;B.oldtip!==B.lastMatchedContainer;){var R=B.oldtip._parent;B.finalize(B.oldtip,B.lineNumber-1);B.oldtip=R}B.allClosed=!0}},So=function(B,R,V){for(var e=B.currentLine,X,Y;R>0&&(Y=e[B.offset]);)Y==="\t"?(X=4-B.column%4,V?(B.partiallyConsumedTab=X>R,X=X>R?R:X,B.column+=X,B.offset+=B.partiallyConsumedTab?0:1,R-=X):(B.partiallyConsumedTab=!1,B.column+=X,B.offset+=1,--R)):(B.partiallyConsumedTab=!1,B.offset+=1,B.column+=1,--R)},G0=function(B){B.offset=B.nextNonspace;
B.column=B.nextNonspaceColumn;B.partiallyConsumedTab=!1},rJG=function(B){for(var R=B.currentLine,V=B.offset,e=B.column,X;(X=R.charAt(V))!=="";)if(X===" ")V++,e++;
else if(X==="\t")V++,e+=4-e%4;else break;B.blank=X==="\n"||X==="\r"||X==="";B.nextNonspace=V;B.nextNonspaceColumn=e;B.indent=B.nextNonspaceColumn-B.column;B.indented=B.indent>=4};
Y2I.prototype.finalize=function(B,R){var V=B._parent;B._open=!1;B.sourcepos[1]=[R,this.lastLineLength];this.blocks[B.type].finalize(this,B);this.tip=V};
Y2I.prototype.parse=function(B){this.tip=this.doc=oUu();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!B)return this.doc;this.options.time&&console.time("preparing input");var R=B.split(AJh),V=R.length;B.charCodeAt(B.length-1)===10&&--V;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(B=0;B<V;B++)a:{var e=void 0,X=R[B],Y=R[B+1],t=!0,b=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=Y;(e=b._lastChild)&&e._open;){b=e;rJG(this);switch(this.blocks[b.type].continue(this,b)){case 0:break;case 1:t=!1;break;case 2:this.lastLineLength=X.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!t){b=b._parent;break}}this.allClosed=b===this.oldtip;this.lastMatchedContainer=
b;e=b.type!=="paragraph"&&ic4[b.type].acceptsLines;Y=this.blockStarts;for(t=Y.length;!e;){rJG(this);if(!this.indented&&!LR5.test(X.slice(this.nextNonspace))){G0(this);break}for(var J=0;J<t;){var G=Y[J](this,b);if(G===1){b=this.tip;break}else if(G===2){b=this.tip;e=!0;break}else J++}if(J===t){G0(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){H6(this);this.blank&&b.lastChild&&(b.lastChild._lastLineBlank=!0);e=b.type;Y=this.blank&&!(e==="block_quote"||e==="code_block"&&b._isFenced||
e==="item"&&!b._firstChild&&b.sourcepos[0][0]===this.lineNumber);for(t=b;t;)t._lastLineBlank=Y,t=t._parent;this.blocks[e].acceptsLines?(FRT(this),e==="html_block"&&b._htmlBlockType>=1&&b._htmlBlockType<=5&&Tlh[b._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(b,this.lineNumber)):this.offset<X.length&&!this.blank&&(this.addChild("paragraph",this.offset),G0(this),FRT(this))}else FRT(this);this.lastLineLength=X.length}for(;this.tip;)this.finalize(this.tip,V);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");X=new PpS(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;V=X.next();)R=V.node,B=R.type,V.entering||B!=="paragraph"&&B!=="heading"&&B!=="th"&&B!="td"||this.inlineParser.parse(R);this.options.time&&console.timeEnd("inline parsing");return this.doc};BXZ.prototype.render=function(B){B=new PpS(B);var R;this.buffer="";for(this.lastOut="\n";R=B.next();){var V=R.node.type;if(this[V])this[V](R.node,R.entering)}return this.buffer};
BXZ.prototype.out=function(B){Mk(this,B)};
var Mk=function(B,R){B.buffer+=R;B.lastOut=R};
BXZ.prototype.cr=function(){this.lastOut!=="\n"&&Mk(this,"\n")};var gT4=/^javascript:|vbscript:|file:|data:/i,Zc4=/^data:image\/(?:png|gif|jpeg|webp)/i,m9_=function(B){return gT4.test(B)&&!Zc4.test(B)};
hZ.prototype=Object.create(BXZ.prototype);_.p=hZ.prototype;_.p.text=function(B){this.out(B.literal)};
_.p.html_inline=function(B){this.options.safe?Mk(this,"\x3c!-- raw HTML omitted --\x3e"):Mk(this,B.literal)};
_.p.html_block=function(B){this.cr();this.options.safe?Mk(this,"\x3c!-- raw HTML omitted --\x3e"):Mk(this,B.literal);this.cr()};
_.p.softbreak=function(){Mk(this,this.options.softbreak)};
_.p.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.p.link=function(B,R){var V=this.attrs(B);R?(this.options.safe&&m9_(B.destination)||V.push(["href",W6(B.destination,!0)]),B.title&&V.push(["title",W6(B.title,!0)]),this.tag("a",V)):this.tag("/a")};
_.p.image=function(B,R){R?(this.disableTags===0&&(this.options.safe&&m9_(B.destination)?Mk(this,'<img src="" alt="'):Mk(this,'<img src="'+W6(B.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(B.title&&Mk(this,'" title="'+W6(B.title,!0)),Mk(this,'" />')))};
_.p.emph=function(B,R){this.tag(R?"em":"/em")};
_.p.strong=function(B,R){this.tag(R?"strong":"/strong")};
_.p.paragraph=function(B,R){var V=B.parent.parent;B=this.attrs(B);V!==null&&V.type==="list"&&V.listTight||(R?(this.cr(),this.tag("p",B)):(this.tag("/p"),this.cr()))};
_.p.heading=function(B,R){var V="h"+B.level;B=this.attrs(B);R?(this.cr(),this.tag(V,B)):(this.tag("/"+V),this.cr())};
_.p.code=function(B){this.tag("code");this.out(B.literal);this.tag("/code")};
_.p.code_block=function(B){var R=B.info?B.info.split(/\s+/):[],V=this.attrs(B);R.length>0&&R[0].length>0&&V.push(["class","language-"+W6(R[0],!0)]);this.cr();this.tag("pre");this.tag("code",V);this.out(B.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.p.thematic_break=function(B){B=this.attrs(B);this.cr();this.tag("hr",B,!0);this.cr()};
_.p.block_quote=function(B,R){B=this.attrs(B);R?(this.cr(),this.tag("blockquote",B)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.p.list=function(B,R){var V=B.listType==="bullet"?"ul":"ol",e=this.attrs(B);R?(B=B.listStart,B!==null&&B!==1&&e.push(["start",B.toString()]),this.cr(),this.tag(V,e)):(this.cr(),this.tag("/"+V));this.cr()};
_.p.item=function(B,R){B=this.attrs(B);R?this.tag("li",B):(this.tag("/li"),this.cr())};
_.p.custom_inline=function(B,R){R&&B.onEnter?Mk(this,B.onEnter):!R&&B.onExit&&Mk(this,B.onExit)};
_.p.custom_block=function(B,R){this.cr();R&&B.onEnter?Mk(this,B.onEnter):!R&&B.onExit&&Mk(this,B.onExit);this.cr()};
_.p.table=function(B,R){B=this.attrs(B);R?(this.cr(),this.tag("table",B)):(this.tag("/table"),this.cr())};
_.p.row=function(B,R){B._rowIsDelimiter||(B=this.attrs(B),R?this.tag("tr",B):this.tag("/tr"))};
_.p.td=function(B,R){var V=this.attrs(B);B._alignment&&V.push(["align",B._alignment]);R?this.tag("td",V):this.tag("/td")};
_.p.th=function(B,R){var V=this.attrs(B);B._alignment&&V.push(["align",B._alignment]);R?this.tag("th",V):this.tag("/th")};
_.p.out=function(B){Mk(this,W6(B,!1))};
_.p.tag=function(B,R,V){if(!(this.disableTags>0)){this.buffer+="<"+B;if(R&&R.length>0){B=0;for(var e;(e=R[B])!==void 0;)this.buffer+=" "+e[0]+'="'+e[1]+'"',B++}V&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.p.attrs=function(B){var R=[];this.options.sourcepos&&(B=B.sourcepos)&&R.push(["data-sourcepos",String(B[0][0])+":"+String(B[0][1])+"-"+String(B[1][0])+":"+String(B[1][1])]);return R};
hZ.prototype.text=hZ.prototype.text;hZ.prototype.html_inline=hZ.prototype.html_inline;hZ.prototype.html_block=hZ.prototype.html_block;hZ.prototype.softbreak=hZ.prototype.softbreak;hZ.prototype.linebreak=hZ.prototype.linebreak;hZ.prototype.link=hZ.prototype.link;hZ.prototype.image=hZ.prototype.image;hZ.prototype.emph=hZ.prototype.emph;hZ.prototype.strong=hZ.prototype.strong;hZ.prototype.paragraph=hZ.prototype.paragraph;hZ.prototype.heading=hZ.prototype.heading;hZ.prototype.code=hZ.prototype.code;
hZ.prototype.code_block=hZ.prototype.code_block;hZ.prototype.thematic_break=hZ.prototype.thematic_break;hZ.prototype.block_quote=hZ.prototype.block_quote;hZ.prototype.list=hZ.prototype.list;hZ.prototype.item=hZ.prototype.item;hZ.prototype.custom_inline=hZ.prototype.custom_inline;hZ.prototype.custom_block=hZ.prototype.custom_block;hZ.prototype.table=hZ.prototype.table;hZ.prototype.row=hZ.prototype.row;hZ.prototype.td=hZ.prototype.td;hZ.prototype.th=hZ.prototype.th;hZ.prototype.out=hZ.prototype.out;
hZ.prototype.tag=hZ.prototype.tag;hZ.prototype.attrs=hZ.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 $9v,CaJ,Tao;(function(){function B(x,d){return x<d?-1:x>d?1:x>=d?0:NaN}
function R(x){return function(d,I){return B(x(d),I)}}
function V(){for(var x=0,d=arguments.length,I={},C;x<d;++x){if(!(C=arguments[x]+"")||C in I)throw Error("re`"+C);I[C]=[]}return new e(I)}
function e(x){this._=x}
function X(x,d){return x.trim().split(/^|\s+/).map(function(I){var C="",Xp=I.indexOf(".");Xp>=0&&(C=I.slice(Xp+1),I=I.slice(0,Xp));if(I&&!d.hasOwnProperty(I))throw Error("se`"+I);return{type:I,name:C}})}
function Y(x,d,I){for(var C=0,Xp=x.length;C<Xp;++C)if(x[C].name===d){x[C]=WK4;x=x.slice(0,C).concat(x.slice(C+1));break}I!=null&&x.push({name:d,value:I});return x}
function t(x){var d=x,I=d.indexOf(":");I>=0&&(d=x.slice(0,I))!=="xmlns"&&(x=x.slice(I+1));return gL.hasOwnProperty(d)?{space:gL[d],local:x}:x}
function b(x){return function(){var d=this.ownerDocument,I=this.namespaceURI;return I==="http://www.w3.org/1999/xhtml"&&d.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?d.createElement(x):d.createElementNS(I,x)}}
function J(x){return function(){return this.ownerDocument.createElementNS(x.space,x.local)}}
function G(x){x=t(x);return(x.local?J:b)(x)}
function y(){}
function S(x){return x==null?y:function(){return this.querySelector(x)}}
function M(x){return Array(x.length)}
function f(x,d){this.ownerDocument=x.ownerDocument;this.namespaceURI=x.namespaceURI;this._next=null;this._parent=x;this.__data__=d}
function z(x){return function(){return x}}
function T(x,d,I,C,Xp,JA){for(var Sq=0,dx,o4=d.length,Pd=JA.length;Sq<Pd;++Sq)(dx=d[Sq])?(dx.__data__=JA[Sq],C[Sq]=dx):I[Sq]=new f(x,JA[Sq]);for(;Sq<o4;++Sq)if(dx=d[Sq])Xp[Sq]=dx}
function L(x,d,I,C,Xp,JA,Sq){var dx,o4,Pd={},B2=d.length,jJ=JA.length,$5=Array(B2),j2;for(dx=0;dx<B2;++dx)if(o4=d[dx])$5[dx]=j2="$"+Sq.call(o4,o4.__data__,dx,d),j2 in Pd?Xp[dx]=o4:Pd[j2]=o4;for(dx=0;dx<jJ;++dx)j2="$"+Sq.call(x,JA[dx],dx,JA),(o4=Pd[j2])?(C[dx]=o4,o4.__data__=JA[dx],Pd[j2]=null):I[dx]=new f(x,JA[dx]);for(dx=0;dx<B2;++dx)(o4=d[dx])&&Pd[$5[dx]]===o4&&(Xp[dx]=o4)}
function Q(x,d){return x<d?-1:x>d?1:x>=d?0:NaN}
function q(x){return function(){this.removeAttribute(x)}}
function m(x){return function(){this.removeAttributeNS(x.space,x.local)}}
function g(x,d){return function(){this.setAttribute(x,d)}}
function Vu(x,d){return function(){this.setAttributeNS(x.space,x.local,d)}}
function n(x,d){return function(){var I=d.apply(this,arguments);I==null?this.removeAttribute(x):this.setAttribute(x,I)}}
function Yd(x,d){return function(){var I=d.apply(this,arguments);I==null?this.removeAttributeNS(x.space,x.local):this.setAttributeNS(x.space,x.local,I)}}
function kd(x){return function(){this.style.removeProperty(x)}}
function a5(x,d,I){return function(){this.style.setProperty(x,d,I)}}
function lo(x,d,I){return function(){var C=d.apply(this,arguments);C==null?this.style.removeProperty(x):this.style.setProperty(x,C,I)}}
function io(x,d){return x.style.getPropertyValue(d)||(x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView).getComputedStyle(x,null).getPropertyValue(d)}
function vd(x){return function(){delete this[x]}}
function cd(x,d){return function(){this[x]=d}}
function ES(x,d){return function(){var I=d.apply(this,arguments);I==null?delete this[x]:this[x]=I}}
function $d(){this.textContent=""}
function Eo(x){return function(){this.textContent=x}}
function GG(x){return function(){var d=x.apply(this,arguments);this.textContent=d==null?"":d}}
function eJ(){this.innerHTML=""}
function pR(x){return function(){this.innerHTML=x}}
function d4(x){return function(){var d=x.apply(this,arguments);this.innerHTML=d==null?"":d}}
function W2(){return null}
function By(){var x=this.parentNode;x&&x.removeChild(this)}
function DY(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function hA(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function fR(x,d,I){x=Qv(x,d,I);return function(C){var Xp=C.relatedTarget;Xp&&(Xp===this||Xp.compareDocumentPosition(this)&8)||x.call(this,C)}}
function Qv(x,d,I){return function(){x.call(this,this.__data__,d,I)}}
function i4(x){return x.trim().split(/^|\s+/).map(function(d){var I="",C=d.indexOf(".");C>=0&&(I=d.slice(C+1),d=d.slice(0,C));return{type:d,name:I}})}
function TG(x){return function(){var d=this.__on;if(d){for(var I=0,C=-1,Xp=d.length,JA;I<Xp;++I)(JA=d[I],x.type&&JA.type!==x.type||JA.name!==x.name)?d[++C]=JA:this.removeEventListener(JA.type,JA.listener,JA.capture);++C?d.length=C:delete this.__on}}}
function ZS(x,d,I){var C=k0v.hasOwnProperty(x.type)?fR:Qv;return function(Xp,JA,Sq){Xp=this.__on;var dx;JA=C(d,JA,Sq);if(Xp){Sq=0;for(var o4=Xp.length;Sq<o4;++Sq)if((dx=Xp[Sq]).type===x.type&&dx.name===x.name){this.removeEventListener(dx.type,dx.listener,dx.capture);this.addEventListener(dx.type,dx.listener=JA,dx.capture=I);dx.value=d;return}}this.addEventListener(x.type,JA,I);dx={type:x.type,name:x.name,value:d,listener:JA,capture:I};Xp?Xp.push(dx):this.__on=[dx]}}
function $b(x,d,I){var C=x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView,Xp=C.CustomEvent;typeof Xp==="function"?Xp=new Xp(d,I):(Xp=C.document.createEvent("Event"),I?(Xp.initEvent(d,I.bubbles,I.cancelable),Xp.detail=I.detail):Xp.initEvent(d,!1,!1));x.dispatchEvent(Xp)}
function DS(x,d){return function(){return $b(this,x,d)}}
function CZ(x,d){return function(){return $b(this,x,d.apply(this,arguments))}}
function k5(x,d){this._groups=x;this._parents=d}
function tr(){return new k5([[document.documentElement]],bYe)}
function l_(){this._="@"+(++J_m).toString(36)}
function S2(x,d,I){x.prototype=d.prototype=I;I.constructor=x}
function tD(x,d){x=Object.create(x.prototype);for(var I in d)x[I]=d[I];return x}
function J$(){}
function s4(x){var d;x=(x+"").trim().toLowerCase();return(d=jpr.exec(x))?(d=parseInt(d[1],16),new Z7(d>>8&15|d>>4&240,d>>4&15|d&240,(d&15)<<4|d&15,1)):(d=Um4.exec(x))?kb(parseInt(d[1],16)):(d=NEe.exec(x))?new Z7(d[1],d[2],d[3],1):(d=Gw2.exec(x))?new Z7(d[1]*255/100,d[2]*255/100,d[3]*255/100,1):(d=y_e.exec(x))?Dh(d[1],d[2],d[3],d[4]):(d=SOm.exec(x))?Dh(d[1]*255/100,d[2]*255/100,d[3]*255/100,d[4]):(d=HY4.exec(x))?dz(d[1],d[2]/100,d[3]/100,1):(d=M9i.exec(x))?dz(d[1],d[2]/100,d[3]/100,d[4]):Dk2.hasOwnProperty(x)?
kb(Dk2[x]):x==="transparent"?new Z7(NaN,NaN,NaN,0):null}
function kb(x){return new Z7(x>>16&255,x>>8&255,x&255,1)}
function Dh(x,d,I,C){C<=0&&(x=d=I=NaN);return new Z7(x,d,I,C)}
function so(x){x instanceof J$||(x=s4(x));if(!x)return new Z7;x=x.rgb();return new Z7(x.r,x.g,x.b,x.opacity)}
function we(x,d,I,C){return arguments.length===1?so(x):new Z7(x,d,I,C==null?1:C)}
function Z7(x,d,I,C){this.r=+x;this.g=+d;this.b=+I;this.opacity=+C}
function Po(x){x=Math.max(0,Math.min(255,Math.round(x)||0));return(x<16?"0":"")+x.toString(16)}
function dz(x,d,I,C){C<=0?x=d=I=NaN:I<=0||I>=1?x=d=NaN:d<=0&&(x=NaN);return new Ez(x,d,I,C)}
function dk(x){if(x instanceof Ez)return new Ez(x.h,x.s,x.l,x.opacity);x instanceof J$||(x=s4(x));if(!x)return new Ez;if(x instanceof Ez)return x;x=x.rgb();var d=x.r/255,I=x.g/255,C=x.b/255,Xp=Math.min(d,I,C),JA=Math.max(d,I,C),Sq=NaN,dx=JA-Xp,o4=(JA+Xp)/2;dx?(Sq=d===JA?(I-C)/dx+(I<C)*6:I===JA?(C-d)/dx+2:(d-I)/dx+4,dx/=o4<.5?JA+Xp:2-JA-Xp,Sq*=60):dx=o4>0&&o4<1?0:Sq;return new Ez(Sq,dx,o4,x.opacity)}
function gV(x,d,I,C){return arguments.length===1?dk(x):new Ez(x,d,I,C==null?1:C)}
function Ez(x,d,I,C){this.h=+x;this.s=+d;this.l=+I;this.opacity=+C}
function rc(x,d,I){return(x<60?d+(I-d)*x/60:x<180?I:x<240?d+(I-d)*(240-x)/60:d)*255}
function jO(x){if(x instanceof MY)return new MY(x.l,x.a,x.b,x.opacity);if(x instanceof H2){if(isNaN(x.h))return new MY(x.l,0,0,x.opacity);var d=x.h*fVl;return new MY(x.l,Math.cos(d)*x.c,Math.sin(d)*x.c,x.opacity)}x instanceof Z7||(x=so(x));var I=e2(x.r),C=e2(x.g),Xp=e2(x.b);d=Qu(.2225045*I+.7168786*C+.0606169*Xp);if(I===C&&C===Xp)var JA=I=d;else JA=Qu((.4360747*I+.3850649*C+.1430804*Xp)/.96422),I=Qu((.0139322*I+.0971045*C+.7141733*Xp)/.82521);return new MY(116*d-16,500*(JA-d),200*(d-I),x.opacity)}
function MY(x,d,I,C){this.l=+x;this.a=+d;this.b=+I;this.opacity=+C}
function Qu(x){return x>kw4?Math.pow(x,1/3):x/lVo+zXa}
function Fp(x){return x>hW?x*x*x:lVo*(x-zXa)}
function NT(x){return 255*(x<=.0031308?12.92*x:1.055*Math.pow(x,1/2.4)-.055)}
function e2(x){return(x/=255)<=.04045?x/12.92:Math.pow((x+.055)/1.055,2.4)}
function Lf(x){if(x instanceof H2)return new H2(x.h,x.c,x.l,x.opacity);x instanceof MY||(x=jO(x));if(x.a===0&&x.b===0)return new H2(NaN,0,x.l,x.opacity);var d=Math.atan2(x.b,x.a)*aVl;return new H2(d<0?d+360:d,Math.sqrt(x.a*x.a+x.b*x.b),x.l,x.opacity)}
function b4(x,d,I,C){return arguments.length===1?Lf(x):new H2(x,d,I,C==null?1:C)}
function H2(x,d,I,C){this.h=+x;this.c=+d;this.l=+I;this.opacity=+C}
function SJ(x,d,I,C){if(arguments.length===1){var Xp=x;if(Xp instanceof Jr)Xp=new Jr(Xp.h,Xp.s,Xp.l,Xp.opacity);else{Xp instanceof Z7||(Xp=so(Xp));var JA=Xp.g/255,Sq=Xp.b/255,dx=(dkR*Sq+Xp.r/255*-1.7884503806-3.5172982438*JA)/(dkR+-1.7884503806-3.5172982438);Sq-=dx;var o4=(1.97294*(JA-dx)- -.29227*Sq)/-.90649;Sq=(JA=Math.sqrt(o4*o4+Sq*Sq)/(1.97294*dx*(1-dx)))?Math.atan2(o4,Sq)*aVl-120:NaN;Xp=new Jr(Sq<0?Sq+360:Sq,JA,dx,Xp.opacity)}}else Xp=new Jr(x,d,I,C==null?1:C);return Xp}
function Jr(x,d,I,C){this.h=+x;this.s=+d;this.l=+I;this.opacity=+C}
function zX(x,d,I,C,Xp){var JA=x*x,Sq=JA*x;return((1-3*x+3*JA-Sq)*d+(4-6*JA+3*Sq)*I+(1+3*x+3*JA-3*Sq)*C+Sq*Xp)/6}
function hh(x){return function(){return x}}
function DM(x,d){return function(I){return x+I*d}}
function Cd(x,d,I){return x=Math.pow(x,I),d=Math.pow(d,I)-x,I=1/I,function(C){return Math.pow(x+C*d,I)}}
function Q5(x,d){var I=d-x;return I?DM(x,I>180||I<-180?I-360*Math.round(I/360):I):hh(isNaN(x)?d:x)}
function Pn(x){return(x=+x)===1?q_:function(d,I){return I-d?Cd(d,I,x):hh(isNaN(d)?I:d)}}
function q_(x,d){var I=d-x;return I?DM(x,I):hh(isNaN(x)?d:x)}
function f7(x){return function(d){var I=d.length,C=Array(I),Xp=Array(I),JA=Array(I),Sq;for(Sq=0;Sq<I;++Sq){var dx=we(d[Sq]);C[Sq]=dx.r||0;Xp[Sq]=dx.g||0;JA[Sq]=dx.b||0}C=x(C);Xp=x(Xp);JA=x(JA);dx.opacity=1;return function(o4){dx.r=C(o4);dx.g=Xp(o4);dx.b=JA(o4);return dx+""}}}
function nx(x,d){return x=+x,d-=x,function(I){return x+d*I}}
function nZ(x){return function(){return x}}
function Nj(x){return function(d){return x(d)+""}}
function fe(x,d){var I=jhN.lastIndex=Ukx.lastIndex=0,C,Xp,JA,Sq=-1,dx=[],o4=[];x+="";for(d+="";(C=jhN.exec(x))&&(Xp=Ukx.exec(d));)(JA=Xp.index)>I&&(JA=d.slice(I,JA),dx[Sq]?dx[Sq]+=JA:dx[++Sq]=JA),(C=C[0])===(Xp=Xp[0])?dx[Sq]?dx[Sq]+=Xp:dx[++Sq]=Xp:(dx[++Sq]=null,o4.push({i:Sq,x:nx(C,Xp)})),I=Ukx.lastIndex;I<d.length&&(JA=d.slice(I),dx[Sq]?dx[Sq]+=JA:dx[++Sq]=JA);return dx.length<2?o4[0]?Nj(o4[0].x):nZ(d):(d=o4.length,function(Pd){for(var B2=0,jJ;B2<d;++B2)dx[(jJ=o4[B2]).i]=jJ.x(Pd);return dx.join("")})}
function Kf(x,d,I,C,Xp,JA){var Sq,dx,o4;if(Sq=Math.sqrt(x*x+d*d))x/=Sq,d/=Sq;if(o4=x*I+d*C)I-=x*o4,C-=d*o4;if(dx=Math.sqrt(I*I+C*C))I/=dx,C/=dx,o4/=dx;x*C<d*I&&(x=-x,d=-d,o4=-o4,Sq=-Sq);return{translateX:Xp,translateY:JA,rotate:Math.atan2(d,x)*w6R,skewX:Math.atan(o4)*w6R,scaleX:Sq,scaleY:dx}}
function Xf(x,d,I,C){function Xp(Pd){return Pd.length?Pd.pop()+" ":""}
function JA(Pd,B2,jJ,$5,j2,y5){Pd!==jJ||B2!==$5?(j2=j2.push("translate(",null,d,null,I),y5.push({i:j2-4,x:nx(Pd,jJ)},{i:j2-2,x:nx(B2,$5)})):(jJ||$5)&&j2.push("translate("+jJ+d+$5+I)}
function Sq(Pd,B2,jJ,$5){Pd!==B2?(Pd-B2>180?B2+=360:B2-Pd>180&&(Pd+=360),$5.push({i:jJ.push(Xp(jJ)+"rotate(",null,C)-2,x:nx(Pd,B2)})):B2&&jJ.push(Xp(jJ)+"rotate("+B2+C)}
function dx(Pd,B2,jJ,$5){Pd!==B2?$5.push({i:jJ.push(Xp(jJ)+"skewX(",null,C)-2,x:nx(Pd,B2)}):B2&&jJ.push(Xp(jJ)+"skewX("+B2+C)}
function o4(Pd,B2,jJ,$5,j2,y5){Pd!==jJ||B2!==$5?(j2=j2.push(Xp(j2)+"scale(",null,",",null,")"),y5.push({i:j2-4,x:nx(Pd,jJ)},{i:j2-2,x:nx(B2,$5)})):jJ===1&&$5===1||j2.push(Xp(j2)+"scale("+jJ+","+$5+")")}
return function(Pd,B2){var jJ=[],$5=[];Pd=x(Pd);B2=x(B2);JA(Pd.translateX,Pd.translateY,B2.translateX,B2.translateY,jJ,$5);Sq(Pd.rotate,B2.rotate,jJ,$5);dx(Pd.skewX,B2.skewX,jJ,$5);o4(Pd.scaleX,Pd.scaleY,B2.scaleX,B2.scaleY,jJ,$5);Pd=B2=null;return function(j2){for(var y5=-1,ZM=$5.length,lD;++y5<ZM;)jJ[(lD=$5[y5]).i]=lD.x(j2);return jJ.join("")}}}
function Xx(x){return function(d,I){var C=x((d=gV(d)).h,(I=gV(I)).h),Xp=q_(d.s,I.s),JA=q_(d.l,I.l),Sq=q_(d.opacity,I.opacity);return function(dx){d.h=C(dx);d.s=Xp(dx);d.l=JA(dx);d.opacity=Sq(dx);return d+""}}}
function sZ(x){return function(d,I){var C=x((d=b4(d)).h,(I=b4(I)).h),Xp=q_(d.c,I.c),JA=q_(d.l,I.l),Sq=q_(d.opacity,I.opacity);return function(dx){d.h=C(dx);d.c=Xp(dx);d.l=JA(dx);d.opacity=Sq(dx);return d+""}}}
function kU(x){return function C(I){function Xp(JA,Sq){var dx=x((JA=SJ(JA)).h,(Sq=SJ(Sq)).h),o4=q_(JA.s,Sq.s),Pd=q_(JA.l,Sq.l),B2=q_(JA.opacity,Sq.opacity);return function(jJ){JA.h=dx(jJ);JA.s=o4(jJ);JA.l=Pd(Math.pow(jJ,I));JA.opacity=B2(jJ);return JA+""}}
I=+I;Xp.gamma=C;return Xp}(1)}
function ss(){return A0||(Tv_(mjZ),A0=ut.now()+kaA)}
function mjZ(){A0=0}
function kn(){this._call=this._time=this._next=null}
function Zn(x,d,I){var C=new kn;C.restart(x,d,I);return C}
function mS(){A0=(DW_=ut.now())+kaA;tW=OK=0;try{ss();++tW;for(var x=fmo,d;x;)(d=A0-x._time)>=0&&x._call.call(null,d),x=x._next;--tW}finally{tW=0;x=fmo;for(var I=Infinity;x;)if(x._call){I>x._time&&(I=x._time);var C=x;x=x._next}else d=x._next,x._next=null,x=C?C._next=d:fmo=d;ol=C;$C(I);A0=0}}
function LJN(){var x=ut.now(),d=x-DW_;d>1E3&&(kaA-=d,DW_=x)}
function $C(x){tW||(OK&&(OK=clearTimeout(OK)),x-A0>24?(x<Infinity&&(OK=setTimeout(mS,x-ut.now()-kaA)),Bp&&(Bp=clearInterval(Bp))):(Bp||(DW_=ut.now(),Bp=setInterval(LJN,1E3)),tW=1,Tv_(mS)))}
function xkR(x,d,I){var C=new kn;d=d==null?0:+d;C.restart(function(Xp){C.stop();x(Xp+d)},d,I);
return C}
function NvK(x,d,I,C,Xp,JA){var Sq=x.__transition;if(!Sq)x.__transition={};else if(I in Sq)return;DmN(x,I,{name:d,index:C,group:Xp,on:f16,tween:l1m,time:JA.time,delay:JA.delay,duration:JA.duration,ease:JA.ease,timer:null,state:0})}
function G0u(x,d){x=WT(x,d);if(x.state>0)throw Error("te");return x}
function iM(x,d){x=WT(x,d);if(x.state>2)throw Error("ue");return x}
function WT(x,d){x=x.__transition;if(!x||!(x=x[d]))throw Error("ve");return x}
function DmN(x,d,I){function C(o4){var Pd,B2;if(I.state!==1)return JA();for($5 in Sq){var jJ=Sq[$5];if(jJ.name===I.name){if(jJ.state===3)return xkR(C);jJ.state===4?(jJ.state=6,jJ.timer.stop(),jJ.on.call("interrupt",x,x.__data__,jJ.index,jJ.group),delete Sq[$5]):+$5<d&&(jJ.state=6,jJ.timer.stop(),delete Sq[$5])}}xkR(function(){I.state===3&&(I.state=4,I.timer.restart(Xp,I.delay,I.time),Xp(o4))});
I.state=2;I.on.call("start",x,x.__data__,I.index,I.group);if(I.state===2){I.state=3;dx=Array(B2=I.tween.length);var $5=0;for(Pd=-1;$5<B2;++$5)if(jJ=I.tween[$5].value.call(x,x.__data__,I.index,I.group))dx[++Pd]=jJ;dx.length=Pd+1}}
function Xp(o4){o4=o4<I.duration?I.ease.call(null,o4/I.duration):(I.timer.restart(JA),I.state=5,1);for(var Pd=-1,B2=dx.length;++Pd<B2;)dx[Pd].call(null,o4);I.state===5&&(I.on.call("end",x,x.__data__,I.index,I.group),JA())}
function JA(){I.state=6;I.timer.stop();delete Sq[d];for(var o4 in Sq)return;delete x.__transition}
var Sq=x.__transition,dx;Sq[d]=I;I.timer=Zn(function(o4){I.state=1;I.timer.restart(C,I.delay,I.time);I.delay<=o4&&C(o4-I.delay)},0,I.time)}
function zo2(x,d){var I,C;return function(){var Xp=iM(this,x),JA=Xp.tween;if(JA!==I){C=I=JA;JA=0;for(var Sq=C.length;JA<Sq;++JA)if(C[JA].name===d){C=C.slice();C.splice(JA,1);break}}Xp.tween=C}}
function a12(x,d,I){var C,Xp;if(typeof I!=="function")throw Error();return function(){var JA=iM(this,x),Sq=JA.tween;if(Sq!==C){Xp=(C=Sq).slice();Sq={name:d,value:I};for(var dx=0,o4=Xp.length;dx<o4;++dx)if(Xp[dx].name===d){Xp[dx]=Sq;break}dx===o4&&Xp.push(Sq)}JA.tween=Xp}}
function yTd(x,d,I){var C=x._id;x.each(function(){var Xp=iM(this,C);(Xp.value||(Xp.value={}))[d]=I.apply(this,arguments)});
return function(Xp){return WT(Xp,C).value[d]}}
function Lpv(x,d){var I;return(typeof d==="number"?nx:d instanceof s4?vIG:(I=s4(d))?(d=I,vIG):fe)(x,d)}
function dmU(x){return function(){this.removeAttribute(x)}}
function wxo(x){return function(){this.removeAttributeNS(x.space,x.local)}}
function TEm(x,d,I){var C,Xp;return function(){var JA=this.getAttribute(x);return JA===I?null:JA===C?Xp:Xp=d(C=JA,I)}}
function xmm(x,d,I){var C,Xp;return function(){var JA=this.getAttributeNS(x.space,x.local);return JA===I?null:JA===C?Xp:Xp=d(C=JA,I)}}
function LK2(x,d,I){var C,Xp,JA;return function(){var Sq=I(this);if(Sq==null)return void this.removeAttribute(x);var dx=this.getAttribute(x);return dx===Sq?null:dx===C&&Sq===Xp?JA:JA=d(C=dx,Xp=Sq)}}
function vPn(x,d,I){var C,Xp,JA;return function(){var Sq=I(this);if(Sq==null)return void this.removeAttributeNS(x.space,x.local);var dx=this.getAttributeNS(x.space,x.local);return dx===Sq?null:dx===C&&Sq===Xp?JA:JA=d(C=dx,Xp=Sq)}}
function KKe(x,d){function I(){var C=this,Xp=d.apply(C,arguments);return Xp&&function(JA){C.setAttributeNS(x.space,x.local,Xp(JA))}}
I._value=d;return I}
function I1r(x,d){function I(){var C=this,Xp=d.apply(C,arguments);return Xp&&function(JA){C.setAttribute(x,Xp(JA))}}
I._value=d;return I}
function EPN(x,d){return function(){G0u(this,x).delay=+d.apply(this,arguments)}}
function Qp2(x,d){return d=+d,function(){G0u(this,x).delay=d}}
function qOj(x,d){return function(){iM(this,x).duration=+d.apply(this,arguments)}}
function c_o(x,d){return d=+d,function(){iM(this,x).duration=d}}
function A_e(x,d){if(typeof d!=="function")throw Error();return function(){iM(this,x).ease=d}}
function iYo(x){return(x+"").trim().split(/^|\s+/).every(function(d){var I=d.indexOf(".");I>=0&&(d=d.slice(0,I));return!d||d==="start"})}
function sp2(x,d,I){var C,Xp,JA=iYo(d)?G0u:iM;return function(){var Sq=JA(this,x),dx=Sq.on;if(dx!==C)(Xp=(C=dx).copy()).on(d,I);Sq.on=Xp}}
function FKN(x){return function(){var d=this.parentNode,I;for(I in this.__transition)if(+I!==x)return;d&&d.removeChild(this)}}
function r_n(x,d){var I,C,Xp;return function(){var JA=io(this,x),Sq=(this.style.removeProperty(x),io(this,x));return JA===Sq?null:JA===I&&Sq===C?Xp:Xp=d(I=JA,C=Sq)}}
function gP4(x){return function(){this.style.removeProperty(x)}}
function ZYN(x,d,I){var C,Xp;return function(){var JA=io(this,x);return JA===I?null:JA===C?Xp:Xp=d(C=JA,I)}}
function mm2(x,d,I){var C,Xp,JA;return function(){var Sq=io(this,x),dx=I(this);dx==null&&(dx=(this.style.removeProperty(x),io(this,x)));return Sq===dx?null:Sq===C&&dx===Xp?JA:JA=d(C=Sq,Xp=dx)}}
function $m7(x,d,I){function C(){var Xp=this,JA=d.apply(Xp,arguments);return JA&&function(Sq){Xp.style.setProperty(x,JA(Sq),I)}}
C._value=d;return C}
function C94(x){return function(){this.textContent=x}}
function P92(x){return function(){var d=x(this);this.textContent=d==null?"":d}}
function b$(x,d,I,C){this._groups=x;this._parents=d;this._name=I;this._id=C}
function SrI(x){return{type:x}}
function HCd(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function lmq(){}
function Kph(x,d){var I=new lmq;if(x instanceof lmq)x.each(function(Sq,dx){I.set(dx,Sq)});
else if(Array.isArray(x)){var C=-1,Xp=x.length,JA;if(d==null)for(;++C<Xp;)I.set(C,x[C]);else for(;++C<Xp;)I.set(d(JA=x[C],C,x),JA)}else if(x)for(C in x)I.set(C,x[C]);return I}
function zTu(){}
function IVo(x){return function(d){for(var I={},C=0;C<x.length;C++)I[x[C]]=d[C]||"";return I}}
function nP2(x,d){var I=IVo(x);return function(C,Xp){return d(I(C),Xp,x)}}
function uKr(x){var d=Object.create(null),I=[];x.forEach(function(C){for(var Xp in C)Xp in d||I.push(d[Xp]=Xp)});
return I}
function EIo(x){function d(Sq,dx){function o4(){if(y5)return MoN;if(ZM)return ZM=!1,Qho;var Pf,oK=jJ,wi;if(Sq.charCodeAt(oK)===34){for(;jJ++<B2&&Sq.charCodeAt(jJ)!==34||Sq.charCodeAt(++jJ)===34;);(Pf=jJ)>=B2?y5=!0:(wi=Sq.charCodeAt(jJ++))===10?ZM=!0:wi===13&&(ZM=!0,Sq.charCodeAt(jJ)===10&&++jJ);return Sq.slice(oK+1,Pf-1).replace(/""/g,'"')}for(;jJ<B2;){if((wi=Sq.charCodeAt(Pf=jJ++))===10)ZM=!0;else if(wi===13)ZM=!0,Sq.charCodeAt(jJ)===10&&++jJ;else if(wi!==JA)continue;return Sq.slice(oK,Pf)}return y5=
!0,Sq.slice(oK,B2)}
var Pd=[],B2=Sq.length,jJ=0,$5=0,j2,y5=B2<=0,ZM=!1;Sq.charCodeAt(B2-1)===10&&--B2;for(Sq.charCodeAt(B2-1)===13&&--B2;(j2=o4())!==MoN;){for(var lD=[];j2!==Qho&&j2!==MoN;)lD.push(j2),j2=o4();dx&&(lD=dx(lD,$5++))==null||Pd.push(lD)}return Pd}
function I(Sq){return Sq.map(C).join(x)}
function C(Sq){return Sq==null?"":Xp.test(Sq)?'"'+Sq.replace(/"/g,'""')+'"':Sq}
var Xp=new RegExp('["'+x+"\n\r]"),JA=x.charCodeAt(0);return{parse:function(Sq,dx){var o4,Pd;Sq=d(Sq,function(B2,jJ){if(o4)return o4(B2,jJ-1);Pd=B2;o4=dx?nP2(B2,dx):IVo(B2)});
Sq.columns=Pd||[];return Sq},
parseRows:d,format:function(Sq,dx){dx==null&&(dx=uKr(Sq));return[dx.map(C).join(x)].concat(Sq.map(function(o4){return dx.map(function(Pd){return C(o4[Pd])}).join(x)})).join("\n")},
formatRows:function(Sq){return Sq.map(I).join("\n")}}}
function OYn(x){if(!x.ok)throw Error("we`"+x.status+"`"+x.statusText);return x.text()}
function qro(x){return function(d,I,C){arguments.length===2&&typeof I==="function"&&(C=I,I=void 0);return fetch(d,I).then(OYn).then(function(Xp){return x(Xp,C)})}}
function cT5(x,d,I,C){if(isNaN(d)||isNaN(I))return x;var Xp,JA=x._root;C={data:C};var Sq=x._x0,dx=x._y0,o4=x._x1,Pd=x._y1,B2,jJ,$5,j2,y5;if(!JA)return x._root=C,x;for(;JA.length;)if(($5=d>=(B2=(Sq+o4)/2))?Sq=B2:o4=B2,(j2=I>=(jJ=(dx+Pd)/2))?dx=jJ:Pd=jJ,Xp=JA,!(JA=JA[y5=j2<<1|$5]))return Xp[y5]=C,x;var ZM=+x._x.call(null,JA.data);var lD=+x._y.call(null,JA.data);if(d===ZM&&I===lD)return C.next=JA,Xp?Xp[y5]=C:x._root=C,x;do Xp=Xp?Xp[y5]=Array(4):x._root=Array(4),($5=d>=(B2=(Sq+o4)/2))?Sq=B2:o4=B2,(j2=
I>=(jJ=(dx+Pd)/2))?dx=jJ:Pd=jJ;while((y5=j2<<1|$5)===($5=(lD>=jJ)<<1|ZM>=B2));return Xp[$5]=JA,Xp[y5]=C,x}
function VL(x,d,I,C,Xp){this.node=x;this.x0=d;this.y0=I;this.x1=C;this.y1=Xp}
function o3i(x){return x[0]}
function BKN(x){return x[1]}
function k0u(x,d,I,C,Xp,JA){this._x=x;this._y=d;this._x0=I;this._y0=C;this._x1=Xp;this._y1=JA;this._root=void 0}
function AT2(x){for(var d={data:x.data},I=d;x=x.next;)I=I.next={data:x.data};return d}
function amx(x,d){if((d=(x=d?x.toExponential(d-1):x.toExponential()).indexOf("e"))<0)return null;var I=x.slice(0,d);return[I.length>1?I[0]+I.slice(2):I,+x.slice(d+1)]}
function REr(x){return x=amx(Math.abs(x)),x?x[1]:NaN}
function VIn(x,d){return function(I,C){for(var Xp=I.length,JA=[],Sq=0,dx=x[0],o4=0;Xp>0&&dx>0;){o4+dx+1>C&&(dx=Math.max(1,C-o4));JA.push(I.substring(Xp-=dx,Xp+dx));if((o4+=dx+1)>C)break;dx=x[Sq=(Sq+1)%x.length]}return JA.reverse().join(d)}}
function eEj(x){return function(d){return d.replace(/[0-9]/g,function(I){return x[+I]})}}
function Dkd(x){return new fVN(x)}
function fVN(x){if(!(d=X_6.exec(x)))throw Error("xe`"+x);var d;this.fill=d[1]||" ";this.align=d[2]||">";this.sign=d[3]||"-";this.symbol=d[4]||"";this.zero=!!d[5];this.width=d[6]&&+d[6];this.comma=!!d[7];this.precision=d[8]&&+d[8].slice(1);this.trim=!!d[9];this.type=d[10]||""}
function iC4(x,d){d=amx(x,d);if(!d)return x+"";x=d[0];d=d[1];return d<0?"0."+Array(-d).join("0")+x:x.length>d+1?x.slice(0,d+1)+"."+x.slice(d+1):x+Array(d-x.length+2).join("0")}
function sh2(x){return x}
function p_e(x){function d(dx){function o4($v){var GL=wi,Ti=bl,JD,Rm;if(oK==="c")Ti=BU($v)+Ti,$v="";else{$v=+$v;var Gi=$v<0;$v=BU(Math.abs($v),lD);if(Pf){var mo=$v.length,xD=1,n6=-1;a:for(;xD<mo;++xD)switch($v[xD]){case ".":n6=JD=xD;break;case "0":n6===0&&(n6=xD);JD=xD;break;default:if(!+$v[xD])break a;n6>0&&(n6=0)}$v=n6>0?$v.slice(0,n6)+$v.slice(JD+1):$v}Gi&&+$v===0&&(Gi=!1);GL=(Gi?jJ==="("?jJ:"-":jJ==="-"||jJ==="("?"":jJ)+GL;Ti=(oK==="s"?Fpa[8+rTv/3]:"")+Ti+(Gi&&jJ==="("?")":"");if(yc)for(Gi=-1,
JD=$v.length;++Gi<JD;)if(Rm=$v.charCodeAt(Gi),48>Rm||Rm>57){Ti=(Rm===46?Xp+$v.slice(Gi+1):$v.slice(Gi))+Ti;$v=$v.slice(0,Gi);break}}ZM&&!j2&&($v=I($v,Infinity));Rm=GL.length+$v.length+Ti.length;Gi=Rm<y5?Array(y5-Rm+1).join(Pd):"";ZM&&j2&&($v=I(Gi+$v,Gi.length?y5-Ti.length:Infinity),Gi="");switch(B2){case "<":$v=GL+$v+Ti+Gi;break;case "=":$v=GL+Gi+$v+Ti;break;case "^":$v=Gi.slice(0,Rm=Gi.length>>1)+GL+$v+Ti+Gi.slice(Rm);break;default:$v=Gi+GL+$v+Ti}return JA($v)}
dx=Dkd(dx);var Pd=dx.fill,B2=dx.align,jJ=dx.sign,$5=dx.symbol,j2=dx.zero,y5=dx.width,ZM=dx.comma,lD=dx.precision,Pf=dx.trim,oK=dx.type;oK==="n"?(ZM=!0,oK="g"):gI5[oK]||(lD==null&&(lD=12),Pf=!0,oK="g");if(j2||Pd==="0"&&B2==="=")j2=!0,Pd="0",B2="=";var wi=$5==="$"?C[0]:$5==="#"&&/[boxX]/.test(oK)?"0"+oK.toLowerCase():"",bl=$5==="$"?C[1]:/[%p]/.test(oK)?Sq:"",BU=gI5[oK],yc=/[defgprs%]/.test(oK);lD=lD==null?6:/[gprs]/.test(oK)?Math.max(1,Math.min(21,lD)):Math.max(0,Math.min(20,lD));o4.toString=function(){return dx+
""};
return o4}
var I=x.grouping&&x.thousands?VIn(x.grouping,x.thousands):sh2,C=x.currency,Xp=x.decimal,JA=x.numerals?eEj(x.numerals):sh2,Sq=x.percent||"%";return{format:d,formatPrefix:function(dx,o4){var Pd=d((dx=Dkd(dx),dx.type="f",dx));dx=Math.max(-8,Math.min(8,Math.floor(REr(o4)/3)))*3;var B2=Math.pow(10,-dx),jJ=Fpa[8+dx/3];return function($5){return Pd(B2*$5)+jJ}}}}
function i8(){this.reset()}
function ZCo(x,d,I){var C=x.s=d+I,Xp=C-d;x.t=d-(C-Xp)+(I-Xp)}
function dWN(x){return x>1?Zd:x<-1?-Zd:Math.asin(x)}
function Ynz(){}
function mka(x){var d=x[0];x=x[1];var I=m2(x);return[I*m2(d),I*E$(d),E$(x)]}
function $kG(x,d){return[x[1]*d[2]-x[2]*d[1],x[2]*d[0]-x[0]*d[2],x[0]*d[1]-x[1]*d[0]]}
function Cv_(x){var d=wUN(x[0]*x[0]+x[1]*x[1]+x[2]*x[2]);x[0]/=d;x[1]/=d;x[2]/=d}
function hE6(){var x=[],d;return{point:function(I,C){d.push([I,C])},
lineStart:function(){x.push(d=[])},
lineEnd:Ynz,rejoin:function(){x.length>1&&x.push(x.pop().concat(x.shift()))},
result:function(){var I=x;x=[];d=null;return I}}}
function TAK(x,d,I,C){this.x=x;this.z=d;this.o=I;this.e=C;this.v=!1;this.n=this.p=null}
function tIe(x,d,I,C,Xp){var JA=[],Sq=[];x.forEach(function(jJ){if(!(($5=jJ.length-1)<=0)){var $5,j2=jJ[0],y5=jJ[$5],ZM=j2;if(Jd(ZM[0]-y5[0])<1E-6&&Jd(ZM[1]-y5[1])<1E-6){Xp.lineStart();for(dx=0;dx<$5;++dx)Xp.point((j2=jJ[dx])[0],j2[1]);Xp.lineEnd()}else JA.push($5=new TAK(j2,jJ,null,!0)),Sq.push($5.o=new TAK(j2,null,$5,!1)),JA.push($5=new TAK(y5,jJ,null,!1)),Sq.push($5.o=new TAK(y5,null,$5,!0))}});
if(JA.length){Sq.sort(d);Pvl(JA);Pvl(Sq);var dx=0;for(x=Sq.length;dx<x;++dx)Sq[dx].e=I=!I;I=JA[0];for(var o4;;){for(var Pd=I,B2=!0;Pd.v;)if((Pd=Pd.n)===I)return;d=Pd.z;Xp.lineStart();do{Pd.v=Pd.o.v=!0;if(Pd.e){if(B2)for(dx=0,x=d.length;dx<x;++dx)Xp.point((o4=d[dx])[0],o4[1]);else C(Pd.x,Pd.n.x,1,Xp);Pd=Pd.n}else{if(B2)for(d=Pd.p.z,dx=d.length-1;dx>=0;--dx)Xp.point((o4=d[dx])[0],o4[1]);else C(Pd.x,Pd.p.x,-1,Xp);Pd=Pd.p}Pd=Pd.o;d=Pd.z;B2=!B2}while(!Pd.v);Xp.lineEnd()}}}
function Pvl(x){if(d=x.length){for(var d,I=0,C=x[0],Xp;++I<d;)C.n=Xp=x[I],Xp.p=C,C=Xp;C.n=Xp=x[0];Xp.p=C}}
function Wte(x){return x.length>1}
function bT4(x,d){return((x=x.x)[0]<0?x[1]-Zd-1E-6:Zd-x[1])-((d=d.x)[0]<0?d[1]-Zd-1E-6:Zd-d[1])}
function lVS(){}
function nIJ(x){return function(d,I){var C=m2(d),Xp=m2(I);C=x(C*Xp);return[C*Xp*E$(d),C*E$(I)]}}
function Rl(x){return function(d,I){var C=wUN(d*d+I*I),Xp=x(C),JA=E$(Xp);Xp=m2(Xp);return[u3_(d*JA,C*Xp),dWN(C&&I*JA/C)]}}
function J8n(x){var d=0,I=x.children,C=I&&I.length;if(C)for(;--C>=0;)d+=I[C].value;else d=1;x.value=d}
function OCl(x,d){var I=new VQ(x);x=+x.value&&(I.value=x.value);var C,Xp=[I],JA,Sq,dx,o4;for(d==null&&(d=jBr);C=Xp.pop();)if(x&&(C.value=+C.data.value),(Sq=d(C.data))&&(o4=Sq.length))for(C.children=Array(o4),dx=o4-1;dx>=0;--dx)Xp.push(JA=C.children[dx]=new VQ(Sq[dx])),JA.parent=C,JA.depth=C.depth+1;return I.eachBefore(UuU)}
function jBr(x){return x.children}
function NK4(x){x.data=x.data.data}
function UuU(x){var d=0;do x.height=d;while((x=x.parent)&&x.height<++d)}
function VQ(x){this.data=x;this.depth=this.height=0;this.parent=null}
function Dg(x,d,I,C){function Xp(JA){return x(JA=new Date(+JA)),JA}
Xp.floor=Xp;Xp.ceil=function(JA){return x(JA=new Date(JA-1)),d(JA,1),x(JA),JA};
Xp.round=function(JA){var Sq=Xp(JA),dx=Xp.ceil(JA);return JA-Sq<dx-JA?Sq:dx};
Xp.offset=function(JA,Sq){return d(JA=new Date(+JA),Sq==null?1:Math.floor(Sq)),JA};
Xp.range=function(JA,Sq,dx){var o4=[],Pd;JA=Xp.ceil(JA);dx=dx==null?1:Math.floor(dx);if(!(JA<Sq&&dx>0))return o4;do o4.push(Pd=new Date(+JA)),d(JA,dx),x(JA);while(Pd<JA&&JA<Sq);return o4};
Xp.filter=function(JA){return Dg(function(Sq){if(Sq>=Sq)for(;x(Sq),!JA(Sq);)Sq.setTime(Sq-1)},function(Sq,dx){if(Sq>=Sq)if(dx<0)for(;++dx<=0;)for(;d(Sq,-1),!JA(Sq););
else for(;--dx>=0;)for(;d(Sq,1),!JA(Sq););})};
I&&(Xp.count=function(JA,Sq){zXp.setTime(+JA);aVN.setTime(+Sq);x(zXp);x(aVN);return Math.floor(I(zXp,aVN))},Xp.every=function(JA){JA=Math.floor(JA);
return isFinite(JA)&&JA>0?JA>1?Xp.filter(C?function(Sq){return C(Sq)%JA===0}:function(Sq){return Xp.count(0,Sq)%JA===0}):Xp:null});
return Xp}
function sA(x){return Dg(function(d){d.setDate(d.getDate()-(d.getDay()+7-x)%7);d.setHours(0,0,0,0)},function(d,I){d.setDate(d.getDate()+I*7)},function(d,I){return(I-d-(I.getTimezoneOffset()-d.getTimezoneOffset())*6E4)/6048E5})}
function FI(x){return Dg(function(d){d.setUTCDate(d.getUTCDate()-(d.getUTCDay()+7-x)%7);d.setUTCHours(0,0,0,0)},function(d,I){d.setUTCDate(d.getUTCDate()+I*7)},function(d,I){return(I-d)/6048E5})}
function GHe(x){if(0<=x.y&&x.y<100){var d=new Date(-1,x.m,x.d,x.H,x.M,x.S,x.L);d.setFullYear(x.y);return d}return new Date(x.y,x.m,x.d,x.H,x.M,x.S,x.L)}
function xWY(x){if(0<=x.y&&x.y<100){var d=new Date(Date.UTC(-1,x.m,x.d,x.H,x.M,x.S,x.L));d.setUTCFullYear(x.y);return d}return new Date(Date.UTC(x.y,x.m,x.d,x.H,x.M,x.S,x.L))}
function eU(x){return{y:x,m:0,d:1,H:0,M:0,S:0,L:0}}
function y84(x){function d(Ti,JD){return function(Rm){var Gi=[],mo=-1,xD=0,n6=Ti.length,NN,xI;for(Rm instanceof Date||(Rm=new Date(+Rm));++mo<n6;)if(Ti.charCodeAt(mo)===37){Gi.push(Ti.slice(xD,mo));(xD=oi_[NN=Ti.charAt(++mo)])!=null?NN=Ti.charAt(++mo):xD=NN==="e"?" ":"0";if(xI=JD[NN])NN=xI(Rm,xD);Gi.push(NN);xD=mo+1}Gi.push(Ti.slice(xD,mo));return Gi.join("")}}
function I(Ti,JD){return function(Rm){var Gi=eU(1900);if(C(Gi,Ti,Rm,0)!=Rm.length)return null;if("Q"in Gi)return new Date(Gi.Q);"p"in Gi&&(Gi.H=Gi.H%12+Gi.p*12);if("V"in Gi){if(Gi.V<1||Gi.V>53)return null;"w"in Gi||(Gi.w=1);if("Z"in Gi){Rm=xWY(eU(Gi.y));var mo=Rm.getUTCDay();Rm=mo>4||mo===0?dkZ.ceil(Rm):dkZ(Rm);Rm=Bf5.offset(Rm,(Gi.V-1)*7);Gi.y=Rm.getUTCFullYear();Gi.m=Rm.getUTCMonth();Gi.d=Rm.getUTCDate()+(Gi.w+6)%7}else Rm=JD(eU(Gi.y)),mo=Rm.getDay(),Rm=mo>4||mo===0?w6Z.ceil(Rm):w6Z(Rm),Rm=Rrh.offset(Rm,
(Gi.V-1)*7),Gi.y=Rm.getFullYear(),Gi.m=Rm.getMonth(),Gi.d=Rm.getDate()+(Gi.w+6)%7}else if("W"in Gi||"U"in Gi)"w"in Gi||(Gi.w="u"in Gi?Gi.u%7:"W"in Gi?1:0),mo="Z"in Gi?xWY(eU(Gi.y)).getUTCDay():JD(eU(Gi.y)).getDay(),Gi.m=0,Gi.d="W"in Gi?(Gi.w+6)%7+Gi.W*7-(mo+5)%7:Gi.w+Gi.U*7-(mo+6)%7;return"Z"in Gi?(Gi.H+=Gi.Z/100|0,Gi.M+=Gi.Z%100,xWY(Gi)):JD(Gi)}}
function C(Ti,JD,Rm,Gi){for(var mo=0,xD=JD.length,n6=Rm.length,NN;mo<xD;){if(Gi>=n6)return-1;NN=JD.charCodeAt(mo++);if(NN===37){if(NN=JD.charAt(mo++),NN=GL[NN in oi_?JD.charAt(mo++):NN],!NN||(Gi=NN(Ti,Rm,Gi))<0)return-1}else if(NN!=Rm.charCodeAt(Gi++))return-1}return Gi}
var Xp=x.dateTime,JA=x.date,Sq=x.time,dx=x.periods,o4=x.days,Pd=x.shortDays,B2=x.months,jJ=x.shortMonths,$5=XG(dx),j2=p5(dx),y5=XG(o4),ZM=p5(o4),lD=XG(Pd),Pf=p5(Pd),oK=XG(B2),wi=p5(B2),bl=XG(jJ),BU=p5(jJ),yc={a:function(Ti){return Pd[Ti.getDay()]},
A:function(Ti){return o4[Ti.getDay()]},
b:function(Ti){return jJ[Ti.getMonth()]},
B:function(Ti){return B2[Ti.getMonth()]},
c:null,d:VE5,e:VE5,f:Snn,H:HTo,I:MI4,j:kHe,L:erS,m:DuU,M:fG6,p:function(Ti){return dx[+(Ti.getHours()>=12)]},
Q:XLb,s:pLv,S:lG4,u:zEi,U:aG7,V:du4,w:w_z,W:TK4,x:null,X:null,y:xuj,Y:Lt4,Z:v3r,"%":YN2},$v={a:function(Ti){return Pd[Ti.getUTCDay()]},
A:function(Ti){return o4[Ti.getUTCDay()]},
b:function(Ti){return jJ[Ti.getUTCMonth()]},
B:function(Ti){return B2[Ti.getUTCMonth()]},
c:null,d:hr5,e:hr5,f:Kt4,H:IG4,I:E3e,j:QBe,L:tE_,m:qnr,M:c86,p:function(Ti){return dx[+(Ti.getUTCHours()>=12)]},
Q:XLb,s:pLv,S:A82,u:iT4,U:sB4,V:FtU,w:r8e,W:g32,x:null,X:null,y:ZT2,Y:muN,Z:$uU,"%":YN2},GL={a:function(Ti,JD,Rm){return(JD=lD.exec(JD.slice(Rm)))?(Ti.w=Pf[JD[0].toLowerCase()],Rm+JD[0].length):-1},
A:function(Ti,JD,Rm){return(JD=y5.exec(JD.slice(Rm)))?(Ti.w=ZM[JD[0].toLowerCase()],Rm+JD[0].length):-1},
b:function(Ti,JD,Rm){return(JD=bl.exec(JD.slice(Rm)))?(Ti.m=BU[JD[0].toLowerCase()],Rm+JD[0].length):-1},
B:function(Ti,JD,Rm){return(JD=oK.exec(JD.slice(Rm)))?(Ti.m=wi[JD[0].toLowerCase()],Rm+JD[0].length):-1},
c:function(Ti,JD,Rm){return C(Ti,Xp,JD,Rm)},
d:W84,e:W84,f:CK2,H:btb,I:btb,j:PKm,L:n3m,m:udo,M:OTi,p:function(Ti,JD,Rm){return(JD=$5.exec(JD.slice(Rm)))?(Ti.p=j2[JD[0].toLowerCase()],Rm+JD[0].length):-1},
Q:o$2,s:BUe,S:R5n,u:VpN,U:e5N,V:XTm,w:pTU,W:Yer,x:function(Ti,JD,Rm){return C(Ti,JA,JD,Rm)},
X:function(Ti,JD,Rm){return C(Ti,Sq,JD,Rm)},
y:h5n,Y:tpi,Z:WH6,"%":ba6};yc.x=d(JA,yc);yc.X=d(Sq,yc);yc.c=d(Xp,yc);$v.x=d(JA,$v);$v.X=d(Sq,$v);$v.c=d(Xp,$v);return{format:function(Ti){var JD=d(Ti,yc);JD.toString=function(){return Ti};
return JD},
parse:function(Ti){var JD=I(Ti,GHe);JD.toString=function(){return Ti};
return JD},
utcFormat:function(Ti){var JD=d(Ti,$v);JD.toString=function(){return Ti};
return JD},
utcParse:function(Ti){var JD=I(Ti,xWY);JD.toString=function(){return Ti};
return JD}}}
function Dm(x,d,I){var C=x<0?"-":"";x=(C?-x:x)+"";var Xp=x.length;return C+(Xp<I?Array(I-Xp+1).join(d)+x:x)}
function JHe(x){return x.replace(jj4,"\\$&")}
function XG(x){return new RegExp("^(?:"+x.map(JHe).join("|")+")","i")}
function p5(x){for(var d={},I=-1,C=x.length;++I<C;)d[x[I].toLowerCase()]=I;return d}
function pTU(x,d,I){return(d=Tp.exec(d.slice(I,I+1)))?(x.w=+d[0],I+d[0].length):-1}
function VpN(x,d,I){return(d=Tp.exec(d.slice(I,I+1)))?(x.u=+d[0],I+d[0].length):-1}
function e5N(x,d,I){return(d=Tp.exec(d.slice(I,I+2)))?(x.U=+d[0],I+d[0].length):-1}
function XTm(x,d,I){return(d=Tp.exec(d.slice(I,I+2)))?(x.V=+d[0],I+d[0].length):-1}
function Yer(x,d,I){return(d=Tp.exec(d.slice(I,I+2)))?(x.W=+d[0],I+d[0].length):-1}
function tpi(x,d,I){return(d=Tp.exec(d.slice(I,I+4)))?(x.y=+d[0],I+d[0].length):-1}
function h5n(x,d,I){return(d=Tp.exec(d.slice(I,I+2)))?(x.y=+d[0]+(+d[0]>68?1900:2E3),I+d[0].length):-1}
function WH6(x,d,I){return(d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(I,I+6)))?(x.Z=d[1]?0:-(d[2]+(d[3]||"00")),I+d[0].length):-1}
function udo(x,d,I){return(d=Tp.exec(d.slice(I,I+2)))?(x.m=d[0]-1,I+d[0].length):-1}
function W84(x,d,I){return(d=Tp.exec(d.slice(I,I+2)))?(x.d=+d[0],I+d[0].length):-1}
function PKm(x,d,I){return(d=Tp.exec(d.slice(I,I+3)))?(x.m=0,x.d=+d[0],I+d[0].length):-1}
function btb(x,d,I){return(d=Tp.exec(d.slice(I,I+2)))?(x.H=+d[0],I+d[0].length):-1}
function OTi(x,d,I){return(d=Tp.exec(d.slice(I,I+2)))?(x.M=+d[0],I+d[0].length):-1}
function R5n(x,d,I){return(d=Tp.exec(d.slice(I,I+2)))?(x.S=+d[0],I+d[0].length):-1}
function n3m(x,d,I){return(d=Tp.exec(d.slice(I,I+3)))?(x.L=+d[0],I+d[0].length):-1}
function CK2(x,d,I){return(d=Tp.exec(d.slice(I,I+6)))?(x.L=Math.floor(d[0]/1E3),I+d[0].length):-1}
function ba6(x,d,I){return(x=UE4.exec(d.slice(I,I+1)))?I+x[0].length:-1}
function o$2(x,d,I){return(d=Tp.exec(d.slice(I)))?(x.Q=+d[0],I+d[0].length):-1}
function BUe(x,d,I){return(d=Tp.exec(d.slice(I)))?(x.Q=+d[0]*1E3,I+d[0].length):-1}
function VE5(x,d){return Dm(x.getDate(),d,2)}
function HTo(x,d){return Dm(x.getHours(),d,2)}
function MI4(x,d){return Dm(x.getHours()%12||12,d,2)}
function kHe(x,d){return Dm(1+Rrh.count(W1(x),x),d,3)}
function erS(x,d){return Dm(x.getMilliseconds(),d,3)}
function Snn(x,d){return erS(x,d)+"000"}
function DuU(x,d){return Dm(x.getMonth()+1,d,2)}
function fG6(x,d){return Dm(x.getMinutes(),d,2)}
function lG4(x,d){return Dm(x.getSeconds(),d,2)}
function zEi(x){x=x.getDay();return x===0?7:x}
function aG7(x,d){return Dm(NU2.count(W1(x),x),d,2)}
function du4(x,d){var I=x.getDay();x=I>=4||I===0?Tvo(x):Tvo.ceil(x);return Dm(Tvo.count(W1(x),x)+(W1(x).getDay()===4),d,2)}
function w_z(x){return x.getDay()}
function TK4(x,d){return Dm(w6Z.count(W1(x),x),d,2)}
function xuj(x,d){return Dm(x.getFullYear()%100,d,2)}
function Lt4(x,d){return Dm(x.getFullYear()%1E4,d,4)}
function v3r(x){x=x.getTimezoneOffset();return(x>0?"-":(x*=-1,"+"))+Dm(x/60|0,"0",2)+Dm(x%60,"0",2)}
function hr5(x,d){return Dm(x.getUTCDate(),d,2)}
function IG4(x,d){return Dm(x.getUTCHours(),d,2)}
function E3e(x,d){return Dm(x.getUTCHours()%12||12,d,2)}
function QBe(x,d){return Dm(1+Bf5.count(b7(x),x),d,3)}
function tE_(x,d){return Dm(x.getUTCMilliseconds(),d,3)}
function Kt4(x,d){return tE_(x,d)+"000"}
function qnr(x,d){return Dm(x.getUTCMonth()+1,d,2)}
function c86(x,d){return Dm(x.getUTCMinutes(),d,2)}
function A82(x,d){return Dm(x.getUTCSeconds(),d,2)}
function iT4(x){x=x.getUTCDay();return x===0?7:x}
function sB4(x,d){return Dm(G3N.count(b7(x),x),d,2)}
function FtU(x,d){var I=x.getUTCDay();x=I>=4||I===0?xkZ(x):xkZ.ceil(x);return Dm(xkZ.count(b7(x),x)+(b7(x).getUTCDay()===4),d,2)}
function r8e(x){return x.getUTCDay()}
function g32(x,d){return Dm(dkZ.count(b7(x),x),d,2)}
function ZT2(x,d){return Dm(x.getUTCFullYear()%100,d,2)}
function muN(x,d){return Dm(x.getUTCFullYear()%1E4,d,4)}
function $uU(){return"+0000"}
function YN2(){return"%"}
function XLb(x){return+x}
function pLv(x){return Math.floor(+x/1E3)}
function hq(x){for(var d=x.length/6|0,I=Array(d),C=0;C<d;)I[C]="#"+x.slice(C*6,++C*6);return I}
function $R(x){return yHe(x[x.length-1])}
function LoI(x){var d=x.length;return function(I){return x[Math.max(0,Math.min(d-1,Math.floor(I*d)))]}}
function JG_(x){this._context=x}
function jiJ(x){this._curve=x}
function Uf2(x,d,I){var C=x._x1-x._x0;d-=x._x1;var Xp=(x._y1-x._y0)/(C||d<0&&-0);x=(I-x._y1)/(d||C<0&&-0);return((Xp<0?-1:1)+(x<0?-1:1))*Math.min(Math.abs(Xp),Math.abs(x),.5*Math.abs((Xp*d+x*C)/(C+d)))||0}
function Nfh(x,d){var I=x._x1-x._x0;return I?(3*(x._y1-x._y0)/I-d)/2:d}
function Lpu(x,d,I){var C=x._x0,Xp=x._x1,JA=x._y1,Sq=(Xp-C)/3;x._context.bezierCurveTo(C+Sq,x._y0+Sq*d,Xp-Sq,JA-Sq*I,Xp,JA)}
function vI_(x){this._context=x}
function GlR(x){this._context=x}
function Yh(x,d,I){this.k=x;this.x=d;this.y=I}
(function(x){x.length===1&&(x=R(x));return{left:function(d,I,C,Xp){C==null&&(C=0);Xp==null&&(Xp=d.length);for(;C<Xp;){var JA=C+Xp>>>1;x(d[JA],I)<0?C=JA+1:Xp=JA}return C},
right:function(d,I,C,Xp){C==null&&(C=0);Xp==null&&(Xp=d.length);for(;C<Xp;){var JA=C+Xp>>>1;x(d[JA],I)>0?Xp=JA:C=JA+1}return C}}})(B);
var WK4={value:function(){}};
e.prototype=V.prototype={constructor:e,on:function(x,d){var I=this._,C=X(x+"",I),Xp,JA=-1,Sq=C.length;if(arguments.length<2)for(;++JA<Sq;){var dx;if(dx=Xp=(x=C[JA]).type){a:{dx=I[Xp];for(var o4=0,Pd=dx.length;o4<Pd;++o4)if((Xp=dx[o4]).name===x.name){Xp=Xp.value;break a}Xp=void 0}dx=Xp}if(dx)return Xp}else{if(d!=null&&typeof d!=="function")throw Error("ye`"+d);for(;++JA<Sq;)if(Xp=(x=C[JA]).type)I[Xp]=Y(I[Xp],x.name,d);else if(d==null)for(Xp in I)I[Xp]=Y(I[Xp],x.name,null);return this}},
copy:function(){var x={},d=this._,I;for(I in d)x[I]=d[I].slice();return new e(x)},
call:function(x,d){if((Xp=arguments.length-2)>0)for(var I=Array(Xp),C=0,Xp,JA;C<Xp;++C)I[C]=arguments[C+2];if(!this._.hasOwnProperty(x))throw Error("se`"+x);JA=this._[x];C=0;for(Xp=JA.length;C<Xp;++C)JA[C].value.apply(d,I)},
apply:function(x,d,I){if(!this._.hasOwnProperty(x))throw Error("se`"+x);x=this._[x];for(var C=0,Xp=x.length;C<Xp;++C)x[C].value.apply(d,I)}};
var gL={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/"},yG4=function(x){return function(){return this.matches(x)}};
if(typeof document!=="undefined"){var h9=document.documentElement;if(!h9.matches){var Se7=h9.webkitMatchesSelector||h9.msMatchesSelector||h9.mozMatchesSelector||h9.oMatchesSelector;yG4=function(x){return function(){return Se7.call(this,x)}}}}var SN_=yG4;
f.prototype={constructor:f,appendChild:function(x){return this._parent.insertBefore(x,this._next)},
insertBefore:function(x,d){return this._parent.insertBefore(x,d)},
querySelector:function(x){return this._parent.querySelector(x)},
querySelectorAll:function(x){return this._parent.querySelectorAll(x)}};
var k0v={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(k0v={mouseenter:"mouseover",mouseleave:"mouseout"}));var bYe=[null];k5.prototype=tr.prototype={constructor:k5,select:function(x){typeof x!=="function"&&(x=S(x));for(var d=this._groups,I=d.length,C=Array(I),Xp=0;Xp<I;++Xp)for(var JA=d[Xp],Sq=JA.length,dx=C[Xp]=Array(Sq),o4,Pd,B2=0;B2<Sq;++B2)(o4=JA[B2])&&(Pd=x.call(o4,o4.__data__,B2,JA))&&("__data__"in o4&&(Pd.__data__=o4.__data__),dx[B2]=Pd);return new k5(C,this._parents)},
filter:function(x){typeof x!=="function"&&(x=SN_(x));for(var d=this._groups,I=d.length,C=Array(I),Xp=0;Xp<I;++Xp)for(var JA=d[Xp],Sq=JA.length,dx=C[Xp]=[],o4,Pd=0;Pd<Sq;++Pd)(o4=JA[Pd])&&x.call(o4,o4.__data__,Pd,JA)&&dx.push(o4);return new k5(C,this._parents)},
data:function(x,d){if(!x)return j2=Array(this.size()),Pd=-1,this.each(function(oK){j2[++Pd]=oK}),j2;
var I=d?L:T,C=this._parents,Xp=this._groups;typeof x!=="function"&&(x=z(x));for(var JA=Xp.length,Sq=Array(JA),dx=Array(JA),o4=Array(JA),Pd=0;Pd<JA;++Pd){var B2=C[Pd],jJ=Xp[Pd],$5=jJ.length,j2=x.call(B2,B2&&B2.__data__,Pd,C),y5=j2.length,ZM=dx[Pd]=Array(y5),lD=Sq[Pd]=Array(y5);$5=o4[Pd]=Array($5);I(B2,jJ,ZM,lD,$5,j2,d);jJ=B2=0;for(var Pf;B2<y5;++B2)if($5=ZM[B2]){for(B2>=jJ&&(jJ=B2+1);!(Pf=lD[jJ])&&++jJ<y5;);$5._next=Pf||null}}Sq=new k5(Sq,C);Sq._enter=dx;Sq._exit=o4;return Sq},
exit:function(){return new k5(this._exit||this._groups.map(M),this._parents)},
merge:function(x){var d=this._groups;x=x._groups;for(var I=d.length,C=Math.min(I,x.length),Xp=Array(I),JA=0;JA<C;++JA)for(var Sq=d[JA],dx=x[JA],o4=Sq.length,Pd=Xp[JA]=Array(o4),B2,jJ=0;jJ<o4;++jJ)if(B2=Sq[jJ]||dx[jJ])Pd[jJ]=B2;for(;JA<I;++JA)Xp[JA]=d[JA];return new k5(Xp,this._parents)},
order:function(){for(var x=this._groups,d=-1,I=x.length;++d<I;)for(var C=x[d],Xp=C.length-1,JA=C[Xp],Sq;--Xp>=0;)if(Sq=C[Xp])JA&&JA!==Sq.nextSibling&&JA.parentNode.insertBefore(Sq,JA),JA=Sq;return this},
sort:function(x){function d(jJ,$5){return jJ&&$5?x(jJ.__data__,$5.__data__):!jJ-!$5}
x||(x=Q);for(var I=this._groups,C=I.length,Xp=Array(C),JA=0;JA<C;++JA){for(var Sq=I[JA],dx=Sq.length,o4=Xp[JA]=Array(dx),Pd,B2=0;B2<dx;++B2)if(Pd=Sq[B2])o4[B2]=Pd;o4.sort(d)}return(new k5(Xp,this._parents)).order()},
call:function(){var x=arguments[0];arguments[0]=this;x.apply(null,arguments);return this},
nodes:function(){var x=Array(this.size()),d=-1;this.each(function(){x[++d]=this});
return x},
node:function(){for(var x=this._groups,d=0,I=x.length;d<I;++d)for(var C=x[d],Xp=0,JA=C.length;Xp<JA;++Xp){var Sq=C[Xp];if(Sq)return Sq}return null},
size:function(){var x=0;this.each(function(){++x});
return x},
empty:function(){return!this.node()},
each:function(x){for(var d=this._groups,I=0,C=d.length;I<C;++I)for(var Xp=d[I],JA=0,Sq=Xp.length,dx;JA<Sq;++JA)(dx=Xp[JA])&&x.call(dx,dx.__data__,JA,Xp);return this},
attr:function(x,d){var I=t(x);if(arguments.length<2){var C=this.node();return I.local?C.getAttributeNS(I.space,I.local):C.getAttribute(I)}return this.each((d==null?I.local?m:q:typeof d==="function"?I.local?Yd:n:I.local?Vu:g)(I,d))},
style:function(x,d,I){return arguments.length>1?this.each((d==null?kd:typeof d==="function"?lo:a5)(x,d,I==null?"":I)):io(this.node(),x)},
property:function(x,d){return arguments.length>1?this.each((d==null?vd:typeof d==="function"?ES:cd)(x,d)):this.node()[x]},
text:function(x){return arguments.length?this.each(x==null?$d:(typeof x==="function"?GG:Eo)(x)):this.node().textContent},
html:function(x){return arguments.length?this.each(x==null?eJ:(typeof x==="function"?d4:pR)(x)):this.node().innerHTML},
append:function(x){var d=typeof x==="function"?x:G(x);return this.select(function(){return this.appendChild(d.apply(this,arguments))})},
insert:function(x,d){var I=typeof x==="function"?x:G(x),C=d==null?W2:typeof d==="function"?d:S(d);return this.select(function(){return this.insertBefore(I.apply(this,arguments),C.apply(this,arguments)||null)})},
remove:function(){return this.each(By)},
clone:function(x){return this.select(x?hA:DY)},
datum:function(x){return arguments.length?this.property("__data__",x):this.node().__data__},
on:function(x,d,I){var C=i4(x+""),Xp=C.length,JA;if(arguments.length<2){var Sq=this.node().__on;if(Sq)for(var dx=0,o4=Sq.length,Pd;dx<o4;++dx){var B2=0;for(Pd=Sq[dx];B2<Xp;++B2)if((JA=C[B2]).type===Pd.type&&JA.name===Pd.name)return Pd.value}}else{Sq=d?ZS:TG;I==null&&(I=!1);for(B2=0;B2<Xp;++B2)this.each(Sq(C[B2],d,I));return this}},
dispatch:function(x,d){return this.each((typeof d==="function"?CZ:DS)(x,d))}};
var J_m=0;l_.prototype=function(){return new l_}.prototype={constructor:l_,
get:function(x){for(var d=this._;!(d in x);)if(!(x=x.parentNode))return;return x[d]},
set:function(x,d){return x[this._]=d},
remove:function(x){return this._ in x&&delete x[this._]},
toString:function(){return this._}};
var JW=1/.7,jpr=/^#([0-9a-f]{3})$/,Um4=/^#([0-9a-f]{6})$/,NEe=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Gw2=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),y_e=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),SOm=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*\\)$"),
HY4=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),M9i=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*\\)$"),Dk2={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};
S2(J$,s4,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
S2(Z7,we,tD(J$,{brighter:function(x){x=x==null?JW:Math.pow(JW,x);return new Z7(this.r*x,this.g*x,this.b*x,this.opacity)},
darker:function(x){x=x==null?.7:Math.pow(.7,x);return new Z7(this.r*x,this.g*x,this.b*x,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"#"+Po(this.r)+Po(this.g)+Po(this.b)},
toString:function(){var x=this.opacity;x=isNaN(x)?1:Math.max(0,Math.min(1,x));return(x===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))+(x===1?")":", "+x+")")}}));
S2(Ez,gV,tD(J$,{brighter:function(x){x=x==null?JW:Math.pow(JW,x);return new Ez(this.h,this.s,this.l*x,this.opacity)},
darker:function(x){x=x==null?.7:Math.pow(.7,x);return new Ez(this.h,this.s,this.l*x,this.opacity)},
rgb:function(){var x=this.h%360+(this.h<0)*360,d=this.l,I=d+(d<.5?d:1-d)*(isNaN(x)||isNaN(this.s)?0:this.s);d=2*d-I;return new Z7(rc(x>=240?x-240:x+120,d,I),rc(x,d,I),rc(x<120?x+240:x-120,d,I),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 fVl=Math.PI/180,aVl=180/Math.PI,zXa=4/29,hW=6/29,lVo=3*hW*hW,kw4=hW*hW*hW;S2(MY,function(x,d,I,C){return arguments.length===1?jO(x):new MY(x,d,I,C==null?1:C)},tD(J$,{brighter:function(x){return new MY(this.l+18*(x==null?1:x),this.a,this.b,this.opacity)},
darker:function(x){return new MY(this.l-18*(x==null?1:x),this.a,this.b,this.opacity)},
rgb:function(){var x=(this.l+16)/116,d=isNaN(this.a)?x:x+this.a/500,I=isNaN(this.b)?x:x-this.b/200;d=.96422*Fp(d);x=1*Fp(x);I=.82521*Fp(I);return new Z7(NT(3.1338561*d-1.6168667*x-.4906146*I),NT(-.9787684*d+1.9161415*x+.033454*I),NT(.0719453*d-.2289914*x+1.4052427*I),this.opacity)}}));
S2(H2,b4,tD(J$,{brighter:function(x){return new H2(this.h,this.c,this.l+18*(x==null?1:x),this.opacity)},
darker:function(x){return new H2(this.h,this.c,this.l-18*(x==null?1:x),this.opacity)},
rgb:function(){return jO(this).rgb()}}));
var dkR=1.78277*-.29227-.1347134789;S2(Jr,SJ,tD(J$,{brighter:function(x){x=x==null?JW:Math.pow(JW,x);return new Jr(this.h,this.s,this.l*x,this.opacity)},
darker:function(x){x=x==null?.7:Math.pow(.7,x);return new Jr(this.h,this.s,this.l*x,this.opacity)},
rgb:function(){var x=isNaN(this.h)?0:(this.h+120)*fVl,d=+this.l,I=isNaN(this.s)?0:this.s*d*(1-d),C=Math.cos(x);x=Math.sin(x);return new Z7(255*(d+I*(-.14861*C+1.78277*x)),255*(d+I*(-.29227*C+-.90649*x)),255*(d+1.97294*C*I),this.opacity)}}));
var vIG=function I(d){function C(JA,Sq){var dx=Xp((JA=we(JA)).r,(Sq=we(Sq)).r),o4=Xp(JA.g,Sq.g),Pd=Xp(JA.b,Sq.b),B2=q_(JA.opacity,Sq.opacity);return function(jJ){JA.r=dx(jJ);JA.g=o4(jJ);JA.b=Pd(jJ);JA.opacity=B2(jJ);return JA+""}}
var Xp=Pn(d);C.gamma=I;return C}(1),yHe=f7(function(d){var I=d.length-1;
return function(C){var Xp=C<=0?C=0:C>=1?(C=1,I-1):Math.floor(C*I),JA=d[Xp],Sq=d[Xp+1];return zX((C-Xp/I)*I,Xp>0?d[Xp-1]:2*JA-Sq,JA,Sq,Xp<I-1?d[Xp+2]:2*Sq-JA)}});
f7(function(d){var I=d.length;return function(C){var Xp=Math.floor(((C%=1)<0?++C:C)*I);return zX((C-Xp/I)*I,d[(Xp+I-1)%I],d[Xp%I],d[(Xp+1)%I],d[(Xp+2)%I])}});
var jhN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ukx=new RegExp(jhN.source,"g"),w6R=180/Math.PI,KpA={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},t9,IVS,HtJ,vRS,Ha4=Xf(function(d){if(d==="none")return KpA;t9||(t9=document.createElement("DIV"),IVS=document.documentElement,HtJ=document.defaultView);t9.style.transform=d;d=HtJ.getComputedStyle(IVS.appendChild(t9),null).getPropertyValue("transform");IVS.removeChild(t9);d=d.slice(7,-1).split(",");return Kf(+d[0],+d[1],+d[2],+d[3],
+d[4],+d[5])},"px, ","px)","deg)"),MpN=Xf(function(d){if(d==null)return KpA;
vRS||(vRS=document.createElementNS("http://www.w3.org/2000/svg","g"));vRS.setAttribute("transform",d);if(!(d=vRS.transform.baseVal.consolidate()))return KpA;d=d.matrix;return Kf(d.a,d.b,d.c,d.d,d.e,d.f)},", ",")",")");
Xx(Q5);Xx(q_);sZ(Q5);sZ(q_);kU(Q5);var EIS=kU(q_),tW=0,OK=0,Bp=0,fmo,ol,DW_=0,A0=0,kaA=0,ut=typeof performance==="object"&&performance.now?performance:Date,Tv_=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(d){setTimeout(d,17)};
kn.prototype=Zn.prototype={constructor:kn,restart:function(d,I,C){if(typeof d!=="function")throw new TypeError("ze");C=(C==null?ss():+C)+(I==null?0:+I);this._next||ol===this||(ol?ol._next=this:fmo=this,ol=this);this._call=d;this._time=C;$C()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,$C())}};
var f16=V("start","end","interrupt"),l1m=[],k3e=tr.prototype.constructor,MEo=0,jK=tr.prototype;b$.prototype=function(d){return tr().transition(d)}.prototype={constructor:b$,
select:function(d){var I=this._name,C=this._id;typeof d!=="function"&&(d=S(d));for(var Xp=this._groups,JA=Xp.length,Sq=Array(JA),dx=0;dx<JA;++dx)for(var o4=Xp[dx],Pd=o4.length,B2=Sq[dx]=Array(Pd),jJ,$5,j2=0;j2<Pd;++j2)(jJ=o4[j2])&&($5=d.call(jJ,jJ.__data__,j2,o4))&&("__data__"in jJ&&($5.__data__=jJ.__data__),B2[j2]=$5,NvK(B2[j2],I,C,j2,B2,WT(jJ,C)));return new b$(Sq,this._parents,I,C)},
filter:function(d){typeof d!=="function"&&(d=SN_(d));for(var I=this._groups,C=I.length,Xp=Array(C),JA=0;JA<C;++JA)for(var Sq=I[JA],dx=Sq.length,o4=Xp[JA]=[],Pd,B2=0;B2<dx;++B2)(Pd=Sq[B2])&&d.call(Pd,Pd.__data__,B2,Sq)&&o4.push(Pd);return new b$(Xp,this._parents,this._name,this._id)},
merge:function(d){if(d._id!==this._id)throw Error();var I=this._groups;d=d._groups;for(var C=I.length,Xp=Math.min(C,d.length),JA=Array(C),Sq=0;Sq<Xp;++Sq)for(var dx=I[Sq],o4=d[Sq],Pd=dx.length,B2=JA[Sq]=Array(Pd),jJ,$5=0;$5<Pd;++$5)if(jJ=dx[$5]||o4[$5])B2[$5]=jJ;for(;Sq<C;++Sq)JA[Sq]=I[Sq];return new b$(JA,this._parents,this._name,this._id)},
selection:function(){return new k3e(this._groups,this._parents)},
transition:function(){for(var d=this._name,I=this._id,C=++MEo,Xp=this._groups,JA=Xp.length,Sq=0;Sq<JA;++Sq)for(var dx=Xp[Sq],o4=dx.length,Pd,B2=0;B2<o4;++B2)if(Pd=dx[B2]){var jJ=WT(Pd,I);NvK(Pd,d,C,B2,dx,{time:jJ.time+jJ.delay+jJ.duration,delay:0,duration:jJ.duration,ease:jJ.ease})}return new b$(Xp,this._parents,d,C)},
call:jK.call,nodes:jK.nodes,node:jK.node,size:jK.size,empty:jK.empty,each:jK.each,on:function(d,I){var C=this._id;return arguments.length<2?WT(this.node(),C).on.on(d):this.each(sp2(C,d,I))},
attr:function(d,I){var C=t(d),Xp=C==="transform"?MpN:Lpv;return this.attrTween(d,typeof I==="function"?(C.local?vPn:LK2)(C,Xp,yTd(this,"attr."+d,I)):I==null?(C.local?wxo:dmU)(C):(C.local?xmm:TEm)(C,Xp,I+""))},
attrTween:function(d,I){var C="attr."+d;if(arguments.length<2)return(C=this.tween(C))&&C._value;if(I==null)return this.tween(C,null);if(typeof I!=="function")throw Error();var Xp=t(d);return this.tween(C,(Xp.local?KKe:I1r)(Xp,I))},
style:function(d,I,C){var Xp=d==="transform"?Ha4:Lpv;return I==null?this.styleTween(d,r_n(d,Xp)).on("end.style."+d,gP4(d)):this.styleTween(d,typeof I==="function"?mm2(d,Xp,yTd(this,"style."+d,I)):ZYN(d,Xp,I+""),C)},
styleTween:function(d,I,C){var Xp="style."+d;if(arguments.length<2)return(Xp=this.tween(Xp))&&Xp._value;if(I==null)return this.tween(Xp,null);if(typeof I!=="function")throw Error();return this.tween(Xp,$m7(d,I,C==null?"":C))},
text:function(d){return this.tween("text",typeof d==="function"?P92(yTd(this,"text",d)):C94(d==null?"":d+""))},
remove:function(){return this.on("end.remove",FKN(this._id))},
tween:function(d,I){var C=this._id;if(arguments.length<2){C=WT(this.node(),C).tween;for(var Xp=0,JA=C.length,Sq;Xp<JA;++Xp)if((Sq=C[Xp]).name===d)return Sq.value;return null}return this.each((I==null?zo2:a12)(C,d,I))},
delay:function(d){var I=this._id;return arguments.length?this.each((typeof d==="function"?EPN:Qp2)(I,d)):WT(this.node(),I).delay},
duration:function(d){var I=this._id;return arguments.length?this.each((typeof d==="function"?qOj:c_o)(I,d)):WT(this.node(),I).duration},
ease:function(d){var I=this._id;return arguments.length?this.each(A_e(I,d)):WT(this.node(),I).ease}};
var QhS={time:null,delay:0,duration:250,ease:function(d){return((d*=2)<=1?d*d*d:(d-=2)*d*d+2)/2}};
tr.prototype.transition=function(d){var I;if(d instanceof b$){var C=d._id;d=d._name}else C=++MEo,(I=QhS).time=ss(),d=d==null?null:d+"";for(var Xp=this._groups,JA=Xp.length,Sq=0;Sq<JA;++Sq)for(var dx=Xp[Sq],o4=dx.length,Pd,B2=0;B2<o4;++B2)if(Pd=dx[B2]){var jJ=Pd,$5=d,j2=C,y5=B2,ZM=dx,lD;if(!(lD=I))a:{lD=void 0;for(var Pf=C;!(lD=Pd.__transition)||!(lD=lD[Pf]);)if(!(Pd=Pd.parentNode)){lD=(QhS.time=ss(),QhS);break a}}NvK(jJ,$5,j2,y5,ZM,lD)}return new b$(Xp,this._parents,d,C)};
["e","w"].map(SrI);["n","s"].map(SrI);"n e s w nw ne se sw".split(" ").map(SrI);HCd.prototype=function(){return new HCd}.prototype={constructor:HCd,
moveTo:function(d,I){this._+="M"+(this._x0=this._x1=+d)+","+(this._y0=this._y1=+I)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(d,I){this._+="L"+(this._x1=+d)+","+(this._y1=+I)},
bezierCurveTo:function(d,I,C,Xp,JA,Sq){this._+="C"+ +d+","+ +I+","+ +C+","+ +Xp+","+(this._x1=+JA)+","+(this._y1=+Sq)},
rect:function(d,I,C,Xp){this._+="M"+(this._x0=this._x1=+d)+","+(this._y0=this._y1=+I)+"h"+ +C+"v"+ +Xp+"h"+-C+"Z"},
toString:function(){return this._}};
lmq.prototype=Kph.prototype={constructor:lmq,has:function(d){return" "+d in this},
get:function(d){return this[" "+d]},
set:function(d,I){this[" "+d]=I;return this},
remove:function(d){d=" "+d;return d in this&&delete this[d]},
clear:function(){for(var d in this)d[0]===" "&&delete this[d]},
keys:function(){var d=[],I;for(I in this)I[0]===" "&&d.push(I.slice(1));return d},
values:function(){var d=[],I;for(I in this)I[0]===" "&&d.push(this[I]);return d},
entries:function(){var d=[],I;for(I in this)I[0]===" "&&d.push({key:I.slice(1),value:this[I]});return d},
size:function(){var d=0,I;for(I in this)I[0]===" "&&++d;return d},
empty:function(){for(var d in this)if(d[0]===" ")return!1;return!0},
each:function(d){for(var I in this)I[0]===" "&&d(this[I],I.slice(1),this)}};
var rF=Kph.prototype;zTu.prototype=function(d,I){var C=new zTu;if(d instanceof zTu)d.each(function(Sq){C.add(Sq)});
else if(d){var Xp=-1,JA=d.length;if(I==null)for(;++Xp<JA;)C.add(d[Xp]);else for(;++Xp<JA;)C.add(I(d[Xp],Xp,d))}return C}.prototype={constructor:zTu,
has:rF.has,add:function(d){this[" "+d]=d;return this},
remove:rF.remove,clear:rF.clear,values:rF.keys,size:rF.size,empty:rF.empty,each:rF.each};var Qho={},MoN={},DE4=EIo(",").parse,f$e=EIo("\t").parse;qro(DE4);qro(f$e);var em=function(d,I,C){I=new k0u(I==null?o3i:I,C==null?BKN:C,NaN,NaN,NaN,NaN);return d==null?I:I.addAll(d)}.prototype=k0u.prototype;
em.copy=function(){var d=new k0u(this._x,this._y,this._x0,this._y0,this._x1,this._y1),I=this._root,C,Xp;if(!I)return d;if(!I.length)return d._root=AT2(I),d;for(C=[{source:I,target:d._root=Array(4)}];I=C.pop();)for(var JA=0;JA<4;++JA)if(Xp=I.source[JA])Xp.length?C.push({source:Xp,target:I.target[JA]=Array(4)}):I.target[JA]=AT2(Xp);return d};
em.add=function(d){var I=+this._x.call(null,d),C=+this._y.call(null,d);return cT5(this.cover(I,C),I,C,d)};
em.addAll=function(d){var I,C,Xp=d.length,JA,Sq,dx=Array(Xp),o4=Array(Xp),Pd=Infinity,B2=Infinity,jJ=-Infinity,$5=-Infinity;for(C=0;C<Xp;++C)isNaN(JA=+this._x.call(null,I=d[C]))||isNaN(Sq=+this._y.call(null,I))||(dx[C]=JA,o4[C]=Sq,JA<Pd&&(Pd=JA),JA>jJ&&(jJ=JA),Sq<B2&&(B2=Sq),Sq>$5&&($5=Sq));jJ<Pd&&(Pd=this._x0,jJ=this._x1);$5<B2&&(B2=this._y0,$5=this._y1);this.cover(Pd,B2).cover(jJ,$5);for(C=0;C<Xp;++C)cT5(this,dx[C],o4[C],d[C]);return this};
em.cover=function(d,I){if(isNaN(d=+d)||isNaN(I=+I))return this;var C=this._x0,Xp=this._y0,JA=this._x1,Sq=this._y1;if(isNaN(C))JA=(C=Math.floor(d))+1,Sq=(Xp=Math.floor(I))+1;else if(C>d||d>JA||Xp>I||I>Sq){var dx=JA-C,o4=this._root,Pd;switch(Pd=(I<(Xp+Sq)/2)<<1|d<(C+JA)/2){case 0:do{var B2=Array(4);B2[Pd]=o4;o4=B2}while(dx*=2,JA=C+dx,Sq=Xp+dx,d>JA||I>Sq);break;case 1:do B2=Array(4),B2[Pd]=o4,o4=B2;while(dx*=2,C=JA-dx,Sq=Xp+dx,C>d||I>Sq);break;case 2:do B2=Array(4),B2[Pd]=o4,o4=B2;while(dx*=2,JA=C+dx,
Xp=Sq-dx,d>JA||Xp>I);break;case 3:do B2=Array(4),B2[Pd]=o4,o4=B2;while(dx*=2,C=JA-dx,Xp=Sq-dx,C>d||Xp>I)}this._root&&this._root.length&&(this._root=o4)}else return this;this._x0=C;this._y0=Xp;this._x1=JA;this._y1=Sq;return this};
em.data=function(){var d=[];this.visit(function(I){if(!I.length){do d.push(I.data);while(I=I.next)}});
return d};
em.extent=function(d){return arguments.length?this.cover(+d[0][0],+d[0][1]).cover(+d[1][0],+d[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
em.find=function(d,I,C){var Xp=this._x0,JA=this._y0,Sq,dx,o4,Pd,B2=this._x1,jJ=this._y1,$5=[],j2=this._root,y5;j2&&$5.push(new VL(j2,Xp,JA,B2,jJ));C==null?C=Infinity:(Xp=d-C,JA=I-C,B2=d+C,jJ=I+C,C*=C);for(;y5=$5.pop();)if(!(!(j2=y5.node)||(Sq=y5.x0)>B2||(dx=y5.y0)>jJ||(o4=y5.x1)<Xp||(Pd=y5.y1)<JA))if(j2.length){y5=(Sq+o4)/2;var ZM=(dx+Pd)/2;$5.push(new VL(j2[3],y5,ZM,o4,Pd),new VL(j2[2],Sq,ZM,y5,Pd),new VL(j2[1],y5,dx,o4,ZM),new VL(j2[0],Sq,dx,y5,ZM));if(j2=(I>=ZM)<<1|d>=y5)y5=$5[$5.length-1],$5[$5.length-
1]=$5[$5.length-1-j2],$5[$5.length-1-j2]=y5}else if(y5=d-+this._x.call(null,j2.data),ZM=I-+this._y.call(null,j2.data),y5=y5*y5+ZM*ZM,y5<C){var lD=Math.sqrt(C=y5);Xp=d-lD;JA=I-lD;B2=d+lD;jJ=I+lD;lD=j2.data}return lD};
em.remove=function(d){if(isNaN(Pd=+this._x.call(null,d))||isNaN(B2=+this._y.call(null,d)))return this;var I,C=this._root,Xp,JA=this._x0,Sq=this._y0,dx=this._x1,o4=this._y1,Pd,B2,jJ,$5,j2,y5,ZM;if(!C)return this;if(C.length)for(;;){(j2=Pd>=(jJ=(JA+dx)/2))?JA=jJ:dx=jJ;(y5=B2>=($5=(Sq+o4)/2))?Sq=$5:o4=$5;if(!(I=C,C=C[ZM=y5<<1|j2]))return this;if(!C.length)break;if(I[ZM+1&3]||I[ZM+2&3]||I[ZM+3&3]){var lD=I;var Pf=ZM}}for(;C.data!==d;)if(!(Xp=C,C=C.next))return this;(d=C.next)&&delete C.next;if(Xp)return d?
Xp.next=d:delete Xp.next,this;if(!I)return this._root=d,this;d?I[ZM]=d:delete I[ZM];(C=I[0]||I[1]||I[2]||I[3])&&C===(I[3]||I[2]||I[1]||I[0])&&!C.length&&(lD?lD[Pf]=C:this._root=C);return this};
em.removeAll=function(d){for(var I=0,C=d.length;I<C;++I)this.remove(d[I]);return this};
em.root=function(){return this._root};
em.size=function(){var d=0;this.visit(function(I){if(!I.length){do++d;while(I=I.next)}});
return d};
em.visit=function(d){var I=[],C,Xp=this._root,JA,Sq,dx,o4,Pd;for(Xp&&I.push(new VL(Xp,this._x0,this._y0,this._x1,this._y1));C=I.pop();)if(!d(Xp=C.node,Sq=C.x0,dx=C.y0,o4=C.x1,Pd=C.y1)&&Xp.length){C=(Sq+o4)/2;var B2=(dx+Pd)/2;(JA=Xp[3])&&I.push(new VL(JA,C,B2,o4,Pd));(JA=Xp[2])&&I.push(new VL(JA,Sq,B2,C,Pd));(JA=Xp[1])&&I.push(new VL(JA,C,dx,o4,B2));(JA=Xp[0])&&I.push(new VL(JA,Sq,dx,C,B2))}};
em.visitAfter=function(d){var I=[],C=[],Xp;for(this._root&&I.push(new VL(this._root,this._x0,this._y0,this._x1,this._y1));Xp=I.pop();){var JA=Xp.node;if(JA.length){var Sq,dx=Xp.x0,o4=Xp.y0,Pd=Xp.x1,B2=Xp.y1,jJ=(dx+Pd)/2,$5=(o4+B2)/2;(Sq=JA[0])&&I.push(new VL(Sq,dx,o4,jJ,$5));(Sq=JA[1])&&I.push(new VL(Sq,jJ,o4,Pd,$5));(Sq=JA[2])&&I.push(new VL(Sq,dx,$5,jJ,B2));(Sq=JA[3])&&I.push(new VL(Sq,jJ,$5,Pd,B2))}C.push(Xp)}for(;Xp=C.pop();)d(Xp.node,Xp.x0,Xp.y0,Xp.x1,Xp.y1);return this};
em.x=function(d){return arguments.length?(this._x=d,this):this._x};
em.y=function(d){return arguments.length?(this._y=d,this):this._y};
var X_6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Dkd.prototype=fVN.prototype;fVN.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 rTv,gI5={"%":function(d,I){return(d*100).toFixed(I)},
b:function(d){return Math.round(d).toString(2)},
c:function(d){return d+""},
d:function(d){return Math.round(d).toString(10)},
e:function(d,I){return d.toExponential(I)},
f:function(d,I){return d.toFixed(I)},
g:function(d,I){return d.toPrecision(I)},
o:function(d){return Math.round(d).toString(8)},
p:function(d,I){return iC4(d*100,I)},
r:iC4,s:function(d,I){var C=amx(d,I);if(!C)return d+"";var Xp=C[0];C=C[1];C=C-(rTv=Math.max(-8,Math.min(8,Math.floor(C/3)))*3)+1;var JA=Xp.length;return C===JA?Xp:C>JA?Xp+Array(C-JA+1).join("0"):C>0?Xp.slice(0,C)+"."+Xp.slice(C):"0."+Array(1-C).join("0")+amx(d,Math.max(0,I+C-1))[0]},
X:function(d){return Math.round(d).toString(16).toUpperCase()},
x:function(d){return Math.round(d).toString(16)}},Fpa="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),l$2;
(function(d){return l$2=p_e(d)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});i8.prototype={constructor:i8,reset:function(){this.s=this.t=0},
add:function(d){ZCo(Koq,d,this.t);ZCo(this,Koq.s,this.s);this.s?this.t+=Koq.t:this.s=Koq.t},
valueOf:function(){return this.s}};
var Koq=new i8,LE=Math.PI,Zd=LE/2,klG=LE/4,z5m=LE*2,qrS=LE/180,Jd=Math.abs,cTd=Math.atan,u3_=Math.atan2,m2=Math.cos,E$=Math.sin,wUN=Math.sqrt;new i8;new i8;new i8;var ATd=new i8;(function(d,I,C,Xp){return function(JA){function Sq(BU,yc){d(BU,yc)&&JA.point(BU,yc)}
function dx(BU,yc){j2.point(BU,yc)}
function o4(){bl.point=dx;j2.lineStart()}
function Pd(){bl.point=Sq;j2.lineEnd()}
function B2(BU,yc){wi.push([BU,yc]);ZM.point(BU,yc)}
function jJ(){ZM.lineStart();wi=[]}
function $5(){B2(wi[0][0],wi[0][1]);ZM.lineEnd();var BU=ZM.clean(),yc=y5.result(),$v=yc.length,GL;wi.pop();Pf.push(wi);wi=null;if($v)if(BU&1){if($v=yc[0],(yc=$v.length-1)>0){lD||(JA.polygonStart(),lD=!0);JA.lineStart();for(BU=0;BU<yc;++BU)JA.point((GL=$v[BU])[0],GL[1]);JA.lineEnd()}}else $v>1&&BU&2&&yc.push(yc.pop().concat(yc.shift())),oK.push(yc.filter(Wte))}
var j2=I(JA),y5=hE6(),ZM=I(y5),lD=!1,Pf,oK,wi,bl={point:Sq,lineStart:o4,lineEnd:Pd,polygonStart:function(){bl.point=B2;bl.lineStart=jJ;bl.lineEnd=$5;oK=[];Pf=[]},
polygonEnd:function(){bl.point=Sq;bl.lineStart=o4;bl.lineEnd=Pd;var BU=oK,yc=BU.length;var $v=-1;for(var GL=0,Ti,JD;++$v<yc;)GL+=BU[$v].length;for(Ti=Array(GL);--yc>=0;)for(JD=BU[yc],$v=JD.length;--$v>=0;)Ti[--GL]=JD[$v];oK=Ti;BU=Pf;yc=Xp[0];GL=Xp[1];var Rm=E$(GL);$v=[E$(yc),-m2(yc),0];JD=Ti=0;ATd.reset();Rm===1?GL=Zd+1E-6:Rm===-1&&(GL=-Zd-1E-6);Rm=0;for(var Gi=BU.length;Rm<Gi;++Rm)if(xD=(mo=BU[Rm]).length){var mo,xD,n6=mo[xD-1],NN=n6[0],xI=n6[1]/2+klG,ImY=E$(xI),Dfb=m2(xI);for(xI=0;xI<xD;++xI,NN=
iCx,ImY=fu5,Dfb=Wp,n6=ERI){var ERI=mo[xI],iCx=ERI[0];Wp=ERI[1]/2+klG;var fu5=E$(Wp),Wp=m2(Wp),U9=iCx-NN,shd=U9>=0?1:-1,Fpp=shd*U9,QKo=Fpp>LE;ImY*=fu5;ATd.add(u3_(ImY*shd*E$(Fpp),Dfb*Wp+ImY*m2(Fpp)));Ti+=QKo?U9+shd*z5m:U9;QKo^NN>=yc^iCx>=yc&&(n6=$kG(mka(n6),mka(ERI)),Cv_(n6),NN=$kG($v,n6),Cv_(NN),NN=(QKo^U9>=0?-1:1)*dWN(NN[2]),GL>NN||GL===NN&&(n6[0]||n6[1]))&&(JD+=QKo^U9>=0?1:-1)}}BU=(Ti<-1E-6||Ti<1E-6&&ATd<-1E-6)^JD&1;oK.length?(lD||(JA.polygonStart(),lD=!0),tIe(oK,bT4,BU,C,JA)):BU&&(lD||(JA.polygonStart(),
lD=!0),JA.lineStart(),C(null,null,1,JA),JA.lineEnd());lD&&(JA.polygonEnd(),lD=!1);oK=Pf=null},
sphere:function(){JA.polygonStart();JA.lineStart();C(null,null,1,JA);JA.lineEnd();JA.polygonEnd()}};
return bl}})(function(){return!0},function(d){var I=NaN,C=NaN,Xp=NaN,JA;
return{lineStart:function(){d.lineStart();JA=1},
point:function(Sq,dx){var o4=Sq>0?LE:-LE,Pd=Jd(Sq-I);if(Jd(Pd-LE)<1E-6)d.point(I,C=(C+dx)/2>0?Zd:-Zd),d.point(Xp,C),d.lineEnd(),d.lineStart(),d.point(o4,C),d.point(Sq,C),JA=0;else if(Xp!==o4&&Pd>=LE){Jd(I-Xp)<1E-6&&(I-=Xp*1E-6);Jd(Sq-o4)<1E-6&&(Sq-=o4*1E-6);Pd=I;var B2=C,jJ=Sq,$5,j2,y5=E$(Pd-jJ);C=Jd(y5)>1E-6?cTd((E$(B2)*(j2=m2(dx))*E$(jJ)-E$(dx)*($5=m2(B2))*E$(Pd))/($5*j2*y5)):(B2+dx)/2;d.point(Xp,C);d.lineEnd();d.lineStart();d.point(o4,C);JA=0}d.point(I=Sq,C=dx);Xp=o4},
lineEnd:function(){d.lineEnd();I=C=NaN},
clean:function(){return 2-JA}}},function(d,I,C,Xp){d==null?(C*=Zd,Xp.point(-LE,C),Xp.point(0,C),Xp.point(LE,C),Xp.point(LE,0),Xp.point(LE,-C),Xp.point(0,-C),Xp.point(-LE,-C),Xp.point(-LE,0),Xp.point(-LE,C)):Jd(d[0]-I[0])>1E-6?(d=d[0]<I[0]?LE:-LE,C=C*d/2,Xp.point(-d,C),Xp.point(0,C),Xp.point(d,C)):Xp.point(I[0],I[1])},[-LE,
-Zd]);new i8;new i8;new i8;new i8;lVS.prototype={constructor:lVS,point:function(d,I){this.stream.point(d,I)},
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()}};
m2(30*qrS);(function(d){return function(I){var C=new lVS,Xp;for(Xp in d)C[Xp]=d[Xp];C.stream=I;return C}})({point:function(d,I){this.stream.point(d*qrS,I*qrS)}});
nIJ(function(d){return wUN(2/(1+d))}).invert=Rl(function(d){return 2*dWN(d/2)});
nIJ(function(d){return(d=d>1?0:d<-1?LE:Math.acos(d))&&d/E$(d)}).invert=Rl(function(d){return d});
wUN(3);Rl(cTd);Rl(dWN);Rl(function(d){return 2*cTd(d)});
VQ.prototype=OCl.prototype={constructor:VQ,count:function(){return this.eachAfter(J8n)},
each:function(d){var I,C=[this],Xp;do{var JA=C.reverse();for(C=[];I=JA.pop();)if(d(I),I=I.children){var Sq=0;for(Xp=I.length;Sq<Xp;++Sq)C.push(I[Sq])}}while(C.length);return this},
eachAfter:function(d){for(var I,C=[this],Xp=[],JA,Sq;I=C.pop();)if(Xp.push(I),I=I.children)for(JA=0,Sq=I.length;JA<Sq;++JA)C.push(I[JA]);for(;I=Xp.pop();)d(I);return this},
eachBefore:function(d){for(var I,C=[this],Xp;I=C.pop();)if(d(I),I=I.children)for(Xp=I.length-1;Xp>=0;--Xp)C.push(I[Xp]);return this},
sum:function(d){return this.eachAfter(function(I){for(var C=+d(I.data)||0,Xp=I.children,JA=Xp&&Xp.length;--JA>=0;)C+=Xp[JA].value;I.value=C})},
sort:function(d){return this.eachBefore(function(I){I.children&&I.children.sort(d)})},
path:function(d){var I=this;var C=I;var Xp=d;if(C!==Xp){var JA=C.ancestors(),Sq=Xp.ancestors(),dx=null;C=JA.pop();for(Xp=Sq.pop();C===Xp;)dx=C,C=JA.pop(),Xp=Sq.pop();C=dx}for(Xp=[I];I!==C;)I=I.parent,Xp.push(I);for(I=Xp.length;d!==C;)Xp.splice(I,0,d),d=d.parent;return Xp},
ancestors:function(){for(var d=this,I=[d];d=d.parent;)I.push(d);return I},
links:function(){var d=this,I=[];d.each(function(C){C!==d&&I.push({source:C.parent,target:C})});
return I},
copy:function(){return OCl(this).eachBefore(NK4)}};
(function(d,I){this._=d;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=I}).prototype=Object.create(VQ.prototype);
var zXp=new Date,aVN=new Date,luS=Dg(function(){},function(d,I){d.setTime(+d+I)},function(d,I){return I-d});
luS.every=function(d){d=Math.floor(d);return isFinite(d)&&d>0?d>1?Dg(function(I){I.setTime(Math.floor(I/d)*d)},function(I,C){I.setTime(+I+C*d)},function(I,C){return(C-I)/d}):luS:null};
Dg(function(d){d.setTime(Math.floor(d/1E3)*1E3)},function(d,I){d.setTime(+d+I*1E3)},function(d,I){return(I-d)/1E3},function(d){return d.getUTCSeconds()});
Dg(function(d){d.setTime(Math.floor(d/6E4)*6E4)},function(d,I){d.setTime(+d+I*6E4)},function(d,I){return(I-d)/6E4},function(d){return d.getMinutes()});
Dg(function(d){var I=d.getTimezoneOffset()*6E4%36E5;I<0&&(I+=36E5);d.setTime(Math.floor((+d-I)/36E5)*36E5+I)},function(d,I){d.setTime(+d+I*36E5)},function(d,I){return(I-d)/36E5},function(d){return d.getHours()});
var Rrh=Dg(function(d){d.setHours(0,0,0,0)},function(d,I){d.setDate(d.getDate()+I)},function(d,I){return(I-d-(I.getTimezoneOffset()-d.getTimezoneOffset())*6E4)/864E5},function(d){return d.getDate()-1}),NU2=sA(0),w6Z=sA(1);
sA(2);sA(3);var Tvo=sA(4);sA(5);sA(6);Dg(function(d){d.setDate(1);d.setHours(0,0,0,0)},function(d,I){d.setMonth(d.getMonth()+I)},function(d,I){return I.getMonth()-d.getMonth()+(I.getFullYear()-d.getFullYear())*12},function(d){return d.getMonth()});
var W1=Dg(function(d){d.setMonth(0,1);d.setHours(0,0,0,0)},function(d,I){d.setFullYear(d.getFullYear()+I)},function(d,I){return I.getFullYear()-d.getFullYear()},function(d){return d.getFullYear()});
W1.every=function(d){return isFinite(d=Math.floor(d))&&d>0?Dg(function(I){I.setFullYear(Math.floor(I.getFullYear()/d)*d);I.setMonth(0,1);I.setHours(0,0,0,0)},function(I,C){I.setFullYear(I.getFullYear()+C*d)}):null};
Dg(function(d){d.setUTCSeconds(0,0)},function(d,I){d.setTime(+d+I*6E4)},function(d,I){return(I-d)/6E4},function(d){return d.getUTCMinutes()});
Dg(function(d){d.setUTCMinutes(0,0,0)},function(d,I){d.setTime(+d+I*36E5)},function(d,I){return(I-d)/36E5},function(d){return d.getUTCHours()});
var Bf5=Dg(function(d){d.setUTCHours(0,0,0,0)},function(d,I){d.setUTCDate(d.getUTCDate()+I)},function(d,I){return(I-d)/864E5},function(d){return d.getUTCDate()-1}),G3N=FI(0),dkZ=FI(1);
FI(2);FI(3);var xkZ=FI(4);FI(5);FI(6);Dg(function(d){d.setUTCDate(1);d.setUTCHours(0,0,0,0)},function(d,I){d.setUTCMonth(d.getUTCMonth()+I)},function(d,I){return I.getUTCMonth()-d.getUTCMonth()+(I.getUTCFullYear()-d.getUTCFullYear())*12},function(d){return d.getUTCMonth()});
var b7=Dg(function(d){d.setUTCMonth(0,1);d.setUTCHours(0,0,0,0)},function(d,I){d.setUTCFullYear(d.getUTCFullYear()+I)},function(d,I){return I.getUTCFullYear()-d.getUTCFullYear()},function(d){return d.getUTCFullYear()});
b7.every=function(d){return isFinite(d=Math.floor(d))&&d>0?Dg(function(I){I.setUTCFullYear(Math.floor(I.getUTCFullYear()/d)*d);I.setUTCMonth(0,1);I.setUTCHours(0,0,0,0)},function(I,C){I.setUTCFullYear(I.getUTCFullYear()+C*d)}):null};
var oi_={"-":"",_:" ",0:"0"},Tp=/^\s*\d+/,UE4=/^%/,jj4=/[\\^$*+?|[\]().{}]/g,qZZ;(function(d){qZZ=y84(d);$9v=qZZ.utcFormat;CaJ=qZZ.utcParse;return qZZ})({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||$9v("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||CaJ("%Y-%m-%dT%H:%M:%S.%LZ");hq("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
hq("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");hq("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");hq("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");hq("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");hq("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");hq("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
hq("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");hq("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");hq("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");hq("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");hq("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var a$j=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(hq);$R(a$j);var dEm=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(hq);$R(dEm);var wT4=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(hq);$R(wT4);var TU2=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(hq);
$R(TU2);var xE4=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(hq);$R(xE4);var LHe=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(hq);$R(LHe);var v$U=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(hq);$R(v$U);var KH6=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(hq);$R(KH6);var I$4=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(hq);$R(I$4);var E$z=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(hq);$R(E$z);var Qjo=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(hq);$R(Qjo);var qej=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(hq);$R(qej);var cHn=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(hq);$R(cHn);var AH6=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(hq);$R(AH6);var iae=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(hq);$R(iae);var sj6=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(hq);$R(sj6);var FH4=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(hq);$R(FH4);var rHr=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(hq);$R(rHr);var g$6=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(hq);$R(g$6);var Zae=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(hq);$R(Zae);var mE4=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(hq);$R(mE4);var $Ee=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(hq);$R($Ee);var C04=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(hq);$R(C04);var P0e=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(hq);$R(P0e);var n$z=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(hq);$R(n$z);var u8i=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(hq);$R(u8i);var Oae=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(hq);$R(Oae);EIS(SJ(300,.5,0),SJ(-240,.5,1));EIS(SJ(-100,.75,.35),SJ(80,1.5,.8));EIS(SJ(260,.75,.35),SJ(80,1.5,.8));SJ();we();LoI(hq("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
LoI(hq("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
LoI(hq("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
LoI(hq("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
JG_.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(d,I){d=+d;I=+I;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(d,I):this._context.moveTo(d,I);break;case 1:this._point=2;default:this._context.lineTo(d,I)}}};
(function(d){function I(C){return new jiJ(d(C))}
I._curve=d;return I})(function(d){return new JG_(d)});
jiJ.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(d,I){this._curve.point(I*Math.sin(d),I*-Math.cos(d))}};
vI_.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:Lpu(this,this._t0,Nfh(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(d,I){var C=NaN;d=+d;I=+I;if(d!==this._x1||I!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(d,I):this._context.moveTo(d,I);break;case 1:this._point=2;break;case 2:this._point=3;Lpu(this,Nfh(this,C=Uf2(this,d,I)),C);break;default:Lpu(this,this._t0,C=Uf2(this,d,I))}this._x0=this._x1;this._x1=d;this._y0=this._y1;this._y1=I;this._t0=C}}};
(function(d){this._context=new GlR(d)}.prototype=Object.create(vI_.prototype)).point=function(d,I){vI_.prototype.point.call(this,I,d)};
GlR.prototype={moveTo:function(d,I){this._context.moveTo(I,d)},
closePath:function(){this._context.closePath()},
lineTo:function(d,I){this._context.lineTo(I,d)},
bezierCurveTo:function(d,I,C,Xp,JA,Sq){this._context.bezierCurveTo(I,d,Xp,C,Sq,JA)}};
Yh.prototype={constructor:Yh,scale:function(d){return d===1?this:new Yh(this.k*d,this.x,this.y)},
translate:function(d,I){return d===0&I===0?this:new Yh(this.k,this.x+this.k*d,this.y+this.k*I)},
apply:function(d){return[d[0]*this.k+this.x,d[1]*this.k+this.y]},
invert:function(d){return[(d[0]-this.x)/this.k,(d[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Yh(1,0,0);Tao=s4;gL.svg=gL.svg;gL.xhtml=gL.xhtml;gL.xlink=gL.xlink;gL.xml=gL.xml;gL.xmlns=gL.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 Pa_="hammer_"+(Math.random()*1E6|0),nTo=function(){var B=document||document;if(!B[Pa_]){var R=function(){(function(V,e,X,Y){function t(MY,Qu,Fp){return setTimeout(M(MY,Fp),Qu)}
function b(MY,Qu,Fp){return Array.isArray(MY)?(J(MY,Fp[Qu],Fp),!0):!1}
function J(MY,Qu,Fp){var NT;if(MY)if(MY.forEach)MY.forEach(Qu,Fp);else if(MY.length!==Y){var e2=0;for(NT=MY.length;e2<NT;e2++)Qu.call(Fp,MY[e2],e2,MY)}else for(e2 in MY)MY.hasOwnProperty(e2)&&Qu.call(Fp,MY[e2],e2,MY)}
function G(MY,Qu,Fp){for(var NT=Object.keys(Qu),e2=0,Lf=NT.length;e2<Lf;e2++)if(!Fp||Fp&&MY[NT[e2]]===Y)MY[NT[e2]]=Qu[NT[e2]];return MY}
function y(MY,Qu){return G(MY,Qu,!0)}
function S(MY,Qu,Fp){Qu=Qu.prototype;var NT=MY.prototype=Object.create(Qu);NT.constructor=MY;NT._super=Qu;Fp&&G(NT,Fp)}
function M(MY,Qu){return function(){return MY.apply(Qu,arguments)}}
function f(MY,Qu){return typeof MY=="function"?MY.apply(Qu?Qu[0]||Y:Y,Qu):MY}
function z(MY,Qu,Fp){J(L(Qu),function(NT){MY.addEventListener(NT,Fp,!1)})}
function T(MY,Qu,Fp){J(L(Qu),function(NT){MY.removeEventListener(NT,Fp,!1)})}
function L(MY){return MY.trim().split(/\s+/g)}
function Q(MY,Qu,Fp){if(MY.indexOf&&!Fp)return MY.indexOf(Qu);for(var NT=0,e2=MY.length;NT<e2;NT++)if(Fp&&MY[NT][Fp]==Qu||!Fp&&MY[NT]===Qu)return NT;return-1}
function q(MY,Qu,Fp){for(var NT=[],e2=[],Lf=0,b4=MY.length;Lf<b4;Lf++){var H2=Qu?MY[Lf][Qu]:MY[Lf];Q(e2,H2)<0&&NT.push(MY[Lf]);e2[Lf]=H2}Fp&&(NT=Qu?NT.sort(function(SJ,Jr){return SJ[Qu]>Jr[Qu]}):NT.sort());
return NT}
function m(MY,Qu){for(var Fp,NT=Qu[0].toUpperCase()+Qu.slice(1),e2=0,Lf=CZ.length;e2<Lf;e2++)if(Fp=(Fp=CZ[e2])?Fp+NT:Qu,Fp in MY)return Fp;return Y}
function g(MY,Qu){var Fp=this;this.manager=MY;this.callback=Qu;this.element=MY.element;this.target=MY.options.inputTarget;this.domHandler=function(NT){f(MY.options.enable,[MY])&&Fp.handler(NT)};
this.evEl&&z(this.element,this.evEl,this.domHandler);this.evTarget&&z(this.target,this.evTarget,this.domHandler);this.evWin&&z(V,this.evWin,this.domHandler)}
function Vu(MY){var Qu;kb?Qu=cd:Dh?Qu=ES:s4?Qu=$d:Qu=vd;return new Qu(MY,n)}
function n(MY,Qu,Fp){var NT=Fp.pointers.length,e2=Fp.changedPointers.length,Lf=Qu&1&&NT-e2===0;Fp.isFirst=!!Lf;Fp.isFinal=!!(Qu&12&&NT-e2===0);Lf&&(MY.session={});Fp.eventType=Qu;Qu=MY.session;NT=Fp.pointers;e2=NT.length;Qu.firstInput||(Qu.firstInput=Yd(Fp));e2>1&&!Qu.firstMultiple?Qu.firstMultiple=Yd(Fp):e2===1&&(Qu.firstMultiple=!1);Lf=Qu.firstInput;var b4=(e2=Qu.firstMultiple)?e2.center:Lf.center,H2=Fp.center=kd(NT);Fp.timeStamp=S2();Fp.deltaTime=Fp.timeStamp-Lf.timeStamp;Fp.angle=io(b4,H2);Fp.distance=
lo(b4,H2);Lf=Fp.center;b4=Qu.offsetDelta||{};H2=Qu.prevDelta||{};var SJ=Qu.prevInput||{};if(Fp.eventType===1||SJ.eventType===4)H2=Qu.prevDelta={x:SJ.deltaX||0,y:SJ.deltaY||0},b4=Qu.offsetDelta={x:Lf.x,y:Lf.y};Fp.deltaX=H2.x+(Lf.x-b4.x);Fp.deltaY=H2.y+(Lf.y-b4.y);Fp.offsetDirection=a5(Fp.deltaX,Fp.deltaY);e2?(Lf=e2.pointers,Lf=lo(NT[0],NT[1],we)/lo(Lf[0],Lf[1],we)):Lf=1;Fp.scale=Lf;e2?(e2=e2.pointers,NT=io(NT[1],NT[0],we)-io(e2[1],e2[0],we)):NT=0;Fp.rotation=NT;b4=Qu.lastInterval||Fp;NT=Fp.timeStamp-
b4.timeStamp;Fp.eventType!=8&&(NT>25||b4.velocity===Y)?(Lf=b4.deltaX-Fp.deltaX,b4=b4.deltaY-Fp.deltaY,H2=Lf/NT||0,SJ=b4/NT||0,NT=H2,e2=SJ,H2=l_(H2)>l_(SJ)?H2:SJ,Lf=a5(Lf,b4),Qu.lastInterval=Fp):(H2=b4.velocity,NT=b4.velocityX,e2=b4.velocityY,Lf=b4.direction);Fp.velocity=H2;Fp.velocityX=NT;Fp.velocityY=e2;Fp.direction=Lf;Qu=MY.element;a:{for(NT=Fp.srcEvent.target;NT;){if(NT==Qu){NT=!0;break a}NT=NT.parentNode}NT=!1}NT&&(Qu=Fp.srcEvent.target);Fp.target=Qu;MY.emit("hammer.input",Fp);MY.recognize(Fp);
MY.session.prevInput=Fp}
function Yd(MY){for(var Qu=[],Fp=0;Fp<MY.pointers.length;Fp++)Qu[Fp]={clientX:tr(MY.pointers[Fp].clientX),clientY:tr(MY.pointers[Fp].clientY)};return{timeStamp:S2(),pointers:Qu,center:kd(Qu),deltaX:MY.deltaX,deltaY:MY.deltaY}}
function kd(MY){var Qu=MY.length;if(Qu===1)return{x:tr(MY[0].clientX),y:tr(MY[0].clientY)};for(var Fp=0,NT=0,e2=0;e2<Qu;e2++)Fp+=MY[e2].clientX,NT+=MY[e2].clientY;return{x:tr(Fp/Qu),y:tr(NT/Qu)}}
function a5(MY,Qu){return MY===Qu?1:l_(MY)>=l_(Qu)?MY>0?2:4:Qu>0?8:16}
function lo(MY,Qu,Fp){Fp||(Fp=so);var NT=Qu[Fp[0]]-MY[Fp[0]];MY=Qu[Fp[1]]-MY[Fp[1]];return Math.sqrt(NT*NT+MY*MY)}
function io(MY,Qu,Fp){Fp||(Fp=so);return Math.atan2(Qu[Fp[1]]-MY[Fp[1]],Qu[Fp[0]]-MY[Fp[0]])*180/Math.PI}
function vd(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;g.apply(this,arguments)}
function cd(){this.evEl=dk;this.evWin=gV;g.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function ES(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};g.apply(this,arguments)}
function $d(){g.apply(this,arguments);var MY=M(this.handler,this);this.touch=new ES(this.manager,MY);this.mouse=new vd(this.manager,MY)}
function Eo(MY,Qu){this.manager=MY;this.set(Qu)}
function GG(MY){if(MY.indexOf("none")>-1)return"none";var Qu=MY.indexOf("pan-x")>-1,Fp=MY.indexOf("pan-y")>-1;return Qu&&Fp?"pan-x pan-y":Qu||Fp?Qu?"pan-x":"pan-y":MY.indexOf("manipulation")>-1?"manipulation":"auto"}
function eJ(MY){this.id=tD++;this.manager=null;this.options=y(MY||{},this.defaults);MY=this.options.enable;this.options.enable=MY===Y?!0:MY;this.state=1;this.simultaneous={};this.requireFail=[]}
function pR(MY){return MY==16?"down":MY==8?"up":MY==2?"left":MY==4?"right":""}
function d4(MY,Qu){return(Qu=Qu.manager)?Qu.get(MY):MY}
function W2(){eJ.apply(this,arguments)}
function By(){W2.apply(this,arguments);this.pY=this.pX=null}
function DY(){W2.apply(this,arguments)}
function hA(){eJ.apply(this,arguments);this._input=this._timer=null}
function fR(){W2.apply(this,arguments)}
function Qv(){W2.apply(this,arguments)}
function i4(){eJ.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function TG(MY,Qu){Qu=Qu||{};var Fp=Qu.recognizers;Qu.recognizers=Fp===Y?TG.defaults.preset:Fp;return new ZS(MY,Qu)}
function ZS(MY,Qu){Qu=Qu||{};this.options=y(Qu,TG.defaults);this.options.inputTarget=this.options.inputTarget||MY;this.handlers={};this.session={};this.recognizers=[];this.element=MY;this.input=Vu(this);this.touchAction=new Eo(this,this.options.touchAction);$b(this,!0);J(Qu.recognizers,function(Fp){var NT=this.add(new Fp[0](Fp[1]));Fp[2]&&NT.recognizeWith(Fp[2]);Fp[3]&&NT.requireFailure(Fp[2])},this)}
function $b(MY,Qu){var Fp=MY.element;J(MY.options.cssProps,function(NT,e2){Fp.style[m(Fp.style,e2)]=Qu?NT:""})}
function DS(MY,Qu){var Fp=e.createEvent("Event");Fp.initEvent(MY,!0,!0);Fp.gesture=Qu;Qu.target.dispatchEvent(Fp)}
var CZ=" webkit moz MS ms o".split(" "),k5=e.createElement("div"),tr=Math.round,l_=Math.abs,S2=Date.now,tD=1,J$=/mobile|tablet|ip(ad|hone|od)|android/i,s4="ontouchstart"in V,kb=m(V,"PointerEvent")!==Y,Dh=s4&&J$.test(navigator.userAgent),so=["x","y"],we=["clientX","clientY"];g.prototype={handler:function(){},
destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler);this.evTarget&&T(this.target,this.evTarget,this.domHandler);this.evWin&&T(V,this.evWin,this.domHandler)}};
var Z7={mousedown:1,mousemove:2,mouseup:4};S(vd,g,{handler:function(MY){var Qu=Z7[MY.type];Qu&1&&MY.button===0&&(this.pressed=!0);Qu&2&&MY.which!==1&&(Qu=4);this.pressed&&this.allow&&(Qu&4&&(this.pressed=!1),this.callback(this.manager,Qu,{pointers:[MY],changedPointers:[MY],pointerType:"mouse",srcEvent:MY}))}});
var Po={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},dz={2:"touch",3:"pen",4:"mouse",5:"kinect"},dk="pointerdown",gV="pointermove pointerup pointercancel";V.MSPointerEvent&&(dk="MSPointerDown",gV="MSPointerMove MSPointerUp MSPointerCancel");S(cd,g,{handler:function(MY){var Qu=this.store,Fp=!1,NT=MY.type.toLowerCase().replace("ms","");NT=Po[NT];var e2=dz[MY.pointerType]||MY.pointerType;NT&1&&(MY.button===0||e2=="touch")?Qu.push(MY):NT&12&&(Fp=!0);var Lf=Q(Qu,MY.pointerId,"pointerId");
Lf<0||(Qu[Lf]=MY,this.callback(this.manager,NT,{pointers:Qu,changedPointers:[MY],pointerType:e2,srcEvent:MY}),Fp&&Qu.splice(Lf,1))}});
var Ez={touchstart:1,touchmove:2,touchend:4,touchcancel:8};S(ES,g,{handler:function(MY){var Qu=Ez[MY.type];var Fp=Array.prototype.slice.call(MY.touches,0);var NT=this.targetIds;if(Qu&3&&Fp.length===1)NT[Fp[0].identifier]=!0,NT=[Fp,Fp];else{var e2,Lf=Array.prototype.slice.call(MY.targetTouches,0),b4=Array.prototype.slice.call(MY.changedTouches,0),H2=[];if(Qu===1)for(Fp=0,e2=Lf.length;Fp<e2;Fp++)NT[Lf[Fp].identifier]=!0;Fp=0;for(e2=b4.length;Fp<e2;Fp++)NT[b4[Fp].identifier]&&H2.push(b4[Fp]),Qu&12&&
delete NT[b4[Fp].identifier];NT=H2.length?[q(Lf.concat(H2),"identifier",!0),H2]:void 0}NT&&this.callback(this.manager,Qu,{pointers:NT[0],changedPointers:NT[1],pointerType:"touch",srcEvent:MY})}});
S($d,g,{handler:function(MY,Qu,Fp){var NT=Fp.pointerType=="mouse";if(Fp.pointerType=="touch")this.mouse.allow=!1;else if(NT&&!this.mouse.allow)return;Qu&12&&(this.mouse.allow=!0);this.callback(MY,Qu,Fp)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var rc=m(k5.style,"touchAction"),jO=rc!==Y;Eo.prototype={set:function(MY){MY=="compute"&&(MY=this.compute());jO&&(this.manager.element.style[rc]=MY);this.actions=MY.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var MY=[];J(this.manager.recognizers,function(Qu){f(Qu.options.enable,[Qu])&&(MY=MY.concat(Qu.getTouchAction()))});
return GG(MY.join(" "))},
preventDefaults:function(MY){if(!jO){var Qu=MY.srcEvent;MY=MY.offsetDirection;if(this.manager.session.prevented)Qu.preventDefault();else{var Fp=this.actions,NT=Fp.indexOf("none")>-1,e2=Fp.indexOf("pan-y")>-1;Fp=Fp.indexOf("pan-x")>-1;if(NT||e2&&Fp||e2&&MY&6||Fp&&MY&24)return this.preventSrc(Qu)}}},
preventSrc:function(MY){this.manager.session.prevented=!0;MY.preventDefault()}};
eJ.prototype={defaults:{},set:function(MY){G(this.options,MY);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(MY){if(b(MY,"recognizeWith",this))return this;var Qu=this.simultaneous;MY=d4(MY,this);Qu[MY.id]||(Qu[MY.id]=MY,MY.recognizeWith(this));return this},
dropRecognizeWith:function(MY){if(b(MY,"dropRecognizeWith",this))return this;MY=d4(MY,this);delete this.simultaneous[MY.id];return this},
requireFailure:function(MY){if(b(MY,"requireFailure",this))return this;var Qu=this.requireFail;MY=d4(MY,this);Q(Qu,MY)===-1&&(Qu.push(MY),MY.requireFailure(this));return this},
dropRequireFailure:function(MY){if(b(MY,"dropRequireFailure",this))return this;MY=d4(MY,this);MY=Q(this.requireFail,MY);MY>-1&&this.requireFail.splice(MY,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(MY){return!!this.simultaneous[MY.id]},
emit:function(MY){function Qu(e2){Fp.manager.emit(Fp.options.event+(e2?NT&16?"cancel":NT&8?"end":NT&4?"move":NT&2?"start":"":""),MY)}
var Fp=this,NT=this.state;NT<8&&Qu(!0);Qu();NT>=8&&Qu(!0)},
tryEmit:function(MY){if(this.canEmit())return this.emit(MY);this.state=32},
canEmit:function(){for(var MY=0;MY<this.requireFail.length;MY++)if(!(this.requireFail[MY].state&33))return!1;return!0},
recognize:function(MY){MY=G({},MY);f(this.options.enable,[this,MY])?(this.state&56&&(this.state=1),this.state=this.process(MY),this.state&30&&this.tryEmit(MY)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
S(W2,eJ,{defaults:{pointers:1},attrTest:function(MY){var Qu=this.options.pointers;return Qu===0||MY.pointers.length===Qu},
process:function(MY){var Qu=this.state,Fp=MY.eventType,NT=Qu&6;MY=this.attrTest(MY);return NT&&(Fp&8||!MY)?Qu|16:NT||MY?Fp&4?Qu|8:Qu&2?Qu|4:2:32}});
S(By,W2,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var MY=this.options.direction;if(MY===30)return["none"];var Qu=[];MY&6&&Qu.push("pan-y");MY&24&&Qu.push("pan-x");return Qu},
directionTest:function(MY){var Qu=this.options,Fp=!0,NT=MY.distance,e2=MY.direction,Lf=MY.deltaX,b4=MY.deltaY;e2&Qu.direction||(Qu.direction&6?(e2=Lf===0?1:Lf<0?2:4,Fp=Lf!=this.pX,NT=Math.abs(MY.deltaX)):(e2=b4===0?1:b4<0?8:16,Fp=b4!=this.pY,NT=Math.abs(MY.deltaY)));MY.direction=e2;return Fp&&NT>Qu.threshold&&e2&Qu.direction},
attrTest:function(MY){return W2.prototype.attrTest.call(this,MY)&&(this.state&2||!(this.state&2)&&this.directionTest(MY))},
emit:function(MY){this.pX=MY.deltaX;this.pY=MY.deltaY;var Qu=pR(MY.direction);Qu&&this.manager.emit(this.options.event+Qu,MY);this._super.emit.call(this,MY)}});
S(DY,W2,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(MY){return this._super.attrTest.call(this,MY)&&(Math.abs(MY.scale-1)>this.options.threshold||this.state&2)},
emit:function(MY){this._super.emit.call(this,MY);MY.scale!==1&&this.manager.emit(this.options.event+(MY.scale<1?"in":"out"),MY)}});
S(hA,eJ,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(MY){var Qu=this.options,Fp=MY.pointers.length===Qu.pointers,NT=MY.distance<Qu.threshold,e2=MY.deltaTime>Qu.time;this._input=MY;if(!NT||!Fp||MY.eventType&12&&!e2)this.reset();else if(MY.eventType&1)this.reset(),this._timer=t(function(){this.state=8;this.tryEmit()},Qu.time,this);
else if(MY.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(MY){this.state===8&&(MY&&MY.eventType&4?this.manager.emit(this.options.event+"up",MY):(this._input.timeStamp=S2(),this.manager.emit(this.options.event,this._input)))}});
S(fR,W2,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(MY){return this._super.attrTest.call(this,MY)&&(Math.abs(MY.rotation)>this.options.threshold||this.state&2)}});
S(Qv,W2,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return By.prototype.getTouchAction.call(this)},
attrTest:function(MY){var Qu=this.options.direction;if(Qu&30)var Fp=MY.velocity;else Qu&6?Fp=MY.velocityX:Qu&24&&(Fp=MY.velocityY);return this._super.attrTest.call(this,MY)&&Qu&MY.direction&&l_(Fp)>this.options.velocity&&MY.eventType&4},
emit:function(MY){var Qu=pR(MY.direction);Qu&&this.manager.emit(this.options.event+Qu,MY);this.manager.emit(this.options.event,MY)}});
S(i4,eJ,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(MY){var Qu=this.options,Fp=MY.pointers.length===Qu.pointers,NT=MY.distance<Qu.threshold,e2=MY.deltaTime<Qu.time;this.reset();if(MY.eventType&1&&this.count===0)return this.failTimeout();if(NT&&e2&&Fp){if(MY.eventType!=4)return this.failTimeout();Fp=this.pTime?MY.timeStamp-this.pTime<Qu.interval:!0;NT=!this.pCenter||lo(this.pCenter,MY.center)<Qu.posThreshold;this.pTime=MY.timeStamp;this.pCenter=MY.center;NT&&Fp?this.count+=1:this.count=1;this._input=MY;if(this.count%Qu.taps===0)return this.hasRequireFailures()?
(this._timer=t(function(){this.state=8;this.tryEmit()},Qu.interval,this),2):8}return 32},
failTimeout:function(){this._timer=t(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))}});
TG.VERSION="2.0.2";TG.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[fR,{enable:!1}],[DY,{enable:!1},["rotate"]],[Qv,{direction:6}],[By,{direction:6},["swipe"]],[i4],[i4,{event:"doubletap",taps:2},["tap"]],[hA]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};ZS.prototype={set:function(MY){G(this.options,MY);return this},
stop:function(MY){this.session.stopped=MY?2:1},
recognize:function(MY){var Qu=this.session;if(!Qu.stopped){this.touchAction.preventDefaults(MY);var Fp=this.recognizers,NT=Qu.curRecognizer;if(!NT||NT&&NT.state&8)NT=Qu.curRecognizer=null;for(var e2=0,Lf=Fp.length;e2<Lf;e2++){var b4=Fp[e2];Qu.stopped===2||NT&&b4!=NT&&!b4.canRecognizeWith(NT)?b4.reset():b4.recognize(MY);!NT&&b4.state&14&&(NT=Qu.curRecognizer=b4)}}},
get:function(MY){if(MY instanceof eJ)return MY;for(var Qu=this.recognizers,Fp=0;Fp<Qu.length;Fp++)if(Qu[Fp].options.event==MY)return Qu[Fp];return null},
add:function(MY){if(b(MY,"add",this))return this;var Qu=this.get(MY.options.event);Qu&&this.remove(Qu);this.recognizers.push(MY);MY.manager=this;this.touchAction.update();return MY},
remove:function(MY){if(b(MY,"remove",this))return this;var Qu=this.recognizers;MY=this.get(MY);Qu.splice(Q(Qu,MY),1);this.touchAction.update();return this},
on:function(MY,Qu){var Fp=this.handlers;J(L(MY),function(NT){Fp[NT]=Fp[NT]||[];Fp[NT].push(Qu)});
return this},
off:function(MY,Qu){var Fp=this.handlers;J(L(MY),function(NT){Qu?Fp[NT].splice(Q(Fp[NT],Qu),1):delete Fp[NT]});
return this},
emit:function(MY,Qu){this.options.domEvents&&DS(MY,Qu);var Fp=this.handlers[MY]&&this.handlers[MY].slice();if(Fp&&Fp.length){Qu.type=MY;Qu.preventDefault=function(){Qu.srcEvent.preventDefault()};
MY=0;for(var NT=Fp.length;MY<NT;MY++)Fp[MY](Qu)}},
destroy:function(){this.element&&$b(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
G(TG,{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:ZS,Input:g,TouchAction:Eo,Recognizer:eJ,AttrRecognizer:W2,Tap:i4,Pan:By,Swipe:Qv,Pinch:DY,Rotate:fR,Press:hA,on:z,off:T,each:J,merge:y,extend:G,inherit:S,bindFn:M,prefixed:m});
V[X]=TG})(window,document,"Hammer");
return window.Hammer}.call({});
R.DOCUMENT=B;B[Pa_]=R}return B[Pa_]};/*

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

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 kjl;_.MQo="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");kjl=function(){var B=[],R;var V=V||_.MQo.length;for(R=0;R<8;R++)B[R]=_.MQo[0|Math.random()*V];return B.join("")};var SDI=function(){return Math.random().toString(36).substring(7).split("").join(".")},yoZ="@@redux/INIT"+SDI(),kox="@@redux/REPLACE"+SDI();var D6o=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Dxb=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var fPl="top right bottom left width height size weight".split(" "),lP4=typeof MutationObserver!=="undefined",zqo=Dxb&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,aPh=function(){this.mutationEventsAdded_=this.JSC$9568_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=f4d(this.refresh.bind(this))},dxT=function(B,
R){var V=B.observers_;
R=V.indexOf(R);~R&&V.splice(R,1);!V.length&&B.JSC$9568_connected_&&Dxb&&B.JSC$9568_connected_&&(document.removeEventListener("transitionend",B.onTransitionEnd_),window.removeEventListener("resize",B.refresh),B.mutationsObserver_&&(B.mutationsObserver_.disconnect(),zqo&&(HTMLElement.prototype.attachShadow=zqo)),B.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",B.refresh),B.mutationsObserver_=null,B.mutationEventsAdded_=!1,B.JSC$9568_connected_=!1)};
aPh.prototype.refresh=function(){wrb(this)&&this.refresh()};
var wrb=function(B){B=B.observers_.filter(function(R){return T12(R),R.activeObservations_.length>0});
B.forEach(function(R){return xxv(R)});
return B.length>0},L3_=function(B){if(Dxb&&!B.JSC$9568_connected_){document.addEventListener("transitionend",B.onTransitionEnd_);
window.addEventListener("resize",B.refresh);if(lP4){B.mutationsObserver_=new MutationObserver(B.refresh);var R={attributes:!0,childList:!0,characterData:!0,subtree:!0};B.mutationsObserver_.observe(document,R);zqo&&(function X(e){var Y=e.shadowRoot;Y&&(B.mutationsObserver_.observe(Y,R),X(Y));for(e=e.firstElementChild;e;)X(e),e=e.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var e=zqo.apply(this,_.HB.apply(0,arguments));
B.mutationsObserver_.observe(e,R);return e})}else document.addEventListener("DOMSubtreeModified",B.refresh),B.mutationEventsAdded_=!0;
B.JSC$9568_connected_=!0}};
aPh.prototype.onTransitionEnd_=function(B){var R=B.propertyName===void 0?"":B.propertyName;fPl.some(function(V){return!!~R.indexOf(V)})&&this.refresh()};
var vB5=null;var K3J=function(B,R){for(var V=_.h(Object.keys(R)),e=V.next();!e.done;e=V.next())e=e.value,Object.defineProperty(B,e,{value:R[e],enumerable:!1,writable:!1,configurable:!0})};var Ih=function(B){var R;return(B==null?void 0:(R=B.ownerDocument)==null?void 0:R.defaultView)||globalThis};var IP5={x:0,y:0,width:0,height:0},EB4=typeof SVGGraphicsElement!=="undefined"?function(B){return B instanceof Ih(B).SVGGraphicsElement}:function(B){return B instanceof Ih(B).SVGElement&&typeof B.getBBox==="function"};var QO_=function(B){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=B};
QO_.prototype.isActive=function(){var B=this.target;if(Dxb)if(EB4(B)){var R=B.getBBox();R={x:0,y:0,width:R.width,height:R.height}}else{var V=B.clientWidth,e=B.clientHeight;if(V||e){var X=Ih(B).getComputedStyle(B);R=bs(X["padding-top"]);var Y=bs(X["padding-left"]),t=Y+bs(X["padding-right"]),b=R+bs(X["padding-bottom"]),J=bs(X.width),G=bs(X.height);X.boxSizing==="border-box"&&(Math.round(J+t)!==V&&(J-=l4u(X,"left","right")+t),Math.round(G+b)!==e&&(G-=l4u(X,"top","bottom")+b));B!==Ih(B).document.documentElement&&
(B=Math.round(J+t)-V,e=Math.round(G+b)-e,Math.abs(B)!==1&&(J-=B),Math.abs(e)!==1&&(G-=e));R={x:Y,y:R,width:J,height:G}}else R=IP5}else R=IP5;this.contentRect_=R;return R.width!==this.broadcastWidth||R.height!==this.broadcastHeight};var qsJ=function(B,R){var V=R.x;var e=R.y;var X=R.width;R=R.height;var Y=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);K3J(Y,{x:V,y:e,width:X,height:R,top:e,right:V+X,bottom:R+e,left:V});K3J(this,{target:B,contentRect:Y})};var c3a=function(B,R){var V=vB5;this.activeObservations_=[];this.observations_=new Map;if(typeof B!=="function")throw new TypeError("Qe");this.callback_=B;this.controller_=V;this.callbackCtx_=R};
c3a.prototype.observe=function(B){if(B===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(B instanceof Ih(B).Element))throw new TypeError("Se");var R=this.observations_;R.has(B)||(R.set(B,new QO_(B)),B=this.controller_,~B.observers_.indexOf(this)||B.observers_.push(this),B.JSC$9568_connected_||L3_(B),this.controller_.refresh())}};
c3a.prototype.unobserve=function(B){if(B===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(B instanceof Ih(B).Element))throw new TypeError("Se");var R=this.observations_;R.has(B)&&(R.delete(B),R.size||dxT(this.controller_,this))}};
c3a.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();dxT(this.controller_,this)};
var T12=function(B){B.activeObservations_.splice(0);B.observations_.forEach(function(R){R.isActive()&&B.activeObservations_.push(R)})},xxv=function(B){if(B.activeObservations_.length>0){var R=B.callbackCtx_,V=B.activeObservations_.map(function(e){var X=e.target,Y=e.contentRect_;
e.broadcastWidth=Y.width;e.broadcastHeight=Y.height;return new qsJ(X,Y)});
B.callback_.call(R,V,R);B.activeObservations_.splice(0)}};var Er=function(B){if(!(this instanceof Er))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");vB5||(vB5=new aPh);this.observer_=new c3a(B,this)};
Er.prototype.observe=function(B){this.observer_.observe(B)};
Er.prototype.unobserve=function(B){this.observer_.unobserve(B)};
Er.prototype.disconnect=function(){this.observer_.disconnect()};var zvd=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Er;var vUK="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(" "),LgS={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},x6S=null,zfA=null;var Kgo={},I4I=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 s6d={text:1},qDI={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var A3v=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,iDb={CONSTANT:{isUnwrappable:function(B){return B instanceof Ed},
unwrap:s4R},JAVASCRIPT:{isUnwrappable:function(B){return B instanceof _.vB},
unwrap:Ia},HTML:{isUnwrappable:function(B){return B instanceof zm},
unwrap:function(B){return dc(B)}},
RESOURCE_URL:{isUnwrappable:function(B){return B instanceof p$},
unwrap:_.hR},STRING:{isUnwrappable:function(B){return B instanceof Object},
unwrap:function(B){return String(B)}},
STYLE:{isUnwrappable:function(B){return typeof B==="string"},
unwrap:function(B){return B}},
URL:{isUnwrappable:function(B){return JR(B)},
unwrap:_.j4}},sOl={CONSTANT:Fg_,JAVASCRIPT:Fg_,HTML:function(B){B=B instanceof zm?B:aa(String(B).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return dc(B)},
RESOURCE_URL:Fg_,STRING:String,STYLE:Fg_,URL:function(B,R){B=A3v.test(B)?B:void 0;return B===void 0?R:B}};var oPu=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,rox=/[\t\n\f\r ]+/,ZUx=/[\t\n\f\r ,]+/g,$6p=function(B,R,V){return V},Nr={},F3G=function(){var B=function(){var e={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",e):e}(),R=B.createHTML(""),V=B.createScript("");
B=B.createScriptURL("");return{INNOCUOUS_STRING:R,INNOCUOUS_SCRIPT:V,INNOCUOUS_URL:B}}(),UI=F3G.INNOCUOUS_STRING,OUp=F3G.INNOCUOUS_SCRIPT,u6I=F3G.INNOCUOUS_URL;var r32=function(B){var R=BE_(B);return function(V,e,X,Y){return Y?R(Y,e,X,V):UI}}({reportHandler:function(B,R){if(B)try{throw Error(R);
}catch(V){_.Tn(V)}},
safeTypesBridge:function(B,R,V){var e=iDb[R];return e.isUnwrappable(B)&&(e=e.unwrap(B,V),e!==V)?e:(0,sOl[R])(String(B),V)},
allowedIdentifierPrefixes:[""]});if(G8!==void 0)throw Error("Ue");G8=r32;if(G8!==r32)throw Error("Ve");GE("Injectable",[]);var dmp=GE("Inject",[["token",void 0]]),TEd=GE("Optional",[]);GE("Injectable",[]);var xmd=GE("Self",[]),LKq=GE("SkipSelf",[]);GE("Host",[]);var gB4={},ZDl=function(){};
ZDl.prototype.resolve=function(){throw Error("Xe");};
ZDl.prototype.addProvider=function(){throw Error("Xe");};var zoq=Function;var mxv=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,$xa=function(){this._reflect=window.Reflect};
_.p=$xa.prototype;_.p.factory=function(B){return function(){return new (Function.prototype.bind.apply(B,[null].concat(_.MI(_.HB.apply(0,arguments)))))}};
_.p._zipTypesAndAnnotations=function(B,R){var V=typeof B==="undefined"?Array(R.length):Array(B.length);for(var e=0;e<V.length;e++)V[e]=typeof B==="undefined"?[]:B[e]!=Object?[B[e]]:[],R&&V9A(R[e])&&(V[e]=V[e].concat(R[e]));return V};
_.p._ownParameters=function(B,R){if(mxv.exec(B.toString()))return null;if(B.parameters&&B.parameters!==R.parameters)return B.parameters;var V=B.ctorParameters;return V&&V!==R.ctorParameters?(R=typeof V==="function"?V():V,B=R.map(function(e){return e&&e.type}),R=R.map(function(e){return e&&XxZ(e.decorators)}),this._zipTypesAndAnnotations(B,R)):V9A(this._reflect)&&V9A(this._reflect.getOwnMetadata)&&(R=this._reflect.getOwnMetadata("parameters",B),(V=this._reflect.getOwnMetadata("design:paramtypes",B))||
R)?this._zipTypesAndAnnotations(V,R):Array(B.length).fill(void 0)};
_.p.parameters=function(B){if(!B.prototype)return[];var R=Object.getPrototypeOf(B.prototype).constructor;(B=this._ownParameters(B,R))||R===Object||(B=this.parameters(R));return B||[]};
_.p._ownAnnotations=function(B,R){if(B.annotations&&B.annotations!==R.annotations)return B=B.annotations,typeof B==="function"&&B.annotations&&(B=B.annotations),B;if(B.decorators&&B.decorators!==R.decorators)return XxZ(B.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",B)};
_.p.annotations=function(B){var R=Object.getPrototypeOf(B.prototype).constructor;B=this._ownAnnotations(B,R)||[];return(R!==Object?this.annotations(R):[]).concat(B)};
_.p._ownPropMetadata=function(B,R){if(B.propMetadata&&B.propMetadata!==R.propMetadata)return B=B.propMetadata,typeof B==="function"&&B.propMetadata&&(B=B.propMetadata),B;if(B.propDecorators&&B.propDecorators!==R.propDecorators){var V=B.propDecorators,e={};Object.keys(V).forEach(function(X){e[X]=XxZ(V[X])});
return e}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",B)};
_.p.propMetadata=function(B){var R=Object.getPrototypeOf(B.prototype).constructor,V={};if(R!==Object){var e=this.propMetadata(R);Object.keys(e).forEach(function(Y){V[Y]=e[Y]})}var X=this._ownPropMetadata(B,R);
X&&Object.keys(X).forEach(function(Y){var t=[];V.hasOwnProperty(Y)&&t.push.apply(t,_.MI(V[Y]));t.push.apply(t,_.MI(X[Y]));V[Y]=t});
return V};
_.p.getter=function(B){return function(R){return R[B]}};
_.p.method=function(B){return function(R,V){if(!R[B])throw Error("Ye`"+B);return R[B].apply(R,V)}};var CPo=function(){};var PPS=function(B){this.reflectionCapabilities=B};
_.l(PPS,CPo);_.p=PPS.prototype;_.p.factory=function(B){return this.reflectionCapabilities.factory(B)};
_.p.parameters=function(B){return this.reflectionCapabilities.parameters(B)};
_.p.annotations=function(B){return this.reflectionCapabilities.annotations(B)};
_.p.propMetadata=function(B){return this.reflectionCapabilities.propMetadata(B)};
_.p.getter=function(B){return this.reflectionCapabilities.getter(B)};
_.p.method=function(B){return this.reflectionCapabilities.method(B)};var Umo=new PPS(new $xa);var Qt=function(B,R){this.token=B;this.id=R;if(B===void 0||B===null)throw Error("cf");};
_.mh.Object.defineProperties(Qt.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return yT(this.token)}}});
_.mh.Object.defineProperties(Qt,{JSC$9610_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return HJ.JSC$9614_numberOfKeys}}});
var nB4=function(){this._allKeys=new Map};
nB4.prototype.get=function(B){if(B instanceof Qt)return B;if(this._allKeys.has(B))return this._allKeys.get(B);var R=new Qt(B,Qt.JSC$9610_numberOfKeys);this._allKeys.set(B,R);return R};
_.mh.Object.defineProperties(nB4.prototype,{JSC$9614_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var HJ=new nB4;var vPu=function(B,R,V){this.key=B;this.optional=R;this.visibility=V},Gwq=function(B){return new vPu(B,!1,null)},SOd=[],kwS=function(B,R,V){this.key=B;
this.resolvedFactories=R;this.multiProvider=V},HYo=function(B,R,V,e){this.factory=B;
this.dependencies=R;this.providerClass=V;this.providerValue=e};var qk={},c6=function(B,R){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=R===void 0?null:R;B=_.h(B);for(R=B.next();!R.done;R=B.next())this.addProvider(R.value)};
_.p=c6.prototype;_.p.addProvider=function(B){this.keyIdToIndex.set(B.key.id,this.keyIds.length);this.providers.push(B);this.keyIds.push(B.key.id);this.objs.push(qk)};
_.p.resolve=function(B,R){R=R===void 0?gB4:R;return this._getByKey(HJ.get(Sk(B)),null,R)};
_.p._new=function(B){if(this.constructedKeyIds[B.key.id])throw bYx(this,B.key);this.constructedKeyIds[B.key.id]=!0;return this._instantiateProvider(B)};
_.p._instantiateProvider=function(B){if(B.multiProvider){for(var R=Array(B.resolvedFactories.length),V=0;V<B.resolvedFactories.length;++V)R[V]=this._instantiate(B,B.resolvedFactories[V]);return R}return this._instantiate(B,B.resolvedFactories[0])};
_.p._instantiate=function(B,R){var V=this,e=R.factory;try{var X=R.dependencies.map(function(t){return V._getByReflectiveDependency(t)})}catch(t){throw t.addKey&&t.addKey(this,B.key),t;
}try{var Y=e.apply(null,_.MI(X))}catch(t){throw J_d(this,t,B.key);}return Y};
_.p._getByReflectiveDependency=function(B){return this._getByKey(B.key,B.visibility,B.optional?null:gB4)};
_.p._getByKey=function(B,R,V){return B===uEo?this:R instanceof xmd?this._getByKeySelf(B,V):this._getByKeyDefault(B,V,R)};
_.p._getObjByKeyId=function(B){for(var R=0;R<this.keyIds.length;R++)if(this.keyIds[R]===B)return this.objs[R]===qk&&(this.objs[R]=this._new(this.providers[R])),this.objs[R];return qk};
_.p._throwOrNull=function(B,R){if(R!==gB4)return R;throw WKS(this,B);};
_.p._getByKeySelf=function(B,R){var V=this._getObjByKeyId(B.id);return V!==qk?V:this._throwOrNull(B,R)};
_.p._getByKeyDefault=function(B,R,V){for(var e=V=V instanceof LKq?this.parent:this;V instanceof c6;){var X=V._getObjByKeyId(B.id);if(X!==qk)return X;V=V.parent}X=void 0;if(V!==null)try{var Y=V.resolve(B.token,R);if(Y!==qk)return Y}catch(t){X=t}if(!(e instanceof c6&&I1A(B.token))){if(X)throw X;return this._throwOrNull(B,R)}for(Y=e;Y.parent instanceof c6;)Y=Y.parent;Y.addProvider(Dm5({provide:B.token,useClass:B.token}));return Y.resolve(B.token,R)};
_.p.toString=function(){return this.displayName};
_.mh.Object.defineProperties(c6.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+KKZ(this,function(B){return' "'+B.key.displayName+'" '}).join(", ")+"])"}}});
var uEo=HJ.get(Sk(ZDl));(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 OD_=window.XRegExp;var oxa=-1,Bba=function(B){addEventListener("pageshow",function(R){R.persisted&&(oxa=R.timeStamp,B(R))},!0)};var VX5=function(B,R,V){var e=RwT,X,Y;return function(t){if(R.value>=0&&(t||V)){var b;if((Y=R.value-((b=X)!=null?b:0))||X===void 0)X=R.value,R.delta=Y,t=R.value,R.rating=t>e[1]?"poor":t>e[0]?"needs-improvement":"good",B(R)}}};var ewR=function(B){requestAnimationFrame(function(){return requestAnimationFrame(function(){return B()})})};var X7b=function(){var B=performance.getEntriesByType("navigation")[0];if(B&&B.responseStart>0&&B.responseStart<performance.now())return B};var p75=function(){var B,R;return(R=(B=X7b())==null?void 0:B.activationStart)!=null?R:0};var YQv=function(){var B=B===void 0?-1:B;var R=X7b(),V="navigate";oxa>=0?V="back-forward-cache":R&&(document.prerendering||p75()>0?V="prerender":document.wasDiscarded?V="restore":R.type&&(V=R.type.replace(/_/g,"-")));return{name:"LCP",value:B,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:V}};var Qpq=new WeakMap;var hwo=function(B){var R=R===void 0?{}:R;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var V=new PerformanceObserver(function(e){Promise.resolve().then(function(){B(e.getEntries())})});
V.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},R));return V}}catch(e){}};var tXJ=function(B){var R=!1;return function(){R||(B(),R=!0)}};var AT=-1,WJb=function(B){document.visibilityState==="hidden"&&AT>-1&&(AT=B.type==="visibilitychange"?B.timeStamp:0,removeEventListener("visibilitychange",WJb,!0),removeEventListener("prerenderingchange",WJb,!0))},bO4=function(){addEventListener("visibilitychange",WJb,!0);
addEventListener("prerenderingchange",WJb,!0)},Jv2=function(){if(AT<0){var B=p75(),R,V;
AT=(V=document.prerendering?void 0:(R=globalThis.performance.getEntriesByType("visibility-state").filter(function(e){return e.name==="hidden"&&e.startTime>B})[0])==null?void 0:R.startTime)!=null?V:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
bO4();Bba(function(){setTimeout(function(){AT=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;bO4()})})}return{get firstHiddenTime(){return AT}}};var jVS=function(B){document.prerendering?addEventListener("prerenderingchange",function(){return B()},!0):B()};var EP5=function(){};
EP5.prototype._processEntry=function(B){var R;(R=this._onBeforeProcessingEntry)==null||R.call(this,B)};var RwT=[2500,4E3],eUq=function(B){var R=R===void 0?{}:R;jVS(function(){var V=Jv2(),e=YQv(),X=qOY(R),Y=function(S){R.reportAllChanges||(S=S.slice(-1));S=_.h(S);for(var M=S.next();!M.done;M=S.next())M=M.value,X._processEntry(M),M.startTime<V.firstHiddenTime&&(e.value=Math.max(M.startTime-p75(),0),e.entries=[M],b())},t=hwo(Y);
if(t){var b=VX5(B,e,R.reportAllChanges);for(var J=tXJ(function(){Y(t.takeRecords());t.disconnect();b(!0)}),G=_.h(["keydown",
"click","visibilitychange"]),y=G.next();!y.done;y=G.next())addEventListener(y.value,function(){var S=J,M=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?S():(S=tXJ(S),M(S),document.addEventListener("visibilitychange",S,{once:!0}))},{capture:!0,
once:!0});Bba(function(S){e=YQv();b=VX5(B,e,R.reportAllChanges);ewR(function(){e.value=performance.now()-S.timeStamp;b(!0)})})}})};var UoT;var NbG;_.u=function(){return NbG!==void 0?NbG:NbG=document.createElement("template")};
document.head.appendChild(_.u().content);var GrS;_.Sm({_template:function(){if(GrS!==void 0)return GrS;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
var R=B.content,V=R.insertBefore;UoT===void 0&&(UoT=document.createElement("template"));var e=UoT;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return GrS=B},
is:"tp-yt-app-toolbar"});var yvb;var SQl;_.iv=function(){};
_.iv=_.Sm({_template:function(){if(SQl!==void 0)return SQl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;yvb===void 0&&(yvb=document.createElement("template"));var e=yvb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return SQl=B},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.iv.instance||(_.iv.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(B){this._text===B&&(B+="\u00a0");this._text="";this.async(function(){this._text=B},this.timeout)},
_onIronAnnounce:function(B){B.detail&&B.detail.text&&this.announce(B.detail.text)}});
_.iv.instance=null;_.iv.requestAvailability=function(){_.iv.instance||(_.iv.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.iv.instance):document.addEventListener("load",function(){document.body.appendChild(_.iv.instance)})};var HO4;var MXb;/*

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

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 sr,doG,w74;sr=Element.prototype;doG=sr.matches||sr.matchesSelector||sr.mozMatchesSelector||sr.msMatchesSelector||sr.oMatchesSelector||sr.webkitMatchesSelector;w74=function(){};
_.xob=function(B){var R=TbT,V=[];return R._collectTabbableNodes(B,V)?R._sortByTabIndex(V):V};
_.p=w74.prototype;_.p._normalizedTabIndex=function(B){return(doG.call(B,"input, select, textarea, button, object")?doG.call(B,":not([disabled])"):doG.call(B,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(B=B.getAttribute("tabindex")||0,Number(B)):-1};
_.p._collectTabbableNodes=function(B,R){if(B.nodeType!==Node.ELEMENT_NODE||!this._isVisible(B))return!1;var V=this._normalizedTabIndex(B),e=V>0;V>=0&&R.push(B);if(B.localName==="content"||B.localName==="slot")V=_.Mr(B).getDistributedNodes();else{var X;V=((X=_.Mr(B).shadowRoot)!=null?X:_.Mr(B.root||B)).children}for(B=0;B<V.length;B++)e=this._collectTabbableNodes(V[B],R)||e;return e};
_.p._isVisible=function(B){var R=B.style;return R.visibility!=="hidden"&&R.display!=="none"?(R=window.getComputedStyle(B),R.visibility!=="hidden"&&R.display!=="none"):!1};
_.p._sortByTabIndex=function(B){var R=B.length;if(R<2)return B;var V=Math.ceil(R/2);R=this._sortByTabIndex(B.slice(0,V));B=this._sortByTabIndex(B.slice(V));return this._mergeSortByTabIndex(R,B)};
_.p._mergeSortByTabIndex=function(B,R){for(var V=[];B.length>0&&R.length>0;)this._hasLowerTabOrder(B[0],R[0])?V.push(R.shift()):V.push(B.shift());return V.concat(B,R)};
_.p._hasLowerTabOrder=function(B,R){B=Math.max(B.tabIndex,0);R=Math.max(R.tabIndex,0);return B===0||R===0?R>B:B>R};
var TbT=new w74;var LJl;var vx_;_.Sm({_template:function(){if(vx_!==void 0)return vx_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;LJl===void 0&&(LJl=document.createElement("template"));var e=LJl;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return vx_=B},
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&&_.Mr(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Mr(this.parentNode).removeChild(this)},
_onTransitionend:function(B){B&&B.target===this&&this.complete()},
_openedChanged:function(B){B?this.prepare():(B=window.getComputedStyle(this),B.transitionDuration!=="0s"&&B.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 F3=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;dB(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)};
F3.prototype._bringOverlayAtIndexToFront=function(B){var R=this._overlays[B];if(R){var V=this._overlays.length-1,e=this._overlays[V];e&&this._shouldBeBehindOverlay(R,e)&&V--;if(!(B>=V)){e=Math.max(this._getZ(_.KJ_(this)),this._minimumZ);for(this._getZ(R)<=e&&this._applyOverlayZ(R,e);B<V;)this._overlays[B]=this._overlays[B+1],B++;this._overlays[V]=R}}};
F3.prototype.addOverlay=function(B){var R=this._overlays.indexOf(B);if(R>=0)this._bringOverlayAtIndexToFront(R);else{R=this._overlays.length;var V=this._overlays[R-1],e=Math.max(this._getZ(V),this._minimumZ),X=this._getZ(B);V&&this._shouldBeBehindOverlay(B,V)&&(this._applyOverlayZ(V,e),R--,e=Math.max(this._getZ(this._overlays[R-1]),this._minimumZ));X<=e&&this._applyOverlayZ(B,e);this._overlays.splice(R,0,B)}this.trackBackdrop()};
F3.prototype.removeOverlay=function(B){B=this._overlays.indexOf(B);B!==-1&&(this._overlays.splice(B,1),this.trackBackdrop())};
_.KJ_=function(B){return B._overlays[B._overlays.length-1]};
_.p=F3.prototype;_.p.trackBackdrop=function(){var B=this._overlayWithBackdrop();if(B||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(B)-1,this.backdropElement.opened=!!B,this.backdropElement.prepare()};
_.p._overlayWithBackdrop=function(){for(var B=this._overlays.length-1;B>=0;B--)if(this._overlays[B].withBackdrop)return this._overlays[B]};
_.p._getZ=function(B){var R=this._minimumZ;if(B){var V,e,X=Number(((V=B.hostElement)!=null?V:B).style.zIndex||window.getComputedStyle((e=B.hostElement)!=null?e:B).zIndex);X===X&&(R=X)}return R};
_.p._setZ=function(B,R){var V;((V=B.hostElement)!=null?V:B).style.zIndex=R};
_.p._applyOverlayZ=function(B,R){this._setZ(B,R+2)};
_.p._overlayInPath=function(B){B=B||[];for(var R=0;R<B.length;R++){var V=void 0;if(((V=B[R].polymerController)!=null?V:B[R])._manager===this)return B[R]}};
_.p._onCaptureClick=function(B){var R=this._overlays.length-1;if(R!==-1)for(var V=_.Mr(B).path,e,X;(e=this._overlays[R])&&this._overlayInPath(V)!==((X=e.hostElement)!=null?X:e);)if(e._onCaptureClick(B),e.allowClickThrough)R--;else break};
_.p._onCaptureFocus=function(B){var R=_.KJ_(this);R&&R._onCaptureFocus(B)};
_.p._onCaptureKeyDown=function(B){var R=_.KJ_(this);R&&(_.kI.keyboardEventMatchesKeys(B,"esc")?R._onCaptureEsc(B):_.kI.keyboardEventMatchesKeys(B,"tab")&&R._onCaptureTab(B))};
_.p._shouldBeBehindOverlay=function(B,R){return!B.alwaysOnTop&&R.alwaysOnTop&&!R.contains(B)};
_.mh.Object.defineProperties(F3.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 B=document.activeElement;B&&B instanceof Element!==!1||(B=document.body);for(;B.root&&_.Mr(B.root).activeElement;)B=_.Mr(B.root).activeElement;return B}}});
_.rv=new F3;var c_d=0,A_x=0,iYd=null,spq=[],ka=["wheel","mousewheel","DOMMouseScroll"],FK5;_.k("web_no_lock_on_touchstart_killswitch")&&(ka.push("touchstart"),ka.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;_.gv={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:_.rv},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var B;return this._focusedChild||_.Mr((B=this.hostElement)!=null?B:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var B;return _.xob((B=this.hostElement)!=null?B: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 B;this._observer=_.Mr((B=this.hostElement)!=null?B:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var B;_.Mr((B=this.hostElement)!=null?B:this).unobserveNodes(this._observer)}this._observer=null;for(var R in this.__rafs)this.__rafs[R]!==null&&cancelAnimationFrame(this.__rafs[R]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(B){this.fire("iron-overlay-canceled",B,{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 B;((B=this.hostElement)!=null?B:this).style.outline="none";var R;((R=this.hostElement)!=null?R:this).style.display="none"}},
_openedChanged:function(B){if(B){var R;((R=this.hostElement)!=null?R:this).removeAttribute("aria-hidden")}else{var V;((V=this.hostElement)!=null?V: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 B;if(this.withBackdrop&&!((B=this.hostElement)!=null?B:this).hasAttribute("tabindex")){var R;((R=this.hostElement)!=null?R:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var V;((V=this.hostElement)!=null?V: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 B;((B=this.hostElement)!=null?B:this).style.display="none";var R;((R=this.hostElement)!=null?R:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var B,R;((B=this.hostElement)!=null?B:this).style.transition=((R=this.hostElement)!=null?R:this).style.webkitTransition="none";var V,e;((V=this.hostElement)!=null?V:this).style.transform=((e=this.hostElement)!=null?e:this).style.webkitTransform="none";var X;((X=this.hostElement)!=null?X:this).style.display=""},
_finishPositioning:function(){var B;((B=this.hostElement)!=null?B:this).style.display="none";this.scrollTop=this.scrollTop;var R,V;((R=this.hostElement)!=null?R:this).style.transition=((V=this.hostElement)!=null?V:this).style.webkitTransition="";var e,X;((e=this.hostElement)!=null?e:this).style.transform=((X=this.hostElement)!=null?X:this).style.webkitTransform="";var Y;((Y=this.hostElement)!=null?Y:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var B=this._manager.deepActiveElement,R;if(!(R=B===document.body))a:{for(;B;B=B.assignedSlot||B.parentNode||B.host)if(B===this){R=!0;break a}R=!1}R&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(B){this.noCancelOnOutsideClick||this.cancel(B)},
_onCaptureFocus:function(B){if(this.withBackdrop){var R=_.Mr(B).path;R.indexOf(this)===-1?(B.stopPropagation(),this._applyFocus()):this._focusedChild=R[0]}},
_onCaptureEsc:function(B){this.noCancelOnEscKey||this.cancel(B)},
_onCaptureTab:function(B){if(this.withBackdrop){this.__ensureFirstLastFocusables();var R=B.shiftKey,V=R?this.__firstFocusableNode:this.__lastFocusableNode;R=R?this.__lastFocusableNode:this.__firstFocusableNode;if(V===R)V=!0;else{var e=this._manager.deepActiveElement;V=e===V||e===this}V&&(B.preventDefault(),this._focusedChild=R,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var B=this._focusableNodes;this.__firstFocusableNode=B[0];this.__lastFocusableNode=B[B.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(B,R){var V=this.__rafs;V[B]!==null&&cancelAnimationFrame(V[B]);V[B]=requestAnimationFrame(function(){V[B]=null;R.call(this)}.bind(this))},
__updateScrollObservers:function(B,R,V){B&&R&&this.__isValidScrollAction(V)?(V==="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),FK5=_._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()):(B=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),B!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(B,1),FK5=_._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(Kn)for(var B=this;B;)B.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&B.host&&this.__rootNodes.push(B),B=B.host||B.assignedSlot||B.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(R){R.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(B){B.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(B){return B==="lock"||B==="refit"||B==="cancel"},
__onCaptureScroll:function(B){if(!(this.__isAnimating||_.Mr(B).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(B)}},
__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)}};
_.ZV=[aEo,_.LC,_.gv];_.Sm({_template:function(){if(lEG!==void 0)return lEG;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;fEb===void 0&&(fEb=document.createElement("template"));var e=fEb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return lEG=B},
is:"tp-yt-iron-dropdown",behaviors:[_.DV,_.kI,_.ZV,N1G],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 B=_.Mr(this.$.content).getDistributedNodes(),R=0,V=B.length;R<V;R++)if(B[R].nodeType===Node.ELEMENT_NODE)return B[R]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.gv._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.gv._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.gv._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var B=this.containedElement,R=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),V=0;V<R.length;V++)R[V].node=B;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(B){this._readied&&(B?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var B=this.focusTarget||this.containedElement;B&&this.opened&&!this.noAutoFocus?B.focus():_.gv._applyFocus.apply(this,arguments)}});var IEl;var Exh;/*

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 QVa=new _.ah({type:"iconset"});
_.Sm({_template:function(){if(Exh!==void 0)return Exh;var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;IEl===void 0&&(IEl=document.createElement("template"));
var e=IEl;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return Exh=B},
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(B){B=(B||"").split(":");this._iconName=B.pop();this._iconsetName=B.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&&_.Mr(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=QVa.byKey(this._iconsetName)){var B=this._iconset.applyIcon(this,this._iconName,this.theme);B&&B.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,_.Mr(this.root).appendChild(this._img)}});var qQv;var cva;_.Sm({_template:function(){if(cva!==void 0)return cva;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
var R=B.content,V=R.insertBefore;qQv===void 0&&(qQv=document.createElement("template"));var e=qQv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return cva=B},
is:"tp-yt-iron-input",behaviors:[_.wv],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(){_.iv.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Mr(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Mr(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 B=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":B=/[0-9.,e-]/}return B},_bindValueChanged:function(B,R){R&&(B===void 0?R.value=null:B!==R.value&&(this.inputElement.value=B),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:B}))},
_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(B){var R=B.keyCode==19||B.keyCode==20||B.keyCode==45||B.keyCode==46||B.keyCode==144||B.keyCode==145||B.keyCode>32&&B.keyCode<41||B.keyCode>111&&B.keyCode<124;return!(B.keyCode==8||B.keyCode==9||B.keyCode==13||B.keyCode==27)&&!(B.charCode==0&&R)},
_onKeypress:function(B){if(this.allowedPattern||this.inputElement.type==="number"){var R=this._patternRegExp;if(R&&!(B.metaKey||B.ctrlKey||B.altKey)){this._patternAlreadyChecked=!0;var V=String.fromCharCode(B.charCode);this._isPrintable(B)&&!R.test(V)&&(B.preventDefault(),this._announceInvalidCharacter("Invalid character "+V+" not entered."))}}},
_checkPatternValidity:function(){var B=this._patternRegExp;if(!B)return!0;for(var R=0;R<this.inputElement.value.length;R++)if(!B.test(this.inputElement.value[R]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var B=this.inputElement.checkValidity();B&&(this.required&&this.bindValue===""?B=!1:this.hasValidator()&&(B=_.wv.validate.call(this,this.bindValue)));this.invalid=!B;this.fire("iron-input-validate");return B},
_announceInvalidCharacter:function(B){this.fire("iron-announce",{text:B})},
_computeValue:function(B){return B}});var Avv;var iOS;var sV2=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),FJo=sV2&&sV2[1]>=8;
_.Sm({_template:function(){if(iOS!==void 0)return iOS;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Avv===void 0&&(Avv=document.createElement("template"));var e=Avv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return iOS=B},
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:[J5_,_.LC,_.Uxv,VuG],_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 _.Mr(_.Mr(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var B=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,B-this._physicalCount)},set _virtualStart(B){B=this._clamp(B,0,this._maxVirtualStart);this.grid&&(B-=B%this._itemsPerRow);this._virtualStartVal=B},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(B){B%=this._physicalCount;B<0&&(B=this._physicalCount+B);this.grid&&(B-=B%this._itemsPerRow);this._physicalStartVal=B},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(B){this._physicalCountVal=B},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 B=this._firstVisibleIndexVal;if(B==null){var R=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
B=this._iterateItems(function(V,e){R+=this._getPhysicalSizeIncrement(V);if(R>this._scrollPosition)return this.grid?e-e%this._itemsPerRow:e;if(this.grid&&this._virtualCount-1===e)return e-e%this._itemsPerRow})||0}return B},
get lastVisibleIndex(){var B=this._lastVisibleIndexVal;if(B==null){if(this.grid)B=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var R=this._physicalTop+this._scrollOffset;this._iterateItems(function(V,e){R<this._scrollBottom&&(B=e);R+=this._getPhysicalSizeIncrement(V)})}this._lastVisibleIndexVal=B}return B},
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,_.yM);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(B){this.style.webkitOverflowScrolling=B===this?"touch":"";this.style.overflowY=B===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.yM)},
updateViewportBoundaries:function(){var B=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(B["padding-top"],10);this._isRTL=B.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var B=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),R=B-this._scrollPosition,V=R>=0;this._scrollPosition=B;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(R)>this._physicalSize&&this._physicalSize>0?(R-=this._scrollOffset,V=Math.round(R/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=V,this._physicalStart+=V,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(B=this._getReusables(V),V?(this._physicalTop=B.physicalTop,this._virtualStart+=B.indexes.length,this._physicalStart+=B.indexes.length):(this._virtualStart=this._virtualStart-B.indexes.length,this._physicalStart=this._physicalStart-B.indexes.length),this._update(B.indexes,V?null:B.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),x_))},
_getReusables:function(B){var R=[],V=this._hiddenContentSize*this._ratio,e=this._virtualStart,X=this._virtualEnd,Y=this._physicalCount,t=this._physicalTop+this._scrollOffset;var b=this._physicalBottom+this._scrollOffset;var J=this._scrollPosition,G=this._scrollBottom;if(B){var y=this._physicalStart;b=J-t}else y=this._physicalEnd,b-=G;for(;;){var S=this._getPhysicalSizeIncrement(y);b-=S;if(R.length>=Y||b<=V)break;if(B){if(X+R.length+1>=this._virtualCount)break;if(t+S>=J-this._scrollOffset)break;R.push(y);
t+=S;y=(y+1)%Y}else{if(e-R.length<=0)break;if(t+this._physicalSize-S<=G)break;R.push(y);t-=S;y=y===0?Y-1:y-1}}return{indexes:R,physicalTop:t-this._scrollOffset}},
_update:function(B,R){if(!(B&&B.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(B);this._updateMetrics(B);if(R)for(;R.length;)B=R.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(B);this._positionItems();this._updateScrollerSize()}},
_createPool:function(B){this._ensureTemplatized();var R,V=Array(B);for(R=0;R<B;R++){var e=this.stamp(null);V[R]=e.root.querySelector("*");this._itemsParent.appendChild(e.root)}return V},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(B){B=this._clamp(this._physicalCount+B,3,this._virtualCount-this._virtualStart);B=this._convertIndexToCompleteRow(B);if(this.grid){var R=B%this._itemsPerRow;R&&B-R<=this._physicalCount&&(B+=this._itemsPerRow);B-=R}B-=this._physicalCount;R=Math.round(this._physicalCount*.5);if(!(B<0)){if(B>0){R=window.performance.now();[].push.apply(this._physicalItems,this._createPool(B));for(var V=0;V<B;V++)this._physicalSizes.push(0);this._physicalCount+=B;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=B);this._update();this._templateCost=(window.performance.now()-R)/B;R=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||R===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,R)),cZb):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,R),x_))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var B=this._getReusables(!0);this._physicalTop=B.physicalTop;this._virtualStart+=B.indexes.length;this._physicalStart+=B.indexes.length;this._update(B.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 B={__key__:!0};B[this.as]=!0;B[this.indexAs]=!0;B[this.selectedAs]=!0;B.tabIndex=!0;this._instanceProps=B;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(B,R){typeof R!=="undefined"&&(this.notifyResize(),_.bx(),B&&this._updateGridMetrics())},
_itemsChanged:function(B){if(B.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,
_.yM);else if(B.path==="items.splices"){this._adjustVirtualIndex(B.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(B.value.indexSplices.some(function(V){return V.addedCount>0||V.removed.length>0})){var R=this._getActiveElement();
this.contains(R)&&R.blur()}B=B.value.indexSplices.some(function(V){return V.index+V.addedCount>=this._virtualStart&&V.index<=this._virtualEnd},this);
this._isClientFull()&&!B||this._debounce("_render",this._render,_.yM)}else B.path!=="items.length"&&this._forwardItemPath(B.path,B.value)},
_forwardItemPath:function(B,R){B=B.slice(6);var V=B.indexOf(".");V===-1&&(V=B.length);var e,X=this.modelForElement(this._offscreenFocusedItem),Y=parseInt(B.substring(0,V),10);if(e=this._isIndexRendered(Y)){var t=this._getPhysicalIndex(Y);var b=this.modelForElement(this._physicalItems[t])}else X&&(b=X);b&&b[this.indexAs]===Y&&(B=B.substring(V+1),B=this.as+(B?"."+B:""),b._setPendingPropertyOrPath(B,R,!1,!0),b._flushProperties&&b._flushProperties(),e&&(this._updateMetrics([t]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(B){B.forEach(function(R){R.removed.forEach(this._removeItem,this);R.index<this._virtualStart&&(R=Math.max(R.addedCount-R.removed.length,R.index-this._virtualStart),this._virtualStart+=R,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=R))},this)},
_removeItem:function(B){this.$.selector.deselect(B);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===B&&this._removeFocusedItem()},
_iterateItems:function(B,R){var V,e;if(arguments.length===2&&R)for(e=0;e<R.length;e++){var X=R[e];var Y=this._computeVidx(X);if((V=B.call(this,X,Y))!=null)return V}else{X=this._physicalStart;for(Y=this._virtualStart;X<this._physicalCount;X++,Y++)if((V=B.call(this,X,Y))!=null)return V;for(X=0;X<this._physicalStart;X++,Y++)if((V=B.call(this,X,Y))!=null)return V}},
_computeVidx:function(B){return B>=this._physicalStart?this._virtualStart+(B-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+B},
_assignModels:function(B){this._iterateItems(function(R,V){var e=this._physicalItems[R],X=this.items&&this.items[V];if(X!=null){var Y=this.modelForElement(e);Y.__key__=null;this._forwardProperty(Y,this.as,X);this._forwardProperty(Y,this.selectedAs,this.$.selector.isSelected(X));this._forwardProperty(Y,this.indexAs,V);this._forwardProperty(Y,"tabIndex",this._focusedVirtualIndex===V?0:-1);this._physicalIndexForKey[Y.__key__]=R;Y._flushProperties&&Y._flushProperties(!0);e.removeAttribute("hidden")}else e.setAttribute("hidden",
"")},B)},
_updateMetrics:function(B){_.bx();var R=0,V=0,e=this._physicalAverageCount,X=this._physicalAverage;this._iterateItems(function(Y){V+=this._physicalSizes[Y];this._physicalSizes[Y]=this._physicalItems[Y].offsetHeight;R+=this._physicalSizes[Y];this._physicalAverageCount+=this._physicalSizes[Y]?1:0},B);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(V=this._itemsPerRow===1?V:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+R-V,this._itemsPerRow=1);this._physicalAverageCount!==e&&(this._physicalAverage=Math.round((X*e+R)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var B=this._physicalTop;if(this.grid){var R=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(V,e){var X=Math.floor(e%this._itemsPerRow*this._itemWidth+R);this._isRTL&&(X*=-1);this.translate3d(X+"px",B+"px",0,this._physicalItems[V]);this._shouldRenderNextRow(e)&&(B+=this._rowHeight)})}else this._iterateItems(function(V){this.translate3d(0,B+"px",0,this._physicalItems[V]);
B+=this._physicalSizes[V]})},
_getPhysicalSizeIncrement:function(B){return this.grid?this._computeVidx(B)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[B]},
_shouldRenderNextRow:function(B){return B%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var B=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(B!==0){this._physicalTop=this._physicalTop-B;var R=this._scrollPosition;!FJo&&R>0&&this._resetScrollPosition(R-B)}},
_resetScrollPosition:function(B){this.scrollTarget&&B>=0&&(this._scrollPosition=this._scrollTop=B)},
_updateScrollerSize:function(B){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((B=(B=(B=B||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(B){return this.scrollToIndex(this.items.indexOf(B))},
scrollToIndex:function(B){if(!(typeof B!=="number"||B<0||B>this.items.length-1)&&(_.bx(),this._physicalCount!==0)){B=this._clamp(B,0,this._virtualCount-1);if(!this._isIndexRendered(B)||B>=this._maxVirtualStart)this._virtualStart=this.grid?B-this._itemsPerRow*2:B-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var R=this._physicalStart,V=this._virtualStart,e=0,X=this._hiddenContentSize;V<B&&
e<=X;)e+=this._getPhysicalSizeIncrement(R),R=(R+1)%this._physicalCount,V++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+e);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)},_.yM)},
selectItem:function(B){return this.selectIndex(this.items.indexOf(B))},
selectIndex:function(B){if(!(B<0||B>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(B)){var R=this.modelForElement(this._physicalItems[this._getPhysicalIndex(B)]);R&&(R[this.selectedAs]=!0);this.updateSizeForIndex(B)}this.$.selector.selectIndex(B)}},
deselectItem:function(B){return this.deselectIndex(this.items.indexOf(B))},
deselectIndex:function(B){B<0||B>=this._virtualCount||(this._isIndexRendered(B)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(B)])[this.selectedAs]=!1,this.updateSizeForIndex(B)),this.$.selector.deselectIndex(B))},
toggleSelectionForItem:function(B){return this.toggleSelectionForIndex(this.items.indexOf(B))},
toggleSelectionForIndex:function(B){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(B):this.$.selector.isSelected(this.items[B]))?this.deselectIndex(B):this.selectIndex(B)},
clearSelection:function(){this._iterateItems(function(B){this.modelForElement(this._physicalItems[B])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(B){(B?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(B){var R=this.modelForElement(B.target);if(R){var V=_.Mr(B).path[0];B=this._getActiveElement();var e=this._physicalItems[this._getPhysicalIndex(R[this.indexAs])];if(V.localName!=="input"&&V.localName!=="button"&&V.localName!=="select"){V=R.tabIndex;R.tabIndex=-100;var X=B?B.tabIndex:-1;R.tabIndex=V;B&&e!==B&&e.contains(B)&&X!==-100||this.toggleSelectionForItem(R[this.as])}}},
_multiSelectionChanged:function(B){this.clearSelection();this.$.selector.multi=B},
updateSizeForItem:function(B){return this.updateSizeForIndex(this.items.indexOf(B))},
updateSizeForIndex:function(B){if(!this._isIndexRendered(B))return null;this._updateMetrics([this._getPhysicalIndex(B)]);this._positionItems();return null},
_manageFocus:function(){var B=this._focusedVirtualIndex;B>=0&&B<this._virtualCount?this._isIndexRendered(B)?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(B){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(B/this._itemsPerRow)*this._itemsPerRow:B},
_isIndexRendered:function(B){return B>=this._virtualStart&&B<=this._virtualEnd},
_isIndexVisible:function(B){return B>=this.firstVisibleIndex&&B<=this.lastVisibleIndex},
_getPhysicalIndex:function(B){return(this._physicalStart+(B-this._virtualStart))%this._physicalCount},
focusItem:function(B){this._focusPhysicalItem(B)},
_focusPhysicalItem:function(B){if(!(B<0||B>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(B)||this.scrollToIndex(B);var R=this._physicalItems[this._getPhysicalIndex(B)],V=this.modelForElement(R),e;V.tabIndex=-100;R.tabIndex===-100&&(e=R);e||(e=_.Mr(R).querySelector('[tabindex="-100"]'));V.tabIndex=0;this._focusedVirtualIndex=B;e&&e.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 B=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var R=this.stamp(null);this._focusBackfillItem=R.root.querySelector("*");this._itemsParent.appendChild(R.root)}this._offscreenFocusedItem=this._physicalItems[B];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[B]=this._focusBackfillItem;this._focusedPhysicalIndex=B;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var B=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),R=this._physicalItems[B];if(R){var V=this.modelForElement(R),e=this.modelForElement(this._offscreenFocusedItem);V[this.as]===e[this.as]?(this._focusBackfillItem=R,V.tabIndex=-1,this._physicalItems[B]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(B){B=this.modelForElement(B.target);var R=this.modelForElement(this._focusedItem),V=this._offscreenFocusedItem!==null,e=this._focusedVirtualIndex;B&&(R===B?this._isIndexVisible(e)||this.scrollToIndex(e):(this._restoreFocusedItem(),R&&(R.tabIndex=-1),B.tabIndex=0,this._focusedVirtualIndex=e=B[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(e),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],V&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(B){switch(B.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&B.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&&B.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(B)}},
_clamp:function(B,R,V){return Math.min(V,Math.max(R,B))},
_debounce:function(B,R,V){this._debouncers=this._debouncers||{};this._debouncers[B]=_.p8(this._debouncers[B],V,R.bind(this));_.Y6(this._debouncers[B])},
_forwardProperty:function(B,R,V){B._setPendingProperty(R,V)},
_forwardHostPropV2:function(B,R){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&this.modelForElement(V).forwardHostProp(B,R)},this)},
_notifyInstancePropV2:function(B,R,V){PPK(this.as,R)&&(B=B[this.indexAs],R==this.as&&(this.items[B]=V),this.notifyPath(Ww(this.as,"items."+B,R),V))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(B,R,V){R.indexOf(this.as+".")===0&&this.notifyPath("items."+B.__key__+"."+R.slice(this.as.length+1),V)},
_forwardParentPath:function(B,R){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&this.modelForElement(V).notifyPath(B,R)},this)},
_forwardParentProp:function(B,R){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&(this.modelForElement(V)[B]=R)},this)},
_getActiveElement:function(){var B=this._itemsParent.node.domHost;return _.Mr(B?B.root:document).activeElement},
_scrollTargetChanged:function(B,R){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(R)if(B==="document")this.scrollTarget=this._doc;else if(typeof B==="string"){var V,e;this.scrollTarget=(R=(e=(V=this.domHost)==null?void 0:V.polymerController)!=null?e:this.domHost)&&R.$?R.$[B]:_.Mr(this.ownerDocument).querySelector("#"+B)}else this._isValidScrollTarget()&&(this._oldScrollTarget=B,this._toggleScrollListener(this._shouldHaveListener,B))}});var rva;var gxR;var ZOS=function(B,R,V,e){B-=V;R-=e;return Math.sqrt(B*B+R*R)},mo4=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
r_u.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var gPo=function(B){B.maxRadius=0;B.mouseDownStart=0;B.mouseUpStart=0;B.xStart=0;B.yStart=0;B.xEnd=0;B.yEnd=0;B.containerMetrics=new r_u(B.element)};
ZY5.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var B=mo4()-this.mouseDownStart;this.mouseUpStart&&(B-=this.mouseUpElapsed);return B},get mouseUpElapsed(){return this.mouseUpStart?mo4()-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 B=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(B*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-B/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 B=this.radius/(this.containerMetrics.size/2);var R=this.xNow-this.containerMetrics.width/2;var V=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+R+"px, "+V+"px)";this.waveContainer.style.transform="translate3d("+R+"px, "+V+"px, 0)";this.wave.style.webkitTransform="scale("+B+","+B+")";this.wave.style.transform="scale3d("+B+","+B+",1)"},
downAction:function(B){var R=this.containerMetrics.width/2,V=this.containerMetrics.height/2;gPo(this);this.mouseDownStart=mo4();this.center?(this.xStart=R,this.yStart=V):(this.xStart=B?B.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=B?B.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=R,this.yEnd=V);B=this.containerMetrics;R=this.xStart;V=this.yStart;this.maxRadius=Math.max(ZOS(R,V,0,0),ZOS(R,V,
B.width,0),ZOS(R,V,0,B.height),ZOS(R,V,B.width,B.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=mo4())},
remove:function(){_.Mr(_.Mr(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Sm({_template:function(){if(gxR!==void 0)return gxR;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;rva===void 0&&(rva=document.createElement("template"));var e=rva;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return gxR=B},
is:"tp-yt-paper-ripple",behaviors:[_.kI],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(){_.Mr(this).parentNode.nodeType==11?this.keyEventTarget=_.Mr(this).getOwnerRoot().host:this.keyEventTarget=_.Mr(this).parentNode;var B=this.keyEventTarget;this.listen(B,"up","uiUpAction");this.listen(B,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(B){B.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var B=0;B<this.ripples.length;++B)if(!this.ripples[B].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(B){this.noink||this.downAction(B)},
downAction:function(B){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(B),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(B){this.noink||this.upAction(B)},
upAction:function(B){this.holdDown||(this.ripples.forEach(function(R){R.upAction(B)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var B=0;B<this.ripples.length;++B){var R=this.ripples[B];R.isOpacityFullyDecayed&&!R.isRestingAtMaxRadius&&this.removeRipple(R)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var B=new ZY5(this);_.Mr(this.$.waves).appendChild(B.waveContainer);this.$.background.style.backgroundColor=B.color;this.ripples.push(B);this._setAnimating(!0);return B},
removeRipple:function(B){var R=this.ripples.indexOf(B);R<0||(this.ripples.splice(R,1),B.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var B;for(B=0;B<this.ripples.length;++B){var R=this.ripples[B];R.draw();this.$.background.style.opacity=R.outerOpacity;R.isOpacityFullyDecayed&&!R.isRestingAtMaxRadius&&this.removeRipple(R)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(B,R){R!==void 0&&(B?this.downAction():this.upAction())}});var mp={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(B){fC._downHandler.call(this,B);this.pressed&&this.ensureRipple(B)},
ensureRipple:function(B){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var R=this._rippleContainer||this.root;R&&_.Mr(R).appendChild(this._ripple);if(B){R=_.Mr(this._rippleContainer||this);var V=_.Mr(B).rootTarget;R.deepContains(V)&&this._ripple.uiDownAction(B)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(B){this.hasRipple()&&(this._ripple.noink=B)}};var $oR={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 B=1;this.disabled?B=0:this.active||this.pressed?B=4:this.receivedFocusFromKeyboard&&(B=3);this._setElevation(B)},
_computeKeyboardClass:function(B){this.toggleClass("keyboard-focus",B)},
_spaceKeyDownHandler:function(B){fC._spaceKeyDownHandler.call(this,B);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(B){fC._spaceKeyUpHandler.call(this,B);this.hasRipple()&&this._ripple.uiUpAction()}},ClS=[VQ2,
_.DV,mp,$oR];_.PlG={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(B){B&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=B)},
_createRipple:function(){var B=mp._createRipple();B.id="ink";B.setAttribute("center","");B.classList.add("circle");return B}};
_.nxT=[VQ2,_.DV,mp,_.PlG];_.ut5=[_.nxT,prJ,{_checkedChanged:function(){Xr4._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){mp._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var OOR;var o1v;var BL2=function(){};
_.p=BL2.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(){};
BL2=_.Sm({_template:function(){if(o1v!==void 0)return o1v;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
var R=B.content,V=R.insertBefore;OOR===void 0&&(OOR=document.createElement("template"));var e=OOR;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return o1v=B},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[ClS],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?$oR._calculateElevation.apply(this):this._setElevation(0)}});var RuR;var VBv;var eu5={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(B){_.k("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(B)},
_onDialogClickWrapped:function(B){_.k("dialog_behavior_no_tap_killswitch")||this._onDialogClick(B)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(B,R){R&&(B?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(B){this.closingReason=this.closingReason||{};this.closingReason.confirmed=B},
_onDialogClick:function(B){for(var R=_.Mr(B).path,V=0,e,X=R.indexOf((e=this.hostElement)!=null?e:this);V<X;V++)if(e=R[V],e.hasAttribute&&(e.hasAttribute("dialog-dismiss")||e.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(e.hasAttribute("dialog-confirm"));this.close();B.stopPropagation();break}}},XI2=[_.ZV,
eu5];var pI5=document.createElement("template");_.a(pI5,'<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(pI5.content);var YyT=document.createElement("template");_.a(YyT,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(YyT.content);_.Sm({_template:function(){if(VBv!==void 0)return VBv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
var R=B.content,V=R.insertBefore;RuR===void 0&&(RuR=document.createElement("template"));var e=RuR;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return VBv=B},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[XI2,N1G],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 huo;var tB4;_.Sm({_template:function(){if(tB4!==void 0)return tB4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;huo===void 0&&(huo=document.createElement("template"));var e=huo;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return tB4=B},
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 B,R,V;if(((B=window.ShadyDOM)==null?void 0:B.noPatch)!==!0&&((R=window.ShadyDOM)==null?void 0:R.noPatch)!=="on-demand"||((V=this.__shady_parentNode)==null?void 0:V.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(eu5)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var W2o=_.$Q(['<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>']),bw4=_.he4(W2o);bw4.setAttribute("style","display: none;");document.head.appendChild(bw4.content);var Jk4;var j7v;var Usb;var NLR;_.Sm({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[v6],configure:function(B){var R=B.node,V=R.getBoundingClientRect().height;return this._effect=new KeyframeEffect(R,[{height:V/2+"px"},{height:V+"px"}],this.timingFromConfig(B))}});
_.Sm({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[v6],configure:function(B){var R=B.node,V=R.getBoundingClientRect().width;return this._effect=new KeyframeEffect(R,[{width:V/2+"px"},{width:V+"px"}],this.timingFromConfig(B))}});
_.Sm({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[v6],configure:function(B){var R=B.node,V=R.getBoundingClientRect().width;return this._effect=new KeyframeEffect(R,[{width:V+"px"},{width:V-V/20+"px"}],this.timingFromConfig(B))}});
_.Sm({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[v6],configure:function(B){var R=B.node,V=R.getBoundingClientRect().height;this.setPrefixedProperty(R,"transformOrigin","0 0");return this._effect=new KeyframeEffect(R,[{height:V+"px",transform:"translateY(0)"},{height:V/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(B))}});var $I={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},GPl=function(){};
_.p=GPl.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(){};
GPl=_.Sm({_template:function(){if(NLR!==void 0)return NLR;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Usb===void 0&&(Usb=document.createElement("template"));var e=Usb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return NLR=B},
is:"tp-yt-paper-menu-button",behaviors:[_.kI,_.DV],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:$I.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:$I.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:$I.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 B=_.Mr(this.$.content).getDistributedNodes(),R=0,V=B.length;R<V;R++)if(B[R].nodeType===Node.ELEMENT_NODE)return B[R]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(B,R){B?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):R!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(B){_.DV._disabledChanged.apply(this,arguments);B&&this.opened&&this.close()},
__onIronOverlayCanceled:function(B){var R=this.$.trigger;_.Mr(B.detail).path.indexOf(R)>-1&&B.preventDefault()}});
Object.keys($I).forEach(function(B){GPl[B]=$I[B]});var yk4=_.lv.IronButtonState,Sy4=(0,_.M7)(HTMLElement);
_.Sm({_template:function(){if(j7v!==void 0)return j7v;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Jk4===void 0&&(Jk4=document.createElement("template"));var e=Jk4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return j7v=B},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[yk4,_.DV,mp,_.z0,_.wv],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(B){var R=(0,_.NK)(this);R.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:B});R.shadowRoot.appendChild(B);return Sy4.prototype._attachDom.call(this,B)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var B=this.contentElement;B&&B.selectedItem&&this._setSelectedItem(B.selectedItem)},
get contentElement(){for(var B=_.Mr(this.$.content).getDistributedNodes(),R=0,V=B.length;R<V;R++)if(B[R].nodeType===Node.ELEMENT_NODE)return B[R]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(B){this._setSelectedItem(B.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(B){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B)===this&&this.open()},
_selectedItemChanged:function(B){var R="";B?R=B.label||B.getAttribute("label")||B.textContent.trim():R="";this.value=R;this._setSelectedItemLabel(R)},
_computeMenuVerticalOffset:function(B,R){return R?R:B?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var B=this.opened?"true":"false",R=this.contentElement;R&&R.setAttribute("aria-expanded",B)},
_computeLabelClass:function(B,R,V){var e="label";if(B)V&&(e+=" label-is-hidden");else if(V||R)e+=" label-is-floating";return e},
_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 HwG;var MBo;_.Sm({is:"tp-yt-paper-icon-button",_template:function(){if(MBo!==void 0)return MBo;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;HwG===void 0&&(HwG=document.createElement("template"));var e=HwG;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return MBo=B},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.nxT],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(B,R){var V=this.getAttribute("aria-label");V&&R!=V||this.setAttribute("aria-label",B)}});var kP4;var Dsv;_.CC=[VQ2,_.DV,{hostAttributes:{role:"option",tabindex:"0"}}];_.Sm({_template:function(){if(Dsv!==void 0)return Dsv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;kP4===void 0&&(kP4=document.createElement("template"));var e=kP4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return Dsv=B},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.CC]});var fdG;var ldG;var zu_={attached:function(){this.fire("addon-attached")},
update:function(){}};var adS=1,dsv=1,wIS=1,TLo=[_.DV,_.kI,{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();!Oc&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(B,R){B?B=B+" "+R:B=R;return B},
_onAddonAttached:function(B){B=_.Mr(B).rootTarget;if(B.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,B.id);else{var R="paper-input-add-on-"+dsv++;B.id=R;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,R)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(B){_.DV._focusBlurHandler.call(this,B);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var B=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",B);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(B){try{var R=this.inputElement.selectionStart;this.value=B;this.inputElement.selectionStart=R;this.inputElement.selectionEnd=R}catch(V){this.value=B}},
_computeAlwaysFloatLabel:function(B,R){return R||B},
_updateAriaLabelledBy:function(){var B=_.Mr(this.root).querySelector("label");if(B){if(B.id)var R=B.id;else R="paper-input-label-"+adS++,B.id=R;this._ariaLabelledBy=R}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+wIS++)},
_onChange:function(B){this.shadowRoot&&this.fire(B.type,{sourceEvent:B},{node:this,bubbles:B.bubbles,cancelable:B.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var B=document.activeElement;B instanceof HTMLElement&&B!==document.body&&B!==document.documentElement||this._focusableElement.focus()}}}];var xsa;var L2l;_.Sm({_template:function(){if(L2l!==void 0)return L2l;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;xsa===void 0&&(xsa=document.createElement("template"));var e=xsa;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return L2l=B},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[zu_],properties:{_charCounterStr:{type:String,value:"0"}},update:function(B){if(B.inputElement){B.value=B.value||"";var R=B.value.toString().length.toString();B.inputElement.hasAttribute("maxlength")&&(R+="/"+B.inputElement.getAttribute("maxlength"));this._charCounterStr=R}}});var v1b;var K2J;_.Sm({_template:function(){if(K2J!==void 0)return K2J;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;v1b===void 0&&(v1b=document.createElement("template"));var e=v1b;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return K2J=B},
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 Xi(this.attrForValue)},get _inputElement(){return _.Mr(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(B){this._addons||(this._addons=[]);B=B.target;this._addons.indexOf(B)===-1&&(this._addons.push(B),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(B){this._handleValueAndAutoValidate(B.target)},
_onValueChanged:function(B){var R=B.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,R.value===void 0||R.value===""))return;this._handleValueAndAutoValidate(B.target)},
_handleValue:function(B){var R=this._inputElementValue;R||R===0||B.type==="number"&&!B.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:B,value:R,invalid:this.invalid})},
_handleValueAndAutoValidate:function(B){this.autoValidate&&B&&(this.invalid=!(B.validate?B.validate(this._inputElementValue):B.checkValidity()));this._handleValue(B)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(B){if(this._addons)for(var R,V=0;R=this._addons[V];V++)R.update(B)},
_computeInputContentClass:function(B,R,V,e,X){var Y="input-content";B?(X&&(Y+=" label-is-hidden"),e&&!this.noUnfloatedLabelError&&(Y+=" is-invalid")):(B=this.querySelector("label"),R||X?(Y+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",e?Y+=" is-invalid":V&&(Y+=" label-is-highlighted")):(B&&(this.$.labelAndInputContainer.style.position="relative"),e&&!this.noUnfloatedLabelError&&(Y+=" is-invalid")));V&&(Y+=" focused");return Y},
_computeUnderlineClass:function(B,R){var V="underline";R?V+=" is-invalid":B&&(V+=" is-highlighted");return V},
_computeAddOnContentClass:function(B,R){var V="add-on-content";R?V+=" is-invalid":B&&(V+=" is-highlighted");return V}});var Id5;var E1v;_.Sm({_template:function(){if(E1v!==void 0)return E1v;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Id5===void 0&&(Id5=document.createElement("template"));var e=Id5;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return E1v=B},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[zu_],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(B){this._setInvalid(B.invalid)}});_.Sm({is:"tp-yt-paper-input",_template:function(){if(ldG!==void 0)return ldG;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;fdG===void 0&&(fdG=document.createElement("template"));var e=fdG;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return ldG=B},
behaviors:[TLo,_.z0],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 Q75;var qyv;_.Sm({_template:function(){if(qyv!==void 0)return qyv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=
B.content,V=R.insertBefore;Q75===void 0&&(Q75=document.createElement("template"));var e=Q75;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return qyv=B},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.CC]});var ckv;var Akl;_.Sm({_template:function(){if(Akl!==void 0)return Akl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
var R=B.content,V=R.insertBefore;ckv===void 0&&(ckv=document.createElement("template"));var e=ckv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return Akl=B},
is:"tp-yt-paper-item-body"});var iwb;var s74;var F22=function(){};
_.p=F22.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(){};
F22=_.Sm({_template:function(){if(s74!==void 0)return s74;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
var R=B.content,V=R.insertBefore;iwb===void 0&&(iwb=document.createElement("template"));var e=iwb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return s74=B},
is:"tp-yt-paper-listbox",behaviors:[W32],hostAttributes:{role:"listbox"}});var rkv;var g1S;var ZwG={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(B,R){return[B||R?"active":"",R?"cooldown":""].join(" ")},
__activeChanged:function(B,R){this.__setAriaHidden(!B);this.__coolingDown=!B&&R},
__altChanged:function(B){this.setAttribute("aria-label",B||"loading")},
__setAriaHidden:function(B){B?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Sm({_template:function(){if(g1S!==void 0)return g1S;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;rkv===void 0&&(rkv=document.createElement("template"));var e=rkv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return g1S=B},
is:"tp-yt-paper-spinner",behaviors:[ZwG]});var ms2;var $s4;_.Sm({_template:function(){if($s4!==void 0)return $s4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;ms2===void 0&&(ms2=document.createElement("template"));var e=ms2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return $s4=B},
is:"tp-yt-paper-spinner-lite",behaviors:[ZwG]});var CHa;var PHv;_.Sm({_template:function(){if(PHv!==void 0)return PHv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;CHa===void 0&&(CHa=document.createElement("template"));var e=CHa;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return PHv=B},
is:"tp-yt-paper-tab",behaviors:[_.DV,_.lv.IronButtonState,mp],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 B=_.Mr(this).parentNode;return!!B&&!!B.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(B){if(this.link){var R=this.queryEffectiveChildren("a");R&&B.target!==R&&R.click()}}});var n12;var uHl;var Ow4=_.$Q(['<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>']),oQ5=_.he4(Ow4);document.head.appendChild(oQ5.content);_.Sm({_template:function(){if(uHl!==void 0)return uHl;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;n12===void 0&&(n12=document.createElement("template"));var e=n12;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return uHl=B},
is:"tp-yt-paper-tabs",behaviors:[_.LC,_.J3h],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(B){_.Mr(this).querySelectorAll("tp-yt-paper-tab").forEach(B?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(B){B.setAttribute("noink","")},
_removeNoinkAttribute:function(B){B.removeAttribute("noink")},
_computeScrollButtonClass:function(B,R,V,e){return!R||V?"hidden":B?e?"hidden":"not-visible":""},
_computeTabsContentClass:function(B,R){var V="tabs-content";B&&(V+=" scrollable");if(!B||R)V+=" fit-container";return V},
_computeSelectionBarClass:function(B,R){var V="selection-bar";B?V+=" hidden":R&&(V+=" align-bottom");return V},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(B){return""+B},
_onIronSelect:function(B){this._tabChanged(B.detail.item,this._previousTab);this._previousTab=B.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();_.T0._activateHandler.apply(this,arguments)},
_scheduleActivation:function(B,R){this._pendingActivationItem=B;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,R)},
_delayedActivationHandler:function(){var B=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;B.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(B){B.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(B,R){this.scrollable&&this._affectScroll(R&&-R.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(B){this.$.tabsContainer.scrollLeft+=B;B=this.$.tabsContainer.scrollLeft;this._leftHidden=B===0||this.hideScrollButtons;this._rightHidden=B===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(B,R){if(B){var V=this.$.tabsContent.getBoundingClientRect(),e=V.width,X=B.getBoundingClientRect();V=X.left-V.left;this._pos={width:this._calcPercent(X.width,e),left:this._calcPercent(V,e)};if(this.noSlide||R==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var Y=R.getBoundingClientRect();R=this.items.indexOf(R);B=this.items.indexOf(B);this.$.selectionBar.classList.add("expand");
B=R<B;this._isRTL&&(B=!B);B?this._positionBar(this._calcPercent(X.left+X.width-Y.left,e)-5,this._left):this._positionBar(this._calcPercent(Y.left+Y.width-X.left,e)-5,this._calcPercent(V,e)+5);this.scrollable&&this._scrollToSelectedIfNeeded(X.width,V)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(B,R){R-=this.$.tabsContainer.scrollLeft;R<0?this.$.tabsContainer.scrollLeft+=R:(R+=B-this.$.tabsContainer.offsetWidth,R>0&&(this.$.tabsContainer.scrollLeft+=R))},
_calcPercent:function(B,R){return 100*B/R},
_positionBar:function(B,R){B=B||0;R=R||0;this._width=B;this._left=R;this.transform("translateX("+R+"%) scaleX("+B/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var B=this.$.selectionBar.classList;B.contains("expand")?(B.remove("expand"),B.add("contract"),this._positionBar(this._pos.width,this._pos.left)):B.contains("contract")&&B.remove("contract")}});var B2v;var Rxv;_.Sm({_template:function(){if(Rxv!==void 0)return Rxv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;B2v===void 0&&(B2v=document.createElement("template"));var e=B2v;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return Rxv=B},
is:"tp-yt-paper-textarea",behaviors:[TLo,_.z0],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(B){this.$.input.textarea.selectionStart=B},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(B){this.$.input.textarea.selectionEnd=B},_ariaLabelledByChanged:function(B){this._focusableElement.setAttribute("aria-labelledby",B)},
_ariaDescribedByChanged:function(B){this._focusableElement.setAttribute("aria-describedby",B)},
get _focusableElement(){return this.inputElement.textarea}});var VVa;var ex_;/*

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 XSa=function(){};
_.p=XSa.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(){};
XSa=_.Sm({is:"tp-yt-paper-toggle-button",_template:function(){if(ex_!==void 0)return ex_;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;VVa===void 0&&(VVa=document.createElement("template"));var e=VVa;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return ex_=B},
behaviors:[_.ut5],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");_.gB(this,function(){_.T8(this,"pan-y")})},
_ontrack:function(B){B=B.detail;B.state==="start"?this._trackStart(B):B.state==="track"?this._trackMove(B):B.state==="end"&&this._trackEnd(B)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(B){B=B.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+B:B)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+B:B));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 B=mp._createRipple();B.id="ink";B.setAttribute("recenters","");B.classList.add("circle","toggle-ink");return B}});var pSb;var YTJ;_.Sm({_template:function(){if(YTJ!==void 0)return YTJ;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;pSb===void 0&&(pSb=document.createElement("template"));var e=pSb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return YTJ=B},
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 B=_.Mr(this).parentNode,R=_.Mr(this).getOwnerRoot(),V;this.for?V=_.Mr(R).querySelector("#"+this.for):V=B.nodeType==Node.DOCUMENT_FRAGMENT_NODE?R.host:B;return V},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(B){B==="entry"?this.show():B==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Mr(this).textContent.trim()===""){for(var B=!0,R=_.Mr(this).getEffectiveChildNodes(),V=0;V<R.length;V++)if(R[V].textContent.trim()!==""){B=!1;break}if(B)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 B=this.offset;this.marginTop!=14&&this.offset==14&&(B=this.marginTop);var R=this.offsetParent.getBoundingClientRect(),V=this._target.getBoundingClientRect(),e=this.getBoundingClientRect(),X=(V.width-e.width)/2,Y=(V.height-e.height)/2,t=V.left-R.left,b=V.top-R.top;switch(this.position){case "top":var J=t+X;var G=b-e.height-B;break;case "bottom":J=t+X;G=b+V.height+B;break;case "left":J=t-e.width-B;G=b+Y;break;case "right":J=t+V.width+
B,G=b+Y}this.fitToVisibleBounds?(R.left+J+e.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,J)+"px",this.style.right="auto"),R.top+G+e.height>window.innerHeight?(this.style.bottom=R.height+"px",this.style.top="auto"):(this.style.top=Math.max(-R.top,G)+"px",this.style.bottom="auto")):(this.style.left=J+"px",this.style.top=G+"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(B){B!==500&&this.updateStyles({"--paper-tooltip-delay-in":B+"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(B){if(B==="entry"&&this.animationEntry!=="")return this.animationEntry;if(B==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[B]&&typeof this.animationConfig[B][0].name==="string"){if(this.animationConfig[B][0].timing&&this.animationConfig[B][0].timing.delay&&this.animationConfig[B][0].timing.delay!==0){var R=this.animationConfig[B][0].timing.delay;B==="entry"?this.updateStyles({"--paper-tooltip-delay-in":R+"ms"}):B==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":R+
"ms"})}return this.animationConfig[B][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 hxo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(hxo,_.qS);var tVl=_.uI(hxo,[0,_.Pb]);var P6=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(P6,_.qS);var WNJ=[3,4],biJ=[5,6];var Jnb=[0,WNJ,biJ,_.JDJ,-1,_.CU,_.jma,-1,WXp,bKd];var jHh=_.uI(P6,Jnb),Ul4=_.OY(Jnb);var N2b=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(N2b,_.qS);var GTb=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(GTb,_.qS);var yn4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(yn4,_.qS);var ST4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(ST4,_.qS);var Hio=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Hio,_.qS);var nC=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(nC,_.qS);nC.prototype.getSource=function(){return _.LU(this,1)};
nC.prototype.getMessage=function(){return _.xU(this,4)};
nC.prototype.getData=function(){return _.OB(this,Hio,8)};var MVa=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(MVa,_.qS);var uv=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(uv,_.qS);var Or=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Or,_.qS);var oi=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(oi,_.qS);oi.prototype.getUrl=function(){return _.xU(this,1)};
oi.prototype.setUrl=function(B){return _.bg(this,1,B)};
oi.prototype.hasUrl=function(){return _.co(_.yG(this,1))!=null};var kTG=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(kTG,_.qS);var DlJ=[3];var foh=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(foh,_.qS);var BL=function(B){var R=new foh;return _.ou(R,2,B)};
foh.prototype.getLanguage=function(){return KU(this,4,Ri)};
var lov=function(B){var R=BL(1);return _.Vm(R,6,Ri,B)},Ri=[3,
4,5,6];var zxb=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(zxb,_.qS);var Vy=function(B){var R=new zxb;return _.ou(R,1,B)},eE=function(B,R){return _.Vm(B,2,aoJ,R)},aoJ=[2,
3,4,5];var dl2=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(dl2,_.qS);var Xm=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Xm,_.qS);var wSJ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(wSJ,_.qS);var T24=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(T24,_.qS);var xll=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(xll,_.qS);var LN4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(LN4,_.qS);var vQ4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(vQ4,_.qS);var pt=function(B){return _.OB(B,Or,5)};var KNR=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(KNR,_.qS);KNR.prototype.getValue=function(){return wX(this,1)};var IoG=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(IoG,_.qS);var Yi=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Yi,_.qS);Yi.prototype.getMetadata=function(){return _.I6(this,xll,7,hG)};
Yi.prototype.hasMetadata=function(){return _.Hb(this,xll,7,hG)};
var EQl=_.Rkd(Yi),hG=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var tG=function(B){this.JSC$9835_name_=B;this.files_=[];this.directories_=[];this.directoryMap_={}};
tG.prototype.getName=function(){return this.JSC$9835_name_};var bW=function(B,R){this.callback_=R;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new tG("");QHa(this,B,this.rootDirectory_);WL(this)},QHa=function(B,R,V){for(var e=0;e<R.length;e++){var X=R[e];
X.isFile?(B.fileOps_++,X.file((0,_.M2)(B.handleFileSuccess_,B,V),(0,_.M2)(B.handleFileError_,B))):B.unscannedDirectories_.push(new qTb(X,V))}},WL=function(B){if(B.unscannedDirectories_.length>0&&B.directoryOps_<5&&!B.hasError_){B.directoryOps_++;
var R=B.unscannedDirectories_.shift(),V=R.entry,e=new tG(V.name);R=R.parent;R.directoryMap_[e.getName()]=e;R.directories_.push(e);V=V.createReader();V.readEntries((0,_.M2)(B.handleDirectorySuccess_,B,V,e),(0,_.M2)(B.handleDirectoryError_,B))}B.directoryOps_!=0||B.fileOps_!=0||B.unscannedDirectories_.length!=0&&!B.hasError_||B.callback_(B.rootDirectory_.files_,B.rootDirectory_.directories_,B.hasError_)};
bW.prototype.handleDirectorySuccess_=function(B,R,V){QHa(this,V,R);V.length==0?(this.directoryOps_--,WL(this)):B.readEntries((0,_.M2)(this.handleDirectorySuccess_,this,B,R),(0,_.M2)(this.handleDirectoryError_,this))};
bW.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;WL(this)};
bW.prototype.handleFileSuccess_=function(B,R){B.files_.push(R);this.fileOps_--;WL(this)};
bW.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;WL(this)};
var qTb=function(B,R){this.entry=B;this.parent=R};var JG=function(B){_.H_.call(this);_.G2(B,"drop",this.onObjectsDropped_,!1,this);_.G2(B,"dragenter",this.onFilesDragged_,!1,this);_.G2(B,"dragover",this.onFilesDragged_,!1,this);_.G2(B,"dragleave",this.onDragLeave_,!1,this);_.G2(B,"dragend",this.onDragLeave_,!1,this)};
_.eY(JG,_.H_);var cn5=function(B,R){_.Un.call(this,"f");this.files=B;this.directories=R};
_.eY(cn5,_.Un);var Anv=function(){_.Un.call(this,"h")};
_.eY(Anv,_.Un);var ii_=function(){_.Un.call(this,"i")};
_.eY(ii_,_.Un);var sHa=function(){_.Un.call(this,"g")};
_.eY(sHa,_.Un);JG.prototype.onObjectsDropped_=function(B){var R=this;B.preventDefault();var V=B.event_.dataTransfer;if((B=V&&V.items)&&B.length>0&&B[0].webkitGetAsEntry){V=[];for(var e=[],X=0;X<B.length;X++){var Y=B[X].webkitGetAsEntry();Y?V.push(Y):e.push(B[X])}new bW(V,function(t,b,J){J?R.dispatchEvent(new sHa("Error occurred while reading from the file system.")):R.dispatchEvent(new cn5(t,b,e))})}else(B=V&&V.files)&&this.dispatchEvent(new cn5(Array.from(B),[]))};
JG.prototype.onFilesDragged_=function(B){B.type==="dragenter"&&this.dispatchEvent(new Anv);B.preventDefault()};
JG.prototype.onDragLeave_=function(){this.dispatchEvent(new ii_)};var FN_=function(B,R){this.JSC$9858_name_=B;this.inputElement_=R};
FN_.prototype.getName=function(){return this.JSC$9858_name_};
FN_.prototype.getInputElement=function(){return this.inputElement_};var jE=function(B,R,V){R=R===void 0?"single_file":R;V=V===void 0?[]:V;_.H_.call(this);this.overlayTarget_=B;this.parentOverlay_=B!=null?B.parentNode:_.jr("scotty-overlay-parent");this.selectorType_=R;this.acceptTypes_=V;this.overlay_=rno(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.l(jE,_.H_);
var rno=function(B,R,V,e){var X=document.createElement("input");X.setAttribute("type","file");X.setAttribute("name","Filedata");_.G2(X,"change",B.onFilesSelected_,!1,B);V==="multiple_file"&&(X.multiple="true");V==="single_directory"&&(X.webkitdirectory="true");e.length>0&&X.setAttribute("accept",e.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(B.overlayTarget_!=
null)return X.style.height=R.offsetHeight+"px",X.style.width=R.offsetWidth+"px",B.parentOverlay_&&(B.parentOverlay_.style.position="relative"),_.xP(X,R),Qs(X,new _.fx(R.offsetLeft,R.offsetTop)),X;B.parentOverlay_.appendChild(X);return X};
jE.prototype.click=function(){this.overlay_.click()};
jE.prototype.onFilesSelected_=function(B){a:{try{var R=(new XMLHttpRequest).upload!==void 0;break a}catch(G){}R=!1}if(R){var V;B=Array.from((V=B.target.files)!=null?V:[]);V=[];if(this.selectorType_==="single_directory"&&(_.Wb||gS||_.to)){V=new tG("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(R=0;R<B.length;R++)for(var e=B[R],X=e.webkitRelativePath.split("/"),Y=V,t=0;t<X.length;t++){var b=X[t];if(t==X.length-1){b!="."&&Y.files_.push(e);break}var J=Y.directoryMap_[b];J==void 0&&(b=
J=new tG(b),Y.directoryMap_[b.getName()]=b,Y.directories_.push(b));Y=J}V=V.directories_}this.dispatchEvent(new gQo(B,V,null))}else B=B.target.value,B.match(/^c:\\fakepath\\/i)&&(B=B.substring(12)),this.dispatchEvent(new gQo([],[],new FN_(B,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=rno(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var gQo=function(B,R){_.Un.call(this,"j");this.files=B;this.directories=R};
_.l(gQo,_.Un);var Zi_=function(B){this.uploadUrl_=B};var mlT=function(){_.H_.call(this)};
_.eY(mlT,_.H_);var UN=function(B){_.Un.call(this,B)};
_.eY(UN,_.Un);var Nf=function(B){_.Un.call(this,B)};
_.eY(Nf,_.Un);var $lv=function(B,R,V,e,X){_.H_.call(this);V=document.createElement("form");V.setAttribute("method",R);V.setAttribute("enctype","multipart/form-data");V.setAttribute("encoding","multipart/form-data");R=document.createElement("input");R.setAttribute("type","hidden");R.setAttribute("name","metadata");R.setAttribute("value",X);V.appendChild(R);V.appendChild(e);this.JSC$9875_form_=V;B=new _.FO(B);_.A4(B,"upload_protocol","multipart");this.JSC$9875_url_=B.toString();this.JSC$9875_request_=new Oj;this.state_=
"Ready";this.JSC$9875_errorDescription_=null;this.JSC$9875_eventHandler_=new _.oL(this);_.t4(this,this.JSC$9875_eventHandler_);this.JSC$9875_eventHandler_.listen(this.JSC$9875_request_,"success",this.onTransferSuccess_);this.JSC$9875_eventHandler_.listen(this.JSC$9875_request_,"error",this.onTransferError_)};
_.l($lv,mlT);_.p=$lv.prototype;_.p.run=function(){this.state_="Transferring";var B=this.JSC$9875_request_,R=this.JSC$9875_form_;if(B.JSC$9293_active_)throw Error("oe");var V=new _.FO(this.JSC$9875_url_||R.action);B.JSC$9293_form_=R;R=B.JSC$9293_form_;V=_.kq(V.toString());V!==void 0&&(R.action=V);fqo(B)};
_.p.getResponseCode=function(){return null};
_.p.getResponseText=function(){return this.JSC$9875_request_&&this.JSC$9875_request_.getResponseText()||null};
_.p.JSC$25741_getErrorDescription=function(){return this.JSC$9875_errorDescription_};
_.p.cancel=function(){this.JSC$9875_request_&&this.JSC$9875_request_.abort();this.state_="Cancelled";this.dispatchEvent(new UN("o"))};
_.p.pause=function(){};
_.p.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new UN("l"))};
_.p.onTransferError_=function(){this.JSC$9875_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new UN("n"))};var Gl=function(){_.dK.call(this)};
_.l(Gl,_.dK);Gl.prototype.createXhr=function(){var B=_.dK.prototype.createXhr.call(this);B.upload&&(B.upload.onprogress=(0,_.M2)(this.onProgress_,this));return B};
Gl.prototype.onProgress_=function(B){this.dispatchEvent(B)};var C54=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},nQo=function(B,R){var V=B.attempt_+1;
if(B.maxAttempts_>0&&V>B.maxAttempts_)return!1;V==0?R():B.delayCallId_=lK(function(){B.delayCallId_=null;R()},P5_(B),B);
B.attempt_=V;return!0};
C54.prototype.reset=function(){this.delayCallId_&&_.R5.clearTimeout(this.delayCallId_);this.attempt_=-1};
var P5_=function(B){var R=250*Math.pow(2,B.attempt_);B.maxDelayMs_>=0&&(R=Math.min(R,B.maxDelayMs_));return R};var $mK=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var yy=function(){_.H_.call(this);this.JSC$9885_request_=this.state_=null;this.JSC$9885_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9885_bytesTransferred_=0;this.retryIterator_=new C54;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9885_errorDescription_=null;this.JSC$9885_eventHandler_=new _.oL(this);_.t4(this,this.JSC$9885_eventHandler_);this.JSC$9885_url_=this.blob_=null;this.JSC$9885_method_=void 0;this.chunkSize_=this.JSC$9885_metadata_=
this.JSC$9885_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9885_responseText_=this.JSC$9885_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.eY(yy,mlT);_.p=yy.prototype;_.p.run=function(){SE(this)};
_.p.getResponseCode=function(){return this.JSC$9885_responseCode_};
_.p.getResponseText=function(){return this.JSC$9885_responseText_};
_.p.JSC$25741_getErrorDescription=function(){return this.JSC$9885_errorDescription_};
_.p.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9885_eventHandler_.removeAll();this.JSC$9885_request_&&this.JSC$9885_request_.abort();this.retryIterator_.reset();var B=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(B==="Upload"||B==="Query")B=new Gl,B.JSC$7703_withCredentials_=this.JSC$9885_withCredentials_,B.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9885_bytesTransferred_=
0;this.dispatchEvent(new UN("o"))}};
_.p.pause=function(){this.pauseRequested_=!0};
var SE=function(B){var R=B.state_;B.pauseRequested_?(B.pauseRequested_=!1,B.stateAfterUnpausing_=R,B.state_="Paused"):nQo(B.retryIterator_,function(){switch(B.state_){case "Start":B.JSC$9885_request_=new Gl;var V=_.M_.clone(B.JSC$9885_headers_);B.blob_.size!=null&&(V["Content-Length"]=B.blob_.size);V=C9o(V);V["X-Goog-Upload-Protocol"]="resumable";V["X-Goog-Upload-Command"]="start";B.JSC$9885_eventHandler_.removeAll();B.JSC$9885_eventHandler_.listen(B.JSC$9885_request_,"complete",B.onStartComplete_);
B.JSC$9885_request_.JSC$7703_withCredentials_=B.JSC$9885_withCredentials_;B.JSC$9885_request_.send(B.JSC$9885_url_,B.JSC$9885_method_,B.JSC$9885_metadata_,V);B.lastCommandResponseCode_=null;B.dispatchEvent(new Nf("q"));break;case "Upload":V=B.transferHandle_.uploadUrl_;var e=B.blob_.size;if(tb2()){var X=B.chunkSize_;var Y=B.offset_+X>=e;e=hth(B.blob_,B.offset_,Y?e:B.offset_+X)}else B.offset_=0,e=B.blob_,Y=!0;B.JSC$9885_request_=new Gl;B.JSC$9885_request_.JSC$7703_withCredentials_=B.JSC$9885_withCredentials_;
B.JSC$9885_eventHandler_.removeAll();B.JSC$9885_eventHandler_.listen(B.JSC$9885_request_,"progress",B.onUploadProgress_);X=(0,_.M2)(B.JSC$9887_onUploadComplete_,B,B.offset_+e.size,Y);B.JSC$9885_eventHandler_.listen(B.JSC$9885_request_,"complete",X);B.lastCommandResponseCode_=null;B.dispatchEvent(new Nf("q"));Y=Object.assign({},B.JSC$9885_headers_||{},{"X-Goog-Upload-Command":"upload"+(Y?", finalize":""),"X-Goog-Upload-Offset":B.offset_});B.JSC$9885_request_.send(V,"POST",e,Y);break;case "Query":B.JSC$9885_request_=
new Gl;B.JSC$9885_eventHandler_.removeAll();B.JSC$9885_eventHandler_.listen(B.JSC$9885_request_,"complete",B.onQueryComplete_);V=Object.assign({},B.JSC$9885_headers_||{},{"X-Goog-Upload-Command":"query"});B.JSC$9885_request_.send(B.transferHandle_.uploadUrl_,"POST","",V);B.lastCommandResponseCode_=null;B.dispatchEvent(new Nf("q"));break;default:throw Error("df");}})||HL(B,"Transfer encountered too many consecutive failures.")},HL=function(B,R){B.state_="Error";
B.JSC$9885_errorDescription_=R;B.dispatchEvent(new UN("n"))};
yy.prototype.onStartComplete_=function(B){var R=B.target;this.lastCommandResponseCode_=R.getStatus();this.dispatchEvent(new Nf("r"));if(uM2(R))Oi_(this,R);else if(oUv(R)){B=rz(B.target.getAllResponseHeaders());for(var V in B)_.pZ(V.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new UN("m"));V=fp(B,"X-Goog-Upload-URL");B=(B=fp(B,"X-Goog-Upload-Chunk-Granularity"))?parseInt(B,10):1;V===void 0||isNaN(B)||B<=0?HL(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
B)*B,this.transferHandle_=new Zi_(V),this.dispatchEvent(new UN("p")),this.state_="Upload",this.retryIterator_.reset(),SE(this))}else SE(this)};
yy.prototype.onUploadProgress_=function(B){this.JSC$9885_bytesTransferred_=this.offset_+B.loaded;this.dispatchEvent(new UN("k"))};
yy.prototype.JSC$9887_onUploadComplete_=function(B,R,V){var e=this,X,Y;return _.W(function(t){switch(t.nextAddress){case 1:X=V.target;e.lastCommandResponseCode_=X.getStatus();e.dispatchEvent(new Nf("r"));if(BXR(X)||X.getStatus()==404)return e.JSC$9885_bytesTransferred_=B,Oi_(e,X),t.return();if(oUv(X)){t.jumpTo(2);break}if(!(Y=e.detectCorruptedBlobEnabled_)){t.jumpTo(3);break}return _.U(t,Rf4(e),4);case 4:Y=t.yieldResult;case 3:if(Y)return HL(e,"Blob has been modified or corrupted."),t.return();e.requireUploadRequestModification_=
X.getStatus()==400;e.state_="Query";SE(e);return t.return();case 2:if(R)return HL(e,"Got a non-final success response after issuing a finalize command."),t.return();e.JSC$9885_bytesTransferred_=B;e.offset_=B;e.retryIterator_.reset();SE(e);return t.return()}})};
yy.prototype.onQueryComplete_=function(B){var R=B.target;this.lastCommandResponseCode_=R.getStatus();this.dispatchEvent(new Nf("r"));uM2(R)?(R.getStatus()===200&&(this.JSC$9885_bytesTransferred_=this.blob_.size),Oi_(this,R)):oUv(R)?(B=rz(B.target.getAllResponseHeaders()),B=parseInt(fp(B,"X-Goog-Upload-Size-Received"),10),isNaN(B)?HL(this,"Server did not respond with current offset."):B<this.offset_?HL(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
B+"."):this.requireUploadRequestModification_&&this.offset_===B?HL(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<B&&this.retryIterator_.reset(),this.offset_=this.JSC$9885_bytesTransferred_=B,this.state_="Upload",SE(this))):SE(this)};
var Oi_=function(B,R){B.JSC$9885_responseCode_=R.getStatus();var V=rz(R.getAllResponseHeaders());P9q(V);B.JSC$9885_responseText_=R.getResponseText();B.state_="Response received";B.dispatchEvent(new UN("l"))},oUv=function(B){var R=B.getStatus();
B=rz(B.getAllResponseHeaders());B=fp(B,"X-Goog-Upload-Status");return R===200&&B==="active"},BXR=function(B){B=rz(B.getAllResponseHeaders());
return fp(B,"X-Goog-Upload-Status")==="final"},uM2=function(B){if(BXR(B))return!0;
B=B.getStatus();return B>=400&&B<500},Rf4=function(B){var R;
return _.W(function(V){if(V.nextAddress==1){if(!B.blob_||B.originalBlobSize_<=0)return V.return(!1);if(B.blob_.size!==B.originalBlobSize_)return V.return(!0);_.en(V,2);if(R=hth(B.blob_,0,1)){var e=new Qk,X=AsJ(e);e.reader_.readAsBinaryString(R);V=_.U(V,X,4)}else V=V.return(!0);return V}if(V.nextAddress!=2)return V.return(B.blob_.size!==B.originalBlobSize_);_.WR(V);return V.return(!0)})};var VY_=function(B,R,V,e,X,Y){_.H_.call(this);this.payload_=e;this.JSC$9888_url_=B;this.JSC$9888_method_=R;this.JSC$9888_headers_=V;this.JSC$9888_metadata_=X;this.encoding_=Y||"binary";B=new _.Dr;this.boundary_="uploader-"+QI()+"-"+B.JSC$9142_toIsoString();this.JSC$9888_responseText_=this.JSC$9888_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9888_errorDescription_=null;this.JSC$9888_eventHandler_=new _.oL(this);_.t4(this,this.JSC$9888_eventHandler_)};
_.l(VY_,mlT);_.p=VY_.prototype;
_.p.run=function(){var B=_.M_.clone(this.JSC$9888_headers_);this.payload_.length!=null&&(B["Content-Length"]=this.payload_.length);B=C9o(B);B["X-Goog-Upload-Protocol"]="multipart";B["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Gl;this.JSC$9888_eventHandler_.removeAll();this.JSC$9888_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9888_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9888_url_,this.JSC$9888_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9888_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",B)};
_.p.getResponseCode=function(){return this.JSC$9888_responseCode_};
_.p.getResponseText=function(){return this.JSC$9888_responseText_};
_.p.JSC$25741_getErrorDescription=function(){return this.JSC$9888_errorDescription_};
_.p.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9888_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new UN("o")))};
_.p.pause=function(){};
_.p.onTransferProgress_=function(){this.dispatchEvent(new UN("k"))};
_.p.onTransferComplete_=function(B){var R=B.target.getStatus();R===void 0||R===-1?(this.JSC$9888_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new UN("n"))):(this.JSC$9888_responseCode_=R,B=B.target,R=rz(B.getAllResponseHeaders()),P9q(R),this.JSC$9888_responseText_=B.getResponseText(),this.state_="Complete",this.dispatchEvent(new UN("l")))};_.efh=function(B,R,V,e){e=e===void 0?!1:e;if(V instanceof FN_)return new $lv(B,"POST",R,V.getInputElement(),"");if(typeof V==="string"||V instanceof String)return new VY_(B,"POST",R,V,"");var X=new yy(void 0);X.JSC$9885_url_=B;X.JSC$9885_method_="POST";X.JSC$9885_headers_=R;X.blob_=V;X.originalBlobSize_=V.size;X.JSC$9885_metadata_="";e&&(X.JSC$9885_withCredentials_=e);X.state_="Start";return X};var Mf=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Mf,_.qS);_.p=Mf.prototype;_.p.getEnableSsEngine=function(){return _.dX(this,2)};
_.p.getEnableAwr=function(){return _.dX(this,3)};
_.p.getAlohaAutoGaRollout=function(){return _.dX(this,5)};
_.p.getEnableConfigurator=function(){return _.dX(this,6)};
_.p.getEnableMweb=function(){return _.dX(this,7)};
var pbl=function(){var B=Xba();return _.zE(B,7,!0)};
Mf.prototype.getEnableCtlConsentCheckbox=function(){return _.dX(this,8)};
Mf.prototype.getEnableIframe=function(){return _.dX(this,9)};
var Xba=function(){var B=new Mf;B=_.zE(B,5,!0);B=_.zE(B,2,!0);B=_.zE(B,4,!1);B=_.zE(B,8,!0);return _.zE(B,9,!0)};
Mf.prototype.getEnableScreenshotNudge=function(){return _.dX(this,10)};
var YD2=function(){var B=pbl();return _.zE(B,10,!0)};
Mf.prototype.getEnableWebStartupConfigEndpoint=function(){return _.dX(this,11)};
Mf.prototype.getEnableJunkNudge=function(){return _.dX(this,12)};
var jBA=function(){var B=YD2();return _.zE(B,12,!0)};
_.p=Mf.prototype;_.p.getEnableConfiguratorLocale=function(){return _.dX(this,13)};
_.p.getEnableTinyNoPointer=function(){return _.dX(this,14)};
_.p.getEnableSupportSessionLogging=function(){return _.dX(this,15)};
_.p.getEnableFileUploadForScreenshot=function(){return _.dX(this,16)};
_.p.getEnableDirectDeflectionForSingleCategory=function(){return _.dX(this,17)};
_.p.getEnableImageSanitization=function(){return _.dX(this,18)};
_.p.getEnableAlohaBinarySplit=function(){return _.dX(this,19)};
_.p.getEnableDbFeedbackIntents=function(){return _.dX(this,20)};
_.p.getEnableMarkMandatoryFieldsWithRequired=function(){return _.dX(this,21)};
_.p.getEnableFeedbackCategoryCustomUi=function(){return _.dX(this,22)};
_.p.getEnableRealtimeCtl=function(){return _.dX(this,23)};var J8u=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(J8u,_.qS);var nPq=[/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 OYu="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 o3_=_.$Q(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),BK5=_.$Q(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var VIu,X_I;var hf4,tYh;
hf4=function(B,R,V){B.timeOfStartCall=(new Date).getTime();var e=V||_.R5,X=e.document,Y=B.nonce||_.L$(e.document);Y&&!B.nonce&&(B.nonce=Y);if(B.flow=="help"){var t=_.qN("document.location.href",e);!B.helpCenterContext&&t&&(B.helpCenterContext=t.substring(0,1200));t=!0;if(R&&JSON&&JSON.stringify){var b=JSON.stringify(R);(t=b.length<=1200)&&(B.psdJson=b)}t||(R={invalidPsd:!0})}R=[B,R,V];e.GOOGLE_FEEDBACK_START_ARGUMENTS=R;V=B.feedbackServerUri||"//www.google.com/tools/feedback";if(t=e.GOOGLE_FEEDBACK_START)t.apply(e,R);
else{e=V+"/load.js?";for(var J in B)R=B[J],R==null||_.Xa(R)||(e+=encodeURIComponent(J)+"="+encodeURIComponent(R)+"&");B=WH(X).createElement("SCRIPT");Y&&B.setAttribute("nonce",Y);_.Qm(B,_.Yq(e));X.body.appendChild(B)}};
tYh=function(B,R,V,e){var X,Y;_.W(function(t){X=V||_.R5;var b=B.serverEnvironment==="DEV",J=V||_.R5;J=B.nonce||_.L$(J.document);b={integrationKeys:{productId:B.productId,feedbackBucket:B.bucket,triggerId:B.triggerId},callbacks:{onClose:B.callback,onLoad:B.onLoadCallback},formContent:{locale:B.locale,disableScreenshot:B.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:B.abuseLink,additionalDataConsent:B.additionalDataConsent},initializationData:{isLocalServer:b,nonce:J,useNightlyRelease:b,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:B.feedbackServerUri,colorScheme:B.colorScheme},extraData:{productVersion:B.productVersion,authUser:B.authuser,configuratorId:B.configuratorId,customZIndex:B.customZIndex,tinyNoPointer:B.tinyNoPointer,
allowNonLoggedInFeedback:B.allowNonLoggedInFeedback,enableAnonymousFeedback:B.enableAnonymousFeedback}};R&&(J=new Map(Object.entries(R)),b.extraData.productSpecificData=J);Y=b;return _.U(t,tIZ(Y,e,X),0)})};
_.Wg5=function(B,R,V){try{if(B.flow==="help"){var e=B.helpCenterPath.replace(/^\//,"");_.xq(V||window,"https://support.google.com/"+e)}else B.flow==="submit"?hf4(B,R,V):Uup(B.productId,B.feedbackServerUri).then(function(X){X=_.OB(X,Mf,1);var Y=!xAA||(X==null?void 0:X.getEnableMweb()),t=!B.tinyNoPointer||(X==null?void 0:X.getEnableTinyNoPointer());!X||X.getAlohaAutoGaRollout()&&Y&&t?tYh(B,R,V,X):hf4(B,R,V)},function(X){X&&X.name!=="DuplicateFormError"&&hf4(B,R,V)})}catch(X){tYh(B,R,V,null)}};
_.mk("userfeedback.api.startFeedback",_.Wg5);var NKo=/https?:\/\/\S+\.\S+/,GHZ=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],y8S=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var fio=function(B){var R=B.split(""),V=[-263237435,15,R,function(e,X,Y){var t=X.length;Y.forEach(function(b,J,G){this.push(G[J]=X[(X.indexOf(b)-X.indexOf(this[J])+J+t--)%X.length])},e.split(""))},
function(e,X){e=(e%X.length+X.length)%X.length;X.splice(-e).reverse().forEach(function(Y){X.unshift(Y)})},
"response",function(){for(var e=64,X=[];++e-X.length-32;){switch(e){case 58:e-=14;case 91:case 92:case 93:continue;case 123:e=47;case 94:case 95:case 96:continue;case 46:e=95}X.push(String.fromCharCode(e))}return X},
null,12,1540023973,65941107,null,R,function(e,X){for(e=(e%X.length+X.length)%X.length;e--;)X.unshift(X.pop())},
695603893,function(e){for(var X=e.length;X;)e.push(e.splice(--X,1)[0])},
"'[;'[(",function(e,X){e.push(X)},
null,function(e,X,Y,t,b){return X(Y,t,b)},
"continuation",R,function(e,X){if(e.length!=0){X=(X%e.length+e.length)%e.length;var Y=e[0];e[0]=e[X];e[X]=Y}},
function(){for(var e=64,X=[];++e-X.length-32;){switch(e){case 91:e=44;continue;case 123:e=65;break;case 65:e-=18;continue;case 58:e=96;continue;case 46:e=95}X.push(String.fromCharCode(e))}return X},
'"),/]];'];V[7]=V;V[11]=V;V[18]=V;try{(((0,V[15])(V[21]),V[22])(V[11],V[9]),V[22])(V[new Date("1970-01-01T04:30:12.000+04:30")/1E3],V[1]),((0,V[22])(V[11],V[23]),V[4])(V[10],V[18]),(0,V[20])(V[21],V[14])<<(0,V[17])(V[18],V[1]),(0,V[4])(V[8],V[21]),(0,V[19])((0,V[19])((0,V[17])(V[7],V[9]),V[3],V[20],(0,V[6])(),V[2]),V[3],V[5],(0,V[15])(),V[2])}catch(e){return"aTlOUOubTO4AP____8P_"+B}return R.join("")};_.bUJ=new _.P("runAttestationCommand");var JoS=new _.P("verifyCommand");_.mJ=new _.P("accessibilityContext");var j6_=new _.P("accessibilityData");var U64=new _.P("profileCardCommand");var K_d=new _.P("signInEndpoint");var vt5=new _.P("signOutEndpoint");var Gol;_.NXa=new _.P("accountItemSectionRenderer");Gol=new _.P("accountItemRenderer");_.yoR=new _.P("saveCommandToSessionStorageAction");var SDb=new _.P("crossAccountChannelTransferEndpoint");var xbu=new _.P("getAccountMenuEndpoint");_.L1_=new _.P("getAccountSwitcherEndpoint");var ThA=new _.P("getAccountsListEndpoint");var HUh=new _.P("getAccountsListInnertubeEndpoint");_.MYl=new _.P("addToToastAction");var ko4=new _.P("hideEnclosingAction");_.ki=new _.P("replaceEnclosingAction");_.D6_=new _.P("buttonRefreshAction");var f45=new _.P("adsControlFlowOpportunityReceivedCommand");var l4v=new _.P("openAdAllowlistInstructionCommand");var zfh=new _.P("videoMastheadAdPrimaryVideoRenderer");var a4v=new _.P("displayAdRenderer");var e$o=new _.P("instreamVideoAdRenderer");_.d64=new _.P("inFeedAdLayoutRenderer");var wbb=new _.P("sequenceItemInPlayerAdLayoutRenderer");_.TXl=new _.P("adSlotRenderer");var x6o=new _.P("adAvatarViewModel");var Lgo=new _.P("adBadgeViewModel");var vUS=new _.P("adButtonViewModel");var Du=new _.P("adImageViewModel");var AB_=new _.P("reelsAdCardButtonedViewModel");var Kg_=new _.P("reelsPlayerOverlayLayoutViewModel");var I4b=new _.P("showSchedulingPanelCommand");var EUb=new _.P("backstageCommentsRenderer");var Q6b=new _.P("backstageImageRenderer");var qDb=new _.P("backstagePostRenderer");var co2=new _.P("postRenderer");var AoR=new _.P("sharedPostRenderer");var iUR=new _.P("createBackstagePostEndpoint");var s65=new _.P("getPostVideoPreviewEndpoint");var FgG=new _.P("updateBackstagePostEndpoint");var ro4=new _.P("filterChipTransformCommand");var gU4=new _.P("insertRichSectionCommand");var hUY=new _.P("talkToRecsDeselectCommand");var ZU4=new _.P("talkToRecsNextCommand");var YFq=new _.P("talkToRecsSelectCommand");var m6o=new _.P("talkToRecsUpdateTextCommand");_.Jz=new _.P("browseEndpoint");_.$6a=new _.P("confirmDialogEndpoint");var C8G=new _.P("expandOnHoverCardRenderer");var P8o=new _.P("lumiereShelfDetailsRenderer");var nUo=new _.P("revealBusinessEmailCommand");var u6b=new _.P("validateChannelHandleCommand");var OUa=new _.P("channelCreationFormEndpoint");var oPv=new _.P("aboutChannelViewModel");var BEG=new _.P("channelThumbnailWithLinkRenderer");var Rob=new _.P("channelCreationServiceEndpoint");var V9h=new _.P("updateChannelPageSettingsEndpoint");var ft=function(B){this.delegate=B},lW=function(){ft.apply(this,arguments)};
_.l(lW,ft);_.mh.Object.defineProperties(lW.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(B){this.delegate.entityMetadata=B}}});var eoS=function(){lW.apply(this,arguments)};
_.l(eoS,lW);eoS.prototype.getAssociations=function(){return[]};var ZAp=new _.P("webThumbnailDetailsExtensionData");var ZE=new _.P("commandContext");var XxR=new _.P("addVideoLinkAction");var pxT=new _.P("createPollAction");var YO_=new _.P("hideIdentityChipAction");var hoG=new _.P("openUpdateCommentDialogAction");var zl=new _.P("updateBackstagePollAction");var t9a=new _.P("updateCommentVoteAction");var WKo=new _.P("commentThreadRenderer");var bY4=function(){lW.apply(this,arguments)};
_.l(bY4,lW);bY4.prototype.getAssociations=function(){return[]};_.J_5=new _.P("commentDialogRenderer");var jph=new _.P("updateCommentsSettingsEndpoint");var Um_=new _.P("commentViewModel");var NE4=new _.P("triStateButtonViewModel");var GwJ=new _.P("voiceReplyContainerViewModel");_.p0=new _.P("commandExecutorCommand");var la=new _.P("emoji");var y_4=new _.P("updateCreatorChannelInnertubeCommand");_.SO5=new _.P("appendContinuationItemsAction");_.HY_=new _.P("changeEngagementPanelVisibilityAction");_.xB=new _.P("continuationCommand");var M9G=new _.P("listMutationCommand");_.ai=new _.P("openPopupAction");var kwo=new _.P("persistSubscriptionsDisplayPreferencesCommand");var TE5;_.Dm4=new _.P("playlistRemoveVideosAction");_.f1b=new _.P("updatePlaylistAction");_.l15=new _.P("addToPlaylistCommand");_.zoJ=new _.P("endPlaylistCommand");_.a1J=new _.P("recoverPlaylistCommand");_.dma=new _.P("refreshPlaylistCommand");_.wx2=new _.P("refreshFormCommand");TE5=new _.P("openOnePickAddVideoModalCommand");_.qio=new _.P("reloadContinuationItemsCommand");_.xm5=new _.P("scrollToEngagementPanelCommand");var LKJ=new _.P("selectCountryCommand");var vPv=new _.P("showReloadUiCommand");var KKR=new _.P("undoFeedbackAction");var I1h=new _.P("updateButtonAction");var XAN=new _.P("updateSubscribeButtonAction");var EP4=new _.P("updateToggleAction");var QpJ=new _.P("webNativeShareCommand");_.$a=new _.P("webCommandMetadata");_.df=new _.P("webHandleServiceEndpointExtension");var cX5=new _.P("webNavigationEndpointData");var qOT=new _.P("copyLinkCommand");var c_2=new _.P("playlistVotingRefreshPopupCommand");var A_4=new _.P("selectChipCommand");var iY2=new _.P("setCookieCommand");var spJ=new _.P("setLocalStorageCommand");var FK4=new _.P("setPrefStorageEntryCommand");var mmJ;_.r_v=new _.P("settingsUpdateCheckboxCommand");_.gP_=new _.P("settingsUpdateTextCommand");_.ZY4=new _.P("settingsUpdateOptionsCommand");mmJ=new _.P("settingsUpdateSwitchCommand");_.$mS=new _.P("settingsUpdateConnectedAppRendererCommand");var C9_=new _.P("updateTextInputFormFieldRendererCommand");var P9J=new _.P("updateToggleButtonStateCommand");var nPJ=new _.P("updateUrlParamCommand");var uKh=new _.P("webSubmitFormCommand");var OYv=new _.P("channelSwitcherPageRenderer"),o3G=new _.P("updateChannelSwitcherPageAction");_.YQ=new _.P("continuationItemRenderer");_.wf=new _.P("richItemRenderer");var BK4=new _.P("richSectionRenderer");_.REh=new _.P("richShelfRenderer");_.VIv=new _.P("metadataBadgeRenderer");_.eET=new _.P("multiPageMenuNotificationSectionRenderer");_.X_b=new _.P("playlistLoopButtonStateRenderer");var p_4=new _.P("claimLegacyYoutubeChannelEndpoint");var Ynl=new _.P("getNotificationMenuEndpoint");var hEb=new _.P("getSearchInVideoCommand");_.tIR=new _.P("getTranscriptEndpoint");_.hE=new _.P("signalServiceEndpoint");var Wt4=new _.P("verifyAgeEndpoint");var aiN=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(aiN,_.qS);aiN.prototype.getPath=function(){return _.xU(this,1)};
aiN.prototype.getValue=function(){return _.xU(this,2)};var bTo=[0,_.mg,-1];var J8v=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(J8v,_.qS);var zcN=_.uI(J8v,[0,_.$U,bTo]);var jBh=new _.P("dismissalEndpoint");var Uua=new _.P("elementsCommand");_.aT=new _.P("innertubeCommand");var NK_=new _.P("multipleInlinePlaybackCommand");var D0x=new _.P("loggingDirectives");var GHR=new _.P("acknowledgeChannelTouStrikeCommand");var y8o=function(){lW.apply(this,arguments)};
_.l(y8o,lW);y8o.prototype.getAssociations=function(){return[]};var Snv=function(){lW.apply(this,arguments)};
_.l(Snv,lW);Snv.prototype.getAssociations=function(){return[]};var FE=new _.P("entityBatchUpdate");_.HT2=new _.P("entityUpdateCommand");var MI_=function(){lW.apply(this,arguments)};
_.l(MI_,lW);MI_.prototype.getAssociations=function(){var B=[];this.delegate.alternateChannel&&B.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&B.push.apply(B,_.MI(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&B.push(this.delegate.oneofChannelEntity);return[].concat(_.MI(new Set(B)))};var kH4=function(){lW.apply(this,arguments)};
_.l(kH4,lW);kH4.prototype.getAssociations=function(){var B=[];this.delegate.entryCollection&&B.push(this.delegate.entryCollection);return[].concat(_.MI(new Set(B)))};
var Dua=function(){lW.apply(this,arguments)};
_.l(Dua,lW);Dua.prototype.getAssociations=function(){var B=[];this.delegate.parentPlaylist&&B.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var R=_.h(this.delegate.entries),V=R.next();!V.done;V=R.next())B.push.apply(B,_.MI((new fGb(V.value)).getAssociations()));return[].concat(_.MI(new Set(B)))};
var fGb=function(){ft.apply(this,arguments)};
_.l(fGb,ft);fGb.prototype.getAssociations=function(){var B=[];this.delegate.video&&B.push(this.delegate.video);return[].concat(_.MI(new Set(B)))};var lGo=function(){lW.apply(this,arguments)};
_.l(lGo,lW);lGo.prototype.getAssociations=function(){var B=[];this.delegate.descriptionEntity&&B.push(this.delegate.descriptionEntity);this.delegate.creators&&B.push.apply(B,_.MI(this.delegate.creators));this.delegate.theBiggestFan&&B.push(this.delegate.theBiggestFan);return[].concat(_.MI(new Set(B)))};
var zEG=function(){lW.apply(this,arguments)};
_.l(zEG,lW);zEG.prototype.getAssociations=function(){return[]};var aGS=new _.P("fantasyRosterViewModel");var du_=new _.P("addFollowUpSurveyCommand");var w_l=new _.P("getSurveyCommand");var TKo=new _.P("ratingSurveyOptionRenderer");_.Ki=new _.P("feedbackEndpoint");var xuT=new _.P("reportHistoryTableCellRenderer"),Lto=new _.P("reportHistoryTableTextCellRenderer"),v3h=new _.P("reportHistoryTableReasonCellRenderer");_.Kt_=new _.P("flagEndpoint");var IGo=new _.P("getFlowCommand");var E3R=new _.P("submitFormWithValidationFlowCommand");var QB4=function(){lW.apply(this,arguments)};
_.l(QB4,lW);QB4.prototype.getAssociations=function(){return[]};var qnh=new _.P("flowFormState");var c8b=new _.P("gameCardRenderer");var A8J=new _.P("accountLinkingStateChangedCommand");var iT_=function(){lW.apply(this,arguments)};
_.l(iT_,lW);iT_.prototype.getAssociations=function(){return[]};var sB_=new _.P("changeMiniAppPlayStateCommand");var Fta=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Fta,_.qS);var Tl=[1,2,3];var r8R=[0,Tl,XiA,_.pid,uLd];var g3J=_.uI(Fta,r8R),ZTJ=_.OY(r8R);var mu4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(mu4,_.qS);var $ua=[0,_.rX,_.mg];var CKJ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(CKJ,_.qS);var PK5=[0,_.mg];var n35=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(n35,_.qS);var ud2=function(B,R){return _.ou(B,3,R)};var OTG=_.OY([0,1,$ua,_.Pb,PK5]);var o$J=new _.P("miniAppScoreChallengeViewModel");var BU4=new _.P("miniGameCardViewModel");var R5v=new _.P("teaserCardViewModel");var Vp4=function(){lW.apply(this,arguments)};
_.l(Vp4,lW);Vp4.prototype.getAssociations=function(){return[]};_.e54=new _.P("feedbackItemRenderer");var XT5={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",TAB_BOOKMARK:"TAB_BOOKMARK",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",
INSERT_CHART:"INSERT_CHART",INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",
MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",
LABS_HEADER:"LABS_HEADER",SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",
RESHARE:"RESHARE",MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",
SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",
FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",
ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",
LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED",TICKET_STAR:"TICKET_STAR"};var pTa=function(){lW.apply(this,arguments)};
_.l(pTa,lW);pTa.prototype.getAssociations=function(){return[]};_.Yeh=new _.P("playerInterstitialRenderer");var h5v=new _.P("getKidsBlocklistPickerCommand");_.tpG=new _.P("updateKidsBlacklistEndpoint");_.$1=new _.P("likeEndpoint");var WHb,bab,JH4;WHb=new _.P("addChatItemAction");bab=new _.P("removeChatItemAction");JH4=new _.P("markChatItemAsDeletedAction");_.jj_=new _.P("setLiveChatCollapsedStateAction");var UEo=function(){lW.apply(this,arguments)};
_.l(UEo,lW);UEo.prototype.getAssociations=function(){return[]};var NUJ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(NUJ,_.qS);var G34=_.uI(NUJ,[0,1,_.rX]);var yH4=new _.P("liveChatEndpoint");var SeS=new _.P("liveChatItemContextMenuEndpoint");var Ha_=new _.P("liveChatReplayEndpoint");_.Mp4=new _.P("emojiPickerRenderer");var k34=new _.P("liveChatAuthorBadgeViewModel");var DE_=new _.P("deleteLiveChatMessageCommand");var f$4=new _.P("liveChatActionEndpoint");var l$J=new _.P("createLiveChatPollEndpoint");var z55=new _.P("manageLiveChatUserEndpoint");var a$T=new _.P("moderateLiveChatEndpoint");_.dE5=new _.P("sendLiveChatMessageEndpoint");var wT_=new _.P("sendLiveChatVoteEndpoint");var TUJ=new _.P("clearLocationCommand");var xEo=new _.P("resolveLocationCommand");var LH4=new _.P("interactionLoggingCommandMetadata");var UMS=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(UMS,_.qS);var jSd=function(B,R){return _.Xn(B,1,R)};var v$a=[0,_.Z4];var J1d=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(J1d,_.qS);var b4Z=function(B,R){return Ne(B,1,UMS,R)};J1d.prototype.JSC$9981_serializeBinary=Bqx([0,_.$U,v$a]);var A8q={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 KHb={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"},
I$o={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 qSS={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"};_.t$_=new _.P("logFlowLoggingEventCommand");_.n4Z=new _.P("loggingContext");var E$l=new _.P("captionLanguageSelectActionCommand");var Qj2=new _.P("showCaptionLanguageSelectActionCommand");var qeT=new _.P("dismissDialogEndpoint");var cHv=new _.P("hideItemSectionVideosByIdCommand");var AHb=new _.P("showMiniplayerCommand");var ia4=function(){lW.apply(this,arguments)};
_.l(ia4,lW);ia4.prototype.getAssociations=function(){return[]};var sjb=function(){lW.apply(this,arguments)};
_.l(sjb,lW);sjb.prototype.getAssociations=function(){return[]};var FHo=function(){lW.apply(this,arguments)};
_.l(FHo,lW);FHo.prototype.getAssociations=function(){return[]};var rHh=function(){lW.apply(this,arguments)};
_.l(rHh,lW);rHh.prototype.getAssociations=function(){var B=[];this.delegate.downloadsList&&B.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&B.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&B.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&B.push(this.delegate.refresh);return[].concat(_.MI(new Set(B)))};var g$b=function(){lW.apply(this,arguments)};
_.l(g$b,lW);g$b.prototype.getAssociations=function(){var B=[];this.delegate.refresh&&B.push(this.delegate.refresh);if(this.delegate.downloads)for(var R=_.h(this.delegate.downloads),V=R.next();!V.done;V=R.next())B.push.apply(B,_.MI((new Za4(V.value)).getAssociations()));return[].concat(_.MI(new Set(B)))};
var Za4=function(){ft.apply(this,arguments)};
_.l(Za4,ft);Za4.prototype.getAssociations=function(){var B=[];this.delegate.video&&B.push(this.delegate.video);this.delegate.playlist&&B.push(this.delegate.playlist);this.delegate.videoItem&&B.push(this.delegate.videoItem);this.delegate.playlistItem&&B.push(this.delegate.playlistItem);return[].concat(_.MI(new Set(B)))};var mEo=function(){lW.apply(this,arguments)};
_.l(mEo,lW);mEo.prototype.getAssociations=function(){var B=[];this.delegate.localImageEntities&&B.push.apply(B,_.MI(this.delegate.localImageEntities));return[].concat(_.MI(new Set(B)))};var $ER=function(){lW.apply(this,arguments)};
_.l($ER,lW);$ER.prototype.getAssociations=function(){var B=[];this.delegate.playbackData&&B.push(this.delegate.playbackData);this.delegate.localImageEntities&&B.push.apply(B,_.MI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&B.push(this.delegate.videoDownloadContextEntity);return[].concat(_.MI(new Set(B)))};var C0_=function(){lW.apply(this,arguments)};
_.l(C0_,lW);C0_.prototype.getAssociations=function(){return[]};var P0R=function(){lW.apply(this,arguments)};
_.l(P0R,lW);P0R.prototype.getAssociations=function(){var B=[];this.delegate.fakeChildren&&B.push.apply(B,_.MI(this.delegate.fakeChildren));return[].concat(_.MI(new Set(B)))};var n$l=function(){lW.apply(this,arguments)};
_.l(n$l,lW);n$l.prototype.getAssociations=function(){var B=[];this.delegate.video&&B.push(this.delegate.video);this.delegate.playbackData&&B.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&B.push(this.delegate.offlineVideoPolicy);return[].concat(_.MI(new Set(B)))};var u8G=function(){lW.apply(this,arguments)};
_.l(u8G,lW);u8G.prototype.getAssociations=function(){return[]};var OaR=function(){lW.apply(this,arguments)};
_.l(OaR,lW);OaR.prototype.getAssociations=function(){var B=[];this.delegate.channelOwner&&B.push(this.delegate.channelOwner);this.delegate.videos&&B.push.apply(B,_.MI(this.delegate.videos));this.delegate.collaboratorChannels&&B.push.apply(B,_.MI(this.delegate.collaboratorChannels));this.delegate.downloadState&&B.push(this.delegate.downloadState);this.delegate.refresh&&B.push(this.delegate.refresh);return[].concat(_.MI(new Set(B)))};var oXa=function(){lW.apply(this,arguments)};
_.l(oXa,lW);oXa.prototype.getAssociations=function(){var B=[];this.delegate.video&&B.push(this.delegate.video);this.delegate.channelContributor&&B.push(this.delegate.channelContributor);return[].concat(_.MI(new Set(B)))};var BO4=function(){ft.apply(this,arguments)};
_.l(BO4,ft);BO4.prototype.getAssociations=function(){var B=[];this.delegate.recommendedVideoMetadata&&B.push.apply(B,_.MI((new RMG(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.MI(new Set(B)))};
var RMG=function(){ft.apply(this,arguments)};
_.l(RMG,ft);RMG.prototype.getAssociations=function(){var B=[];this.delegate.localImageEntities&&B.push.apply(B,_.MI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&B.push(this.delegate.videoDownloadContextEntity);return[].concat(_.MI(new Set(B)))};var VPJ=function(){ft.apply(this,arguments)};
_.l(VPJ,ft);VPJ.prototype.getAssociations=function(){var B=[];this.delegate.playbackPosition&&B.push(this.delegate.playbackPosition);return[].concat(_.MI(new Set(B)))};var eM4=function(){lW.apply(this,arguments)};
_.l(eM4,lW);eM4.prototype.getAssociations=function(){var B=[];this.delegate.owner&&B.push(this.delegate.owner);this.delegate.downloadState&&B.push(this.delegate.downloadState);this.delegate.userState&&B.push.apply(B,_.MI((new VPJ(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&B.push.apply(B,_.MI((new BO4(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.MI(new Set(B)))};var XWv=function(){lW.apply(this,arguments)};
_.l(XWv,lW);XWv.prototype.getAssociations=function(){var B=[];this.delegate.userChannelDetails&&B.push(this.delegate.userChannelDetails);return[].concat(_.MI(new Set(B)))};var pWl=function(){lW.apply(this,arguments)};
_.l(pWl,lW);pWl.prototype.getAssociations=function(){var B=[];this.delegate.channelOwner&&B.push(this.delegate.channelOwner);this.delegate.playbackPosition&&B.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&B.push.apply(B,_.MI(this.delegate.localImageEntities));this.delegate.downloadStatus&&B.push(this.delegate.downloadStatus);return[].concat(_.MI(new Set(B)))};var NfA=new _.P("downloadsPageSmartDownloadsOptInBannerParams");var YcS=function(){lW.apply(this,arguments)};
_.l(YcS,lW);YcS.prototype.getAssociations=function(){return[]};var hMT=function(){lW.apply(this,arguments)};
_.l(hMT,lW);hMT.prototype.getAssociations=function(){return[]};var tPJ=function(){lW.apply(this,arguments)};
_.l(tPJ,lW);tPJ.prototype.getAssociations=function(){return[]};var WBv=function(){lW.apply(this,arguments)};
_.l(WBv,lW);WBv.prototype.getAssociations=function(){return[]};var bgT=function(){lW.apply(this,arguments)};
_.l(bgT,lW);bgT.prototype.getAssociations=function(){return[]};var JwT=function(){lW.apply(this,arguments)};
_.l(JwT,lW);JwT.prototype.getAssociations=function(){return[]};var jka=function(){lW.apply(this,arguments)};
_.l(jka,lW);jka.prototype.getAssociations=function(){return[]};var Up2=function(){lW.apply(this,arguments)};
_.l(Up2,lW);Up2.prototype.getAssociations=function(){return[]};var NO5=function(){lW.apply(this,arguments)};
_.l(NO5,lW);NO5.prototype.getAssociations=function(){return[]};var IV=new _.P("dislikeButtonViewModel");var KO=new _.P("likeButtonViewModel");var GAb=new _.P("videoSummaryContentViewModel");var BRY=new _.P("videoSummaryParagraphViewModel");var ywb=new _.P("changeTimelyActionVisibilityCommand");var ScR=new _.P("hideEngagementPanelEndpoint");var Hg2=new _.P("refreshPanelEndpoint");var MPo=new _.P("scrollToSectionEndpoint");var kA4=new _.P("seekToVideoTimestampCommand");_.vS=new _.P("showEngagementPanelEndpoint");var DpG=new _.P("showTransientPlayerScrimOverlayCommand");var fAR=new _.P("toggleEngagementPanelCommand");_.lAR=new _.P("createBroadcastCommand");var zM5=new _.P("metadataUpdateCommand");var aAo=function(){lW.apply(this,arguments)};
_.l(aAo,lW);aAo.prototype.getAssociations=function(){return[]};var dpv=function(){lW.apply(this,arguments)};
_.l(dpv,lW);dpv.prototype.getAssociations=function(){return[]};var wWv=function(){lW.apply(this,arguments)};
_.l(wWv,lW);wWv.prototype.getAssociations=function(){return[]};_.TOo=new _.P("merchandiseShelfRenderer");var xpo=new _.P("gridMovieRenderer");_.LBJ=new _.P("movieRenderer");var vXv=function(){lW.apply(this,arguments)};
_.l(vXv,lW);vXv.prototype.getAssociations=function(){var B=[];this.delegate.trackDownloadMetadatas&&B.push.apply(B,_.MI(this.delegate.trackDownloadMetadatas));return[].concat(_.MI(new Set(B)))};var KBl=function(){lW.apply(this,arguments)};
_.l(KBl,lW);
KBl.prototype.getAssociations=function(){var B=[];this.delegate.downloadedTracks&&B.push.apply(B,_.MI(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&B.push.apply(B,_.MI(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&B.push.apply(B,_.MI(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&B.push.apply(B,_.MI(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&B.push.apply(B,_.MI(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
B.push.apply(B,_.MI(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&B.push.apply(B,_.MI(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&B.push.apply(B,_.MI(this.delegate.metadataOnlyTracks));return[].concat(_.MI(new Set(B)))};var IAa=function(){lW.apply(this,arguments)};
_.l(IAa,lW);IAa.prototype.getAssociations=function(){var B=[];this.delegate.trackDownloadMetadatas&&B.push.apply(B,_.MI(this.delegate.trackDownloadMetadatas));return[].concat(_.MI(new Set(B)))};var EXa=function(){lW.apply(this,arguments)};
_.l(EXa,lW);EXa.prototype.getAssociations=function(){var B=[];this.delegate.playbackData&&B.push(this.delegate.playbackData);this.delegate.localImageEntities&&B.push.apply(B,_.MI(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&B.push(this.delegate.videoDownloadContextEntity);return[].concat(_.MI(new Set(B)))};var QkG=function(){lW.apply(this,arguments)};
_.l(QkG,lW);
QkG.prototype.getAssociations=function(){var B=[];this.delegate.musicLibraryStatusEntity&&B.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&B.push.apply(B,_.MI(this.delegate.primaryArtists));this.delegate.details&&B.push(this.delegate.details);this.delegate.userDetails&&B.push(this.delegate.userDetails);this.delegate.tracks&&B.push.apply(B,_.MI(this.delegate.tracks));this.delegate.share&&B.push(this.delegate.share);this.delegate.downloadMetadata&&B.push(this.delegate.downloadMetadata);this.delegate.refresh&&
B.push(this.delegate.refresh);return[].concat(_.MI(new Set(B)))};
var qcJ=function(){lW.apply(this,arguments)};
_.l(qcJ,lW);qcJ.prototype.getAssociations=function(){var B=[];this.delegate.albumRelease&&B.push(this.delegate.albumRelease);this.delegate.tracks&&B.push.apply(B,_.MI(this.delegate.tracks));return[].concat(_.MI(new Set(B)))};
var cw2=function(){lW.apply(this,arguments)};
_.l(cw2,lW);cw2.prototype.getAssociations=function(){var B=[];this.delegate.albumRelease&&B.push(this.delegate.albumRelease);return[].concat(_.MI(new Set(B)))};var AwJ=function(){lW.apply(this,arguments)};
_.l(AwJ,lW);AwJ.prototype.getAssociations=function(){var B=[];this.delegate.details&&B.push(this.delegate.details);this.delegate.userDetails&&B.push(this.delegate.userDetails);return[].concat(_.MI(new Set(B)))};
var igR=function(){lW.apply(this,arguments)};
_.l(igR,lW);igR.prototype.getAssociations=function(){var B=[];this.delegate.parentArtist&&B.push(this.delegate.parentArtist);return[].concat(_.MI(new Set(B)))};
var sko=function(){lW.apply(this,arguments)};
_.l(sko,lW);sko.prototype.getAssociations=function(){var B=[];this.delegate.parentArtist&&B.push(this.delegate.parentArtist);return[].concat(_.MI(new Set(B)))};var FBJ=function(){lW.apply(this,arguments)};
_.l(FBJ,lW);FBJ.prototype.getAssociations=function(){return[]};var rw4=function(){lW.apply(this,arguments)};
_.l(rw4,lW);rw4.prototype.getAssociations=function(){return[]};var gXJ=function(){lW.apply(this,arguments)};
_.l(gXJ,lW);
gXJ.prototype.getAssociations=function(){var B=[];this.delegate.tracks&&B.push.apply(B,_.MI(this.delegate.tracks));this.delegate.refresh&&B.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&B.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&B.push(this.delegate.details);this.delegate.downloadMetadata&&B.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&B.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&B.push(this.delegate.userDetails);this.delegate.entryCollection&&
B.push(this.delegate.entryCollection);this.delegate.share&&B.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&B.push.apply(B,_.MI((new Zgl(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.MI(new Set(B)))};
var Zgl=function(){ft.apply(this,arguments)};
_.l(Zgl,ft);Zgl.prototype.getAssociations=function(){var B=[];this.delegate.creatorEntity&&B.push(this.delegate.creatorEntity);return[].concat(_.MI(new Set(B)))};var mpv=function(){lW.apply(this,arguments)};
_.l(mpv,lW);mpv.prototype.getAssociations=function(){return[]};var $p_=function(){lW.apply(this,arguments)};
_.l($p_,lW);
$p_.prototype.getAssociations=function(){var B=[];this.delegate.musicLibraryStatusEntity&&B.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&B.push.apply(B,_.MI(this.delegate.artists));this.delegate.audioModeVersion&&B.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&B.push(this.delegate.videoModeVersion);this.delegate.userDetails&&B.push(this.delegate.userDetails);this.delegate.details&&B.push(this.delegate.details);this.delegate.albumRelease&&B.push(this.delegate.albumRelease);this.delegate.share&&
B.push(this.delegate.share);this.delegate.libraryEdit&&B.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&B.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&B.push(this.delegate.playbackPosition);this.delegate.lyrics&&B.push(this.delegate.lyrics);return[].concat(_.MI(new Set(B)))};
var CCl=function(){lW.apply(this,arguments)};
_.l(CCl,lW);CCl.prototype.getAssociations=function(){var B=[];this.delegate.parentTrack&&B.push(this.delegate.parentTrack);return[].concat(_.MI(new Set(B)))};
var PC5=function(){lW.apply(this,arguments)};
_.l(PC5,lW);PC5.prototype.getAssociations=function(){var B=[];this.delegate.parentTrack&&B.push(this.delegate.parentTrack);return[].concat(_.MI(new Set(B)))};var eV=new _.P("musicResponsiveListItemRenderer");var sYq=new _.P("addToPlaylistEndpoint");var nX4=new _.P("captionPickerEndpoint");var uCb=new _.P("suggestStats");var Og5=new _.P("backstageImageUploadEndpoint");var o6o=new _.P("createBackstagePostDialogEndpoint");_.BpR=new _.P("createCommentReplyDialogEndpoint");_.RPh=new _.P("updateCommentDialogEndpoint");_.VH_=new _.P("updateCommentReplyDialogEndpoint");var ePT=new _.P("menuEndpoint");var E75=new _.P("modalEndpoint");var X9J=new _.P("playlistEditorEndpoint");var p9_=new _.P("copyTextEndpoint");var Yj2,hPv;Yj2=new _.P("shareEndpoint");hPv=new _.P("shareEntityEndpoint");_.tHa=new _.P("shareEntityServiceEndpoint");_.oFd=new _.P("userFeedbackEndpoint");_.sI=new _.P("watchEndpoint");var NYd=new _.P("watchPlaylistEndpoint");var WGh=new _.P("addUpcomingEventReminderEndpoint");_.xi=new _.P("getCommentsFromInboxCommand");var b8G=new _.P("notificationOptOutEndpoint");var JfG=new _.P("recordNotificationInteractionsEndpoint");var jch=new _.P("removeUpcomingEventReminderEndpoint");var AjN=new _.P("getDownloadActionCommand");_.U7b=new _.P("offlineOrchestrationActionCommand");var Npv=function(){lW.apply(this,arguments)};
_.l(Npv,lW);Npv.prototype.getAssociations=function(){return[]};var GsJ=function(){lW.apply(this,arguments)};
_.l(GsJ,lW);GsJ.prototype.getAssociations=function(){return[]};var yfR=function(){lW.apply(this,arguments)};
_.l(yfR,lW);yfR.prototype.getAssociations=function(){return[]};var SjJ=function(){lW.apply(this,arguments)};
_.l(SjJ,lW);SjJ.prototype.getAssociations=function(){return[]};var H84=function(){lW.apply(this,arguments)};
_.l(H84,lW);H84.prototype.getAssociations=function(){var B=[];this.delegate.transfer&&B.push(this.delegate.transfer);this.delegate.adsPlaybackData&&B.push.apply(B,_.MI(this.delegate.adsPlaybackData));this.delegate.drmLicense&&B.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&B.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&B.push(this.delegate.videoDownloadContextEntity);return[].concat(_.MI(new Set(B)))};var MH2=function(){lW.apply(this,arguments)};
_.l(MH2,lW);MH2.prototype.getAssociations=function(){return[]};var ksT=function(){lW.apply(this,arguments)};
_.l(ksT,lW);ksT.prototype.getAssociations=function(){var B=[];this.delegate.offlineVideoStreams&&B.push.apply(B,_.MI(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&B.push.apply(B,_.MI(this.delegate.captionTrack));return[].concat(_.MI(new Set(B)))};var D7T=function(){lW.apply(this,arguments)};
_.l(D7T,lW);D7T.prototype.getAssociations=function(){return[]};var fr4=new _.P("showMoreDrawerCommand");var lr5=new _.P("updateEngagementPanelContentCommand");var zPJ=new _.P("getPdgBuyFlowCommand");var ar_=new _.P("liveChatPurchaseMessageEndpoint");var d7_=new _.P("openSuperStickerBuyFlowCommand");var w9v=new _.P("updatePdgFeatureEnablementCommand");var TpG=function(){lW.apply(this,arguments)};
_.l(TpG,lW);TpG.prototype.getAssociations=function(){return[]};var x7R=function(){lW.apply(this,arguments)};
_.l(x7R,lW);x7R.prototype.getAssociations=function(){return[]};_.LGS=new _.P("pdgCommentChipRenderer");_.v6b=new _.P("permissionRoleBottomBarRenderer");_.KGR=new _.P("updatePermissionRoleCommand");var IrG=new _.P("prefetchWatchCommand");var E6h=new _.P("updatePlayerErrorMessageCommand");var vFN=new _.P("toggleCaptionsVisibilityCommand");_.QcG=new _.P("quickActionsViewModel");var qja=new _.P("playerResponse");var cf4=new _.P("playlistRenderer");_.Afb=new _.P("playlistVideoListRenderer");_.Lt=new _.P("playlistEditEndpoint");var i8J=new _.P("createImagePollCommand");var scv=new _.P("createQuizCommand");var FG_=new _.P("quizRenderer");var rf_=new _.P("uploadedVideoRenderer");var g6J=new _.P("decorateMessageEndpoint");var Z8S=new _.P("lpOfferCardOptionViewModel");var m74=new _.P("sfvAudioItemPlaybackCommand");var $7T=function(){lW.apply(this,arguments)};
_.l($7T,lW);$7T.prototype.getAssociations=function(){return[]};_.vL=new _.P("reelNonVideoContentEndpoint");_.GF=new _.P("reelWatchEndpoint");_.Kt=new _.P("reelItemRenderer");_.Cxl=new _.P("reelMetapanelViewModel");_.Pxb=new _.P("reelNonVideoContentRenderer");_.n6a=new _.P("reelPlayerOverlayRenderer");var uJ4=new _.P("shortsLockupViewModel");var O8l=new _.P("sponsorButtonViewModel");var oI_=new _.P("reelItemWatchResponse");var BvR=new _.P("textBadgeRenderer");_.Ii=new _.P("buttonRenderer");_.EN=new _.P("toggleButtonRenderer");var ctd=new _.P("switchButtonViewModel");_.RX4=new _.P("confirmDialogRenderer");var Vob;Vob=new _.P("menuRenderer");_.eX2=new _.P("menuFlexibleItemRenderer");var X6l=new _.P("pollRenderer");_.p6l=new _.P("backgroundPromoRenderer");var hXo;_.Yr4=new _.P("chipCloudRenderer");hXo=new _.P("chipCloudChipRenderer");var to2=new _.P("dropdownRenderer");var Wp_=new _.P("gridVideoRenderer");_.VUI=new _.P("itemSectionRenderer");_.bCT=new _.P("messageRenderer");var JT_=new _.P("sortFilterHeaderRenderer");_.Qy=new _.P("videoRenderer");var jhl=new _.P("resolveUrlCommandMetadata");var Uk4=function(){lW.apply(this,arguments)};
_.l(Uk4,lW);Uk4.prototype.getAssociations=function(){return[]};_.NvS=new _.P("getAnswerCommand");_.jc=new _.P("searchEndpoint");var G0v=new _.P("genAiRichTextViewModel");var cjo=new _.P("overviewAnswerViewModel");var yT5=new _.P("addToPlaylistServiceEndpoint");var Srb=new _.P("clearSearchHistoryEndpoint");var HC5=new _.P("clearWatchHistoryEndpoint");var Mol=new _.P("webSerializedServiceEndpointExtension");_.zra=new _.P("createCommentEndpoint");var auJ=new _.P("createCommentReplyEndpoint");var df5=new _.P("performCommentActionEndpoint");var wLJ=new _.P("updateCommentEndpoint");var Tf4=new _.P("updateCommentReplyEndpoint");_.qf=new _.P("createPlaylistServiceEndpoint");var xfb=new _.P("deletePlaylistEndpoint");var L85=new _.P("deleteVideoEndpoint");var iSA=new _.P("getReportFormEndpoint");var vi4=new _.P("modifyChannelNotificationPreferenceEndpoint");var YMo;_.jX=new _.P("offlinePlaylistEndpoint");YMo={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 hyA;_.Jv=new _.P("offlineVideoEndpoint");hyA={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 K8o=new _.P("pingingEndpoint");_.Iu4=new _.P("selectActiveIdentityEndpoint");var Ei2=new _.P("setSettingEndpoint");var tLo=new _.P("undoFeedbackEndpoint");var Qi5=new _.P("unsubscribeEndpoint");_.qN2=new _.P("updatedMetadataEndpoint");var cGl=function(){lW.apply(this,arguments)};
_.l(cGl,lW);cGl.prototype.getAssociations=function(){return[]};_.AGa=new _.P("updateLocalAppSettingCommand");var it_=new _.P("saveImageToDeviceEndpoint");var si4=new _.P("shareImageCommand");var F8J=new _.P("sharingProviderDataCommand");var rG5=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(rG5,_.qS);var giR=[0,_.mg,-1];rG5.prototype.JSC$10182_serializeBinary=Bqx(giR);var Zt2=_.OY(giR);var mfb=new _.P("userMentionSuggestionRenderer");var $fh=new _.P("liveChatTunnelCommand");var CWh=new _.P("showSponsorshipsGiftOfferDialogCommand");var PWS=new _.P("sponsorshipsScrollableShelfViewModel");var niR=new _.P("updateUpcomingEventReminderButtonStateCommand");var umR=new _.P("upcomingEventReminderButtonStateRenderer");var OtT=new _.P("subscribeEndpoint");var oJJ=new _.P("registerTasksCommand");var B3_=new _.P("showDialogCommand");_.H7=new _.P("showSheetCommand");var RVb=new _.P("showSnackbarCommand");var V8b=function(){lW.apply(this,arguments)};
_.l(V8b,lW);V8b.prototype.getAssociations=function(){return[]};var eVJ=function(){lW.apply(this,arguments)};
_.l(eVJ,lW);eVJ.prototype.getAssociations=function(){return[]};_.$x=new _.P("avatarViewModel");var pFA=new _.P("badgeViewModel");_.Tr=new _.P("buttonViewModel");_.cL=new _.P("chipViewModel");var XCb=new _.P("contentPreviewImageViewModel");var pCG=new _.P("decoratedAvatarViewModel");var ELp=new _.P("downloadButtonViewModel");_.iBI=new _.P("engagementBarViewModel");_.Ypo=new _.P("imageBannerViewModel");var kdq=new _.P("lockupContentMetadataRowExtension");var hV4=new _.P("lockupMetadataViewModel");_.t8a=new _.P("lockupViewModel");var Wfb=new _.P("avatarStackViewModel");var by2=function(){lW.apply(this,arguments)};
_.l(by2,lW);by2.prototype.getAssociations=function(){return[]};_.JyT=new _.P("pageHeaderViewModel");var j85=new _.P("snackbarViewModel");var wVd=new _.P("thumbnailHoverOverlayToggleActionsViewModel");_.xx=new _.P("toggleButtonViewModel");var UyG=function(){lW.apply(this,arguments)};
_.l(UyG,lW);UyG.prototype.getAssociations=function(){return[]};_.sMd=new _.P("votingViewModel");var N34=new _.P("sectionHeaderViewModel");var Ge5=new _.P("notifyDropdownOptionSelectedCommand");var OXd=new _.P("listViewModel");_.Mo=new _.P("listItemViewModel");var yy_=new _.P("dialogHeaderViewModel");var Spv=function(){lW.apply(this,arguments)};
_.l(Spv,lW);Spv.prototype.getAssociations=function(){return[]};var HyJ=function(){lW.apply(this,arguments)};
_.l(HyJ,lW);HyJ.prototype.getAssociations=function(){return[]};var M8o=function(){lW.apply(this,arguments)};
_.l(M8o,lW);M8o.prototype.getAssociations=function(){return[]};_.ke_=new _.P("transcriptSubmitCaptionCorrectionCommand");var Dyh=function(){lW.apply(this,arguments)};
_.l(Dyh,lW);Dyh.prototype.getAssociations=function(){return[]};var fDS=new _.P("unpluggedStringRunImage");var f0l=new _.P("tabViewModel");var l0a=new _.P("tabbedViewModel");var zVT=function(){lW.apply(this,arguments)};
_.l(zVT,lW);zVT.prototype.getAssociations=function(){return[]};_.a0o=new _.P("updateDescriptionAction");var dyT=new _.P("updateToggleButtonTextAction");_.wCh=new _.P("autoplaySwitchButtonRenderer");var QA;_.T3a=new _.P("multiMarkersPlayerBarRenderer");QA=new _.P("chapterRenderer");var xy4=new _.P("heatMarkerRenderer");var k1A=new _.P("heatmapRenderer");var Lf_=new _.P("smartSkipPlayerScrimOverlayRenderer");var vJ4=new _.P("timedMarkerDecorationRenderer");var dPo=new _.P("postWebToNativeMessageCommand");var Kfl=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Kfl,_.qS);var I0J=_.uI(Kfl,[0,_.mg,-2]);var EJl=new _.P("whitelistEditEndpoint");var Q8_=new _.P("clearUrlParamCommand");var qp4=new _.P("commerceActionCommand");_.cy2=new _.P("getPaymentInstrumentsParamsCommand");var Ay2=new _.P("getPaymentsClientTokenCommand");var iyT=new _.P("googlePaymentBillingCommand");var s84=new _.P("googlePaymentPurchaseManagerCommand");_.Ff4=new _.P("logGtmCommand");var ry4=new _.P("updateCardItemOnClickCommand");_.gJS=new _.P("ypcPauseSubscriptionCommand");_.Zyb=new _.P("ypcResumeSubscriptionCommand");var myl=function(){lW.apply(this,arguments)};
_.l(myl,lW);myl.prototype.getAssociations=function(){return[]};var $yb=function(){lW.apply(this,arguments)};
_.l($yb,lW);$yb.prototype.getAssociations=function(){return[]};var CRh=function(){lW.apply(this,arguments)};
_.l(CRh,lW);CRh.prototype.getAssociations=function(){return[]};var PRG=function(){lW.apply(this,arguments)};
_.l(PRG,lW);PRG.prototype.getAssociations=function(){return[]};var nJh=function(){lW.apply(this,arguments)};
_.l(nJh,lW);nJh.prototype.getAssociations=function(){return[]};var tTS=new _.P("ypcOffersEndpoint");var u14=new _.P("cardItemRenderer"),Oy2=new _.P("cardItemTextRenderer");var oZa=new _.P("commerceCartItemQuantityPickerRenderer");var BM2=new _.P("linkCardRenderer");var MMx=new _.P("quantityIncrementerButtonViewModel");var RiJ=new _.P("quantityIncrementerViewModel");var VSa=new _.P("themedImageViewModel");_.eiR=new _.P("ypcCancelRecurrenceEndpoint");var XDT=new _.P("ypcCompleteTransactionEndpoint");_.pDv=new _.P("ypcGetCartEndpoint");_.pw=new _.P("ypcGetOffersEndpoint");_.AG=new _.P("ypcHandleTransactionEndpoint");var Yb5=new _.P("ypcLogWalletAnalyticDataEndpoint");_.hi4=new _.P("ypcRedeemCodeEndpoint");var tS5=new _.P("ypcUpdateFopEndpoint");eE(Vy(1),BL(4));A6u((new MessageChannel).port2);var WD4=function(){this.register=new Map},sBo=function(B,R,V){B=B+"_"+R;
iW.register.has(B)?V=iW.register.get(B):(V=V(),iW.register.set(B,V));return V},bFv=function(B){B=_.h(B.register.values());
for(var R=B.next();!R.done;R=B.next())_.GT(R.value,"ABORTED")};
WD4.prototype.clear=function(){bFv(this);this.register.clear()};
var iW=new WD4;var MIo=Date.now().toString();var Dup,JpJ=_.R5.ytLoggingDocDocumentNonce_;JpJ||(JpJ=aL(16),_.mk("ytLoggingDocDocumentNonce_",JpJ));Dup=JpJ;var xuY={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 jD5;jD5=1;_.dT=function(B){this.veData=B};
_.U5=function(B){return new _.dT({trackingParams:B})};
_.kB=function(B,R,V,e,X,Y){var t=jD5++;return new _.dT({veType:B,veCounter:t,elementIndex:V,dataElement:R,youtubeData:e,jspbYoutubeData:X,loggingDirectives:Y})};
_.p=_.dT.prototype;
_.p.getAsJson=function(){var B={};this.veData.trackingParams!==void 0?B.trackingParams=this.veData.trackingParams:(B.veType=this.veData.veType,this.veData.veCounter!==void 0&&(B.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(B.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(B.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(B.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(B.isCounterfactual=!0);
return B};
_.p.getAsJspb=function(){var B=new Z6v;this.veData.trackingParams!==void 0?B.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.ED(B,2,this.veData.veType),this.veData.veCounter!==void 0&&_.ED(B,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.ED(B,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Xn(B,5,!0));if(this.veData.dataElement!==void 0){var R=this.veData.dataElement.getAsJspb();_.Ra(B,7,R)}this.veData.youtubeData!==void 0&&_.Ra(B,8,this.veData.jspbYoutubeData);
return B};
_.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};_.mk("yt_logging_screen.getRootVeType",duo);_.mk("yt_logging_screen.getCurrentCsn",_.TE);_.mk("yt_logging_screen.getCttAuthInfo",xa);_.mk("yt_logging_screen.setCurrentScreen",_.Kto);var Uqh=function(){this.events=new Map},NMJ=function(B){var R=[];
B=_.h(B.events.values());for(var V=B.next();!V.done;V=B.next())R.push(V.value);return R};
Uqh.prototype.clear=function(){this.events.clear()};var ypG=function(){this.logTransport=new GkT;this.loggedEventRegister=new Uqh;this.unloggedEventRegister=new Uqh;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10239_flushTimer=new _.Oq(this.flushInterval);this.JSC$10239_flushTimer.listen("tick",this.flush,!1,this)};
ypG.prototype.flush=function(){if(this.eventsCount){var B={loggedEvents:NMJ(this.loggedEventRegister),unloggedEvents:NMJ(this.unloggedEventRegister)};if(_.k("export_player_version_to_ytconfig")){var R;(R=_.vE("PLAYER_CLIENT_VERSION"))?(R=R.split("-")[0].replace(/\./g,""),R=isNaN(Number(R))?"0":R):R="";var V=_.vE("PLAYER_CLIENT_VERSION");if(V){V=V.split("-");var e="";V.length>1&&(e=V[V.length-1]);V=HTd(e.startsWith("canary_experiment")?"canary":e.startsWith("canary_control")?"control":"none")}else V=
"CLIENT_CANARY_STATE_UNKNOWN";B.dimensions={playerClientVersion:R,playerCanaryState:V}}this.logTransport.flush(B);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10239_flushTimer.enabled&&this.JSC$10239_flushTimer.stop()}};
var SbS=function(B){sN==null&&(sN=new ypG);var R=sN;var V=R.loggedEventRegister;B.dimensions=B.dimensions||{};B.dimensions.csn=_.TE()||"";var e=IGS(B.dimensions).join(";");if(B.records!=null)if(V.events.has(e)){var X;(X=V.events.get(e).records)==null||X.push.apply(X,_.MI(B.records))}else V.events.set(e,B);R.JSC$10239_flushTimer.enabled||R.JSC$10239_flushTimer.start();R.eventsCount++;R.eventsCount>=100&&R.flush()};var GkT=function(){};
GkT.prototype.flush=function(B,R){_.k("enable_client_sli_logging")&&_.dn("sliEventBatch",B,{sendIsolatedPayload:!!R})};var sN;var MSl;MSl=function(B){var R=HF2;B=B===void 0?{}:B;R=R.name;var V=iTo("SUCCESS");SbS({dimensions:B,records:[{name:R,state:"SLI_STATE_END",status:V}]})};
_.Ftp=function(B,R,V,e){this.name=B;this.sliId=R;this.timeoutMs=V;this.statusOnTimeout=e;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Ftp.prototype.getId=function(){return this.sliId};
_.Nl=function(B,R){R=R===void 0?{}:R;B.ongoing||(B.ongoing=!0,B.dimensions=R,B.logSliId=kjl(),SbS({dimensions:B.dimensions,records:[{name:B.name,state:"SLI_STATE_START",sliId:B.logSliId}]}),B.timeoutMs>0&&(B.timeoutHandle=setTimeout(function(){_.GT(B,B.statusOnTimeout)},B.timeoutMs)))};
_.GT=function(B,R){B.ongoing&&(B.timeoutMs>0&&clearTimeout(B.timeoutHandle),B.ongoing=!1,R={dimensions:B.dimensions,records:[{name:B.name,status:iTo(R),state:"SLI_STATE_END",sliId:B.logSliId}]},iW.register.delete(B.name+"_"+B.sliId),SbS(R))};var HF2=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var kko=function(){lW.apply(this,arguments)};
_.l(kko,lW);kko.prototype.getAssociations=function(){return[]};var Wxp=new _.P("highlightTextDecoratorColorMapExtension");var hLd=new _.P("styleRunColorMapExtension");var PKd=_.$Q(["data-"]),OT_={};var BUx={};var Fm=function(B){this.wrappedPromise_=B===void 0?null:B;this.state_=0;this.JSC$10271_value_=null};
Fm.prototype.then=function(B,R,V){return this.wrappedPromise_?this.wrappedPromise_.then(B,R,V):this.state_===1&&B?(B=B.call(V,this.JSC$10271_value_))&&typeof B.then==="function"?B:_.rf(B):this.state_===2&&R?(B=R.call(V,this.JSC$10271_value_))&&typeof B.then==="function"?B:_.Dq4(B):this};
Fm.prototype.getValue=function(){return this.JSC$10271_value_};
Fm.prototype.isRejected=function(){return this.state_==2};
Z$h(Fm);_.Dq4=function(B){var R=new Fm;B=B===void 0?null:B;R.state_=2;R.JSC$10271_value_=B===void 0?null:B;return R};
_.rf=function(B){var R=new Fm;B=B===void 0?null:B;R.state_=1;R.JSC$10271_value_=B===void 0?null:B;return R};var G35="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var f2v=["load","abort","error"],gf=function(B,R,V){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10291_maxAspectRatio_=B;this.disableAnimation_=R===void 0?!1:R;this.disableExifRotation_=V===void 0?!1:V;this.JSC$10291_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10291_reject_=this.resolve_=null};
gf.prototype.transform=function(B){var R=this;this.mime_=B.type;gK(sr5(B),this.dataUrlRead_,this.readError_,this);gK(i74(B.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(V,e){R.resolve_=V;R.JSC$10291_reject_=e})};
gf.prototype.dataUrlRead_=function(B){this.dataUrl_=B;this.angle_!=null&&l2v(this)};
gf.prototype.exifRead_=function(B){if(this.disableExifRotation_)this.angle_=0;else{a:if(B=new DataView(B),B.byteLength<2||B.getUint16(0)!==65496)B=-2;else{for(var R=2,V=B.byteLength;R<V;){var e=B.getUint16(R),X=B.getUint16(R+2);if(e===65505){R+=4;e=B.getUint32(R);X=B.getUint16(R+4);if(e!==1165519206||X!==0)break;R+=6;e=B.getUint16(R)===18761;R+=B.getUint32(R+4,e);X=B.getUint16(R,e);R+=2;for(var Y=0;Y<X;Y++){if(B.getUint16(R,e)===274){R+=8;B=B.getUint16(R,e);break a}R+=12}}else if(e>>8!==255)break;
else R+=X+2}B=-1}switch(B){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&&l2v(this)};
gf.prototype.readError_=function(){this.JSC$10291_reject_()};
var l2v=function(B){JJ(B.JSC$10291_image_,f2v,B.completeTransform_,!1,B);B.JSC$10291_image_.src=_.ym(B.dataUrl_).toString();B.JSC$10291_image_.src!=Gm.toString()&&B.JSC$10291_image_.src.substr(0,11)==="data:image/"||B.JSC$10291_reject_()};
gf.prototype.completeTransform_=function(){if(this.JSC$10291_image_.src!=Gm.toString()){var B=_.ym(this.dataUrl_),R=this.JSC$10291_image_.naturalHeight?this.JSC$10291_image_.naturalWidth/this.JSC$10291_image_.naturalHeight:null;this.invalidAspectRatio=R>this.JSC$10291_maxAspectRatio_||R<1/this.JSC$10291_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var V=this.JSC$10291_image_.naturalWidth,e=this.JSC$10291_image_.naturalHeight,X=R=0,Y=this.JSC$10291_image_.naturalHeight?this.JSC$10291_image_.naturalWidth/
this.JSC$10291_image_.naturalHeight:null;Y>this.JSC$10291_maxAspectRatio_?(V=this.JSC$10291_maxAspectRatio_*e,R=(V-this.JSC$10291_image_.naturalWidth)/2,this.cropped=!0):Y<1/this.JSC$10291_maxAspectRatio_?(e=this.JSC$10291_maxAspectRatio_*V,X=(e-this.JSC$10291_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)Y=V,V=e,e=Y,Y=R,R=X,X=Y;switch(this.angle_){case 90:X-=V;break;case 180:R-=V;X-=e;break;case 270:R-=
e}this.cropped||this.angle_%360!==0?(B=document.createElement("canvas"),B.width=V||1,B.height=e||1,this.JSC$10291_image_.naturalWidth&&this.JSC$10291_image_.naturalHeight&&(V=B.getContext("2d"),V.rotate(Math.PI/180*this.angle_),V.drawImage(this.JSC$10291_image_,R,X,this.JSC$10291_image_.naturalWidth,this.JSC$10291_image_.naturalHeight)),this.transformedData=_.ym(B.toDataURL(this.mime_))):this.transformedData=B}else this.transformedData=B;this.resolve_(this)}};var Zu=function(B,R){_.Un.call(this,B);this.value=R};
_.l(Zu,_.Un);
var m8=function(B,R,V,e,X,Y,t){t=t===void 0?!1:t;_.H_.call(this);var b=this;this.JSC$10296_url_=B;this.channelId_=R;this.maxFileSizeMb_=V;this.JSC$10296_maxAspectRatio_=e;this.dropZoneEl_=X;this.rejectInvalidAspectRatio_=t;this.selectButtonEl_=Y;this.JSC$10296_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new JG(this.dropZoneEl_);this.selectOverlay_=new jE(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10296_image_=this.transfer_=null;this.handler_=new _.oL(this);_.t4(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(Y,"click",function(){b.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.l(m8,_.H_);m8.prototype.disposeInternal=function(){for(var B=this.selectButtonEl_.nextSibling;B&&B.parentNode&&B.tagName=="INPUT";)B.parentNode.removeChild(B),B=this.selectButtonEl_.nextSibling;this.cancel();_.H_.prototype.disposeInternal.call(this)};
m8.prototype.uploadPromise=function(){if(this.JSC$10296_image_==null)return null;this.uploadPromise_||zi4(this);return this.uploadPromise_};
m8.prototype.cancel=function(){a25(this);this.JSC$10296_image_=null};
var a25=function(B){B.transfer_&&B.transfer_.cancel();B.transfer_=null;B.uploadPromise_=null;B.resolve_=null;B.JSC$10296_reject_=null},zi4=function(B){a25(B);
B.transfer_=_.efh(B.JSC$10296_url_,{"X-YouTube-ChannelId":B.channelId_},B.JSC$10296_image_);B.handler_.listenOnce(B.transfer_,"l",B.JSC$10298_onUploadComplete_);B.handler_.listenOnce(B.transfer_,"n",B.onUploadError_);B.transfer_.run();B.uploadPromise_=new Promise(function(R,V){B.resolve_=R;B.JSC$10296_reject_=V})};
_.p=m8.prototype;_.p.onChange_=function(B){B.files.length&&(this.JSC$10296_image_=B.files[0],this.JSC$10296_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10296_image_=null,this.dispatchEvent(new Zu("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(zi4(this),(new gf(this.JSC$10296_maxAspectRatio_)).transform(this.JSC$10296_image_).then((0,_.M2)(this.onPreview_,this),(0,_.M2)(this.onPreviewError_,this))))};
_.p.onPreview_=function(B){if(B.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10296_image_=null),this.dispatchEvent(new Zu("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;B.cropped&&this.dispatchEvent(new Zu("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Zu("yt.comments.ImageUploadOverlay.CHANGE_EVENT",B.transformedData))};
_.p.onPreviewError_=function(){this.JSC$10296_image_=null;this.dispatchEvent(new Zu("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.p.onHover_=function(B){B.stopPropagation();B.preventDefault();if(B.type==="dragover")B=!0;else if(B.type==="dragleave")B=!1;else return;this.dispatchEvent(new Zu("yt.comments.ImageUploadOverlay.HOVER_EVENT",B))};
_.p.JSC$10298_onUploadComplete_=function(){var B=(0,_.G4b)(this.transfer_.getResponseText());this.resolve_(B.encryptedBlobId)};
_.p.onUploadError_=function(){this.JSC$10296_reject_();a25(this)};var dqR=function(B){B=B||{};var R={},V={};this.url=B.url||"";this.args=B.args||_.M_.clone(R);this.assets=B.assets||{};this.attrs=B.attrs||_.M_.clone(V);this.fallback=B.fallback||null;this.fallbackMessage=B.fallbackMessage||null;this.html5=!!B.html5;this.disable=B.disable||{};this.loaded=!!B.loaded;this.messages=B.messages||{}};
dqR.prototype.clone=function(){var B=new dqR,R;for(R in this)if(this.hasOwnProperty(R)){var V=this[R];B[R]=_.U4(V)=="object"?_.M_.clone(V):V}return B};var wDT,TM4,xqh,VA,vZl,KDS,I22,EZv,QDb,qb4,cpR,Apv,iFJ,sDh,FDG,rpR,gZ4,ZFR,mq5,$qJ,CGG,PG_,nZa,uka,OF4,oEh,BYT,R$4,VjR,QMq,e$_,XPh,pPv,YHT,h$b,tjJ,WzG,bj4,JdG,joh,UG4,NY5,GxR,ydG,SHT,Hjh,Mj2,kxa,DGb,fbo,lbb,z$b,abb,dGR,wPS,TYh,$i,xGv,LzT,vEa,Kz4,IbR,EE2,Qol,qHS,cd_,AdJ,ij4,soG,Fz4,rd4,gEo,Zja,mG2,$GS,Ii_,C$o,P$4,nEo,uwl,Ojh,ocJ,BtT,Rnh,V5a,enh,Xuv,puv,Y_4,hnJ,t5T,WV4,bLb,JUl,j$_,Uaa,Ntl,GYS,yUG,S_2,HLo;wDT=["account/accounts_list"];TM4=["acknowledge_channel_tou_strike"];xqh=["notification/add_upcoming_event_reminder"];
_.LD2=["att/get"];VA=["browse","music/browse","unplugged/browse"];vZl=["channel/claim_legacy_youtube_channel"];KDS=["history/clear_search_history"];I22=["history/clear_watch_history"];EZv=["comment/perform_comment_action"];QDb=["comment/get_comment_replies"];qb4=["ypc/commerce_action"];cpR=["backstage/create_post"];Apv=["live/create_broadcast"];iFJ=["channel/create_channel"];sDh=["comment/create_comment_reply"];FDG=["comment/create_comment"];rpR=["live_chat/create_poll"];gZ4=["playlist/create"];
ZFR=["decorate_message"];mq5=["live_chat/delete_message"];$qJ=["playlist/delete"];CGG=["video/delete"];PG_=["like/dislike"];nZa=["dismissal/dismiss"];uka=["flag/flag"];OF4=["flow"];oEh=["account/account_menu"];BYT=["playlist/get_add_to_playlist"];R$4=["get_answer"];VjR=["channel/get_channel_creation_form"];QMq=["offline/get_download_action"];e$_=["kids/get_kids_blocklist_picker"];XPh=["live_chat/get_item_context_menu"];pPv=["live_chat/get_live_chat_message_buy_flow"];YHT=["live_chat/get_live_chat_replay"];
h$b=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];tjJ=["live_chat/get_live_chat_super_sticker_buy_flow"];WzG=["notification/get_notification_menu"];bj4=["playlist/get_settings_editor"];JdG=["backstage/get_post_video_preview"];joh=["account/get_profile_card"];UG4=["share/get_share_panel"];NY5=["share/get_sharing_provider_data"];GxR=["get_survey"];ydG=["notification/get_unseen_count"];SHT=["get_user_mention_suggestions"];Hjh=["get_watch"];Mj2=["guide"];
kxa=["feedback"];DGb=["kids/update_blacklist"];fbo=["like/like"];lbb=["live_chat/live_chat_action"];z$b=["live_chat/manage_user"];abb=["video_manager/metadata_update"];dGR=["live_chat/moderate"];wPS=["notification/modify_channel_preference"];TYh=["notification/opt_out"];$i=["get_panel","get_posts_by_host_panel"];xGv=["player"];LzT=["browse/edit_playlist"];vEa=["notification/record_interactions"];Kz4=["reel/reel_item_watch"];IbR=["reel/reel_watch_sequence"];EE2=["like/removelike"];Qol=["notification/remove_upcoming_event_reminder"];
qHS=["flag/get_form"];cd_=["miniapp/report_value"];AdJ=["navigation/resolve_url"];ij4=["channel/reveal_business_email"];soG=["in_video/search"];Fz4=["search","sfv/search","unplugged/search"];rd4=["live_chat/send_message"];gEo=["live_chat/send_live_chat_vote"];Zja=["account/set_setting"];mG2=["submit_caption_correction"];$GS=["subscription/subscribe"];Ii_=["get_transcript"];C$o=["resolve_location","unplugged/resolve_location"];P$4=["subscription/unsubscribe"];nEo=["backstage/update_post"];uwl=["channel_edit/update_channel_page_settings"];
Ojh=["comment/update_comment_reply"];ocJ=["comment/update_comment"];BtT=["comment/update_comments_settings"];Rnh=["creator/update_creator_channel"];V5a=["pdg/update_enablement"];enh=["updated_metadata"];Xuv=["channel_edit/validate_channel_handle"];puv=["verify_age"];Y_4=["next","unplugged/watch_next"];hnJ=["whitelist/edit"];t5T=["ypc/cancel_recurrence"];WV4=["ypc/complete_transaction"];bLb=["ypc/get_cart"];JUl=["ypc/get_fix_instrument_params"];j$_=["ypc/get_offers"];Uaa=["ypc/get_payment_instruments_params"];
Ntl=["ypc/handle_transaction"];GYS=["ypc/log_payment_server_analytics"];yUG=["ypc/pause_subscription"];S_2=["ypc/redeem_code"];HLo=["ypc/resume_subscription"];var M5T=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,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,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,
191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,
79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,
113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,
130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,
49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,
161614,262801,262800,262799,262802,262798,82039];var tE=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.mk("yt.msgs_",tE);var Ct=new _.u0("ACTION_ROUTER_TOKEN");_.PL=function(){this.autonavState_=_.k("kevlar_is_pupi_enabled")?2:wTo()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.PL.prototype.getState=function(){return this.autonavState_};
_.PL.prototype.pause=function(B){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=B):this.autonavState_==1&&(this.disabledAutonavPauseReason_=B)};
_.PL.prototype.setState=function(B,R,V){R&&(this.autoplayChangedByUser=!0);R=this.autonavState_===3||B===3;this.autonavState_!=B&&(this.autonavState_=B,B!=3&&_.TUq(B==2),B=_.k("kevlar_is_pupi_enabled")?V||R:!0,_.sd.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,B,V))};
_.PL.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.R6(_.PL);var nt=function(){this.hasRun=!1};var uW={},FHS=(uW.auto_search="LATENCY_ACTION_AUTO_SEARCH",uW.ad_to_ad="LATENCY_ACTION_AD_TO_AD",uW.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",uW.app_startup="LATENCY_ACTION_APP_STARTUP",uW.browse="LATENCY_ACTION_BROWSE",uW.cast_splash="LATENCY_ACTION_CAST_SPLASH",uW.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",uW.channels="LATENCY_ACTION_CHANNELS",uW.chips="LATENCY_ACTION_CHIPS",uW.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",uW.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
uW.editor="LATENCY_ACTION_EDITOR",uW.embed="LATENCY_ACTION_EMBED",uW.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",uW.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",uW.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",uW.explore="LATENCY_ACTION_EXPLORE",uW.favorites="LATENCY_ACTION_FAVORITES",uW.home="LATENCY_ACTION_HOME",uW.inboarding="LATENCY_ACTION_INBOARDING",uW.landing="LATENCY_ACTION_LANDING",uW.library="LATENCY_ACTION_LIBRARY",uW.live=
"LATENCY_ACTION_LIVE",uW.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",uW.management="LATENCY_ACTION_MANAGEMENT",uW.mini_app="LATENCY_ACTION_MINI_APP_PLAY",uW.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",uW.onboarding="LATENCY_ACTION_ONBOARDING",uW.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",uW.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",uW.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",uW.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
uW.prebuffer="LATENCY_ACTION_PREBUFFER",uW.prefetch="LATENCY_ACTION_PREFETCH",uW.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",uW.profile_switcher="LATENCY_ACTION_LOGIN",uW.projects="LATENCY_ACTION_PROJECTS",uW.reel_watch="LATENCY_ACTION_REEL_WATCH",uW.results="LATENCY_ACTION_RESULTS",uW.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",uW.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",uW.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",uW.review="LATENCY_ACTION_REVIEW",uW.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",uW.search_ui="LATENCY_ACTION_SEARCH_UI",uW.search_suggest="LATENCY_ACTION_SUGGEST",uW.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",uW.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",uW.seek="LATENCY_ACTION_PLAYER_SEEK",uW.settings="LATENCY_ACTION_SETTINGS",uW.store="LATENCY_ACTION_STORE",uW.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",uW.tenx="LATENCY_ACTION_TENX",uW.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",uW.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
uW.watch="LATENCY_ACTION_WATCH",uW.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",uW["watch,watch7"]="LATENCY_ACTION_WATCH",uW["watch,watch7_html5"]="LATENCY_ACTION_WATCH",uW["watch,watch7ad"]="LATENCY_ACTION_WATCH",uW["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",uW.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",uW.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",uW.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",uW.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",uW.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",uW.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",uW.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",uW.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",uW);var hMY=function(B,R){DA.call(this,1,arguments);this.timer=R};
_.l(hMY,DA);var YcK=new N6S("aft-recorded",hMY);var mES=_.R5.ytLoggingGelSequenceIdObj_||{};_.mk("ytLoggingGelSequenceIdObj_",mES);var ON=_.R5.ytLoggingLatencyUsageStats_||{};_.mk("ytLoggingLatencyUsageStats_",ON);var o8=function(){this.cleanupJob=0},P0Z=function(){o8.instance||(o8.instance=new o8);
return o8.instance};
_.p=o8.prototype;_.p.baseline=function(B,R,V){BC(this,"baseline_"+B)||_.dn("latencyActionBaselined",{clientActionNonce:B},{timestamp:R,cttAuthInfo:V})};
_.p.tick=function(B,R,V,e){BC(this,"tick_"+B+"_"+R)||_.dn("latencyActionTicked",{tickName:B,clientActionNonce:R},{timestamp:V,cttAuthInfo:e})};
_.p.info=function(B,R,V){var e=Object.keys(B).join("");BC(this,"info_"+e+"_"+R)||(B=Object.assign({},B),B.clientActionNonce=R,_.dn("latencyActionInfo",B,{cttAuthInfo:V}))};
_.p.jspbInfo=function(B,R,V){for(var e="",X=0;X<V5(B).length;X++)V5(B)[X]!==void 0&&(e=X===0?e.concat(""+X):e.concat("_"+X));BC(this,"info_"+e+"_"+R)||(_.bg(B,2,R),R={cttAuthInfo:V},V=_.k("jspb_sparse_encoded_pivot")?new Me([{}]):new Me,_.Vm(V,7,Yqv,B),$EZ("latencyActionInfo",V,R))};
_.p.span=function(B,R,V){var e=Object.keys(B).join("");BC(this,"span_"+e+"_"+R)||(B.clientActionNonce=R,_.dn("latencyActionSpan",B,{cttAuthInfo:V}))};
var BC=function(B,R){ON[R]=ON[R]||{count:0};var V=ON[R];V.count++;V.time=(0,_.P8)();B.cleanupJob||(B.cleanupJob=_.kD(_.dV,function(){var e=(0,_.P8)(),X;for(X in ON)ON[X]&&e-ON[X].time>6E4&&delete ON[X];B&&(B.cleanupJob=0)},5E3));
return V.count>5?(V.count===6&&Math.random()*1E5<1&&(V=new _.H8("CSI data exceeded logging limit with key",R.split("_")),R.indexOf("plev")>=0||_.KE(V)),!0):!1};var kYv,Da4;kYv=window;Da4=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.yD=kYv.performance||kYv.mozPerformance||kYv.msPerformance||kYv.webkitPerformance||new Da4;var pWN=!1,u8_=!1,tPq=(0,_.M2)(_.yD.clearResourceTimings||_.yD.webkitClearResourceTimings||_.yD.mozClearResourceTimings||_.yD.msClearResourceTimings||_.yD.oClearResourceTimings||_.ys,_.yD);var fFT=window;fFT.ytcsi&&(fFT.ytcsi.infoGel=_.f0,fFT.ytcsi.tick=_.zp);var kAx=function(B){DA.call(this,1,arguments);this.csn=B};
_.l(kAx,DA);var Mu5=new N6S("screen-created",kAx),qcq=[],MPS=Qk_,cwd=0,vz=new Map,Dp_=new Map,fAZ=new Map;var Q1=Symbol("vf"),ri=new WeakMap;var R8=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},ba=function(){R8.instance||(R8.instance=new R8);
return R8.instance};
_.p=R8.prototype;_.p.setClient=function(B){this.client=B};
_.p.JSC$10377_newScreen=function(){this.clear();this.csn=_.TE()};
_.p.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.p.reportShown=function(B,R,V){var e=this.JSC$10377_getTrackingParams(B),X=B.visualElement?B.visualElement:e;R=this.shownElements.has(X);var Y=this.visibleState.get(X);this.shownElements.add(X);this.visibleState.set(X,!0);B.impressionLog&&!R&&B.impressionLog();if(e||B.visualElement)if(V=lFv(this,B,V))if(X=znR(this,B),Vj(this,B)||X){e=B.visualElement?B.visualElement:_.U5(e);var t=B.interactionLoggingClientData;X||R?Vj(this,B)&4?Y||LBq(this.client,V,e,t):Vj(this,B)&1&&!R&&wWu(this.client,V,e,t):wWu(this.client,
V,e,t)}};
_.p.reportHidden=function(B,R,V){var e=this.JSC$10377_getTrackingParams(B),X=B.visualElement?B.visualElement:e;R=this.hiddenElements.has(X);var Y=this.visibleState.get(X);this.hiddenElements.add(X);this.visibleState.set(X,!1);if(Y===!1)return!0;if(!e&&!B.visualElement)return!1;V=lFv(this,B,V);if(!V||!Vj(this,B)&&znR(this,B))return!1;e=B.visualElement?B.visualElement:_.U5(e);Vj(this,B)&8?vXu(this.client,V,e):Vj(this,B)&2&&!R&&(B=this.client,R=L0({cttAuthInfo:xa(V)||void 0},V),e={csn:V,ve:e.getAsJson(),
eventType:2},V==="UNDEFINED_CSN"?IF("visualElementHidden",R,e):B?zn("visualElementHidden",e,B,R):_.dn("visualElementHidden",e,R));return!0};
_.p.JSC$10377_getTrackingParams=function(B){var R=this.getData(B),V,e;if(_.k("il_use_view_model_logging_context")&&(R==null?0:(V=R.context)==null?0:(e=V.loggingContext)==null?0:e.loggingDirectives))return R.context.loggingContext.loggingDirectives.trackingParams||"";var X,Y;if(R==null?0:(X=R.rendererContext)==null?0:(Y=X.loggingContext)==null?0:Y.loggingDirectives)return R.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(R==null?0:R.loggingDirectives)return R.loggingDirectives.trackingParams||
"";var t;return((t=B.veContainer)==null?0:t.trackingParams)?B.veContainer.trackingParams:(R==null?void 0:R.trackingParams)||""};
_.p.JSC$10377_elementShouldLogGesture=function(B,R){B=this.getData(B);return!!((Math.floor(Number(B&&B.loggingDirectives&&B.loggingDirectives.gestures&&B.loggingDirectives.gestures.types||""))||0)&R)};
_.p.JSC$10377_getNearestParentVe=function(B){var R=this.JSC$10377_getTrackingParams(B);return B.visualElement?B.visualElement:R?_.U5(R):B.parentElement?this.JSC$10377_getNearestParentVe(B.parentElement):null};
var lFv=function(B,R,V){var e=_.TE(V);return B.csn===null||e===B.csn||V?e:(B=new _.H8("VisibilityLogger called before newScreen",{caller:R.tagName,previous_csn:B.csn,current_csn:e}),_.KE(B),null)};
R8.prototype.getData=function(B){var R,V=B.data||((R=B.props)==null?void 0:R.data);if(!V&&_.k("enable_wiz_always_try_logging_info_map")){var e;V=(e=gi(B))==null?void 0:e[Q1]}else if(B.isWebComponentWrapper){var X;V=(X=gi(B))==null?void 0:X[Q1]}return V};
var znR=function(B,R){var V;return!((V=B.getData(R))==null||!V.loggingDirectives)},Vj=function(B,R){B=B.getData(R);
return Math.floor(Number(B&&B.loggingDirectives&&B.loggingDirectives.visibility&&B.loggingDirectives.visibility.types||""))||1};var e8;e8=function(){};
_.hJ=function(){e8.instance||(e8.instance=new e8);return e8.instance};
e8.prototype.setClient=function(B){_.Qh(ba().setClient).bind(ba())(B)};
_.aFG=function(){_.hJ();_.Qh(ba().JSC$10377_newScreen).bind(ba())()};
e8.prototype.clear=function(){_.Qh(ba().clear).bind(ba())()};
e8.prototype.reportShown=function(B,R,V){_.Qh(ba().reportShown).bind(ba())(B,R,V)};
e8.prototype.reportHidden=function(B,R,V){return _.Qh(ba().reportHidden).bind(ba())(B,R,V)};
var XhI=function(B,R){return _.Qh(ba().JSC$10377_getTrackingParams).bind(ba())(R)},VwN=function(B,R){return _.Qh(ba().JSC$10377_getNearestParentVe).bind(ba())(R)};var X1,daR;X1=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};
_.WK=function(){X1.instance||(X1.instance=new X1);return X1.instance};
X1.prototype.setClient=function(B){this.client=B};
daR=function(B,R,V){V=V===void 0?{}:V;_.Qh(function(){var e,X,Y,t=((e=_.D(R==null?void 0:R.commandMetadata,_.$a))==null?void 0:e.rootVe)||((X=_.D(R==null?void 0:R.commandMetadata,LH4))==null?void 0:(Y=X.screenVisualElement)==null?void 0:Y.uiType);if(t){e=_.D(R==null?void 0:R.commandMetadata,jhl);if(e==null?0:e.parentTrackingParams){var b=_.U5(e.parentTrackingParams);if(e.parentCsn)var J=e.parentCsn}else V.clickedVisualElement?b=V.clickedVisualElement:R.clickTrackingParams&&(b=_.U5(R.clickTrackingParams));
a:{e=_.D(R,_.sI);X=_.D(R,NYd);if(e){if(X=xES(e,"VIDEO")){e={token:X,videoId:e.videoId};break a}}else if(X&&(e=xES(X,"PLAYLIST"))){e={token:e,playlistId:X.playlistId};break a}e=void 0}V=Object.assign({},{cttAuthInfo:e,parentCsn:J},V);if(_.k("expectation_logging")){var G;V.loggingExpectations=((G=_.D(R==null?void 0:R.commandMetadata,LH4))==null?void 0:G.loggingExpectations)||void 0}_.py(B,t,b,V)}else _.KE(new _.H8("Error: Trying to create a new screen without a rootVeType",R))})()};
_.py=function(B,R,V,e){e=e===void 0?{}:e;_.Qh(function(){M5T.includes(R)||(_.KE(new _.H8("createClientScreen() called with a non-page VE",R)),R=83769);e.isHistoryNavigation||(B.forwardHistoryStack=[],B.backHistoryStack.push({rootVe:R,key:e.key||""}));B.graftQueue=[];B.stateChangedQueue=[];e.dataPromises?wu_(B,R,V,e):Tth(B,R,V,e)})()};
_.xah=function(B,R,V){V=V===void 0?0:V;_.Qh(function(){R.then(function(e){B.pendingScreenCreation.has(V)&&B.pendingScreenFn&&B.pendingScreenFn();var X=_.TE(V),Y=_.wT(V);if(X&&Y){var t;(e==null?0:(t=e.response)==null?0:t.trackingParams)&&K0(B.client,X,Y,_.U5(e.response.trackingParams));var b;(e==null?0:(b=e.playerResponse)==null?0:b.trackingParams)&&K0(B.client,X,Y,_.U5(e.playerResponse.trackingParams))}})})()};
X1.prototype.graftServerVe=function(B,R,V){var e=this;return _.Qh(function(){var X=_.U5(B);_.YJ(e,X,R,V);return X})()};
_.e9Z=function(B,R,V,e){return _.k("enable_client_ve_spec")&&R.clientVeSpec?(R=_.kB(R.clientVeSpec.uiType,void 0,R.clientVeSpec.elementIndex,R.clientVeSpec.clientYoutubeData,void 0,R),_.YJ(B,R,V,e)?R:null):R.trackingParams?B.graftServerVe(R.trackingParams,V,e):null};
_.tJ=function(B,R,V,e){return _.Qh(function(){if(!R.veType)return _.v5(new _.H8("Error: Trying to graft a client VE without a veType.")),null;if(R.visibilityTypes){var X=R.visibilityTypes.reduce(function(Y,t){return Y|t});
X={visibility:{types:String(X)}}}X=_.kB(R.veType,R.visualElement,R.elementIndex,R.clientYouTubeData,void 0,X);return _.YJ(B,X,V,e)?X:null})()};
_.YJ=function(B,R,V,e){e=e===void 0?0:e;return _.Qh(function(){if(B.pendingScreenCreation.has(e))return B.graftQueue.push([R,V]),!0;var X=_.TE(e),Y=V||_.wT(e);if(X&&Y){if(_.k("combine_ve_grafts")){var t=B.cachedVisualElements.get(Y.toString());t?t.push(R):(B.cachedRootVisualElements.set(Y.toString(),Y),B.cachedVisualElements.set(Y.toString(),[R]));B.attachTimeout||(B.attachTimeout=_.kD(_.dV,function(){LVa(B,X)},1200))}else K0(B.client,X,Y,R);
return!0}return!1})()};
_.hy=function(B,R,V){V=V===void 0?0:V;var e=B.recurringGrafts.get(V)||new Map;if(_.k("smarter_ve_dedupping"))for(var X=Array.from(e.keys()),Y=0;Y<X.length;Y++){var t=void 0,b=void 0;var J=R;var G=X[Y];G.isClientVe()&&J.isClientVe()?(t=J.getAsJson(),b=G.getAsJson(),J=t.veType!==b.veType||t.elementIndex!==b.elementIndex||t.dataElement!==b.dataElement||J.getLoggingDirectives()!==G.getLoggingDirectives()?!1:!0):J=G.veData.trackingParams!==void 0&&J.veData.trackingParams!==void 0?((b=J.veData)==null?void 0:
b.trackingParams)===((t=G.veData)==null?void 0:t.trackingParams):!1;if(J)return}else if(e.has(R))return;e.set(R,void 0);B.recurringGrafts.set(V,e);_.TE(V)==="UNDEFINED_CSN"||B.pendingScreenCreation.has(V)||_.YJ(B,R,void 0,V)};
_.ty=function(B,R,V,e){e=_.TE(e===void 0?0:e);if(!e)return!1;IAp(B.client,e,R,V);return!0};
_.WC=function(B,R,V,e){if(!R)return!1;e=_.TE(e===void 0?0:e);if(!e)return!1;IAp(B.client,e,_.U5(R),V);return!0};
_.Es=function(B,R){var V=R.getScreenLayer&&R.getScreenLayer();if(R.visualElement)return _.ty(B,R.visualElement,void 0,V);R=XhI(_.hJ(),R);return _.WC(B,R,void 0,V)};
X1.prototype.clickCommand=function(B,R,V){return _.WC(this,B.clickTrackingParams,R,V===void 0?0:V)};
X1.prototype.stateChanged=function(B,R,V){this.visualElementStateChanged(_.U5(B),R,V===void 0?0:V)};
X1.prototype.visualElementStateChanged=function(B,R,V){V=V===void 0?0:V;V===0&&this.pendingScreenCreation.has(V)?this.stateChangedQueue.push([B,R]):this.logStateChanged(B,R,V)};
X1.prototype.logStateChanged=function(B,R,V){V=V===void 0?0:V;var e=_.TE(V);B=B||_.wT(V);return e&&B?(EXp(this.client,e,B,R),!0):!1};
var wu_=function(B,R,V,e){e=e===void 0?{}:e;B.pendingScreenCreation.add(e.layer||0);B.pendingScreenFn=function(){Tth(B,R,V,e);var t=_.wT(e.layer);if(t){for(var b=_.h(B.graftQueue),J=b.next();!J.done;J=b.next())J=J.value,_.YJ(B,J[0],J[1]||t,e.layer);t=_.h(B.stateChangedQueue);for(b=t.next();!b.done;b=t.next())b=b.value,B.logStateChanged(b[0],b[1])}};
V||_.TE(e.layer)||B.pendingScreenFn();if(e.dataPromises)for(var X=_.h(e.dataPromises),Y=X.next();!Y.done;Y=X.next())_.xah(B,Y.value,e.layer);else _.Tn(Error("wf"))},Tth=function(B,R,V,e){e=e===void 0?{}:e;
var X=void 0;e.layer||(e.layer=0);X=e.parentLayer!==void 0?e.parentLayer:e.layer;var Y=_.TE(X);X=_.wT(X);var t=V||X,b;t&&(e.parentCsn!==void 0?b={clientScreenNonce:e.parentCsn,visualElement:t}:Y&&Y!=="UNDEFINED_CSN"&&(b={clientScreenNonce:Y,visualElement:t}));var J,G=_.vE("EVENT_ID");Y==="UNDEFINED_CSN"&&G&&(J={servletData:{serializedServletEventId:G}});_.k("combine_ve_grafts")&&Y&&LVa(B,Y);_.k("no_client_ve_attach_unless_shown")&&t&&Y&&dpu(t,Y);try{var y=_.lAZ(B.client,R,b,e.csnToClone,e.cttAuthInfo,
J,e.implicitGestureType,void 0,e.loggingExpectations)}catch(f){_.Iq(f,{rootVeType:R,rootVe:X,parentVisualElement:V,currentCsn:Y,parentEl:b,csnToClone:e.csnToClone});_.Tn(f);return}_.Kto(y,R,e.layer,e.cttAuthInfo);Y&&Y!=="UNDEFINED_CSN"&&X&&!LtS(Y)&&vXu(B.client,Y,X,!0);B.backHistoryStack[B.backHistoryStack.length-1]&&!B.backHistoryStack[B.backHistoryStack.length-1].csn&&(B.backHistoryStack[B.backHistoryStack.length-1].csn=y||"");_.f0({clientScreenNonce:y});_.aFG();var S=_.wT(e.layer);Y&&Y!=="UNDEFINED_CSN"&&
S&&(_.k("web_mark_root_visible")||_.k("music_web_mark_root_visible"))&&_.qd(y,S);B.pendingScreenCreation.delete(e.layer||0);B.pendingScreenFn=void 0;var M;(M=B.recurringGrafts.get(e.layer))==null||M.forEach(function(f,z){f?_.YJ(B,z,f,e.layer):S&&_.YJ(B,z,S,e.layer)});
vcb(B)},vcb=function(B){for(var R=0;R<B.afterNewScreenOneOffJobs.length;R++){var V=B.afterNewScreenOneOffJobs[R];
try{V()}catch(e){_.Tn(e)}}for(R=B.afterNewScreenOneOffJobs.length=0;R<B.afterNewScreenRecurringJobs.length;R++){V=B.afterNewScreenRecurringJobs[R];try{V()}catch(e){_.Tn(e)}}},LVa=function(B,R){if(R===void 0)for(var V=TKS(),e=0;e<V.length;e++)V[e]!==void 0&&LVa(B,V[e]);
else B.cachedVisualElements.forEach(function(X,Y){(Y=B.cachedRootVisualElements.get(Y))&&zMd(B.client,R,Y,X)}),B.cachedVisualElements.clear(),B.cachedRootVisualElements.clear(),B.attachTimeout=void 0};var bR=function(B){B=B===void 0?{layer:0}:B;this.hasRun=!1;this.createScreenConfig=B;B={};this.kVl=(B.response=!1,B.playerResponse=!1,B)};
_.l(bR,nt);bR.prototype.validate=function(B){return!(!B.data||!B.data.response&&!B.data.playerResponse)};
bR.prototype.handle=function(B){var R=_.WK(),V=this.createScreenConfig.layer;B.data.response&&B.data.response.trackingParams&&!this.kVl.response&&(R.graftServerVe(B.data.response.trackingParams,void 0,V),this.kVl.response=!0);B.data.playerResponse&&B.data.playerResponse.trackingParams&&!this.kVl.playerResponse&&(R.graftServerVe(B.data.playerResponse.trackingParams,void 0,V),this.kVl.playerResponse=!0)};var Jy=function(){this.qr=_.A3();this.ce=[];this.eEL=0};
Jy.prototype.processChunk=function(B){if(B){for(var R=_.h(this.ce),V=R.next();!V.done;V=R.next())V=V.value,V.validate(B)&&(V.handle(B),V.hasRun=!0);_.zp("np"+this.eEL);this.eEL++}};var rw5,ZI,my,skS=0,FBq=function(B,R,V,e,X,Y){var t=my;this.name=B;this.attributes=R;this.startTime=V;this.id=e;this.sessionId=X;this.traceId=Y;this.parent=t};
FBq.prototype.attr=function(B,R){this.attributes[B]=R};
FBq.prototype.close=function(B){if(this!==my)throw Error("xf");var R=my;B&&(R.status=B);R.endTime=performance.now();B=_.h(ZI.spanProcessors);for(var V=B.next();!V.done;V=B.next()){var e=void 0,X=void 0;(X=(e=V.value).onSpanEnd)==null||X.call(e,R)}my=R==null?void 0:R.parent};
FBq.prototype[Symbol.dispose]=function(){this.close()};var WeK,Ecl;_.eR=function(B,R,V,e,X,Y,t){t=t===void 0?[]:t;this.buildCommandPayload=B;this.navigate=R;this.handleServiceRequest=V;this.sendAction=e;this.JSC$10418_screenManager=X;this.commandResolverMap=Y;this.autoLogResolverAllowlist=t;this.pendingCommands=new Set;if(ZgN("command")){var b=this.resolveCommand;this.resolveCommand=function(J,G){var y=gXq("command",{command:J});return $po(y,b.bind(this,J,G),null)}}};
WeK=function(B,R,V){var e=Pmq,X=nfo,Y=_.WK(),t=KVv;V=V===void 0?[]:V;_.eR.instance=new _.eR(B,R,e,X,Y,t,V)};
Ecl=function(B,R,V){if(!B.commandResolverMap)return!1;var e=uCI(R,B.commandResolverMap);return e?((B.autoLogResolverAllowlist.some(function(X){return!!_.D(R,X)})||(V==null?0:V.forceClickLogging))&&IFo(B,R,V),e instanceof Promise?e.then(function(X){X.resolve(R,V)}):e.resolve(R,V),!0):!1};
_.eR.prototype.resolveCommand=function(B,R){var V=this,e=Q$5(B);if(Ecl(this,B,R))return!0;if(e)return q_5(this,B,R);if(!this.buildCommandPayload)return CCN(B,"Unhandled command by buildCommandPayload"),!1;var X=this.buildCommandPayload(B,R);if(R==null?0:R.commandController)X.commandController=R.commandController;if(X.type===0){if(!this.navigate)return PCd(B,"navigate"),!1;if(!cUG(X.command))return CCN(B,"Page requests need to specify a url"),!1;_.k("logging_avoid_blocking_during_navigation")&&_.pKx().transition("application_navigating");
B=this.navigate(X)||[];O$T(B).then(function(){V.pendingCommands.delete(X.command)});
return!0}if(X.type===1){if(!this.handleServiceRequest)return PCd(B,"handleServiceRequest"),!1;(R==null?0:R.forceClickLogging)&&IFo(this,X.command,R);B=this.handleServiceRequest(X);O$T(B).then(function(){V.pendingCommands.delete(X.command)});
return!0}if(X.type===2){if(!this.sendAction)return PCd(B,"sendAction"),!1;IFo(this,X.command,R);this.sendAction(X);return!0}return!1};
var IFo=function(B,R,V){if((V==null||!V.disableClickTracking)&&B.JSC$10418_screenManager)if(R.clickTrackingParams&&_.k("log_click_with_layer_from_element_in_command_handler")){var e;V=V==null?void 0:(e=V.form)==null?void 0:e.element;B.JSC$10418_screenManager.clickCommand(R,null,V&&V.getScreenLayer&&V.getScreenLayer())}else R.clickTrackingParams?B.JSC$10418_screenManager.clickCommand(R):!_.k("disable_clicked_visual_element_in_command_handler")&&(V==null?0:V.clickedVisualElement)&&_.ty(B.JSC$10418_screenManager,
V.clickedVisualElement)},Q$5=function(B){var R=!!_.D(B,_.p0),V;
B=((V=_.D(B,_.hE))==null?void 0:V.signal)==="CLIENT_SIGNAL";return R||B},q_5=function(B,R,V){var e=_.D(R,_.p0);
if(e)var X=(e==null?void 0:e.commands)||[];else{var Y;if(((Y=_.D(R,_.hE))==null?void 0:Y.signal)==="CLIENT_SIGNAL"){var t;X=((t=_.D(R,_.hE))==null?void 0:t.actions)||[]}}if(X){R=_.h(X);for(X=R.next();!X.done;X=R.next()){X=X.value;try{B.resolveCommand(X,V)}catch(b){b instanceof Error&&_.Tn(b)}}return!0}CCN(R,"Could not handle the meta command");return!1},cUG=function(B){var R;
return!((R=_.D(B==null?void 0:B.commandMetadata,_.$a))==null||!R.url)};var j8=function(){nt.apply(this,arguments)};
_.l(j8,nt);j8.prototype.validate=function(B){var R,V;return!this.hasRun&&!!((R=B.data.response)==null?0:(V=R.onResponseReceivedEndpoints)==null?0:V.length)};
j8.prototype.handle=function(B){var R=_.eR.instance;B=_.h(B.data.response.onResponseReceivedEndpoints);for(var V=B.next();!V.done;V=B.next())R.resolveCommand(V.value)};var AU5,iL_,s$5;
AU5=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=_.XT();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.Up=function(){iL_||(iL_=new AU5);return iL_};
s$5=function(){var B=_.Up();B.miniplayerButtonActivation=!1;B.userActivation=!1;B.playlistWatchPageActivation=!1;B.productDetailsPageActivation=!1;B.miniAppPageActivation=!1;B.playablesDestPageActivation=!1;B.lockupActivation=!1;B.showMiniplayerCommandActivation=!1;B.playlistSuggestionsShelfActivation=!1;B.mediaSessionPipActivation=!1;B.watchPipActivation=!1;B.watchWhileActivation=!1;B.shortsPipActivation=!1};
_.FVJ=function(){var B=_.Up(),R=B.mediaSessionPipActivation,V=B.watchPipActivation,e=B.watchWhileActivation,X=B.playlistWatchPageActivation,Y=B.lockupActivation,t=B.showMiniplayerCommandActivation,b=B.navigatingAwayFromWatchDeletedVideo,J=B.shortsPipActivation,G=B.playlistSuggestionsShelfActivation,y=B.productDetailsPageActivation,S=B.miniAppPageActivation,M=B.playablesDestPageActivation;return!B.miniplayerButtonActivation&&!X&&!G&&!y&&!S&&!M&&!Y&&!t&&!R&&!V&&!e&&!J||b};var ECo;_.Ny=C0("FEwhat_to_watch","/",3854);_.QXI=C0("FEdownloads","/feed/downloads",42352);ECo=C0("FEmusic_offline","browse/FEmusic_offline",42352);var r6=function(B,R){R=R===void 0?[]:R;var V=V===void 0?[]:V;R=NXp.apply(null,[GoN.apply(null,_.MI(R))].concat(_.MI(V)));this.store=MYN(B,void 0,R)};
r6.prototype.getState=function(){return this.store.getState()};
r6.prototype.dispatch=function(B){return this.store.dispatch(B)};
r6.prototype.subscribe=function(B){return this.store.subscribe(B)};
r6.prototype.replaceReducer=function(B){return this.store.replaceReducer(B)};
r6.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Ge=function(B,R,V){var e=R(B.getState());return B.subscribe(function(){var X=R(B.getState());if(X!==e){var Y=e;e=X;V(X,Y)}})};var FGo;_.SX=function(B,R,V){return _.or({type:"REPLACE_ENTITY",payload:{entityPayload:V,entityType:B,key:R}})};
FGo=function(B){return _.or({type:"REPLACE_ENTITIES",payload:B})};
_.v7=function(B,R,V,e){return _.or({type:"UPDATE_ENTITY",payload:{entityPayload:V,entityType:B,key:R,mergeOption:e}})};var b8_=function(B){var R=this;B=B===void 0?[]:B;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;B.forEach(function(V){R.append(V)})};
_.p=b8_.prototype;_.p.getLength=function(){return this.totalLength};
_.p.append=function(B){var R=this.arrays.length===0?!1:(R=this.arrays[this.arrays.length-1])&&R.buffer===B.buffer&&R.byteOffset+R.length===B.byteOffset;R?(R=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(R.buffer,R.byteOffset,R.length+B.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(B);this.totalLength+=B.length};
_.p.split=function(B){for(var R=new b8_,V=new b8_,e=_.h(this.arrays),X=e.next();!X.done;X=e.next())X=X.value,B>=X.length?(R.append(X),B-=X.length):B?(R.append(new Uint8Array(X.buffer,X.byteOffset,B)),V.append(new Uint8Array(X.buffer,X.byteOffset+B,X.length-B)),B=0):V.append(X);return{headView:R,tailView:V}};
_.p.extract=function(B,R){return this.split(B).tailView.split(R).headView};
_.p.isFocused=function(B){return B>=this.arrayPos&&B<this.arrayPos+this.arrays[this.arrayIdx].length};
_.p.focus=function(B){if(!this.isFocused(B))for(B<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=B&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var rU_=function(B,R){B.focus(R);return B.arrays[B.arrayIdx][R-B.arrayPos]};(function(){var B=function(e){return new Uint8Array(e)},R=function(e){for(var X=new Uint8Array(e.length),Y=0;Y<e.length;Y++)X[Y]=e[Y];
return X},V=new Uint8Array([1]);
return V.length===1&&V[0]===1?B:R})();
var X9q=Array(1024),ePY=window.TextDecoder?new TextDecoder:void 0,Yjd=window.TextEncoder?new TextEncoder:void 0;var WGA=function(B){this.arrayView=B;this.pos=0;this.pendingTagAndType=-1},Bk=function(B){var R=rU_(B.arrayView,B.pos);
++B.pos;if(R<128)return R;for(var V=R&127,e=1;R>=128;)R=rU_(B.arrayView,B.pos),++B.pos,e*=128,V+=(R&127)*e;return V},Jf_=function(B,R){var V=B.pendingTagAndType;
for(B.pendingTagAndType=-1;B.pos+1<=B.arrayView.totalLength;){V<0&&(V=Bk(B));var e=V>>3,X=V&7;if(e===R)return!0;if(e>R){B.pendingTagAndType=V;break}V=-1;switch(X){case 0:Bk(B);break;case 1:B.pos+=8;break;case 2:e=Bk(B);B.pos+=e;break;case 5:B.pos+=4}}return!1};var U7I=function(){this.pos=0;this.submessagePosStack=[];this.buf=tHp(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},eu=function(B,R){R=B.pos+R;
if(!(B.buf.length>=R)){for(var V=B.buf.length*2;V<R;)V*=2;B.buf=tHp(V,B.buf.subarray(0,B.pos));B.view=new DataView(B.buf.buffer,B.buf.byteOffset,B.buf.byteLength)}},VW=function(B,R){if(R>268435455){eu(B,4);
for(var V=R&1073741823,e=0;e<4;e++)B.view.setUint8(B.pos,V&127|128),V>>=7,B.pos+=1;R=Math.floor(R/268435456)}for(eu(B,4);R>127;)B.view.setUint8(B.pos,R&127|128),R>>=7,B.pos+=1;B.view.setUint8(B.pos,R);B.pos+=1};for(var Npu={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},jcA={},gcR=_.h(Object.entries(Npu)),ZL4=gcR.next();!ZL4.done;ZL4=gcR.next()){var maJ=_.h(ZL4.value),$a4=maJ.next().value,CTo=maJ.next().value,PT_=$a4,ncv=CTo;ncv&&(jcA[ncv]=PT_)};var yfZ=function(B,R){B=B===void 0?{}:B;switch(R.type){case "ENTITY_LOADED":return R.payload.reduce(function(e,X){var Y,t=(Y=X.options)==null?void 0:Y.persistenceOption;if(t&&t!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&t!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return e;if(!X.entityKey)return _.Tn(Error("zf")),e;if(X.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!X.payload)return X=new _.H8("REPLACE entity mutation is missing a payload",{entityKey:X.entityKey}),_.Tn(X),e;var b=(0,_.M_.getAnyKey)(X.payload);
return H8x(e,b,X.entityKey,X.payload[b])}if(X.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{X=X.entityKey;try{var J=_.Rr(X).entityType;b=H8x(e,J,X);break a}catch(S){if(S instanceof Error){X=new _.H8("Failed to deserialize entity key",{entityKey:X,originalMessage:S.message});_.Tn(X);b=e;break a}throw S;}b=void 0}return b}if(X.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!X.payload)return X=new _.H8("UPDATE entity mutation is missing a payload",{entityKey:X.entityKey}),_.Tn(X),e;b=(0,_.M_.getAnyKey)(X.payload);
var G,y;return MHd(e,b,X.entityKey,X.payload[b],(G=X.fieldMask)==null?void 0:(y=G.mergeOptions)==null?void 0:y.repeatedFieldsMergeOption)}return e},B);
case "REPLACE_ENTITY":var V=R.payload;return H8x(B,V.entityType,V.key,V.entityPayload);case "REPLACE_ENTITIES":return Object.keys(R.payload).reduce(function(e,X){var Y=R.payload[X];return Object.keys(Y).reduce(function(t,b){return H8x(t,X,b,Y[b])},e)},B);
case "UPDATE_ENTITY":return V=R.payload,MHd(B,V.entityType,V.key,V.entityPayload,V.mergeOption);default:return B}};var ksY;var u22=!1,yj,S8,HC,My,kJ,OLR=function(B){_.Hn.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!u22){var R,V=new Uint8Array(256),e=new Uint8Array(256);var X=1;for(R=0;R<256;R++)V[X]=R,e[R]=X,X^=X<<1^(X>>7&&283);yj=new Uint8Array(256);S8=YG(256);HC=YG(256);My=YG(256);kJ=YG(256);for(var Y=0;Y<256;Y++){X=Y?e[255^V[Y]]:0;X^=X<<1^X<<2^X<<3^X<<4;X=X&255^X>>>8^99;yj[Y]=X;R=X<<1^(X>>7&&283);var t=R^X;S8[Y]=R<<24|X<<16|X<<8|t;HC[Y]=t<<24|S8[Y]>>>8;My[Y]=X<<24|HC[Y]>>>
8;kJ[Y]=X<<24|My[Y]>>>8}u22=!0}X=YG(44);for(V=0;V<4;V++)X[V]=B[4*V]<<24|B[4*V+1]<<16|B[4*V+2]<<8|B[4*V+3];for(e=1;V<44;V++)B=X[V-1],V%4||(B=(yj[B>>16&255]^e)<<24|yj[B>>8&255]<<16|yj[B&255]<<8|yj[B>>>24],e=e<<1^(e>>7&&283)),X[V]=X[V-4]^B;this.key=X};
_.l(OLR,_.Hn);
OLR.prototype.encrypt=function(B){var R=B.length;B=new Uint8Array(B.buffer.slice(B.byteOffset,B.byteOffset+R));for(var V=this.cipherBlock,e=0;e<R&&this.blockOffset<16;)B[e++]^=V[this.blockOffset++];for(var X=R-(R-e)%16;e<X;)o2v(this),B[e++]^=V[0],B[e++]^=V[1],B[e++]^=V[2],B[e++]^=V[3],B[e++]^=V[4],B[e++]^=V[5],B[e++]^=V[6],B[e++]^=V[7],B[e++]^=V[8],B[e++]^=V[9],B[e++]^=V[10],B[e++]^=V[11],B[e++]^=V[12],B[e++]^=V[13],B[e++]^=V[14],B[e++]^=V[15];if(e<R)for(o2v(this),this.blockOffset=0;e<R;)B[e++]^=
V[this.blockOffset++];return B};
var B0v=function(B,R){for(var V=0;V<4;V++)B.counter[V]=R[V*4]<<24|R[V*4+1]<<16|R[V*4+2]<<8|R[V*4+3];B.blockOffset=16},o2v=function(B){for(var R=B.key,V=B.counter[0]^R[0],e=B.counter[1]^R[1],X=B.counter[2]^R[2],Y=B.counter[3]^R[3],t=3;t>=0&&!(B.counter[t]=-~B.counter[t]);t--);
for(var b,J,G=4;G<40;)t=S8[V>>>24]^HC[e>>16&255]^My[X>>8&255]^kJ[Y&255]^R[G++],b=S8[e>>>24]^HC[X>>16&255]^My[Y>>8&255]^kJ[V&255]^R[G++],J=S8[X>>>24]^HC[Y>>16&255]^My[V>>8&255]^kJ[e&255]^R[G++],Y=S8[Y>>>24]^HC[V>>16&255]^My[e>>8&255]^kJ[X&255]^R[G++],V=t,e=b,X=J;B=B.cipherBlock;t=R[40];B[0]=yj[V>>>24]^t>>>24;B[1]=yj[e>>16&255]^t>>16&255;B[2]=yj[X>>8&255]^t>>8&255;B[3]=yj[Y&255]^t&255;t=R[41];B[4]=yj[e>>>24]^t>>>24;B[5]=yj[X>>16&255]^t>>16&255;B[6]=yj[Y>>8&255]^t>>8&255;B[7]=yj[V&255]^t&255;t=R[42];
B[8]=yj[X>>>24]^t>>>24;B[9]=yj[Y>>16&255]^t>>16&255;B[10]=yj[V>>8&255]^t>>8&255;B[11]=yj[e&255]^t&255;t=R[43];B[12]=yj[Y>>>24]^t>>>24;B[13]=yj[V>>16&255]^t>>16&255;B[14]=yj[e>>8&255]^t>>8&255;B[15]=yj[X&255]^t&255};var Rs_=!1;(function(){var B=function(e){return new Uint8Array(e)},R=function(e){for(var X=new Uint8Array(e.length),Y=0;Y<e.length;Y++)X[Y]=e[Y];
return X},V=new Uint8Array([1]);
return V.length===1&&V[0]===1?B:R})();
var D0;var Vfh=function(B){this.JSC$10485_aesKey=B};
Vfh.prototype.encrypt=function(B,R){var V=this,e,X;return _.W(function(Y){if(Y.nextAddress==1){a:{if(!Rs_&&!gS){if(D0){var t=D0;break a}D0=(t=window.crypto)==null?void 0:t.subtle;var b,J,G;if(((b=D0)==null?0:b.importKey)&&((J=D0)==null?0:J.sign)&&((G=D0)==null?0:G.encrypt)){t=D0;break a}D0=void 0}t=void 0}e=t;if(!e)return Y.return(esv(V,B,R));_.en(Y,3);return _.U(Y,XOG(V,B,R,e),5)}if(Y.nextAddress!=3)return Y.return(Y.yieldResult);X=_.WR(Y);_.KE(X);Rs_=!0;return Y.return(esv(V,B,R))})};
var XOG=function(B,R,V,e){var X,Y;return _.W(function(t){switch(t.nextAddress){case 1:if(B.cryptoKey){t.jumpTo(2);break}return _.U(t,e.importKey("raw",B.JSC$10485_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:B.cryptoKey=t.yieldResult;case 2:return X={name:"AES-CTR",counter:V,length:128},_.U(t,e.encrypt(X,B.cryptoKey,R),4);case 4:return Y=t.yieldResult,t.return(new Uint8Array(Y))}})},esv=function(B,R,V){B.encryptorPolyfill||(B.encryptorPolyfill=new OLR(B.JSC$10485_aesKey));
B0v(B.encryptorPolyfill,V);return B.encryptorPolyfill.encrypt(R)},pOT=function(B){this.JSC$10489_aesKey=B};
pOT.prototype.encrypt=function(B,R){this.encryptor||(this.encryptor=new OLR(this.JSC$10489_aesKey));B0v(this.encryptor,R);return this.encryptor.encrypt(B)};var YW4={},lrd=Cq("yt-idb-pref-storage",{objectStores:(YW4.prefs={addedAtVersion:1},YW4),shared:!1,upgrade:function(B,R){R(1)&&E7(Iu(B,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.fy=function(B){this.token=B};
_.fy.getInstance=function(){return _.W(function(B){return B.return(new Promise(function(R){_.$z().then(function(V){V?(_.fy.instance||(_.fy.instance=new _.fy(V)),R(_.fy.instance)):R(void 0)})}))})};
_.fy.prototype.get=function(B){var R=this,V,e,X;return _.W(function(Y){if(Y.nextAddress==1)return _.U(Y,zPq(R.token),2);if(Y.nextAddress!=3)return V=Y.yieldResult,_.U(Y,V.get("prefs",B),3);e=Y.yieldResult;if(!e)return Y.return();X=(0,_.P8)();return e.expirationTimestampMs<=X?Y.return():Y.return(e.value)})};
_.fy.prototype.set=function(B,R,V){V=V===void 0?31536E3:V;var e=this,X,Y,t;return _.W(function(b){if(b.nextAddress==1)return X=(0,_.P8)(),Y={key:B,value:R,expirationTimestampMs:X+V*1E3},_.U(b,zPq(e.token),2);t=b.yieldResult;return _.U(b,t.put("prefs",Y),0)})};
_.fy.prototype.remove=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,zPq(R.token),2);V=e.yieldResult;return _.U(e,V.delete("prefs",B),0)})};var lR={},hso=(lR.INVALID_ENCODER_VERSION="Invalid encoder version",lR.KEY_CREATION_FAILED="Failed to create encoder key",lR.UNKNOWN_DECODE_ERROR="Failed to decode PES data",lR.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",lR.WRONG_DATA_TYPE="Encoder cannot process the data type",lR),hs=function(B,R){R=R===void 0?{}:R;_.H8.call(this,hso[B],Object.assign({},{name:"PESEncoderError",type:B},R));this.type=B;this.level="WARNING";Object.setPrototypeOf(this,hs.prototype)};
_.l(hs,_.H8);var tfT=function(){},Wmb=function(B,R,V){try{return B.encodeImpl(R,V)}catch(e){Tp_(e,d7o)}},bIJ=function(B,R,V){var e;
return _.W(function(X){if(X.nextAddress==1)return _.en(X,2),_.U(X,B.decodeAsyncImpl(R,V),4);if(X.nextAddress!=2)return X.return(X.yieldResult);e=_.WR(X);Tp_(e,w9u);_.b3(X)})};
tfT.prototype.decodeAsyncImpl=function(B,R){return Promise.resolve(this.decodeImpl(B,R))};var ze=function(B,R){this.aesEncryptor=B;this.aesEncryptorAsync=R};
_.l(ze,tfT);ze.prototype.encodeImpl=function(B,R){R=x7Z(R);B=(new TextEncoder).encode(JSON.stringify(B));return this.aesEncryptor.encrypt(B,R)};
ze.prototype.decodeImpl=function(B,R){if(!(B instanceof Uint8Array))throw aro(1);var V=new TextDecoder;R=x7Z(R);B=this.aesEncryptor.encrypt(B,R);return JSON.parse(V.decode(B))};
ze.prototype.decodeAsyncImpl=function(B,R){var V=this,e,X,Y;return _.W(function(t){if(t.nextAddress==1){if(!(B instanceof Uint8Array))throw aro(1);e=new TextDecoder;X=x7Z(R);return _.U(t,V.aesEncryptorAsync.encrypt(B,X),2)}Y=t.yieldResult;return t.return(JSON.parse(e.decode(Y)))})};var LGK={accountLinkStatusEntity:iT_,booleanEntity:y8o,buttonEntity:Dyh,captionTrack:Npv,channelHandle:eoS,chipEntity:V8b,commerceAcquisitionClientPayloadEntity:myl,commerceCartListEntity:$yb,contextNoteFeedEntityPayload:bY4,continuationTokenEntity:u8G,downloadQualityPickerEntity:ia4,downloadsPageRefreshTokenEntity:FHo,downloadsPageViewConfigurationEntity:YcS,downloadStatusEntity:sjb,dismissState:eVJ,sfvAudioItemCurrentlyPlayingEntity:$7T,emojiFountainDataEntity:HyJ,emojiCustomizationSetEntity:Spv,
fakeChannel:MI_,fakePlaylist:kH4,fakePlaylistEntryCollection:Dua,fakeVideo:lGo,fakeVideoDescription:zEG,featuredProductsEntity:aAo,flowStateEntity:QB4,iconBadgeEntity:CRh,interstitialInteractionStateEntity:pTa,likeButtonAnimationEntity:hMT,liveChatPollStateEntity:UEo,liveViewerLeaderboardChatEntryPointStateEntity:TpG,liveViewerLeaderboardPointsEntity:x7R,liveReactionsDataEntity:M8o,logoEntity:Vp4,macroMarkerEntity:tPJ,mainDownloadsLibraryEntity:rHh,mainDownloadsListEntity:g$b,mainPlaylistDownloadStateEntity:mEo,
mainPlaylistEntity:OaR,mainPlaylistVideoEntity:oXa,mainVideoDownloadStateEntity:$ER,mainVideoEntity:eM4,markersEngagementPanelSyncEntity:WBv,markersVisibilityOverrideEntity:bgT,musicAlbumReleaseDetail:qcJ,musicAlbumReleaseDownloadMetadataEntity:vXv,musicAlbumRelease:QkG,musicAlbumReleaseUserDetail:cw2,musicArtistDetail:igR,musicArtist:AwJ,musicArtistUserDetail:sko,musicDownloadsLibraryEntity:KBl,musicLibraryEdit:FBJ,musicLibraryStatusEntity:rw4,musicPlaylist:gXJ,musicPlaylistDownloadMetadataEntity:IAa,
musicShare:mpv,musicTrackDetail:CCl,musicTrackDownloadMetadataEntity:EXa,musicTrack:$p_,musicTrackUserDetail:PC5,offlineOrchestrationActionWrapperEntity:GsJ,offlineVideoPolicy:yfR,offlineVideoStreams:SjJ,offlineabilityEntity:C0_,orchestrationWebSamplingEntity:P0R,pageHeaderEntity:by2,pdpStateEntity:PRG,pinnedProductEntity:dpv,playbackData:H84,playerStateEntity:JwT,quantityIncrementerEntity:nJh,refresh:MH2,saveToPlaylistListEntity:Uk4,selectedChipIndexEntityPayload:jka,settingEntity:cGl,stringEntity:Snv,
suggestedFeedbackChipStateEntity:Up2,transfer:ksT,trendingOfferEntity:wWv,videoDownloadContextEntity:D7T,videoOverviewAsyncDataEntity:kko,videoPlaybackPositionEntity:zVT,votingEntity:UyG,ytMainChannelEntity:XWv,youchatPendingResponseEntity:NO5,ytMainDownloadedVideoEntity:n$l,ytMainVideoEntity:pWl};var JQS,U3R,ju,AfI,i8q,yQS,HIb,SWa,GBG;JQS=function(B,R){this.JSC$10508_wrapped=B;this.JSC$10508_encoderRegistry=R;this.changedKeys={}};
U3R=function(B,R){a:{B=jfo(B.JSC$10508_encoderRegistry,R.version);try{var V=B.decodeImpl(R.data,R.key);break a}catch(e){Tp_(e,w9u)}V=void 0}return V};
_.N0b=function(B,R,V){return B.JSC$10508_wrapped.objectStore("EntityStore").get(R).then(function(e){if(e){if(V&&e.entityType!==V)throw Error("Af");return U3R(B,e)}})};
ju=function(B,R,V){return V?(V=V.map(function(e){return _.N0b(B,e,R)}),IC.all(V)):B.JSC$10508_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(R)).then(function(e){return e.map(function(X){return U3R(B,X)})})};
_.cf5=function(B,R,V){var e=Gsq(R),X=jfo(B.JSC$10508_encoderRegistry,1),Y=Object.assign({},R);return B.JSC$10508_wrapped.objectStore("EntityStore").get(e).then(function(t){if(t){if(t.entityType!==V)throw Error("Af");Y.entityMetadata||(t=U3R(B,t),Y.entityMetadata=t.entityMetadata)}}).then(function(){var t={key:e,
entityType:V,data:Wmb(X,Y,e),version:1};return IC.all([B.JSC$10508_wrapped.objectStore("EntityStore").put(t),GBG(B,Y,V)])}).then(function(){yQS(B,e,V);
return e})};
AfI=function(B,R){var V=_.Rr(R).entityType;return IC.all([B.JSC$10508_wrapped.objectStore("EntityStore").delete(R),SWa(B,R)]).then(function(){yQS(B,R,V)})};
i8q=function(B,R,V,e){var X=jfo(B.JSC$10508_encoderRegistry,1);return _.N0b(B,R,e).then(function(Y){if(Y){Y=VHo(Y,V);var t={key:R,entityType:e,data:Wmb(X,Y,R),version:1};return IC.all([B.JSC$10508_wrapped.objectStore("EntityStore").put(t),GBG(B,Y,e)])}}).then(function(){yQS(B,R,e);
return R})};
yQS=function(B,R,V){var e=B.changedKeys[V];e||(e=new Set,B.changedKeys[V]=e);e.add(R)};
HIb=function(B,R,V){var e=Gsq(R);V=v6I(V);if(!V)return IC.resolve([]);V=new V(R);B=B.JSC$10508_wrapped.objectStore("EntityAssociationStore");R=[];V=_.h(V.getAssociations());for(var X=V.next();!X.done;X=V.next())R.push(B.put({parentEntityKey:e,childEntityKey:X.value}));return IC.all(R).then(function(Y){return Y.map(function(t){return t[1]})})};
SWa=function(B,R){return B.JSC$10508_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(R))};
GBG=function(B,R,V){var e=Gsq(R);return SWa(B,e).then(function(){return HIb(B,R,V)})};var MfT=function(){};
_.l(MfT,tfT);MfT.prototype.encodeImpl=function(B){return B};
MfT.prototype.decodeImpl=function(B){if(B instanceof Uint8Array)throw aro(0);return B};var E6A=function(){this.cacheMap={};this.cacheMap[0]=new MfT;if(!_.k("aes_pes_encoder_killswitch")){var B=this.cacheMap;try{var R=_.y_();var V=x7Z(R);var e=new ze(new pOT(V),new Vfh(V))}catch(X){throw B=X instanceof Error?new hs("KEY_CREATION_FAILED",{originalMessage:X.message}):new hs("KEY_CREATION_FAILED"),_.Tn(B),B;}B[1]=e}},jfo=function(B,R){R=R===void 0?0:R;
B=B.cacheMap[R];if(!B)throw R=new hs("INVALID_ENCODER_VERSION",{encoderVersion:R}),_.Tn(R),R;return B};var Wk=function(B,R){_.Hn.call(this);this.token=B;this.JSC$10522_encoderRegistry=R;this.observers=[];B=new _.R5.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.y_());B.onmessage=this.handleMessage.bind(this);this.channel=B};
_.l(Wk,_.Hn);_.Js=function(B,R,V){var e,X,Y,t;return _.W(function(b){if(b.nextAddress==1)return _.U(b,fr5(B.token),2);if(b.nextAddress!=3)return e=b.yieldResult,_.U(b,_.sB(e,["EntityStore","EntityAssociationStore"],R,function(J){X=new JQS(J,B.JSC$10522_encoderRegistry);return V(X)}),3);
Y=b.yieldResult;X&&(t=X.changedKeys,Object.keys(t).length>0&&(B.channel.postMessage(t),kBa(B,t)));return b.return(Y)})};
Wk.prototype.observe=function(B){var R=this;this.observers.push(B);return function(){var V=R.observers.indexOf(B);V>=0&&R.observers.splice(V,1)}};
var mFx=function(B){var R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,_.Js(B,{mode:"readonly",enableRetries:!0},function(e){return e.JSC$10508_wrapped.objectStore("EntityStore").getAll()}),2);
R=V.yieldResult;return V.return(Promise.all(R.filter(function(e){return!!e}).map(function(e){var X,Y;
return _.W(function(t){if(t.nextAddress==1){X=e.key;Y=e.entityType;var b=bIJ(jfo(B.JSC$10522_encoderRegistry,e.version),e.data,e.key);return _.U(t,b,2)}return t.return({key:X,entityType:Y,data:t.yieldResult})})})))})};
Wk.prototype.handleMessage=function(B){kBa(this,B.data)};
var kBa=function(B,R){B=_.h(B.observers);for(var V=B.next();!V.done;V=B.next())V=V.value,V(R)};
Wk.prototype.disposeInternal=function(){this.channel.close()};
var KGZ;var a8,fCo,Ufd,p6N;a8={};_.D3S=(a8.mainVideoEntity="mainVideoEntityActionMetadata",a8.mainPlaylistEntity="mainPlaylistEntityActionMetadata",a8.musicTrack="musicTrackEntityActionMetadata",a8.musicPlaylist="musicPlaylistEntityActionMetadata",a8);fCo=new _.u0("DOWNLOADS_ENTITY_TYPE_MAP");Ufd=_.XF("","downloadsPageViewConfigurationEntity");p6N=_.XF("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.yG5=_.XF("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.XF("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.XF("SMART_DOWNLOADS_ENABLED","settingEntity");_.XF("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Z8K=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var O8N=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var erK={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var d3,RVI,NH4,$Px;d3=window;_.K7=d3.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.j8d=d3.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.iz;RVI=d3.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||a7;NH4=d3.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||UUG;_.lCJ=d3.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.L5b;$Px=d3.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Ix5;ck({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 Ged=V8I(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(B){return B}}}),l_d=V8I(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(B){return B}}}),YpS=new Map;var Spu=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],JyY;var zsS=function(B){return _.or({type:"SET_EPHEMERAL_ACTION",payload:B})};var aCv={ephemeralAction:null};var d3v={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var iyY={sharedUi:function(B,R){B=B===void 0?d3v:B;switch(R.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},B,{animatedThumbnailEnabled:R.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},B,{inlinePreviewEnabled:R.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},B,{currentPageType:R.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},B,{currentPageSubType:R.payload});default:return B}},
a11y:WJ({ephemeralAction:function(B,R){B=B===void 0?aCv.ephemeralAction:B;switch(R.type){case "SET_EPHEMERAL_ACTION":return R.payload;default:return B}}})};var KfN=WJ({isLeaderTab:function(B,R){B=B===void 0?!0:B;switch(R.type){case "SET_IS_LEADER_TAB":var V,e;return(e=R==null?void 0:(V=R.payload)==null?void 0:V.isLeaderTab)!=null?e:B;default:return B}}});var wO2=function(B){return _.or({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:B}})};var Ayd=WJ({isDesktopSmallWidth:function(B,R){switch(R.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return R.payload.isDesktopSmallWidth;default:return B===void 0?!1:B}},
isShortsActive:function(B,R){switch(R.type){case "SET_IS_SHORTS_ACTIVE":return R.payload.isShortsActive;default:return B===void 0?!1:B}},
isWatchWhileMode:function(B,R){switch(R.type){case "SET_IS_WATCH_WHILE_MODE":return R.payload.isWatchWhileMode;default:return B===void 0?!1:B}},
playerState:function(B,R){switch(R.type){case "SET_PLAYER_STATE":return R.payload.playerState;default:return B===void 0?-1:B}},
isFullscreen:function(B,R){switch(R.type){case "SET_IS_FULLSCREEN":return R.payload.isFullscreen;default:return B===void 0?!1:B}},
isSmallScreenSqueezeback:function(B,R){switch(R.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return R.payload.isSmallScreenSqueezeback;default:return B===void 0?!1:B}},
isShortsPipActive:function(B,R){switch(R.type){case "SET_IS_SHORTS_PIP_ACTIVE":return R.payload.isShortsPipActive;default:return B===void 0?!1:B}},
isPlaybackStarted:function(B,R){switch(R.type){case "SET_IS_PLAYBACK_STARTED":return R.payload.isPlaybackStarted;default:return B===void 0?!1:B}}});var l0p={playlistId:"",inviteLinkURL:""};var T0J={};var vJ5=WJ({continuationCommand:function(B,R){B=B===void 0?T0J:B;switch(R.type){case "SET_CONTINUATION_COMMAND":return R.payload.continuationCommand;default:return B}}});var Ff5=function(){return function(B){return function(R){var V=B(R);_.oF(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[R],!0);return V}}};var x3G,mOZ;x3G=new _.Xs;_.B7=new _.u0("WATCH_PLAYER_PROMISE_TOKEN");_.Lml=new _.Xs;_.v24=new _.u0("SHORTS_PLAYER_PROMISE_TOKEN");mOZ=new _.u0("");var ry5=function(){return function(B){return function(R){R.type==="ENTITY_LOADED"&&_.Oz().resolve(_.B7).then(function(V){var e;(e=V.dispatchReduxAction)==null||e.call(V,R)});
return B(R)}}};var a0S={currentFormId:"",commandsMap:{}};var KmS={};var I0q=WJ({additionalContext:function(B,R){switch(R.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var V;return(V=R.payload)!=null?V:"";default:return B===void 0?"":B}},
impersonatedChannelUrl:function(B,R){switch(R.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var V;return(V=R.payload)!=null?V:"";default:return B===void 0?"":B}},
selectedVideoIds:function(B,R){B=B===void 0?KmS:B;switch(R.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var V={};return Object.assign({},B,(V[R.payload]=!0,V));case "VIDEO_UNSELECTED":return R=R.payload,B=Object.assign({},B),delete B[R],B;default:return B}}});var EJN=WJ({parentClickTrackingParams:function(B,R){switch(R.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return R.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return B===void 0?"":B}}});var ICa=function(B){return _.or({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:B})};var E2J={};var Q8o=WJ({stepStates:function(B,R){B=B===void 0?E2J:B;switch(R.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var V=B,e=R.payload,X,Y,t;B={};R={selectionStates:Object.assign({},(t=(X=V[e.stepId])==null?void 0:X.selectionStates)!=null?t:{},(B[e.token]={isSelected:e.isSelected},B)),userQuery:(Y=V[e.stepId])==null?void 0:Y.userQuery};X={};return Object.assign({},V,(X[e.stepId]=R,X));case "TALK_TO_RECS_UPDATE_USER_QUERY":return X=B,Y=R.payload,t={selectionStates:Object.assign({},
(e=(V=X[Y.stepId])==null?void 0:V.selectionStates)!=null?e:{}),userQuery:{userQuery:Y.userQuery,token:Y.userQueryToken}},V={},Object.assign({},X,(V[Y.stepId]=t,V));default:return B}}});var QfS,qWJ;QfS=function(B){return _.or({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:B})};
qWJ=function(B){return _.or({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:B})};
_.xQ=function(B){return _.or({type:"SET_CURRENT_PAGE_TYPE",payload:B})};
_.cQa=function(B){return _.or({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:B})};var wCA={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"};_.AQh=function(B){return _.or({type:"SET_PLAYER_STATE",payload:{playerState:B}})};var iIR=[],sf5={width:0,height:0};var qp5=WJ({isTheaterMode:function(B,R){B=B===void 0?_.k("kevlar_disable_theater_mode_persistence")?!1:_.KQ("START_IN_THEATER_MODE"):B;switch(R.type){case "SET_IS_THEATER_MODE":return R.payload.isTheaterMode;default:return B}},
isWatchActive:function(B,R){switch(R.type){case "SET_IS_WATCH_ACTIVE":return R.payload.isWatchActive;default:return B===void 0?!1:B}},
isLearningJourneyActive:function(B,R){switch(R.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return R.payload.isLearningJourneyActive;default:return B===void 0?!1:B}},
isWatchFullscreen:function(B,R){switch(R.type){case "SET_IS_WATCH_FULLSCREEN":return R.payload.isWatchFullscreen;default:return B===void 0?!1:B}},
isWatchNarrowWidth:function(B,R){switch(R.type){case "SET_IS_WATCH_NARROW_WIDTH":return R.payload.isWatchNarrowWidth;default:return B===void 0?!1:B}},
isWatchRetroMode:function(B,R){switch(R.type){case "SET_IS_WATCH_RETRO_MODE":return R.payload.isWatchRetroMode;default:return B===void 0?!1:B}},
isLiveChatCollapsed:function(B,R){switch(R.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return R.payload.isLiveChatCollapsed;default:return B===void 0?!1:B}},
openEngagementPanels:function(B,R){B=B===void 0?iIR:B;var V=[].concat(_.MI(B));switch(R.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return V.push(R.payload.panelToAdd),V;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return V.splice(V.indexOf(R.payload.panelToRemove),1),V;default:return B}},
playerState:function(B,R){switch(R.type){case "SET_PLAYER_STATE":return R.payload.playerState;default:return B===void 0?-1:B}},
watchScrollTop:function(B,R){switch(R.type){case "SET_WATCH_SCROLL_TOP":return R.payload.watchScrollTop;default:return B===void 0?0:B}},
watchWindowSize:function(B,R){B=B===void 0?sf5:B;switch(R.type){case "SET_WATCH_WINDOW_SIZE":return R.payload.watchWindowSize;default:return B}}});var Fmb={feedbackTokens:[]};var cyd=WJ({surveyFeedbackData:function(B,R){B=B===void 0?Fmb:B;switch(R.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return R.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},B,R.payload);default:return B}}});var xy5={};var ZyI=void 0;_.k("web_enable_redux_store_on_demand")||(ZyI=gJK());var rQJ=function(B,R,V){var e=this;this.listId=B;this.JSC$10656_updateCallback=R;this.isOfflineVideoCallback=V;_.g6().subscribe(function(){e.handleUpdate()})};
rQJ.prototype.getPlaylistData=function(){var B=_.g6().getState().entities;if(this.listId&&this.listId!=="PPSV"){var R=mkp(B,this.listId,!0),V=_.XF(this.listId,"mainPlaylistEntity"),e,X;B=B==null?void 0:(e=B.mainPlaylistEntity)==null?void 0:(X=e[V])==null?void 0:X.title;return myN(R,B,this.listId)}R=_.oIo(kl_(B));B=_.oIo(_.kG(B));return myN(R.concat(B))};
rQJ.prototype.getPlaylistId=function(){return this.listId};
rQJ.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10656_updateCallback(this.listId,this.getPlaylistData(),{})};var w3=function(B,R,V,e){e=e===void 0?[]:e;this.JSC$10659_playlistNetworkManager=B;this.listId=R;this.JSC$10659_updateCallback=V;this.videoIds=e;this.pendingUpdates=[];this.currentIndex=0};
w3.prototype.JSC$10659_setCurrentIndex=function(B){this.currentIndex=B};
w3.prototype.setListId=function(B){this.listId=B};
var g2v=function(B,R){B.currentCreateRequest&&B.currentCreateRequest.cancel(R);B.currentUpdateRequest&&B.currentUpdateRequest.cancel(R);B.currentRefreshRequest&&B.currentRefreshRequest.cancel(R)};
w3.prototype.delete=function(){g2v(this,"PROXY DELETED")};
w3.prototype.addVideos=function(B,R,V){var e=this;V!==void 0?this.videoIds.splice.apply(this.videoIds,[V,0].concat(_.MI(B))):this.videoIds.push.apply(this.videoIds,_.MI(B));this.listId||this.currentCreateRequest?(B.forEach(function(X,Y){X={addedVideoId:X,action:"ACTION_ADD_VIDEO"};V&&(X.addedVideoPosition=V+Y);e.pendingUpdates.push(X)}),Te(this)):ZI2(this,R.onCreateListCommand)};
var m3o=function(B,R,V,e,X){fKY(B.videoIds,R,V);R>B.currentIndex&&V<=B.currentIndex?B.JSC$10659_setCurrentIndex(B.currentIndex+1):R===B.currentIndex?B.JSC$10659_setCurrentIndex(V):R<B.currentIndex&&V>=B.currentIndex&&B.JSC$10659_setCurrentIndex(B.currentIndex-1);B.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:e,movedSetVideoIdPredecessor:X});Te(B)},ZI2=function(B,R){g2v(B,"OBSOLETE");
B.currentCreateRequest=$3_(B.JSC$10659_playlistNetworkManager,R,B.videoIds);_.fT(B.currentCreateRequest,function(){B.currentCreateRequest=void 0}).then(function(V){B.setListId(V.playlistId);
B.pendingUpdates.length>0?Te(B):C6J(B)})},Te=function(B){if(B.pendingUpdates.length!==0&&(B.currentRefreshRequest&&B.currentRefreshRequest.cancel("OBSOLETE"),!B.currentUpdateRequest&&!B.currentCreateRequest)){var R=B.pendingUpdates.splice(0,B.pendingUpdates.length);
B.currentUpdateRequest=B.JSC$10659_playlistNetworkManager.updatePlaylist(B.listId,R);_.fT(B.currentUpdateRequest,function(){B.currentUpdateRequest=void 0}).then(function(){B.pendingUpdates.length>0?Te(B):C6J(B)}).thenCatch(function(){B.pendingUpdates.unshift.apply(B.pendingUpdates,_.MI(R))})}},C6J=function(B){B.currentRefreshRequest=_.P6b(B.JSC$10659_playlistNetworkManager,B.listId,B.currentIndex,B.videoIds[B.currentIndex]);
_.fT(B.currentRefreshRequest,function(){B.currentRefreshRequest=void 0}).then(function(R){B.JSC$10659_updateCallback(R.playlistId,R.playlistPanelRenderer,R.autoplayRenderer)})};
w3.prototype.size=function(){return this.videoIds.length};var n2o=function(B,R,V,e){e=e===void 0?[]:e;w3.call(this,B,R,V,e);this.JSC$10659_playlistNetworkManager=B;this.listId=R;this.JSC$10659_updateCallback=V;this.videoIds=e};
_.l(n2o,w3);_.xJ=function(B,R,V,e,X,Y,t){X=X===void 0?[]:X;t=t===void 0?eI:t;w3.call(this,B,R,V,X);this.JSC$10659_playlistNetworkManager=B;this.listId=R;this.JSC$10659_updateCallback=V;this.onAuthChange=e;this.videoIds=X;this.storage=Y;this.cookieReader=t;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.ua(_.dV,this.checkLoggedInStatusChange.bind(this),1E3)};
_.l(_.xJ,w3);_.p=_.xJ.prototype;_.p.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.ua(_.dV,this.checkLoggedInStatusChange.bind(this),1E3)};
_.p.JSC$10659_setCurrentIndex=function(B){w3.prototype.JSC$10659_setCurrentIndex.call(this,B);this.store()};
_.p.delete=function(){_.dV.cancelJob(this.queueSapisIdJob);w3.prototype.delete.call(this)};
_.p.setListId=function(B){w3.prototype.setListId.call(this,B);this.store()};
_.p.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var uqR=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],OIv=["playerResponse","videoDetails"],og5=["response","currentVideoEndpoint","watchEndpoint","videoId"],BoR=["response","currentVideoEndpoint","watchEndpoint","playlistId"],RdG=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],V_5=["response","contents","twoColumnWatchNextResults","playlist","playlist"],edb=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
X0R=["response","contents","twoColumnWatchNextResults"];var Ly={},u1x=(Ly.WEB_UNPLUGGED="^unplugged/",Ly.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Ly.WEB_UNPLUGGED_OPS="^unplugged/",Ly.WEB_UNPLUGGED_PUBLIC="^unplugged/",Ly.WEB_CREATOR="^creator/",Ly.WEB_KIDS="^kids/",Ly.WEB_EXPERIMENTS="^experiments/",Ly.WEB_MUSIC="^music/",Ly.WEB_REMIX="^music/",Ly.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Ly.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Ly);var abI,$3_;abI=function(B,R){this.networkManager=B;this.innertubeTransportService=R};
$3_=function(B,R,V){if(!_.D(R,_.qf))return _.SR(Error("Ef"));_.D(R,_.qf).videoIds=V;V={create_playlist_title:_.Wz("QUEUE",void 0,"Queue")};return PR_(_.cr(B.innertubeTransportService,R,V),$yI)};
_.P6b=function(B,R,V,e){R={videoId:e,playlistId:R,playlistIndex:V};V=_.Zz(Y_4);return PR_(_.vC(B.innertubeTransportService,R,V),nJA)};
abI.prototype.updatePlaylist=function(B,R){return PR_(_.cr(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:B,actions:R}}),CRA)};var p0G=function(B){this.storage=B},YLv;
p0G.prototype.store=function(B,R){R=R===void 0?0:R;if(this.storage&&B.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",B),this.storage.set("TLPQindex",String(R)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(V){}};
p0G.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
p0G.prototype.getPlaylistId=function(){if(!this.storage)return null;var B=null;try{B=this.storage.get("TLPQplaylist")}catch(R){}return B};var Riq=["navigationEndpoint","watchEndpoint","videoId"],BMd=["nextButtonVideo","watchEndpoint","videoId"];_.H$=new _.u0("NETWORK_TOKEN");_.$B=new _.u0("PAGE_TOKEN");_.Ky=new _.u0("PLAYLIST_TOKEN");var hdS;hdS=new _.u0("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.M1=new _.u0("INNERTUBE_TRANSPORT_TOKEN");var t_a,I8,buv,J5G,UD5,No4;t_a=new Set(["ci","cr","carml"]);I8=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10706_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Ep=function(){I8.instance||(I8.instance=new I8);return I8.instance};
I8.prototype.onAny=function(B){return _.WZl(this,B,2)};
I8.prototype.parkOrScheduleJob=function(B,R,V,e,X){_.Qj(this,V)?_.TT().addJob(B,R,e):(X&&(B=buv(B),J5G(this,B,R,V,X)),X=this.JSC$10706_parkedJobs.get(V),X||(this.JSC$10706_parkedJobs.set(V,[]),X=this.JSC$10706_parkedJobs.get(V)),X.push({job:B,priority:R,delay:e}))};
I8.prototype.addListener=function(B,R,V){V&&(R=buv(R),J5G(this,R,0,B,V));V=this.parkedProcessors.get(B);V||(this.parkedProcessors.set(B,[]),V=this.parkedProcessors.get(B));V.push(R)};
I8.prototype.processSignal=function(B){if(!_.Qj(this,B)){this.inProgressSignals.add(B);var R=this.JSC$10706_parkedJobs.get(B);if(R){R=_.h(R);for(var V=R.next();!V.done;V=R.next())V=V.value,_.TT().addJob(V.job,V.priority,V.delay);this.JSC$10706_parkedJobs.delete(B)}if(R=this.parkedProcessors.get(B)){R=_.h(R);for(V=R.next();!V.done;V=R.next())V=V.value,V();this.parkedProcessors.delete(B)}this.signals.push(B);this.inProgressSignals.delete(B)}};
_.Qj=function(B,R){return t_a.has(R)||_.KQ("IS_HOMEPAGE_COLD")||_.KQ("IS_RESULTS_PAGE_COLD")||_.KQ("IS_WATCH_PAGE_COLD")?B.signals.indexOf(R)>=0:!0};
buv=function(B){var R=!1;return function(){R||(R=!0,B())}};
J5G=function(B,R,V,e,X){if(jWb.has(e))_.TT().addJob(R,V,X);else{var Y=B.compoundSignals.get(e);Y&&_.TT().addJob(function(){_.Qj(B,e)||(Y.isTimeoutConditionSatisfied?_.TT().addJob(R,V):Y.timeoutConditionObservers.push(function(){_.TT().addJob(R,V)}))},V,X)}};
_.WZl=function(B,R,V){if(R.length>1){var e=[],X=Object.create(null);R=_.h(R);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,X[Y]||(e.push(Y),X[Y]=!0);R=e}if(R.length===1)return R[0];Y=R;e="";X=V===2?"|":"&";Y.sort();Y=_.h(Y);for(var t=Y.next();!t.done;t=Y.next())e+=t.value+X;if(!B.compoundSignals.get(e)){X=0;Y=[];t=_.h(R);for(var b=t.next();!b.done;b=t.next())b=b.value,X++,_.Qj(B,b)||Y.push(b);(V=V===2)&&X>Y.length||!V&&!Y.length?B.signals.push(e):UD5(B,e,V,R,Y)}return e};
UD5=function(B,R,V,e,X){var Y=X.length,t=function(){V||--Y===0?B.processSignal(R):No4(B,R)};
X=_.h(X);for(var b=X.next();!b.done;b=X.next())B.addListener(b.value,t);B.compoundSignals.set(R,{signals:e,isOnAny:V,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});No4(B,R)};
No4=function(B,R){if(!_.Qj(B,R)){var V=B.compoundSignals.get(R);if(V&&!V.isTimeoutConditionSatisfied){for(var e=!1,X=0,Y=0,t=_.h(V.signals),b=t.next();!b.done;b=t.next()){var J=b.value;b=!_.Qj(B,J);jWb.has(J)?e=!0:(J=B.compoundSignals.get(J))?b&&!J.isTimeoutConditionSatisfied&&(Y++,V.isInitialized||J.timeoutConditionObservers.push(function(){No4(B,R)})):b&&X++}V.isInitialized=!0;
V.isOnAny?e&&(V.isTimeoutConditionSatisfied=!0):X===0&&Y===0&&(V.isTimeoutConditionSatisfied=!0);if(V.isTimeoutConditionSatisfied)for(V=_.h(V.timeoutConditionObservers),e=V.next();!e.done;e=V.next())e=e.value,e()}}};
I8.prototype.processSignal=I8.prototype.processSignal;I8.prototype.parkOrScheduleJob=I8.prototype.parkOrScheduleJob;I8.prototype.onAny=I8.prototype.onAny;_.mk("ytsignals.getInstance",_.Ep);I8.prototype.onAny=I8.prototype.onAny;I8.prototype.parkOrScheduleJob=I8.prototype.parkOrScheduleJob;I8.prototype.processSignal=I8.prototype.processSignal;var jWb=new Set(["eop","eocs","dl","pcl"]);_.An=new _.u0("MINIPLAYER_SERVICE");var qy,Gbh,y5R;qy=function(B,R,V){var e=_.sd.getInstance();if(!YLv){var X=new HpA;var Y=void 0,t=_.vE("ID_TOKEN");t&&X.isAvailable()&&(Y=new fq(X,"yt-queue"+t));YLv=new p0G(Y)}X=YLv;Y=_.Ep();this.JSC$10713_actionRouter=e;this.pageManager=B;this.playlistManager=R;this.JSC$10713_playlistNetworkManager=V;this.storage=X;this.signals=Y;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.cC=function(){if(!Gbh){var B=_.Oz(),R=B.resolve(_.uj(_.$B)),V=B.resolve(_.uj(_.H$)),e=B.resolve(_.uj(_.Ky));B=B.resolve(_.M1);Gbh=new qy(R,e,new abI(V,B))}return Gbh};
y5R=function(B,R,V){if(V){var e;if(((e=B.responsePlaylistData)==null?void 0:e.playlistId)!==V)return}B.responsePlaylistData&&(V=hix(R,B.responsePlaylistData),B.responsePlaylistData=(0,_.M_.unsafeClone)(B.responsePlaylistData),WD5(B.responsePlaylistData,V));V=B.temporaryItems.findIndex(function(X){return X.videoId===R});
V>-1&&B.temporaryItems.splice(V,1);_.Ay(B,_.iR(B,B.response?B.response.autoplayRenderer:void 0))};
_.SLv=function(B,R){if(B.responsePlaylistData){var V=tSd(R,B.responsePlaylistData);WD5(B.responsePlaylistData,V);if(B.queueProxy){var e=B.queueProxy;V<0||(e.videoIds.splice(V,1),V<e.currentIndex&&e.JSC$10659_setCurrentIndex(e.currentIndex-1),e.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:R}),Te(e))}}_.Ay(B,_.iR(B,B.response?B.response.autoplayRenderer:void 0))};
qy.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Ay(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
qy.prototype.setPlaylistData=function(B,R,V){this.temporaryItems=[];this.listId=B;this.responsePlaylistData=R;_.Ay(this,_.iR(this,V))};
var HuG=function(B){return(B==null?0:B.playlistId)?B.playlistId:"PPSV"},M_o=function(B){return B&&B.playlistId?B.playlistId==="PPSV"?!0:gId(_.g6().getState().entities,B.playlistId):!1};
qy.prototype.isPlayingOfflineVideo=function(){return this.response?M_o(this.response):!1};
qy.prototype.closeMiniplayer=function(B){var R=this.queueProxy&&this.queueProxy.size()<=1,V=_.Oz().resolve(_.An);if(!this.queueProxy||R)this.queueProxy&&this.clearQueue(),V.close(!0);else{V.pipController.getWindow()&&window.focus();R=this.responsePlaylistData;var e=this.temporaryItems.length+(R&&R.contents?R.contents.length:0);R=_.Wz("QUEUE_CLEARED_UNPLURALIZED")||_.bF("QUEUE_CLEARED",e);R=_.$G(R);V=_.Wz("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");e=_.Wz("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.bF("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",e);var X=_.Wz("MINIPLAYER_CLOSE",void 0,"Close"),Y=_.Wz("CANCEL",void 0,"Cancel");_.vW(this.JSC$10713_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.s$(V),dialogMessages:[_.s$(e)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.s$(X),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
R]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.s$(Y)}}}}}}],B)}};
_.iR=function(B,R){var V={},e=B.response;V.autoplayRenderer=R;if(!B.responsePlaylistData&&!B.temporaryItems.length)return!e||!e.hasRelatedVideoData&&_.k("kevlar_prefetch_data_augments_network_data")||(V.playerData={rvs:e.relatedVideoArgs,endScreenRenderer:e.endScreenRenderer}),V;V.playerData={};if(B.index===void 0)return _.Tn(Error("Gf")),V;V.panel=B.responsePlaylistData?(0,_.M_.unsafeClone)(B.responsePlaylistData):{titleText:_.s$(_.Wz("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
R=V.panel;if(R.contents)for(var X=_.h(B.temporaryItems),Y=X.next();!Y.done;Y=X.next())R.contents.push({playlistPanelVideoRenderer:Y.value});B.queueProxy&&e&&e.playingVideo&&e.playingVideoId&&!Ybd(e.playingVideoId,V.panel)&&(R=e.playingVideo,X=V.panel,Y=B.index,X.contents&&X.contents.splice(Y===void 0?0:Y,0,{playlistPanelVideoRenderer:R}));e&&e.playingVideoId&&(R=B.index,X=V.panel,R=!X.contents||R>=X.contents.length?void 0:X.contents[R].playlistPanelVideoRenderer,R&&R.videoId===e.playingVideoId||(R=
hix(e.playingVideoId,V.panel),B.index=R!==-1?R:B.index?B.index-1:0));R=pDu(B.index+1,V.panel);X=void 0;B.index>0&&(X=pDu(B.index-1,V.panel));if(X||R)V.autoplayRenderer=VSp(R,X,V.autoplayRenderer);!R&&(e==null?0:e.relatedVideoArgs)&&(V.playerData.rvs=e.relatedVideoArgs);e=e?e.playlistIndexOffset:0;B.queueProxy?jDd(V.panel,B.index,e,XDY,!0,!0,!0):jDd(V.panel,B.index,e);V.playerData.playlistPanelRenderer=V.panel;return V};
qy.prototype.openToast=function(B){_.Oz().resolve(_.An).openToast(B,_.Wz("ADDED_TO_QUEUE",void 0,"Added to queue"))};
qy.prototype.isMiniplayerActive=function(){return _.Oz().resolve(_.An).isMiniplayerActive()};
_.Ay=function(B,R){B.playlistManager.setAutoplayRenderer(R.autoplayRenderer||null);B.playlistManager.setPlaylistData(R.panel||null);R.playerData&&B.playlistManager.setPlayerPlaybackControlData(R.playerData)};var NMq="#";var kbR={},DD2={},fah={},lab={},zdJ={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:(kbR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",kbR),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:(DD2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",DD2),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:(fah.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",fah),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:(lab.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",lab),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 nZp=[{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:zdJ},{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:zdJ}}];_.ec=[[["I2xqaHMwZXQ1MXhjNmtpbmQ=","ODJjZnZvZHB2YWx1ZSNuZDZl"],"TlRfS0lORF9TVEFSVCNhZWt2Nmh3c3BmcW9BRF9QTEFDRU1F"]];_.VV=["cyNtM24xdmt2czZ1ajVnbG9iYWxDYWxsYmFjaw==","bm9ybWFsaXR5RGV0ZWN0ZWQjbzE0MnBnNGZwb3dwb25BYg==","cCM2ZXNmc3Y1OGl5M2ZvbkFkU2tp","NWtyYXdfcGxheWVyX3Jlc3BvbnNlI2h4ajB0bG1xbGc=","U2xvdHMjZjB5cTcyeTN2bWVpYWQ="];_.sp="cyNtM24xdmt2czZ1ajVnbG9iYWxDYWxsYmFjaw== bm9ybWFsaXR5RGV0ZWN0ZWQjbzE0MnBnNGZwb3dwb25BYg== cCM2ZXNmc3Y1OGl5M2ZvbkFkU2tp NWtyYXdfcGxheWVyX3Jlc3BvbnNlI2h4ajB0bG1xbGc= d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3V4YWJhNzhzbHh6aA== ZiNvMGJvNm5xNDViMWRhYl9zYV9l U2xvdHMjZjB5cTcyeTN2bWVpYWQ=".split(" ");var iFq=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var F1;F1=function(B,R,V){this.oxv=B;this.isAsync=R;this.pml=V};
_.h$I=[new F1("b.f_",!1,0),new F1("j.s_",!1,2),new F1("r.s_",!1,4),new F1("e.h_",!1,6),new F1("i.s_",!0,8),new F1("s.t_",!1,10),new F1("p.h_",!1,12),new F1("s.i_",!1,14),new F1("f.i_",!1,16),new F1("a.b_",!1,18),new F1("a.o_",!1),new F1("g.o_",!1,22),new F1("p.i_",!1,24),new F1("p.m_",!1),new F1("n.k_",!0,20),new F1("i.f_",!1),new F1("a.s_",!0),new F1("m.c_",!1),new F1("n.h_",!1,26),new F1("o.p_",!1),new F1("m.p_",!0,28),new F1("o.a_",!1),new F1("d.p_",!1),new F1("e.i_",!1)].reduce(function(B,R){B[R.oxv]=
R;return B},{});var aa_=function(){};
aa_.prototype.flush=function(B,R){B=B===void 0?[]:B;R=R===void 0?!1:R;if(_.k("enable_client_streamz_web")){B=_.h(B);for(var V=B.next();!V.done;V=B.next())V=sm_(V.value),this.rootSpec&&_.Ra(V,2,this.rootSpec),V={serializedIncrementBatch:_.O4(V.JSC$7514_serializeBinary())},_.dn("streamzIncremented",V,{sendIsolatedPayload:R})}};
var HFd=function(){};
_.l(HFd,aa_);var dDG=function(B){var R=new IYh;var V=new Ll5;V=_.bg(V,1,"botguard");B=_.bg(V,2,B);this.rootSpec=_.Vm(R,1,Ev4,B)};
_.l(dDG,aa_);var oG,w0G=new Map;var gZx,kkS,xqA,l2u,dqZ,cpZ,mqd,QDI;gZx=2;kkS=2;xqA=2;l2u=2;dqZ=2;cpZ=2;mqd=2;QDI=new qhb;var xD2,LZG,vgo;xD2=function(){this.ongoingFlowNonces=new Map};
_.hz=function(){LZG||(LZG=new xD2);return LZG};
_.pk=function(B,R,V){return{eventType:{flowEventNamespace:B,flowEventType:R},metadata:V,statusCode:void 0,csn:void 0,can:void 0}};
_.Wz_=function(B,R){var V=_.hz(),e=vgo(V,R,!0);_.YA(V,B,R,e)};
_.YA=function(B,R,V,e){B={flowNonce:e||vgo(B,V),flowType:V,flowEventType:R.eventType};R.metadata&&(B.flowMetadata=R.metadata);R.statusCode!==void 0&&(B.flowEventStatus=R.statusCode);R.csn&&(B.csn=R.csn);R.can&&(B.can=R.can);_.dn("flowEvent",B,void 0)};
vgo=function(B,R,V){V=V===void 0?!1:V;var e=B.ongoingFlowNonces.get(R);if(!e||V)e=aL(16),B.ongoingFlowNonces.set(R,e);return e};_.KZo=new QJo;var UG5={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var r3=function(B,R,V,e,X,Y,t){V=V===void 0?!1:V;e=e===void 0?!1:e;Y=Y===void 0?_.cC():Y;this.hasRun=!1;this.cDr=B;this.tbU=R;this.nAV=V;this.fromHistory=e;this.previousVideoId=X;this.sbl=Y;this.tempData=t;this.rbp=new _.cF2};
_.l(r3,nt);r3.prototype.validate=function(B){return!(!B.data.playerResponse||B.data.page!=="watch"&&B.data.page!=="learning_journey_watch"&&B.data.page!=="shorts"||this.hasRun)};
r3.prototype.handle=function(B){var R=this,V=_.D(B.endpoint,_.sI),e=_.D(B.endpoint,_.GF);if(_.k("kevlar_continue_playback_without_player_response")&&(V==null?0:V.videoId)&&this.previousVideoId&&(V==null?void 0:V.videoId)===this.previousVideoId&&(V==null?0:V.continuePlayback)&&!this.fromHistory)this.cDr.resolve();else{var X={};V?X.watch_endpoint=V:e&&(X.watch_endpoint=e,e.endTimeSeconds&&(X.end=e.endTimeSeconds));B.data.page==="watch"?(B.data.filler||this.nAV||(_.aF("cfg"),_.sd.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(X,Ia5(this,B.endpoint)),_.k("enable_masthead_quartile_ping_fix")&&Object.assign(X,EgG(this)),V=!_.k("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(X,V),B.data.forceExternalPlaylist&&(X.external_list=!0)):B.data.page==="shorts"?_.sd.getInstance().triggerAction("yt-start-loading-shorts"):B.data.page==="learning_journey_watch"&&_.sd.getInstance().triggerAction("yt-start-loading-learning-journey");if(V=this.tbU()){try{V.loadVideoWithPlayerResponse(B.data.playerResponse,
X),V.getPlayerPromise().then(this.cDr.resolve)}catch(Y){_.Tn(Y),this.cDr.resolve()}this.hasRun=!0;V.getPlayerPromise().then(function(Y){Y.addEventListener("onAbnormalityDetected",function(){var t=B.data.playerResponse,b=Y.getVideoData().cpn;mqd=0;_.Toh=b;if(b=YHY(t))R.rbp.increment("IN_PLAYER"),_.tz(5),_.k("ab_st_vid_ks")?Y.pauseVideo(!0):Y.stopVideo(),t.playabilityStatus=Object.assign({},t.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:b}}),t.videoDetails=void 0,_.sd.getInstance().triggerOptionalAction("yt-updated-playability-status",
t.playabilityStatus)})})}else _.KE(Error("Jf"))}};
var Ia5=function(B,R){var V=_.D(R,_.sI);if(R&&V&&V.playlistId&&V.videoId&&(B=B.sbl,B.queueProxy?(B=B.queueProxy,V=B.listId===V.playlistId?B.attributionData.get(V.videoId):void 0):V=void 0,V))return{queue_info:V}},EgG=function(B){var R;
if((R=B.tempData)==null?0:R.adpings)return{adpings:B.tempData.adpings}};var g3=function(B,R,V){this.hasRun=!1;this.gAp=B;this.kd6=R;this.deV=V};
_.l(g3,nt);g3.prototype.validate=function(B){return!!_.M_.getValueByKeys.apply(null,[B.data].concat(_.MI(X0R)))};
g3.prototype.handle=function(B){var R=this;this.gAp.promise.then(function(){var V=B.data;var e=_.M_.getValueByKeys.apply(null,[V].concat(_.MI(uqR))),X=_.M_.getValueByKeys.apply(null,[V].concat(_.MI(V_5))),Y=_.M_.getValueByKeys.apply(null,[V].concat(_.MI(og5)));var t=(t=_.M_.getValueByKeys.apply(null,[V].concat(_.MI(OIv))))?{videoId:t.videoId,thumbnail:t.thumbnail,title:t.title?_.s$(t.title):void 0,shortBylineText:t.author?_.s$(t.author):void 0}:void 0;var b=void 0;_.k("web_get_playlist_id_from_current_endpoint_ks")||
(b=_.M_.getValueByKeys.apply(null,[V].concat(_.MI(BoR))));var J=_.M_.getValueByKeys.apply(null,[V].concat(_.MI(edb))),G=_.M_.getValueByKeys.apply(null,[V].concat(_.MI(RdG))),y=!!J||!!G&&!!G.results&&G.results.length>0,S=0;X&&X.currentIndex&&X.localCurrentIndex&&(S=X.currentIndex-X.localCurrentIndex);X&&X.playlistId&&(b=X.playlistId);V={rawResponse:V,autoplayRenderer:e,hasRelatedVideoData:y,playingVideo:t,playingVideoId:Y,playlistPanelRenderer:X,playlistId:b,playlistIndex:X&&X.currentIndex,relatedVideoArgs:J,
endScreenRenderer:G,playlistIndexOffset:S};a:{e=R.deV;X=R.kd6;e.response=V;if(M_o(V))e.downloadPlaylistProxy&&e.downloadPlaylistProxy.getPlaylistId()===HuG(V)||(e.downloadPlaylistProxy=new rQJ(HuG(V),e.setPlaylistData.bind(e),e.isPlayingOfflineVideo.bind(e))),e.responsePlaylistData=e.downloadPlaylistProxy.getPlaylistData(),e.listId=HuG(V),e.index=0;else if(V.playlistPanelRenderer&&V.playlistId&&V.autoplayRenderer)V.playlistId.startsWith("TLPQ")?e.queueProxy?e.listId===V.playlistId?(e.index=V.playlistIndex,
e.responsePlaylistData=V.playlistPanelRenderer,e.queueProxy.JSC$10659_setCurrentIndex(e.index)):V.playingVideoId&&e.index!==void 0&&X.clientParams.autoSaveToQueue&&(e.index+=1,e.queueProxy.JSC$10659_setCurrentIndex(e.index),e.queueProxy.addVideos([V.playingVideoId],{},e.index)):(e.queueProxy=new _.xJ(e.JSC$10713_playlistNetworkManager,V.playlistId,e.setPlaylistData.bind(e),e.clearQueue.bind(e),_.bFu(V.playlistPanelRenderer),e.storage),e.responsePlaylistData=V.playlistPanelRenderer,e.listId=V.playlistId,
e.index=V.playlistIndex):(e.index=V.playlistIndex,e.listId!==V.playlistId&&e.clearQueue(),e.responsePlaylistData=V.playlistPanelRenderer,e.listId=V.playlistId,e.playlistProxy=new n2o(e.JSC$10713_playlistNetworkManager,V.playlistId,e.setPlaylistData.bind(e),_.bFu(V.playlistPanelRenderer)));else if(!e.queueProxy)e.responsePlaylistData=void 0;else if(V.playingVideoId&&X.clientParams.autoSaveToQueue){if(e.index===void 0){_.Tn(Error("Ff"));e.clearQueue();break a}e.queueProxy.videoIds.includes(V.playingVideoId)||
(e.index+=1,e.queueProxy.JSC$10659_setCurrentIndex(e.index),e.queueProxy.addVideos([V.playingVideoId],{},e.index))}_.Ay(e,_.iR(e,e.response.autoplayRenderer))}})};var QWl=function(B,R){R=R===void 0?_.cC():R;Jy.call(this);this.ce.push(new g3(this.qr,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},R));this.ce.push(new r3(this.qr,B,!1,!1));_.k("web_response_commands_chunk_processor")&&this.ce.push(new j8)};
_.l(QWl,Jy);QWl.prototype.processChunk=function(B){B&&B.data.player===void 0&&this.qr.resolve();Jy.prototype.processChunk.call(this,B)};var Z0=function(B,R){B=B===void 0?{layer:0}:B;this.hasRun=!1;this.createScreenConfig=B;this.yG6=R};
_.l(Z0,nt);Z0.prototype.validate=function(B){return!(this.hasRun||!B.endpoint)};
Z0.prototype.handle=function(B){var R=_.WK(),V,e,X=(e=_.D((V=B.endpoint)==null?void 0:V.commandMetadata,_.$a))==null?void 0:e.rootVe;this.yG6&&X?_.py(R,X,this.yG6,this.createScreenConfig):daR(R,B.endpoint,this.createScreenConfig);this.hasRun=!0};var mf=function(B,R){this.hasRun=!1;this.zDU=B;this.previousVideoId=R};
_.l(mf,nt);mf.prototype.validate=function(B){return _.k("kevlar_continue_playback_without_player_response")&&(B=_.D(B.endpoint,_.sI),(B==null?0:B.videoId)&&this.previousVideoId&&(B==null?void 0:B.videoId)===this.previousVideoId&&(B==null?0:B.continuePlayback))?!1:this.zDU.eEL===0};
mf.prototype.handle=function(B){_.sd.getInstance().triggerAction("yt-stop-old-player",B.data,!0)};var qLo=function(B){B=B===void 0?{layer:0}:B;Jy.call(this);this.ce.push(new mf(this));this.ce.push(new Z0(B));this.ce.push(new bR(B))};
_.l(qLo,Jy);var c52=function(){this.hasRun=this.hasRun=!1};
_.l(c52,nt);c52.prototype.validate=function(B){return!this.hasRun&&!(!B.data.csn||!B.data.rootVe)};
c52.prototype.handle=function(B){this.hasRun=!0;_.Kto(B.data.csn,B.data.rootVe,3)};var A5_=function(){nt.apply(this,arguments)};
_.l(A5_,nt);A5_.prototype.validate=function(B){return!!B.data.preconnect};
A5_.prototype.handle=function(B){_.zp("bc");B=_.h(B.data.preconnect);for(var R=B.next();!R.done;R=B.next())R=R.value,(new Image).src=R};var iuG=function(B,R,V){V=V===void 0?{layer:0}:V;Jy.call(this);this.ce.push(new r3(this.qr,B));this.ce.push(new Z0(V));this.ce.push(new bR(V))};
_.l(iuG,Jy);var sWG=function(B,R,V,e,X){V=V===void 0?{layer:0}:V;e=e===void 0?_.cC():e;Jy.call(this);var Y=!!R&&!!R.clientParams&&!!R.clientParams.miniplayer;Y&&this.ce.push(new c52);this.ce.push(new g3(this.qr,R,e));this.ce.push(new A5_);var t,b;this.ce.push(new r3(this.qr,B,Y,!((t=R.clientParams)==null||!t.fromHistory),(b=R.clientParams)==null?void 0:b.previousVideoId,e,R.tempData));var J;this.ce.push(new mf(this,(J=R.clientParams)==null?void 0:J.previousVideoId));var G;(G=R.clientParams)!=null&&G.fromHistory||
(V.layer||(V=Object.assign({},V,{layer:Y?3:0})),this.ce.push(new Z0(V,X)),this.ce.push(new bR(V)));_.k("web_response_commands_chunk_processor")&&this.ce.push(new j8)};
_.l(sWG,Jy);var $J,ggS;$J={};
_.FZS=($J["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},$J["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},$J["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},$J["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$J["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$J["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$J["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},$J);_.Cy=new _.vf("yt-edu");_.r5_=function(){this.JSC$10815_eduDisplayedThisLoad_={}};
ggS=function(B){var R=_.r5_.getInstance();var V=_.RC("kevlar_tooltip_impression_cap");R=V&&parseInt(_.Cy.get(B+"-impression")||0,10)>=V||_.Cy.get(B+"-dismissed")?!1:(V=_.FZS[B])&&!R.JSC$10815_eduDisplayedThisLoad_[V.setKey||B]&&(V.titleText&&_.Wz(V.titleText)||V.bodyText&&_.Wz(V.bodyText))?!0:!1;if(!R)return null;R=_.FZS[B];if(!R)return null;V=R.bodyText?_.Wz(R.bodyText):void 0;var e=R.titleText?_.Wz(R.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:R.position,popup:{bubbleHintRenderer:{text:e?
_.s$(e):void 0,detailsText:V?_.s$(V):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.s$(_.Wz("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:B}}]}}}}}}}},{eduImpressionAction:{key:B}}]};
_.R6(_.r5_);var bjx=!1;for(var ZuR="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),mDa=[],PC=6;PC>=1;PC--)mDa.push({columnCount:PC,query:PC==1?0:PC*2*107-4+32,className:"grid-"+PC+"-columns",width:PC*2*107+"px"});_.C2S=function(B){this.actionRouter_=B=B===void 0?_.sd.getInstance():B;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.$DS(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.$DS=function(B){var R=B.miniGuideVisible_?72:0,V=B.documentWidth_-(B.guidePersistentAndVisible_?240:R);return mDa.find(function(e){return V>e.query})};
_.R6(_.C2S);var P2R=function(){var B=this;this.JSC$10827_keyboardInUse=!1;document.addEventListener("keydown",function(){B.onKeydown()});
document.addEventListener("mousedown",function(){B.JSC$10827_keyboardInUse=!1})},nga;
P2R.prototype.isKeyBoardInUse=function(){return this.JSC$10827_keyboardInUse};
P2R.prototype.onKeydown=function(){this.JSC$10827_keyboardInUse=!0};var uP4,Op;_.ny=new _.vf("yt-mentions");_.uR=function(){};
uP4=function(B,R){return Op(R,"drag-to-reorder-edu-displayed")};
Op=function(B,R,V,e,X,Y){V=V===void 0?"OPEN_POPUP_POSITION_TOP":V;if(R){if(_.ny.get(R))return;_.ny.set(R,!0,e)}if(X&&Y!==void 0){R=Number(_.ny.get(X)||0);if(R>=Y)return;_.ny.set(X,R+1)}return[{openPopupAction:{popupType:"HINT",position:V,popup:{bubbleHintRenderer:{detailsText:B,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.R6(_.uR);var Ou4,on4,B$_;Ou4=function(B,R,V,e){this.JSC$10837_taskManager_=B;this.onFulfilled_=typeof R==="function"?R:null;this.onRejected_=typeof V==="function"?V:null;this.JSC$10837_context_=e};
on4=function(B,R){B.onFulfilled_&&_.kx(B.JSC$10837_taskManager_,function(){B.onFulfilled_.call(B.JSC$10837_context_,R)})};
B$_=function(B,R){B.onRejected_&&_.kx(B.JSC$10837_taskManager_,function(){B.onRejected_.call(B.JSC$10837_context_,R)})};
_.oD=function(B){this.JSC$10840_taskManager_=B;this.callbacks_=[]};
_.oD.prototype.then=function(B,R,V){this.callbacks_.push(new Ou4(this.JSC$10840_taskManager_,B,R,V));return this};
_.oD.prototype.onSuccess=function(B){this.callbacks_.forEach(function(R){on4(R,B)})};
_.oD.prototype.onFailure=function(B){this.callbacks_.forEach(function(R){B$_(R,B)})};
_.oD.prototype.cancel=function(){this.callbacks_.length=0};
Z$h(_.oD);_.GxZ=null;_.fD=new _.u0("ACTIVITY_TOKEN");var kxp=/^[a-zA-Z0-9_\-]{11}$/;var DGI=_.S9(function(){var B,R;return(R=(B=window).matchMedia)==null?void 0:R.call(B,"(prefers-reduced-motion: reduce)").matches});var R2o=_.S9(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 B=_.qN("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");B||(B=_.jr("VIDEO"),_.mk("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
B));return!!(B&&B.canPlayType&&B.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var VFb;_.BD=new _.u0("SHORTS_CONTROLLER_TOKEN");VFb=new _.u0("SHORTS_STATE_STORE_TOKEN");var RD=function(B,R){var V=_.HB.apply(2,arguments);B=B===void 0?0:B;_.H8.call(this,R,V);this.errorType=B;Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(RD,_.H8);var e2_,XMh,Yua,oNY,FM,fRd,b_4,WM2,y7h,U4_,j0_;e2_=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(B){return B+"="}).join("|"));
XMh=RegExp(".*\\?.*playnext=1.*");_.Vf=function(B,R,V,e){this.watchEndpointMap=B;this.reelWatchEndpointMap=R;this.innerTubeTransportService=V;this.fetchPbj=e};
Yua=function(B,R,V){var e=_.Oz().resolve(_.uj(pM_));_.Vf.instance=new _.Vf(B,R,V,e)};
_.h2b=function(B,R){var V=_.RC("web_pbj_log_warning_rate",0);V=V>0&&Math.random()<V;var e;if((e=_.D(R.commandMetadata,_.$a))==null||!e.rootVe)return V&&_.KE(Error("Pf")),!1;var X;e=(X=_.D(R.commandMetadata,_.$a))==null?void 0:X.url;if(!e)return V&&_.KE(Error("Qf")),!1;if(XMh.test(e))return!0;if(e2_.test(e))return V&&_.KE(Error("Rf`"+e)),!1;if(_.D(R,_.sI)){if(!(B.watchEndpointMap.watchNext&&B.watchEndpointMap.player||_.k("kevlar_fetch_initial_data_op_watch_client")))return V&&_.KE(Error("Lf")),!1;
B=_.RC("web_pbj_log_warning_rate",0);B=B>0&&Math.random()<B;_.D(R,_.sI)?HjA(R)?R=!0:(B&&_.KE(Error("Mf")),R=!1):(B&&_.KE(Error("Lf")),R=!1);return R}if(_.D(R,_.GF))return Mjd(R);if(_.D(R,_.vL))return!0;B=_.qx(B.innerTubeTransportService,R);!B&&V&&_.Tn(Error("Sf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(R)});return B};
oNY=function(B,R,V,e,X,Y){R={url:R};if(V==null?0:V.itct)R.parentTrackingParams=V.itct;var t=_.Zz(AdJ);return _.vC(B.innerTubeTransportService,R,t).then(function(b){(b=b.endpoint)||(b=_.Ny);(V==null?0:V.itct)&&b&&!b.trackingParams&&(b.trackingParams=V.itct);var J=UX(b);return FM(B,b,V,e,J,X,Y)})};
FM=function(B,R,V,e,X,Y,t,b){b=b===void 0?{}:b;if(B.fetchPbj&&!_.h2b(B,R)&&!_.k("force_one_platform")){b=B.fetchPbj(R);var J=_.XT(b.then(function(g){if(!g)throw Error("Tf");t(J)||Y(R,g);return g}));
return J}var G,y,S={rootVe:(G=_.D(R.commandMetadata,_.$a))==null?void 0:G.rootVe,url:(y=_.D(R.commandMetadata,_.$a))==null?void 0:y.url,endpoint:R,page:X};if(_.D(R,_.sI)){var M,f={contentPlaybackContext:_.yV(V,(M=_.D(R.commandMetadata,_.$a))==null?void 0:M.url,e)},z=_.A3();_.k("web_streaming_watch")&&window.TextDecoderStream?(b=tF_(B.innerTubeTransportService,R,f,function(g){!S.response&&g.content&&(S.response=g.content);!S.playerResponse&&g.player&&(S.playerResponse=g.player);Y(R,S)}),G=YeA(R),G.length&&
(S.preconnect=G,Y(R,S)),WM2(b,z,S).catch(function(g){g instanceof RD&&g.errorType===2&&b_4(B,R,f,S,Y,t,z)})):b_4(B,R,f,S,Y,t,z);
return z.promise}if(_.D(R,_.GF)){var T;if(((T=_.D(R,_.GF))==null?void 0:T.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var L=_.A3();_.J7T(_.Oz().resolve(_.BD),R).then(function(g){j0_(B,V,e,X,Y,L,g)});
return L.promise}b=_.XT();var Q;G={contentPlaybackContext:_.yV(V,(Q=_.D(R.commandMetadata,_.$a))==null?void 0:Q.url,e)};(Q=B.reelWatchEndpointMap.player)&&(Q=Q().JSC$11817_getRequest(R,G))&&(b=_.vC(B.innerTubeTransportService,Q.innerTubeRequest,Q.input,R.clickTrackingParams,Q.config));Q=_.XT();(y=B.reelWatchEndpointMap.reelItemWatch)&&(y=y().JSC$11817_getRequest(R))&&(Q=_.vC(B.innerTubeTransportService,y.innerTubeRequest,y.input,R.clickTrackingParams,y.config));y=_.XT();(M=B.reelWatchEndpointMap.reelWatchSequence)&&
_.D(R,_.GF).sequenceParams&&(G=M().JSC$11817_getRequest(R,G))&&(y=_.vC(B.innerTubeTransportService,G.innerTubeRequest,G.input,R.clickTrackingParams,G.config));G=_.XT(S);M=_.A3();U4_(R,G,b,Q,y,Y,t,M);return M.promise}var q;if(_.D(R,NYd)&&((q=_.D(R.commandMetadata,_.$a))==null?0:q.url))return b=daZ(_.q2(lg().location.href),_.q2(_.D(R.commandMetadata,_.$a).url)).toString(),oNY(B,b,V,e,Y,function(){return!1});
if(_.D(R,_.vL))return Y(R,S),_.XT(S);if(_.qx(B.innerTubeTransportService,R)){b=Object.assign({},{tempData:V,disableCache:V.disableCache},b);var m=_.cr(B.innerTubeTransportService,R,b).then(function(g){S.response=g;t(m)||Y(R,S);return S});
return m}return _.XT(S)};
_.GfJ=function(B,R,V,e){if(_.D(R,_.sI)||_.D(R,_.GF)&&(_.k("mweb_enable_shorts_innertube_player_prefetch")||_.k("kevlar_enable_shorts_prefetch_in_sequence"))||_.D(R,IrG)&&_.k("web_enable_prefetching_videos_on_home")){var X,Y={contentPlaybackContext:_.yV(V,(X=_.D(R.commandMetadata,_.$a))==null?void 0:X.url,e),prefetchPlaybackContext:lbI(V)},t,b,J;if(((t=_.D(R,_.sI))==null?void 0:(b=t.watchEndpointSupportedPrefetchConfig)==null?void 0:(J=b.prefetchHintConfig)==null?void 0:J.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(V=
B.watchEndpointMap.watchNext)if(Y=V().JSC$11817_getRequest(R,Y))return Promise.resolve(_.vC(B.innerTubeTransportService,Y.innerTubeRequest,Y.input,void 0,Y.config).then(function(S){return S}))}else if(_.D(R,_.GF)&&_.k("web_prefetch_riw_for_next_video")){if(V=B.reelWatchEndpointMap.reelItemWatch)if((V=V().JSC$11817_getRequest(R,Y))&&_.vC(B.innerTubeTransportService,V.innerTubeRequest,V.input,void 0,V.config).then(function(S){return S}),V=B.reelWatchEndpointMap.player)if(Y=V().JSC$11817_getRequest(R,
Y))return Promise.resolve(_.vC(B.innerTubeTransportService,Y.innerTubeRequest,Y.input,void 0,Y.config).then(function(S){return S}))}else if(V=B.watchEndpointMap.player)if(Y=V().JSC$11817_getRequest(R,Y))return Promise.resolve(_.vC(B.innerTubeTransportService,Y.innerTubeRequest,Y.input,void 0,Y.config).then(function(S){return S}))}else if(_.qx(B.innerTubeTransportService,R)){var G={tempData:V},y=N$o(B.innerTubeTransportService,R);
return y?new Promise(function(S,M){var f,z;return _.W(function(T){if(T.nextAddress==1)return _.U(T,y,2);if(T.nextAddress!=4)return f=T.yieldResult,f.JSC$11824_getStoreKey(R,G)?_.U(T,_.cr(B.innerTubeTransportService,R,G),4):(M(new _.H8("Prefetching request builder with no store key.",R)),T.jumpTo(0));z=T.yieldResult;S(z);_.b3(T)})}):Promise.reject(new _.H8("Prefetching unregistered request builder.",R))}return Promise.reject(new _.H8("No request builder available to prefetch endpoint.",R))};
fRd=function(B,R){var V,e,X;if(_.D(R,_.sI)){var Y=B.watchEndpointMap.watchNext;Y&&(V=Y());(B=B.watchEndpointMap.player)&&(e=B())}else if(_.D(R,_.GF))(Y=B.reelWatchEndpointMap.reelItemWatch)&&(V=Y()),(Y=B.reelWatchEndpointMap.player)&&(e=Y()),(B=B.reelWatchEndpointMap.reelWatchSequence)&&(X=B());else{a:{B=Sip(R,B.innerTubeTransportService.endpointMap);if(B!==void 0)if(typeof B.then==="function")_.Tn(new _.H8("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",R));else break a;
B=void 0}B&&(V=B)}var t,b,J;return{content:(t=V)==null?void 0:t.JSC$11824_getStoreKey(R),player:(b=e)==null?void 0:b.JSC$11824_getStoreKey(R),reelSequence:(J=X)==null?void 0:J.JSC$11824_getStoreKey(R)}};
b_4=function(B,R,V,e,X,Y,t){var b=_.XT(),J=B.watchEndpointMap.player;J&&(J=J().JSC$11817_getRequest(R,V))&&(b=_.vC(B.innerTubeTransportService,J.innerTubeRequest,J.input,R.clickTrackingParams,J.config));J=_.XT();var G=B.watchEndpointMap.watchNext;G&&(V=G().JSC$11817_getRequest(R,V))&&(J=_.vC(B.innerTubeTransportService,V.innerTubeRequest,V.input,R.clickTrackingParams,V.config));B=_.XT(e);y7h(R,B,b,J,X,Y,t)};
WM2=function(B,R,V){return _.W(function(e){if(e.nextAddress==1)return _.U(e,B,2);R.resolve(V);_.b3(e)})};
y7h=function(B,R,V,e,X,Y,t){var b,J,G,y,S;_.W(function(M){switch(M.nextAddress){case 1:return _.U(M,R,2);case 2:b=M.yieldResult;if(Y(t.promise))return t.resolve(b),M.return();X(B,b);J=YeA(B);if(!J.length){M.jumpTo(3);break}return _.U(M,R,4);case 4:b.preconnect=J,X(B,b);case 3:return _.en(M,5),_.U(M,V,7);case 7:G=M.yieldResult;_.c8(M,6);break;case 5:return y=_.WR(M),t.reject(y),M.return();case 6:if(G===void 0)return b.reload=!0,X(B,b),t.resolve(b),M.return();if(Y(t.promise))return t.resolve(b),M.return();
b.playerResponse=G;X(B,b);_.en(M,8);return _.U(M,e,10);case 10:S=M.yieldResult;_.c8(M,9);break;case 8:_.WR(M);case 9:if(S===void 0)return b.response={responseContext:{}},t.resolve(b),M.return();if(Y(t.promise))return t.resolve(b),M.return();b.response=S;X(B,b);t.resolve(b);_.b3(M)}})};
U4_=function(B,R,V,e,X,Y,t,b){var J,G,y,S,M,f;_.W(function(z){switch(z.nextAddress){case 1:return _.U(z,R,2);case 2:J=z.yieldResult;if(t(b.promise))return b.resolve(J),z.return();Y(B,J);G=YeA(B);if(!G.length){z.jumpTo(3);break}return _.U(z,R,4);case 4:J.preconnect=G,Y(B,J);case 3:return _.en(z,5),_.U(z,V,7);case 7:y=z.yieldResult;_.c8(z,6);break;case 5:return S=_.WR(z),b.reject(S),z.return();case 6:if(y===void 0)return J.reload=!0,Y(B,J),b.resolve(J),z.return();if(t(b.promise))return b.resolve(J),
z.return();J.playerResponse=y;Y(B,J);_.en(z,8);return _.U(z,e,10);case 10:M=z.yieldResult;_.c8(z,9);break;case 8:_.WR(z);case 9:if(M===void 0)return J.response={responseContext:{}},b.resolve(J),z.return();if(t(b.promise))return b.resolve(J),z.return();J.response=M;Y(B,J);_.en(z,11);return _.U(z,X,13);case 13:f=z.yieldResult;_.c8(z,12);break;case 11:_.WR(z);case 12:if(t(b.promise))return b.resolve(J),z.return();J.reelWatchSequenceResponse=f;Y(B,J);b.resolve(J);_.b3(z)}})};
j0_=function(B,R,V,e,X,Y,t){var b,J,G,y,S,M;_.W(function(f){if((b=t)==null||!b.replacementEndpoint)return Y.reject(),f.return();J=t.replacementEndpoint;(G=_.D(J,_.GF))?(t.sequenceContinuation&&(G.sequenceParams=t.sequenceContinuation),y=_.Oz().resolve(_.BD),S=G.sequenceParams,Su_(y,J)&&delete G.sequenceParams,M=FM(B,J,R,V,e,X,function(){return!1}),M.then(function(z){return _.W(function(T){if(T.nextAddress==1)return H_J(y,{reelWatchEndpoint:{sequenceParams:S}},z),_.U(T,0,2);
Y.resolve(z);_.b3(T)})})):Y.reject();
_.b3(f)})};_.MF_=function(B){if(B.validatedFragments_.length==0)return null;if(!B.mergedPrefetchedData_){for(var R=[],V=_.h(B.validatedFragments_),e=V.next();!e.done;e=V.next()){e=_.h(B.fragmentConfiguration_[e.value].graftedKeys);for(var X=e.next();!X.done;X=e.next())(X=B.prefetchedData_[X.value].trackingParams)&&R.push(X)}B.mergedPrefetchedData_={};Object.assign(B.mergedPrefetchedData_,B.prefetchedData_,{clientSideGrafts:R})}return B.mergedPrefetchedData_};var kfo;_.eS=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
kfo=function(B,R,V){if(_.yd_(R))return B.prefetchCache_.get(_.SHY(R,V))};_.Xk=new _.u0("NAVIGATION_TOKEN");var D4h=function(B){var R=this;var V=V===void 0?dGZ():V;var e=e===void 0?_.Oz().resolve(_.Xk):e;this.onePickCommand=B;this.JSC$10941_playlistNetworkManager=V;this.navigationManager=e;this.videoPickerBuilder=_.z$I("yt-addtoplaylist");_.Wno(Rta(Vba(BVJ(this.videoPickerBuilder.setTitle(B.modalTitle).setSize(1E3).addView(pE4()).addView(XEG())).addView("youtube"),B.selectButtonLabel)),function(X){R.handleAction(X)})};
D4h.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
D4h.prototype.handleAction=function(B){var R=this;if(B&&this.onePickCommand.listId&&B.action==="picked"&&B.docs){var V=[];B.docs.forEach(function(e){V.push({addedVideoId:e.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10941_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,V).then(function(){_.k("playlist_add_video_hard_reload_killswitch")?R.navigationManager.reload():ffJ(R.navigationManager)})}};var lf5=function(){if(this.constructor===lf5)throw new TypeError("Uf");};
_.p=lf5.prototype;_.p.dispose=function(){};
_.p.disconnect=function(){};
_.p.reconnect=function(){};
_.p.observe=function(B,R,V){return{element:B,option:V}};
_.p.unobserveByKey=function(){};var wPK=function(B,R){R=R===void 0?0:R;lf5.call(this);this.viewroot=B;this.defaultPrescanHeight=R;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),B?{root:B,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.l(wPK,lf5);_.p=wPK.prototype;_.p.dispose=function(){this.disconnect();this.handlers.clear()};
_.p.disconnect=function(B){this.isConnected=!1;this.pauseObservingUntilReconnect=B===void 0?!1:B;this.observer.disconnect();B=_.h(this.prescanObservers.values());for(var R=B.next();!R.done;R=B.next())R.value.disconnect()};
_.p.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var B=_.h(this.handlers),R=B.next();!R.done;R=B.next()){var V=_.h(R.value);R=V.next().value;var e=V.next().value;V=!1;e=_.h(e.keys());for(var X=e.next();!X.done;X=e.next())if((X=X.value)&&X.state==="prescan"){V=!0;break}V&&z2l(this,R).observe(R);this.observer.observe(R)}}};
_.p.handleObserveEvent=function(B){B=_.h(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;var V=this.handlers.get(R.target);if(V){var e=R.isIntersecting;V=_.h(V);for(var X=V.next();!X.done;X=V.next()){var Y=_.h(X.value);X=Y.next().value;Y=Y.next().value;X&&(X.state==="visible"&&e||X.state==="hidden"&&!e)&&(Y(R.target,X.state),X.calledOnce&&this.unobserveByKey({element:R.target,option:X}))}}}};
_.p.handlePrescanEvent=function(B){B=_.h(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;var V=this.handlers.get(R.target);if(V&&R.isIntersecting){V=_.h(V);for(var e=V.next();!e.done;e=V.next()){var X=_.h(e.value);e=X.next().value;X=X.next().value;e&&e.state==="prescan"&&(X(R.target,e.state),e.calledOnce&&this.unobserveByKey({element:R.target,option:e}))}}}};
_.p.observe=function(B,R,V){var e=(e=this.handlers.get(B))&&e.has(V)?{element:B,option:V}:void 0;if(e)return e;e={element:B,option:V};this.handlers.has(B)||this.handlers.set(B,new Map);var X=this.handlers.get(B);X&&!X.has(V)&&X.set(V,R);this.pauseObservingUntilReconnect||(V.state==="prescan"&&z2l(this,B).observe(B),this.observer.observe(B));return e};
_.p.unobserveByKey=function(B){var R=this.handlers.get(B.element);if(R&&R.has(B.option)){R.delete(B.option);if(B&&B.option.state==="prescan")for(var V=_.h(this.prescanObservers.values()),e=V.next();!e.done;e=V.next())e.value.unobserve(B.element);R.size===0&&(this.handlers.delete(B.element),this.observer.unobserve(B.element))}};
var z2l=function(B,R){var V=B.defaultPrescanHeight;R.hasAttribute("prescan-height")&&(R=Number(R.getAttribute("prescan-height")),isNaN(R)||(V=R));if(B.prescanObservers.has(V))return B.prescanObservers.get(V);R="-0.1px -0.1px "+V+"px -0.1px";R=new IntersectionObserver(B.handlePrescanEvent.bind(B),B.viewroot?{root:B.viewroot,rootMargin:R}:{rootMargin:R});B.prescanObservers.set(V,R);return R};var afR=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],d4a=function(){var B,R=this;this.JSC$10958_actionRouter=B=B===void 0?_.sd.getInstance():B;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return R.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return R.visibilityObservedElementHandlerKeys}}},wMb,x4v,KMo;
d4a.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.k("kevlar_use_vimio_behavior")&&_.vE("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=TYA())};
d4a.prototype.dispose=function(){this.visibilityMonitor&&_.SI(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
d4a.prototype.handleVisibilityRefreshed=function(){for(var B=_.h(this.targetMap.entries()),R=B.next();!R.done;R=B.next()){var V=_.h(R.value);R=V.next().value;V=V.next().value;_.T$G(this,R,V)}};
_.vnl=function(B,R,V){x4v(B,V);var e=_.LMo(B,R);e.element=V;B.targetedElements.set(V,R);_.T$G(B,R,e)};
x4v=function(B,R){var V=B.targetedElements.get(R);if(V){var e=B.targetMap.get(V);e&&(delete e.element,B.targetMap.set(V,e));B.targetedElements.delete(R);B.visibilityObserver&&B.visibilityObservedElementHandlerKeys&&(V=B.visibilityObservedElementHandlerKeys.get(R))&&(B.visibilityObserver.unobserveByKey(V),B.visibilityObservedElementHandlerKeys.delete(R))}};
_.T$G=function(B,R,V){var e=V.action,X=V.element;X&&e&&(afR.includes(R)||_.vE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||B.visibilityMonitor&&B.visibilityMonitor.isNodeVisible(X)?KMo(B,R,V):B.visibilityObserver&&(B.visibilityObservedElementHandlerKeys||(B.visibilityObservedElementHandlerKeys=new WeakMap),e=B.visibilityObserver.observe(X,function(){KMo(B,R,V);B.visibilityObservedElementHandlerKeys.delete(X)},{calledOnce:!0,
state:"visible"}),B.visibilityObservedElementHandlerKeys.set(X,e)))};
KMo=function(B,R,V){var e=V.action;(V=V.element)&&e&&(_.vW(B.JSC$10958_actionRouter,[e],V),B.targetMap.delete(R),B.targetedElements.delete(V),B.triggeredTargets.add(R))};
_.LMo=function(B,R){var V=B.targetMap.get(R);V||(V={},B.targetMap.set(R,V));return V};
_.pF=function(){wMb||(wMb=new d4a);return wMb};var IfJ=document.createElement("div");IfJ.style.touchAction="pan-down";var xGu=IfJ.style.touchAction==="pan-down";var En5,Q0b;En5=function(){this.hammerFn=nTo();this.JSC$10966_screenManager=_.WK();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.kB(83615);_.hy(this.JSC$10966_screenManager,this.ve);LzY()};
_.YZ=function(){Q0b||(Q0b=new En5);return Q0b};
En5.prototype.registerTouchEvents=function(B,R,V){var e=_.HB.apply(3,arguments),X=this.hammerFn(B,{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}]]});V&&X.set({touchAction:V});this.nodeManagerMapping.set(B,X);var Y=
vEp(R);e=_.h(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;if(t.includes("swipe")||t.includes("pinch")||t.includes("pan"))t.includes("swipe")?X.get("swipe").set({enable:!0,direction:Y,velocity:.2}):t.includes("pinch")?X.get("pinch").set({enable:!0}):t.includes("pan")&&(X.get("pan").set({enable:!0,direction:Y}),X.get("swipe").set({enable:!0,direction:Y,velocity:.2}),X.get("swipe").recognizeWith("pan"));quv(this,B,X,t)}};
var quv=function(B,R,V,e){V.on(e,function(X){if(e.includes("pinch"))B.lastPinchTime=Date.now();else if(e.includes("swipe")&&Date.now()-B.lastPinchTime<400)return;X.pointerType!=="mouse"&&(X=e==="doubletap"?{coordinates:X.center}:e.includes("pan")?X:e.includes("swipe")?{target:X.target}:{},R.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:X})))})};
En5.prototype.unregisterTouchEvents=function(B){var R=_.HB.apply(1,arguments),V=this.nodeManagerMapping.get(B);if(V){R=_.h(R);for(var e=R.next();!e.done;e=R.next())V.off(e.value);this.nodeManagerMapping.delete(B);B.style.touchAction="unset"}};var c74=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Kz5=null;var i_G;_.hp=function(B,R,V){var e=V&&V>0?V:0;V=e?Date.now()+e*1E3:0;if((e=e?(0,_.A7_)():i_G())&&window.JSON){typeof R!=="string"&&(R=JSON.stringify(R,void 0));try{e.set(B,R,V)}catch(X){e.remove(B)}}};
_.tp=function(B){var R=i_G(),V=(0,_.A7_)();if(!R&&!V||!window.JSON)return null;try{var e=R.get(B)}catch(X){}if(typeof e!=="string")try{e=V.get(B)}catch(X){}if(typeof e!=="string")return null;try{e=JSON.parse(e,void 0)}catch(X){}return e};
_.WD=function(B){try{var R=i_G(),V=(0,_.A7_)();R&&R.remove(B);V&&V.remove(B)}catch(e){}};
_.A7_=_.S9(function(){try{var B=new SId;var R=B.isAvailable()?B:null}catch(V){return null}return R?new _.RL(R):null});
i_G=_.S9(function(){var B=new HpA;return B.isAvailable()?new _.RL(B):null});var s04=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},uwN=function(){s04.instance||(s04.instance=new s04);
return s04.instance},OjA=function(B){var R=B.networkEvents;
B.networkEvents=[];return _.k("enable_network_monitoring")?R:[]};var FMo;FMo={};_.r7a=Cq("yt-serviceworker-metadata",{objectStores:(FMo.auth={addedAtVersion:1},FMo["resource-manifest-assets"]={addedAtVersion:2},FMo),shared:!0,upgrade:function(B,R){R(1)&&Iu(B,"resource-manifest-assets");R(2)&&Iu(B,"auth")},
version:2});var Adq=self.location.origin+"/";ij5([/\.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\//]);ij5([/purge_shell=1/]);var gn2=void 0;gn2=gn2===void 0?[]:gn2;for(var Z_4=[],m42=_.h(A$T),$4T=m42.next();!$4T.done;$4T=m42.next())Z_4.push({key:$4T.value});for(var CEl=_.h(gn2),PER=CEl.next();!PER.done;PER=CEl.next())Z_4.push(PER.value);var nnS,kA=_.R5==null?void 0:(nnS=_.R5.performance)==null?void 0:nnS.memory,rdx=!1,ocq={},mGd={},Dx={},fk=navigator;var bG=function(B){this.JSC$11010_expiringStorage=new kz(B)};
bG.prototype.set=function(B,R,V){V=V!==void 0?Date.now()+V:void 0;this.JSC$11010_expiringStorage.set(B,R,V)};
bG.prototype.get=function(B){return this.JSC$11010_expiringStorage.get(B)};
bG.prototype.remove=function(B){this.JSC$11010_expiringStorage.remove(B)};var hnq=_.$Q(["https://www.youtube.com/",""]),t5Y=_.$Q(["https://studio.youtube.com/",""]),Uap="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",bLI=null,HLS;var ul4=_.$Q(["https://www.youtube.com/iframe_api"]),Jp=function(){this.playerResolver_=_.A3();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.ys;this.playbackDurationSeconds_=0},O_4=function(B){var R=function(){return window.YT&&typeof window.YT.ready==="function"};
if(R())return _.XT(window.YT);var V=_.A3(),e=_.jr("SCRIPT");e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(e.onload=_.ys,e.onreadystatechange=_.ys,e.onerror=_.ys,R()?V.resolve(window.YT):V.reject(new _.H8("Failed to load the iframe player library","script.onload",e.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
e.onerror=function(X){e.onload=_.ys;e.onreadystatechange=_.ys;e.onerror=_.ys;V.reject(new _.H8("Failed to load the iframe player library","script.onerror",X&&X.target&&X.target.src))};
_.Qm(e,_.u3(ul4));B.insertBefore(e,B.firstChild);return V.promise},oya=function(B,R,V){var e,X;
_.W(function(Y){switch(Y.nextAddress){case 1:return B.playbackEndedCallback_=V,_.en(Y,2),_.U(Y,O_4(R.parentElement||null),4);case 4:e=Y.yieldResult;_.c8(Y,3);break;case 2:return X=_.WR(Y),X instanceof _.H8&&X.args&&X.args[0]=="script.onerror"?_.KE(X):_.Tn(X),Y.return();case 3:e.ready(function(){return new e.Player(R,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:B.onPlayerReady_.bind(B),onStateChange:B.onPlayerStateChange_.bind(B),
onCueRangeExit:B.onCueRangeExit_.bind(B)}})}),_.b3(Y)}})};
_.p=Jp.prototype;_.p.getPlayerPromise=function(){return this.playerPromise_};
_.p.onPlayerReady_=function(B){this.playerResolver_.resolve(B.target)};
_.p.onPlayerStateChange_=function(B){if(B.data==YT.PlayerState.PLAYING){B=B.target;var R=B.getCurrentTime();B.addCueRange("playback",R,R+this.playbackDurationSeconds_)}};
_.p.onCueRangeExit_=function(B){B.data=="playback"&&(B.target.stopVideo(),this.playbackEndedCallback_())};
_.p.stopVideo=function(){this.playerPromise_.then(function(B){B.stopVideo()})};
var BFR=function(B){B.playerVars_&&B.playerPromise_.then(function(R){typeof R.cueVideoByPlayerVars!="function"?_.KE(new _.H8("vmh: player API not ready","cueVideoByPlayerVars",typeof R.cueVideoByPlayerVars)):R.cueVideoByPlayerVars(B.playerVars_)})};
Jp.prototype.playVideo=function(){var B=this;this.playerVars_&&this.playerPromise_.then(function(R){typeof R.loadVideoByPlayerVars!="function"?(R=new _.H8("vmh: player API not ready","loadVideoByPlayerVars",typeof R.loadVideoByPlayerVars),_.Tn(R)):R.loadVideoByPlayerVars(B.playerVars_)})};
var RHh=function(B,R,V,e,X){R&&(V===void 0&&(V=0),e===void 0&&(e=0),B.playbackDurationSeconds_=e/1E3,B.playerVars_={adformat:"17_8",videoId:R,suggestedQuality:"hd720",startSeconds:V/1E3,player_params:X})};
Jp.prototype.mute=function(){this.playerPromise_.then(function(B){B.mute()})};
Jp.prototype.unMute=function(){this.playerPromise_.then(function(B){B.unMute()})};var aF_=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var jS;jS=function(){this.tokenJars={};if(this.cookiesEnabled=_.GK()){var B=_.UB.get("CONSISTENCY",void 0);B&&VZh(this,{encryptedTokenJarContents:B})}};
_.wuo=function(){jS.instance||(jS.instance=new jS);return jS.instance};
jS.prototype.handleResponse=function(B,R){if(!R)throw Error("Zf");var V,e;R=((V=R.innerTubeRequest.context)==null?void 0:(e=V.request)==null?void 0:e.consistencyTokenJars)||[];var X;(B=(X=B.responseContext)==null?void 0:X.consistencyTokenJar)&&this.replace(R,B)};
jS.prototype.replace=function(B,R){B=_.h(B);for(var V=B.next();!V.done;V=B.next())delete this.tokenJars[V.value.encryptedTokenJarContents];VZh(this,R)};
var VZh=function(B,R){if(R.encryptedTokenJarContents&&(B.tokenJars[R.encryptedTokenJarContents]=R,typeof R.expirationSeconds==="string")){var V=Number(R.expirationSeconds);setTimeout(function(){delete B.tokenJars[R.encryptedTokenJarContents]},V*1E3);
B.cookiesEnabled&&_.Nn("CONSISTENCY",R.encryptedTokenJarContents,V,void 0,!0)}};var eHa,Ub;eHa=window.location.hostname.split(".").slice(-2).join(".");_.IG=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var B=_.vE("LOCATION_PLAYABILITY_TOKEN");_.vE("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=XsT(this))&&(B=this.localStorage.get("yt-location-playability-token"));B&&(this.locationPlayabilityToken=B,this.mostRecentPosition=void 0)};
_.IG.getInstance=function(){Ub=_.qN("yt.clientLocationService.instance");Ub||(Ub=new _.IG,_.mk("yt.clientLocationService.instance",Ub));return Ub};
_.IG.prototype.setLocationOnInnerTubeContext=function(B){B.client||(B.client={});if(this.mostRecentPosition)B.client.locationInfo||(B.client.locationInfo={}),B.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),B.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),B.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),B.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)B.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.IG.prototype.handleResponse=function(B){var R;B=(R=B.responseContext)==null?void 0:R.locationPlayabilityToken;B!==void 0&&(this.locationPlayabilityToken=B,this.mostRecentPosition=void 0,_.vE("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=XsT(this))&&this.localStorage.set("yt-location-playability-token",B,15552E3):_.Nn("YT_CL",JSON.stringify({loctok:B}),15552E3,eHa,!0))};
var XsT=function(B){return B.localStorage===void 0?new _.vf("yt-client-location"):B.localStorage};
_.IG.prototype.clearLocationPlayabilityToken=function(B){B==="TVHTML5"?(this.localStorage=XsT(this))&&this.localStorage.remove("yt-location-playability-token"):_.bpN("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.IG.prototype.getCurrentPositionFromGeolocation=function(){var B=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var R=!1,V=1E4;_.vE("INNERTUBE_CLIENT_NAME")==="MWEB"&&(R=!0,V=15E3);return new Promise(function(e,X){navigator.geolocation.getCurrentPosition(function(Y){B.mostRecentPosition=Y;e(Y)},function(Y){X(Y)},{enableHighAccuracy:R,
maximumAge:0,timeout:V})})};
_.IG.prototype.createUnpluggedLocationInfo=function(B){var R={};B=B.coords;if(B==null?0:B.latitude)R.latitudeE7=Math.floor(B.latitude*1E7);if(B==null?0:B.longitude)R.longitudeE7=Math.floor(B.longitude*1E7);if(B==null?0:B.accuracy)R.locationRadiusMeters=Math.round(B.accuracy);return R};
_.IG.prototype.createLocationInfo=function(B){var R={};B=B.coords;if(B==null?0:B.latitude)R.latitudeE7=Math.floor(B.latitude*1E7);if(B==null?0:B.longitude)R.longitudeE7=Math.floor(B.longitude*1E7);return R};var ps4=function(B,R){var V=Kp();B||(B="unknown");R||(R="unknown");B="MAIN_APP_WEB_PAGE_TYPE_"+B.toUpperCase();B in KHb||(B="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");R="MAIN_APP_WEB_REQUEST_TYPE_"+R.toUpperCase();R in I$o||(R="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Nl(V,{mainAppWeb:{pageType:B,requestType:R,isShellLoad:_.KQ("IS_SHELL_LOAD",!1)}})},YAS={start:function(){_.Nl(g3q(),{mainAppWeb:_.EX()})},
success:function(){_.GT(g3q(),"SUCCESS")},
failure:function(){_.GT(g3q(),"FAILURE")},
cancelled:function(){_.GT(g3q(),"CANCELLED")}};var hHb,tZl,KVu;hHb=_.$Q(["/sw.js"]);tZl=_.$Q(["/sw.js?0"]);_.WET=_.u3(hHb);KVu=_.u3(tZl);var b3l=function(){var B=Error.apply(this,arguments);this.message=B.message;"stack"in B&&(this.stack=B.stack)};
_.l(b3l,Error);_.c$.prototype.load=function(B){this.megabloxUrl_=_.vE("YPC_MB_URL");_.IL(this.megabloxUrl_,(0,_.M2)(function(){B&&B()},this))};
_.MUY=function(B,R,V,e,X,Y,t,b,J,G,y){_.EcN(J);B.load((0,_.M2)(function(){try{var S=Y?Y:_.vE("HL"),M=_.vE("SESSION_INDEX");_.f$x("client",function(){nlS("59",{helpCenterPath:"/youtube",locale:S,window:window}).JSC$7882_loadChatSupport({authuser:String(M)})})}catch(f){throw QV(10,y,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),X&&X(f),_.Tn(f),f;
}J04(this,R,V,e,X,Y,t,b,J,G,y)},B))};
_.c$.prototype.openFixFlowDialog=function(B,R,V,e){this.load((0,_.M2)(function(){try{j34(this,_.qN("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(B).withIntegratorCallback(R).load(V,e)}catch(X){throw _.Tn(X),X;}},this))};
var j34=function(B,R,V,e){var X=R.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.k("enable_window_constrained_buy_flow_dialog")&&(X=X.usingPopupStyle(_.qN("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));e&&(X=X.usingCloseCallback(e));R.bootstrap.fromPaymentsUrl(B.megabloxUrl_);B=R.bootstrap.asMashupMode(X);V=V?V:_.vE("HL");B.usingGaiaIndex(_.vE("SESSION_INDEX")).usingLocale(V).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.k("enable_google_payments_buyflow_material2_style_web")?
B.usingStyle(":m2;pc=#444;ac=#065fd4"):B.usingStyle(":md;pc=#444;ac=#065fd4");return B},J04=function(B,R,V,e,X,Y,t,b,J,G,y){try{var S=_.qN("payments.business.integration");
if(!S)throw new b3l("payments.business.integration is undefined");var M=S.standaloneContextAuthId.forUserId(),f=j34(B,S,Y,b);t&&f.usingServerAnalyticsEventHandler(t);var z=f.inStandaloneContext(M).buyFlow(function(T){if(T&&(!T.integratorData||T.integratorData===""||T.error))if(T.error!=null)if(String(T.error)==="-1")_.Q$d(J);else{var L=String(T.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";QV(10,y,L,T.debugCode);
_.q1(L,J,T.debugCode);L=new _.H8("PAYMENT_ERROR_MESSAGE::"+T.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+T.internalErrorDetails);_.Tn(L)}else QV(10,y,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.q1("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",J,"EMPTY_INTEGRATOR_DATA"),_.Tn(Error("bg"));V&&V(T)}).withEncryptedParameters(R);
G&&z.withClientParameters(bmp(_.lid(G)));z.load(function(){QV(24,y);_.di("ttc",void 0,"commerce_transaction");JwY("commerce_transaction");e&&e()},function(T){if(T==null?0:T.debugCode)var L=T==null?void 0:T.debugCode;
else if(!T||(T==null?0:T.debugCode))L="EMPTY_LOAD_FAILURE_ERROR",_.Tn(Error(L));else{L="EMPTY_LOAD_FAILURE_DEBUG_CODE";var Q=new _.H8("LOAD_FAILURE:"+T.message," DEBUG_CODE:"+L);_.Tn(Q)}QV(10,y,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",L);_.q1("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",J,L);_.Tn(T);X&&X(T)})}catch(T){throw T instanceof b3l&&(QV(10,y,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),X&&X(T)),_.Tn(T),T;
}};var U$J;U$J=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.y9Z=function(B,R){R=R===void 0?!1:R;B=U$J.test(B)?_.Yq(B):null;!R&&window.payments||!B?(B=_.A3(),R=B.promise,B.resolve()):R=_.T3(B,{attributes:{"data-payments-main":"",id:"payment-lib"}});return R};var NFJ;NFJ=_.$Q(["//www.googletagmanager.com/gtm.js?id=",""]);_.Nq=function(B,R){_.uP(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:R}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.vE("GL")}),R=_.jr("SCRIPT"),R.async=!0,_.Qm(R,_.u3(NFJ,B)),R.id="gtm",B=document.getElementsByTagName("script"),B.length==0?document.head.appendChild(R):(B=B[0],B.parentNode.insertBefore(R,B)))};
_.Gk=function(B){if(B=JSON.parse(B))window.dataLayer=window.dataLayer||[],window.dataLayer.push(B)};var GR4,y0a;GR4=_.$Q(["https://clients2.google.com/gr/gr_sync.js"]);_.NWp=function(){};
_.NWp.prototype.init=function(){if(y0a()){var B=_.A3();B.resolve();return B.promise}return _.T3(_.u3(GR4)).then(function(){if(!y0a())throw Error("cg");},function(){throw Error("dg");
})};
_.GCd=function(){if(!y0a())return"";var B=window.google.gr;B.init({async:{schedule:"sync"},merchantId:"youtube"});B.start();B=B.finish();return B==null?"":B};
y0a=function(){return window.google!=null&&window.google.gr!=null};var m3S,P6I=new Set,$3o;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.c=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.l(_.c,PolymerFakeBaseClassWithoutHtml);_.tM=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.l(_.tM,PolymerFakeBaseClassWithoutHtml);var q_d=window.ShadyDOM;var SWp,GB_,MfY,kBp,fCS,lCq,yf,Ck;SWp=_.k("enable_shadydom_free_scoped_query_methods");GB_=_.k("enable_shadydom_free_scoped_node_methods");MfY=_.k("enable_shadydom_free_scoped_readonly_properties_batch_one");kBp=_.k("enable_shadydom_free_parent_node");fCS=_.k("enable_shadydom_free_children");lCq=_.k("enable_shadydom_free_last_child");yf=window.ShadyDOM;_.OX=yf&&yf.noPatch&&yf.wrap?yf.wrap:yf?function(B){return yf.patch(B)}:function(B){return B};
Ck=function(B){if(B instanceof ShadowRoot)this.host=(0,_.OX)(B.host),this.root=B;else if(B.$$){this.host=(0,_.OX)(B);var R;this.root=(R=B.root)!=null?R:this.host}else if(B.polymerController){this.host=(0,_.OX)(B);var V;this.root=(V=this.host.shadowRoot)!=null?V:this.host}else this.root=this.host=(0,_.OX)(B)};
yQK();HII();zsK();aCu();D3K();var SAS={querySelector:function(B,R){R=AUd(R,Fs(B));B=_.rr(B);return gr(B).prototype.querySelector.call(B,R)},
querySelectorAll:function(B,R){R=AUd(R,Fs(B));B=_.rr(B);return gr(B).prototype.querySelectorAll.call(B,R)}},H34={appendChild:function(B,R){var V=Fs(B),e=_.sX(R);
return _.U3Z(_.rr(B),V?_.m5(R,V,e):R)},
cloneNode:function(B,R){var V=_.sX(B);B=_.rr(B);R=gr(B).prototype.cloneNode.call(B,R);return V?$A(R,V):R},
contains:function(B,R){var V=Fs(B),e=_.sX(R);return V!==e?!1:N0I(B,R)},
insertBefore:function(B,R,V){var e=Fs(B),X=_.sX(R);B=_.rr(B);R=e?_.m5(R,e,X):R;return gr(B).prototype.insertBefore.call(B,R,V)},
removeChild:function(B,R){var V=Fs(B);B=_.rr(B);R=V?$A(R,V):R;return gr(B).prototype.removeChild.call(B,R)},
replaceChild:function(B,R,V){var e=Fs(B),X=_.sX(R);R=e?_.m5(R,e,X):X?$A(R,X):R;V=e?$A(V,e):V;B=_.rr(B);return gr(B).prototype.replaceChild.call(B,R,V)},
getRootNode:function(B,R){R=R===void 0?{composed:!0}:R;var V;if(((V=R)!=null?V:{}).composed)B=ncu(B);else{R=B;for(B=s$d(B);B;)R=B,B=rUo(B);B=R}return B}},wOd=MfY?{firstChild:hsS,
nextSibling:XO_,previousSibling:YW5,firstElementChild:tfY,lastElementChild:bIq,nextElementSibling:esu,previousElementSibling:pOY,childNodes:JQK}:{};kBp&&(wOd.parentNode=VfA);fCS&&(wOd.children=jfS);lCq&&(wOd.lastChild=WmI);SWp&&d3u(SAS);GB_&&d3u(H34);T0q();var x3_=function(B){this.node=B instanceof ShadowRoot?B.host:B};
LmN();v25();var QfK=new WeakMap;var cQp=Symbol("wd");var rQq=new Set(["tap","track","down","up"]),g2u=_.k("pbcm_fi_query_decorators");var SS=function(){return _.tM.apply(this,arguments)||this};
_.l(SS,_.tM);_.p=SS.prototype;_.p.getState=function(){return this.store.getState()};
_.p.dispatch=function(B){this.store.dispatch(B)};
_.p.beforeRegister=function(){if(this&&typeof this==="object"){var B;var R=!!this.useSignals||!((B=this.polymerController)==null||!B.useSignals)}else R=!1;if(!R&&this.properties)for(R=_.h(Object.keys(this.properties)),B=R.next();!B.done;B=R.next()){var V=B.value;B=this.properties[V];if(B.selector){if(B.computed)throw Error("jg");V=["reduxPropertiesRecomputeTrigger",'"'+V+'"'].concat(_.MI(B.selectorArgs||[])).join(",");B.computed="recomputeReduxSelector("+V+")"}}};
_.p.attached=function(){var B=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){B.reduxPropertiesRecomputeTrigger++}));
_.k("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.p.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.p.recomputeReduxSelector=function(B,R){var V=_.HB.apply(2,arguments),e=this.properties[R].selector;if(!e)throw Error("hg`"+R);return e.apply(null,[this.store.getState()].concat(_.MI(V)))};
_.p.select=function(B){var R=_.HB.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return B.apply(null,[this.store.getState()].concat(_.MI(R)))};
_.mh.Object.defineProperties(SS.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
SS.prototype.recomputeReduxSelector=SS.prototype.recomputeReduxSelector;_.r([_.E(),_.Z("design:type",Number)],SS.prototype,"reduxPropertiesRecomputeTrigger",void 0);SS=_.r([_.Wc()],SS);var HD=[],OIu={},Dq=function(){return Cn.apply(this,arguments)||this};
_.l(Dq,Cn);Dq.prototype._addPropertyEffect=function(B,R,V){if(R==="__observeEffects"&&V){var e,X=(e=V.info.method)!=null?e:V.info.methodName;if(X){var Y=this[X];this[X]=function(){HD.push(X);try{Y==null||Y.apply(this,arguments)}finally{HD.pop()}}}}_.k6._addPropertyEffect.apply(this,[B,
R,V])};
Dq.prototype._setPendingProperty=function(B,R,V){if(HD.length){var e=HD[HD.length-1],X;(X=OIu[this.is])!=null&&X.has(e)||(ogd(this.is,e),_.dn("polymerPropertyChangedInObserver",{componentName:this.is,observerName:e}))}return _.k6._setPendingProperty.apply(this,[B,R,V])};
Dq=_.r([wSq()],Dq);var BoZ=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),V_d,jm={};_.k("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=jm);var Gv=function(){return _.tM.apply(this,arguments)||this};
_.l(Gv,_.tM);Gv.prototype._setUnmanagedPropertyToNode=function(B,R,V){B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!0);if(V!==B[R]||typeof V==="object")B[R]=V;B.is&&B.polymerController&&B.polymerController!==B&&Ux(B.is,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");B.loggingStatus&&(B.loggingStatus.isDeclarativeExternal=!1)};
Gv=_.r([_.Wc()],Gv);Rd_()&&(IA.prototype._setUnmanagedPropertyToNode=(new Gv)._setUnmanagedPropertyToNode);_.y5Z={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(B){},set polymerController(B){}}]};var kp=function(){var B=Cn.apply(this,arguments)||this;B.json=function(){};
return B};
_.l(kp,Cn);kp.prototype.equals=function(B,R){return B===R};
kp.prototype.isEmpty=function(B){return!B||_.R4(B)&&B.length===0};
kp=_.r([wSq()],kp);var MZS=function(B){B=l1d(B);c6.call(this,B)};
_.l(MZS,c6);MZS.prototype.addProvider=function(B){B=B.key?B:l1d([B])[0];var R=this.keyIdToIndex.get(B.key.id);if(R){if(hdK(B,this.providers[R]))throw Error("kg`"+B.key.displayName);}else c6.prototype.addProvider.call(this,B)};
var kRb=new MZS([]);var D$4=!1;var UDd={};D$4||(jWI(),D$4=!0);
UDd.InjectBehavior={initializeInjection:function(){var B=this.provide;try{if((B=B!=null?B:[])&&B.length>0)for(var R=l1d(B),V=_.h(R),e=V.next();!e.done;e=V.next())kRb.addProvider(e.value);var X=new Set;t_p(this.behaviors||[],X);R={};for(var Y=_.h(X),t=Y.next();!t.done;t=Y.next()){var b=t.value;b.inject&&Object.assign(R,b.inject)}this.inject&&Object.assign(R,this.inject);for(var J=_.h(Object.keys(R)),G=J.next();!G.done;G=J.next()){var y=G.value,S=R[y];try{this[y]=kRb.resolve(S)}catch(M){throw M;}}}catch(M){throw Error(M.message);
}}};var GbA;var SLu=/\bclass\b/.test(function(){}.toString()),kbZ=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var fZG=function(B){this.wasDefined=!0;Array.isArray(B)||B instanceof Array?(this.JSC$11169_getImpl=B[0],this.JSC$11169_setImpl=B[1]):this.JSC$11169_getImpl=B};
_.p=fZG.prototype;_.p.getWithPath=function(B){return laI(this.JSC$11169_getImpl(),B)};
_.p.setWithPath=function(B,R){var V=this;if(B.length)throw Error("lg");if(!this.JSC$11169_setImpl)throw Error("mg");Ga(function(){V.JSC$11169_setImpl(R)})};
_.p.notifyPath=function(){throw Error("ng");};
_.p.notifySplices=function(){throw Error("og");};
_.p.getChangeRecordSignal=function(B,R){var V=this;if(B.length)throw Error("pg");return function(){var e=V.getWithPath(B);return{path:R!=null?R:"",base:e,value:e}}};
_.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 Mq=function(B){var R=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(B)||B instanceof Array?(this.JSC$11174_getImpl=B[0],this.JSC$11174_setImpl=B[1]):this.JSC$11174_getImpl=B;this.wasDefined=!1;tI(function(){R.wasDefined=R.JSC$11174_getImpl()!==void 0})};
Mq.prototype.getWithPath=function(B){return laI(this.JSC$11174_getImpl(),B)};
Mq.prototype.setWithPath=function(B,R){var V=this;if(B[B.length-1]!=="*"&&B[B.length-1]!=="splices"){if(B.length===0){if(!this.JSC$11174_setImpl)throw Error("wg");this.wasDefined||(this.wasDefined=R!==void 0);Ga(function(){V.JSC$11174_setImpl(R)})}else{for(var e=tI(function(){return V.getWithPath([])}),X=0;X<B.length-1;X++){if(!e)return;
e=e[B[X]]}X=B[B.length-1];e&&(e[X]=R);this.wasDefined||(this.wasDefined=B.length>1||R!==void 0)}lZh(this,B,{pathComponents:B,value:R})}};
Mq.prototype.notifyPath=function(B,R){B.length===0?R&&this.setWithPath(B,R.value):lZh(this,B,{pathComponents:B,value:R==null?void 0:R.value,fallbackWhenUndefined:R==null?void 0:R.value})};
var lZh=function(B,R,V,e){if(B.setMutationSignal){var X=++B.mutationIndex,Y=[B.observedPath],t=B.observedPath,b;R.length===0&&(b=t);for(var J=0;J<R.length;J++){var G=t.subPaths[R[J]];if(!G)break;Y.push(G);t=G;J===R.length-1&&(b=G)}for(R=!1;Y.length;)t=Y.shift(),t.data={index:X,mutation:V,spliceMutationIndex:e},R||(R=t===b),R&&Y.push.apply(Y,_.MI(Object.values(t.subPaths)));Ga(function(){B.setMutationSignal(X)})}};
Mq.prototype.notifySplices=function(B,R){var V=this,e=tI(function(){return V.getWithPath(B)}),X=[].concat(_.MI(B),["splices"]);
lZh(this,X,{pathComponents:X,value:{indexSplices:R}});if(e==null?0:e.length)R=this.mutationIndex,X=[].concat(_.MI(B),["length"]),lZh(this,X,{pathComponents:X,value:e.length},R)};
var zHh=function(B,R,V,e,X,Y){B.notifySplices(V,[{index:e,addedCount:X,removed:Y,object:R,type:"splice"}])},aZ_=function(B,R){B=B.observedPath;
for(var V=0;V<R.length;V++){var e=R[V],X=B.subPaths[e];X||(X={pathComponents:R.slice(0,V+1),subPaths:{}},B.subPaths[e]=X);B=X}},wsh=function(B,R,V){aZ_(B,R);
if(!B.getMutationSignal){var e=_.h(_.WU(B.mutationIndex,void 0,"HavCgf"));B.getMutationSignal=e.next().value;B.setMutationSignal=e.next().value}var X=B.getMutationSignal;return _.NW(function(){X();return V(d$b(B,R))},void 0,"BYaPo")};
Mq.prototype.getChangeRecordSignal=function(B,R){var V=this,e=this.mutationIndex,X;return wsh(this,B,function(Y){if(Y&&Y.index>e){var t=Y.mutation;e=Y.index;X=void 0}Y=tI(function(){return V.getWithPath(B)});
if(t){var b=t.pathComponents[t.pathComponents.length-1],J=[].concat(_.MI(t.pathComponents));if(b==="splices"||b==="length")return{base:Y,path:(R?[R].concat(_.MI(J)):J).join("."),value:t.value};var G=B.length>J.length?B:J,y;return{base:Y!=null?Y:t.fallbackWhenUndefined,path:(R?[R].concat(_.MI(G)):G).join("."),value:(y=tI(function(){return V.getWithPath(G)}))!=null?y:t.fallbackWhenUndefined}}X||(X={base:Y,
path:(R?[R].concat(_.MI(B)):B).join("."),value:Y});return X})};
Mq.prototype.getSplicesSignal=function(B){var R=this.mutationIndex,V;return wsh(this,B,function(e){if(e&&e.index>R&&e.spliceMutationIndex!==R){var X=e.mutation;R=e.index;V=void 0}return X&&X.pathComponents[X.pathComponents.length-1]==="splices"?V=e=X.value:V})};
Mq.prototype.getPathMutationSignal=function(B){var R=this;aZ_(this,B);if(!this.getMutationSignal){var V=_.h(_.WU(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=V.next().value;this.setMutationSignal=V.next().value}var e=this.getMutationSignal,X=this.mutationIndex,Y;return _.NW(function(){e();var t=d$b(R,B);if(t&&t.index>X&&t.mutation&&zdq(t.mutation.pathComponents,B)){var b=t.mutation;X=t.index}if(!Y||X!==Y.index){var J,G;t=(G=tI(function(){return R.getWithPath(B)}))!=null?G:(J=b)==null?
void 0:J.fallbackWhenUndefined;
Y={index:X,value:t}}return Y},void 0,"Aumsyf")};
var d$b=function(B,R){B=B.observedPath;R=_.h(R);for(var V=R.next();!V.done;V=R.next())B=B.subPaths[V.value];return B.data};
Mq.prototype.pop=function(B){var R=this,V=tI(function(){return R.getWithPath(B)});
if(!(V instanceof Array))throw Error("xg");var e=V.length>0,X=V.pop();e&&zHh(this,V,B,V.length,0,[X]);return X};
Mq.prototype.push=function(B){var R=_.HB.apply(1,arguments),V=this,e=tI(function(){return V.getWithPath(B)});
if(!(e instanceof Array))throw Error("yg");var X=e.length,Y=e.push.apply(e,_.MI(R));R.length&&zHh(this,e,B,X,R.length,[]);return Y};
Mq.prototype.splice=function(B,R,V){var e=_.HB.apply(3,arguments),X=this,Y=tI(function(){return X.getWithPath(B)});
if(!(Y instanceof Array))throw Error("zg");R<0?R=Y.length-Math.floor(-R):R&&(R=Math.floor(R));var t=Y.splice.apply(Y,[R,V].concat(_.MI(e)));(e.length||t.length)&&zHh(this,Y,B,R,e.length,t);return t};
Mq.prototype.unshift=function(B){var R=_.HB.apply(1,arguments),V=this,e=tI(function(){return V.getWithPath(B)});
if(!(e instanceof Array))throw Error("Ag");var X=e.unshift.apply(e,_.MI(R));R.length&&zHh(this,e,B,0,R.length,[]);return X};var TF4=!0,x$2=!1,YAK=!1,LE4=!1,kZ=!1,vyl=0;LE4=!1;vyl=0;TF4=!0;kZ=x$2=YAK=!1;var D2=function(B,R,V){this.model=B;this.unknownSignalResolver=R;this.options=V;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];R=_.h(Iad());B=R.next().value;R=R.next().value;this.owner=B;this.disposeImpl=R};
D2.prototype.dispose=function(){if(!this.isDisposed){for(var B=_.h(this.childSignalProxies),R=B.next();!R.done;R=B.next())R.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var KEa=function(B,R){B=mq(B.owner);try{R()}finally{mq(B)}};
D2.prototype.effect=function(B){KEa(this,function(){_.za(B)})};
var IZG=function(B,R){B.options!=null||(B.options={});var V;(V=B.options).immutableProps!=null||(V.immutableProps=new Set);B.options.immutableProps.add(R)},pMo=function(B,R){R=""+R;
Ey5(B,R);var V;if((V=B.model.__signalCache)==null?0:V.has(R))V=B.model.__signalCache.get(R),Array.isArray(V)&&IZG(B,R);var e,X,Y;return(Y=(e=B.options)==null?void 0:(X=e.immutableProps)==null?void 0:X.has(R))!=null?Y:!1},Q3S=function(B,R){var V;
B.unknownSignalResolver&&(V=B.unknownSignalResolver(R));var e,X;((e=B.options)==null?0:(X=e.immutableProps)==null?0:X.has(R))?V!=null||(V=new fZG(_.WU(B.model[R],void 0,"Xu3svb"))):V!=null||(V=new Mq(_.WU(B.model[R],void 0,"NgC9n")));var Y=B.model.hostElement;Object.defineProperty(B.model,R,{get:function(){X0Z(Y,R);return V.getWithPath([])},
set:function(t){NU(Y,R);B.setWithPath([R],t)},
configurable:!0});return V},Ey5=function(B,R){var V,e,X;
((V=B.model.__signalCache)==null||!V.has(R))&&((e=B.options)==null?0:(X=e.externalSignalProps)==null?0:X.has(R))&&B.model[R]},a_=function(B,R){R=""+R;
var V=B.signalCache[R];if(V!==void 0)return V;V=!1;Ey5(B,R);var e;if((e=B.model.__signalCache)==null?0:e.has(R))if(V=B.model.__signalCache.get(R),Array.isArray(V))V=!0,IZG(B,R);else return B.signalCache[R]=B.model.__signalCache.get(R).signal,B.signalCache[R];var X,Y;e=(Y=(X=B.options)==null?void 0:X.reactivityMode)!=null?Y:0;var t,b;if(!((t=B.options)==null?0:(b=t.reactiveProps)==null?0:b.has(R))&&!V&&e===1)throw Error("Bg`"+R);X=V?qAR(B,R):Q3S(B,R);return B.signalCache[R]=X},qAR=function(B,R){var V=
Object.getOwnPropertyDescriptor(B.model.constructor.prototype,R),e=function(){return B.model[R]};
return new fZG(V&&V.get&&!V.set?e:[e,function(X){B.model[R]=X}])};
D2.prototype.getWithPath=function(B){var R=_.h(B);B=R.next().value;R=Fn(R);X0Z(this.model.hostElement,""+B);return a_(this,B).getWithPath(R)};
D2.prototype.setWithPath=function(B,R){if(B.length){NU(this.model.hostElement,B.join("."));var V=_.h(B);B=V.next().value;V=Fn(V);a_(this,B).setWithPath(V,R)}};
D2.prototype.getPathMutationSignal=function(B){var R=_.h(B);B=R.next().value;R=Fn(R);return a_(this,B).getPathMutationSignal(R)};
D2.prototype.notifyPath=function(B,R){var V=_.h(B);B=V.next().value;V=Fn(V);a_(this,B).notifyPath(V,R)};
var c0G=function(B,R){if(R.type==="literal")return function(){return{rootWasDefined:!0,value:R.value}};
var V=lp(R.path),e=_.h(V),X=e.next().value;e=Fn(e);var Y,t;if(R.type==="path"&&(V.length===1||((Y=B.options)==null?0:(t=Y.immutableProps)==null?0:t.has(X))))return function(){var S=B.getWithPath(V.slice(0,1)),M=laI(S,V.slice(1));S=S!==void 0;kZ&&(S=a_(B,V[0]).wasDefined);return{rootWasDefined:S,value:M}};
var b=a_(B,X);if(R.type==="path"){var J=b.getPathMutationSignal(e);return function(){var S=kZ?b.wasDefined:Ta(B.owner,function(){return b.getWithPath([])})!==void 0;
var M,f=(M=J())==null?void 0:M.value;return{rootWasDefined:S,value:f}}}if(R.type==="splices"){var G=b.getSplicesSignal(e);
return function(){var S=G();return{rootWasDefined:kZ?b.wasDefined:S!==void 0,value:S}}}var y=b.getChangeRecordSignal(e,""+X);
return function(){var S=y();return{rootWasDefined:kZ?b.wasDefined:S!==void 0,value:S}}},LZ_=function(B,R,V){var e=V.map(function(b){return c0G(B,b)}),X=V.length===0,Y=[],t=V.length!==1||V[0].type!=="path"?!1:!0;
B.effect(function(){for(var b=e.length,J=[],G=!!Y.length,y=0;y<b;y++){var S=e[y](),M=S.rootWasDefined;S=S.value;X||(X=M);J[y]=S;t&&(J[y+b]=G?Y[y]:J[y],Y[y]=S)}X&&Ta(B.owner,function(){return void R.apply(null,_.MI(J))})})},aao=function(B,R,V,e,X){var Y=a_(B,R);
X!==void 0&&Y.setWithPath([],X);LZ_(B,function(){var t=_.HB.apply(0,arguments);NU(B.model.hostElement,R,!0);Y.setWithPath([],V.apply(null,_.MI(t)))},e)};
D2.prototype.arrayPush=function(B){var R=_.HB.apply(1,arguments),V=_.h(B),e=V.next().value;V=Fn(V);e=a_(this,e);return e.push.apply(e,[V].concat(_.MI(R)))};
D2.prototype.arraySplice=function(B,R,V){var e=_.HB.apply(3,arguments),X=_.h(B),Y=X.next().value;X=Fn(X);Y=a_(this,Y);return Y.splice.apply(Y,[X,R,V].concat(_.MI(e)))};
D2.prototype.arrayUnshift=function(B){var R=_.HB.apply(1,arguments),V=_.h(B),e=V.next().value;V=Fn(V);e=a_(this,e);return e.unshift.apply(e,[V].concat(_.MI(R)))};
D2.prototype.notifySplices=function(B,R){var V=_.h(B);B=V.next().value;V=Fn(V);a_(this,B).notifySplices(V,R)};var iu_=/([^\s]+?)\(([\s\S]*)\)/,qLS=/\.([^.]+)$/,FZK=/\\,/g,Eg_=/&comma;/g,QWN=/\\(.)/g,sW_=[],c5d={"*":"wildcard",splices:"splices"};var Oux=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"),C2K=/[A-Z]/,A0v=["class","hidden","id","on-dom-change"],B$o=new Set([].concat(_.MI(A0v),
["if","notify-dom-change","restamp"])),R2S=new Set([].concat(_.MI(A0v),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),VFI=new Set(["restamp"]);var BaY=new Set(["className","id"]);var h2I=Symbol(),N$S=window;var ffq=window;var x4u=0,afZ=0,dH=[],T$_=0,z2N=!1,wMI=document.createTextNode("");(new window.MutationObserver(d4p)).observe(wMI,{characterData:!0});var Tv=new Map,wH=0,i32=function(B){this.mappedHandleId=B},vnN=function(B,R,V,e){this.mappedHandleId=B;
var X=this;this.mappedHandleId=B;this.callback=R;this.waitTime=V;this.schedulerPriority=e;this.handleId=_.dV.addJob(function(){X.callback();Tv.delete(X.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.l(vnN,i32);vnN.prototype.cancel=function(){_.dV.cancelJob(this.handleId);Tv.delete(this.mappedHandleId)};
var KMS=function(B,R){this.mappedHandleId=B;var V=this;this.mappedHandleId=B;this.callback=R;this.handleId=LMS(function(){V.callback();Tv.delete(V.mappedHandleId)})};
_.l(KMS,i32);KMS.prototype.cancel=function(){var B=this.handleId-afZ;B<0||dH.length<=B||(dH[B]=null);Tv.delete(this.mappedHandleId)};var quu=function(){};
quu.prototype.cancel=function(){this.jobHandle!==void 0&&(Ifq(this.jobHandle),this.jobHandle=void 0)};
quu.prototype.run=function(B,R,V){var e=this;this.cancel();this.callback=B;this.jobHandle=_.xp(function(){B();e.callback=void 0},R,V)};
quu.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var End=new WeakMap;var s3R=$X(function(B){for(var R=B,V=0;V<3;V++)R=Object.getPrototypeOf(R);delete R.prototype.connectedCallback;var e=function(){return B.apply(this,arguments)||this};
_.l(e,B);e.prototype._attachDom=function(X){if(!X)return null;var Y=(0,_.OX)(this.hostElement);Y.attachShadow({mode:"open",shadyUpgradeFragment:X});Y.shadowRoot.appendChild(X);return Y.shadowRoot};
e.prototype._takeAttributes=function(){for(var X=this.hostElement.attributes,Y=0;Y<X.length;Y++){var t=X[Y],b=void 0,J=void 0;(J=(b=this).__attributeReaction)==null||J.call(b,t.name,null,t.value)}};
e.prototype._readyClients=function(){B.prototype._readyClients.call(this);this.root=this};
e.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);B.prototype.connectedCallback.call(this)};
_.mh.Object.defineProperties(e,{template:{configurable:!0,enumerable:!0,get:function(){return e.prototype._template}}});
return e}),FE2=$X(function(B){var R=function(){return B.apply(this,arguments)||this};
_.l(R,B);R.prototype.created=function(){if(this.__notifyEffects)for(var V=_.h(Object.values(this.__notifyEffects)),e=V.next();!e.done;e=V.next()){e=_.h(e.value);for(var X=e.next();!X.done;X=e.next())X.value.fn=s0x}if(this.__reflectEffects)for(V=_.h(Object.values(this.__reflectEffects)),e=V.next();!e.done;e=V.next())for(e=_.h(e.value),X=e.next();!X.done;X=e.next())X.value.fn=FMS};
R.prototype._addEventListenerToNode=function(V,e,X){V=vc(V);dB(V,e,X)||B.prototype._addEventListenerToNode.call(this,V,e,X)};
R.prototype._removeEventListenerFromNode=function(V,e,X){V=vc(V);wB(V,e,X)||B.prototype._removeEventListenerFromNode.call(this,V,e,X)};
R.prototype._propertiesChanged=function(V,e,X){if(this.__dataToNotify&&this.__notifyEffects)for(var Y=_.h(Object.keys(this.__dataToNotify)),t=Y.next();!t.done;t=Y.next()){t=t.value;var b=i__(t);this.__notifyEffects[b]||delete this.__dataToNotify[t]}else this.__dataToNotify=null;B.prototype._propertiesChanged.call(this,V,e,X)};
R.prototype.fire=function(V,e,X){e=e===void 0?{}:e;var Y;return _.OI(vc((Y=X==null?void 0:X.node)!=null?Y:this),V,e,X)};
R.prototype._ensureAttribute=function(V,e){var X=vc(this);X.hasAttribute(V)||zv(X,e,V)};
R.prototype.isLightDescendant=function(V){var e=vc(this);return vc(e)!==V&&_.w(e).contains(V)&&_.w(e).getRootNode()===_.w(V).getRootNode()};
return R});
_.DV.ready=function(){var B;((B=this.hostElement)!=null?B:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var R;((R=this.hostElement)!=null?R:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.LC._subscribeIronResize=function(B){var R;((R=B.hostElement)!=null?R:B).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.LC._unsubscribeIronResize=function(B){var R;((R=B.hostElement)!=null?R:B).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Z_5=[Array,Boolean,Date,Number,Object,String],I_=function(B,R,V,e){this.polySiInfo=B;this.polySiParams=R;this.polySiContext=V;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;e||this instanceof HTMLElement&&(e=this);if(!e)throw Error("Ig");this.allowedProps=R.allowedProps;this.hostElement=e;this.is=B.is;this.upgradeDisabled=!!R.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");B=new Set(R.reactiveSchemas.filter(function(X){return X.type!==
"observe"}).map(function(X){return X.propertyKey}));
this.signalProxy=new D2(this,void 0,{reactiveProps:B,reactivityMode:R.reactivityMode});this.__dataHasAccessor={};R=_.h(R.reactiveSchemas);for(B=R.next();!B.done;B=R.next())B=B.value,B.type==="signal"&&(this.__dataHasAccessor[B.propertyKey]=!0);this.upgradeDisabled||r05(this)};
I_.prototype.getExtraMethodsToForward=function(){return[]};
var r05=function(B){B.polySiContext.didRegister||(B.registered(),B.polySiContext.didRegister=!0);B.polySiContext.finalizedTemplate||(B.polySiContext.finalizedTemplate={},B.polySiParams.templateGetter&&(B.polySiContext.finalizedTemplate.processedTemplate=lfd(B.polySiParams.templateGetter,B.polySiParams.is)));gyS(B);var R=B.hostElement;R.loggingStatus!=null||(R.loggingStatus={});R.loggingStatus.isInitializing=!0;tI(function(){return void B.created()});
R.loggingStatus.isInitializing=!1;B.isPolySiElementConnected&&Z3h(B)},Z3h=function(B){B.didCallReady||(tI(function(){return void B.ready()}),B.didCallReady=!0);
B.isAttached=!0;B.attached()};
_.p=I_.prototype;_.p.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Z3h(this)};
_.p.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.p.attributeChangedCallback=function(B,R,V){if(this.upgradeDisabled)B==="disable-upgrade"&&V===null&&(this.upgradeDisabled=!1,r05(this));else if(R!==V){var e=_.jk(B),X=this.polySiContext.typesForSignals[e];if(X&&(!this.reflecting||_.k("polysi_attribute_changed_serializing_killswitch"))){switch(X){case Object:try{var Y=JSON.parse(V)}catch(b){Y=V}break;case Array:try{Y=JSON.parse(V)}catch(b){Y=null}break;case Date:Y=isNaN(V)?String(V):Number(V);Y=new Date(Y);break;case Boolean:Y=V!==null;break;case Number:Y=
Number(V);break;default:Y=V}this[e]=Y}e=_.h(this.polySiParams.behaviors);for(X=e.next();!X.done;X=e.next())Y=void 0,(Y=X.value.attributeChanged)==null||Y.call(this,B,R,V);var t;(t=this.attributeChanged)==null||t.call(this,B,R,V)}};
_.p.attributeChangedCallbackWrapper=function(B,R,V){this.attributeChangedCallback(B,R,V)};
_.p.setPropertiesFromInitialAttributeValues=function(){for(var B=0;B<this.hostElement.attributes.length;B++){var R=this.hostElement.attributes[B];(R.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(R.name))&&this.attributeChangedCallback(R.name,null,R.value)}};
_.p.created=function(){this.provide=this.polySiParams.provide;var B;(B=this.initializeInjection)==null||B.call(this);B=_.h(this.polySiParams.reactiveSchemas);for(var R=B.next();!R.done;R=B.next())R=R.value,R.type==="signal"&&(this.mutablePropNames.add(R.propertyKey),a_(this.signalProxy,R.propertyKey));gnd(this,this.polySiInfo,this.polySiParams.behaviors);B=_.h(this.polySiParams.reactiveSchemas);for(R=B.next();!R.done;R=B.next())R=R.value,R.type==="signal"&&R.value!==void 0&&(this.signalProxy.model[R.propertyKey]=
typeof R.value==="function"?R.value.call(this):R.value);if(this.polySiParams.signalProperties)for(B=_.h(this.polySiParams.signalProperties),R=B.next();!R.done;R=B.next()){R=R.value;var V=void 0;((V=this.__signalCache)==null?0:V.has(R))||(this.signalProxy.model[R]=void 0)}LE4||m$b(this);r7p(this);B=_.h(this.polySiParams.behaviors);for(R=B.next();!R.done;R=B.next())V=void 0,(V=R.value.created)==null||V.call(this);var e;(e=this.polySiInfo.created)==null||e.call(this)};
_.p.registered=function(){var B=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var R=Object.getPrototypeOf(this);R.addReactiveSchema=function(b){B.polySiParams.reactiveSchemas.push(b)};
for(var V=_.h(this.polySiParams.behaviors),e=V.next();!e.done;e=V.next()){var X=void 0;(X=e.value.beforeRegister)==null||X.call(R)}var Y;(Y=this.polySiInfo.beforeRegister)==null||Y.call(R);R.addReactiveSchema=$4Y;V=_.h(this.polySiParams.behaviors);for(e=V.next();!e.done;e=V.next())X=void 0,(X=e.value.registered)==null||X.call(R);var t;(t=this.polySiInfo.registered)==null||t.call(R)};
_.p.ready=function(){var B;(B=this.beforeReady)==null||B.call(this);LE4&&m$b(this);var R;if(B=(R=this.polySiContext.finalizedTemplate)==null?void 0:R.processedTemplate){B=D4A(B.template,B.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:B.hasInsertionPoint,thisCtx:this});R=B.nodesById;B=B.root;var V=this.hostElement;var e=e===void 0?!1:e;V=(0,_.OX)(V);if(!V.attachShadow)throw Error("Cd");if(!V.shadowRoot||e)V.attachShadow({mode:"open",shadyUpgradeFragment:B}),V.shadowRoot.appendChild(B);
this.root=V.shadowRoot;this.$=R}$$5(this);e=_.h(this.polySiParams.behaviors);for(R=e.next();!R.done;R=e.next())B=void 0,(B=R.value.ready)==null||B.call(this);var X;(X=this.polySiInfo.ready)==null||X.call(this)};
_.p.attached=function(){for(var B=_.h(this.polySiParams.behaviors),R=B.next();!R.done;R=B.next()){var V=void 0;(V=R.value.attached)==null||V.call(this)}var e;(e=this.polySiInfo.attached)==null||e.call(this)};
_.p.detached=function(){for(var B=_.h(this.polySiParams.behaviors),R=B.next();!R.done;R=B.next()){var V=void 0;(V=R.value.detached)==null||V.call(this)}var e;(e=this.polySiInfo.detached)==null||e.call(this)};
var gyS=function(B){for(var R=_.h(B.polySiParams.behaviors),V=R.next();!V.done;V=R.next())if(V=V.value,V.listeners)for(var e in V.listeners)kfS(B,B.hostElement,e,V.listeners[e]);if(B.polySiInfo.listeners)for(var X in B.polySiInfo.listeners)kfS(B,B.hostElement,X,B.polySiInfo.listeners[X])},kfS=function(B,R,V,e,X){B=faA(B,e,X);
dB(R,V,B)||R.addEventListener(V,B);return B},m$b=function(B){for(var R=_.h(B.polySiParams.reactiveSchemas),V=R.next();!V.done;V=R.next())V=V.value,V.type==="compute"||V.type==="computeWithMethod"?dD_(B.signalProxy,V,B):V.type==="redux"?xDd(B.signalProxy,V,B.store):V.type==="signal"&&V.readOnly&&ToA(B.signalProxy,V)},$$5=function(B){for(var R=_.h(B.polySiParams.reactiveSchemas),V=R.next(),e={};!V.done;e={schema$jscomp$12:void 0},V=R.next())e.schema$jscomp$12=V.value,e.schema$jscomp$12.type==="notify"?
vgS(B.signalProxy,e.schema$jscomp$12,B.hostElement):e.schema$jscomp$12.type==="observe"?KZS(B.signalProxy,e.schema$jscomp$12,B):e.schema$jscomp$12.type==="reflect"&&B.signalProxy.effect(function(Y){return function(){var t=B.signalProxy.getWithPath([Y.schema$jscomp$12.propertyKey]);
B.reflecting=!0;ggK(B.hostElement,Y.schema$jscomp$12.propertyKey,t,!0);B.reflecting=!1}}(e));
if(B.reflectedAttributes)for(R=_.h(Object.entries(B.reflectedAttributes)),e=R.next(),V={};!e.done;V={key$jscomp$873:void 0,value$jscomp$8803:void 0},e=R.next()){var X=_.h(e.value);e=X.next().value;X=X.next().value;V.key$jscomp$873=e;V.value$jscomp$8803=X;B.signalProxy.effect(function(Y){return function(){B.reflecting=!0;ggK(B.hostElement,Y.key$jscomp$873,(0,Y.value$jscomp$8803)(),!0);B.reflecting=!1}}(V))}};
_.p=I_.prototype;_.p._setPendingProperty=function(B,R){this.set(B,R);return!1};
_.p._enableProperties=function(){};
_.p._setPendingPropertyOrPath=function(B,R){this.notifyPath(B,R);return!1};
_.p._addPropertyEffect=function(){};
_.p._stampTemplate=function(){throw Error("Jg");};
_.p.fire=function(B,R,V){R=R===void 0?{}:R;V=V===void 0?{}:V;var e,X,Y={bubbles:(e=V.bubbles)!=null?e:!0,cancelable:!!V.cancelable,composed:(X=V.composed)!=null?X:!0},t;return _.OI(CEN((t=V.node)!=null?t:this.hostElement),B,R,Y)};
_.p.get=function(B,R){var V=lp(B);return R?laI(R,V):B==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(V)};
_.p.linkPaths=function(){};
_.p.listen=function(B,R,V){B=CEN(B);this.boundListeners!=null||(this.boundListeners=new WeakMap);var e=this.boundListeners.get(B);e||(e={},this.boundListeners.set(B,e));var X=R+V;e[X]||(e[X]=kfS(this,B,R,V))};
_.p.notifyPath=function(B,R){this.signalProxy.notifyPath(lp(B),arguments.length===2?{value:R}:void 0)};
_.p.canNotifyPath=function(B){var R,V;return this.mutablePropNames.has(B)&&!((R=this.signalProxy.options)==null?0:(V=R.immutableProps)==null?0:V.has(B))};
_.p.notifySplices=function(B,R){this.signalProxy.notifySplices(lp(B),R)};
_.p.pop=function(B){var R=this.signalProxy;B=lp(B);var V=_.h(B);B=V.next().value;V=Fn(V);return a_(R,B).pop(V)};
_.p.push=function(B){var R=_.HB.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[lp(B)].concat(_.MI(R)))};
_.p.set=function(B,R,V){if(V)throw Error("Kg");B==="hidden"?this.hostElement.hidden=!!R:this.signalProxy.setWithPath(lp(B),R)};
_.p.setProperties=function(B){B=_.h(Object.entries(B));for(var R=B.next();!R.done;R=B.next()){var V=_.h(R.value);R=V.next().value;V=V.next().value;this[R]=V}};
_.p.splice=function(B,R,V){var e=_.HB.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[lp(B),R,V].concat(_.MI(e)))};
_.p.unlinkPaths=function(){};
_.p.unlisten=function(B,R,V){B=CEN(B);if(this.boundListeners){var e=this.boundListeners.get(B);if(e){V=R+V;var X=e[V];X&&(wB(B,R,X)||B.removeEventListener(R,X),delete e[V])}}};
_.p.unshift=function(B){var R=_.HB.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[lp(B)].concat(_.MI(R)))};
_.mh.Object.defineProperties(I_.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 psx=[Array,Boolean,Date,Number,Object,String];var tZN=!1;var fF=function(){var B=HTMLElement.apply(this,arguments)||this;B.restamp=!1;B.notifyDomChange=!1;B.JSC$11282_didCallConnected=!1;B.JSC$11282_renderDebouncer=null;B.disableTemplateUpdateSignalImpl=Ex()?void 0:_.WU(!1,void 0,"zLXz1e");var R;B.getDisableTemplateUpdate=(R=B.disableTemplateUpdateSignalImpl)==null?void 0:R[0];var V;B.setDisableTemplateUpdate=(V=B.disableTemplateUpdateSignalImpl)==null?void 0:V[1];return B};
_.l(fF,HTMLElement);var CM_=function(B){B.conditionSignalImpl!=null||(B.conditionSignalImpl=new Mq(_.WU(!1,void 0,"wcuOQ")));return B.conditionSignalImpl};
_.p=fF.prototype;_.p.showHideChildren=function(B){PMv(this,B,this.if)};
_.p.attributeChangedCallback=function(B,R,V){if(this.JSC$11282_didCallConnected)throw Error("Og`"+B);B==="notify-dom-change"?this.notifyDomChange=V!==null:B==="restamp"&&(this.restamp=V!==null)};
_.p.debounceRender=function(){this.JSC$11282_renderDebouncer=_.p8(this.JSC$11282_renderDebouncer,x_,this.JSC$11282_renderImpl.bind(this));_.Y6(this.JSC$11282_renderDebouncer)};
_.p.disconnectedCallback=function(){var B=(0,_.OX)(this).parentNode;(!B||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in B&&!B.host)&&nyo(this)};
_.p.connectedCallback=function(){var B=this;this.JSC$11282_didCallConnected=!0;TF4?WEY():this.style.display="none";this.parentSignalProxy.effect(function(){CM_(B).getWithPath([]);B.debounceRender()})};
_.p.render=function(){_.bx()};
_.p.JSC$11282_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var B=this.if;if(B){a:{var R=(0,_.OX)(this).parentNode;if(this.hasInstance()){var V=this.instance.children;if((V==null?0:V.length)&&(0,_.OX)(this).previousSibling!==V[V.length-1])for(var e=0;e<V.length;e++)(0,_.OX)(R).insertBefore(V[e],this)}else{if(!R){R=!1;break a}uIa(this,R)}R=!0}if(!R)return}else this.restamp&&nyo(this);PMv(this,!1,B);B&&O3l(this);x$2&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.p.hasInstance=function(){return!!this.instance};
var uIa=function(B,R){var V=B.parentSignalProxy;if(Ex()){var e=_.h(_.WU(!0,void 0,"wXzgnc"));var X=e.next().value;e=e.next().value;V=B.parentSignalProxy}else{var Y;var t=new D2((Y=o4b(B))!=null?Y:{},function(J){var G=a_(B.parentSignalProxy,J).getChangeRecordSignal([]);J=_.WU(void 0,void 0,"mryEkc");var y=new Mq(J);t.effect(function(){if(B.getDisableTemplateUpdate&&!B.getDisableTemplateUpdate()){var S=G();y.notifyPath(lp(S.path),{value:S.value})}});
return y});
B.parentSignalProxy.childSignalProxies.push(t);var b=V=t}V=D4A(B.templateInfo,B.templateInfo.nodeInfoList,V,{eventListenerHost:B.eventListenerHost,hasInsertionPoint:B.templateInfo.hasInsertionPoint,thisCtx:B.eventListenerHost,enabledSignal:Ex()?X:void 0,getModel:function(){return o4b(B)}}).root;
B.instance={root:V,children:[],hidden:!1,signalProxy:b,getTemplateUpdatesEnabled:X,setTemplateUpdatesEnabled:e};b=_.h(V.childNodes);for(X=b.next();!X.done;X=b.next())B.instance.children.push(X.value);(0,_.OX)(R).insertBefore(B.instance.root,B)},o4b=function(B){if((B=B.parentSignalProxy.model)&&!B.hostElement){var R={},V;
for(V in B)B.hasOwnProperty(V)&&(R[V]=B[V]);return R}},nyo=function(B){if(B.instance){var R=B.instance.children;
if(R.length){var V=(0,_.OX)(R[0]).parentNode;if(V){V=(0,_.OX)(V);for(var e=0;e<R.length;e++)V.removeChild(R[e])}}Ex()?B.instance.setTemplateUpdatesEnabled(!1):B.instance.signalProxy.dispose();B.instance=void 0}},PMv=function(B,R,V){R=R||!V;
B.instance&&B.instance.hidden!==R&&(B.instance.hidden=R,hHI(R,B.instance.children))},O3l=function(B){if(Ex()){var R=B.instance;
R&&Ta(B.parentSignalProxy.owner,function(){return!R.getTemplateUpdatesEnabled()})&&R.setTemplateUpdatesEnabled(!0)}else B.setDisableTemplateUpdate(!1)};
_.mh.Object.defineProperties(fF.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var B=this;return Ta(this.parentSignalProxy.owner,function(){return CM_(B).getWithPath([])})},
set:function(B){B||(Ex()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));CM_(this).setWithPath([],!!B)}}});
_.mh.Object.defineProperties(fF,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",fF);var BaT=[],lG=function(){var B=HTMLElement.apply(this,arguments)||this;B.as="item";B.indexAs="index";B.itemsIndexAs="itemsIndex";B.targetFramerate=20;B.notifyDomChange=!1;B.isDetached=!1;B.JSC$11289_renderDebouncer=null;B.instances=[];B.chunkingId=null;B.chunkCount=null;B.shouldMeasureChunk=!1;B.shouldContinueChunking=!1;B.renderStartTime=null;B.JSC$11289_didCallConnected=!1;return B};
_.l(lG,HTMLElement);var RDv=function(B){B.itemSignalImpl!=null||(B.itemSignalImpl=new Mq(_.WU(BaT,void 0,"YBrqgf")));return B.itemSignalImpl},VW_=function(B,R){Array.isArray(R)||(R=BaT);
RDv(B).setWithPath([],R)};
_.p=lG.prototype;_.p.showHideChildren=function(B){for(var R=_.h(this.instances),V=R.next();!V.done;V=R.next())hHI(B,V.value.children)};
_.p.notifyPath=function(B,R){B=lp(B);B[0]==="items"&&(B.length===1?VW_(this,R):RDv(this).setWithPath(B.slice(1),R))};
_.p.canNotifyPath=function(B){return B==="items"};
_.p.attributeChangedCallback=function(B,R,V){if(this.JSC$11289_didCallConnected)throw Error("Pg`"+B);B==="as"?this.as=V:B==="index-as"?this.indexAs=V:B==="items-index-as"?this.itemsIndexAs=V:B==="initial-count"?this.initialCount=Number(V):B==="notify-dom-change"?this.notifyDomChange=V!==null:B==="target-framerate"&&(this.targetFramerate=Number(V))};
_.p.disconnectedCallback=function(){this.isDetached=!0;for(var B=0;B<this.instances.length;B++)eDG(this,B);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.p.connectedCallback=function(){var B=this,R=RDv(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var X=R(),Y=lp(X.path);if(Y[0]===void 0||Y[0]==="splices"||Y[0]==="length")B.debounceRender();else{var t=Y[0];if(t=B.instances[typeof t==="string"?Math.floor(Number(t)):t])Y=[B.as].concat(_.MI(Y.slice(1))),t.signalProxy.notifyPath(Y,X)}});
this.JSC$11289_didCallConnected=!0;TF4?WEY():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var V=(0,_.OX)((0,_.OX)(this).parentNode),e=0;e<this.instances.length;e++)V.insertBefore(this.instances[e].root,this);this.chunkingId&&this.render()}};
_.p.debounceRender=function(){this.JSC$11289_renderDebouncer=_.p8(this.JSC$11289_renderDebouncer,x_,this.JSC$11289_renderImpl.bind(this));_.Y6(this.JSC$11289_renderDebouncer)};
_.p.render=function(){this.debounceRender();_.bx()};
_.p.JSC$11289_renderImpl=function(){var B=this,R=this.items,V=Xga(this,R.length);pg4(this,R,V);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){B.chunkingId=null;if(B.shouldMeasureChunk){var e=performance.now()-B.renderStartTime;B.chunkCount=Math.round(Math.ceil(1E3/B.targetFramerate)/e*B.chunkCount)||1}B.shouldContinueChunking&&B.debounceRender()}));
x$2&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var Xga=function(B,R){var V=R,e=B.instances.length;if(B.initialCount){if(B.chunkCount){var X=Math.min(Math.max(R-e,0),B.chunkCount);V=Math.min(e+X,R)}else V=Math.min(R,B.initialCount),X=Math.max(V-e,0),B.chunkCount=X||1;B.shouldMeasureChunk=X===B.chunkCount;B.shouldContinueChunking=V<R;B.renderStartTime=performance.now()}return V},pg4=function(B,R,V){for(var e=0;e<V;e++){var X=B.instances[e],Y=R[e];
X?(X.signalProxy.setWithPath([B.as],Y),X.signalProxy.setWithPath([B.indexAs],e)):Ygv(B,Y,e)}for(R=B.instances.length-1;R>=e;R--)V=B,X=R,eDG(V,X),_.h(V.instances.splice(X,1)).next().value.signalProxy.dispose()},eDG=function(B,R){B=B.instances[R];
R=(0,_.OX)(B.root);for(var V=0;V<B.children.length;V++)R.appendChild(B.children[V])},Ygv=function(B,R,V){var e={};
R=Object.assign({},hDS(B),(e[B.as]=R,e[B.indexAs]=V,e[B.itemsIndexAs]=V,e));var X=new D2(R,function(t){if(t!==B.as&&t!==B.indexAs){if(t===B.itemsIndexAs)return a_(X,B.indexAs);var b=a_(B.parentSignalProxy,t).getChangeRecordSignal([]);t=_.WU(void 0,void 0,"Mu2Bwb");var J=new Mq(t);X.effect(function(){var G=b();J.notifyPath(lp(G.path),{value:G.value})});
return J}});
B.parentSignalProxy.childSignalProxies.push(X);e=D4A(B.templateInfo,B.templateInfo.nodeInfoList,X,{eventListenerHost:B.eventListenerHost,getModel:function(){var t={};return Object.assign({},hDS(B),(t[B.as]=X.model[B.as],t[B.indexAs]=X.model[B.indexAs],t[B.itemsIndexAs]=X.model[B.indexAs],t))},
hasInsertionPoint:B.templateInfo.hasInsertionPoint,thisCtx:B.eventListenerHost,methodInvocationRequirement:vyl,enabledSignal:B.stampingEnabled}).root;R={root:e,children:[],signalProxy:X};e=_.h(e.childNodes);for(var Y=e.next();!Y.done;Y=e.next())R.children.push(Y.value);e=(e=B.instances[V+1])?e.children[0]:B;(0,_.OX)((0,_.OX)(B).parentNode).insertBefore(R.root,e);B.instances[V]=R},hDS=function(B){if((B=B.parentSignalProxy.model)&&!B.hostElement){var R={},V;
for(V in B)B.hasOwnProperty(V)&&(R[V]=B[V]);return R}};
lG.prototype.itemForElement=function(B){var R=this,V=this.instances.find(function(e){return e.children.includes(B)});
if(V)return Ta(this.parentSignalProxy.owner,function(){return V.signalProxy.getWithPath([R.as])})};
lG.prototype.indexForElement=function(B){var R=this.instances.findIndex(function(V){return V.children.includes(B)});
return R>=0?R:void 0};
_.mh.Object.defineProperties(lG.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var B=this;return Ta(this.parentSignalProxy.owner,function(){return RDv(B).getWithPath([])})},
set:function(B){VW_(this,B)}},
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}}});
_.mh.Object.defineProperties(lG,{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",lG);var tWo,Wu2;_.zk=new _.u0("STATE_STORE_TOKEN");tWo=new _.u0("SELECT_TOKEN");Wu2=new _.u0("DISPATCH_TOKEN");var GR5={getSelectFn:function(){var B;return(B=_.Oz().resolve(_.uj(tWo)))!=null?B:b3N},
getDispatchFn:function(){var B;return(B=_.Oz().resolve(_.uj(Wu2)))!=null?B:_.QL().dispatch.bind(_.QL())},
getAppStore:function(){return _.Oz().resolve(_.zk)}},J05,NFq=!1;var H35=void 0;var bb2=function(){};
bb2.prototype.hasAttribute=function(B){if(B==="dir")return!1;if(B==="disable-upgrade"){var R,V;return(V=(R=this.hostElement)==null?void 0:R.hasAttribute("disable-upgrade"))!=null?V:!1}throw Error("Qg`"+B);};
bb2.prototype.attributeChangedCallbackWrapper=function(B,R,V){if(B==="disable-upgrade"&&this.__isUpgradeDisabled&&V===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var e;((e=this.hostElement)!=null?e:this).isConnected&&this.connectedCallback()}else R===V||this.__isReflecting||this.attributeChangedCallback(B,R,V)};
bb2.prototype.getExtraMethodsToForward=function(){for(var B=this,R=[],V=_.h(JLo),e=V.next(),X={};!e.done;X={tagName$jscomp$52:void 0,name$jscomp$533:void 0},e=V.next())X.name$jscomp$533=e.value,e=void 0,X.name$jscomp$533==="_setPendingProperty"?(X.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),e=function(Y){return function(t,b,J){Ux(Y.tagName$jscomp$52,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return B._setPendingProperty(t,b,J)}}(X)):e=function(Y){return function(){return B[Y.name$jscomp$533].apply(B,
_.MI(_.HB.apply(0,arguments)))}}(X),R.push([X.name$jscomp$533,
e]);return R};
for(var aZo=FE2(s3R((0,_.M7)(bb2))),x$d=["disabled","disable-upgrade"],je_=(0,_.M7)(function(){}),UZ4=new Set(Object.getOwnPropertyNames(je_.prototype)),Eyd=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.MI(UZ4))),vyN=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),JLo=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),NaG=new Set([].concat(_.MI(vyN),_.MI(JLo),_.MI(UZ4))),G5a=_.h(NaG),yLS=G5a.next();!yLS.done;yLS=G5a.next())BoZ.add(yLS.value);var IZ_={created:function(){r7p(this);this.initializeInjection()}};var gyK=!1,Zq=window.ShadyDOM,O3N=["appendChild","insertBefore","removeChild","replaceChild"],uIp=[Node];Zq&&uIp.push(Zq.Wrapper);var Xgp,pg5,tWS={};var CJ=new Set,ma="",Wud="";var $p,Pc=new Set;var HbI=new Set("context didCallReady is info params signalProxy".split(" ")),k5d="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),DZ5="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Sg5=WJ({entities:Sjq}),Hbb=new r6(Sg5);var aD=function(){return _.tM.apply(this,arguments)||this};
_.l(aD,_.tM);_.mh.Object.defineProperties(aD.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Hbb}}});
aD=_.r([_.Wc()],aD);_.dM=[SS.prototype,aD.prototype];_.wM={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var B=this,R={};setTimeout(function(){var V;return _.OI((V=B.hostElement)!=null?V:B,"yt-live-chat-add-tooltip-target",R)},0);
this.handler_=R.handler},
detached:function(){if(this.handler_){var B;this.handler_.removeElementFromSupportingTooltips((B=this.hostElement)!=null?B:this)}this.handler_=null}}};_.VM=new _.u0("ICON_MANAGER_TOKEN");var MWo=[48,20,18,16,15,13,12],g4u=new Map,cLY=new Set,E4_=new Set,qgS=new Set,Isx=new Set,QeY=new Set,ibq=new Promise(function(B){var R=!1,V=!1,e=!1,X=[],Y=function(t){if("detail"in t)if(t=t.detail,t.name==="yt-icons")AL5(t),R=!0;else if(t.name==="yt-sys-icons")AL5(t),V=!0;else{var b;((b=t.name)==null?0:b.includes("yt-sys-icons"))&&t.size!==24&&(AL5(t,!0),X.push(t.size),X.length===MWo.length&&(e=!0))}R&&V&&e&&(window.removeEventListener("iron-iconset-added",Y),B())};
window.addEventListener("iron-iconset-added",Y)}),FuN=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"]]);_.Tk={};_.Tk.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.FF,computeHref_:function(B,R){R=R===void 0?!1:R;if(!B||B.commandExecutorCommand)return null;var V=$9u(B,R);return R||V!==null?V?_.k("enable_polymer_resin")?_.ym(V).toString():V:null:(_.KE(new _.H8("computeHref was null",this.is,B)),null)},
computeOptionalHref_:function(B){return this.computeHref_(B,!0)},
computeNofollow_:function(B){return B?cJd(B)?"nofollow":null:null},
computeIcon_:function(B){return B&&B.iconType?_.RT(B.iconType):""},
resolveCommand:function(B,R,V){R=R===void 0?{}:R;return _.Xc(B,this.hostElement,R,V===void 0?!1:V)}};var DZ4,xZ;_.k52={};DZ4=null;
xZ={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_=TYA(this.viewroot));_.xp(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var B=this;this.unobserve_();if(_.k("kevlar_vimio_use_shared_monitor"))Pdd(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var R=[];this.visibilityOptionVisible_&&R.push(this.visibilityObserver.observe(this.hostElement,function(){return B.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&R.push(this.visibilityObserver.observe(this.hostElement,function(){return B.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&R.push(this.visibilityObserver.observe(this.hostElement,function(){return B.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=R}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Zbp(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 B=_.xl(this.parentNode,function(V){var e,X=(e=V.polymerController)!=null?e:V;return!!X.getVisibilityObserverForChild&&X.getVisibilityObserverForChild()},!0);
if(B){var R;this.localVisibilityObserver_=((R=B.polymerController)!=null?R:B).getVisibilityObserverForChild()}else DZ4||(DZ4=TYA()),this.localVisibilityObserver_=DZ4;return this.localVisibilityObserver_},visibilityCallback:function(B){B?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.k("kevlar_use_vimio_behavior")||(xZ={});xZ&&!_.k("kevlar_use_vimio_behavior")&&(delete xZ.attached,delete xZ.detached);_.k52.YtVisibilityObserverBehavior=[xZ];var fso={};fso.YtVisualElementBehavior=[_.k52.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.k("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.k("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var B=this.getScreenLayer&&this.getScreenLayer(),R=this.getVisibilityLogger();R&&R.reportShown(this,void 0,B)}},
onHidden:function(){if(_.k("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.k("kevlar_vimio_use_shared_monitor")){var B=this.getScreenLayer&&this.getScreenLayer(),R=this.getVisibilityLogger();R&&R.reportHidden(this,void 0,B)}},
getVisibilityLogger:function(){return _.k("kevlar_use_vimio_behavior")?_.hJ():null},
shouldSkipLogging:function(){if(_.vE("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var B=this.getParentRenderer&&this.getParentRenderer();if(!B)return!1;var R,V=(R=B.polymerController)!=null?R:B;if(!V.data)return!1;B=this.data.trackingParams;B=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:B;var e;R=(e=V.data)==null?void 0:e.trackingParams;var X,Y;R=((X=V.data)==null?0:X.loggingDirectives)?(Y=V.data)==null?void 0:Y.loggingDirectives.trackingParams:R;return B&&R&&B===
R}}];var o7p=new Map,N9;var R9Z=function(B){this.layer=B},EQ=function(B){return B.layer!==void 0?B.layer:B.parent?EQ(B.parent):B.layer=0};var phZ;_.O={};phZ=0;_.O.YtRendererBehavior=[_.Tk.YtComponentBehavior,fso.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_:_.k("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var B,R;(R=(B=this.monitorScrollElement)!=null?B:this.hostElement)==null||R.removeEventListener("scroll",_.Bc(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();uAZ(this.hostElement);x4v(_.pF(),this.hostElement);ri.delete(this.hostElement)},
registerRenderer:function(B){var R;((R=B.polymerController)!=null?R:B).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(B),this.markDirty())},
unregisterRenderer_:function(B){this.useVimio_||(this.childCache_.delete(B),this.markDirty())},
attached:function(){var B=this,R=this.getParentRenderer();if(R){var V,e,X;(e=(V=(X=R.polymerController)!=null?X:R).registerRenderer)==null||e.call(V,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var Y,t;(t=(Y=this.monitorScrollElement)!=null?Y:this.hostElement)==null||t.addEventListener("scroll",_.Bc(this,this.onScroll))}_.dV.addJob(function(){B_5(B.hostElement)},8);
V=new R9Z(this.screenLayer||void 0);(R=gi(R))&&R.layerNode&&(V.parent=R.layerNode);R={};Awq(this.hostElement,(R.isRenderer=!0,R.layerNode=V,R[Q1]=this.data,R))},
getParentRenderer:function(){for(var B=this.hostElement.parentNode,R,V;B&&((R=gi(B))==null||!R.isRenderer)&&!((V=B.polymerController)!=null?V:B).isRenderer_;)B=B.parentNode||B.host;return B},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.k("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.KQ("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.k("debug_web_ve_data")&&this.data.trackingParams){var B="";try{B=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(V){_.Tn(V)}if(B){var R=YIK(B,1);R!==void 0&&(this.hostElement.dataset.veIndex=String(R));B=YIK(B,2);
B!==void 0&&(this.hostElement.dataset.ve=String(B))}}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,_.k("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.U5(this.data.loggingDirectives.trackingParams)),this.visualElement=_.tJ(_.WK(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var B=this.data.targetId;_.vnl(_.pF(),B,this.hostElement)}else x4v(_.pF(),this.hostElement)},
onScroll:function(){var B=Date.now();B-this.lastHandledScroll_<50||(this.lastHandledScroll_=B,this.markDirty())},
markDirty:function(){_.k("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Ym5(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var B=this.getParentRenderer();if(B&&(B=gi(B))&&B.layerNode)return EQ(B.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.MI(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var B=0;B<this.data.impressionEndpoints.length;B++)this.sendImpression(this.data.impressionEndpoints[B]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(B){B.clickTrackingParams&&delete B.clickTrackingParams;var R,V;(B==null?0:(R=B.commandMetadata)==null?0:(V=R.webCommandMetadata)==null?0:V.sendPost)?_.VD(this.hostElement,[B,{impression:!0}]):_.eO(this.hostElement,[B],this.hostElement)},
logExplicitClick:function(B){var R=_.TE(this.getScreenLayer());if(R){var V,e=(V=B.polymerController)!=null?V:B;B=e.visualElement;e=e.trackingParams||e.clickTrackingParams;!B&&e&&(B=_.U5(e));B&&_.iF(R,B)}}}];var lsR={},LF=function(){return _.tM.apply(this,arguments)||this};
_.l(LF,_.tM);LF.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
LF.prototype.onPdgItemBehaviorClick=LF.prototype.onPdgItemBehaviorClick;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],LF.prototype,"data",void 0);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],LF.prototype,"onPdgItemBehaviorClick",null);LF=_.r([_.Wc()],LF);lsR.YtPdgLiveChatItemBehavior=[LF.prototype,_.O.YtRendererBehavior];var zD2;var as2;_.vD={};_.vD.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var KF=function(){var B=Cn.apply(this,arguments)||this;B.switchTemplateAtRegistration=!1;return B};
_.l(KF,Cn);KF.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||bop(this),_.c7x(this,"doRender"),this.doRender())};
KF.prototype.debounceRender=function(){this.templatingFn&&_.LJ(this,"doRender",this.doRender)};
KF.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Tn(Error("$g"))};
KF.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
KF=_.r([wSq()],KF);var dZS=KF;var wgl=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ID={},N_p=(ID[1]={filterString:null,isUnwrappable:null,unwrap:null},ID[2]={filterString:function(B,R,V){return eX(V)},
isUnwrappable:function(B){return B instanceof zm},
unwrap:function(B){return dc(B)}},ID[3]={filterString:function(B,R,V){return wgl.test(V)?V:Gm.toString()},
isUnwrappable:function(B){return JR(B)},
unwrap:function(B){return _.j4(B)}},ID[4]={filterString:function(){return Gm.toString()},
isUnwrappable:function(B){return B instanceof p$},
unwrap:function(B){return _.hR(B).toString()}},ID[5]={filterString:function(B,R,V){return V},
isUnwrappable:function(B){return typeof B==="string"},
unwrap:function(B){return B.toString()}},ID[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(B){return B instanceof _.vB},
unwrap:function(B){return Ia(B)}},ID[8]={filterString:function(B,R,V){V=String(V).toLowerCase();
return H6Z(B,R,V)?V:"zClosurez"},
isUnwrappable:null,unwrap:null},ID[10]={filterString:null,isUnwrappable:null,unwrap:null},ID);P5[vU["default"]]=yXN;var SmN=[];var weq=M$d("A"),Tdu=M$d("BUTTON"),Gj=M$d("DIV"),xc_=M$d("LABEL");(function(){var B=gA;gA=function(R){B==null||B(R);HK(function(){for(var V=0;V<R.length;V++)HoI(R[V])})}})();var Eb=function(){var B=_.tM.apply(this,arguments)||this;B.hasUnmounted=!1;return B};
_.l(Eb,_.tM);_.p=Eb.prototype;_.p.beforeRegister=function(){var B=this.doIdomRender;this.templatingFn?_.Tn(Error("Zg")):(this.templatingFn=B,this.switchTemplateAtRegistration=!0,U0d(this))};
_.p.attached=function(){};
_.p.detached=function(){HoI(this.hostElement)};
_.p.renderIdom=function(){throw Error("bh");};
_.p.doIdomRender=function(){var B=this;hqp(this.hostElement,function(){B.renderIdom()})};
Eb=_.r([_.Wc()],Eb);var Ta_=[dZS.prototype,Eb.prototype];var xZv,LuS=function(){return xZv!==void 0?xZv:xZv=document.createElement("template")};
document.head.appendChild(LuS().content);var v4_;var Kuv,Is4=function(){return Kuv!==void 0?Kuv:Kuv=document.createElement("template")};
document.head.appendChild(Is4().content);var E4G;var QeT=document.head,qgo=QeT.appendChild,cLT;if(E4G===void 0){var AL4=document.createElement("template");_.a(AL4,"\x3c!--css-build:shady--\x3e");AL4.content.insertBefore(Is4().content.cloneNode(!0),AL4.content.firstChild);E4G=AL4}cLT=E4G;qgo.call(QeT,cLT.content);var ibJ,seS=function(){return ibJ!==void 0?ibJ:ibJ=document.createElement("template")};
document.head.appendChild(seS().content);var Ful;var rLo=document.head,g4v=rLo.appendChild,Zba;if(Ful===void 0){var mZG=document.createElement("template");_.a(mZG,"\x3c!--css-build:shady--\x3e");mZG.content.insertBefore(seS().content.cloneNode(!0),mZG.content.firstChild);Ful=mZG}Zba=Ful;g4v.call(rLo,Zba.content);var $Zl=document.head,Cdv=$Zl.appendChild,Pd2;if(v4_===void 0){var n4R=document.createElement("template");_.a(n4R,"\x3c!--css-build:shady--\x3e");n4R.content.insertBefore(LuS().content.cloneNode(!0),n4R.content.firstChild);v4_=n4R}Pd2=v4_;Cdv.call($Zl,Pd2.content);var uAR,ObS=function(){return uAR!==void 0?uAR:uAR=document.createElement("template")};
document.head.appendChild(ObS().content);var o7a;_.E5=new _.u0("DARK_THEME_TOKEN");var JeK=new _.P("accessibilityProperties");var bA5=new _.P("layoutProperties");var jnx=new _.P("imageType");var B_4={};if("ytAttributedStringLinkHoverColor"in B_4)throw Error("eh`ytAttributedStringLinkHoverColor");(function(B,R){B_4[B]="value"in R&&"unit"in R?zgd(B,R):function(V){try{return R(V)}catch(e){throw Error("ch`"+B+"`"+e.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var RgJ=function(B){var R=this;this.holdTime=B===void 0?500:B;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(V){var e=new CustomEvent("LONG_PRESS"),X;(X=V.changedTouches[0].target)==null||X.dispatchEvent(e)};
this.ontouchstart=function(V){R.longPressTimeout=_.db(_.dV,function(){R.onlongpress(V);R.longPressOccurred=!0},R.holdTime)};
this.ontouchmove=function(){_.dV.cancelJob(R.longPressTimeout);R.longPressTimeout=NaN;R.longPressOccurred=!1;R.moveOccurred=!0};
this.ontouchend=function(V){if(R.longPressTimeout&&!R.longPressOccurred&&!R.moveOccurred){var e;(e=V.changedTouches[0].target)==null||e.dispatchEvent(new Event("click"))}_.dV.cancelJob(R.longPressTimeout);R.longPressTimeout=NaN;R.longPressOccurred=!1;R.moveOccurred=!1}};var m0N=function(B,R){RgJ.call(this,R);var V=this;this.callback=B;this.onlongpress=function(e){var X;(X=V.callback)==null||X.call(V,e)}};
_.l(m0N,RgJ);var $0_=function(B,R){var V=Object.assign({},R);B=_.h(new Map([["ontouchstart",B.ontouchstart],["ontouchend",B.ontouchend],["ontouchmove",B.ontouchmove]]));for(var e=B.next(),X={};!e.done;X={eventName$jscomp$87:void 0,eventHandler$jscomp$3:void 0},e=B.next()){var Y=_.h(e.value);e=Y.next().value;Y=Y.next().value;X.eventName$jscomp$87=e;X.eventHandler$jscomp$3=Y;R[X.eventName$jscomp$87]=function(t){return function(b){var J;(J=V[t.eventName$jscomp$87])==null||J.call(V,b);(0,t.eventHandler$jscomp$3)(b)}}(X)}};_.oC=new _.u0("COMMAND_HANDLER_TOKEN");var d0_=new _.P("parallelCommand");var x05=new _.P("performOnceCommand");var T_5=new _.P("serialCommand");var Lsp=void 0;var V$v=function(){this.data=[]};
V$v.prototype.push=function(B){this.data.push(B)};var XH={};_.WU(XH,void 0,"sgPmTd");_.WU(null,void 0,"jypsq");var l65=new V$v;var AXo=[DY4,fKT,lK4,aKJ,zNG,k_h,dYl,wdS];var tNu=new _.P("bracketTextDecorator");var IT=new _.P("highlightTextDecorator");_.q9=new _.u0("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var eLp=function(){},egS;
(egS=window.requestIdleCallback)==null||egS.bind(window);var pZS={calledOnce:!1,state:"visible"},XZo={calledOnce:!1,state:"hidden"};var eSu=new _.u0("ICON_RENDERER_TOKEN"),Xhb=new _.u0("ICON_WIZ_COMPONENT_TOKEN");_.Us=_.sx(function(B){var R=B.icon;var V=B.active;var e=B.className;var X=B.style;var Y=B.dataSelected;var t=B.dataDisabled;var b=B.role;var J=B.animateIcon;var G=B.themeOverride;var y=B.ariaHidden;var S=B.ariaExpanded;var M=B.ariaLabel;var f=B.id;var z=B.size;var T=B.iconFilter;return _.N(_.H,{cond:R,then:function(){var L=_.Oz().resolve(Xhb);return _.N(L,{icon:R,dataSelected:Y,dataDisabled:t,animateIcon:J,themeOverride:G,ariaExpanded:S,id:f,active:V,size:z,role:b,className:e,ariaHidden:y,ariaLabel:M,
style:function(){return X!=null&&X()||z==null||!z()?X==null?void 0:X():"width: "+(z==null?void 0:z())+"px;height: "+((z==null?void 0:z())+"px;")},
iconFilter:T})}})},"b");
_.Us.idomCompat=!0;var TIp=window.devicePixelRatio||1;var Kxq=new Map([["yt_outline_bag_black_24","bag"]]);var Qf=function(B){var R=this;this.margin=.1;this.whenInViewportWithMargin=B;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){R.requestScan()});
window.addEventListener("touchend",function(){R.requestScan()});
window.addEventListener("updateui",function(){R.requestScan()});
var V=new _.o7((0,_.M2)(this.requestScan,this),100);window.addEventListener("scroll",function(){V.fire()},!0);
window.addEventListener("resize",(0,_.M2)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){R.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.M2)(this.requestScan,this))};
Qf.prototype.observe=function(B){this.observationTargets.includes(B)||this.observationTargets.push(B)};
Qf.prototype.unobserve=function(B){this.observationTargets=this.observationTargets.filter(function(R){return R!==B})};
Qf.prototype.requestScan=function(){var B=this;this.scanRequested||(HK(function(){phR(B)}),this.scanRequested=!0)};
var phR=function(B){var R=(1+B.margin)*(document.documentElement.clientHeight||window.innerHeight);B.observationTargets=B.observationTargets.filter(function(V){var e=V.getBoundingClientRect();(e=R>e.top&&!!e.height)&&B.whenInViewportWithMargin(V);return!e&&V.parentNode});
B.scanRequested=!1};
Qf.prototype.disconnect=function(){this.observationTargets=[]};var Ym4,Wsb;Ym4=_.h(_.WU(qwZ(),void 0,"O3X2wd"));_.t$G=Ym4.next().value;Wsb=Ym4.next().value;window.addEventListener("resize",function(){Wsb(qwZ())});var boa={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},JXb=void 0,j1h=window.innerWidth,U02=window.innerHeight;window.addEventListener("resize",function(){JXb=void 0});var N_a;if("IntersectionObserver"in window)N_a=iAS();else{if(JXb===void 0){var GDG;GDG="matchMedia"in window?window.matchMedia(boa.landscape+","+boa.portrait).matches:void 0;JXb=GDG!==void 0?GDG:j1h>=930&&U02>=550||j1h>=550&&U02>=930}N_a=JXb?{observe:function(B){HK(function(){var R;(R=B.onViewportEntered)==null||R.call(B)})},
unobserve:function(){}}:new Qf(function(B){HK(function(){var R;
(R=B.onViewportEntered)==null||R.call(B)})})}var ce_=N_a;var yXl=_.sx(function(B){var R=!1,V=_.Zh(function(e){_.aK(function(){R=!0;e.onload=null})});
_.lJ(function(){var e,X=(e=B.data)==null?void 0:e.call(B),Y,t=(Y=B.getSrc)==null?void 0:Y.call(B).cb,b;e=(b=B.config)==null?void 0:b.call(B);if(b=V.value)if(Y=function(G,y){if(!R)return t?t(G,y):G},reI(b,e),_.k("web_image_dont_reload_same_src")&&FxK(b,X,Y))_.k("web_image_dont_reload_same_src_simulate_load")&&b.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var J;sn5(b,X||null,Y,e,(J=B.lazy)==null?void 0:J.call(B))}});
return _.N("img",{el:V})},"c");
yXl.idomCompat=!0;_.ia=_.sx(function(B){var R=function(){var V,e=B.data(),X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu,n,Yd,kd,a5,lo,io,vd,cd,ES;var $d={contentMode:(X=B.contentMode)==null?void 0:X.call(B),loadedClass:(Y=B.loadedClass)==null?void 0:Y.call(B),isPreloaded:(t=B.isPreloaded)==null?void 0:t.call(B),notifyOnLoaded:(b=B.notifyOnLoaded)==null?void 0:b.call(B),notifyOnUnloaded:(J=B.notifyOnUnloaded)==null?void 0:J.call(B),preferredThumbnail:(G=B.preferredThumbnail)==null?void 0:G.call(B),preserveHeight:(y=B.preserveHeight)==
null?void 0:y.call(B),preserveWidth:(S=B.preserveWidth)==null?void 0:S.call(B),objectPosition:(M=B.objectPosition)==null?void 0:M.call(B),targetWidth:(f=B.targetWidth)==null?void 0:f.call(B),targetHeight:(z=B.targetHeight)==null?void 0:z.call(B),shouldShowPlaceholder:(T=B.shouldShowPlaceholder)==null?void 0:T.call(B),useWidth:(L=B.useWidth)==null?void 0:L.call(B),alt:(Q=B.alt)==null?void 0:Q.call(B),className:(q=B.className)==null?void 0:q.call(B),onerror:B.onerror,onload:B.onload,style$:((m=B.style$)==
null?void 0:m.call(B))||((g=B.style)==null?void 0:g.call(B)),color:(Vu=B.color)==null?void 0:Vu.call(B),width:(n=B.width)==null?void 0:n.call(B),height:(Yd=B.height)==null?void 0:Yd.call(B),"aria-hidden$":(cd=(kd=B["aria-hidden$"])==null?void 0:kd.call(B))!=null?cd:(a5=B.ariaHidden)==null?void 0:a5.call(B),draggable:(lo=B.draggable)==null?void 0:lo.call(B),"data-disabled$":(ES=(io=B["data-disabled$"])==null?void 0:io.call(B))!=null?ES:(vd=B.dataDisabled)==null?void 0:vd.call(B)};return m8Z(e,$d,(V=
B.hideOn404)==null?void 0:V.call(B))};
return _.N(_.MN,null,_.N(_.Sv,{when:function(){var V;return((V=R())==null?void 0:V.type)==="image"}},function(){return _.N(yXl,{data:function(){return R().image},
getSrc:{cb:function(V,e){var X=R().image.sources,Y=R().config.isPreloaded,t=R().config.useWidth,b=R().config.targetWidth,J=R().config.targetHeight,G=R().config.preferredThumbnail;return _.x8u(e,X,Y,t,b,J,G)||""}},
config:function(){var V=R().config,e;for(e in V)V[e]===void 0&&delete V[e];return V},
lazy:B.renderLazy})}),_.N(_.Sv,{when:function(){var V;
return((V=R())==null?void 0:V.type)==="icon"}},function(){return _.N(_.Us,{icon:function(){return R().iconName},
role:function(){return R().config.role},
className:function(){return R().config.className},
style:function(){return R().config.style$+";width: "+(R().config.width+"px;height: ")+(R().config.height+"px;color: ")+(R().config.color+";")},
ariaLabel:function(){return R().config["aria-label$"]},
ariaHidden:function(){return R().config["aria-hidden$"]},
dataDisabled:function(){return R().config["data-disabled$"]}})}))},"d");
_.ia.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Sml=function(B){return function(R){return _.N(zqS,null,function(){var V=R.data(),e=_.wA(R.config);return _.N($D,null,function(){return void B(V,e)})})}}(nr5),Ccp=_.sx(function(B){var R=function(e){var X,Y=_.Fc(function(M){X=dA(function(){for(var f=_.h(y()),z=f.next();!z.done;z=f.next()){z=u4_(z.value);
z=typeof z==="string"?document.createTextNode(z):z;if(!(z instanceof Node)){f=new _.H8("Part is not a node",z,typeof z);_.Tn(f);break}M.appendChild(z)}})}),t=rl(function(){return NIu(e())},{isEqual:$8o}),b=_.AM(B.config),J=function(){var M,f=t();
return!((M=b())==null||!M.ariaLabel)||!(f.commandRuns&&f.commandRuns.length!==0||f.paragraphStyleRuns&&f.paragraphStyleRuns.length!==0)},G=rl(b,{isEqual:oeZ}),y=function(){var M=U8d(t(),G());
yeA(M,G());return t().content?fwu(t().content,M).parts:[]},S=!0;
_.lJ(function(){t();G();if(S)S=!1;else{var M=y();Promise.resolve().then(function(){var f=Y.value;if(f){f.innerText="";var z;(z=X)==null||z();X=_.Dk(f,function(){return _.N(OAu,{parts:M})})}})}});
return _.N("span",{el:Y,class:function(){return t()&&Oo5(t(),b())},
dir:function(){var M;return((M=b())==null?0:M.userInput)?"auto":void 0},
"aria-label":function(){var M;return J()?(M=b())==null?void 0:M.ariaLabel:void 0},
role:function(){return J()?"text":void 0}})},V;
return((V=B.config)==null?0:V.renderedFromFormattedString)?R(B.text):_.N(_.H,{cond:B.text,then:R})},"e");
Ccp.idomCompat=!0;_.Hr=_.sx(function(B){var R=_.AM(B.text),V=BQS(B);B.renderedFromFormattedString!==void 0&&(V.renderedFromFormattedString=!0);return _.k("attr_string_reactive")?_.N(Ccp,{text:R,config:V}):_.N(_.H,{cond:function(){var e;return R()&&((e=NIu(R()))==null?void 0:e.content)},
then:function(){return _.N(Sml,{data:B.text,config:V})},
debugInstance:"Apcuac"})},"f");
_.Hr.idomCompat=!0;var VeS=function(B,R,V){R=R===void 0?"unknown":R;V=V===void 0?{}:V;_.H8.call(this,B+" ("+R+")",Object.assign({},{name:"YtWcwError",tagName:R},V));Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(VeS,_.H8);_.ted=new WeakMap;_.hYd=!1;var YlS,W9d,paN;_.qq=Symbol("gh");_.Z9=Symbol("hh");YlS=Symbol("ih");W9d=new Set(Object.getOwnPropertyNames(Element.prototype));paN=Symbol("jh");var Hob=_.sx(function(B){return _.N("yt-attributed-string",{"aria-label":B.ariaLabel,hidden:B.hidden,id:B.id,class:B.className,"force-default-style":B.forceDefaultStyle},_.N(_.Hr,{text:B.data,ariaLabel:B.ariaLabel,ellipsisTruncate:B.ellipsisTruncate,isOverlay:B.isOverlay,linkInheritColor:B.linkInheritColor,noPreWrap:B.noPreWrap,noWrap:B.noWrap,userInput:B.userInput,noEndpoints:B.noEndpoints,headerRuns:B.headerRuns}))},"g");
_.k("web_wiz_attributed_string")&&_.mR(Hob,"yt-attributed-string",{props:{ariaHidden:_.qq,ariaLabel:_.qq,className:_.qq,ellipsisTruncate:_.qq,isOverlay:_.qq,linkInheritColor:_.qq,noEndpoints:_.qq,noStyleRuns:_.qq,noLinkColor:_.qq,noPreWrap:_.qq,noWrap:_.qq,skipOnClick:_.qq,userInput:_.qq,headerRuns:_.qq,id:_.qq,data:_.qq,hidden:_.qq,forceDefaultStyle:_.qq,text:_.Z9,stopPropagation:_.Z9,disableUpgrade:_.Z9,disable:_.Z9,slot:_.Z9}});var cD=function(){return _.c.apply(this,arguments)||this};
_.l(cD,_.c);cD.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},nr5(this.data,this.config))};
_.r([_.v(Ta_),_.Z("design:type",Object)],cD.prototype,"ytIdomTemplatingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cD.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],cD.prototype,"ariaLabel",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cD.prototype,"disable",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cD.prototype,"ellipsisTruncate",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cD.prototype,"isOverlay",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],cD.prototype,"linkInheritColor",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cD.prototype,"noPreWrap",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cD.prototype,"noWrap",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cD.prototype,"userInput",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cD.prototype,"noEndpoints",void 0);_.r([_.E(),_.Z("design:type",Array)],cD.prototype,"headerRuns",void 0);
cD=_.r([_.fJ({is:"yt-attributed-string",disableElementRegistration:!0})],cD);
_.k("web_wiz_attributed_string")||_.F(cD,"yt-attributed-string",function(){if(o7a===void 0){var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
B.content.insertBefore(ObS().content.cloneNode(!0),B.content.firstChild);o7a=B}B=o7a;return B},{mode:2});var M$2,kDT,ybS;M$2=function(){this.firstThumbnailLoaded=!1};
_.D04=function(){kDT||(kDT=new M$2);return kDT};
ybS=function(B){var R=_.D04();R.firstThumbnailLoaded||(R.firstThumbnailLoaded=!0,_.zp("ftl",B))};
M$2.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Jbo=0,G6d=new WeakMap,Ugd=0,PK=new Set;var fDo,lD_=function(){return fDo!==void 0?fDo:fDo=document.createElement("template")};
document.head.appendChild(lD_().content);var zg5;var k6S,fyq,Ap;_.O5=_.R5.caches;Ap=function(){};
Ap.prototype.open=function(B){return _.O5.open(aDJ(B))};
Ap.prototype.has=function(B){return _.O5.has(aDJ(B))};
Ap.prototype.delete=function(B){return _.O5.delete(aDJ(B))};
Ap.prototype.match=function(B,R){var V=this,e,X,Y,t,b,J;return _.W(function(G){switch(G.nextAddress){case 1:return _.U(G,V.keys(),2);case 2:e=G.yieldResult,X=_.h(e),Y=X.next();case 3:if(Y.done){G.jumpTo(5);break}t=Y.value;return _.U(G,V.open(t),6);case 6:return b=G.yieldResult,_.U(G,b.match(B,R),7);case 7:if(J=G.yieldResult)return G.return(J);Y=X.next();G.jumpTo(3);break;case 5:return G.return()}})};
var lyd=function(){};
_.l(lyd,Ap);var aDJ=function(B){if(B.includes(":"))throw Error("mh`"+B);return B+":"+_.y_("CacheStorage get")};
lyd.prototype.keys=function(){var B,R,V,e,X,Y,t,b,J;return _.W(function(G){if(G.nextAddress==1)return B=[],R=_.y_("CacheStorage keys"),_.U(G,_.O5.keys(),2);V=G.yieldResult;e=_.h(V);for(X=e.next();!X.done;X=e.next())Y=X.value,t=_.Meq(Y),b=t.originalName,J=t.datasyncId,J===R&&B.push(b);return G.return(B)})};var iG=function(){var B=_.c.apply(this,arguments)||this;B.objectURL=null;B.loadTime=Infinity;return B};
_.l(iG,_.c);_.p=iG.prototype;_.p.renderIdom=function(){HhS(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&gr5(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.p.objectFitToContentMode=function(B){switch(B){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 B=_.kB(197497);_.YJ(_.WK(),B);var R=_.TE();R&&B&&R&&_.cz(R,[B])};
_.p.loadImageFromCacheIfExists=function(B){var R=this,V=B.target;(V==null?0:V.src)&&ayd(V.src).then(function(e){R.objectURL=_.S4(e).toString();R.setSrc(V,R.objectURL)}).catch(function(){})};
_.p.onError=function(B){var R=this;if(_.k("web_use_cache_for_image_fallback")){var V=B.target;V&&ayd(V.src).then(function(e){R.objectURL=_.S4(e).toString();R.setSrc(V,R.objectURL)}).catch(function(){_.k("kevlar_woffle_log_thumbnail_failure_ve")&&R.logThumbnailFailureVe();
_.k("kevlar_woffle_fallback_image")&&R.setSrc(V,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.p.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.p.setConfig=function(){var B=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(R){B.loadImageFromCacheIfExists(R);B.revokeObjectURL();SlN(B.hostElement)},
onerror:function(R){B.onError(R)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.k("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.p.setSrc=function(B,R){R&&(B.src=R)};
_.r([_.v(Ta_),_.Z("design:type",Object)],iG.prototype,"ytIdomTemplatingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],iG.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],iG.prototype,"alt",void 0);_.r([_.E(),_.Z("design:type",Boolean)],iG.prototype,"ftlEligible",void 0);_.r([_.E(),_.Z("design:type",Number)],iG.prototype,"height",void 0);_.r([_.E(),_.Z("design:type",Boolean)],iG.prototype,"notifyOnLoaded",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],iG.prototype,"notifyOnUnloaded",void 0);_.r([_.E(),_.Z("design:type",String)],iG.prototype,"objectFit",void 0);_.r([_.E(),_.Z("design:type",String)],iG.prototype,"objectPosition",void 0);_.r([_.E(),_.Z("design:type",String)],iG.prototype,"preferredThumbnail",void 0);_.r([_.E(),_.Z("design:type",Boolean)],iG.prototype,"preserveHeight",void 0);_.r([_.E(),_.Z("design:type",Boolean)],iG.prototype,"preserveWidth",void 0);
_.r([_.E({value:!0}),_.Z("design:type",Boolean)],iG.prototype,"useWidth",void 0);_.r([_.E({value:function(){return!_.KQ("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Z("design:type",Boolean)],iG.prototype,"shouldRenderLazy",void 0);_.r([_.E(),_.Z("design:type",Number)],iG.prototype,"width",void 0);iG=_.r([_.fJ({is:"yt-image",disableElementRegistration:!0})],iG);
_.F(iG,"yt-image",function(){if(zg5===void 0){var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore(lD_().content.cloneNode(!0),B.content.firstChild);
zg5=B}B=zg5;return B},{mode:2});var sb=function(){return _.c.apply(this,arguments)||this};
_.l(sb,_.c);sb.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var B=_.dl(this.data.onVisibleCommand);B&&this.ytComponentBehavior.resolveCommand(B)}};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],sb.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.vD.YtVisibilityBehavior),_.Z("design:type",Object)],sb.prototype,"ytVisibilityBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],sb.prototype,"data",void 0);sb=_.r([_.fJ({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],sb);
_.F(sb,"yt-bumper-user-edu-content-view-model",function(){if(as2===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;zD2===void 0&&(zD2=document.createElement("template"));var e=zD2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);as2=B}B=as2;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var d0G;var whJ,T_4=function(){if(whJ!==void 0)return whJ;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;d0G===void 0&&(d0G=document.createElement("template"));var e=d0G;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return whJ=B};var x04;_.Fk={};x04=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"]);_.Fk.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var B=this.getContext_();return B?B.getTaskManager():_.dV},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var B=_.OI(this.hostElement,"yt-get-context-provider",{});B.detail&&B.detail.contextProvider?this.cachedProviderNode_=B.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return x04.has(this.hostElement.localName)},
getNetworkManager:function(){var B=this.getContext_();if(B)return B.getNetworkManager()}};var veY,Lsa,KsG,v7J;_.rM=function(B){var R=Lsa.get(B);if(R&&(R=R.pop()))return v7J++,R;KsG++;try{var V=document.createElement(B)}catch(e){throw new _.H8("ElementPool failed to create element",B,e.message);}return V};
veY=function(B){var R=B.is;if(R){var V=Lsa.get(R);V||(V=[],Lsa.set(R,V));var e=_.vE("ELEMENT_POOL_CONFIG")||{};V.length>=(e[R]!==void 0?e[R]:_.vE("ELEMENT_POOL_DEFAULT_CAP",0))||V.push(B)}else _.KE(new _.H8("Element pool should only handle custom elements:",B.nodeName))};
Lsa=new Map;KsG=0;v7J=0;var oO=new WeakMap,L9o=new WeakMap;var E74;_.gM=function(B,R,V){V=V===void 0?_.TT():V;this.JSC$11552_defaultPriority=B;this.signal=R;this.scheduler=V;this.nextJobDescriptor=0;this.JSC$11552_parkedJobs=[];this.scheduledJobs=new Map};
_.Z2=function(B,R){if(R){var V=_.Ep();B.signal&&!_.Qj(V,B.signal)?(V.addListener(B.signal,function(){B.processSignal()}),B.JSC$11552_parkedJobs.push({job:R,
priority:void 0})):IDa(B,R)}};
E74=function(B,R){if(R!==B.JSC$11552_defaultPriority){B.JSC$11552_defaultPriority=R;for(var V=_.h(B.scheduledJobs.values()),e=V.next();!e.done;e=V.next())e=e.value,B.scheduler.cancelJob(e.jobId),e.jobId=B.scheduler.addJob(e.jobWrapper,R)}};
_.gM.prototype.flushJobs=function(){E74(this,10);this.processSignal()};
_.gM.prototype.cancel=function(){for(var B=_.h(this.scheduledJobs),R=B.next();!R.done;R=B.next()){var V=_.h(R.value);R=V.next().value;V=V.next().value;this.scheduler.cancelJob(V.jobId);this.scheduledJobs.delete(R)}this.JSC$11552_parkedJobs=[]};
_.gM.prototype.processSignal=function(){for(var B=_.h(this.JSC$11552_parkedJobs),R=B.next();!R.done;R=B.next())R=R.value,IDa(this,R.job,R.priority);this.JSC$11552_parkedJobs=[]};
var IDa=function(B,R,V){V=V||B.JSC$11552_defaultPriority;if(V===10)nc(R);else{var e=B.nextJobDescriptor++,X=function(){R();B.scheduledJobs.delete(e)},Y=B.scheduler.addJob(X,V);
B.scheduledJobs.set(e,{jobWrapper:X,jobId:Y,priority:V})}};_.oA(QES);var qlp={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};fhd({beforeVisit:function(B){if(CJ.has(B.type)){var R;(R=B.props).idomKey!=null||(R.idomKey=B.type)}else B.type.TAG_NAME&&(ma=B.type.TAG_NAME)},
afterRender:function(B,R){var V;ma=(V=R==null?void 0:R.type)!=null?V:""},
didPatch:function(){ma=""}});var Q1o;_.mD={};Q1o={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.mD.YtRendererstamperBehavior=[_.Fk.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 B in this.stampDom){var R=this.stampDom[B];R&&R.id&&this.addReactiveSchema({type:"observe",method:{methodName:waI(R.id),args:[{type:"wildcard",path:B}]}})}else{(B=(this.constructor.generatedFrom||this).observers)||(B=[]);for(R in this.stampDom){var V=this.stampDom[R];V&&V.id&&B.push(waI(V.id)+"("+R+".*)")}this.constructor.generatedFrom.observers=B}},
addStampDomObserverFns_:function(){for(var B in this.stampDom){var R=this.stampDom[B];R.id?(this[waI(R.id)]=this.rendererStamperObserver_.bind(this,B,R.id),this.hasDataPath_[B]=!1):(R=new _.H8("Bad rendererstamper config",this.is+":"+B),_.Tn(R))}},
rendererStamperObserver_:function(B,R,V){if(V.path==B){if(V.value===void 0&&!this.hasDataPath_[B])return;this.hasDataPath_[B]=V.value!==void 0}this.rendererStamperApplyChangeRecord_(B,R,V)},
rendererStamperApplyChangeRecord_:function(B,R,V){var e=this.renderJobsMap_[R],X=null;B==V.path?(V=V.value,_.R4(V)||(V=V===void 0||V===null?[]:[V]),B=this.stampDom[B],B.mapping&&(X=this.stampDomArray_.bind(this,V,R,B.mapping,B.reuseComponents,B.events,B.stamperStableList)),e&&e.cancel(),V=B.usePageScheduler?this.getTaskManager():void 0,e||B.initialRenderPriority==void 0)?B.renderPriority==void 0||e||(e=new _.gM(B.renderPriority,B.waitForSignal,V),this.renderJobsMap_[R]=e):(e=new _.gM(B.initialRenderPriority,
B.waitForSignal,V),this.renderJobsMap_[R]=e,X=function(Y,t){Y();E74(t,10)}.bind(this,X,e)):X=B+".splices"==V.path?this.stampDomArraySplices_.bind(this,B,R,V.value):this.forwardRendererStamperChanges_.bind(this,B,R,V);
e?_.Z2(e,X):X()},
forwardRendererStamperChanges_:function(B,R,V){var e=V.path.slice(B.length+1),X=this.getStampContainer_(R),Y=e.indexOf("."),t=e.substring(0,Y),b=!1,J=0,G=parseInt(t,0);if(t[0]=="#"){b=parseInt(t.substring(1),0);G=this.get(B);var y=this.get([B,t]);G[b]==y?J=b:J=G.indexOf(y);b=!0}else isNaN(G)||(J=G,b=!0);b&&(e=e.substring(t.length+1),Y=e.indexOf("."));t=_.Mr(X).children[J];var S;if(X=(S=t==null?void 0:t.polymerController)!=null?S:t)e="data"+e.slice(Y),typeof X.notifyPath!=="function"?_.KE(new _.H8("notifyPath missing",
this.is+": "+B+", "+R)):V.value?X.notifyPath(e,V.value):X.notifyPath(e)},
stampDomArraySplices_:function(B,R,V){if(V&&V.indexSplices){var e=this.getStampContainer_(R);if(e){for(var X=_.Mr(e),Y=xgd(this.stampDom[B].reuseComponents),t=V.indexSplices.length,b=0;b<t;b++){for(var J=V.indexSplices[b],G=X.children[J.index],y=J.removed.length;y>0;y--)G&&G.parentElement&&(_.Mr(G.parentElement).removeChild(G),Y&&veY(G),G=X.children[J.index]);y=this.stampDom[B].mapping;for(var S=J.index+J.addedCount,M=document.createDocumentFragment(),f=Y,z=J.index;z<S;z++){var T=J.object[z],L=dgS(y,
T);if(L){var Q=y[L];T=T[L];L=this.getComponentName_(Q,T);var q=G?oO.has(G):!1;f&&G&&G.is==L&&q?(L=G,this.telemetry_.reuse++,G=G.nextElementSibling):f&&G&&q?(L=this.createComponent_(Q,T,Y),q=_.Mr(G).nextElementSibling,X.insertBefore(L,q),IyS(this.is,X,G,Y),G=q):(f=!1,L=this.createComponent_(Q,T,Y),M.appendChild(L));this.deferRenderStamperBinding_(L,Q,T)}else Q=new _.H8("Unimplemented type",B,R,e.tagName,Object.keys(T)[0]),_.Tn(Q)}X.insertBefore(M,G)}this.flushRenderStamperComponentBindings_();this.stampDom[B].events&&
_.OI(this.hostElement,"yt-rendererstamper-finished",{container:e})}else B=new _.H8("Container object not found",R,this.hostElement?this.hostElement.is:""),_.Tn(B)}},
stampDomArray_:function(B,R,V,e,X,Y){var t=this.getStampContainer_(R);if(t)if(R=_.Mr(t),e=xgd(e),B){var b=0,J=0,G;if(Y=Y===void 0?_.KQ("STAMPER_STABLE_LIST",!1):Y||!1)for(G=R.firstElementChild;G&&!oO.has(G)&&B.length>J;){Y=B[J];var y=dgS(V,Y);if(y){if(this.getComponentName_(V[y],Y[y])!=G.is){var S=this.createComponent_(V[y],Y[y],e),M=_.Mr(G).nextElementSibling;M?R.insertBefore(S,M):R.appendChild(S);IyS(this.is,R,G,e);G=S}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(G,V[y],Y[y]);b++;
J++;G=_.Mr(G).nextElementSibling}else J++}EeA(this.is,R,b,e);b=G;if(B.length>J){Y=document.createDocumentFragment();for(y=B.length;J<y;J++)if(S=B[J],M=dgS(V,S))G=this.createComponent_(V[M],S[M],e),this.deferRenderStamperBinding_(G,V[M],S[M]),Y.appendChild(G);b&&_.Mr(b).parentNode&&G&&!oO.has(G)?R.insertBefore(Y,b):R.appendChild(Y)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();X&&_.OI(this.hostElement,"yt-rendererstamper-finished",{container:t})}else EeA(this.is,R,0,
e);else B=new _.H8("Container object not found",R,this.hostElement?this.hostElement.is:""),_.Tn(B)},
getStampContainer_:function(B){return this.$&&this.$[B]||_.w(this.hostElement).querySelector("#"+B)},
getComponentName_:function(B,R){return typeof B==="string"?B:B.matcher?B.matcher.call(this,R):B.component},
createComponent_:function(B,R,V){B=this.getComponentName_(B,R);try{var e=Pc.has(B)||CJ.has(B);if(V&&!e){var X=_.rM(B);try{_.o_(X)}catch(Y){V="Failed to clear styles for "+B+".",Y.message&&(V+=" Original error: "+Y.message),_.KE(new _.H8(V))}}else X=document.createElement(B)}catch(Y){return X="YtRendererStamperBehavior failed to create "+B+".",Y.message&&(X+=" Original description: "+Y.message),Y.message="YtRendererStamperBehavior failed to create element",_.Iq(Y,X),Q1o.hasOwnProperty(B)?_.KE(Y):_.Tn(Y),
document.createElement("SPAN")}this.telemetry_.create++;return X},
deferRenderStamperBinding_:function(B,R,V){this.deferredBindingTasks_.push({component:B,typeOrConfig:R,data:V})},
flushRenderStamperComponentBindings_:function(){for(var B=0,R=this.deferredBindingTasks_.length;B<R;B++){var V=this.deferredBindingTasks_[B];if(!V)break;var e=void 0,X=void 0,Y=void 0,t=void 0,b=V.component,J=V.typeOrConfig;V=V.data;var G=(t=b.polymerController)!=null?t:b;t=b.loggingStatus;try{t&&(t.isRendererStamper=!0);if(typeof J!=="string"){for(Y in J.attributes)J.attributes[Y]===!0?b.setAttribute(Y,""):J.attributes[Y]===!1?b.removeAttribute(Y):b.setAttribute(Y,J.attributes[Y]);for(X in J.params)G[X]=
J.params[X],b!==G&&Ux(b.localName,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(e in J.properties){var y=J.properties[e];if(y){var S=TQN(y);G[e]=this.get(S);b!==G&&Ux(b.localName,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(e==="on-tap"||e==="on-click"){var M=this.get(S);b.addEventListener("click",M);L9o.set(b,{property:e,listener:{type:"element",eventName:"click",handler:M}})}}else{var f=new _.H8("Undefined property binding",e);_.Tn(f)}}}if(J.classListBinding){var z=TQN(J.classListBinding),
T=z?this[z]:null;if(T)for(e=0;e<T.length;e++)_.nk(b,T[e],!0)}G.data=V}finally{t&&(t.isRendererStamper=!1)}if(e=oO.get(b))b.hidden=!1,oO.delete(b),_.dV.cancelJob(e)}this.deferredBindingTasks_.length=0}}];_.$Z={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(B){for(var R=_.sd.getInstance(),V=_.h(Object.keys(B)),e=V.next();!e.done;e=V.next()){var X=e.value;e=B[X];if(this&&this[e]){var Y=R.actionRoutingMap.get(X);Y||(Y=new Map,R.actionRoutingMap.set(X,Y));R.registerActionHandler(this,X,this[e].bind(this),Y)}else X=Error("id"),X.params=e,_.IP(X)}},
unregisterActionMap:function(B){_.rn(_.sd.getInstance(),B,this)}}]};var VK=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var RO;var eQ=new Map;var neI=window.matchMedia("(forced-colors: active)").matches;var qmv;var cX4;var BdZ=new _.u0("LOTTIE_LOADER_TOKEN");_.oA(RaI);_.mR(_.sx(function(B){return _.N("ytd-lottie-player",{id:B.id,hidden:B.hidden,class:B.className,"aria-label":B.ariaLabel,style:"display: block;"},_.N(_.pD,{data:B.data,animationName:function(){var R;return((R=B.data().animationConfig)==null?void 0:R.name)||""},
animationRef:function(){return B.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.qq,
id:_.qq,hidden:_.qq,className:_.qq,ariaLabel:_.qq}});var CF=function(){var B=_.c.apply(this,arguments)||this;B.animationRef={};return B};
_.l(CF,_.c);_.p=CF.prototype;
_.p.handlePropertyChange=function(){var B=this.animatedIcon,R=this.active,V=this.isDarkTheme;if(B){var e=this.previousActive!==R;this.previousActive=R;this.animationRef.lottieEl?e&&this.toggleAnimation(R,B.totalFrames):R?this.initializeAnimationAsToggled(B.lottiePlayerProps,B.totalFrames):this.initializeAnimationAsUntoggled(B.lottiePlayerProps);B.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=B.type;this.lottiePlayerProps=this.computeLottiePlayerProps(B,V)}};
_.p.computeLottiePlayerProps=function(B,R){var V=this.deepCloneLottiePlayerProps(B);R?(R=B.nameDarkTheme,B=B.pathDarkTheme):(R=B.name,B=B.path);V.animationConfig.name=R;(R=eQ.get(B))?V.animationConfig.animationData=R:V.animationConfig.path=B;return V};
_.p.initializeAnimationAsToggled=function(B,R){B.animationConfig.initialSegment=[R-1,R]};
_.p.initializeAnimationAsUntoggled=function(B){B.animationConfig.initialSegment=void 0};
_.p.toggleAnimation=function(B,R){if(B){var V;(V=this.animationRef.lottieEl)==null||V.playSegments([0,R],!0)}else{var e;(e=this.animationRef.lottieEl)==null||e.playSegments([0,1],!0)}};
_.p.deepCloneLottiePlayerProps=function(B){var R=Object.assign({},B.lottiePlayerProps.animationConfig);B=Object.assign({},B.lottiePlayerProps);B.animationConfig=R;return B};
CF.prototype.handlePropertyChange=CF.prototype.handlePropertyChange;_.r([_.E(),_.Z("design:type",Object)],CF.prototype,"animatedIcon",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],CF.prototype,"active",void 0);_.r([_.E(),_.Z("design:type",Boolean)],CF.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],CF.prototype,"animatedIconType",void 0);_.r([_.E(),_.Z("design:type",Boolean)],CF.prototype,"previousActive",void 0);
_.r([_.E(),_.Z("design:type",Object)],CF.prototype,"lottiePlayerProps",void 0);_.r([_.E(),_.Z("design:type",Object)],CF.prototype,"animationRef",void 0);_.r([_.XX("animatedIcon","active","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CF.prototype,"handlePropertyChange",null);CF=_.r([_.fJ({is:"yt-animated-icon",disableElementRegistration:!0})],CF);
_.F(CF,"yt-animated-icon",function(){if(cX4===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;qmv===void 0&&(qmv=document.createElement("template"));var e=qmv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);cX4=B}B=cX4;return B},{mode:2});var AX_;var iol;var Xeu=_.sx(function(B){var R=_.mA(),V=dg(function(){return{value:null}});
_.aK(function(){var X;(X=V.value)==null||X.cancel()});
var e=_.NW(B.data,{equals:function(X,Y){return X.iconName===Y.iconName&&X.iconStyle===Y.iconStyle&&X.iconSize===Y.iconSize&&X.iconSetName===Y.iconSetName&&X.iconSelected===Y.iconSelected}},"aoiXAb");
_.lJ(function(){var X,Y=(X=B.options)==null?void 0:X.call(B);eaq(R,V,e(),Y)});
return _.N("span",{class:"yt-icon-shape",el:R})},"i");
Xeu.idomCompat=!0;var gsI=["youtube_fill","youtube_outline"];var s14=new _.ah({type:"iconset",value:void 0}),PD=function(){var B=_.c.apply(this,arguments)||this;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.iconName="";B.iconsetName="yt-icons";B.iconset=null;B.missingIconSet=!1;B.iconType=null;B.iconShapeDataSignal=_.WU(void 0,void 0,"RQ9kUb");B.renderingOptionsSignal=_.WU({iconWidth:"100%",iconHeight:"100%",iconFilter:B.iconFilter},void 0,"qtx8Ef");B.wizHasRendered=!1;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(PD,_.c);_.p=PD.prototype;_.p.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.isDarkTheme=B)};
_.p.handlePropertyChange=function(){var B=this,R,V,e,X,Y,t,b,J,G,y,S;return _.W(function(M){switch(M.nextAddress){case 1:if(R=!B.icon&&!B.iconName||!B.isAttached)return M.return();V=B;e=V.icon;X=V.size;Y=V.defaultToFilled;t=V.active;b=V.targetContainer;B.toggleContainerClass(b);_.k("kevlar_use_wil_icons")&&e&&(J=Kuu(e),J.length?_.k("kevlar_icon_type_fix_killswitch")?(G=J[1].toUpperCase(),B.iconType=XT5[G],B.iconType||(B.iconType=J[1])):B.iconType=J[1]:B.iconType=null);if(e){M.jumpTo(2);break}B.iconsetName=
"";B.iconName="";return _.U(M,B.renderIcon(b,e),3);case 3:return M.return();case 2:y=B.computeIcon(e);S=Kuu(y);S.length&&(B.iconsetName=S[0],B.iconName=S[1]);if(!_.k("kevlar_use_wil_icons")){M.jumpTo(4);break}return _.U(M,B.getIconShapeData(),5);case 5:B.iconShapeData=M.yieldResult;case 4:if(B.shouldRenderIconShape(b)){M.jumpTo(6);break}return _.U(M,B.determineIconSet(y,t,Y,X,b),6);case 6:return _.U(M,B.renderIcon(b,e),0)}})};
_.p.toggleContainerClass=function(B){B?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.p.computeIcon=function(B){return!_.k("default_to_innertube_icon")||B.indexOf(":")>0?B:_.RT(B)};
_.p.determineIconSet=function(B,R,V,e){var X=this;return _.W(function(Y){return Y.nextAddress==1?_.k("kevlar_system_icons")||_.vE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.vE("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.U(Y,X.switchToYtSysIconset(B,R,V,e),3):Y.jumpTo(2):Y.nextAddress!=2?Y.return():_.U(Y,X.useYtSysIconsetForMissingIcons(B,R,V,e),0)})};
_.p.switchToYtSysIconset=function(B,R,V,e){var X=this,Y,t,b,J,G,y,S;return _.W(function(M){switch(M.nextAddress){case 1:if(!B||X.iconsetName!=="yt-icons"&&X.iconsetName!=="yt-sys-icons"){M.jumpTo(0);break}Y=Kuu(B);t=Y[1];t=_.rLS(t);_.k("enable_polymer_icons_replace_underscores_dash")&&t.includes("_filled")&&(t=t.replace(/_filled/g,"-filled"));return _.U(M,BK(t,!0),3);case 3:return b=M.yieldResult,_.U(M,BK(t,!1),4);case 4:if((J=M.yieldResult)||R&&b)X.iconsetName="yt-sys-icons";X.iconName=X.getIconName(t,
R,V,J,b);if(e===24){M.jumpTo(0);break}G="yt-sys-icons"+e+":"+X.iconName;return _.U(M,BK(G,!1,!0),6);case 6:return y=M.yieldResult,_.U(M,BK(G,!0,!0),7);case 7:S=M.yieldResult;X.iconName=X.getIconName(t,R,V,y,S);if(!R&&y||R&&S)X.iconsetName="yt-sys-icons"+e;_.b3(M)}})};
_.p.getIconName=function(B,R,V,e,X){B.includes("-filled")&&(B=B.replace("-filled",""));return X&&(R||V)?B+"-filled":B};
_.p.useYtSysIconsetForMissingIcons=function(B,R,V,e){var X=this,Y,t;return _.W(function(b){if(b.nextAddress==1)return X.iconsetName!=="yt-icons"?b.jumpTo(0):_.U(b,BK(X.iconName,!1,!1,!0),3);if(b.nextAddress!=4)return Y=b.yieldResult,_.U(b,BK(X.iconName,!1),4);t=b.yieldResult;if(Y||!t)return b.jumpTo(0);X.iconsetName="yt-sys-icons";return _.U(b,X.switchToYtSysIconset(B,R,V,e),0)})};
_.p.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.p.getIconManager=function(){return _.W(function(B){try{return B.return(_.Oz().resolve(_.VM))}catch(R){return B.return(new Promise(function(V){_.Ep().parkOrScheduleJob(function(){V(_.Oz().resolve(_.VM))},2,"ci")}))}})};
_.p.getIconShapeData=function(){var B=this,R,V,e,X,Y,t;return _.W(function(b){if(b.nextAddress==1){if(!B.iconType)return b.return(void 0);R=B.iconType.toLowerCase();V=R.endsWith("_filled")||R.endsWith("-filled");return _.U(b,B.getIconManager(),2)}e=b.yieldResult;X=B.active||B.defaultToFilled||V?"youtube_fill":"youtube_outline";Y={iconName:R,iconStyle:X,iconSize:B.size,iconSetName:B.iconsetName};t=!!e.resolveIcon(Y);t||(Y.iconSize=void 0,t=!!e.resolveIcon(Y));!t&&V&&(Y.iconName=R.substring(0,R.length-
7),Y.iconSize=B.size,t=!!e.resolveIcon(Y),t||(Y.iconSize=void 0,t=!!e.resolveIcon(Y)));t||(Y.iconStyle=void 0,t=!!e.resolveIcon(Y));t||_.KE(new _.H8("Icon not supported",{iconName:Y.iconName,iconStyle:Y.iconStyle,iconSize:Y.iconSize,iconType:R}));return b.return(t?Y:void 0)})};
_.p.shouldRenderIconShape=function(B){if(!_.k("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;B=this.getContainer(B);return!uSZ(B,this.icon)};
_.p.renderIcon=function(B,R){var V=this,e,X,Y,t,b,J,G,y;return _.W(function(S){switch(S.nextAddress){case 1:if(R&&V.icon!==R)return S.return();e=V.getContainer(B);X=uSZ(e,V.icon);if(V.shouldRenderIconShape(B)&&V.iconType)return V.applyIconShape(X,e),S.return();V.removeIconShape();if(!e)return S.return();V.iconName===""&&V.iconset&&e&&(V.removeStaticIcon(V.iconset,e),X&&V.removeAnimatedIcon(e));if(V.iconName===""&&V.iconset||!V.iconsetName||!s14)return S.return();V.iconset=s14.byKey(V.iconsetName);
if(!V.iconset)return V.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Bc(V,V.onIconsetAdded)),S.return();V.missingIconSet&&(V.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Bc(V,V.onIconsetAdded)));t=(Y=X||V.isAnimatedIcon?Pqp(V.icon):void 0)&&!Y.lazyLoad;J=Y&&((b=Y)==null?void 0:b.lazyLoad)&&(Y.lottiePlayerProps.animationConfig.animationData?!0:eQ.get(V.isDarkTheme?Y.pathDarkTheme:Y.path)?!0:!1);if(t||J)return V.applyAnimatedIcon(e,Y,V.iconset),S.return();if(J||
(G=Y)==null||!G.lazyLoad){S.jumpTo(2);break}y=o9u(Y,V.isDarkTheme);V.applyStaticIcon(V.iconset,e,V.iconName,B,X);return _.U(S,y,3);case 3:return _.U(S,V.renderIcon(V.targetContainer,V.icon),4);case 4:return S.return();case 2:V.applyStaticIcon(V.iconset,e,V.iconName,B,X),_.b3(S)}})};
_.p.getContainer=function(B){var R,V=(R=ncu(this.hostElement))==null?void 0:R.host;R=!!V&&!!V.polymerController;if(!B||R)return B?this.getTargetContainer(B,V):this.hostElement};
_.p.getTargetContainer=function(B,R){var V=_.w(R).querySelector("#"+B);V||(B=new _.H8("yt-icon container missing",R.is,B),_.Tn(B));return V};
_.p.applyStaticIcon=function(B,R,V,e,X){X&&this.removeAnimatedIcon(R);this.removeIconShape();X=X&&!!this.iconType&&!!this.iconShapeData&&_.k("kevlar_use_wil_icons");try{X?this.applyIconShape(!1,R):B.applyIcon(R,V)}catch(Y){this.handleError(Y,e,R)}};
_.p.applyIconShape=function(B,R){this.iconset&&R&&(this.removeStaticIcon(this.iconset,R),B&&this.removeAnimatedIcon(R));B={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var V=_.h(this.iconShapeDataSignal);R=V.next().value;V=V.next().value;var e=_.h(this.renderingOptionsSignal),X=e.next().value;e=e.next().value;V(this.iconShapeData);e(B);if(!this.wizHasRendered)for(this.wizHasRendered=!0,B=_.h(peq(R,X)).next().value;B.firstChild;)_.w(this.hostElement).appendChild(B.firstChild)};
_.p.removeIconShape=function(){if(_.k("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.p.removeStaticIcon=function(B,R){B.removeIcon(R)};
_.p.applyAnimatedIcon=function(B,R,V){this.removeStaticIcon(V,B);this.removeIconShape();var e;V=this.animatedIconElement&&((e=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:e.type)===R.type;if(this.animatedIconElement&&V){this.animatedIconElement.polymerController.animatedIcon=R;var X;((X=this.animatedIconElement)==null?void 0:X.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(B),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=R,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.k("kevlar_use_wil_icons")?B.insertBefore(this.animatedIconElement,B.childNodes[0]):(B=_.w(B),B.insertBefore(this.animatedIconElement,B.childNodes[0]))};
_.p.removeAnimatedIcon=function(B){_.k("kevlar_use_wil_icons")?this.animatedIconElement&&B.contains(this.animatedIconElement)&&B.removeChild(this.animatedIconElement):(B=_.w(B),this.animatedIconElement&&B.contains(this.animatedIconElement)&&B.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.p.handleError=function(B,R,V){_.Iq(B,this.iconName,R,V);R=uSZ(V,this.icon);var e=!1;window.location.href.includes("JpymaW6Lh2w")?e=!0:V._svgIcon&&(V=(V=V._svgIcon.parentNode)?V.tagName:"unknown",_.Iq(B,V),V==="YT-ICON"&&B.name==="NotFoundError"?e=!0:B.name==="NotFoundError"&&R&&(e=!0));e?_.KE(B):_.Tn(B)};
_.mh.Object.defineProperties(PD,{template:{configurable:!0,enumerable:!0,get:function(){if(iol===void 0){var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;
AX_===void 0&&(AX_=document.createElement("template"));var e=AX_;V.call(R,e.content.cloneNode(!0),B.content.firstChild);iol=B}B=iol;return B}}});
PD.prototype.handlePropertyChange=PD.prototype.handlePropertyChange;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],PD.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",String)],PD.prototype,"icon",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],PD.prototype,"active",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],PD.prototype,"defaultToFilled",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],PD.prototype,"isAnimatedIcon",void 0);
_.r([_.E({value:24}),_.Z("design:type",Number)],PD.prototype,"size",void 0);_.r([_.E({value:""}),_.Z("design:type",String)],PD.prototype,"targetContainer",void 0);_.r([_.E(),_.Z("design:type",Object)],PD.prototype,"animatedIconElement",void 0);_.r([_.E(),_.Z("design:type",Object)],PD.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],PD.prototype,"ariaHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],PD.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],PD.prototype,"role",void 0);_.r([_.E(),_.Z("design:type",String)],PD.prototype,"style",void 0);_.r([_.E(),_.Z("design:type",String)],PD.prototype,"iconFilter",void 0);_.r([_.XX("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],PD.prototype,"handlePropertyChange",null);
PD=_.r([_.fJ({is:"yt-icon",noInjection:!0})],PD);var Fsa;var rX4=function(){var B=document.body,R=B.appendChild;if(Fsa===void 0){var V=document.createElement("template");_.a(V,'\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>');
Fsa=V}V=Fsa;R.call(B,V.content)};
document.body?rX4():window.addEventListener("DOMContentLoaded",rX4);var g7_,Zoa=function(){return g7_!==void 0?g7_:g7_=document.createElement("template")};
document.head.appendChild(Zoa().content);var m0l,$0G=function(){return m0l!==void 0?m0l:m0l=document.createElement("template")};
document.head.appendChild($0G().content);var COv;_.DE=new _.u0("KEY_MANAGER_TOKEN");var b2A={duration:1E3,easing:"ease",fill:"forwards"};_.oA(WYp);var POR=_.h3(_.t3);_.oA(_.t3);_.SQ=_.sx(function(B){var R=_.Zh(B.ref),V=B.aTagConfig?B.aTagConfig:_.NW(function(){var Y,t,b,J,G,y;var S=(y=_.dl((J=B.command)==null?void 0:J.call(B)))!=null?y:(G=B.command)==null?void 0:G.call(B);return _.T2({innertubeCommand:S,skipOnClick:(Y=B.skipOnClick)==null?void 0:Y.call(B),stopPropagation:(t=B.dangerousStopPropagation)==null?void 0:t.call(B),defaultTarget:(b=B.target)==null?void 0:b.call(B)})||{}},void 0,"gnrRge");
_.lJ(function(){R.value._data=V()._data;R.value.params=V().params});
var e=_.Wr(function(Y){var t,b;return void((b=(t=V()).onpointerdown)==null?void 0:b.call(t,Y))}),X=_.Wr(function(Y){var t,b;
return void((b=(t=V()).onclick)==null?void 0:b.call(t,Y))});
return _.N("a",{el:R,href:function(){return V().href$},
rel:function(){return V().rel$},
class:function(){var Y,t;return(t=V().className)!=null?t:(Y=B.className)==null?void 0:Y.call(B)},
style:function(){var Y;if((Y=B.style)==null?0:Y.call(B))return B.style();var t;return((t=B.disabled)==null?0:t.call(B))?"pointer-events:none":""},
"aria-haspopup":function(){return!!V()["aria-haspopup$"]},
"force-new-state":bP(function(){return V()["force-new-state$"]}),
title:bP(function(){var Y,t;return(t=V().title$)!=null?t:(Y=B.title)==null?void 0:Y.call(B)}),
role:bP(function(){return V().role$}),
target:bP(function(){return V().target$}),
dir:bP(function(){var Y;return((Y=B.dir)==null?0:Y.call(B))?B.dir():V().dir}),
tabindex:function(){var Y;return V().tabindex$?Number(V().tabindex$):(Y=B.tabIndex)==null?void 0:Y.call(B)},
"aria-hidden":function(){var Y,t;return(t=V()["aria-hidden$"])!=null?t:(Y=B.ariaHidden)==null?void 0:Y.call(B)},
"aria-label":function(){var Y,t;return(t=V()["aria-label$"])!=null?t:(Y=B.ariaLabel)==null?void 0:Y.call(B)},
"aria-current":B.ariaCurrent,"aria-labelledby":B.ariaLabelledby,"aria-describedby":B.ariaDescribedby,"aria-selected":B.ariaSelected,"tab-identifier":B.tabIdentifier,"on:pointerdown":e,"on:click":X},B.children)},"j");var n7b=function(B,R){this.fillAnimation=new Animation(UcA(B),document.timeline);this.strokeAnimation=new Animation(NdI(R),document.timeline)};
n7b.prototype.play=function(){var B,R;(R=(B=this.fillAnimation).play)==null||R.call(B);var V,e;(e=(V=this.strokeAnimation).play)==null||e.call(V)};
n7b.prototype.cancel=function(){var B,R;(R=(B=this.fillAnimation).cancel)==null||R.call(B);var V,e;(e=(V=this.strokeAnimation).cancel)==null||e.call(V)};_.yK=_.sx(function(B){var R=B.model;var V=B.pointerDownEvent;var e=B.pointerUpEvent;var X=B.pointerLeaveEvent;B=_.Zh();var Y=_.jQ({"border-radius":function(){return R().borderRadius}}),t=_.Zh(),b=_.Zh(),J=_.h(_.J3(function(){return(e==null?0:e())||(X==null?0:X())?!1:!(V==null||!V())||!1})),G=J.next().value,y=J.next().value,S=void 0,M=function(){!S&&b.value&&t.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(S=new n7b(b.value,t.value));
var q;(q=S)==null||q.play()},f=function(){var q;
(q=S)==null||q.cancel()},z=function(){var q;
(q=S)==null||q.cancel()};
_.lJ(function(){(e==null?0:e())&&M()});
_.lJ(function(){(V==null?0:V())&&f()});
_.lJ(function(){(X==null?0:X())&&z()});
J=_.Wr(function(){M();y(!1)});
var T=_.Wr(function(){f();y(!0)}),L=_.Wr(function(){z();
y(!1)});
_.aK(function(){if(S){var q;(q=S)==null||q.cancel();S=void 0}});
var Q={};G=_.XE("yt-spec-touch-feedback-shape",function(){return yNq(R().color)},(Q["yt-spec-touch-feedback-shape--focused"]=function(){return!!R().focused&&!R().disabled},Q["yt-spec-touch-feedback-shape--circular"]=function(){return!!R().circular},Q["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!R().isExtended},Q["yt-spec-touch-feedback-shape--down"]=G,Q["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!R().triggerEvents},Q));
return _.N("yt-touch-feedback-shape",{style:_.jQ({"border-radius":"inherit"})},_.N("div",{el:B,class:G,style:_.jQ({"margin-top":function(){return R().customTopExtend?"-"+R().customTopExtend+"px":void 0}}),
"on:mousedown":T,"on:mouseup":J,"on:pointerleave":L,"on:touchstart":T,"on:touchend":J,"aria-hidden":!0},_.N("div",{class:"yt-spec-touch-feedback-shape__stroke",style:Y,el:t}),_.N("div",{class:"yt-spec-touch-feedback-shape__fill",style:Y,el:b})))},"k");
_.yK.idomCompat=!0;var uha={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 nF=_.G_();nF=nF.toLowerCase();if(_.bo(nF,"android")){var Oo4=nF.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);Oo4&&parseFloat(Oo4[1])<100||nF.match("("+Object.keys(uha).join("|")+")")};var or4=_.sx(function(B){return _.N(_.H,{cond:B.aTagConfig,then:function(R){return _.N(_.SQ,{aTagConfig:R,disabled:B.disabled,className:B.className,style:B.style,title:B.title,ariaLabel:B.ariaLabel,ariaCurrent:function(){var V,e;return((V=B.toggleable)==null?void 0:V.call(B))&&((e=B.toggled)==null?void 0:e.call(B))}},B.children)},
else:function(){return _.N("button",{"on:click":_.Wr(function(R){var V;return(V=B.onClick)==null?void 0:V.call(B,R)}),
class:B.className,title:B.title,style:B.style,disabled:B.disabled,"aria-pressed":function(){var R,V;return((R=B.toggleable)==null?0:R.call(B))?!((V=B.toggled)==null||!V.call(B)):void 0},
"aria-label":B.ariaLabel,"aria-disabled":B.visiblyDisabled,"aria-hidden":B.ariaHidden,tabindex:B.tabIndex},B.children)}})},"l"),RLR=_.sx(function(B){var R=B.data;
var V=B.hasIconLeading;var e=B.hasIconLeadingTrailing;var X=B.hasIconTrailing;var Y=B.iconButton;var t=B.iconClassName;var b=B.secondaryIconClassName;var J=B.icon;var G=B.secondaryIcon;var y=B.textContentClassName;return _.N(uG,{className:"",style:"display: inherit; justify-content: center"},_.N(_.H,{cond:function(){return J&&(V()||e()||(Y==null?void 0:Y()))},
then:function(){return _.N(uG,null,_.N("div",{class:t,"aria-hidden":"true"},J==null?void 0:J()))}}),_.N(_.H,{cond:function(){return(R().buttonText||R().animatedTextProps||R().formattedButtonText)&&!(Y==null?0:Y())},
then:function(){return _.N(uG,null,_.N(BIv,{className:y,iconPosition:function(){return R().iconPosition},
text:function(){return R().buttonText},
oneOffCustomTextWrap:function(){return R().oneOffCustomTextWrap},
formattedButtonText:function(){return R().formattedButtonText},
animatedTextProps:function(){return R().animatedTextProps}}))}}),_.N(_.H,{cond:X,
then:function(){return _.N(uG,null,_.N("div",{class:t},J==null?void 0:J()))}}),_.N(_.H,{cond:e,
then:function(){return _.N(uG,null,_.N("div",{class:b},G==null?void 0:G()))}}),_.N(_.H,{cond:function(){return!R().disabled&&!0},
then:function(){return _.N(_.yK,{model:function(){return{color:kuo(R())}}})}}))},"m"),BIv=_.sx(function(B){var R=function(){var V,e;
return((V=B.iconPosition)==null?void 0:V.call(B))==="icon-with-label"||((e=B.oneOffCustomTextWrap)==null?void 0:e.call(B))};
return _.N("div",{class:B.className,"aria-hidden":function(){var V,e,X;return((V=B.ariaHidden)==null?void 0:V.call(B))&&(!((e=B.animatedTextProps)==null||!e.call(B))||!((X=B.formattedButtonText)==null||!X.call(B)))}},_.N(_.MN,null,_.N(_.Sv,{when:function(){var V;
return(V=B.animatedTextProps)==null?void 0:V.call(B)}},function(){return _.N(POR,{numberText:function(){return B.animatedTextProps().numberText},
numberValue:function(){return B.animatedTextProps().numberValue},
heightPx:function(){return B.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return B.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return B.animatedTextProps().shouldAnimate},
forceRollUp:function(){return B.animatedTextProps().forceRollUp}})}),_.N(_.Sv,{when:function(){var V;
return(V=B.formattedButtonText)==null?void 0:V.call(B)}},function(){return _.N(_.Hr,{text:function(){return Object.assign({},B.formattedButtonText(),{lineBreakMode:R()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":B.formattedButtonText().lineBreakMode,
alignment:R()?"TEXT_ALIGNMENT_CENTER":B.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!R()}})}),_.N(_.Sv,{when:function(){var V,e;
return((V=B.iconPosition)==null?void 0:V.call(B))==="icon-with-label"&&((e=B.text)==null?void 0:e.call(B))}},function(){return _.N(_.Hr,{text:function(){return{content:B.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.N(_.HE,null,function(){return B.text})))},"n"),VN2=_.sx(function(B){return _.N(_.H,{cond:B.hasLabel,
then:function(){var R;return _.N("label",{class:B.className},B.children,(R=B.textContent)==null?void 0:R.call(B))},
else:function(){return B.children}})},"o"),uG=_.sx(function(B){return B.children},"p");var MQS=$0("stamper-context");_.oA(QRN);var BI=_.sx(function(B){var R=B.data;var V=B.icon;var e=B.iconName;var X=B.secondaryIcon;var Y=B.secondaryIconName;var t=B.focusedOverride;KYo();var b=S1N(R),J=b.size,G=b.style;B=b.disabled;var y=b.onTap,S=b.alignByText,M=b.aTagConfig,f=b.customColors,z=b.segmentedPosition,T=b.toggled,L=b.toggleable,Q=b.accessibilityLabel,q=b.onToggle,m=b.iconPosition,g=b.oneOffCustomTextWrap,Vu=b.disableTextEllipsis,n=b.disableBackdropFilter,Yd=b.tooltipText,kd=b.ariaHidden,a5=b.tabIndex,lo=b.buttonText,io=b.formattedButtonText,
vd=b.animatedTextProps,cd=Myo(R,V,X,e,Y,t),ES=cd.type;V=cd.shouldFocus;e=cd.hasIconLeading;X=cd.hasIconTrailing;var $d=cd.hasIconLeadingTrailing,Eo=cd.hasIconOnly;Y=cd.hasIconOnly40;var GG=cd.hasIconWithLabel;t=cd.iconButton;var eJ=cd.visiblyDisabled;b=cd.overrideSmallSizeIcon;var pR=cd.iconToRender;cd=cd.secondaryIconToRender;var d4={},W2={};return _.N(VN2,{className:_.XE("yt-spec-button-shape-with-label",(d4["yt-spec-button-shape-with-label--is-overlay"]=function(){return G()==="overlay"||G()===
"overlay-dark"},d4)),
hasLabel:GG,textContent:function(){return _.N(BIv,{text:lo,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:g,iconPosition:m,formattedButtonText:io,animatedTextProps:vd})}},_.N(or4,{aTagConfig:M,
className:_.XE("yt-spec-button-shape-next",function(){return flu(ES())},function(){return eJ()?void 0:llx(G())},function(){return zaA(J())},(W2["yt-spec-button-shape-next--disabled"]=eJ,W2["yt-spec-button-shape-next--focused"]=V,W2["yt-spec-button-shape-next--icon-trailing"]=X,W2["yt-spec-button-shape-next--icon-leading"]=e,W2["yt-spec-button-shape-next--icon-leading-trailing"]=$d,W2["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return $d()&&!(lo()||io())},W2["yt-spec-button-shape-next--icon-button"]=
function(){return Eo()||GG()},W2["yt-spec-button-shape-next--icon-only-default"]=Y,W2["yt-spec-button-shape-next--align-by-text"]=S,W2["yt-spec-button-shape-next--segmented-start"]=function(){return z()==="start"},W2["yt-spec-button-shape-next--segmented-end"]=function(){return z()==="end"},W2["yt-spec-button-shape-next--override-small-size-icon"]=b,W2["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=g,W2["yt-spec-button-shape-next--disable-text-ellipsis"]=Vu,W2["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!n()&&DcK()},W2)),
style:function(){return dcZ(f()).style},
onClick:function(By){y==null||y(By);L()&&(q==null||q(By))},
disabled:B,ariaLabel:Q,toggleable:L,toggled:T,title:function(){var By;return(By=Yd())!=null?By:""},
visiblyDisabled:eJ,ariaHidden:kd,tabIndex:a5},_.N(RLR,{data:R,hasIconLeading:e,hasIconLeadingTrailing:$d,hasIconTrailing:X,iconButton:t,icon:pR,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:cd})))},"q");
BI.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var eLa=_.sx(function(B){var R=B.data;var V=B.id;var e=B.hidden;var X=B.className;var Y=B.icon;var t=B.secondaryIcon;var b=B.iconName;var J=B.secondaryIconName;B=_.h(_.WU(!1,void 0,"ikxyhf"));var G=B.next().value,y=B.next().value,S=function(){var f=_.Oz().resolve(_.uj(_.DE));f&&y(f.isKeyBoardInUse())},M=function(){y(!1)};
B=_.Zh(function(f){if(_.Oz().resolve(_.uj(_.DE)))return f.addEventListener("focusin",S),f.addEventListener("focusout",M),function(){f.removeEventListener("focusin",S);f.removeEventListener("focusout",M)}});
return _.N("yt-button-shape",{el:B,id:V,class:X,hidden:e},_.N(_.H,{cond:R,then:function(){return _.N(BI,{data:R,icon:Y,secondaryIcon:t,iconName:b,secondaryIconName:J,focusedOverride:G})}}))},"r");
_.k("web_wiz_button_shape")&&_.mR(eLa,"yt-button-shape",{props:{data:_.qq,id:_.qq,hidden:_.qq,className:_.qq,icon:_.Z9,secondaryIcon:_.Z9,iconName:_.qq,secondaryIconName:_.qq},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var Ob=function(){var B=_.c.apply(this,arguments)||this;B.keyboardFocused=!1;return B};
_.l(Ob,_.c);Ob.prototype.onFocus=function(){var B=_.Oz().resolve(_.uj(_.DE));B&&(this.keyboardFocused=B.isKeyBoardInUse())};
Ob.prototype.onBlur=function(){this.keyboardFocused=!1};
Ob.prototype.renderIdom=function(){var B=this;if(this.data){var R=Nx(this.data,!!this.iconName),V=alo(this.data);this.data.focused=this.keyboardFocused;LYd(this.data,function(){var e;kT("yt-icon",{icon:B.iconName,active:(e=B.data)==null?void 0:e.toggled,size:R,style:"width: "+R+"px; height: "+R+"px;",iconFilter:V},iJ)},function(){var e;
kT("yt-icon",{icon:B.secondaryIconName,active:(e=B.data)==null?void 0:e.toggled,size:R,style:"width: "+R+"px; height: "+R+"px;",iconFilter:V},iJ)});
_.OI(this.hostElement,"yt-renderidom-finished")}};
_.mh.Object.defineProperties(Ob,{template:{configurable:!0,enumerable:!0,get:function(){if(COv===void 0){var B=document.createElement("template");_.a(B,"\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");
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore($0G().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore(Zoa().content.cloneNode(!0),B.content.firstChild);COv=B}B=COv;return B}}});
Ob.prototype.onBlur=Ob.prototype.onBlur;Ob.prototype.onFocus=Ob.prototype.onFocus;_.r([_.v(Ta_),_.Z("design:type",Object)],Ob.prototype,"ytIdomTemplatingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ob.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],Ob.prototype,"iconName",void 0);_.r([_.E(),_.Z("design:type",String)],Ob.prototype,"secondaryIconName",void 0);_.r([_.E(),_.Z("design:type",Object)],Ob.prototype,"keyboardFocused",void 0);
_.r([_.R_("focusin"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ob.prototype,"onFocus",null);_.r([_.R_("focusout"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ob.prototype,"onBlur",null);Ob=_.r([_.fJ({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.k("web_wiz_button_shape")})],Ob);_.mR(_.sx(function(B){function R(){V().seconds&&Y(niZ({seconds:Number(V().seconds)-Date.now()/1E3}))}
var V=B.targetTimestamp;B=B.className;var e=_.h(_.WU("",void 0,"U1Q8Ae")),X=e.next().value,Y=e.next().value;_.fQ(function(){R();var t=setInterval(function(){R()},1E3);
_.aK(function(){clearInterval(t)})});
return _.N("yt-countdown",{class:_.XE("ytCountDownHost",B)},_.N("div",null,X))},"s"),"yt-countdown",{props:{targetTimestamp:_.qq,
className:_.Z9}});_.qo=_.sx(function(B){var R=B.data;var V=B.className;var e=B.style;var X=B.useOutlinedIcon;var Y=B.buttonOverrides;var t=B.animatedTextProps;var b=B.onClick;var J=_.Zh(function(L){return function(){x4v(_.pF(),L)}}),G=function(){return R().iconName},y,S=(y=_.Oz().resolve(_.uj(_.E5)))==null?void 0:y(),M=function(){var L=R();
var Q=Y==null?void 0:Y(),q=t==null?void 0:t();if(L){var m=AN5(L.type);var g=!!L.title||!!L.titleFormatted;var Vu=!(!L.iconName&&!L.iconImage);g=Vu&&!g?"icon-only":Vu?L.iconTrailing||L.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;g==="icon-only-40"&&(m="text");var n,Yd=(n=Q==null?void 0:Q.disabled)!=null?n:L.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||L.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";n=Object;Vu=n.assign;var kd=L.title,a5=L.titleFormatted;q=q&&q.numberText&&
!isNaN(Number(q.numberValue))?q:void 0;var lo=L.accessibilityText,io=cN_(L.style),vd=i2p(L.state),cd=sRq(L.buttonSize),ES=q1q(L,J,Yd,b);Yd=Yd&&!L.onDisabledTap;var $d=_.T2({elementsCommand:L.onTap,forceNewState:!0});$d=xT($d)?$d:void 0;var Eo=L.customFontColor,GG=L.customBackgroundColor;var eJ=L.customBorderColor;var pR=L.customDarkThemeFontColor,d4=L.customDarkThemeBackgroundColor,W2=L.customDarkThemeBorderColor;Eo=S&&pR?pR:Eo;GG=S&&d4?d4:GG;eJ=S&&W2?W2:eJ;eJ={color:Eo?_.zF(Eo):void 0,backgroundColor:GG?
_.zF(GG):void 0,borderColor:eJ?_.zF(eJ):void 0};L=Vu.call(n,{},{buttonText:kd,formattedButtonText:a5,animatedTextProps:q,accessibilityLabel:lo,style:io,type:m,state:vd,size:cd,iconPosition:g,onTap:ES,disabled:Yd,aTagConfig:$d,customColors:eJ,tooltipText:L.tooltip},Q)}else L={style:"mono",type:"text",state:"active",size:"M"};L.focused=T();return L},f=function(){return Nx(M(),!!R().iconName)};
B=_.h(_.WU(!1,void 0,"JjUrEe"));y=B.next().value;var z=B.next().value,T=y;B=_.Wr(function(){var L=_.Oz().resolve(_.uj(_.DE));L&&z(L.isKeyBoardInUse());return!1});
y=_.Wr(function(){z(!1);return!1});
_.lJ(function(){var L,Q=_.D(R==null?void 0:(L=R())==null?void 0:L.onVisible,_.aT);Q&&_.wl(Q,{disableClickTracking:!0})});
_.zM(function(){J.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var L=R().targetId;L&&_.vnl(_.pF(),L,J.value)});
return _.N("button-view-model",{el:J,class:_.XE("yt-spec-button-view-model",V),"on:focusin":B,"on:focusout":y},_.N(_.H,{cond:function(){return R().iconImage?{sources:[R().iconImage]}:void 0},
then:function(L){return _.N(BI,{data:M,icon:function(){return _.N(_.ia,{data:L,alt:"",targetWidth:f,targetHeight:f,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.N(BI,{data:M,icon:function(){return _.N(_.Us,{icon:G,active:function(){return(X==null?0:X())?!1:M().toggled},
animateIcon:function(){var L;return!!(e==null?0:(L=e())==null?0:L.animateIcon)},
size:f})}})}}))},"t");
_.qo.idomCompat={callbacks:{onClick:!0}};_.mR(_.sx(function(B){return _.N("yt-button-view-model",{id:B.id,class:_.XE(B.scopingClassName,B.classes),icon:function(){var R;return(R=B.icon)==null?void 0:R.call(B)},
"dialog-dismiss":function(){var R;return((R=B.dialogDismiss)==null?0:R.call(B))?"":void 0}},_.N(_.qo,{data:function(){var R;
return(R=B.data)==null?void 0:R.call(B)},
className:function(){var R;return(R=B.className)==null?void 0:R.call(B)},
style:function(){var R;return(R=B.style)==null?void 0:R.call(B)},
useOutlinedIcon:function(){var R;return(R=B.useOutlinedIcon)==null?void 0:R.call(B)},
buttonOverrides:function(){var R;return(R=B.buttonOverrides)==null?void 0:R.call(B)},
animatedTextProps:function(){var R;return(R=B.animatedTextProps)==null?void 0:R.call(B)},
onClick:function(R){var V;return(V=B.onClick)==null?void 0:V.call(B,R)}}))},"u"),"yt-button-view-model",{props:{data:_.qq,
className:_.qq,style:_.qq,useOutlinedIcon:_.qq,buttonOverrides:_.qq,animatedTextProps:_.qq,onClick:_.Z9,scopingClassName:_.qq,id:_.qq,icon:_.qq,dialogDismiss:_.qq,classes:_.qq}});var oo=function(){var B=_.c.apply(this,arguments)||this;B.isGoalActive=!0;return B};
_.l(oo,_.c);oo.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
oo.prototype.progressBarChanged=function(){var B=_.w(this.hostElement).querySelector("#progress-bar-progress"),R,V,e,X=(e=Number((R=this.creatorGoalState)==null?void 0:R.currentGoalCount)/Number((V=this.creatorGoalState)==null?void 0:V.totalGoalCount)*100)!=null?e:0,Y;B.style.width=((Y=Math.min(X,100))!=null?Y:0)+"%"};
oo.prototype.goalStateChanged=function(){var B;this.isGoalActive=((B=this.creatorGoalState)==null?void 0:B.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var R;B={"--yt-progress-bar-color":hgI((R=this.creatorGoalState)==null?void 0:R.progressBarColor)};_.o_(this.hostElement,B)};
oo.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.mh.Object.defineProperties(oo.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var B;return this.isGoalActive&&!((B=this.creatorGoalState)==null||!B.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.creatorGoalState)==null?0:B.endTimestampMs){var R;B=Number((R=this.creatorGoalState)==null?void 0:R.endTimestampMs)/1E3;return{seconds:String(B)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.creatorGoalState)==null?0:B.themedTargetImage){var R;B=_.D((R=this.creatorGoalState)==null?void 0:R.themedTargetImage,VSa);return this.isAppDarkTheme()?B==null?void 0:B.imageDark:B==null?void 0:B.imageLight}}}});
_.mh.Object.defineProperties(oo,{template:{configurable:!0,enumerable:!0,get:function(){return T_4()}}});
oo.prototype.goalStateChanged=oo.prototype.goalStateChanged;oo.prototype.progressBarChanged=oo.prototype.progressBarChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],oo.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);
_.r([_.E({selectorArgs:["data.creatorGoalEntityKey"],selector:function(B,R){return _.p7(B.entities,"creatorGoalEntity",R)}}),
_.Z("design:type",Object)],oo.prototype,"creatorGoalState",void 0);_.r([_.E(),_.Z("design:type",Object)],oo.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],oo.prototype,"isGoalActive",void 0);_.r([_.K("creatorGoalState","isGoalActive"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],oo.prototype,"shouldShowCountdown",null);_.r([_.K("creatorGoalState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],oo.prototype,"endTimestamp",null);
_.r([_.K("creatorGoalState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],oo.prototype,"targetIconThemedImage",null);_.r([_.XX("creatorGoalState.currentGoalCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oo.prototype,"progressBarChanged",null);_.r([_.XX("creatorGoalState.creatorGoalState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oo.prototype,"goalStateChanged",null);
oo=_.r([_.fJ({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],oo);_.F(oo,"yt-creator-goal-progress-flow-view-model",function(){return T_4()},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var XZ_;var pZo;var BP=function(){return _.c.apply(this,arguments)||this};
_.l(BP,_.c);BP.prototype.attached=function(){var B,R,V;if(this==null?0:(B=this.data)==null?0:(R=B.pdgPurchasedBumperLoggingDirectives)==null?0:(V=R.loggingDirectives)==null?0:V.trackingParams){var e,X,Y;g9A(this==null?void 0:(e=this.data)==null?void 0:(X=e.pdgPurchasedBumperLoggingDirectives)==null?void 0:(Y=X.loggingDirectives)==null?void 0:Y.trackingParams)}};
BP.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],BP.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],BP.prototype,"data",void 0);BP=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],BP);
_.F(BP,"yt-live-chat-item-bumper-view-model",function(){if(pZo===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;XZ_===void 0&&(XZ_=document.createElement("template"));var e=XZ_;V.call(R,e.content.cloneNode(!0),B.content.firstChild);pZo=B}B=pZo;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var YwT;var hL2;_.r1=function(B,R){this.data=B;this.actions=R;this.data=B;this.actions=R};
_.IO=function(){};_.Ro={};_.Ro.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(B,R){Z2S(this.hostElement,B,R)},
getNavigationEndpointPopupAction:function(B){return mcx(B,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(B,R){$co(this.hostElement,B,R,this.openPopupConfig)}};var eFq=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.VR={};
_.VR.YtEndpointBehavior=[_.Ro.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.vE("openPopupConfig");(this.useClickHandler=_.KQ("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(B){n9S(this.hostElement,B,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(B){var R=this.hostElement,V=this.openPopupConfig,e=this.disableCommandHandlerOverride;e=e===void 0?!1:e;var X=Cwq(B);if(X){X.href&&wr(X.href);var Y=B.detail;var t=Y.sourceEvent;Y=Y.preventer;t=t.button!==void 0?t.button===0&&!DP(t):Y?!DP(Y):!0;X.data&&t&&Pwo(R,X,B,V,e)}},
onEndpointTouchEnd_:function(B){DP(B)||Cwq(B)&&B.preventDefault()},
onEndpointTapStart_:function(B){RFN(B)}}];var Xqd="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),Yiu=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var tNv={};tNv.YtPlaintextBehavior=[_.kI,{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(B){B.preventDefault();B=B.clipboardData.getData("text/plain");document.execCommand("insertText",!1,B)},
preventRichTextFormatting_:function(B){_.jY&&(B=B.detail.keyboardEvent,B.stopImmediatePropagation(),B.preventDefault())}}];var Wxa;var bA4;var ej=function(){var B=_.c.apply(this,arguments)||this;B.ignoreShadyDom=!1;B.hasChange_=!1;B.hasSetTitle_=!1;B.useIOObserverForVisibilityLogging_=_.k("kevlar_use_vimio_behavior")&&_.vE("INNERTUBE_CLIENT_NAME")==="WEB";B.ytFormattedStringObserverHandlerKeys_=void 0;return B};
_.l(ej,_.c);_.p=ej.prototype;_.p.created=function(){this.useIOObserverForVisibilityLogging_=_.k("kevlar_use_vimio_behavior")&&_.vE("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.p.ready=function(){_.vE("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 B=this.getRoot(),R=B.lastChild;R&&R.tagName!=="STYLE";){try{B.removeChild(R)}catch(V){break}R=B.lastChild}};
_.p.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var B=_.h(this.ytFormattedStringObserverHandlerKeys_),R=B.next();!R.done;R=B.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(R.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.p.resetForAttributedString=function(){var B=this.getRoot();!B.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),B.appendChild(this.ytAttributedStringElementRef))};
_.p.resetForFormattedString=function(){var B=this.getRoot(),R=B.querySelector("yt-attributed-string");R&&(this.ytAttributedStringElementRef=B.removeChild(R))};
_.p.textChanged=function(){this.textChanged_(this.text)};
_.p.textChanged_=function(B){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!B||!B.runs&&!B.simpleText;if(_.k("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var R=this.hostElement.firstChild;R&&R.nodeName==="FONT";){var V=R;R=R.nextSibling;this.hostElement.removeChild(V)}R=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
V=B.simpleText;var e;!V&&((e=B.runs)==null?void 0:e.length)===1&&this.isSimpleString_(B.runs[0])&&(V=B.runs[0].text);V!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.vE("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(V!==void 0){try{R.textContent=V}catch(X){}R.textContent||(this.isEmpty=!0)}else B=B.runs,V!==void 0&&(B=[{text:V}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),B&&this.updateText_(B),
R.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(B){return B};
_.p.computeEllipsisTruncateStyling=function(B,R){return B&&!R};
_.p.computeUseAttributedString=function(B){return _.k("web_replace_formatted_with_attributed_string")&&lDo(B)&&!this.disableAttributedString&&!this.enableContentEditable};
_.p.setNodeStyle_=function(B,R){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.k("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?R.removeAttribute("dir"):R.setAttribute("dir","auto");R.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");R.style.color="";var V=null;this.noStyles||(B.bold&&(R.classList.add("bold"),V="bold"),B.deemphasize&&(R.classList.add("deemphasize"),V="deemphasize"),B.italics&&R.classList.add("italic"),
B.strikethrough&&R.classList.add("strikethrough"),B.errorUnderline&&(R.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),B.bracket&&R.classList.add("bracket"),B.textColor&&(R.style.color=_.li(B.textColor)));V!==R.getAttribute("style-target")&&(V?R.setAttribute("style-target",V):R.removeAttribute("style-target"))};
_.p.setUpVisibilityLogging_=function(B,R){var V=this;this.setNodeTrackingParams_(B,R);var e;((e=R.data)==null?0:e.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(B=this.ytRendererBehavior.visibilityObserver.observe(R,function(X){var Y=V.ytRendererBehavior.getVisibilityLogger();Y&&Y.reportShown(X)},this.ytRendererBehavior.visibilityOptionVisible_),R=this.ytRendererBehavior.visibilityObserver.observe(R,function(X){var Y=V.ytRendererBehavior.getVisibilityLogger();
Y&&Y.reportHidden(X)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(B),this.ytFormattedStringObserverHandlerKeys_.push(R))};
_.p.setNodeTrackingParams_=function(B,R){R.data||(R.data={});if((B=B.loggingDirectives?B.loggingDirectives.trackingParams:null)||R.data.trackingParams)R.data.trackingParams=B};
_.p.computeHasLinkOnly_=function(B){return!(!B||B.length!==1||this.noEndpoints||!B[0].navigationEndpoint)};
_.p.getRoot=function(){var B=this.buildScopeDomOptions();return this.enableContentEditable?_.w(_.w(this.hostElement,B).querySelector("[contenteditable]")):_.w(this.hostElement,B)};
_.p.fixContenteditableScope=function(){var B=function(R){R&&(R.nodeType===1&&R.classList&&(R.classList.add("style-scope"),R.classList.add("yt-formatted-string")),R.childNodes&&R.childNodes.forEach(function(V){B(V)}))};
B(this.getRoot())};
_.p.updateText_=function(B){for(var R=B.length,V=this.getRoot(),e=V.firstChild;e&&e.nodeName==="STYLE";)e=e.nextSibling;for(var X=0;X<R&&e;){var Y=B[X],t=_.k("remove_cr_char")&&Y.text?Y.text.replace("\r",""):Y.text;if(this.isSimpleString_(Y)&&!this.useMixedDirectionFormattedStrings)if(e.nodeName==="#text"){e.textContent!=t&&(e.textContent=t);X++;e=e.nextSibling;continue}else break;if(_.D(Y,la))break;else if(!this.noEndpoints&&Y.navigationEndpoint){if(e.nodeName!=="A")break;this.setDataOnAnchor_(e,
Y.navigationEndpoint)}else if(e.nodeName!=="SPAN")break;this.setNodeStyle_(Y,e);this.setUpVisibilityLogging_(Y,e);e.textContent!=t&&(e.textContent=t);X++;e=e.nextSibling}if(e)for(Y=V.lastChild,e=X?e.previousSibling:null;Y&&Y!=e;){try{V.removeChild(Y)}catch(b){break}Y=V.lastChild}X!==R&&this.addTextNodes_(B,X)};
_.p.addTextNodes_=function(B,R){for(var V=document.createDocumentFragment(),e=B.length;R<e;R++){var X=B[R],Y=_.k("remove_cr_char")&&X.text?X.text.replace("\r",""):X.text;if(this.isSimpleString_(X)&&!this.useMixedDirectionFormattedStrings)V.appendChild(document.createTextNode(Y));else{var t=_.D(X,la);if(t){if(t.image){var b=document.createElement("img");t.isCustomEmoji||b.classList.add("small-emoji");b.classList.add("emoji");t.isCustomEmoji&&(b.dataset.emojiId=t.emojiId);b.src=_.$T(t.image.thumbnails,
this.emojiSize);(X=this.get("image.accessibility.accessibilityData.label",t))?b.alt=X:t.shortcuts&&t.shortcuts.length>0?b.alt=t.shortcuts[0]:t.emojiId&&(b.alt=t.emojiId);V.appendChild(b);this.hasEmoji=!0}}else!this.noEndpoints&&X.navigationEndpoint?(b=document.createElement("a"),b.classList.add("yt-simple-endpoint"),b.setAttribute("spellcheck","false"),this.setDataOnAnchor_(b,X.navigationEndpoint)):b=document.createElement("span"),this.setNodeStyle_(X,b),this.setUpVisibilityLogging_(X,b),b.appendChild(document.createTextNode(Y)),
V.appendChild(b)}}this.getRoot().appendChild(V)};
_.p.isSimpleString_=function(B){return(this.noEndpoints||!B.navigationEndpoint)&&!_.D(B,la)&&(this.noStyles||!(B.bold||B.deemphasize||B.italics||B.strikethrough||B.errorUnderline||B.bracket||B.textColor))&&!B.loggingDirectives};
_.p.getRawText=function(){return _.FF(this.text)};
_.p.getFirstRunText=function(){var B;if(((B=this.text)==null?0:B.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.p.setFirstRunText=function(B){var R;((R=this.text)==null?0:R.runs)&&this.text.runs[0]&&(this.text.runs[0].text=B,this.textChanged_(this.text))};
_.p.setDataOnAnchor_=function(B,R){var V=this;!_.k("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(R)||this.isSignalServiceEndpoint_(R)?(B.onclick=this.serviceEndpointHandler_(R),f$(B,"#")):QTp({text:this.text,command:R},function(){Caq(B,R,V.target)})};
_.p.isServiceEndpoint_=function(B){var R;return!((R=_.D(B==null?void 0:B.commandMetadata,_.$a))==null||!R.sendPost)};
_.p.isSignalServiceEndpoint_=function(B){return!!_.D(B,_.hE)};
_.p.serviceEndpointHandler_=function(B){var R=this;return function(V){_.VD(R.hostElement,[B]);V.preventDefault()}};
_.p.overrideAriaLabelChanged_=function(){var B=this.getRoot();this.enableContentEditable&&B&&B.setAttribute("aria-label",this.overrideAriaLabel)};
_.p.enableContentEditableChanged_=function(){var B=this,R=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),R=_.w(this.hostElement,R),!R.lastChild||R.lastChild instanceof HTMLElement&&R.lastChild.id!=="contenteditable-root"){var V=document.createElement("div");V.id="contenteditable-root";V.setAttribute("contenteditable","true");V.setAttribute("dir","auto");V.onfocus=function(){B.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
R.appendChild(V);this.overrideAriaLabel&&V.setAttribute("aria-label",this.overrideAriaLabel)}}else V=_.P$(this.hostElement).firstChild,V instanceof HTMLElement&&V.id==="contenteditable-root"&&_.w(this.hostElement,R).removeChild(V)};
_.p.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.p.getNodesForVisibilityLogging_=function(){return _.pU(this.getRoot().childNodes,function(B){var R;return!((R=B.data)==null||!R.trackingParams)})};
_.p.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.p.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var B=this.ytRendererBehavior.getVisibilityLogger();B&&this.getNodesForVisibilityLogging_().forEach(function(R){B.reportShown(R)})}};
_.p.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var B=this.ytRendererBehavior.getVisibilityLogger();B&&this.getNodesForVisibilityLogging_().forEach(function(R){B.reportHidden(R)})}};
_.mh.Object.defineProperties(ej.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.k("enable_mixed_direction_formatted_strings")}}});
ej.prototype.enableContentEditableChanged_=ej.prototype.enableContentEditableChanged_;ej.prototype.overrideAriaLabelChanged_=ej.prototype.overrideAriaLabelChanged_;ej.prototype.ellipsisTruncateChanged_=ej.prototype.ellipsisTruncateChanged_;ej.prototype.textChanged=ej.prototype.textChanged;_.r([_.v(tNv.YtPlaintextBehavior),_.Z("design:type",Object)],ej.prototype,"ytPlaintextBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ej.prototype,"text",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"noEndpoints",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"noStyles",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ej.prototype,"isDarkTheme",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],ej.prototype,"splitLines",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ej.prototype,"forceDefaultStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ej.prototype,"ellipsisTruncate",void 0);_.r([_.E(),_.Z("design:type",Object)],ej.prototype,"ignoreShadyDom",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Z("design:type",Boolean)],ej.prototype,"ellipsisTruncateStyling",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Z("design:type",String)],ej.prototype,"ariaLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ej.prototype,"isEmpty",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Z("design:type",Boolean)],ej.prototype,"hasLinkOnly_",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"hasEmoji",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"disableAttributedString",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"isOverlay",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"linkInheritColor",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"noPreWrap",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"userInput",void 0);_.r([_.E({value:16}),_.Z("design:type",Number)],ej.prototype,"emojiSize",void 0);_.r([_.E(),_.Z("design:type",String)],ej.prototype,"target",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"enableContentEditable",void 0);_.r([_.E(),_.Z("design:type",String)],ej.prototype,"overrideAriaLabel",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"respectHtmlDir",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ej.prototype,"respectLangDir",void 0);_.r([_.K("plaintextOnly"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ej.prototype,"useMixedDirectionFormattedStrings",null);_.r([_.E({computed:"computeUseAttributedString(text)"}),_.Z("design:type",Boolean)],ej.prototype,"useYtAttributedString",void 0);
_.r([_.XX("text"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ej.prototype,"textChanged",null);_.r([_.XX("ellipsisTruncate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ej.prototype,"ellipsisTruncateChanged_",null);_.r([_.XX("overrideAriaLabel"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ej.prototype,"overrideAriaLabelChanged_",null);
_.r([_.XX("enableContentEditable"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ej.prototype,"enableContentEditableChanged_",null);ej=_.r([_.fJ({is:"yt-formatted-string",disableElementRegistration:!0})],ej);
_.F(ej,"yt-formatted-string",function(){if(bA4===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Wxa===void 0&&(Wxa=document.createElement("template"));var e=Wxa;V.call(R,e.content.cloneNode(!0),B.content.firstChild);bA4=B}B=bA4;return B});var JeS;var jn4;var U82;var NIv;var Xw=function(){var B=_.c.apply(this,arguments)||this;B.focused=!1;B.disabled=!1;B.isOverlay=!1;return B};
_.l(Xw,_.c);Xw.prototype.triggerDown=function(){if(!this.disabled){_.nk(this.hostElement,"down",!0);var B;(B=this.currentAnimation)==null||B.cancel()}};
Xw.prototype.triggerUp=function(){if(!this.disabled){_.nk(this.hostElement,"down",!1);var B=this.fillElement;var R=this.strokeElement;typeof GroupEffect==="function"?(B=new GroupEffect([UcA(B),NdI(R)]),B=new Animation(B,document.timeline)):B=new n7b(B,R);this.currentAnimation=B;var V;(V=this.currentAnimation)==null||V.play()}};
_.r([_.Yp(".stroke"),_.Z("design:type",HTMLElement)],Xw.prototype,"strokeElement",void 0);_.r([_.Yp(".fill"),_.Z("design:type",HTMLElement)],Xw.prototype,"fillElement",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Xw.prototype,"focused",void 0);_.r([_.E(),_.Z("design:type",Object)],Xw.prototype,"disabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Xw.prototype,"isOverlay",void 0);Xw=_.r([_.fJ({is:"yt-interaction",disableElementRegistration:!0})],Xw);
_.F(Xw,"yt-interaction",function(){if(NIv===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;U82===void 0&&(U82=document.createElement("template"));var e=U82;V.call(R,e.content.cloneNode(!0),B.content.firstChild);NIv=B}B=NIv;return B},{mode:2});var pj=function(){return _.c.apply(this,arguments)||this};
_.l(pj,_.c);_.p=pj.prototype;_.p.ready=function(){var B=this,R=_.w(this.hostElement).querySelector("#button");R.addEventListener("focus",function(){nga||(nga=new P2R);B.keyboardFocused=nga.isKeyBoardInUse()});
R.addEventListener("blur",function(){B.keyboardFocused=!1;B.rippleUp_()})};
_.p.computeTabIndex_=function(B){return B?-1:0};
_.p.computeButtonAriaPressed_=function(B){if(this.toggleable)return B?"true":"false"};
_.p.rippleDown_=function(){_.w(this.hostElement).querySelector("#interaction").triggerDown()};
_.p.rippleUp_=function(){_.w(this.hostElement).querySelector("#interaction").triggerUp()};
_.p.onPressedChanged_=function(){var B=_.P$(_.w(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.P$(_.w(this.hostElement).querySelector("#button")).children[0];B&&(B.active=this.pressed)};
pj.prototype.onPressedChanged_=pj.prototype.onPressedChanged_;pj.prototype.rippleUp_=pj.prototype.rippleUp_;pj.prototype.rippleDown_=pj.prototype.rippleDown_;_.r([_.E(),_.Z("design:type",String)],pj.prototype,"label",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pj.prototype,"disabled",void 0);_.r([_.E(),_.Z("design:type",Boolean)],pj.prototype,"pressed",void 0);_.r([_.E(),_.Z("design:type",Object)],pj.prototype,"toggleable",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],pj.prototype,"untabbable",void 0);_.r([_.E(),_.Z("design:type",Boolean)],pj.prototype,"keyboardFocused",void 0);_.r([_.R_("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pj.prototype,"rippleDown_",null);_.r([_.R_("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pj.prototype,"rippleUp_",null);
_.r([_.XX("pressed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pj.prototype,"onPressedChanged_",null);pj=_.r([_.fJ({is:"yt-icon-button",disableElementRegistration:!0})],pj);
_.F(pj,"yt-icon-button",function(){if(jn4===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;JeS===void 0&&(JeS=document.createElement("template"));var e=JeS;V.call(R,e.content.cloneNode(!0),B.content.firstChild);jn4=B}B=jn4;return B},{mode:2});var G9o=_.$Q(["aria-"]),YE={};YE.YtRenderButtonBehavior=[_.O.YtRendererBehavior,_.VR.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!!_.Oz().resolve(_.uj(_.DE))&&_.k("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 B=this.computeHref_(this.endpoint,!0);B?f$(this.elements_.endpoint,B):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){B=this.buttonClass.split(" ");B=_.h(B);for(var R=B.next();!R.done;R=B.next())R=R.value,_.nk(this.hostElement,R,!0),this.elements_.button&&_.nk(this.elements_.button,R,!0),this.elements_.text&&_.nk(this.elements_.text,R,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(B=null,this.buttonAccessibility&&(B=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=B:B?_.cB([_.PR(G9o)],this.elements_.button,"aria-label",B):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var B=_.Oz().resolve(_.uj(_.DE));B&&(this.keyboardFocused=B.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.rM("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,_.Mr(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Mr(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(B,R){if(R)for(B=R.split(" "),B=_.h(B),R=B.next();!R.done;R=B.next())R=R.value,_.nk(this.hostElement,R,!1),this.elements_.button&&_.nk(this.elements_.button,R,!1),this.elements_.text&&_.nk(this.elements_.text,R,!1)},
buttonIconChanged_:function(B){this.elements_.icon?B?(this.elements_.icon.icon=B,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Mr(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.ui(this.hostElement,"is-paper-button-with-icon",!1)):B&&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"&&_.Mr(this.elements_.button).appendChild(this.elements_.icon):_.Mr(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.ui(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(B){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,B){var R=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(B){case "yt_icon_button_with_label":R=!0;_.nk(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();B=_.Mr(this.elements_.button).firstElementChild;
this.elements_.icon=B;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Mr(this.elements_.endpoint).appendChild(this.elements_.button);_.Mr(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.rM("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;_.Mr(this.elements_.button).appendChild(this.elements_.text);_.Mr(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":R=!0,this.elements_.button=this.getYtIconButton_(),B=_.Mr(this.elements_.button).firstElementChild,this.elements_.icon=B,this.setIconActive_(this.elements_.icon),
_.Mr(this.elements_.endpoint).appendChild(this.elements_.button)}_.ui(this.hostElement,"is-icon-button",R);_.ui(this.hostElement,"is-paper-button",!R);_.ui(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 V;_.w((V=this.container.hostElement)!=null?V:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Mr(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(B){if(B!=void 0||this.disabled)this.disabled=B,this.elements_.button&&(this.elements_.button.disabled=B)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(B){_.k("kevlar_system_icons")&&B&&this.data&&(this.data.isSelected!==void 0?B.active=this.data.isSelected:this.data.isToggled!==void 0&&(B.active=this.data.isToggled))},
observeBasicPalette_:function(B){_.lP(this.hostElement,B)},
disabledChanged_:function(B){this.data&&this.set("data.isDisabled",B)},
onYtButtonTap_:function(B){if(this.disabled)B.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.VD(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(B=this.disableCommandHandlerOverride,!this.data||!this.data.command||B||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.k("handle_service_request_actions")||_.VD(this.hostElement,[this.serviceEndpoint]),
_.OI(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.k("handle_service_request_actions")?(B=[],this.serviceEndpoint&&B.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&B.push(this.data.command),B.length&&_.eO(this.hostElement,B,this.hostElement)):this.data&&this.data.command&&(B=this.data.command,B.accountUnlinkCommand||B.accountLinkCommand||B.insertAdCommand||B.insertHighlightMarkerCommand||
B.createLivestreamHighlightClipCommand||B.getVideoUploadFeedbackCommand||B.musicDeletePrivatelyOwnedEntityCommand||B.ypcCancelRecurrenceEndpoint||B.getMultiSelectCommandEndpoint?_.VD(this.hostElement,[B]):_.eO(this.hostElement,[B],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 B,R=_.w((B=this.container.hostElement)!=null?B:this.container);R.lastChild&&R.lastChild.tagName!="STYLE";)try{R.removeChild(R.lastChild)}catch(V){break}},
getYtIconButton_:function(){var B=this.reuseEnabled_()?_.rM("yt-icon-button"):document.createElement("yt-icon-button"),R=_.Mr(B).firstElementChild;if(R&&R.is!="yt-icon"){for(R=_.Mr(B);R.lastChild;)R.removeChild(R.lastChild);R=null}R||(R=this.getIcon_(),this.setIconActive_(R),_.Mr(B).appendChild(R));return B},
reuseEnabled_:function(){return _.k("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.rM("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.rM("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.yeh={};
_.yeh.YtButtonBehavior=[YE.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var B=this.data;B&&(this._setEndpoint(this.computeEndpoint_(B)),this._setServiceEndpoint(this.computeServiceEndpoint_(B)),this._setCommand(this.computeCommand_(B)),this._setButtonIcon(this.computeButtonIcon_(B)),this._setButtonText(this.computeButtonText_(B,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(B)),this._setButtonTooltip(this.computeTooltip_(B)),this._setButtonClass(this.computeButtonClass_(B)),this._setIconPositionType(this.computeIconPositionType_(B)),this.updateRenderedElements())},
setPressedState:function(B){var R;if((R=this.elements_)==null?0:R.button)this.elements_.button.pressed=!!B},
computeIconPositionType_:function(B){return B&&B.iconPosition||null},
computeEndpoint_:function(B){var R=B&&B.navigationEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.url"),e=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return R?R:B&&B.command&&B.command.modalEndpoint?B.command:V&&!e&&B.command?B.command:null},
computeServiceEndpoint_:function(B){var R=B&&B.serviceEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return R?R:V&&B.command?B.command:null},
computeCommand_:function(B){return B&&B.command||null},
computeButtonIcon_:function(B){return B&&B.icon&&B.icon.iconType?_.RT(B.icon.iconType):null},
computeButtonText_:function(B,R){return!R&&B&&B.text||null},
computeAccessibility_:function(B){return this.get("accessibilityData.accessibilityData",B)||B&&B.accessibility||(B&&B.text?{label:this.getSimpleString(B.text)}:null)},
computeTooltip_:function(B){return B?B.isDisabled&&B.disabledTooltip||B.tooltip||null:null},
computeButtonClass_:function(B){var R=B&&B.style?B.style.toLowerCase().replace(/_/g,"-")+" ":"";R+=B&&B.size?B.size.toLowerCase().replace(/_/g,"-")+" ":"";B.colorData&&B.colorData.basicColorPaletteData&&B.colorData.basicColorPaletteData.borderColor&&(R+="palette-with-border");return R.trim()}}];var zj={};var Swa;var HAR;var MNT,k9h=function(){return MNT!==void 0?MNT:MNT=document.createElement("template")};
document.head.appendChild(k9h().content);var D85;var fwv,lw2=function(){return fwv!==void 0?fwv:fwv=document.createElement("template")};
document.head.appendChild(lw2().content);var zL2;var awb,d8h=function(){return awb!==void 0?awb:awb=document.createElement("template")};
document.head.appendChild(d8h().content);var wZ4;var TIa=document.head,x8v=TIa.appendChild,LxT;if(wZ4===void 0){var vrb=document.createElement("template");_.a(vrb,"\x3c!--css-build:shady--\x3e");vrb.content.insertBefore(d8h().content.cloneNode(!0),vrb.content.firstChild);wZ4=vrb}LxT=wZ4;x8v.call(TIa,LxT.content);var KxJ=document.head,Iw_=KxJ.appendChild,Erh;if(zL2===void 0){var Qna=document.createElement("template");_.a(Qna,"\x3c!--css-build:shady--\x3e");Qna.content.insertBefore(lw2().content.cloneNode(!0),Qna.content.firstChild);zL2=Qna}Erh=zL2;Iw_.call(KxJ,Erh.content);var qwR=document.head,ceG=qwR.appendChild,AeR;if(D85===void 0){var iAo=document.createElement("template");_.a(iAo,"\x3c!--css-build:shady--\x3e");iAo.content.insertBefore(k9h().content.cloneNode(!0),iAo.content.firstChild);D85=iAo}AeR=D85;ceG.call(qwR,AeR.content);var sn4;_.aO("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");sn4=_.k("web_button_rework")&&_.KQ("BUTTON_REWORK")||_.k("web_button_rework_with_live");_.hd=function(){return _.c.apply(this,arguments)||this};
_.l(_.hd,_.c);_.hd.prototype.created=function(){this.openPopupConfig=_.vE("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.hd.prototype.onYtNavigate_=function(B){var R=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(B.detail.endpoint);R&&(this.ytOpenPopupBehavior.openPopup(R),B.stopPropagation(),B.preventDefault())};
_.mh.Object.defineProperties(_.hd,{template:{configurable:!0,enumerable:!0,get:function(){if(HAR===void 0){var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
var R=B.content,V=R.insertBefore;Swa===void 0&&(Swa=document.createElement("template"));var e=Swa;V.call(R,e.content.cloneNode(!0),B.content.firstChild);HAR=B}B=HAR;return B}}});
_.hd.prototype.onYtNavigate_=_.hd.prototype.onYtNavigate_;_.r([_.v(_.Ro.YtOpenPopupBehavior),_.Z("design:type",Object)],_.hd.prototype,"ytOpenPopupBehavior",void 0);_.r([_.v(_.yeh.YtButtonBehavior),_.Z("design:type",Object)],_.hd.prototype,"ytButtonBehavior",void 0);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],_.hd.prototype,"onYtNavigate_",null);
_.hd=_.r([_.fJ({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:sn4})],_.hd);var FxS;var reb=_.k("web_button_rework")&&_.KQ("BUTTON_REWORK")||_.k("web_button_rework_with_live"),td=function(){var B=_.c.apply(this,arguments)||this;B.isPressed=!1;B.forceIconButton=!1;B.forceIconOnly=!1;B.forceModernIconButton=!1;B.skipCommandHandling=!1;B.alignByText=!1;B.fitToVisibleBounds=!0;B.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};B.onTap=function(R){_.OI(B.hostElement,"yt-service-request-sent-button-renderer",R)};
return B};
_.l(td,_.c);_.p=td.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.p.onClick=function(B){var R,V=this.disabled||((R=this.data)==null?void 0:R.isDisabled);R=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");V&&R&&B.stopPropagation()};
_.p.computeIcon=function(){var B,R,V=(B=this.data)==null?void 0:(R=B.icon)==null?void 0:R.iconType;if(V)return _.RT(V)};
_.p.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.p.handleUpdateButtonAction=function(B){B=_.D(B,I1h);var R=_.D(B==null?void 0:B.updatedButton,_.Ii);if(this.data&&B&&R){var V=this.data;V.targetId&&B.targetId&&V.targetId===B.targetId&&(this.data=R)}};
_.mh.Object.defineProperties(td.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var B=this;if(this.data){var R=jYK({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.OI(B.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.OI(B.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});R.alignByText=this.alignByText;return R}}}});
_.mh.Object.defineProperties(td,{template:{configurable:!0,enumerable:!0,get:function(){if(FxS===void 0){var B=document.createElement("template");_.a(B,'\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>');FxS=B}B=FxS;return B}}});
td.prototype.onClick=td.prototype.onClick;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],td.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],td.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],td.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],td.prototype,"isPressed",void 0);
_.r([_.E(),_.Z("design:type",Object)],td.prototype,"forceIconButton",void 0);_.r([_.E(),_.Z("design:type",Object)],td.prototype,"forceIconOnly",void 0);_.r([_.E(),_.Z("design:type",Object)],td.prototype,"forceModernIconButton",void 0);_.r([_.E(),_.Z("design:type",Object)],td.prototype,"skipCommandHandling",void 0);_.r([_.E(),_.Z("design:type",Object)],td.prototype,"alignByText",void 0);_.r([_.E(),_.Z("design:type",Object)],td.prototype,"buttonTooltipPosition",void 0);
_.r([_.E(),_.Z("design:type",Object)],td.prototype,"fitToVisibleBounds",void 0);_.r([_.E({computed:"computeTooltip(data)"}),_.Z("design:type",Object)],td.prototype,"tooltip",void 0);_.r([_.E(),_.Z("design:type",Object)],td.prototype,"overrides",void 0);_.r([_.E(),_.Z("design:type",Boolean)],td.prototype,"disabled",void 0);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],td.prototype,"onClick",null);
_.r([_.K("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],td.prototype,"computedButtonShape",null);td=_.r([_.fJ({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!reb,cssBuildOptOut:!0}),_.fJ({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!reb,cssBuildOptOut:!0})],td);var gr4;var ZAa;var WP=function(){var B=_.c.apply(this,arguments)||this;B.empty_=!0;B.loadTime=Infinity;B.pendingPaint=!1;B.hasChange_=!1;B.oldThumbnail_=null;B.oldDelayedSrc_="";B.objectURL_=null;return B};
_.l(WP,_.c);_.p=WP.prototype;_.p.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.p.ready=function(){var B=this.shouldShowPlaceholder_();_.nk(this.hostElement,"no-transition",!0);B&&this.hostElement.classList.add("with-placeholder")};
_.p.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.p.isThumbPreloaded_=function(B){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",B)};
_.p.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||m8R};
_.p.computeThumbnailSrc_=function(B){return B&&B.thumbnails?_.$T(B.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.p.computeAlt_=function(){var B=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&B||""};
_.p.thumbnailChanged_=function(){var B=_.h([this.thumbnail,this.oldThumbnail_]),R=B.next().value;B=B.next().value;this.oldThumbnail_=R;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(B=this.computeThumbnailSrc_(B),this.computeThumbnailSrc_(R)===B))return;_.k("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(R)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):R&&_.KQ("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.gB(this,this.onReload_):_.gB(this,this.onShow_):this.resetImage_();R&&(this.hostElement.style.opacity=""+R.opacity)}};
_.p.delayedSrcChanged_=function(){var B=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===B||this.resetImage_()};
_.p.setSrc_=function(B){B?(_.w(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.w(this.hostElement).querySelector("#img").src=B):(_.w(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.p.resetImage_=function(){HhS(this.hostElement);this.empty_=!0;this.setSrc_(m8R);this.ytRendererBehavior.invalidate(!1)};
_.p.observePlaceholderColor_=function(){var B=this.thumbnail&&this.thumbnail.placeholderColor;B?this.hostElement.style.backgroundColor=_.li(B):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.p.onLoad_=function(){_.w(this.hostElement).querySelector("#img").src&&_.w(this.hostElement).querySelector("#img").src!==m8R&&(SlN(this.hostElement),this.notifyOnLoaded&&_.OI(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.p.onError_=function(){var B=this;if(_.k("web_use_cache_for_image_fallback"))ayd(_.w(this.hostElement).querySelector("#img").src).then(function(R){B.objectURL_=_.S4(R).toString();B.setSrc_(B.objectURL_)}).catch(function(){_.k("kevlar_woffle_fallback_image")&&B.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.p.onPrescanVisible=function(){this.onShow_()};
_.p.onVisible=function(){if(_.k("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.p.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var B=this.computeSrc_();B!==_.w(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(B))}};
_.p.onReload_=function(){this.empty_=!1;var B=this.computeSrc_();B!==_.w(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(B))};
_.p.shouldShowPlaceholder_=function(){return _.k("kevlar_thumbnail_bg")};
WP.prototype.observePlaceholderColor_=WP.prototype.observePlaceholderColor_;WP.prototype.delayedSrcChanged_=WP.prototype.delayedSrcChanged_;WP.prototype.thumbnailChanged_=WP.prototype.thumbnailChanged_;_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],WP.prototype,"alt",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WP.prototype,"ariaHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],WP.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WP.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],WP.prototype,"id",void 0);_.r([_.v(_.vD.YtVisibilityBehavior),_.Z("design:type",Object)],WP.prototype,"ytVisibilityBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",String)],WP.prototype,"delayedSrc",void 0);
_.r([_.E(),_.Z("design:type",Object)],WP.prototype,"thumbnail",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],WP.prototype,"loaded",void 0);_.r([_.E(),_.Z("design:type",Boolean)],WP.prototype,"notifyOnLoaded",void 0);_.r([_.E(),_.Z("design:type",Number)],WP.prototype,"height",void 0);_.r([_.E(),_.Z("design:type",Number)],WP.prototype,"width",void 0);_.r([_.E({value:function(){return"width"}}),
_.Z("design:type",String)],WP.prototype,"dimension",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WP.prototype,"fit",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WP.prototype,"fitHeight",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WP.prototype,"fitWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],WP.prototype,"objectFit",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],WP.prototype,"objectPosition",void 0);_.r([_.E(),_.Z("design:type",String)],WP.prototype,"preferredThumbnail",void 0);_.r([_.E({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Z("design:type",String)],WP.prototype,"alt_",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],WP.prototype,"sharedTooltipText",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],WP.prototype,"ftlEligible",void 0);_.r([_.E({value:void 0}),_.Z("design:type",String)],WP.prototype,"observeHiddenOption",void 0);_.r([_.E({value:"observe_once"}),_.Z("design:type",String)],WP.prototype,"observePrescanOption",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WP.prototype,"roundedContainer",void 0);
_.r([_.bp("thumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WP.prototype,"thumbnailChanged_",null);_.r([_.bp("delayedSrc"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WP.prototype,"delayedSrcChanged_",null);_.r([_.XX("thumbnail.placeholderColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WP.prototype,"observePlaceholderColor_",null);
WP=_.r([_.fJ({is:"yt-img-shadow",disableElementRegistration:!0})],WP);var m8R=_.KQ("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.nJ()(WP,"yt-img-shadow",function(){if(ZAa===void 0){var B=document.createElement("template");_.a(B,'\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">');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;gr4===void 0&&(gr4=document.createElement("template"));var e=gr4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ZAa=B}B=ZAa;return B},{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 RUA;_.jj=new _.u0("SCREEN_MANAGER_TOKEN");RUA=new _.u0("LOG_INITIAL_SCREEN_TOKEN");_.LO=_.sx(function(B){function R(Yd){return _.D(Yd,_.Tr)}
function V(){var Yd=e().isTogglingDisabled||M()?T():!T();L(Yd);q(!1);if(!e().isTogglingDisabled){var kd;(kd=t)==null||kd(!!Yd)}var a5;((a5=Y)==null?0:a5())||_.WC(_.Oz().resolve(_.jj),e().trackingParams);var lo;if(!Yd||!R(e().defaultButtonViewModel)||(lo=Y)!=null&&lo()){var io;!R(e().toggledButtonViewModel)||((io=Y)==null?0:io())||_.WC(_.Oz().resolve(_.jj),R(e().toggledButtonViewModel).trackingParams)}else _.WC(_.Oz().resolve(_.jj),R(e().defaultButtonViewModel).trackingParams)}
var e=B.data,X=B.buttonShapeOverrides,Y=B.disableExplicitClickLogging,t=B.onToggle,b=B.style,J=B.useOutlinedIcon,G=B.className,y=function(){var Yd,kd;return T()?(Yd=B.animatedTextPropsToggled)==null?void 0:Yd.call(B):(kd=B.animatedTextPropsDefault)==null?void 0:kd.call(B)},S=_.NW(function(){return y()?Object.assign({},y(),{shouldAnimate:Q()}):void 0},void 0,"ZKEa0b"),M=function(){var Yd;
return((Yd=Vu())==null?void 0:Yd.isToggled)!==void 0},f=_.h(_.J3(function(){var Yd,kd,a5;
return M()?(Yd=Vu())==null?void 0:Yd.isToggled:(a5=X==null?void 0:(kd=X())==null?void 0:kd.toggled)!=null?a5:e().isToggled})),z=f.next().value;
f=f.next().value;var T=z,L=f;f=_.h(_.J3(function(){var Yd,kd;return(Yd=B.animatedTextPropsToggled)==null?void 0:(kd=Yd.call(B))==null?void 0:kd.shouldAnimate}));
z=f.next().value;f=f.next().value;var Q=z,q=f;z=_.h(_.WU(!1,void 0,"S11hid"));var m=z.next().value,g=z.next().value,Vu=_.w1(function(Yd){var kd;a:{var a5=e().entityKey,lo=e().toggledStateEntitySelectorType;if(lo&&a5)switch(lo){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var io;Yd=(io=_.p7(Yd.entities,"sfvAudioItemCurrentlyPlayingEntity",a5))!=null?io:void 0;io=(kd=Yd==null?void 0:Yd.sfvAudioItemPlaybackState)!=null?kd:void 0;if(io==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){kd={isToggled:!0};
break a}if(io){kd={isToggled:!1};break a}break;default:_.KE(new _.H8("Error: entitySelectorType defined but not matched in selector.",Yd,lo))}kd=void 0}return kd});
z=_.Wr(function(){var Yd=_.Oz().resolve(_.uj(_.DE));Yd&&g(Yd.isKeyBoardInUse());return!1});
f=_.Wr(function(){g(!1);return!1});
var n=function(){return Object.assign({},X==null?void 0:X(),{onToggle:V,toggleable:!0,toggled:T(),focused:m()})};
return _.N("toggle-button-view-model",{"on:focusin":z,"on:focusout":f,class:G},_.N(_.H,{cond:function(){return T()?R(e().toggledButtonViewModel):R(e().defaultButtonViewModel)},
then:function(Yd){return _.N(_.qo,{data:Yd,className:G,style:b,useOutlinedIcon:J,buttonOverrides:n,animatedTextProps:S})}}))},"v");
_.LO.idomCompat={callbacks:{onToggle:!0}};_.mR(_.sx(function(B){return _.N("yt-toggle-button-view-model",{class:function(){var R;return(R=B.scopingClassName)==null?void 0:R.call(B)}},_.N(_.LO,{data:function(){var R;
return(R=B.data)==null?void 0:R.call(B)},
buttonShapeOverrides:function(){var R;return(R=B.overrides)==null?void 0:R.call(B)},
animatedTextPropsDefault:function(){var R;return(R=B.animatedTextPropsDefault)==null?void 0:R.call(B)},
animatedTextPropsToggled:function(){var R;return(R=B.animatedTextPropsToggled)==null?void 0:R.call(B)},
disableExplicitClickLogging:function(){var R;return(R=B.disableExplicitClickLogging)==null?void 0:R.call(B)},
onToggle:function(R){var V;return(V=B.onToggle)==null?void 0:V.call(B,R)},
style:function(){var R;return(R=B.style)==null?void 0:R.call(B)},
useOutlinedIcon:function(){var R;return(R=B.useOutlinedIcon)==null?void 0:R.call(B)},
className:function(){var R;return(R=B.className)==null?void 0:R.call(B)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.qq,
buttonShapeOverrides:_.qq,overrides:_.qq,animatedTextPropsDefault:_.qq,animatedTextPropsToggled:_.qq,disableExplicitClickLogging:_.qq,onToggle:_.Z9,style:_.qq,useOutlinedIcon:_.qq,className:_.qq,scopingClassName:_.qq}});var UH=function(){return _.c.apply(this,arguments)||this};
_.l(UH,_.c);UH.prototype.onTap=function(B){B.stopPropagation();B=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.v7("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:B})):this.ytLiveChatReduxBehavior.dispatch(_.SX("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:B}))};
_.mh.Object.defineProperties(UH.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.engagementState)==null?void 0:B.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=_.D(this.data.toggleButton,_.xx),R;if(Number(((R=this.likeCountState)==null?void 0:R.likeCountIfIndifferentNumber)||"0")===0){var V;R=((V=this.data.likeCountPlaceholder)==null?void 0:V.content)||""}else{var e,X,Y;R=((e=this.likeCountState)==null?void 0:(X=e.likeCountIfIndifferent)==null?void 0:X.content)||((Y=this.data.likeCountPlaceholder)==null?void 0:Y.content)||""}var t,b;V=((t=this.likeCountState)==null?void 0:(b=
t.likeCountIfLiked)==null?void 0:b.content)||"1";t=_.D(B.toggledButtonViewModel,_.Tr);return Object.assign({},B,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.D(B.defaultButtonViewModel,_.Tr),{title:R})},toggledButtonViewModel:{buttonViewModel:Object.assign({},t,{title:V})}})}}}});
UH.prototype.onTap=UH.prototype.onTap;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],UH.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],UH.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],UH.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.likeCountEntityKey"],selector:UbI}),_.Z("design:type",Object)],UH.prototype,"likeCountState",void 0);_.r([_.E({selectorArgs:["data.engagementStateKey"],selector:FY5}),_.Z("design:type",Object)],UH.prototype,"engagementState",void 0);_.r([_.K("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UH.prototype,"isLiked",null);
_.r([_.K("data","likeCountState","isLiked"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],UH.prototype,"toggleButton",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],UH.prototype,"onTap",null);UH=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],UH);
_.F(UH,"yt-live-chat-like-button-view-model",function(){if(hL2===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;YwT===void 0&&(YwT=document.createElement("template"));var e=YwT;V.call(R,e.content.cloneNode(!0),B.content.firstChild);hL2=B}B=hL2;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var $8_;var Cca;var NG=function(){return _.c.apply(this,arguments)||this};
_.l(NG,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],NG.prototype,"data",void 0);NG=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],NG);
_.F(NG,"yt-live-chat-paid-message-footer-renderer",function(){if(Cca===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;$8_===void 0&&($8_=document.createElement("template"));var e=$8_;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Cca=B}B=Cca;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Pc4;var nr4;var u4G;var OAv,oeR=function(){if(OAv!==void 0)return OAv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;u4G===void 0&&(u4G=document.createElement("template"));var e=u4G;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return OAv=B};var Gx=function(){return _.c.apply(this,arguments)||this};
_.l(Gx,_.c);Gx.prototype.onTap=function(B){B.stopPropagation()};
_.mh.Object.defineProperties(Gx.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=_.D(this.data.replyButton,_.Tr),R,V,e,X,Y,t,b,J=Number(((R=this.replyCountState)==null?void 0:R.replyCountNumber)||"0")===0?(V=this.data)==null?void 0:(e=V.replyCountPlaceholder)==null?void 0:e.content:((X=this.replyCountState)==null?void 0:(Y=X.replyCount)==null?void 0:Y.content)||((t=this.data)==null?void 0:(b=t.replyCountPlaceholder)==null?void 0:b.content)||"",G;return Object.assign({},
B,{title:J,accessibilityText:(G=this.replyCountState)==null?void 0:G.replyButtonAccessibilityText})}}}});
_.mh.Object.defineProperties(Gx,{template:{configurable:!0,enumerable:!0,get:function(){return oeR()}}});
Gx.prototype.onTap=Gx.prototype.onTap;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Gx.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],Gx.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Gx.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.replyCountEntityKey"],selector:function(B,R){return _.p7(B.entities,"replyCountEntity",R)}}),
_.Z("design:type",Object)],Gx.prototype,"replyCountState",void 0);_.r([_.K("data","replyCountState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Gx.prototype,"buttonViewModel",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Gx.prototype,"onTap",null);Gx=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Gx);
_.F(Gx,"yt-live-chat-reply-button-view-model",function(){return oeR()},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var BQo;var RYo;var yR=function(){var B=_.c.apply(this,arguments)||this;B.ariaLabel="";return B};
_.l(yR,_.c);
yR.prototype.dataChanged=function(){for(var B=(0,_.OX)(_.w(this.hostElement).querySelector("#image"));B.firstChild;)B.removeChild(B.firstChild);if(this.data)if(this.data.icon){var R=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(R.polymerController.icon="yt-sys-icons:shield-filled",R.polymerController.defaultToFilled=!0):R.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();B.appendChild(R)}else if(this.data.customThumbnail){R=document.createElement("img");
var V=_.bhK(this.data.customThumbnail.thumbnails,16);V?(R.src=V,B.appendChild(R),R.setAttribute("alt",this.hostElement.ariaLabel||"")):_.KE(new _.H8("Could not compute URL for thumbnail",this.data.customThumbnail))}};
yR.prototype.identity=function(B){return B};
yR.prototype.computeType=function(B){return Ox(B||void 0)};
yR.prototype.dataChanged=yR.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],yR.prototype,"data",void 0);_.r([_.E({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Z("design:type",Object)],yR.prototype,"ariaLabel",void 0);_.r([_.E({computed:"computeType(data)",reflectToAttribute:!0}),_.Z("design:type",String)],yR.prototype,"type",void 0);
_.r([_.E({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Z("design:type",String)],yR.prototype,"sharedTooltipText",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("live_chat_enable_new_moderator_badge")}}),
_.Z("design:type",Boolean)],yR.prototype,"enableNewModeratorBadge",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yR.prototype,"dataChanged",null);yR=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],yR);
_.F(yR,"yt-live-chat-author-badge-renderer",function(){if(RYo===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;BQo===void 0&&(BQo=document.createElement("template"));var e=BQo;V.call(R,e.content.cloneNode(!0),B.content.firstChild);RYo=B}B=RYo;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Veo;var eYT;var Sj=function(){return _.c.apply(this,arguments)||this};
_.l(Sj,_.c);_.p=Sj.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(B){return B?B.filter(function(R){return Ox(R.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.p.computeBadgesOutsideChip=function(B){return this.prependChatBadges||!B?[]:B.filter(function(R){R=Ox(R.liveChatAuthorBadgeRenderer);return R!=="verified"&&R!=="owner"})};
_.p.computeBadgesBeforeChip=function(B){return this.prependChatBadges&&B?B.filter(function(R){R=Ox(R.liveChatAuthorBadgeRenderer);return R!=="verified"&&R!=="owner"}):[]};
_.p.computeIsHighlighted=function(B,R){var V=!!zDd(B,"owner"),e=!!zDd(B,"verified");B=!!zDd(B,"moderator");return(V||e&&!B)&&!R};
_.p.computeAuthorType=function(B){return lsZ(B)};
_.p.computeAuthorClass=function(B,R){return R?(B?B+" ":"")+"single-line":B};
_.p.onSeedColorChanged=function(){_.k("live_chat_author_name_color_usernames")||_.k("live_chat_seed_color_usernames")||_.k("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):_.k("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Sj.prototype.onSeedColorChanged=Sj.prototype.onSeedColorChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Sj.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Sj.prototype,"authorName",void 0);_.r([_.E(),_.Z("design:type",Array)],Sj.prototype,"authorBadges",void 0);
_.r([_.E({computed:"computeAuthorType(authorBadges)"}),_.Z("design:type",String)],Sj.prototype,"authorType",void 0);_.r([_.E({computed:"computeAuthorClass(authorType, singleLine)"}),_.Z("design:type",String)],Sj.prototype,"authorClass",void 0);_.r([_.E({computed:"computeBadgesInsideChip(authorBadges)"}),_.Z("design:type",Array)],Sj.prototype,"badgesInsideChip",void 0);_.r([_.E({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Z("design:type",Array)],Sj.prototype,"badgesOutsideChip",void 0);
_.r([_.E({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Z("design:type",Array)],Sj.prototype,"badgesBeforeChip",void 0);_.r([_.E({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sj.prototype,"isHighlighted",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Sj.prototype,"singleLine",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Sj.prototype,"disableHighlighting",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sj.prototype,"dashboardMoneyFeed",void 0);_.r([_.E({value:_.k("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sj.prototype,"prependChatBadges",void 0);_.r([_.E(),_.Z("design:type",String)],Sj.prototype,"authorNameColor",void 0);_.r([_.Yp("#author-name"),_.Z("design:type",HTMLDivElement)],Sj.prototype,"username",void 0);
_.r([_.XX("authorNameColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sj.prototype,"onSeedColorChanged",null);Sj=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Sj);
_.F(Sj,"yt-live-chat-author-chip",function(){if(eYT===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Veo===void 0&&(Veo=document.createElement("template"));var e=Veo;V.call(R,e.content.cloneNode(!0),B.content.firstChild);eYT=B}B=eYT;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Xab;var pal;var HP=function(){var B=_.c.apply(this,arguments)||this;B.debounceCommand=_.Hx(function(R){B.ytComponentBehavior.resolveCommand(R)},1500);
return B};
_.l(HP,_.c);HP.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var B=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",R,V,e=this.isHearted?(R=this.data)==null?void 0:R.unheartCommand:(V=this.data)==null?void 0:V.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.v7("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:B}));(B=_.dl(e))&&this.debounceCommand(B)}};
_.mh.Object.defineProperties(HP.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var B,R;if(!((B=this.data)==null?0:(R=B.creatorThumbnail)==null?0:R.sources))return{};B={thumbnails:[]};R={};R.url=this.data.creatorThumbnail.sources[0].url;B.thumbnails.push(R);return B}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.engagementState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((V=this.engagementState)==null?void 0:V.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;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],HP.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],HP.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.engagementStateKey"],selector:FY5}),_.Z("design:type",Object)],HP.prototype,"engagementState",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HP.prototype,"thumbnailDetails",null);_.r([_.K("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HP.prototype,"isHearted",null);_.r([_.K("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HP.prototype,"isEditable",null);
_.r([_.K("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HP.prototype,"showCreatorView",null);_.r([_.K("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HP.prototype,"showButton",null);_.r([_.K("data","isHearted"),_.Z("design:type",String),_.Z("design:paramtypes",[])],HP.prototype,"label",null);_.r([_.K("data","isHearted"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HP.prototype,"heartHoverText",null);
_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HP.prototype,"onTap",null);HP=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],HP);
_.F(HP,"yt-live-chat-creator-heart-view-model",function(){if(pal===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Xab===void 0&&(Xab=document.createElement("template"));var e=Xab;V.call(R,e.content.cloneNode(!0),B.content.firstChild);pal=B}B=pal;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var MG=function(B,R){this.serviceId=new rIS(B,R)};
MG.prototype.toString=function(){return this.serviceId.toString()};var Ylo=function(){this.internalMap={}};
_.p=Ylo.prototype;_.p.contains=function(B){return Object.prototype.hasOwnProperty.call(this.internalMap,B)};
_.p.get=function(B){if(this.contains(B))return this.internalMap[B]};
_.p.set=function(B,R){this.internalMap[B]=R};
_.p.getKeys=function(){return Object.keys(this.internalMap)};
_.p.remove=function(B){delete this.internalMap[B]};var kE=function(){this.mappings=new Ylo;this.errorCallbacks=new Set};
kE.prototype.getModuleId=function(B){return B.serviceId.getModuleId()};
kE.prototype.get=function(B){var R=this.mappings.get(B.toString());return hY2(this,R,B)};
kE.prototype.getMultipleAsync=function(){var B=_.HB.apply(0,arguments),R=this,V=B.map(function(J){return R.getModuleId(J)}),e=B.map(function(J){return R.mappings.get(J.toString())}).filter(function(J){return J});
if(e.length===B.length)return _.XT(e.map(function(J,G){return hY2(R,J,B[G])}));
var X=z$().loadMultiple(V);e=_.DG(V.map(function(J){return X[J]}));
var Y=document.hidden,t=-1,b=_.RC("get_async_timeout_ms",-1);b>-1&&(t=setTimeout(function(){_.KE(new _.H8("Module timeout.",V,Y,document.hidden))},b));
return _.fT(e.then(function(){return B.map(function(J){return hY2(R,R.mappings.get(J.toString()),J)})}).thenCatch(function(J){for(var G=_.h(R.errorCallbacks),y=G.next();!y.done;y=G.next())y=y.value,y(J);
throw J;}),function(){clearTimeout(t)})};
kE.prototype.registerService=function(B,R){this.mappings.set(B.toString(),{type:"mapping",value:R});return B};
var hY2=function(B,R,V){switch(R.type){case "mapping":return R.value;case "factory":return R=R.value(),B.mappings.set(V.toString(),{type:"mapping",value:R}),R;default:return _.Ym(R)}};
kE.prototype.onLoadError=function(B){var R=this;this.errorCallbacks.add(B);return function(){R.errorCallbacks.delete(B)}};
_.Db=new kE;var te2=function(){};
_.p=te2.prototype;
_.p.JSC$11817_getRequest=function(B,R,V){R=R===void 0?{}:R;V=V===void 0?mCT:V;var e=R;if(this.isNavigationCommand()){var X,Y=(X=_.D(B==null?void 0:B.commandMetadata,_.$a))==null?void 0:X.url;e=_.TtA(B.clickTrackingParams,!0,!1,Y,this.JSC$11817_getClientScreen(e))}else e=_.TtA(B.clickTrackingParams,!1,this.includeCsn);e={context:e};if(X=this.getExtension(B))return this.JSC$11817_buildRequest(e,X,R),X=this.getApiUrl(B),Y=Object.assign({},{command:B},this.getRequestConfig(B,R)),e={input:X,requestShell:AZ(X),
innerTubeRequest:e,config:Y},e.config.authStrategy?e.config.authStrategy.identity=V:e.config.authStrategy={identity:V},(B=this.JSC$11817_getRequestKey(B,R))&&!e.config.requestKey&&(e.config.requestKey=B),e;B=new _.H8("Error: Failed to create Request from Command.",B);_.Tn(B)};
_.p.getApiUrl=function(B){var R=_.Zz(this.getApiPaths(B)),V;(B=(V=_.D(B.commandMetadata,_.$a))==null?void 0:V.apiUrl)&&(R=B);return pTp(XTd(R))};
_.p.isNavigationCommand=function(){return!1};
_.p.JSC$11817_getClientScreen=function(){};
_.p.JSC$11817_getRequestKey=function(){};
_.p.getRequestConfig=function(){};
_.mh.Object.defineProperties(te2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var fj=function(){};
_.l(fj,te2);fj.prototype.JSC$11824_getStoreKey=function(){};
fj.prototype.JSC$11817_getRequestKey=function(B,R){R=R===void 0?{}:R;return this.JSC$11824_getStoreKey(B,R)};var l$=function(){};
_.l(l$,fj);l$.prototype.JSC$11817_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:AZ("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
l$.prototype.getApiPaths=function(){return[]};
l$.prototype.getExtension=function(){};
l$.prototype.JSC$11817_buildRequest=function(){};var W92={},bhS=(W92.GET_DATASYNC_IDS=LD(l$),W92);var Jb_,jER,Ug5,tF_,zx,ybo,N$o,G65,NQh;Jb_="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");jER=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.QK=function(B,R,V,e,X,Y,t,b,J){this.endpointMap=B;this.networkManager=R;this.authService=V;this.responseProcessorMap=e;this.innertubeResponseStore=X;this.contextProcessors=Y;this.asyncContextProcessors=t;this.localInnertubeRouter=b;this.requestSequencer=J;this.inflightRequests=new Map;B.signalEndpointMap||(B.signalEndpointMap={});B.signalEndpointMap=Object.assign({},bhS,B.signalEndpointMap)};
Ug5=function(B,R,V,e,X,Y,t,b,J){if(_.QK.instance!==void 0){if(e=_.QK.instance,B=[B!==e.endpointMap,R!==e.networkManager,V!==e.authService,X!==e.innertubeResponseStore,Y!==e.contextProcessors,t!==e.asyncContextProcessors,b!==e.localInnertubeRouter],B.some(function(G){return G}))throw new _.H8("InnerTubeTransportService is already initialized",B);
}else _.QK.instance=new _.QK(B,R,V,e,X,Y,t,b,J)};
_.cr=function(B,R,V){var e=e===void 0?mCT:e;var X=N$o(B,R);return X?new _.be(function(Y,t){var b,J,G,y,S;return _.W(function(M){switch(M.nextAddress){case 1:return _.U(M,X,2);case 2:b=M.yieldResult;J=b.JSC$11817_getRequest(R,V,e);if(!J){t(new _.H8("Error: Failed to build request for command.",R));M.jumpTo(0);break}wr(J.input);y=((G=J.requestShell)==null?void 0:G.mode)==="cors"?"cors":void 0;if(B.authService.syncHeaders){S=NQh(J.config,y);M.jumpTo(4);break}return _.U(M,G65(J.config,y),5);case 5:S=
M.yieldResult;case 4:Y(ybo(B,J,S)),_.b3(M)}})}):_.SR(new _.H8("Error: No request builder found for command.",R))};
tF_=function(B,R,V,e){var X=X===void 0?mCT:X;var Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu,n;return _.W(function(Yd){switch(Yd.nextAddress){case 1:Y=yju(R,B.endpointMap);if(!Y)throw new _.H8("Error: No streaming request builder found for command",R);t=Y.JSC$11817_getRequest(R,V,X);if(!t)throw new _.H8("Failed to build YtRequest for streaming Command",R);if((b=B.localInnertubeRouter)==null||!b.shouldPreferLocalResponse(t.input,t.innerTubeRequest)){Yd.jumpTo(2);break}return _.U(Yd,B.localInnertubeRouter.localInnertubeResponse(t.input,
t.innerTubeRequest),3);case 3:return J=Yd.yieldResult,G={},J.playerResponse&&(zx(B,J.playerResponse,t),G.player=J.playerResponse,(y=e)==null||y(G,J)),J.watchNextResponse&&(zx(B,J.watchNextResponse,t),G.content=J.watchNextResponse,(S=e)==null||S(G,J)),Yd.return(G);case 2:f=((M=t.requestShell)==null?void 0:M.mode)==="cors"?"cors":void 0;if(B.authService.syncHeaders){z=NQh(t.config,f);Yd.jumpTo(4);break}return _.U(Yd,G65(t.config,f),5);case 5:z=Yd.yieldResult;case 4:return Q=(L=(T=t.requestShell)==null?
void 0:T.headers)!=null?L:{},t.requestShell=Object.assign({},t.requestShell,{headers:Object.assign({},Q,z)}),q=Object.assign({},t.requestShell),m=JSON.stringify(t.innerTubeRequest),t.requestShell.method==="POST"&&(q=Object.assign({},q,{body:m})),g=function(kd,a5){zx(B,a5.playerResponse||a5.watchNextResponse||a5.reelItemWatchResponse||a5.reelWatchSequenceResponse,t);e==null||e(kd,a5)},Vu={},_.U(Yd,Sll(B.networkManager,t.input,q,g),6);
case 6:return Vu=Yd.yieldResult,((n=t.config)==null?0:n.responseTick)&&_.zp(t.config.responseTick),Yd.return(Vu)}})};
_.vC=function(B,R,V,e,X){X=X===void 0?{authStrategy:{identity:mCT}}:X;var Y=Y===void 0?!0:Y;var t=function(){};
t=Hgd(ywI(V));R.context||(R.context=_.TtA(e,Y));return new _.be(function(b){var J,G,y,S,M;return _.W(function(f){if(f.nextAddress==1)return J=XTd(V),G=_.cJ(J),B.authService.syncHeaders?(y=NQh(X,G),f.jumpTo(2)):_.U(f,G65(X,G),3);f.nextAddress!=2&&(y=f.yieldResult);S=pTp(XTd(V));M={input:S,requestShell:AZ(S),innerTubeRequest:R,config:X};b(ybo(B,M,y,t));_.b3(f)})})};
zx=function(B,R,V){var e;if(R&&!(R==null?0:(e=R.sequenceMetaData)==null?0:e.skipProcessing)&&B.responseProcessorMap){e=_.h(Jb_);for(var X=e.next();!X.done;X=e.next())X=X.value,B.responseProcessorMap[X]&&B.responseProcessorMap[X].handleResponse(R,V)}};
ybo=function(B,R,V,e){e=e===void 0?function(){}:e;
var X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu,n,Yd,kd,a5,lo,io,vd,cd,ES,$d,Eo,GG,eJ,pR,d4,W2,By,DY,hA,fR,Qv,i4;return _.W(function(TG){switch(TG.nextAddress){case 1:t=(X=R.config)==null?void 0:(Y=X.storeStrategy)==null?void 0:Y.storeKey;if(!(t&&B.innertubeResponseStore&&B.innertubeResponseStore.has(t))||((b=R.config)==null?0:(J=b.storeStrategy)==null?0:J.disableCache)){TG.jumpTo(2);break}return _.U(TG,B.innertubeResponseStore.get(t),3);case 3:if((G=TG.yieldResult)&&!G.isExpired())return TG.return(Promise.resolve(_.WS(G)));
case 2:if(!((y=R)==null?0:(S=y.innerTubeRequest)==null?0:S.context)){TG.jumpTo(4);break}M=R.innerTubeRequest.context;if(!(B.asyncContextProcessors&&B.asyncContextProcessors.length>0)){TG.jumpTo(5);break}f=[];z=_.h(B.asyncContextProcessors);for(T=z.next();!T.done;T=z.next())L=T.value,Q=L.processContext(R),Q.wrappedPromise_&&f.push(Q.wrappedPromise_);if(!(f.length>0)){TG.jumpTo(5);break}return _.U(TG,Promise.all(f),5);case 5:q=_.h(B.contextProcessors||[]),m=q.next();case 8:if(m.done){TG.jumpTo(4);break}g=
m.value;return _.U(TG,g.processContext(M),9);case 9:m=q.next();TG.jumpTo(8);break;case 4:if((Vu=B.localInnertubeRouter)==null||!Vu.shouldPreferLocalResponse(R.input,R.innerTubeRequest)){TG.jumpTo(12);break}return _.U(TG,B.localInnertubeRouter.localInnertubeResponse(R.input,R.innerTubeRequest),13);case 13:return n=TG.yieldResult,zx(B,n,R),TG.return(n);case 12:return(a5=(kd=R.config)==null?void 0:kd.requestKey)&&B.inflightRequests.has(a5)?Yd=B.inflightRequests.get(a5):(lo=JSON.stringify(R.innerTubeRequest),
cd=(vd=(io=R.requestShell)==null?void 0:io.headers)!=null?vd:{},R.requestShell=Object.assign({},R.requestShell,{headers:Object.assign({},cd,V)}),ES=Object.assign({},R.requestShell),R.requestShell.method==="POST"&&(ES=Object.assign({},ES,{body:lo})),(($d=R.config)==null?0:$d.requestTick)&&_.zp(R.config.requestTick),Eo=function(){return B.networkManager.fetch(R.input,ES,R.config)},Yd=B.requestSequencer?Hho(B.requestSequencer,R,Eo):Eo(),a5&&B.inflightRequests.set(a5,Yd)),_.U(TG,Yd,14);
case 14:(GG=TG.yieldResult)&&_.k("web_streaming_player")&&Array.isArray(GG)&&(GG=GG[0].playerResponse);if(GG&&"error"in GG&&((eJ=GG)==null?0:(pR=eJ.error)==null?0:pR.details))for(d4=GG.error.details,W2=_.h(d4),By=W2.next();!By.done;By=W2.next())DY=By.value,(hA=DY["@type"])&&jER.indexOf(hA)>-1&&(delete DY["@type"],GG=DY);a5&&B.inflightRequests.has(a5)&&B.inflightRequests.delete(a5);((fR=R.config)==null?0:fR.responseTick)&&_.zp(R.config.responseTick);if(GG||(Qv=B.localInnertubeRouter)==null||!Qv.canProvideFallbackResponse(R.input,
R.innerTubeRequest)){TG.jumpTo(15);break}return _.U(TG,B.localInnertubeRouter.localFallbackInnertubeResponse(R.input,R.innerTubeRequest),16);case 16:GG=TG.yieldResult;case 15:return zx(B,GG,R),((i4=R.config)==null?0:i4.processorTick)&&_.zp(R.config.processorTick),e(),TG.return(GG||void 0)}})};
_.qx=function(B,R){return GyZ(R,B.endpointMap)};
N$o=function(B,R){B=Sip(R,B.endpointMap);if(B!==void 0)return Promise.resolve(B)};
G65=function(B,R){var V,e,X,Y;return _.W(function(t){if(t.nextAddress==1){X=(V=B)==null?void 0:(e=V.authStrategy)==null?void 0:e.sessionIndex;var b=_.XT(aId({sessionIndex:X}));return _.U(t,b,2)}Y=t.yieldResult;return t.return(Promise.resolve(Object.assign({},HS5(R),Y)))})};
NQh=function(B,R){var V;B=B==null?void 0:(V=B.authStrategy)==null?void 0:V.sessionIndex;V=aId({sessionIndex:B});return Object.assign({},HS5(R),V)};var MeJ,k6o,Dg4,fyJ,ly5,zYh,wab,TQl,wY,xg2,L9_,dgo,veT;MeJ=0;k6o=/tone[1-5]/;Dg4=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");fyJ="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
ly5=Number.MAX_SAFE_INTEGER;zYh=RegExp("\ufe0f","g");_.ao=function(B){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;B&&_.ay2(this,B)};
_.ay2=function(B,R){try{_.W8(R,{context:B,onSuccess:function(e,X){Array.isArray(X)?B.load(X):(e=new _.H8("Emoji manager JSON response was not an array!",{response:X}),_.Tn(e))},
onError:function(e){e=new _.H8("Failed to retrieve emoji manager initial JSON data!",{url:R,statusCode:_.X0(e).toString()});_.KE(e)}})}catch(e){var V=new _.H8("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:R});
_.KE(V)}};
_.ao.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.ao.prototype.load=function(B,R){if(R)if(B.length)B=B.concat(R.emojis);else{this.emojis=R.emojis;this.emojiMap=R.emojiMap;this.emojiShortcutMap=R.emojiShortcutMap;this.emojiShortcutCharMap=dgo(R);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=R.emojiRegex;return}this.emojis=[].concat(_.MI(new Set(this.emojis.concat(B))));this.hasInitializedShortcutCharMap=!1;B=Array(this.emojis.length);for(R=0;R<this.emojis.length;R++){var V=this.emojis[R];if(V.emojiId){this.emojiMap[V.emojiId]=V;this.emojiMap[V.emojiId].index=
R;for(var e=0;V.shortcuts&&e<V.shortcuts.length;e++)this.emojiShortcutMap[V.shortcuts[e].toLocaleLowerCase()]=V;B[R]=V.isCustomEmoji&&V.shortcuts?V.shortcuts[0]:V.emojiId}}B.sort(function(X,Y){return Y.length-X.length});
if(B.length)try{this.emojiRegex=new RegExp(B.join("|").replace("*","\\*"),"gi")}catch(X){this.emojiRegex=/$./}else this.emojiRegex=/$./};
wab=function(B,R){R=_.h(R);for(var V=R.next();!V.done;V=R.next()){var e=V.value;if(e.emojiId&&B.emojiMap[e.emojiId]){V=Object.assign({},B.emojiMap[e.emojiId],e);B.emojiMap[e.emojiId]=V;var X=void 0;V.index&&((X=B.emojis[V.index])==null?void 0:X.emojiId)===e.emojiId&&(B.emojis[V.index]=V);e=void 0;if((e=V.shortcuts)==null?0:e.length)for(B.hasInitializedShortcutCharMap=!1,e=_.h(V.shortcuts),X=e.next();!X.done;X=e.next())B.emojiShortcutMap[X.value.toLocaleLowerCase()]=V}}};
TQl=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,_.fy.getInstance(),2);if(e.nextAddress!=3)return(R=e.yieldResult)?_.U(e,R.get("ytlc-emoji-pref"),3):e.return();(V=e.yieldResult)&&wab(B,Object.keys(V).map(function(X){return{emojiId:X,stickyPrefId:V[X]}}).filter(function(X){return!!X.emojiId&&!!X.stickyPrefId}));
_.b3(e)})};
_.dY=function(B,R,V){return(B=B.emojiMap[R])&&(!B.isLocked||V!==void 0&&V)?B:void 0};
wY=function(B,R,V){V=_.dY(B,R,V===void 0?!1:V);var e=R.match("\u200d");V&&B.skinTone!==0&&(B=(e==null?void 0:e.length)===1?_.dY(B,R.replace("\u200d",Dg4[B.skinTone]+"\u200d")):_.dY(B,R+Dg4[B.skinTone]))&&(V=B);return V};
xg2=function(B,R){var V=B.emojiMap[R];return(V==null?0:V.stickyPrefId)?B.emojiMap[V.stickyPrefId]:wY(B,R)};
_.HI=function(B,R){B=B.emojiShortcutMap[R.toLocaleLowerCase()];return!B||B.isLocked?null:B};
L9_=function(B,R,V){return dgo(B,V===void 0?!1:V)[R]||{}};
dgo=function(B,R){R=R===void 0?!1:R;if(!B.hasInitializedShortcutCharMap){B.hasInitializedShortcutCharMap=!0;for(var V=0;V<B.emojis.length;V++){var e=B.emojis[V];if(!(e.isLocked||R&&e.isCustomEmoji&&e.emojiId&&!B.pickerCustomEmojiIds.includes(e.emojiId)))for(var X=0;e.shortcuts&&X<e.shortcuts.length;X++){var Y=e.shortcuts[X];Y.startsWith(":_")&&e.isCustomEmoji&&(B.emojiShortcutCharMap[":_"]==null&&(B.emojiShortcutCharMap[":_"]=Object.create(null)),B.emojiShortcutCharMap[":_"][Y]=e);if(!(Y.length<3||
!e.isCustomEmoji&&k6o.test(Y))){var t=Y.substr(0,3).toLocaleLowerCase();B.emojiShortcutCharMap[t]==null&&(B.emojiShortcutCharMap[t]=Object.create(null));B.emojiShortcutCharMap[t][Y]=e}}}}return B.emojiShortcutCharMap};
_.ao.prototype.createEmoji=function(B,R){R=R===void 0?!0:R;var V=document.createElement("img");B.isCustomEmoji||V.classList.add("small-emoji");V.classList.add("emoji");V.classList.add("yt-formatted-string");V.src=B.image?_.$T(B.image.thumbnails,this.emojiSize)||"":"";var e=void 0;B.image&&B.image.accessibility&&B.image.accessibility.accessibilityData&&(e=B.image.accessibility.accessibilityData.label);V.alt=e?e:(B.isCustomEmoji&&B.shortcuts?B.shortcuts[0]:B.emojiId)||"";B.isCustomEmoji&&(V.dataset.emojiId=
B.emojiId);_.ho&&(V.setAttribute("contenteditable","false"),V.setAttribute("unselectable","on"));R&&(B.shortcuts&&B.shortcuts.length&&V.setAttribute("shared-tooltip-text",B.shortcuts[0]),V.id="emoji-"+MeJ++);return V};
_.ao.prototype.createDocumentFragment=function(B,R,V,e){R=R===void 0?!1:R;V=V===void 0?!0:V;e=e===void 0?!1:e;B=B.replace(zYh,"");for(var X=document.createDocumentFragment(),Y=0,t,b=0;(t=this.emojiRegex.exec(B))!=null;){var J=_.dY(this,t[0])||_.HI(this,t[0]);!J||J.isCustomEmoji&&!R||(J=this.createEmoji(J,V),Y!==t.index&&X.appendChild(document.createTextNode(B.substring(Y,t.index))),X.appendChild(J),Y=t.index+t[0].length,b++)}if(!e||b)return X.appendChild(document.createTextNode(B.substr(Y))),X};
veT=function(B,R,V){var e,X,Y,t,b,J,G,y,S;return _.W(function(M){if(M.nextAddress==1){if(!R.emojiId||!B.emojiMap[R.emojiId])return M.return();e=Object.assign({},B.emojiMap[R.emojiId],{stickyPrefId:V});B.emojiMap[R.emojiId]=e;R.index&&((X=B.emojis[R.index])==null?void 0:X.emojiId)===R.emojiId&&(B.emojis[R.index]=e);if((Y=R.shortcuts)==null?0:Y.length)for(B.hasInitializedShortcutCharMap=!1,t=_.h(R.shortcuts),b=t.next();!b.done;b=t.next())J=b.value,B.emojiShortcutMap[J.toLocaleLowerCase()]=e;return _.U(M,
_.fy.getInstance(),2)}if(M.nextAddress!=4)return(G=M.yieldResult)?_.U(M,G.get("ytlc-emoji-pref"),4):M.jumpTo(0);S=(y=M.yieldResult)!=null?y:{};S[R.emojiId]=V;return _.U(M,G.set("ytlc-emoji-pref",S,ly5),0)})};
_.Tx=new _.ao;var Eeh;_.xE={};
Eeh={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.k("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:_.k("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 As(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 B=_.w(this.hostElement||this).querySelector("#inline-action-button-container");B&&B.setAttribute("aria-hidden","true");this.menuButton=_.w(this.hostElement).querySelector("#menu-button")},
attached:function(){var B=this.menuButton;B&&(B.addEventListener("focusin",_.Bc(this,this.onMenuButtonFocus_)),B.addEventListener("focusout",_.Bc(this,this.onMenuButtonBlur_)))},
detached:function(){var B=this.menuButton;B&&(B.removeEventListener("focusin",_.Bc(this,this.onMenuButtonFocus_)),B.removeEventListener("focusout",_.Bc(this,this.onMenuButtonBlur_)))},
identity:_.sS,truthy:function(B){return!!B},
computeTimestampString:function(B){return B?B.timestampText?this.getSimpleString(B.timestampText):this.TIME_FORMATTER.format(new Date(B.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(B){return _.k("live_chat_whole_message_clickable")&&B},
computeMenuVisible_:function(B,R){return B||R},
computeHasInlineActionButtons:function(B){if(!B)return!1;var R,V;return!((R=B.inlineActionButtons)==null||!R.length)||!((V=B.additionalInlineActionButtons)==null||!V.length)},
createDocumentFragmentFromString:function(B){var R=_.Tx.createDocumentFragment.bind(_.Tx),V;if((V=this.participantsManager)==null||!V.viewerRegex)return R(B);V=document.createDocumentFragment();for(var e=0,X;(X=this.participantsManager.viewerRegex.exec(B))!=null;){if(X.index>0){var Y=":"+X[0]+":";if((_.dY(_.Tx,Y)||_.HI(_.Tx,Y))&&B.indexOf(Y)===X.index-1)continue}V.appendChild(R(B.substring(e,X.index)));e=document.createElement("span");e.appendChild(R(X[0]));e.classList.add("mention");V.appendChild(e);
e=X.index+X[0].length}V.appendChild(R(B.substring(e)));return V},
createDocumentFragment:function(B){var R=document.createDocumentFragment();if(B.simpleText)return R.appendChild(this.createDocumentFragmentFromString(B.simpleText)),R;if(!B.runs)return R;for(var V=0;V<B.runs.length;V++){var e=B.runs[V];if(e.emoji)R.appendChild(_.Tx.createEmoji(e.emoji));else if(e.text)if(e.navigationEndpoint){var X=document.createElement("a");X.classList.add("yt-simple-endpoint");Caq(X,e.navigationEndpoint);_.w(X).appendChild(this.createDocumentFragmentFromString(e.text));R.appendChild(X)}else R.appendChild(this.createDocumentFragmentFromString(e.text))}return R},
hasModerationOverlayVisible:function(){var B;return((B=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:B.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(B){B.composedPath().some(function(R){return(R=R instanceof Element?R:null)?R.tagName&&(R.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||R.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.k("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(B)},
colorFromDecimal:function(B){return hgI(B)},
markAsDeleted:function(B,R){this.set("data.deletedStateMessage",B);this.set("data.showOriginalContentMessage",R)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(B){if(this.data.contextMenuEndpoint){var R=_.Oz().resolve(_.H$),V=this.data.contextMenuEndpoint,e;(e=_.QK.instance)&&_.qx(e,V)?(R=K94(R,V),e=_.vC(e,{},R)):e=_.Iyo(R,V);e.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);B&&B.stopPropagation()}},
handleGetContextMenuResponse_:function(B){var R=_.QK.instance;R&&_.qx(R,{liveChatEndpoint:{}})||(B=B.response);B.liveChatItemContextMenuSupportedRenderers&&B.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(B.liveChatItemContextMenuSupportedRenderers.menuRenderer);B.actions&&_.oF(this.hostElement,"yt-live-chat-actions",[B.actions])},
handleGetContextMenuError:function(B){if(B instanceof Error||B instanceof Object||B instanceof String)var R=B;_.Tn(new _.H8("Error encountered calling GetLiveChatItemContextMenu",R))},
showContextMenu_:function(B){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:B}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.OI(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.OI(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.xE.YtLiveChatItemBehavior=[Eeh,_.Tk.YtComponentBehavior,_.Ro.YtOpenPopupBehavior];_.Lj=function(){};var QEo;var qla;var cb2;var Abb;var vP=function(){var B=_.c.apply(this,arguments)||this;B.active=!1;B.identity=_.sS;return B};
_.l(vP,_.c);vP.prototype.dataChanged=function(){this.active=!1};
vP.prototype.onClick=function(){_.OI(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
vP.prototype.dataChanged=vP.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],vP.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],vP.prototype,"active",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vP.prototype,"dataChanged",null);vP=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],vP);
_.F(vP,"yt-live-chat-text-input-field-suggestion",function(){if(Abb===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;cb2===void 0&&(cb2=document.createElement("template"));var e=cb2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Abb=B}B=Abb;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});_.Kj=function(B,R,V){return CustomEvent.call(this,B,{detail:{value:R,path:V}})||this};
_.l(_.Kj,CustomEvent);_.Io=function(){var B=_.c.apply(this,arguments)||this;B.viewerName=null;B.actionMap={"yt-live-chat-actions":"onChatMessage_"};B.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];B.PARTICIPANT_TIME_USEC_=3E8;return B};
_.l(_.Io,_.c);_.p=_.Io.prototype;_.p.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.p.addParticipant=function(B){var R=_.k_A(this.participants,B,function(e,X){e=e[Object.keys(e)[0]];X=X[Object.keys(X)[0]];e=String(_.FF(e.authorName)).toLowerCase();X=String(_.FF(X.authorName)).toLowerCase();return e<X?-1:e==X?0:1}.bind(this));
if(R>=0){var V=this.participants[R];V[Object.keys(V)[0]].timestampUsec&&this.splice("participants",R,1,B)}else this.splice("participants",-R-1,0,B);B=B[Object.keys(B)[0]];R=_.FF(B.authorName).toLocaleLowerCase();V=R.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(V)||(this.allParticipantsCharMap_[V]={});this.allParticipantsCharMap_[V][R]=B};
_.p.getAuthorsFromPrefix=function(B){return this.allParticipantsCharMap_.hasOwnProperty(B)?this.allParticipantsCharMap_[B]:null};
_.p.computeViewerRegex_=function(B){if(!B)return null;B=B.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.k("enable_web_yt_handles")||_.k("enable_live_chat_yt_handles")?new RegExp("([#]"+B.replace(/ /g,"\\s*")+"|^"+B.replace(/ /g,"\\s*")+"$|^"+B.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+B.replace(/ /g,"\\s*")+"$|(?<=\\s)"+B.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+B.replace(/ /g,"\\s*")+"|^"+B.replace(/ /g,"\\s*")+"$|^"+B.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+B.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+B.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.p.checkForStaleParticipants_=function(){var B=this;this.trimOldParticipants_();this.asyncHandle_&&Ifq(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.xp(function(){B.checkForStaleParticipants_()},3E4))};
_.p.onChatMessage_=function(B){var R=this,V=Date.now()*1E3;B.forEach(function(e){if(e=_.D(e,WHb)){e=e.item;var X=Object.keys(e)[0];R.SUPPORTED_ITEM_TYPES_.indexOf(X)!=-1&&e[X].timestampUsec>=V-R.PARTICIPANT_TIME_USEC_&&R.addParticipant(e)}},this);
this.checkForStaleParticipants_()};
_.p.trimOldParticipants_=function(){for(var B=Date.now()*1E3,R=this.participants.length-1;R>=0;R--){var V=this.participants[R];V=V[Object.keys(V)[0]];V.timestampUsec&&V.timestampUsec<B-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",R,1)}};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],_.Io.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],_.Io.prototype,"viewerName",void 0);_.r([_.E({computed:"computeViewerRegex_(viewerName)"}),_.Z("design:type",Object)],_.Io.prototype,"viewerRegex",void 0);_.r([_.E({value:function(){return[]},
notify:!0}),_.Z("design:type",Array)],_.Io.prototype,"participants",void 0);_.Io=_.r([_.fJ({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Io);var ih4=/.*([:@#].*?)$/,EH=/\u00a0/g,sE2=String.fromCharCode(160),F9J={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"},QR=function(){var B=_.c.apply(this,arguments)||this;B.disabled=!1;B.liveChatRichMessageInput=null;B.messageInput=null;B.isValidWithNoInputText=!1;B.suggestions=[];B.emojiManager=_.Tx;B.inputMethodEditorActive=
!1;B.suggestionIndex=-1;B.JSC$11872_lastSuggestionRange=null;return B};
_.l(QR,_.c);_.p=QR.prototype;_.p.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.p.attached=function(){_.to&&(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 B=!1,R={},V;for(V in F9J)this.data&&this.data.hasOwnProperty(V)&&(R[F9J[V]]=this.colorFromDecimal(this.data[V]),B=!0);B&&_.o_(this.hostElement,R)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.p.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.p.colorFromDecimal=function(B){B=Math.floor(Number(B));return"rgba("+[B>>16&255,B>>8&255,B&255,(B>>24&255)/255].join()+")"};
_.p.preventDrag=function(B){B.dataTransfer&&(B.dataTransfer.dropEffect="none");B.preventDefault()};
_.p.preventResize=function(B){B.returnValue=!1};
_.p.onInputChange=function(){var B=this.characterCount,R=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&R&&R.remove();if(!R&&this.characterCount>this.maxCharacterLimit){var V=window.getSelection();if(V){var e=V.getRangeAt(0);V.removeAllRanges();V.addRange(e)}}if(V=this.getCurrentRange())e=this.calculateTextBeforeRange(V),this.completeEmojisInRange(V,e,!0)||this.updateSuggestions(V,e);e=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(e);
_.OI(this.hostElement,"yt-live-chat-message-input-change",e);R&&this.characterCount===0&&R.remove();V&&V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>B):V&&!V.collapsed&&V.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(B=this.input.childNodes.length-1;B>=0;B--)this.input.childNodes[B].nodeName==="BR"&&this.input.childNodes[B].remove()};
_.p.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.p.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var B=this.getCurrentRange();B&&B.commonAncestorContainer.parentElement.id==="input"&&B.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.p.mergeOverflowText=function(B){if(B){var R=document.createRange();R.selectNodeContents(B);R=R.extractContents();this.input.insertBefore(R,B)}};
_.p.checkRangeAtEndOfInput=function(){var B=this.getCurrentRange();if(B){var R=_.w(this.hostElement).querySelector("#overflow-text"),V=document.createRange();R&&R.previousSibling?R.previousSibling instanceof HTMLImageElement?V.selectNode(R.previousSibling):V.selectNodeContents(R.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?V.selectNode(this.input.lastChild):V.selectNodeContents(this.input.lastChild));V.collapse(!1);return V.isPointInRange(B.startContainer,
B.startOffset)}return!1};
_.p.handleOverflowText=function(B){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var R=_.w(this.hostElement).querySelector("#overflow-text"),V=this.getCurrentRange();this.input.normalize();B=this.checkRangeAtEndOfInput()&&B;this.mergeOverflowText(R);for(var e,X=0,Y=0,t,b=this.input.childNodes,J=0;J<b.length;J++){var G=b[J];G instanceof Text?(Y+=G.textContent.length,Y>this.maxCharacterLimit&&(e=G,X=this.maxCharacterLimit+G.textContent.length-Y)):G instanceof HTMLImageElement&&
(e=void 0,Y=G.dataset.emojiId&&((e=this.data)==null?0:e.emojiCharacterCount)?Y+this.data.emojiCharacterCount:Y+G.alt.length,e=this.input,X=J);if(Y>this.maxCharacterLimit&&e){t=document.createRange();t.collapse(!1);R?(Y=this.input.lastChild.previousSibling,Y instanceof Text?t.setEnd(this.input.lastChild.previousSibling,Y.textContent.length):Y instanceof HTMLImageElement&&t.setEnd(this.input,this.input.childNodes.length-1)):t.selectNodeContents(this.input);t.setStart(e,X);break}}t&&(e=!1,V&&(B=t.isPointInRange(V.startContainer,
V.startOffset-1)),R||(R=document.createElement("span"),R.id="overflow-text",R.textContent="",R.setAttribute("contenteditable","true"),_.w(_.w(this.hostElement).querySelector("#input")).appendChild(R),e=!0),R&&(V=t.extractContents(),R.insertBefore(V,R.firstChild),B&&R.firstChild&&(V=document.createRange(),e?V.setStartAfter(R.lastChild):V.setStartAfter(R.firstChild),V.collapse(!0),R=window.getSelection(),R.removeAllRanges(),R.addRange(V))))}};
_.p.checkForDuplicateSpans=function(){for(var B=0;B<this.input.childNodes.length;B++){var R=this.input.childNodes[B];if(R.nodeName==="SPAN"){var V=document.createRange();V.selectNodeContents(R);V=V.extractContents();this.input.insertBefore(V,R);R.remove()}}this.handleOverflowText(!0)};
_.p.getCurrentRange=function(){var B=window.getSelection();return B&&B.rangeCount?B.getRangeAt(0).cloneRange():null};
_.p.getInputRange=function(){var B=this.getCurrentRange();if(B){for(var R=B.commonAncestorContainer,V=!1,e=_.w(this.hostElement).querySelector("#input");R;){if(R===e){V=!0;break}R=R.parentNode}V||(B=null)}B||(B=this.getRangeAtEnd());return B};
_.p.getRangeAtEnd=function(){var B=document.createRange(),R=_.w(this.hostElement).querySelector("#input").lastChild;!R||R.nodeName!=="#text"&&R.nodeName!=="SPAN"?(B.selectNodeContents(_.w(this.hostElement).querySelector("#input")),B.collapse(!1)):R.nodeName==="#text"?B.setStart(R,R.textContent.length):B.setStart(R,R.childNodes.length);return B};
_.p.getSuggestions=function(B){var R=[],V=B.substring(0,3),e=L9_(_.Tx,V,!0);if(e)for(var X in e)if(X.toLocaleLowerCase().indexOf(B)===0){var Y=e[X];if(Y&&Y.emojiId){if(Y=xg2(_.Tx,Y.emojiId)){var t=void 0,b=void 0,J=void 0,G=void 0,y=((t=Y.image)==null?0:(b=t.accessibility)==null?0:(J=b.accessibilityData)==null?0:J.label)||Y.isCustomEmoji?(G=Y.shortcuts)==null?void 0:G[0]:Y.emojiId;R.push({suggestion:{emoji:!0,image:Y.image,alt:y,text:X,textToInsertWhenSelected:Y.isCustomEmoji?X:y}})}if(R.length>=
64)break}}if(!this.participantsManager)return null;e=_.k("enable_web_yt_handles")||_.k("enable_live_chat_yt_handles");if(V.indexOf("@")===0||V.indexOf("#")===0)if(X=V.charAt(0),B=B.substring(1),V=e&&V.indexOf("@")===0?V.substring(0,2):V.substring(1),V=this.participantsManager.getAuthorsFromPrefix(V))for(var S in V)if(S.indexOf(B)===0||e&&S.indexOf(X+B)===0)if(Y=V[S],t=_.FF(Y.authorName),R.push({suggestion:{author:!0,authorType:X,image:Y.authorPhoto,alt:t,text:t}}),R.length>=64)break;return R?R.sort(function(M,
f){return f.suggestion.text<M.suggestion.text?-1:f.suggestion.text===M.suggestion.text?0:1}):null};
_.p.insertSuggestion=function(B){var R=_.k("enable_web_yt_handles")||_.k("enable_live_chat_yt_handles")?B.text+sE2:B.authorType+B.text+sE2;B.emoji?this.insertTextAtRange(this.JSC$11872_lastSuggestionRange,B.textToInsertWhenSelected||""):B.author&&this.insertTextAtRange(this.JSC$11872_lastSuggestionRange,R)};
_.p.updateSuggestionsAtCaret=function(){var B=this.getCurrentRange();B&&this.updateSuggestions(B,this.calculateTextBeforeRange(B))};
_.p.offsetStartOfRangeBy=function(B,R){for(;R>0;)if(B.startOffset-R>=0){B.setStart(B.startContainer,B.startOffset-R);break}else{R=B.startContainer instanceof HTMLImageElement?R-B.startContainer.alt.length:R-B.startOffset;var V=B.startContainer.previousSibling;if(!V){B.setStart(B.startContainer,0);break}if(_.k("live_chat_require_space_for_autocomplete_emoji")){var e=void 0,X=void 0;B.setStart(V,((e=V)==null?void 0:(X=e.textContent)==null?void 0:X.length)||0)}else B.setStart(V,V.childNodes.length||
0)}};
_.p.updateSuggestions=function(B,R){var V=this;this.JSC$11872_lastSuggestionRange&&(this.JSC$11872_lastSuggestionRange.detach(),this.JSC$11872_lastSuggestionRange=null);if((R=ih4.exec(R))&&R.length&&(R=R[R.length-1].toLocaleLowerCase(),R.length>2&&(this.offsetStartOfRangeBy(B,R.length),this.JSC$11872_lastSuggestionRange=B,(B=this.getSuggestions(R))&&B.length))){this.suggestions=B;_.gB(this,function(){_.w(V.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(B.length-1);return}this.dropdown.opened=!1};
_.p.completeEmojisInRange=function(B,R,V){var e=R.replace(/[\s\xa0]+$/,"");R=R.length-e.length;e=e.split(" ");e=e[e.length-1].trim().toLocaleLowerCase();var X=e.lastIndexOf(":");if(V&&!R&&X!==e.length-1)return!1;X!==-1&&(V=e.lastIndexOf(":",X-1),V!==-1&&(e=e.substring(V)));if((V=_.HI(_.Tx,e))&&V.emojiId){V=xg2(_.Tx,V.emojiId)||null;this.offsetStartOfRangeBy(B,e.length+R);var Y,t,b,J;e=(((Y=V)==null?0:Y.isCustomEmoji)?(t=V)==null?void 0:(b=t.shortcuts)==null?void 0:b[0]:(J=V)==null?void 0:J.emojiId)||
"";R&&(e+=sE2);this.insertTextAtRange(B,e);this.dropdown.opened=!1;return!0}return!1};
_.p.onSuggestion=function(B){this.insertSuggestion(B.detail);this.dropdown.opened=!1};
_.p.onKeyPress=function(B){B.keyCode===13&&(B.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.OI(this.hostElement,"yt-live-chat-send-message"))};
_.p.completeEmojis=function(){var B=document.createRange(),R=_.w(this.hostElement).querySelector("#input").lastChild;R?B.setStart(R,R.childNodes.length):(B.selectNodeContents(_.w(this.hostElement).querySelector("#input")),B.collapse(!1));this.completeEmojisInRange(B,this.calculateTextBeforeRange(B),_.k("live_chat_require_space_for_autocomplete_emoji"))};
_.p.maybePreventTextFormatting=function(B){!_.jY||!B.ctrlKey&&!B.metaKey||B.keyCode!==66&&B.keyCode!==73||(B.stopImmediatePropagation(),B.preventDefault())};
_.p.onKeyDown=function(B){this.maybePreventTextFormatting(B);if(this.dropdown.opened)switch(B.keyCode){case 27:this.dropdown.opened=!1;B.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;B.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);B.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),B.preventDefault()}};
_.p.onKeyUp=function(B){switch(B.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.ho)this.onInputChange()};
_.p.changeSuggestionIndex=function(B){if(this.dropdown.opened){var R=_.w(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<R.children.length&&(R.children[this.suggestionIndex].active=!1);var V=this.suggestions.length;this.suggestionIndex=(B+V)%V;B=R.children[this.suggestionIndex];B.active=!0;R.scrollTop=B.offsetTop}};
_.p.onInputPaste=function(B){B.preventDefault();(B=B.clipboardData)&&B.types&&(B=B.getData("text/plain")||"",B=B.replace(/\n/g,""),this.insertText(B));(B=this.getCurrentRange())&&B.commonAncestorContainer.parentElement.id==="input"&&B.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.p.onFocus=function(){this._setFocused(!0)};
_.p.onBlur=function(){this._setFocused(!1)};
_.p.insertText=function(B){this.insertTextAtRange(this.getInputRange(),B)};
_.p.insertTextAtRange=function(B,R){if(B&&(B.collapsed||B.deleteContents(),R=_.Tx.createDocumentFragment(R,!0,!1))){for(var V=_.h((R==null?void 0:R.childNodes)||[]),e=V.next();!e.done;e=V.next()){e=e.value;var X=void 0,Y=void 0,t=void 0,b=void 0,J=void 0;(t=(X=window)==null?void 0:(Y=X.ShadyCSS)==null?void 0:Y.ScopingShim)==null||(J=(b=t).scopeNode)==null||J.call(b,e,this.hostElement.localName)}V=R.lastChild;B.insertNode(R);this.focused||this.input.focus();if(this.focused){B=B.cloneRange();B.selectNodeContents(V);
B.collapse(!1);if(R=window.getSelection())R.removeAllRanges(),R.addRange(B);B.commonAncestorContainer.parentElement.id==="input"&&B.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}B=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(B);_.OI(this.hostElement,"yt-live-chat-message-input-change",B)}};
_.p.setLiveChatRichMessageInput=function(B){_.w(_.w(this.hostElement).querySelector("#input")).textContent="";if(B&&B.textSegments){for(var R=0;R<B.textSegments.length;R++){var V=B.textSegments[R];V.text?_.w(_.w(this.hostElement).querySelector("#input")).appendChild(_.Tx.createDocumentFragment(V.text,!0,!1)):V.emojiId&&(V=_.dY(_.Tx,V.emojiId))&&_.w(_.w(this.hostElement).querySelector("#input")).appendChild(_.Tx.createEmoji(V,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.p.setText=function(B){this.setLiveChatRichMessageInput(B?{textSegments:[{text:B}]}:null)};
_.p.calculateTextBeforeRange=function(B){var R="",V=B.startContainer;if(V&&V instanceof Text){var e;R=((e=V.textContent)==null?void 0:e.substring(0,B.startOffset))||"";V=V.previousSibling}for(;V&&V instanceof Text;)R=V.textContent+R,V=V.previousSibling;return R.replace(EH," ")};
_.p.calculateLiveChatRichMessageInput=function(){for(var B=[],R="",V=_.w(_.w(this.hostElement).querySelector("#input")).childNodes,e=0;e<V.length;e++){var X=V[e];X instanceof Text?R+=X.textContent:X instanceof HTMLImageElement&&(X.dataset.emojiId?(R&&(B.push({text:R.replace(EH," ")}),R=""),B.push({emojiId:X.dataset.emojiId})):R+=X.alt)}R&&B.push({text:R.replace(EH," ")});if(V=_.w(this.hostElement).querySelector("#overflow-text")){R="";V=V.childNodes;for(e=0;e<V.length;e++)X=V[e],X instanceof Text?
R+=X.textContent:X instanceof HTMLImageElement&&(X.dataset.emojiId?(R&&(B.push({text:R.replace(EH," ")}),R=""),B.push({emojiId:X.dataset.emojiId})):R+=X.alt);R&&B.push({text:R.replace(EH," ")})}return{textSegments:B}};
_.p.computeCharacterCount=function(B){if(!B||!B.textSegments)return 0;for(var R=0,V=0;V<B.textSegments.length;V++){var e=B.textSegments[V];if(e.text)R+=e.text.length;else if(e.emojiId){var X=void 0;if((X=this.data)==null?0:X.emojiCharacterCount)R+=this.data.emojiCharacterCount;else{var Y=X=void 0,t=void 0;R+=((Y=_.dY(_.Tx,(X=e)==null?void 0:X.emojiId))==null?void 0:(t=Y.shortcuts)==null?void 0:t[0].length)||0}}}return R};
_.p.characterCountChanged=function(){_.OI(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.p.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Kj("focused-changed",this.focused))};
_.p.focus=function(){this.setFocus(!1)};
_.p.focusAtEnd=function(){this.setFocus(!0)};
_.p.setFocus=function(B){B=B?this.getRangeAtEnd():this.getInputRange();_.w(this.hostElement).querySelector("#input").focus();var R=window.getSelection();R&&(R.removeAllRanges(),R.addRange(B))};
_.p.insertEmoji=function(B){var R,V=((B==null?0:B.isCustomEmoji)?(R=B.shortcuts)==null?void 0:R[0]:B==null?void 0:B.emojiId)||"";this.insertText(V)};
_.p.computeText=function(B){if(!B||!B.textSegments)return"";for(var R="",V=0;V<B.textSegments.length;V++){var e=B.textSegments[V];if(e.text)R+=e.text;else if(e.emojiId){var X=void 0,Y=void 0,t=void 0;R+=((Y=_.dY(_.Tx,(X=e)==null?void 0:X.emojiId))==null?void 0:(t=Y.shortcuts)==null?void 0:t[0])||""}}return R};
_.p.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.mh.Object.defineProperties(QR.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.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}}});
QR.prototype.focusedChanged=QR.prototype.focusedChanged;QR.prototype.characterCountChanged=QR.prototype.characterCountChanged;QR.prototype.onSuggestion=QR.prototype.onSuggestion;QR.prototype.onMessageSet=QR.prototype.onMessageSet;QR.prototype.dataChanged=QR.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],QR.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],QR.prototype,"disabled",void 0);_.r([_.K("disabled"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],QR.prototype,"inputTabIndex",null);_.r([_.K("data.maxCharacterLimit"),_.E({readOnly:!0,notify:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],QR.prototype,"maxCharacterLimit",null);
_.r([_.K("liveChatRichMessageInput"),_.E({readOnly:!0,notify:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],QR.prototype,"characterCount",null);_.r([_.K("maxCharacterLimit, characterCount"),_.E({readOnly:!0,notify:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],QR.prototype,"remainingCharacterCount",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],QR.prototype,"isChatMessageInput",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],QR.prototype,"inputExpanded",void 0);_.r([_.E({readOnly:!0,notify:!0}),_.Z("design:type",Object)],QR.prototype,"liveChatRichMessageInput",void 0);_.r([_.E(),_.Z("design:type",Object)],QR.prototype,"messageInput",void 0);_.r([_.E(),_.Z("design:type",Boolean)],QR.prototype,"ignoreColorMapping",void 0);_.r([_.K("characterCount"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QR.prototype,"hasText",null);
_.r([_.E(),_.Z("design:type",Object)],QR.prototype,"isValidWithNoInputText",void 0);_.r([_.K("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.E(),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QR.prototype,"isInputValid",null);_.r([_.E({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],QR.prototype,"focused",void 0);_.r([_.E(),_.Z("design:type",Array)],QR.prototype,"suggestions",void 0);
_.r([_.E(),_.Z("design:type",_.ao)],QR.prototype,"emojiManager",void 0);_.r([_.E(),_.Z("design:type",_.Io)],QR.prototype,"participantsManager",void 0);_.r([_.E(),_.Z("design:type",Boolean)],QR.prototype,"noUnderline",void 0);_.r([_.E(),_.Z("design:type",Object)],QR.prototype,"inputMethodEditorActive",void 0);_.r([_.Yp("#dropdown"),_.Z("design:type",Object)],QR.prototype,"dropdown",void 0);_.r([_.Yp("#input"),_.Z("design:type",HTMLElement)],QR.prototype,"input",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QR.prototype,"dataChanged",null);_.r([_.XX("messageInput"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QR.prototype,"onMessageSet",null);_.r([_.R_("yt-live-chat-select-suggestion"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],QR.prototype,"onSuggestion",null);
_.r([_.XX("characterCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QR.prototype,"characterCountChanged",null);_.r([_.XX("focused"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QR.prototype,"focusedChanged",null);QR=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],QR);
_.rbT=_.F(QR,"yt-live-chat-text-input-field-renderer",function(){if(qla===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;QEo===void 0&&(QEo=document.createElement("template"));var e=QEo;V.call(R,e.content.cloneNode(!0),B.content.firstChild);qla=B}B=qla;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var qG=function(){var B=_.c.apply(this,arguments)||this;B.buttonOverrides={style:"overlay",type:"filled"};B.allowAnimations=!1;B.modern=_.k("web_button_rework_with_live");B.noPadding=!1;return B};
_.l(qG,_.c);_.p=qG.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 B=document.querySelector("yt-live-chat-app");B&&B.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.p.attached=function(){this.allowAnimations=!1};
_.p.dataChanged=function(){if(this.data){var B={"--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)};_.o_(this.hostElement,B);this.allowAnimations=!0}};
_.p.messageChanged=function(){var B,R=(B=this.data)==null?void 0:B.message;B=_.w(_.w(this.hostElement).querySelector("#message"));B.textContent="";R&&B.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(R))};
_.p.computeShowOnlyHeader=function(B,R){return!B||B.pdgLikeButton||B.replyButton||B.buyFlowButton?!1:this.isEmpty(B,R)&&!B.footer};
_.p.computeShowFooterDivider=function(B,R,V){return B?!!B.footer&&!this.isEmpty(B,R)&&!V:!1};
_.p.computeIsUserEditable=function(B){return!!B.inputField};
_.p.computeHasHeartButton=function(B){return(B==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(B==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(B==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.p.computeNoveltyImage=function(B){if(B.headerOverlayImage&&B.headerOverlayImage.thumbnails.length){var R=B.headerOverlayImage.thumbnails[0],V,e;if((V=B.pdgPurchasedNoveltyLoggingDirectives)==null?0:(e=V.loggingDirectives)==null?0:e.trackingParams){var X,Y;g9A((X=B.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Y=X.loggingDirectives)==null?void 0:Y.trackingParams)}return R.width||0}return 0};
_.p.computeAuthorPhotoSize=function(B){return(B==null?0:B.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.p.inputFocus=function(){var B=_.w(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");B&&B.focus()};
_.p.inputInsertEmoji=function(B){var R=_.w(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");R&&R.insertEmoji(B)};
_.p.inputMessage=function(){var B=_.w(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),R;return B&&((R=this.data)==null?0:R.inputField)?(B.completeEmojis(),_.KD(B.liveChatRichMessageInput)):null};
_.p.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.p.isEmpty=function(B,R){return B?B.empty||!(B.message||B.inputField||R):!0};
_.p.onLowerBuyButtonClick=function(){var B,R=_.D((B=this.data)==null?void 0:B.buyButton,_.Ii);R&&R.trackingParams&&!WsI(R.command)&&(B=_.U5(R.trackingParams))&&(R=_.TE())&&_.iF(R,B)};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.mh.Object.defineProperties(qG.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
qG.prototype.isDeletedChanged=qG.prototype.isDeletedChanged;qG.prototype.messageChanged=qG.prototype.messageChanged;qG.prototype.dataChanged=qG.prototype.dataChanged;_.r([_.v(lsR.YtPdgLiveChatItemBehavior),_.Z("design:type",Object)],qG.prototype,"ytPdgLiveChatItemBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],qG.prototype,"ytLiveChatReduxBehavior",void 0);
_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],qG.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qG.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:FY5}),_.Z("design:type",Object)],qG.prototype,"engagementState",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Z("design:type",Boolean)],qG.prototype,"isUserEditable",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Z("design:type",Boolean)],qG.prototype,"hasHeartButton",void 0);_.r([_.E({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],qG.prototype,"showOnlyHeader",void 0);
_.r([_.E({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],qG.prototype,"showFooterDivider",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Object)],qG.prototype,"allowAnimations",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qG.prototype,"dashboardMoneyFeed",void 0);_.r([_.E({computed:"computeNoveltyImage(data)"}),_.Z("design:type",Number)],qG.prototype,"noveltyWidth",void 0);
_.r([_.E({computed:"computeAuthorPhotoSize(data)"}),_.Z("design:type",Number)],qG.prototype,"authorPhotoSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qG.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qG.prototype,"noPadding",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qG.prototype,"dataChanged",null);
_.r([_.XX("data.message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qG.prototype,"messageChanged",null);_.r([_.K("data","dashboardMoneyFeed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qG.prototype,"hideLowerBumper",null);_.r([_.XX("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qG.prototype,"isDeletedChanged",null);
qG=_.r([_.A({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],qG);
_.F(qG,"yt-live-chat-paid-message-renderer",function(){if(nr4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Pc4===void 0&&(Pc4=document.createElement("template"));var e=Pc4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);nr4=B}B=nr4;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var gea;var ZhR;var cP=function(){var B=_.tM.apply(this,arguments)||this;B._noAccessors=!0;return B};
_.l(cP,_.tM);cP.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.vE("openPopupConfig")};
_.r([_.v(_.Ro.YtOpenPopupBehavior),_.Z("design:type",Object)],cP.prototype,"ytOpenPopupBehavior",void 0);cP=_.r([_.Wc()],cP);_.Ad=[_.Ro.YtOpenPopupBehavior,cP.prototype];var mga;var iP=[_.Jz,OUa,_.Lt,_.jc,_.sI,_.tIR,_.GF,_.NvS,_.Ki,AjN];_.k("web_watch_get_updated_metadata_response_processing")&&iP.push(_.qN2);_.k("web_continuation_response_processing")&&iP.push(_.xB);var TDK=new _.u0("RESPONSE_RECEIVED_COMMANDS"),EF_=new _.u0("RESPONSE_RECEIVED_COMMANDS");var wqo="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),dbI=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],ajN=["GET_UNSEEN_NOTIFICATION_COUNT"];var i$=function(){var B=_.tM.apply(this,arguments)||this;B._noAccessors=!0;B.serviceEndpointHandlers=[];return B};
_.l(i$,_.tM);i$.prototype.created=function(){var B=this;this.endpointHandlerActionMap={"yt-service-request":function(R,V,e,X){var Y;return zFA(B.hostElement,R,V,e,X,B.serviceEndpointHandlers,(Y=B.onEntitiesUpdated)==null?void 0:Y.bind(B))}}};
i$.prototype.attached=function(){_.Fo(_.sd.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
i$.prototype.detached=function(){_.rn(_.sd.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
i$=_.r([_.Wc()],i$);_.$g4=[i$.prototype];var Cqa,Pqa=function(){return Cqa!==void 0?Cqa:Cqa=document.createElement("template")};
document.head.appendChild(Pqa().content);var neb;var uSR=document.head,Oh4=uSR.appendChild,o9v;if(neb===void 0){var BdR=document.createElement("template");_.a(BdR,"\x3c!--css-build:shady--\x3e");BdR.content.insertBefore(Pqa().content.cloneNode(!0),BdR.content.firstChild);neb=BdR}o9v=neb;Oh4.call(uSR,o9v.content);var Rab,VyJ=function(){return Rab!==void 0?Rab:Rab=document.createElement("template")};
document.head.appendChild(VyJ().content);var eaJ;var Xev=document.head,peJ=Xev.appendChild,Y1J;if(eaJ===void 0){var hao=document.createElement("template");_.a(hao,"\x3c!--css-build:shady--\x3e");hao.content.insertBefore(VyJ().content.cloneNode(!0),hao.content.firstChild);eaJ=hao}Y1J=eaJ;peJ.call(Xev,Y1J.content);var ty5;_.aO("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.aO("sharingRendererButtons","buttonRenderer","ytd-button-renderer");ty5=_.k("web_button_rework")&&_.KQ("BUTTON_REWORK")||_.k("web_button_rework_with_live");_.sH=function(){var B=_.c.apply(this,arguments)||this;B.isPressed=!1;B.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return B};
_.l(_.sH,_.c);_.p=_.sH.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 B=this,R,V,e=(R=this.ytButtonBehavior.data)==null?void 0:(V=R.hint)==null?void 0:V.hintRenderer;if(e&&e.hintId){R=_.Bz(this.hostElement,"yt-get-opened-popups-action");R=(R&&R.length===1?R[0]:[]).length>0;var X=null;e.hintId!=="sponsor-pre-purchase"||R?e.hintId.startsWith("sponsor-post-purchase")&&!R?X=ggS("membership-manage"):e.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!R&&(X=ggS("membership-freebie-join")):X=ggS("membership-join");X&&_.dV.addLowPriorityJob(function(){for(var Y=
_.h(X),t=Y.next();!t.done;t=Y.next())B.ytComponentBehavior.resolveCommand(t.value)})}};
_.p.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.p.onYtNavigate=function(B){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(B.detail.endpoint);R&&(B.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(R))};
_.p.onYtServiceRequestSent=function(B,R){this.handleServiceRequestActions(R);_.OI(this.hostElement,"yt-service-request-sent-button-renderer")};
_.p.onServiceRequestCompleted=function(B,R){this.handleServiceRequestActions(R);_.OI(this.hostElement,"yt-service-request-completed-button-renderer")};
_.p.updateButton=function(B){var R;if(B=(R=_.D(B,I1h))==null?void 0:R.updatedButton)this.ytButtonBehavior.data=_.D(B,_.Ii)};
_.p.handleUpdateButtonAction=function(B){var R=this.ytButtonBehavior.data;R.targetId&&B.updateButtonAction.targetId&&R.targetId===B.updateButtonAction.targetId&&this.updateButton(B)};
_.p.handleServiceRequestActions=function(B){if(B=B.actions)for(var R=0;R<B.length;R++)this.updateButton(B[R])};
_.mh.Object.defineProperties(_.sH,{template:{configurable:!0,enumerable:!0,get:function(){if(mga===void 0){var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);mga=B}B=mga;return B}}});
_.sH.prototype.onServiceRequestCompleted=_.sH.prototype.onServiceRequestCompleted;_.sH.prototype.onYtServiceRequestSent=_.sH.prototype.onYtServiceRequestSent;_.sH.prototype.onYtNavigate=_.sH.prototype.onYtNavigate;_.sH.prototype.onPressedStateChanged=_.sH.prototype.onPressedStateChanged;_.sH.prototype.onHintIdChanged=_.sH.prototype.onHintIdChanged;_.r([_.E(),_.Z("design:type",Object)],_.sH.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],_.sH.prototype,"isPressed",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],_.sH.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.yeh.YtButtonBehavior),_.Z("design:type",Object)],_.sH.prototype,"ytButtonBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],_.sH.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],_.sH.prototype,"ytComponentBehavior",void 0);
_.r([_.v(YE.YtRenderButtonBehavior),_.Z("design:type",Object)],_.sH.prototype,"ytRenderButtonBehavior",void 0);_.r([_.XX("data.hint.hintRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],_.sH.prototype,"onHintIdChanged",null);_.r([_.XX("isPressed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],_.sH.prototype,"onPressedStateChanged",null);
_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],_.sH.prototype,"onYtNavigate",null);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],_.sH.prototype,"onYtServiceRequestSent",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],_.sH.prototype,"onServiceRequestCompleted",null);_.sH=_.r([_.A({is:"ytd-button-renderer",disableElementRegistration:ty5})],_.sH);var Fw=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("web_button_rework_with_live");B.buttonOverrides={style:"overlay",type:"filled"};return B};
_.l(Fw,_.c);_.p=Fw.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 B=document.querySelector("yt-live-chat-app");B&&B.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.p.dataChanged=function(){if(this.data&&this.data.sticker){var B=_.$T(this.data.sticker.thumbnails,this.stickerWidth);B||_.F1S(B).thenCatch(function(){_.KE(new _.H8("Failed to load Super Sticker with url",B))})}};
_.p.computeAuthorPhotoSize=function(B){return(B==null?0:B.isV2Style)?32:40};
_.p.computeIsV2Style=function(B){return(B==null?0:B.isV2Style)?!0:!1};
_.p.onStickerLoaded=function(B){var R,V,e;(R=_.ii(B))==null||(V=R.parentNode)==null||(e=V.classList)==null||e.add("sticker-loaded")};
_.p.computeNoveltyImageWidth=function(B){var R,V;if(B==null?0:(R=B.headerOverlayImage)==null?0:(V=R.thumbnails)==null?0:V.length){R=B.headerOverlayImage.thumbnails[0];var e,X;if((e=B.pdgPurchasedNoveltyLoggingDirectives)==null?0:(X=e.loggingDirectives)==null?0:X.trackingParams){var Y,t;g9A((Y=B.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(t=Y.loggingDirectives)==null?void 0:t.trackingParams)}return R.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 B=this.data;B&&(B={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(B.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(B.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(B.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(B.authorNameTextColor)},
_.o_(this.hostElement,B))};
_.p.onBuyButtonClick=function(){var B,R=_.D((B=this.data)==null?void 0:B.buyButton,_.Ii);R&&!WsI(R.command)&&this.ytRendererBehavior.logExplicitClick(R)};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.mh.Object.defineProperties(Fw.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 B;return((B=this.data)==null?0:B.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Fw.prototype.updateStickerStyles=Fw.prototype.updateStickerStyles;Fw.prototype.isDeletedChanged=Fw.prototype.isDeletedChanged;Fw.prototype.onStickerLoaded=Fw.prototype.onStickerLoaded;Fw.prototype.dataChanged=Fw.prototype.dataChanged;_.r([_.v(lsR.YtPdgLiveChatItemBehavior),_.Z("design:type",Object)],Fw.prototype,"ytPdgLiveChatItemBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Fw.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],Fw.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Fw.prototype,"data",void 0);
_.r([_.E({computed:"computeAuthorPhotoSize(data)"}),_.Z("design:type",Number)],Fw.prototype,"authorPhotoSize",void 0);_.r([_.E(),_.Z("design:type",Boolean)],Fw.prototype,"isDeleted",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Fw.prototype,"dashboardMoneyFeed",void 0);_.r([_.E({computed:"computeNoveltyImageWidth(data)"}),_.Z("design:type",Number)],Fw.prototype,"noveltyWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Fw.prototype,"modern",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Z("design:type",Boolean)],Fw.prototype,"isV2Style",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fw.prototype,"dataChanged",null);_.r([_.R_("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Fw.prototype,"onStickerLoaded",null);
_.r([_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Fw.prototype,"stickerWidth",null);_.r([_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Fw.prototype,"stickerHeight",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Fw.prototype,"hasHeartButton",null);_.r([_.K("data","dashboardMoneyFeed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Fw.prototype,"hideLowerBumper",null);
_.r([_.XX("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fw.prototype,"isDeletedChanged",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fw.prototype,"updateStickerStyles",null);Fw=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Fw);
_.F(Fw,"yt-live-chat-paid-sticker-renderer",function(){if(ZhR===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;gea===void 0&&(gea=document.createElement("template"));var e=gea;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ZhR=B}B=ZhR;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var WYa;var b2h;var JN_,jR2=function(){return JN_!==void 0?JN_:JN_=document.createElement("template")};
document.head.appendChild(jR2().content);var Uch,Ndb=function(){return Uch!==void 0?Uch:Uch=document.createElement("template")};
document.head.appendChild(Ndb().content);var Gu2;var yNJ,S1l=function(){return yNJ!==void 0?yNJ:yNJ=document.createElement("template")};
document.head.appendChild(S1l().content);var H24;var My_=document.head,ku_=My_.appendChild,DcS;if(H24===void 0){var flv=document.createElement("template");_.a(flv,"\x3c!--css-build:shady--\x3e");flv.content.insertBefore(S1l().content.cloneNode(!0),flv.content.firstChild);H24=flv}DcS=H24;ku_.call(My_,DcS.content);var ll4=document.head,zah=ll4.appendChild,al_;if(Gu2===void 0){var rY=document.createElement("template");_.a(rY,"\x3c!--css-build:shady--\x3e");rY.content.insertBefore(Ndb().content.cloneNode(!0),rY.content.firstChild);rY.content.insertBefore(jR2().content.cloneNode(!0),rY.content.firstChild);Gu2=rY}al_=Gu2;zah.call(ll4,al_.content);var gY=function(){var B=_.tM.apply(this,arguments)||this;B.focusedIndex=0;B.verticalOffset=0;B.verticalAlign="top";B.dynamicAlign=!0;return B};
_.l(gY,_.tM);gY.prototype.emojiUrl=function(B){B=_.dY(this.emojiManager,B);if(!B)return"";var R;B=(R=B.image)==null?void 0:R.thumbnails;return _.$T(B,24)||""};
var dcR=function(B){var R;B.emojiVariants&&(R=B.data)!=null&&R.target&&_.gB(B,function(){B.set("verticalOffset",-1*B.hostElement.clientHeight);var V=_.w(B.hostElement).querySelector("img");V&&V.focus()})};
_.p=gY.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(B){switch(B.keyCode){case 13:this.onKeyboardEnter();B.preventDefault();break;case 40:this.changeFocus(1);B.preventDefault();break;case 38:this.changeFocus(-1);B.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.p.onYtEmojiSelect=function(B){var R=this,V,e,X,Y,t,b,J,G;return _.W(function(y){if(y.nextAddress==1)return e=(V=R.data)==null?void 0:V.emoji,t=((X=e)==null?void 0:X.stickyPrefId)||((Y=e)==null?void 0:Y.emojiId),J=(b=B.detail)==null?void 0:b.emojiId,t&&J&&t!==J?_.U(y,(G=R.emojiManager)==null?void 0:veT(G,e,J),2):y.return();_.oF(R.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[e,J]);_.b3(y)})};
_.p.changeFocus=function(B){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+B+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(B=_.w(this.hostElement).querySelector("#variants"))&&B.children[this.focusedIndex].focus())};
_.mh.Object.defineProperties(gY.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
gY.prototype.onYtEmojiSelect=gY.prototype.onYtEmojiSelect;gY.prototype.onKeyDown=gY.prototype.onKeyDown;gY.prototype.onEmojiVariantsChanged=gY.prototype.onEmojiVariantsChanged;gY.prototype.onVerticalOffsetOrPositionTargetChanged=gY.prototype.onVerticalOffsetOrPositionTargetChanged;_.r([_.v(_.ZV),_.Z("design:type",Object)],gY.prototype,"ironOverlayBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],gY.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",_.ao)],gY.prototype,"emojiManager",void 0);
_.r([_.E(),_.Z("design:type",Object)],gY.prototype,"emojiVariants",void 0);_.r([_.E(),_.Z("design:type",Object)],gY.prototype,"focusedIndex",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gY.prototype,"positionTarget",null);_.r([_.E({reflectToAttribute:!0}),_.K("verticalOffset","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gY.prototype,"isPositioned",null);_.r([_.E(),_.Z("design:type",Object)],gY.prototype,"verticalOffset",void 0);
_.r([_.E(),_.Z("design:type",Object)],gY.prototype,"verticalAlign",void 0);_.r([_.E(),_.Z("design:type",Object)],gY.prototype,"dynamicAlign",void 0);_.r([_.XX("verticalOffset","positionTarget"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gY.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.r([_.XX("emojiVariants"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gY.prototype,"onEmojiVariantsChanged",null);
_.r([_.R_("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],gY.prototype,"onKeyDown",null);_.r([_.R_("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype",Promise)],gY.prototype,"onYtEmojiSelect",null);gY=_.r([_.Wc()],gY);var weJ=[gY.prototype];var Tdv;var xcG;var LY5=/medium-light|medium-dark|light|medium|dark/,v95=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,KY_=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Zb=function(){var B=_.c.apply(this,arguments)||this;B.userSelection={left:null,right:null};B.scrollAction="lock";B.isEmojiDraftInProgress=!1;return B};
_.l(Zb,_.c);_.p=Zb.prototype;_.p.onClick=function(B){B=_.ii(B);B instanceof HTMLImageElement&&this.selectOrUpdateEmoji(B)};
_.p.selectOrUpdateEmoji=function(B){var R=B.getAttribute("selection");R&&(R==="default"?_.OI(this.hostElement,"yt-emoji-select",_.dY(this.emojiManager,B.id)):R==="left"?this.userSelection=Object.assign({},this.userSelection,{left:B.src}):R==="right"?this.userSelection=Object.assign({},this.userSelection,{right:B.src}):R==="user"&&this.userSelection.left&&this.userSelection.right&&_.OI(this.hostElement,"yt-emoji-select",_.dY(this.emojiManager,B.id)))};
_.p.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.p.onMultiSelectorThumbnailRowChanged=function(){var B,R,V;((B=this.data)==null?0:(R=B.emoji)==null?0:(V=R.multiSelectorThumbnailRow)==null?0:V.length)&&this.openSelector()};
_.p.getThumbnailFromEmojiRow=function(B){var R,V;return(B==null?void 0:(R=B.thumbnails)==null?void 0:(V=R[0])==null?void 0:V.url)||""};
_.p.getEmojiAltTextForPartialSelector=function(B){var R;return((R=this.getThumbnailFromEmojiRow(B).match(v95))==null?void 0:R[0])||""};
_.p.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.p.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.p.getRowSelection=function(B){return["left","right"][B]};
_.p.getIdFromComposedEmoji=function(B){return(B==null?void 0:B.emojiId)||""};
_.p.getEmojiFromPartialSelections=function(B,R){if(!B&&!R)return null;var V,e,X=(V=this.data)==null?void 0:(e=V.emoji)==null?void 0:e.variantIds;if(!X||!X.length)return null;var Y;B=(Y=B.match(LY5))==null?void 0:Y[0];var t;R=(t=R.match(LY5))==null?void 0:t[0];if(!B||!R)return null;var b=KY_.get(B);t=KY_.get(R);if(b===t){t=Array.from(KY_.values()).filter(function(G){return G!==b}).join("|");
var J=new RegExp("^((?!("+t+")).)*"+b+"$")}else J=new RegExp(b+".*"+t);return(X=X.find(function(G){return J.test(G)}))&&_.dY(this.emojiManager,X)||null};
_.p.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var B,R=this.ytEmojiSelectorBehavior.emojiUrl(((B=this.data.emoji)==null?void 0:B.emojiId)||"");_.w(this.hostElement).querySelector('[selection="user"]').src.includes(R)||(this.isEmojiDraftInProgress=!0)}};
_.p.onDomChange=function(){dcR(this.ytEmojiSelectorBehavior)};
_.p.getFocusableElements=function(){return _.w(this.hostElement).querySelectorAll("img").filter(function(B){return B.getAttribute("role")==="option"})};
_.p.changeFocus=function(B){var R=this.getFocusableElements();R!=null&&R.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+B+R.length)%R.length,this.ytEmojiSelectorBehavior.focusedIndex<R.length&&(B=R[this.ytEmojiSelectorBehavior.focusedIndex])&&B.focus())};
_.p.onKeyboardEnter=function(){var B=this.getFocusableElements();B!=null&&B.length&&(B=B[this.ytEmojiSelectorBehavior.focusedIndex])&&B instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(B),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.mh.Object.defineProperties(Zb.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var B=this,R,V,e;return this.emojiManager&&((R=this.data)==null?0:(V=R.emoji)==null?0:(e=V.variantIds)==null?0:e.length)?this.data.emoji.variantIds.map(function(X){return!!X&&_.dY(B.emojiManager,X)}).filter(function(X){return!!X}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var B,R=(B=this.userSelection)==null?void 0:B.left,V;B=(V=this.userSelection)==null?void 0:V.right;return R&&B?this.getEmojiFromPartialSelections(R,B):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.composedEmojiSelection)==null?0:B.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var R;B=(R=this.userSelection)==null?void 0:R.left;var V;R=(V=this.userSelection)==null?void 0:V.right;if(!B&&!R){var e;return this.ytEmojiSelectorBehavior.emojiUrl(((e=this.data.emoji)==null?void 0:e.emojiId)||"")}return B&&!R?B:!B&&R?R:""}}});
Zb.prototype.onMultiSelectorThumbnailRowChanged=Zb.prototype.onMultiSelectorThumbnailRowChanged;Zb.prototype.onClick=Zb.prototype.onClick;_.r([_.v(_.ZV),_.Z("design:type",Object)],Zb.prototype,"ironOverlayBehavior",void 0);_.r([_.v(weJ),_.Z("design:type",Object)],Zb.prototype,"ytEmojiSelectorBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Zb.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",_.ao)],Zb.prototype,"emojiManager",void 0);
_.r([_.E(),_.Z("design:type",Object)],Zb.prototype,"userSelection",void 0);_.r([_.E(),_.Z("design:type",Object)],Zb.prototype,"scrollAction",void 0);_.r([_.E(),_.Z("design:type",Object)],Zb.prototype,"isEmojiDraftInProgress",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zb.prototype,"emojiVariants",null);_.r([_.K("data","userSelection"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zb.prototype,"composedEmojiSelection",null);
_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[MouseEvent]),_.Z("design:returntype")],Zb.prototype,"onClick",null);_.r([_.XX("data.emoji.multiSelectorThumbnailRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zb.prototype,"onMultiSelectorThumbnailRowChanged",null);_.r([_.K("data","userSelection","composedEmojiSelection"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Zb.prototype,"draftEmojiUrl",null);
Zb=_.r([_.fJ({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Zb);
_.F(Zb,"yt-emoji-multi-person-selector",function(){if(xcG===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Tdv===void 0&&(Tdv=document.createElement("template"));var e=Tdv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);xcG=B}B=xcG;return B},{mode:2});var Ilv;var E9G;var mz=function(){var B=_.c.apply(this,arguments)||this;B.tooltip_=null;return B};
_.l(mz,_.c);_.p=mz.prototype;_.p.dataChanged_=function(){var B;if((B=this.data)==null?0:B.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.w(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.OX)(this.tooltip_).textContent=this.data.tooltip};
_.p.computeTargetId=function(){var B;return((B=this.data)==null?void 0:B.targetId)||""};
_.p.computeId_=function(B){return B};
_.p.computeIcon_=function(B){return _.RT(B)};
_.p.onTap_=function(){this.active=!this.active;_.OI(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.p.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("active-changed",this.active))};
_.mh.Object.defineProperties(mz.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var B,R;if((B=this.data)==null?0:(R=B.icon)==null?0:R.iconType)return this.data.icon.iconType==="SUPER_STICKER";var V,e;return((V=this.data)==null?void 0:(e=V.icon)==null?void 0:e.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
mz.prototype.activeChangedForBinding=mz.prototype.activeChangedForBinding;mz.prototype.dataChanged_=mz.prototype.dataChanged_;_.r([_.v(_.wM.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],mz.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],mz.prototype,"data",void 0);_.r([_.E({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Z("design:type",String)],mz.prototype,"id",void 0);
_.r([_.E({computed:"computeTargetId(data.targetId)"}),_.Z("design:type",String)],mz.prototype,"targetId",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],mz.prototype,"active",void 0);_.r([_.E({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Z("design:type",String)],mz.prototype,"icon",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mz.prototype,"dataChanged_",null);
_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],mz.prototype,"iconFilled",null);_.r([_.XX("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mz.prototype,"activeChangedForBinding",null);mz=_.r([_.fJ({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],mz);
_.F(mz,"yt-emoji-picker-category-button-renderer",function(){if(E9G===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Ilv===void 0&&(Ilv=document.createElement("template"));var e=Ilv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);E9G=B}B=E9G;return B},{mode:2});var QRl;var q1J;var $E=function(){var B=_.c.apply(this,arguments)||this;B.ariaLabel=null;B.ariaActivedescendant=null;B.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};B.JSC$11937_ignoreNextFocus_=!1;B.longPressTimeoutId=-1;return B};
_.l($E,_.c);_.p=$E.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 B=_.WK(),R=0;R<this.emoji.length;R++){var V={veType:88013,elementIndex:R},e=this.emoji[R];e.isCustomEmoji&&(e=document.querySelector(("#"+e.emojiId).replace("/","\\/")))&&(V=_.tJ(B,V))&&(e.visualElement=V)}};
_.p.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.p.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.p.emojiSkinToneChanged_=function(B){this.skinTone=B};
_.p.dataChanged=function(){this.data&&this.data.emojiData&&wab(this.emojiManager,this.data.emojiData)};
_.p.emojiUrl=function(B){B=this.getEmoji(B);if(!B)return"";var R;B=(R=B.image)==null?void 0:R.thumbnails;return _.$T(B,24)||""};
_.p.emojiAlt=function(B){var R=this.get("image.accessibility.accessibilityData.label",B);return R?R:B.isCustomEmoji?B.shortcuts[0]:B.emojiId};
_.p.emojiAriaLabel=function(B){return B.shortcuts?B.shortcuts[0]:""};
_.p.emojiAriaSelected=function(B,R,V){return B&&V==R?"true":"false"};
_.p.getEmoji=function(B){if(this.emojiManager)return this.shouldUseStickyPreferences?xg2(this.emojiManager,B):wY(this.emojiManager,B)};
_.p.computeId_=function(B){return B.categoryId||""};
_.p.computeEmoji=function(B){var R=this;return this.emojiManager?B.emojiIds?B.emojiIds.map(function(V){return V?_.dY(R.emojiManager,V):null}).filter(rju):B.emojiData?B.emojiData.map(function(V){var e=!!V.emojiId&&_.dY(R.emojiManager,V.emojiId);
return e?Object.assign({},e,V):null}).filter(rju):[]:[]};
_.p.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.p.computeAriaLabel_=function(B){return _.FF(B)};
_.p.computeAriaActivedescendant_=function(B,R){return B&&B[R]?B[R].emojiId||"":""};
_.p.handleLongPressEmojiWithVariants=function(B,R){this.changeFocusToEmoji(B.emojiId,!1);this.openVariantSelector(B,R)};
_.p.onMouseDown=function(B){var R=this;this.hostElement!==document.activeElement&&(this.JSC$11937_ignoreNextFocus_=!0);if(B.button===0){var V=_.ii(B);if(V instanceof HTMLImageElement){var e=_.w(this.hostElement).querySelector("#repeat").itemForElement(V);this.emojiContainsVariants(e)&&(this.longPressTimeoutId=setTimeout(function(){R.handleLongPressEmojiWithVariants(e,V)},500))}}};
_.p.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.p.onFocus=function(){this.JSC$11937_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11937_ignoreNextFocus_=!1};
_.p.onBlur_=function(){this.showFocus=!1};
_.p.emojiContainsVariants=function(B){return!!(B&&B.variantIds&&B.variantIds.length)};
_.p.onClick=function(B){clearTimeout(this.longPressTimeoutId);B=_.ii(B);if(B instanceof HTMLImageElement){var R=B.id;this.changeFocusToEmoji(R,!1);var V=this.getEmoji(R),e;if(e=this.shouldUseStickyPreferences&&this.emojiContainsVariants(V)){var X;e=!((X=this.emojiManager.emojiMap[R])!=null&&X.stickyPrefId)}e?(X=_.w(this.hostElement).querySelector("#repeat").itemForElement(B),this.openVariantSelector(X,B)):_.OI(this.hostElement,"yt-emoji-select",V)}};
_.p.isActiveEmojiWithVariants=function(B,R){return B&&R?R.stickyPrefId?B===R.stickyPrefId:B===R.emojiId:!1};
_.p.onCloseEmojiVariantSelector=function(B){this.activeEmojiWithVariantsId===B&&(this.activeEmojiWithVariantsId="")};
_.p.onMouseOver_=function(B){B=_.ii(B);B instanceof HTMLImageElement&&_.OI(this.hostElement,"yt-emoji-hover",_.dY(this.emojiManager,B.id))};
_.p.changeFocus_=function(B,R){this.focusedIndex=(this.focusedIndex+B+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(B=this.emoji[this.focusedIndex],R&&(this.showFocus=!0,_.w(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.OI(this.hostElement,"yt-emoji-hover",B)))};
_.p.changeFocusToEmoji=function(B,R){if(B){var V=this.emoji.findIndex(function(e){return e.emojiId===B});
V!==-1&&this.changeFocus_(V-this.focusedIndex,R)}};
_.p.onKeyDown_=function(B){switch(B.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var R=this.emoji[this.focusedIndex];if(R&&R.emojiId){if(this.emojiContainsVariants(R)){var V=_.w(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(R,V)}else _.OI(this.hostElement,"yt-emoji-select",wY(this.emojiManager,R.emojiId)),this.hostElement.focus();B.preventDefault()}}break;case 40:this.changeFocus_(1,!0);B.preventDefault();break;case 38:this.changeFocus_(-1,!0),B.preventDefault()}};
_.p.onEmojiStickyPreferenceChanged=function(B,R){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&B.emojiId&&B.variantIds&&B.variantIds.includes(R)&&this.activeEmojiWithVariantsId!==R&&this.setStickyEmojiPreference(B.emojiId,R)};
_.p.openVariantSelector=function(B,R){this.activeEmojiWithVariantsId=B.stickyPrefId||B.emojiId||"";_.OI(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:B,target:R})};
_.p.setStickyEmojiPreference=function(B,R){if(this.data){var V=this.emoji.findIndex(function(X){return X.emojiId===B});
if(V!==-1){var e=this.emoji[V];e.stickyPrefId=R;this.set("emoji."+V,Object.assign({},e));this.activeEmojiWithVariantsId=R}}};
$E.prototype.onKeyDown_=$E.prototype.onKeyDown_;$E.prototype.onMouseOver_=$E.prototype.onMouseOver_;$E.prototype.onClick=$E.prototype.onClick;$E.prototype.onBlur_=$E.prototype.onBlur_;$E.prototype.onFocus=$E.prototype.onFocus;$E.prototype.onMouseUp=$E.prototype.onMouseUp;$E.prototype.onMouseDown=$E.prototype.onMouseDown;$E.prototype.dataChanged=$E.prototype.dataChanged;$E.prototype.disableIncrementalLoadingChanged_=$E.prototype.disableIncrementalLoadingChanged_;$E.prototype.emojiManagerChanged_=$E.prototype.emojiManagerChanged_;
$E.prototype.emojiChanged_=$E.prototype.emojiChanged_;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],$E.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$E.prototype,"data",void 0);_.r([_.E({computed:"computeId_(data)"}),_.Z("design:type",String)],$E.prototype,"id",void 0);_.r([_.E({computed:"computeEmoji(data)"}),_.Z("design:type",Array)],$E.prototype,"emoji",void 0);_.r([_.E(),_.Z("design:type",Number)],$E.prototype,"skinTone",void 0);
_.r([_.E(),_.Z("design:type",_.ao)],$E.prototype,"emojiManager",void 0);_.r([_.E(),_.Z("design:type",Boolean)],$E.prototype,"disableIncrementalLoading",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],$E.prototype,"focusedIndex",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],$E.prototype,"showFocus",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Z("design:type",Object)],$E.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Z("design:type",Object)],$E.prototype,"ariaActivedescendant",void 0);_.r([_.E({value:60}),_.Z("design:type",Number)],$E.prototype,"domRepeatTargetFramerate",void 0);_.r([_.E({value:1}),_.Z("design:type",Number)],$E.prototype,"domRepeatInitialCount",void 0);_.r([_.E({value:""}),_.Z("design:type",String)],$E.prototype,"activeEmojiWithVariantsId",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],$E.prototype,"shouldUseStickyPreferences",void 0);_.r([_.XX("emoji"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$E.prototype,"emojiChanged_",null);_.r([_.XX("emojiManager"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$E.prototype,"emojiManagerChanged_",null);
_.r([_.XX("disableIncrementalLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$E.prototype,"disableIncrementalLoadingChanged_",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$E.prototype,"dataChanged",null);_.r([_.R_("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],$E.prototype,"onMouseDown",null);
_.r([_.R_("mouseup"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$E.prototype,"onMouseUp",null);_.r([_.R_("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$E.prototype,"onFocus",null);_.r([_.R_("blur"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$E.prototype,"onBlur_",null);
_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],$E.prototype,"onClick",null);_.r([_.R_("mouseover"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],$E.prototype,"onMouseOver_",null);_.r([_.R_("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],$E.prototype,"onKeyDown_",null);
$E=_.r([_.fJ({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],$E);
_.F($E,"yt-emoji-picker-category-renderer",function(){if(q1J===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;QRl===void 0&&(QRl=document.createElement("template"));var e=QRl;V.call(R,e.content.cloneNode(!0),B.content.firstChild);q1J=B}B=q1J;return B},{mode:2});var cNG;var AN4;var i2a;var sRJ;var Cj=function(){var B=_.c.apply(this,arguments)||this;B.ariaLabel=null;B.ariaActivedescendant=null;B.getFormattedStringRawText=_.FF;B.JSC$11943_ignoreNextFocus_=!1;return B};
_.l(Cj,_.c);_.p=Cj.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(B){var R,V;B=(R=wY(this.emojiManager,B,!0))==null?void 0:(V=R.image)==null?void 0:V.thumbnails;return _.$T(B,24)||""};
_.p.emojiAlt=function(B){var R=this.get("image.accessibility.accessibilityData.label",B);return R?R:B.isCustomEmoji?B.shortcuts[0]:B.emojiId};
_.p.emojiId=function(B){return"emoji"+B};
_.p.computeId_=function(B){return B.categoryId||""};
_.p.computeAriaActivedescendant_=function(B){return this.emoji&&B<this.emoji.length?this.emojiId(B):""};
_.p.emojiChanged_=function(){this.changeFocus_(0,!1);for(var B=_.WK(),R=0;R<this.emoji.length;R++){var V={veType:88013,elementIndex:R},e=this.emoji[R];e.isCustomEmoji&&(e=document.querySelector(("#"+e.emojiId).replace("/","\\/")))&&(V=_.tJ(B,V))&&(e.visualElement=V)}};
_.p.computeEmoji_=function(B){var R=this;return this.emojiManager?B.emojiIds.map(function(V){return _.dY(R.emojiManager,V,!0)}).filter(gFK):[]};
_.p.titleOffsetChanged_=function(){var B=this.hostElement.getBoundingClientRect(),R=_.w(this.hostElement).querySelector("#title").getBoundingClientRect();B=Math.max(0,Math.min(this.titleOffset,B.height-R.height));_.w(this.hostElement).querySelector("#title").style.top=B+"px"};
_.p.onEmojiMouseOver_=function(B){_.OI(this.hostElement,"yt-emoji-hover",B.model.item)};
_.p.onEmojiTap_=function(B){this.data.command&&(B=O2Z(_.Oz().resolve(_.uj(AK)),this.data.command,B),_.OI(this.hostElement,"yt-navigate",B))};
_.p.emojiAriaLabel=function(B){return B.shortcuts[0]};
_.p.emojiAriaSelected=function(B,R,V){return B&&V==R?"true":"false"};
_.p.changeFocus_=function(B,R){var V=this.emoji.length;this.focusedIndex=(this.focusedIndex+B+V)%V;B=this.emoji[this.focusedIndex];if(R){var e;(e=_.w(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||e.scrollIntoView(!1);_.OI(this.hostElement,"yt-emoji-hover",B)}};
_.p.onMouseDown_=function(){this.JSC$11943_ignoreNextFocus_=!0};
_.p.onFocus_=function(){this.JSC$11943_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11943_ignoreNextFocus_=!1};
_.p.onBlur_=function(){this.showFocus=!1};
_.p.onKeyDown_=function(B){switch(B.keyCode){case 13:this.onEmojiTap_(B);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);B.preventDefault();break;case 38:this.changeFocus_(-1,!0),B.preventDefault()}};
Cj.prototype.onKeyDown_=Cj.prototype.onKeyDown_;Cj.prototype.onBlur_=Cj.prototype.onBlur_;Cj.prototype.onFocus_=Cj.prototype.onFocus_;Cj.prototype.onMouseDown_=Cj.prototype.onMouseDown_;Cj.prototype.onEmojiTap_=Cj.prototype.onEmojiTap_;Cj.prototype.titleOffsetChanged_=Cj.prototype.titleOffsetChanged_;Cj.prototype.emojiChanged_=Cj.prototype.emojiChanged_;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Cj.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Cj.prototype,"data",void 0);_.r([_.E({computed:"computeId_(data)"}),_.Z("design:type",String)],Cj.prototype,"id",void 0);_.r([_.E({computed:"computeEmoji_(data)"}),_.Z("design:type",Array)],Cj.prototype,"emoji",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],Cj.prototype,"titleOffset",void 0);_.r([_.E({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Z("design:type",Object)],Cj.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Z("design:type",Object)],Cj.prototype,"ariaActivedescendant",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Cj.prototype,"showFocus",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],Cj.prototype,"focusedIndex",void 0);_.r([_.E(),_.Z("design:type",_.ao)],Cj.prototype,"emojiManager",void 0);
_.r([_.XX("emoji"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cj.prototype,"emojiChanged_",null);_.r([_.XX("titleOffset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cj.prototype,"titleOffsetChanged_",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Cj.prototype,"onEmojiTap_",null);
_.r([_.R_("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cj.prototype,"onMouseDown_",null);_.r([_.R_("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cj.prototype,"onFocus_",null);_.r([_.R_("blur"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cj.prototype,"onBlur_",null);
_.r([_.R_("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Cj.prototype,"onKeyDown_",null);Cj=_.r([_.fJ({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Cj);
_.F(Cj,"yt-emoji-picker-upsell-category-renderer",function(){if(sRJ===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;i2a===void 0&&(i2a=document.createElement("template"));var e=i2a;V.call(R,e.content.cloneNode(!0),B.content.firstChild);sRJ=B}B=sRJ;return B},{mode:2});var FY4;var rN_;var PP=function(){var B=_.c.apply(this,arguments)||this;B.scrollAction="lock";B.verticalAlign="top";return B};
_.l(PP,_.c);_.p=PP.prototype;_.p.onClick=function(B){B=_.ii(B);B instanceof HTMLImageElement&&_.OI(this.hostElement,"yt-emoji-select",_.dY(this.emojiManager,B.id))};
_.p.openSelector=function(){this.ironOverlayBehavior.open()};
_.p.onDomChange=function(){dcR(this.ytEmojiSelectorBehavior)};
_.p.computeIsFamilySelector=function(B){var R;return(B==null?void 0:(R=B.emoji)==null?void 0:R.emojiId)==="\ud83d\udc6a"};
_.p.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var B=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];B&&B.emojiId&&(_.OI(this.hostElement,"yt-emoji-select",_.dY(this.emojiManager,B.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.mh.Object.defineProperties(PP.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var B=this,R,V,e;return this.emojiManager&&((R=this.data)==null?0:(V=R.emoji)==null?0:(e=V.variantIds)==null?0:e.length)?this.data.emoji.variantIds.map(function(X){return!!X&&_.dY(B.emojiManager,X)}).filter(function(X){return!!X}):[]}}});
PP.prototype.onClick=PP.prototype.onClick;_.r([_.v(_.ZV),_.Z("design:type",Object)],PP.prototype,"ironOverlayBehavior",void 0);_.r([_.v(weJ),_.Z("design:type",Object)],PP.prototype,"ytEmojiSelectorBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],PP.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",_.ao)],PP.prototype,"emojiManager",void 0);_.r([_.E(),_.Z("design:type",Object)],PP.prototype,"scrollAction",void 0);_.r([_.E(),_.Z("design:type",Object)],PP.prototype,"verticalAlign",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Z("design:type",Boolean)],PP.prototype,"isFamilySelector",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PP.prototype,"emojiVariants",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[MouseEvent]),_.Z("design:returntype")],PP.prototype,"onClick",null);PP=_.r([_.fJ({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],PP);
_.F(PP,"yt-emoji-variant-selector",function(){if(rN_===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;FY4===void 0&&(FY4=document.createElement("template"));var e=FY4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);rN_=B}B=rN_;return B},{mode:2});var g9h=/:/g,Z2o=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],nj=function(){var B=_.c.apply(this,arguments)||this;B.emojiVariantSelector=null;B.emojiMultiPersonSelector=null;B.identity=_.sS;B.lastAnimationTime_=0;B.animationStart_=null;B.animationEnd_=null;return B};
_.l(nj,_.c);_.p=nj.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=_.Tx)};
_.p.attached=function(){_.ho&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&TQl(this.emojiManager)};
_.p.dataChanged=function(){var B;if((B=this.data)==null?0:B.categories){B=this.emojiManager;var R=this.getCustomEmojiIds();B.pickerCustomEmojiIds=[].concat(_.MI(fyJ),_.MI(R))}};
_.p.getCustomEmojiIds=function(){var B,R=(B=this.data.categories)==null?void 0:B.find(function(Y){var t;return((t=Y.emojiPickerCategoryRenderer)==null?void 0:t.categoryId)&&Z2o.includes(Y.emojiPickerCategoryRenderer.categoryId)}),V;
B=(V=this.data.categories)==null?void 0:V.find(function(Y){return Y.emojiPickerUpsellCategoryRenderer});
var e,X;return[R==null?void 0:(e=R.emojiPickerCategoryRenderer)==null?void 0:e.emojiIds,B==null?void 0:(X=B.emojiPickerUpsellCategoryRenderer)==null?void 0:X.emojiIds].flat().filter(function(Y){return!!Y})};
_.p.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.p.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.p.updateCategoriesAndPlaceholderInternal=function(B,R){var V=this;B&&R&&(this.categories=B.categories||[],this.categoryButtons=B.categoryButtons||[],this.resetPlaceholder(),this.search="",_.xp(function(){V.updateButtons_()}))};
_.p.computeId_=function(B){return B.id||""};
_.p.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(B){return B.emojiPickerCategoryRenderer&&B.emojiPickerCategoryRenderer.emojiData}):!1};
_.p.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.p.onShowEmojiVariantSelector=function(B){var R=B.detail.emojiData;R.variantIds&&R.variantIds.length&&(R.multiSelectorThumbnailRow&&R.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:R,target:B.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:R,target:B.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.p.onIronOverlayClosed=function(B){var R=xg2(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");R&&B.composedPath&&(B.composedPath().includes(_.w(this.hostElement).querySelector("#emoji-variant-selector"))||B.composedPath().includes(_.w(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.oF(this.hostElement,"yt-close-emoji-variant-selector",[R.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.p.onEmojiVariantSelectorMouseup=function(B){var R=B.target.firstChild;this.variantSelectorOpened&&R&&_.xp(function(){R.noCancelOnOutsideClick=!1},100)};
_.p.onEmojiVariantSelectorMousedown=function(B){B=B.target.firstChild;this.variantSelectorOpened&&B&&(B.noCancelOnOutsideClick=!1)};
_.p.onSelectCategory_=function(B){var R=this.search!="";this.search="";for(var V=_.w(this.hostElement).querySelector("#categories").children,e=0;e<V.length;e++){var X=V[e];if(X.id==B.detail.categoryId){R?(_.w(this.hostElement).querySelector("#categories").scrollTop=X.offsetTop,this.updateButtons_()):(this.animationStart_=_.w(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=X.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.p.onEmojiHover_=function(B){this.placeholder=B.detail.shortcuts?B.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(B){B=B.replace(g9h,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();B=B.split(" ");for(var R=[],V=this.emojiManager.emojis,e=0;e<V.length;e++){var X=V[e];if(X.searchTerms)for(var Y=0;Y<X.searchTerms.length;Y++){for(var t=X.searchTerms[Y].toLocaleLowerCase(),b=!1,J=0;J<B.length;J++)if(t.indexOf(B[J])!=-1){b=!0;break}if(b&&(!X.isCustomEmoji||!X.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(X.emojiId))){R.push(X.emojiId);
break}}}return{categoryId:-1,emojiIds:R}};
_.p.computeSearchEmptyMessage_=function(B,R){return B&&R&&R.emojiIds&&R.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.p.computeSearching_=function(B){return this.emojiManager&&B.replace(g9h,"").length>1};
_.p.computeSkinToneHidden=function(){var B;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((B=this.data)==null||!B.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(B){B=Number(B.target.getAttribute("tone"));this.set("emojiManager.skinTone",B);_.oF(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[B]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.p.skinToneChanged_=function(){_.w(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var B=_.w(this.hostElement).querySelector("#dropdown-content").children,R=0;R<B.length;R++)R===this.skinTone?B[R].setAttribute("selected",""):B[R].removeAttribute("selected")};
_.p.animateScroll_=function(B){this.lastAnimationTime_||(this.lastAnimationTime_=B);B-=this.lastAnimationTime_;B<200?(_.w(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*B/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.w(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 B=null;if(!this.search)for(var R=_.w(this.hostElement).querySelector("#categories").scrollTop,V=_.w(this.hostElement).querySelector("#categories").children,e=0;e<V.length;e++){var X=V[e];X.offsetTop<=R&&(B=X.id)}R=_.w(this.hostElement).querySelector("#category-buttons").children;for(V=0;V<R.length;V++)e=R[V],e.active=e.id===B};
nj.prototype.searchChanged_=nj.prototype.searchChanged_;nj.prototype.skinToneChanged_=nj.prototype.skinToneChanged_;nj.prototype.onEmojiHover_=nj.prototype.onEmojiHover_;nj.prototype.onSelectCategory_=nj.prototype.onSelectCategory_;nj.prototype.onShowEmojiVariantSelector=nj.prototype.onShowEmojiVariantSelector;nj.prototype.updateCategoriesAndPlaceholder_=nj.prototype.updateCategoriesAndPlaceholder_;nj.prototype.dataChanged=nj.prototype.dataChanged;
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],nj.prototype,"data",void 0);_.r([_.E({value:function(){return[]}}),
_.Z("design:type",Array)],nj.prototype,"categories",void 0);_.r([_.E({value:function(){return[]}}),
_.Z("design:type",Array)],nj.prototype,"categoryButtons",void 0);_.r([_.E({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],nj.prototype,"disableScroll",void 0);_.r([_.E({computed:"computeId_(data)",reflectToAttribute:!0}),_.Z("design:type",String)],nj.prototype,"id",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],nj.prototype,"selected",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],nj.prototype,"disableIncrementalLoading",void 0);_.r([_.E(),_.Z("design:type",String)],nj.prototype,"placeholder",void 0);_.r([_.E({value:""}),_.Z("design:type",String)],nj.prototype,"search",void 0);_.r([_.E({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],nj.prototype,"searching",void 0);_.r([_.E({computed:"computeSearchCategory_(search)"}),_.Z("design:type",Object)],nj.prototype,"searchCategory",void 0);
_.r([_.E({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Z("design:type",Object)],nj.prototype,"searchEmptyMessage",void 0);_.r([_.E({computed:"identity(emojiManager.skinTone)"}),_.Z("design:type",Number)],nj.prototype,"skinTone",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],nj.prototype,"skinToneOpened",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],nj.prototype,"variantSelectorOpened",void 0);
_.r([_.E({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Z("design:type",Boolean)],nj.prototype,"skinToneHidden",void 0);_.r([_.E(),_.Z("design:type",_.ao)],nj.prototype,"emojiManager",void 0);_.r([_.E(),_.Z("design:type",Object)],nj.prototype,"emojiVariantSelector",void 0);_.r([_.E(),_.Z("design:type",Object)],nj.prototype,"emojiMultiPersonSelector",void 0);
_.r([_.E({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Z("design:type",Boolean)],nj.prototype,"shouldUseStickyPreferences",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nj.prototype,"dataChanged",null);_.r([_.XX("data","selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nj.prototype,"updateCategoriesAndPlaceholder_",null);
_.r([_.R_("yt-show-emoji-variant-selector"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],nj.prototype,"onShowEmojiVariantSelector",null);_.r([_.R_("yt-emoji-picker-select-category"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],nj.prototype,"onSelectCategory_",null);_.r([_.R_("yt-emoji-hover"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],nj.prototype,"onEmojiHover_",null);
_.r([_.XX("skinTone"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nj.prototype,"skinToneChanged_",null);_.r([_.XX("search"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nj.prototype,"searchChanged_",null);nj=_.r([_.fJ({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],nj);
_.F(nj,"yt-emoji-picker-renderer",function(){if(AN4===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;cNG===void 0&&(cNG=document.createElement("template"));var e=cNG;V.call(R,e.content.cloneNode(!0),B.content.firstChild);AN4=B}B=AN4;return B},{mode:2});var u$=function(){var B=_.c.apply(this,arguments)||this;B.emojiManager=_.Tx;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.selectedIndex=1;B.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return B};
_.l(u$,_.c);_.p=u$.prototype;_.p.handleEmojiCustomizationVisible=function(B){this.emojiPickerRenderer.selected=B;this.selectedIndex=1;B?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.p.emojiCustomizationSetChanged=function(){var B;(B=this.data)!=null&&B.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Jh(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.p.updateSaveButtonState=function(B){var R;(R=this.data)!=null&&R.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.SX("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:B}))};
_.p.emojiUrl=function(B){B=_.dY(this.emojiManager,B);if(!B)return"";var R;B=(R=B.image)==null?void 0:R.thumbnails;return _.$T(B,24)||""};
_.p.emojiAlt=function(B){var R=_.dY(this.emojiManager,B);if(!R)return B;var V,e,X,Y=(R==null?void 0:(V=R.image)==null?void 0:(e=V.accessibility)==null?void 0:(X=e.accessibilityData)==null?void 0:X.label)||"";return Y?Y:R.isCustomEmoji?R.shortcuts[0]:R.emojiId||B};
_.p.emojiAriaLabel=function(B){var R,V;return((R=_.dY(this.emojiManager,B))==null?void 0:(V=R.shortcuts)==null?void 0:V[0])||B};
_.p.onEmojiClick=function(B){B.model.index!==0&&(this.selectedIndex=B.model.index)};
_.p.onEmojiSelect=function(B){B=B.detail;var R,V;((R=this.data)==null?0:R.emojiCustomizationSetEntityKey)&&((V=this.emojiCustomizationSet)==null?0:V.emojiId)&&B.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,B.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.SX("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,B.emojiId,this.selectedIndex)}))};
_.p.canEditEmoji=function(B,R,V){B=B.indexOf(R);return B===V||B===0||V===0?!1:!0};
_.p.getUpdatedEmojiIdList=function(B,R,V){var e=B.indexOf(R);B=[].concat(_.MI(B));e>=0&&(B[e]=B[V]);B[V]=R;return B};
_.mh.Object.defineProperties(u$,{template:{configurable:!0,enumerable:!0,get:function(){if(b2h===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;WYa===void 0&&(WYa=document.createElement("template"));var e=WYa;V.call(R,e.content.cloneNode(!0),B.content.firstChild);b2h=B}B=b2h;return B}}});
u$.prototype.onEmojiSelect=u$.prototype.onEmojiSelect;_.r([_.v(_.dM),_.Z("design:type",Object)],u$.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],u$.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Yp("yt-emoji-picker-renderer"),_.Z("design:type",Object)],u$.prototype,"emojiPickerRenderer",void 0);
_.r([_.E({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(B,R){return _.p7(B.entities,"emojiCustomizationSetEntity",R)},
observer:"emojiCustomizationSetChanged"}),_.Z("design:type",Object)],u$.prototype,"emojiCustomizationSet",void 0);_.r([_.E(),_.Z("design:type",Object)],u$.prototype,"originalEmojiSet",void 0);_.r([_.E(),_.Z("design:type",_.ao)],u$.prototype,"emojiManager",void 0);_.r([_.E(),_.Z("design:type",Object)],u$.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],u$.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],u$.prototype,"selectedIndex",void 0);
_.r([_.R_("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],u$.prototype,"onEmojiSelect",null);u$=_.r([_.fJ({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],u$);var mc4;var $c_;var CwJ;var Pw_;var OH=function(){var B=_.c.apply(this,arguments)||this;B.authorBadges=[];return B};
_.l(OH,_.c);_.p=OH.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 B=lsZ(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",B)};
_.p.updateMessage=function(){var B=this.data.message,R=_.w(_.w(this.hostElement).querySelector("#message"));R.textContent="";B&&R.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(B))};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.p.onShowOriginalClick=function(B){B.preventDefault();this.showOriginal=!0};
_.p.computeShowBar=function(B,R,V){return B&&R||V};
_.p.computeAuthorBadges=function(B){return B.authorBadges||[]};
_.p.computeAuthorIsOwner=function(B){return!!zDd(B.authorBadges,"owner")};
_.p.computeAuthorNameColor=function(B){var R;if(_.k("live_chat_author_name_color_usernames")&&(B==null?0:(R=B.authorName)==null?0:R.simpleText))return _.LuK(_.v4o(B.authorName.simpleText));if(_.k("live_chat_seed_color_usernames")&&(B==null?0:B.authorSeedColorArgb))return _.LuK(_.oT(B.authorSeedColorArgb));if(_.k("live_chat_colored_usernames"))return"#cc0000";var V;return _.k("live_chat_simple_color_usernames")&&(B==null?0:(V=B.authorName)==null?0:V.simpleText)&&(B==null?0:B.authorUsernameColorLight)&&
(B==null?0:B.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.oT(B.authorUsernameColorDark):_.oT(B.authorUsernameColorLight):""};
OH.prototype.updateMessage=OH.prototype.updateMessage;OH.prototype.dataChanged=OH.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],OH.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],OH.prototype,"data",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],OH.prototype,"showOriginal",void 0);_.r([_.E({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],OH.prototype,"isDimmed",void 0);_.r([_.E({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],OH.prototype,"showBar",void 0);
_.r([_.E({computed:"computeAuthorBadges(data)"}),_.Z("design:type",Array)],OH.prototype,"authorBadges",void 0);_.r([_.E({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],OH.prototype,"authorIsOwner",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],OH.prototype,"inCollapsedBanner",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],OH.prototype,"inBanner",void 0);
_.r([_.E({value:_.k("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Z("design:type",Boolean)],OH.prototype,"avatarHidden",void 0);_.r([_.E({computed:"computeAuthorNameColor(data)"}),_.Z("design:type",String)],OH.prototype,"authorNameColor",void 0);_.r([_.E(),_.Z("design:type",_.Io)],OH.prototype,"participantsManager",void 0);_.r([_.E({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Z("design:type",Object)],OH.prototype,"filledButtonOverrides",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OH.prototype,"dataChanged",null);_.r([_.XX("data.message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OH.prototype,"updateMessage",null);OH=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],OH);
_.F(OH,"yt-live-chat-text-message-renderer",function(){if(Pw_===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;CwJ===void 0&&(CwJ=document.createElement("template"));var e=CwJ;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Pw_=B}B=Pw_;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var o$=function(){var B=_.c.apply(this,arguments)||this;B.tonalButtonOverrides={type:"tonal",style:"overlay"};return B};
_.l(o$,_.c);
o$.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]]"}}}}}};
o$.prototype.shouldSupportInlineActionButtons=function(){return!0};
o$.prototype.shouldSupportWholeItemClick=function(){return!0};
_.mh.Object.defineProperties(o$.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],o$.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],o$.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",_.Io)],o$.prototype,"participantsManager",void 0);
_.r([_.E(),_.Z("design:type",Object)],o$.prototype,"tonalButtonOverrides",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data.infoDialogButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],o$.prototype,"hasInfoDialogButton",null);o$=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],o$);
_.F(o$,"yt-live-chat-auto-mod-message-renderer",function(){if($c_===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;mc4===void 0&&(mc4=document.createElement("template"));var e=mc4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);$c_=B}B=$c_;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var n9o;var uR4;var O2R;var Bu=function(){return _.c.apply(this,arguments)||this};
_.l(Bu,_.c);_.r([_.E(),_.Z("design:type",Object)],Bu.prototype,"data",void 0);Bu=_.r([_.A({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Bu);
_.F(Bu,"ytd-factoid-renderer",function(){if(O2R!==void 0)return O2R;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return O2R=B},{mode:1});var R$=function(){return _.c.apply(this,arguments)||this};
_.l(R$,_.c);R$.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.r([_.E(),_.Z("design:type",Object)],R$.prototype,"data",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);R$=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],R$);
_.F(R$,"yt-live-chat-channel-activity-reputation-renderer",function(){if(uR4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;n9o===void 0&&(n9o=document.createElement("template"));var e=n9o;V.call(R,e.content.cloneNode(!0),B.content.firstChild);uR4=B}B=uR4;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var oF2;var Bha;var Vi=function(){return _.c.apply(this,arguments)||this};
_.l(Vi,_.c);Vi.prototype.ready=function(){var B=document.querySelector("yt-live-chat-app");B&&B.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Boolean)],Vi.prototype,"menuFocused",void 0);_.r([_.E(),_.Z("design:type",Object)],Vi.prototype,"data",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],Vi.prototype,"ytLiveChatItemBehavior",void 0);Vi=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Vi);
_.F(Vi,"yt-live-chat-donation-announcement-renderer",function(){if(Bha===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;oF2===void 0&&(oF2=document.createElement("template"));var e=oF2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Bha=B}B=Bha;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var RFl;var VgT,eFJ=function(){if(VgT!==void 0)return VgT;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;RFl===void 0&&(RFl=document.createElement("template"));var e=RFl;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return VgT=B};var e5=function(){return _.c.apply(this,arguments)||this};
_.l(e5,_.c);_.mh.Object.defineProperties(e5,{template:{configurable:!0,enumerable:!0,get:function(){return eFJ()}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],e5.prototype,"data",void 0);e5=_.r([_.fJ({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],e5);_.F(e5,"yt-live-chat-empty-feed-view-model",function(){return eFJ()},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Xq5;var pqR;var X2=function(){return _.c.apply(this,arguments)||this};
_.l(X2,_.c);X2.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"}}}}}};
_.mh.Object.defineProperties(X2.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var B,R;return{runs:[{text:(B=this.data)==null?void 0:(R=B.channelName)==null?void 0:R.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var B=[],R;if((R=this.data)==null||!R.channelBadges)return B;var V;R=_.h((V=this.data)==null?void 0:V.channelBadges);for(V=R.next();!V.done;V=R.next()){V=_.D(V.value,k34);var e=void 0,X=void 0;if((e=V)==null?0:(X=e.badgeImage)==null?0:X.sources)e=void 0,X={liveChatAuthorBadgeRenderer:{tooltip:V.tooltip,accessibility:{accessibilityData:{label:(e=_.D(V.rendererContext,_.mJ))==null?void 0:e.label}}}},V.badgeImage.sources[0].clientResource?X.liveChatAuthorBadgeRenderer.icon=
{iconType:V.badgeImage.sources[0].clientResource.imageName}:X.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:V.badgeImage.sources},B.push(X)}return B}}});
_.r([_.E(),_.Z("design:type",Object)],X2.prototype,"data",void 0);_.r([_.K("data.channelName"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],X2.prototype,"channelName",null);_.r([_.K("data.channelBadges"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],X2.prototype,"channelBadges",null);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);
X2=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],X2);
_.F(X2,"yt-live-chat-identity-view-model",function(){if(pqR===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Xq5===void 0&&(Xq5=document.createElement("template"));var e=Xq5;V.call(R,e.content.cloneNode(!0),B.content.firstChild);pqR=B}B=pqR;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Yiv;var hFv;var tga;var W1h;var pL=function(){var B=_.c.apply(this,arguments)||this;B.hidden=!1;B.supportsInlineActionButtons=!0;return B};
_.l(pL,_.c);pL.prototype.ready=function(){var B;((B=document.querySelector("yt-live-chat-app"))==null?0:B.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
pL.prototype.dataChanged=function(B){var R=(0,_.OX)(_.w(this.hostElement).querySelector("#detail-text"));R.textContent="";(B==null?0:B.detailText)&&R.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(B.detailText))};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],pL.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({observer:"dataChanged"}),_.Z("design:type",Object)],pL.prototype,"data",void 0);
_.r([_.E({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Z("design:type",Object)],pL.prototype,"hidden",void 0);pL=_.r([_.A({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],pL);
_.F(pL,"yt-live-chat-legacy-paid-message-renderer",function(){if(W1h===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;tga===void 0&&(tga=document.createElement("template"));var e=tga;V.call(R,e.content.cloneNode(!0),B.content.firstChild);W1h=B}B=W1h;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var bSb;var Jj5;var jYS={},Yc=function(){return _.tM.apply(this,arguments)||this};
_.l(Yc,_.tM);Yc.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Yc.prototype.onLiveChatMembershipItemBehaviorClick=Yc.prototype.onLiveChatMembershipItemBehaviorClick;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Yc.prototype,"data",void 0);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Yc.prototype,"onLiveChatMembershipItemBehaviorClick",null);Yc=_.r([_.Wc()],Yc);
jYS.YtLiveChatMembershipItemBehavior=[Yc.prototype,_.O.YtRendererBehavior];var hU=function(){var B=_.c.apply(this,arguments)||this;B.supportsInlineActionButtons=!0;B.hasPrimaryHeaderText=!1;B.showOnlyHeader=!1;B.authorBadges=[];B.modern=_.k("web_button_rework_with_live");B.buttonOverrides={style:"overlay",type:"filled"};return B};
_.l(hU,_.c);_.p=hU.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 B=document.querySelector("yt-live-chat-app");B&&B.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.p.messageChanged=function(){var B=this.data.message,R=(0,_.OX)(_.w(this.hostElement).querySelector("#message"));R.textContent="";B&&R.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(B))};
_.p.computeHasPrimaryHeaderText=function(B){return!(!B||!B.headerPrimaryText)};
_.p.computeShowOnlyHeader=function(B,R){return this.isMessageEmpty(B,R)};
_.p.computeAuthorBadges=function(B){return B.authorBadges||[]};
_.p.isMessageEmpty=function(B,R){return!B||B.empty?!0:!B.message&&!B.inputField&&!R};
_.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 _.w(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.p.inputFocus=function(){var B=this.getInputElement();B&&B.focus()};
_.p.inputInsertEmoji=function(B){var R=this.getInputElement();R&&R.insertEmoji(B)};
_.p.inputMessage=function(){var B=this.getInputElement();return B&&this.data.inputField?(B.completeEmojis(),_.KD(B.liveChatRichMessageInput)):null};
_.p.onFooterButtonClick=function(){this.data.footerButton&&_.OI(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.p.shouldSupportWholeItemClick=function(){return!0};
hU.prototype.isDeletedChanged=hU.prototype.isDeletedChanged;hU.prototype.messageChanged=hU.prototype.messageChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],hU.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.v(jYS.YtLiveChatMembershipItemBehavior),_.Z("design:type",Object)],hU.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],hU.prototype,"data",void 0);_.r([_.E({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],hU.prototype,"hasPrimaryHeaderText",void 0);_.r([_.E({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Z("design:type",Object)],hU.prototype,"showOnlyHeader",void 0);
_.r([_.E({computed:"computeAuthorBadges(data)"}),_.Z("design:type",Array)],hU.prototype,"authorBadges",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],hU.prototype,"modern",void 0);_.r([_.XX("data.message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hU.prototype,"messageChanged",null);_.r([_.XX("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hU.prototype,"isDeletedChanged",null);
hU=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],hU);
_.F(hU,"yt-live-chat-membership-item-renderer",function(){if(Jj5===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;bSb===void 0&&(bSb=document.createElement("template"));var e=bSb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Jj5=B}B=Jj5;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Ubb;var NhS;var tU=function(){return _.c.apply(this,arguments)||this};
_.l(tU,_.c);tU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],tU.prototype,"data",void 0);tU=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],tU);
_.F(tU,"yt-live-chat-mode-change-message-renderer",function(){if(NhS===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Ubb===void 0&&(Ubb=document.createElement("template"));var e=Ubb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);NhS=B}B=NhS;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var GyR;var yjv;var Wu=function(){return _.c.apply(this,arguments)||this};
_.l(Wu,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],Wu.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Wu.prototype,"data",void 0);Wu=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Wu);
_.F(Wu,"yt-live-chat-moderation-message-renderer",function(){if(yjv===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;GyR===void 0&&(GyR=document.createElement("template"));var e=GyR;V.call(R,e.content.cloneNode(!0),B.content.firstChild);yjv=B}B=yjv;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Sia;var HS4;var bT=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("web_button_rework");return B};
_.l(bT,_.c);bT.prototype.onClick=function(){var B;if((B=this.data)!=null&&B.onClickCommand){var R;_.eR.instance.resolveCommand((R=this.data)==null?void 0:R.onClickCommand)}};
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bT.prototype,"modern",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],bT.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],bT.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],bT.prototype,"data",void 0);bT=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],bT);
_.F(bT,"yt-live-chat-offer-click-count-message-renderer",function(){if(HS4===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Sia===void 0&&(Sia=document.createElement("template"));var e=Sia;V.call(R,e.content.cloneNode(!0),B.content.firstChild);HS4=B}B=HS4;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Mgl;var JU=function(){return _.c.apply(this,arguments)||this};
_.l(JU,_.c);_.r([_.E(),_.Z("design:type",Object)],JU.prototype,"data",void 0);JU=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],JU);
_.F(JU,"yt-live-chat-placeholder-item-renderer",function(){if(Mgl===void 0){var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);Mgl=B}B=Mgl;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var kyJ;var Dbv;var fja=new As(7),j5=function(){var B=_.c.apply(this,arguments)||this;B.data={};return B};
_.l(j5,_.c);j5.prototype.dataChanged=function(){var B;((B=this.data)==null?0:B.class)&&_.nk(this.hostElement,this.data.class,!0);var R;((R=this.oldData)==null?0:R.class)&&_.nk(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
j5.prototype.computeTimestampString=function(B){return fja.format(new Date(B/1E3))};
j5.prototype.dataChanged=j5.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],j5.prototype,"data",void 0);_.r([_.E({computed:"computeTimestampString(data.timestampUsec)"}),_.Z("design:type",String)],j5.prototype,"timestampString",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],j5.prototype,"dataChanged",null);j5=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],j5);
_.F(j5,"yt-live-chat-server-error-message",function(){if(Dbv===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;kyJ===void 0&&(kyJ=document.createElement("template"));var e=kyJ;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Dbv=B}B=Dbv;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var lja;var zFh;var U_=function(){var B=_.c.apply(this,arguments)||this;B.defaultToFilledIcon=!1;return B};
_.l(U_,_.c);U_.prototype.computeHasPrimaryColorIcon=function(B){return B==="SPARK"||B==="SPONSORSHIP_STAR"};
U_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],U_.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],U_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],U_.prototype,"defaultToFilledIcon",void 0);_.r([_.E(),_.Z("design:type",Object)],U_.prototype,"data",void 0);
_.r([_.E({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],U_.prototype,"hasPrimaryColorIcon",void 0);U_=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],U_);
_.F(U_,"yt-live-chat-viewer-engagement-message-renderer",function(){if(zFh===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;lja===void 0&&(lja=document.createElement("template"));var e=lja;V.call(R,e.content.cloneNode(!0),B.content.firstChild);zFh=B}B=zFh;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var ajl;var Na=function(){var B=_.c.apply(this,arguments)||this;B.modernUpdate=!1;B.buttonStyle="overlay";B.buttonType="filled";return B};
_.l(Na,_.c);Na.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Na.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Na.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Na.prototype,"modernUpdate",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],Na.prototype,"buttonStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],Na.prototype,"buttonType",void 0);
Na=_.r([_.A({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Na);
_.F(Na,"ytd-ad-hover-text-button-renderer",function(){if(ajl!==void 0)return ajl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ajl=B},{mode:1});var dbb;var GY=function(){var B=_.c.apply(this,arguments)||this;B.buttonOverrides={size:"XS"};B.modern=_.k("web_button_rework");return B};
_.l(GY,_.c);GY.prototype.onHelpTap=function(B){this.data&&this.data.informationDialog&&(_.OI(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),B.preventDefault(),B.stopPropagation())};
_.r([_.E(),_.Z("design:type",Object)],GY.prototype,"buttonOverrides",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],GY.prototype,"modern",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],GY.prototype,"data",void 0);GY=_.r([_.A({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],GY);
_.F(GY,"ytd-live-chat-purchased-product-message-renderer",function(){if(dbb!==void 0)return dbb;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return dbb=B},{mode:1});var wq_;var Thh;var yi=function(){var B=_.c.apply(this,arguments)||this;B.isContainerDeleted=!1;return B};
_.l(yi,_.c);yi.prototype.onContextMenuClick=function(B){this.ytLiveChatItemBehavior.showContextMenu(B)};
yi.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))};
yi.prototype.isContainerDeletedChanged=yi.prototype.isContainerDeletedChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],yi.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yi.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],yi.prototype,"isContainerDeleted",void 0);
_.r([_.E(),_.Z("design:type",String)],yi.prototype,"deletedStateMessage",void 0);_.r([_.XX("isContainerDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yi.prototype,"isContainerDeletedChanged",null);yi=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],yi);
_.F(yi,"ytd-sponsorships-live-chat-header-renderer",function(){if(Thh!==void 0)return Thh;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Thh=B},{mode:1});var S5=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("web_button_rework_with_live");B.buttonOverrides={style:"overlay",type:"filled"};return B};
_.l(S5,_.c);S5.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]]"}}}}}};
S5.prototype.onCtaButtonClick=function(){var B,R=_.D((B=this.data)==null?void 0:B.optInPrompt,_.Ii);if(B=this.maybeGetButtonCommand(R)){var V;(V=_.WK())==null||V.clickCommand(B)}};
S5.prototype.maybeGetButtonCommand=function(B){return!B||!B.command||_.D(B.command,CWh)===void 0&&_.D(B.command,$fh)===void 0?null:B.command};
S5.prototype.shouldHideOptinPrompt=function(B,R){return!B||R};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],S5.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],S5.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],S5.prototype,"modern",void 0);S5=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],S5);
_.F(S5,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(wq_!==void 0)return wq_;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return wq_=B},{mode:1});var xbv;var Hu=function(){return _.c.apply(this,arguments)||this};
_.l(Hu,_.c);Hu.prototype.onContextMenuClick=function(B){this.ytLiveChatItemBehavior.showContextMenu(B)};
Hu.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))};
Hu.prototype.isDeletedChanged=Hu.prototype.isDeletedChanged;_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],Hu.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Hu.prototype,"data",void 0);_.r([_.XX("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hu.prototype,"isDeletedChanged",null);Hu=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Hu);
_.F(Hu,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(xbv!==void 0)return xbv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return xbv=B},{mode:1});var Ma=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return B};
_.l(Ma,_.c);_.p=Ma.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(B){_.D(B,JH4)?this.handleMarkChatItemAsDeletedAction(_.D(B,JH4)):_.D(B,bab)&&this.handleRemoveChatItemAction(_.D(B,bab))};
_.p.handleLiveChatActions=function(B){B.forEach(this.handleLiveChatAction,this)};
_.p.handleMarkChatItemAsDeletedAction=function(B){var R=this,V;((V=this.data)==null?0:V.items)&&this.data.items.forEach(function(e,X){var Y=Object.keys(e)[0];Object.values(e)[0].id===B.targetItemId&&R.markAsDeleted("data.items",X,Y,B.deletedStateMessage,B.showOriginalContentMessage)})};
_.p.handleRemoveChatItemAction=function(B){var R=this,V;((V=this.data)==null?0:V.items)&&this.data.items.forEach(function(e,X){Object.values(e)[0].id===B.targetItemId&&R.splice("data.items",X,1)})};
_.p.markAsDeleted=function(B,R,V,e,X){B=[B,R,V].join(".");this.set(B+".deletedStateMessage",e);this.set(B+".showOriginalContentMessage",X)};
_.r([_.E(),_.Z("design:type",Object)],Ma.prototype,"data",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ma.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ma.prototype,"ytActionHandlerBehavior",void 0);Ma=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Ma);
_.F(Ma,"yt-live-chat-item-display-list-renderer",function(){if(hFv===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Yiv===void 0&&(Yiv=document.createElement("template"));var e=Yiv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);hFv=B}B=hFv;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var L1G;var vFl,K1J=function(){if(vFl!==void 0)return vFl;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;L1G===void 0&&(L1G=document.createElement("template"));var e=L1G;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return vFl=B};var kc=function(){var B=_.c.apply(this,arguments)||this;B.isHeader=!1;return B};
_.l(kc,_.c);kc.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.mh.Object.defineProperties(kc,{template:{configurable:!0,enumerable:!0,get:function(){return K1J()}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],kc.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],kc.prototype,"isHeader",void 0);kc=_.r([_.fJ({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],kc);_.F(kc,"yt-live-chat-item-display-renderer",function(){return K1J()},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Ijh,EFG,iSh,Ajl;
Ijh={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}};EFG={home:"eohps",search:"eosps",watch:"eowps"};_.QYl=["watch","search","home"];
_.DF=function(){this.JSC$12054_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12054_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.vE("PRECONSTRUCTION_DELAY",0);this.signals_=_.Ep();this.targetPage_=""};
_.DF.prototype.init=function(B,R){B=B===void 0?"":B;R=R===void 0?null:R;if(this.JSC$12054_isInitialized_)this.abort();else if(this.JSC$12054_isInitialized_=!0,B&&_.qi_(this,B),R){var V=_.Qj(this.signals_,"pcl")?0:10,e=function(){for(var X=0,Y;Y=_.QYl[X++];)Y!=B&&Y!=R&&this.pendingPages_.push(Y);_.cj_(this)}.bind(this);
this.signals_.parkOrScheduleJob(e,V,"pcl")}};
_.DF.prototype.abort=function(){this.fragmentJobId_&&(_.dV.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Ajl(this)};
_.qi_=function(B,R){B.JSC$12054_isInitialized_&&!B.targetPage_&&(B.targetPage_=R,iSh(B,R),B.isInitialPass_=!1,iSh(B,R),B.signals_.processSignal(EFG[B.targetPage_]),Ajl(B),_.cj_(B))};
_.cj_=function(B){B.pendingPages_.length&&!B.pagePreparerJobId_&&(B.pagePreparerJobId_=_.kD(_.dV,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.qi_(this,this.pendingPages_.shift())}.bind(B),B.DEFAULT_DELAY_))};
iSh=function(B,R){if(R=Ijh[R])for(var V in R){var e=!1,X=V;V.charAt(0)=="~"&&(e=!0,X=V.substring(1));var Y=R[V];Y=typeof Y=="object"?Y:{count:Y};R[V]=Y;Y.componentName=X;Y.count>0&&(B.isInitialPass_?e||B.isSeenDuringInitialPass_[X]||(B.JSC$12054_queue_.push({componentName:X,count:1,signals:Y.signals}),B.isSeenDuringInitialPass_[X]=!0,Y.count--):B.JSC$12054_queue_.push(Y))}};
Ajl=function(B){B.JSC$12054_queue_.length=0;B.targetPage_="";B.isInitialPass_=!0;B.signals_.processSignal("eop")};
_.DF.getInstance=function(){return _.hn(_.DF)};var sYJ=function(){this.signals=_.Ep();this.init()};
sYJ.prototype.startPreconstruction=function(){_.DF.getInstance().init(_.KQ("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
sYJ.prototype.init=function(){F1o(this);window.Polymer&&L42&&Jd_();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var B=_.R5.ytcsi;if(B&&B.gt&&(B=B.gt())&&B.tick&&(B.tick.aft>0||B.tick.pbs>0)&&(_.KQ("IS_HOMEPAGE_COLD")||_.KQ("IS_RESULTS_PAGE_COLD")||_.KQ("IS_WATCH_PAGE_COLD"))){rjv(this);break a}S$p(YcK,this.onNotifications,this)}};
var F1o=function(B){var R=function(){B.signals.processSignal("dl")};
document.readyState==="complete"?(_.cE(Error("sh"),"WARNING"),R()):_.nAo(window,"load",R)};
sYJ.prototype.onNotifications=function(B){B.timer||(_.KQ("IS_HOMEPAGE_COLD")||_.KQ("IS_RESULTS_PAGE_COLD")||_.KQ("IS_WATCH_PAGE_COLD"))&&rjv(this)};
var rjv=function(B){B.signals.parkOrScheduleJob(function(){B.signals.processSignal("eocs")},10,"eor")};
new sYJ;var fL,lT=function(){return _.tM.apply(this,arguments)||this};
_.l(lT,_.tM);_.p=lT.prototype;_.p.enableActiveViewMeasurement=function(B){if(this.isActiveViewEnabled(B)){var R=this.getUrlPrefixesFromCommand(B.viewableCommands);B=this.getUrlPrefixesFromCommand(B.endOfSessionCommands);if(!fL){var V=_.RC("active_view_tos_timeout_ms");fL=V>0?new Kiu(this.getVersion(),V):new Kiu(this.getVersion())}EMN(fL,this.hostElement);QdI(fL,this.hostElement,R,B)}};
_.p.stopActiveViewMeasurement=function(){fL&&EMN(fL,this.hostElement)};
_.p.isActiveViewEnabled=function(B){return!!B&&(this.hasAtLeastOneUrl(B.viewableCommands)||this.hasAtLeastOneUrl(B.endOfSessionCommands))};
_.p.hasAtLeastOneUrl=function(B){return!!B&&B.length>0&&B[0].loggingUrls!=null&&B[0].loggingUrls.length>0};
_.p.getVersion=function(){var B=_.vE("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(B==null?void 0:B.length)===2?B[1]:null};
_.p.getUrlPrefixesFromCommand=function(B){if(!B)return[];var R=[];B=_.h(B);for(var V=B.next();!V.done;V=B.next())if(V=V.value,V.loggingUrls){V=_.h(V.loggingUrls);for(var e=V.next();!e.done;e=V.next())e=e.value,e.baseUrl&&R.push(e.baseUrl)}return R};
lT=_.r([_.Wc()],lT);var zY=[lT.prototype];var a$=function(){return _.tM.apply(this,arguments)||this};
_.l(a$,_.tM);_.mh.Object.defineProperties(a$.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.k("enable_entity_store_from_dependency_injection")?_.QL():_.g6()}}});
a$=_.r([_.Wc()],a$);_.dt=[SS.prototype,a$.prototype];var gFS=["ytd-rich-shelf-renderer"],wt=function(){var B=_.tM.apply(this,arguments)||this;B._noAccessors=!0;B.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";B.followUpDialogPromise=null;B.followUpDialogPromiseResolve=null;B.followUpDialogPromiseReject=null;return B};
_.l(wt,_.tM);_.p=wt.prototype;_.p.dismissibleItemIsDismissedChanged_=function(B){_.k("kevlar_fluid_dismiss")&&(B?_.OI(this.hostElement,"yt-dismissible-item-dismissed"):_.OI(this.hostElement,"yt-dismissible-item-undismissed"))};
_.p.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.p.dismissibleItemReset_=function(){var B=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 _.be(function(R,V){B.followUpDialogPromiseResolve=R;B.followUpDialogPromiseReject=V});
_.OI(this.hostElement,"yt-enable-lockup-interaction")};
_.p.dismissibleItemOnYtServiceRequestSent_=function(B,R){R.actions&&this.dismissibleItemProcessActions(R.actions,B)};
_.p.dismissibleItemOnRequestSent=function(B){if(_.k("web_button_rework"))for(var R=_.h(B.detail),V=R.next();!V.done;V=R.next()){var e=void 0;(V=(e=_.D(V.value,_.hE))==null?void 0:e.actions)&&this.dismissibleItemProcessActions(V,B)}};
_.p.dismissibleItemOnCommandSent=function(B,R){R&&this.dismissibleItemProcessActions(R,B)};
_.p.setAndGetDismissedContentId=function(B){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+B};
_.p.replayDismissAction=function(B){this.dismissibleItemProcessActions([B])};
_.p.dismissibleItemProcessActions=function(B,R){for(var V=0;V<B.length;V++){var e=B[V],X=void 0;((X=_.D(e,_.p0))==null?0:X.commands)&&this.dismissibleItemProcessActions(_.D(e,_.p0).commands,R);if(_.D(e,_.ki)){if(X=_.D(e,_.ki),!X.replaceParentSection||gFS.includes(this.hostElement.nodeName.toLowerCase()))_.k("web_see_fewer_shorts_reactive_dismissal")&&X.groupDismissal&&ZS_(this,X.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(X),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.SX("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:e})),e=void 0,(e=R)==null||e.stopPropagation()}else if(_.D(e,ko4))this.dismissibleItemHandleHideEnclosingAction_(),e=void 0,(e=R)==null||e.stopPropagation();else if(_.D(e,KKR))_.k("web_see_fewer_shorts_reactive_dismissal")&&(e=_.D(e,KKR),X=void 0,((X=e)==null?0:X.targetGroupId)&&ZS_(this,{targetGroupId:e.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.SX("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),e=void 0,(e=R)==null||e.stopPropagation();else if(_.D(e,_.hE))(e=_.D(e,_.hE).actions)&&_.eO(this.hostElement,e,this.hostElement),e=void 0,(e=R)==null||e.stopPropagation();else{var Y=X=void 0;((X=_.D(e,_.c5))==null?void 0:X.signal)!=="TELL_US_WHY"||((Y=_.D(e,_.c5))==null?0:Y.targetId)&&_.k("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),e=void 0,(e=R)==null||e.stopPropagation())}}};
_.p.dismissibleItemOnYtServiceRequestCompleted_=function(B,R){var V=this.get("feedbackResponses.0.followUpDialog",R.data);V?this.followUpDialogPromiseResolve(V):R.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(R.actions,B)};
_.p.dismissibleItemHandleReplaceEnclosingAction_=function(B){this.dismissedRenderer=B.item;this.isDismissed=!0;var R=null;(R=_.w(this.hostElement).querySelector("#dismissed"))&&_.gB(this,function(){_.Zt(R)});
_.OI(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.p.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.p.dismissibleItemHandleUndoFeedbackAction_=function(){_.OI(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.p.dismissibleItemHandleTellUsWhySignalAction_=function(){var B=this;this.followUpDialogPromise.then(function(R){B.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:R}})})};
wt.prototype.dismissibleItemOnYtServiceRequestCompleted_=wt.prototype.dismissibleItemOnYtServiceRequestCompleted_;wt.prototype.dismissibleItemOnCommandSent=wt.prototype.dismissibleItemOnCommandSent;wt.prototype.dismissibleItemOnRequestSent=wt.prototype.dismissibleItemOnRequestSent;wt.prototype.dismissibleItemOnYtServiceRequestSent_=wt.prototype.dismissibleItemOnYtServiceRequestSent_;wt.prototype.dismissibleItemDataChanged_=wt.prototype.dismissibleItemDataChanged_;
wt.prototype.dismissibleItemIsDismissedChanged_=wt.prototype.dismissibleItemIsDismissedChanged_;_.r([_.v(_.Ad),_.Z("design:type",Object)],wt.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],wt.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],wt.prototype,"isDismissed",void 0);_.r([_.E(),_.Z("design:type",Object)],wt.prototype,"dismissedRenderer",void 0);
_.r([_.XX("isDismissed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean]),_.Z("design:returntype")],wt.prototype,"dismissibleItemIsDismissedChanged_",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wt.prototype,"dismissibleItemDataChanged_",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],wt.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.r([_.R_("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],wt.prototype,"dismissibleItemOnRequestSent",null);
_.r([_.R_("yt-dismissible-item-action"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Array]),_.Z("design:returntype")],wt.prototype,"dismissibleItemOnCommandSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],wt.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);wt=_.r([_.Wc()],wt);_.TY=[_.Ad,_.dt,wt.prototype];var xc=function(){var B=_.tM.apply(this,arguments)||this;B.disableGridStateAware=!1;B.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};B.currentGridClass="";return B};
_.l(xc,_.tM);xc.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.gB(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var B=this.gridStateAwareGetElement();_.nk(B,"grid",!0)}};
xc.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
xc.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.w(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
xc.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var B="grid-disabled";else{B=_.C2S.getInstance();var R=this.get("pageSubtype");B=R&&ZuR.includes(R)?"grid-disabled":B.currentSnapState_?B.currentSnapState_.className:null}(R=this.gridStateAwareGetElement())&&B!==this.currentGridClass&&(B&&_.nk(R,B,!0),this.currentGridClass&&_.nk(R,this.currentGridClass,!1),this.currentGridClass=B)};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],xc.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",String)],xc.prototype,"gridStateAwareSizingElementSelector",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],xc.prototype,"disableGridStateAware",void 0);xc=_.r([_.Wc()],xc);_.LL=[xc.prototype,_.$Z.YtActionHandlerBehavior];_.vu=new _.u0("GUIDE_TOKEN");var I$;_.KL={};I$=function(){var B=_.tM.apply(this,arguments)||this;B.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 B};
_.l(I$,_.tM);_.p=I$.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 B=_.Oz().resolve(_.uj(_.vu));B&&(this.guidePersistentAndVisible=B.getGuidePersistentAndVisible(),this.activeEndpoint=B.getActiveEndpoint(),this.guideOpened=B.getGuideOpened(),this.miniGuideVisible=B.getMiniGuideVisible())};
_.p.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.p.handleGuideStateAction=function(B){this.guidePersistentAndVisible=B};
_.p.handleMiniGuideStateAction=function(B){this.miniGuideVisible=B};
_.p.handleGuideOpenedAction=function(B){this.guideOpened=B};
_.p.handleActiveEndpointAction=function(B){this.activeEndpoint=B};
I$.prototype.onActiveEndpointChange=I$.prototype.onActiveEndpointChange;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],I$.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],I$.prototype,"guidePersistentAndVisible",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],I$.prototype,"miniGuideVisible",void 0);_.r([_.E(),_.Z("design:type",Object)],I$.prototype,"activeEndpoint",void 0);
_.r([_.XX("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],I$.prototype,"onActiveEndpointChange",null);_.r([_.E(),_.Z("design:type",Boolean)],I$.prototype,"guideOpened",void 0);I$=_.r([_.Wc()],I$);_.KL.YtdGuideStateAwareBehavior=[];_.KL.YtdGuideStateAwareBehavior.push(I$.prototype,_.$Z.YtActionHandlerBehavior);var ZSG=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],E_=function(){var B=_.tM.apply(this,arguments)||this;B.hoverJobId=0;B.JSC$12085_touched=!1;return B};
_.l(E_,_.tM);_.p=E_.prototype;_.p.created=function(){this.useExpandableTooltip=!ZSG.includes(this.is)};
_.p.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.p.detached=function(){this.useExpandableTooltip=!1};
_.p.lockupOnDown=function(B){this.interactionElement&&!_.g1(_.Az(B),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.p.lockupOnUp=function(B){this.interactionElement&&!_.g1(_.Az(B),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.p.onTouchStart=function(){this.JSC$12085_touched=!0};
_.p.lockupOnMouseEnter=function(){var B=this,R=_.RC("kevlar_lockup_hover_delay",-1);this.JSC$12085_touched&&R>=0?(_.dV.cancelJob(this.hoverJobId),this.hoverJobId=_.dV.addJob(function(){B.lockupIsHovered=!0},8,R),this.JSC$12085_touched=!1):this.lockupIsHovered=!0};
_.p.lockupOnMouseLeave=function(){this.hoverJobId&&(_.dV.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.p.lockupOnPopupClosed=function(B,R){var V;((V=R.popupRenderer)==null?void 0:V.is)==="ytd-menu-popup-renderer"&&(B=R.popupRenderer.veData,R=_.TE(),B&&R&&_.AE(R,[B]))};
_.p.lockupOnLockupRequested=function(B){var R=B.detail.videoIds[0],V;B.detail&&R===((V=this.data)==null?void 0:V.videoId)&&(B.detail.returnValue=[this.data])};
_.p.lockupOnYtServiceRequestSent=function(B,R){if(B=R.actions)for(var V=0;V<B.length;V++){var e=B[V];if(e.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&R.ajaxPromise){var X=void 0,Y=(X=_.D(R.endpoint,_.Lt))==null?void 0:X.playlistId;X=void 0;e=(X=e.removedVideoId)!=null?X:"";y5R(_.cC(),e,Y)}else e.action==="ACTION_REMOVE_VIDEO"&&R.ajaxPromise&&(Y=void 0,e=(Y=e.setVideoId)!=null?Y:"",_.SLv(_.cC(),e))}};
_.p.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.p.lockupOnLockupEnabled=function(){if(!this.$){var B=_.Oz().resolve(_.$B).getCurrentPage(),R=this.getParentRenderer?this.getParentRenderer():void 0;_.KE(new _.H8("component not ready",this.is,this.isAttached,B==null?void 0:B.is,R==null?void 0:R.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
E_.prototype.lockupOnLockupEnabled=E_.prototype.lockupOnLockupEnabled;E_.prototype.lockupOnLockupDisabled=E_.prototype.lockupOnLockupDisabled;E_.prototype.lockupOnYtServiceRequestSent=E_.prototype.lockupOnYtServiceRequestSent;E_.prototype.lockupOnLockupRequested=E_.prototype.lockupOnLockupRequested;E_.prototype.lockupOnPopupClosed=E_.prototype.lockupOnPopupClosed;E_.prototype.lockupOnMouseLeave=E_.prototype.lockupOnMouseLeave;E_.prototype.lockupOnMouseEnter=E_.prototype.lockupOnMouseEnter;
E_.prototype.onTouchStart=E_.prototype.onTouchStart;E_.prototype.lockupOnUp=E_.prototype.lockupOnUp;E_.prototype.lockupOnDown=E_.prototype.lockupOnDown;_.r([_.E(),_.Z("design:type",Object)],E_.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],E_.prototype,"lockupIsHovered",void 0);_.r([_.E(),_.Z("design:type",Boolean)],E_.prototype,"lockupTouchTriggered",void 0);_.r([_.E(),_.Z("design:type",Boolean)],E_.prototype,"useExpandableTooltip",void 0);
_.r([_.Yp("#interaction"),_.Z("design:type",Object)],E_.prototype,"interactionElement",void 0);_.r([_.R_("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],E_.prototype,"lockupOnDown",null);_.r([_.R_("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],E_.prototype,"lockupOnUp",null);
_.r([_.R_("touchstart"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E_.prototype,"onTouchStart",null);_.r([_.R_("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E_.prototype,"lockupOnMouseEnter",null);_.r([_.R_("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E_.prototype,"lockupOnMouseLeave",null);
_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],E_.prototype,"lockupOnPopupClosed",null);_.r([_.R_("yt-lockup-requested"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],E_.prototype,"lockupOnLockupRequested",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],E_.prototype,"lockupOnYtServiceRequestSent",null);_.r([_.R_("yt-disable-lockup-interaction"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E_.prototype,"lockupOnLockupDisabled",null);
_.r([_.R_("yt-enable-lockup-interaction"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E_.prototype,"lockupOnLockupEnabled",null);E_=_.r([_.Wc()],E_);_.Qi=[E_.prototype];_.mbl={YtdReduxBehavior:[]};_.mbl.YtdReduxBehavior.push.apply(_.mbl.YtdReduxBehavior,_.dt);var qa=function(){var B=_.tM.apply(this,arguments)||this;B._noAccessors=!0;B.disableNowPlaying=!1;B.disableTooltips=!1;B.useHoveredProperty=!1;B.hovered=!1;B.isThumbnailHovered_=!1;B.addBackground=_.k("kevlar_thumbnail_bg");B.nowPlaying=!1;B.disableRounding=!1;B.size="small";return B};
_.l(qa,_.tM);_.p=qa.prototype;_.p.computeThumbnailOverlaySidePanelWidth_=function(B,R){return B-R};
_.p.computeSize=function(B,R){if(!this.disableRounding){if(!B&&!R)return"small";B=Math.max(B||0,R||0);return B>=256?"large":B>=96?"medium":"small"}};
_.p.computeFinalHoveredState_=function(B,R,V){return this.nowPlaying?!1:_.k("kevlar_thumbnail_fluid")&&B?R:V};
_.p.computeHoverOverlays_=function(B,R){return B&&R?R:void 0};
_.p.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.p.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.p.checkMiniplayer_=function(){var B;if(((B=this.data)==null?0:B.playlistSetVideoId)&&_.k("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{B=_.Up();var R=B.currentEndpoint;!this.disableNowPlaying&&R&&_.D(R,_.sI)&&this.data?(R=_.D(R,_.sI),this.nowPlaying=this.data.playlistId?R.playlistId===this.data.playlistId:R.videoId===this.data.videoId,this.isVideoPlaying=B==null?void 0:B.isVideoPlaying):this.nowPlaying=!1}};
qa.prototype.checkMiniplayer_=qa.prototype.checkMiniplayer_;qa.prototype.onMouseLeave_=qa.prototype.onMouseLeave_;qa.prototype.onMouseEnter_=qa.prototype.onMouseEnter_;qa.prototype.computeHoverOverlays_=qa.prototype.computeHoverOverlays_;qa.prototype.computeFinalHoveredState_=qa.prototype.computeFinalHoveredState_;qa.prototype.computeSize=qa.prototype.computeSize;qa.prototype.computeThumbnailOverlaySidePanelWidth_=qa.prototype.computeThumbnailOverlaySidePanelWidth_;
_.r([_.v(_.dt),_.Z("design:type",Object)],qa.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qa.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Number)],qa.prototype,"height",void 0);_.r([_.E(),_.Z("design:type",Boolean)],qa.prototype,"bottomSidePanel",void 0);_.r([_.E(),_.Z("design:type",Number)],qa.prototype,"width",void 0);_.r([_.E(),_.Z("design:type",Object)],qa.prototype,"disableNowPlaying",void 0);
_.r([_.E({selector:_.d6}),_.Z("design:type",Boolean)],qa.prototype,"miniplayerIsActive",void 0);_.r([_.E(),_.Z("design:type",Object)],qa.prototype,"disableTooltips",void 0);_.r([_.E(),_.Z("design:type",Object)],qa.prototype,"useHoveredProperty",void 0);_.r([_.E(),_.Z("design:type",Object)],qa.prototype,"hovered",void 0);_.r([_.E(),_.Z("design:type",Object)],qa.prototype,"isThumbnailHovered_",void 0);
_.r([_.E({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Z("design:type",Boolean)],qa.prototype,"finalHoveredState_",void 0);_.r([_.E({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Z("design:type",Number)],qa.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qa.prototype,"addBackground",void 0);
_.r([_.E({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Z("design:type",Object)],qa.prototype,"hoverOverlays_",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qa.prototype,"nowPlaying",void 0);_.r([_.E(),_.Z("design:type",Boolean)],qa.prototype,"isVideoPlaying",void 0);_.r([_.E(),_.Z("design:type",Object)],qa.prototype,"disableRounding",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Z("design:type",Object)],qa.prototype,"size",void 0);_.r([_.R_("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qa.prototype,"onMouseEnter_",null);_.r([_.R_("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qa.prototype,"onMouseLeave_",null);
_.r([_.XX("data","disableNowPlaying","miniplayerIsActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qa.prototype,"checkMiniplayer_",null);qa=_.r([_.Wc()],qa);var $b2=[qa.prototype];_.cu={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(B,R){return B+":"+_.Y5(R)},
getPlayerListener_:function(B,R,V){B=this.getPlayerListenerKey_(B,R);R=this.playerListeners_.get(B);V&&this.playerListeners_.delete(B);return R},
savePlayerListener_:function(B,R){var V=R.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(B,R),V);return V},
listenToPlayerEvent:function(B,R,V){V=this.savePlayerListener_(R,V);B.addEventListener(R,V)},
listenToPlayerEvents:function(B,R){R.forEach(function(V,e){this.listenToPlayerEvent(B,e,V)}.bind(this))},
unlistenFromPlayerEvent:function(B,R,V){V=this.getPlayerListener_(R,V,!0);B.removeEventListener(R,V)},
unlistenFromPlayerEvents:function(B,R){R.forEach(function(V,e){this.unlistenFromPlayerEvent(B,e,V)}.bind(this))}}};
_.AU=function(){};_.CLT=new _.u0("PLAYER_API_TOKEN");var nFI=!1,B7_,OSS=!1,VKx;var Os=function(B,R,V,e,X){_.Hn.call(this);var Y=this;this.playerId=R;this.webPlayerContextConfig=e;this.p3O=X;this.bEF=!1;this.api={};this.dfz=this.nzc=null;this.opJ=new _.Ju;this.zz={};this.bMj=this.zf2=this.elementId=this.mj0=this.config=null;this.hP5=!1;this.uY=this.l45=null;this.rCe={};this.yDn=["onReady"];this.lastError=null;this.bls=NaN;this.cNc={};this.qix=0;this.kU=this.targetElement=B;_.t4(this,this.opJ);PL4(this);V?this.qix=setTimeout(function(){Y.loadNewVideoConfig(V)},0):e&&(nFb(this),
uj_(this))};
_.l(Os,_.Hn);Os.prototype.getId=function(){return this.playerId};
Os.prototype.loadNewVideoConfig=function(B){if(!this.isDisposed()){this.qix&&(clearTimeout(this.qix),this.qix=0);var R=B||{};R instanceof dqR||(R=new dqR(R));this.config=R;this.setConfig(B);uj_(this);this.isReady()&&OSo(this)}};
var nFb=function(B){var R;B.webPlayerContextConfig?R=B.webPlayerContextConfig.rootElementId:R=B.config.attrs.id;B.elementId=R||B.elementId;B.elementId==="video-player"&&(B.elementId=B.playerId,B.webPlayerContextConfig?B.webPlayerContextConfig.rootElementId=B.playerId:B.config.attrs.id=B.playerId);var V;((V=B.kU)==null?void 0:V.id)===B.elementId&&(B.elementId+="-player",B.webPlayerContextConfig?B.webPlayerContextConfig.rootElementId=B.elementId:B.config.attrs.id=B.elementId)};
Os.prototype.setConfig=function(B){this.mj0=B;this.config=otR(B);nFb(this);if(!this.zf2){var R;this.zf2=B7G(this,((R=this.config.args)==null?void 0:R.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var V;if((V=this.config)==null?0:V.attrs)B=this.config.attrs,(R=B.width)&&this.kU&&(this.kU.style.width=EO(Number(R)||R,!0)),(B=B.height)&&this.kU&&(this.kU.style.height=EO(Number(B)||B,!0))};
var OSo=function(B){if(B.config&&B.config.loaded!==!0)if(B.config.loaded=!0,!B.config.args||B.config.args.autoplay!=="0"&&B.config.args.autoplay!==0&&B.config.args.autoplay!==!1){var R;B.api.loadVideoByPlayerVars((R=B.config.args)!=null?R:null)}else B.api.cueVideoByPlayerVars(B.config.args)},VK4=function(B){var R=!0,V=B.getPlayerElement();
V&&B.config&&(R=V.dataset.version===RBG(B));return R&&!!_.qN("yt.player.Application.create")},uj_=function(B){if(!B.isDisposed()&&!B.hP5){var R=VK4(B);
if(R&&(B.getPlayerElement()?"html5":null)==="html5")B.bMj="html5",B.isReady()||eBR(B);else if(X1T(B),B.bMj="html5",R&&B.uY&&B.targetElement)B.targetElement.appendChild(B.uY),eBR(B);else{B.config&&(B.config.loaded=!0);var V=!1;B.l45=function(){V=!0;var e=p1T(B,"player_bootstrap_method")?_.qN("yt.player.Application.createAlternate")||_.qN("yt.player.Application.create"):_.qN("yt.player.Application.create");var X=B.config?otR(B.config):void 0;e&&e(B.targetElement,X,B.webPlayerContextConfig,B.p3O);eBR(B)};
B.hP5=!0;R?B.l45():(_.IL(RBG(B),B.l45),(R=Y9b(B))&&dEd(R||""),hBb(B)&&!V&&_.mk("yt.player.Application.create",null))}}};
Os.prototype.getPlayerElement=function(){var B=_.uP(document,this.elementId);!B&&this.kU&&this.kU.querySelector&&(B=this.kU.querySelector("#"+this.elementId));return B};
var eBR=function(B){if(!B.isDisposed()){var R=B.getPlayerElement(),V=!1;R&&R.getApiInterface&&R.getApiInterface()&&(V=!0);if(V){B.hP5=!1;if(!p1T(B,"html5_remove_not_servable_check_killswitch")){var e;if((R==null?0:R.isNotServable)&&B.config&&(R==null?0:R.isNotServable((e=B.config.args)==null?void 0:e.video_id)))return}tKl(B)}else B.bls=setTimeout(function(){eBR(B)},50)}},tKl=function(B){PL4(B);
B.bEF=!0;var R=B.getPlayerElement();if(R){B.nzc=W_4(B,R,"addEventListener");B.dfz=W_4(B,R,"removeEventListener");var V=R.getApiInterface();V=V.concat(R.getInternalApiInterface());for(var e=B.api,X=0;X<V.length;X++){var Y=V[X];e[Y]||(e[Y]=W_4(B,R,Y))}}for(var t in B.zz)B.zz.hasOwnProperty(t)&&B.nzc&&B.nzc(t,B.zz[t]);OSo(B);B.zf2&&B.zf2(B.api);B.opJ.publish("onReady",B.api)},W_4=function(B,R,V){var e=R[V];
return function(){var X=_.HB.apply(0,arguments);try{return B.lastError=null,e.apply(R,X)}catch(Y){if(V!=="sendAbandonmentPing")throw Y.params=V,B.lastError=Y,X=new _.H8("PlayerProxy error in method call",{error:Y,method:V,playerId:B.playerId}),X.level="WARNING",X;}}},PL4=function(B){B.bEF=!1;
if(B.dfz)for(var R in B.zz)B.zz.hasOwnProperty(R)&&B.dfz(R,B.zz[R]);for(var V in B.cNc)B.cNc.hasOwnProperty(V)&&clearTimeout(Number(V));B.cNc={};B.nzc=null;B.dfz=null;R=B.api;for(var e in R)R.hasOwnProperty(e)&&(R[e]=null);R.addEventListener=function(X,Y){B.addEventListener(X,Y)};
R.removeEventListener=function(X,Y){B.removeEventListener(X,Y)};
R.destroy=function(){B.dispose()};
R.getLastError=function(){return B.getLastError()};
R.getPlayerType=function(){return B.getPlayerType()};
R.getCurrentVideoConfig=function(){return B.mj0};
R.loadNewVideoConfig=function(X){B.loadNewVideoConfig(X)};
R.isReady=function(){return B.isReady()}};
Os.prototype.isReady=function(){return this.bEF};
Os.prototype.addEventListener=function(B,R){var V=this;this.isDisposed();var e=B7G(this,R);e&&(_.gx(this.yDn,B)||this.zz[B]||(R=bNJ(this,B),this.nzc&&this.nzc(B,R)),this.opJ.subscribe(B,e),B==="onReady"&&this.isReady()&&setTimeout(function(){e(V.api)},0))};
Os.prototype.removeEventListener=function(B,R){this.isDisposed()||(R=B7G(this,R))&&this.opJ.unsubscribe(B,R)};
var B7G=function(B,R){var V=R;if(typeof R==="string"){if(B.rCe[R])return B.rCe[R];V=function(){var e=_.HB.apply(0,arguments),X=_.qN(R);if(X)try{X.apply(_.R5,e)}catch(Y){throw e=new _.H8("PlayerProxy error when executing callback",{error:Y}),e.level="ERROR",e;}};
B.rCe[R]=V}return V?V:null},bNJ=function(B,R){var V=function(e){var X=function(){B.isDisposed();
if(!B.isDisposed())try{B.opJ.publish(R,e!=null?e:void 0)}catch(b){var t=new _.H8("PlayerProxy error when creating global callback",{error:b.message,event:R,playerId:B.playerId,data:e,originalStack:b.stack,componentStack:b.componentStack});t.level="WARNING";throw t;}};
if(p1T(B,"web_player_publish_events_immediately"))X();else{var Y=setTimeout(function(){X();_.M_.remove(B.cNc,String(Y))},0);
_.M_.add(B.cNc,String(Y),!0)}};
return B.zz[R]=V};
Os.prototype.getPlayerType=function(){return this.bMj||(this.getPlayerElement()?"html5":null)};
Os.prototype.getLastError=function(){return this.lastError};
var X1T=function(B){B.cancel();PL4(B);B.bMj=null;B.config&&(B.config.loaded=!1);var R=B.getPlayerElement();R&&(VK4(B)||!hBb(B)?B.uY=R:(R&&R.destroy&&R.destroy(),B.uY=null));B.targetElement&&_.wE(B.targetElement)};
Os.prototype.cancel=function(){this.l45&&_.R5u(RBG(this),this.l45);clearTimeout(this.bls);this.hP5=!1};
Os.prototype.disposeInternal=function(){X1T(this);if(this.uY&&this.config&&this.uY.destroy)try{this.uY.destroy()}catch(R){var B=new _.H8("PlayerProxy error during disposal",{error:R});B.level="ERROR";throw B;}this.rCe=null;for(B in this.zz)this.zz.hasOwnProperty(B)&&delete this.zz[B];this.mj0=this.config=this.api=null;delete this.targetElement;delete this.kU;_.Hn.prototype.disposeInternal.call(this)};
var hBb=function(B){var R,V;B=(R=B.config)==null?void 0:(V=R.args)==null?void 0:V.fflags;return!!B&&B.indexOf("player_destroy_old_version=true")!==-1},RBG=function(B){return B.webPlayerContextConfig?B.webPlayerContextConfig.jsUrl:(B=B.config.assets)?B.js:""},Y9b=function(B){return B.webPlayerContextConfig?B.webPlayerContextConfig.cssUrl:(B=B.config.assets)?B.css:""},p1T=function(B,R){if(B.webPlayerContextConfig)var V=B.webPlayerContextConfig.serializedExperimentFlags;
else{var e;if((e=B.config)==null?0:e.args)V=B.config.args.fflags}return(V||"").split("&").includes(R+"=true")},otR=function(B){for(var R={},V=_.h(Object.keys(B)),e=V.next();!e.done;e=V.next()){e=e.value;
var X=B[e];R[e]=typeof X==="object"?_.M_.clone(X):X}return R};var hBI={},Y9I="player_uid_"+(Math.random()*1E9>>>0);var iT=function(B,R,V,e,X,Y){R=R===void 0?document.createElement("div"):R;this.webPlayerContextConfig=B;this.container=R;this.commandResolver=V;this.apiResolver=bNq();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Xs;e||Y?JWT(this):jZv(this);this.pendingPlayerResponse=e;this.pendingWatchNextResponse=X;this.pendingPlayerVars=Y;UOh(this)};
iT.prototype.loadVideoWithPlayerResponse=function(B,R,V){this.loadVideo(B,R,V)};
iT.prototype.loadVideoWithPlayerVars=function(B){return this.loadVideo(void 0,void 0,B)};
iT.prototype.destroy=function(B){if(B=_.uP(document,B))B=Y9I+"_"+_.Y5(B),(B=hBI[B])&&B.dispose()};
var Gc4=function(B,R){var V;_.W(function(e){if(e.nextAddress==1)return B.pendingWatchNextResponse=R,B.synchronousApi?(V=B.synchronousApi,e.jumpTo(2)):_.U(e,B.api,3);e.nextAddress!=2&&(V=e.yieldResult);N7b(B,V);B.pendingWatchNextResponse&&(V.updateVideoData({raw_watch_next_response:B.pendingWatchNextResponse}),B.pendingWatchNextResponse=void 0);_.b3(e)})},N7b=function(B,R){var V;
if(!(R==null?0:(V=R.isReady)==null?0:V.call(R))){var e;B=new _.H8("playerApi is falsey",{synchronousApi:B.synchronousApi,apiResolved:B.apiResolver.resolved,playerApiUndefined:R===void 0,playerApiNull:R===null,playerApiReady:(R==null?void 0:(e=R.isReady)==null?void 0:e.call(R))===!0,playerApiMethods:R?Object.keys(R):[]});_.Tn(B)}},yWl=function(B,R){if(typeof B[R]==="function")return B[R]()},S9G=function(B){var R=window,V,e=(V=R.ytplayer)==null?void 0:V.bootstrapPlayerContainer;
if((V=e==null?void 0:e.firstElementChild)&&_.A8(V,"html5-video-player")){var X,Y,t=(X=R.ytplayer)==null?void 0:(Y=X.bootstrapWebPlayerContextConfig)==null?void 0:Y.contextId;X=B.webPlayerContextConfig.contextId;if(t&&t===X){e!==B.container&&(e=!1,yWl(V,"getPlayerState")===2&&(e=!0),B.container.appendChild(V),e||yWl(V,"playVideo"));var b;if((b=R.ytplayer)==null?0:b.bootstrapPlayerResponse)B.bootstrapPlayerResponse=R.ytplayer.bootstrapPlayerResponse}}},UOh=function(B){var R,V,e,X,Y;
_.W(function(t){if(t.nextAddress==1)return B.pageReadyOrDataAvailable?t.jumpTo(2):_.U(t,B.pageReadyOrDataAvailableResolver.promise,2);if(t.nextAddress!=4)return!_.k("kevlar_player_unified_player_loading")||ujo()&&otZ()?t.jumpTo(4):_.U(t,X1Y(),4);S9G(B);if(B.pendingPlayerResponse||B.pendingPlayerVars)R=p1Y(B.pendingPlayerResponse,B.pendingWatchNextResponse,B.pendingPlayerVars),B.pendingPlayerResponse&&B.pendingPlayerResponse===B.bootstrapPlayerResponse&&(R.loaded=!0),B.bootstrapPlayerResponse=void 0;
V=W_5(B.container,R,B.webPlayerContextConfig);((e=R)==null?0:e.loaded)&&B.pendingWatchNextResponse?(Gc4(B,B.pendingWatchNextResponse),B.pendingPlayerResponse=void 0,B.pendingPlayerVars=void 0):HN2(B);X=function(b){V.removeEventListener("onReady",X);B.synchronousApi=b;B.apiResolver.resolve(b)};
V.addEventListener("onReady",X);B.commandResolver!==void 0&&(Y=B.commandResolver,V.addEventListener("innertubeCommand",function(b){Y(b)}));
_.b3(t)})};
iT.prototype.loadVideo=function(B,R,V){var e=this,X,Y,t,b,J,G,y,S,M;return _.W(function(f){if(f.nextAddress==1)return e.pendingPlayerResponse=B,e.pendingWatchNextResponse=R,e.pendingPlayerVars=V,JWT(e),e.synchronousApi?(X=e.synchronousApi,f.jumpTo(2)):_.U(f,e.api,3);f.nextAddress!=2&&(X=f.yieldResult);N7b(e,X);t=new Promise(function(z){Y=z});
b=function(){var z=X.getPlayerResponse();z&&(X.removeEventListener("onVideoDataChange",b),Y(z))};
X.addEventListener("onVideoDataChange",b);if(e.pendingPlayerResponse||e.pendingPlayerVars)e.pendingPlayerResponse&&e.pendingPlayerResponse===e.bootstrapPlayerResponse?(Y(e.pendingPlayerResponse),e.pendingWatchNextResponse&&Gc4(e,e.pendingWatchNextResponse)):(J=p1Y(e.pendingPlayerResponse,e.pendingWatchNextResponse,e.pendingPlayerVars),(M=(G=e.pendingPlayerResponse)==null?void 0:(y=G.playerConfig)==null?void 0:(S=y.playbackStartConfig)==null?void 0:S.startPaused)?X.cueVideoByPlayerVars(J.args):X.loadVideoByPlayerVars(J.args)),
HN2(e),e.bootstrapPlayerResponse=void 0;return f.return(t)})};
var jZv=function(B){if(document.readyState==="complete"||document.readyState==="interactive")JWT(B);else{var R=function(){document.removeEventListener("DOMContentLoaded",R);JWT(B)};
document.addEventListener("DOMContentLoaded",R)}},JWT=function(B){B.pageReadyOrDataAvailable=!0;
B.pageReadyOrDataAvailableResolver.resolve()},HN2=function(B){B.pendingPlayerResponse=void 0;
B.pendingWatchNextResponse=void 0;B.pendingPlayerVars=void 0};
_.mh.Object.defineProperties(iT.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var s_=function(B){xX.call(this,B===void 0?"document_active":B);var R=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(V){R.transition("document_disposed",{event:V})});
window.addEventListener("beforeunload",function(V){R.transition("document_disposed_preventable",{event:V})});
window.addEventListener("unload",function(V){R.transition("document_disposed",{event:V});R.hasRun=new Map})};
_.l(s_,xX);
s_.prototype.runPreventableDispose=function(B,R){if(!this.hasRun.get("document_disposed_preventable")){B(R==null?void 0:R.event);var V,e;if((R==null?0:(V=R.event)==null?0:V.defaultPrevented)||(R==null?0:(e=R.event)==null?0:e.returnValue)){R.event.returnValue||(R.event.returnValue=!0);R.event.defaultPrevented||R.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
s_.prototype.runDispose=function(B,R){this.hasRun.get("document_disposed")?this.transition("document_active"):(B(R==null?void 0:R.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
s_.prototype.runFlush=function(B,R){B(R==null?void 0:R.event);this.transition("document_active")};
s_.prototype.runActive=function(){};var F2=function(B){xX.call(this,B===void 0?"document_visibility_unknown":B);var R=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(V){document.visibilityState==="visible"?R.transition("document_visible",{event:V}):R.transition("document_hidden",
{event:V})});
_.k("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(V){R.transition("document_backgrounded",{event:V})}),window.addEventListener("focus",function(V){R.transition("document_foregrounded",{event:V})}))};
_.l(F2,xX);F2.prototype.runVisible=function(B,R){B(R==null?void 0:R.event);_.k("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
F2.prototype.runHidden=function(B,R){B(R==null?void 0:R.event);_.k("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
F2.prototype.runBackgrounded=function(B,R){B(R==null?void 0:R.event)};
F2.prototype.runForegrounded=function(B,R){B(R==null?void 0:R.event)};var rt=function(){this.teardownLifecycle=new s_;this.visibilityLifecycle=new F2};
rt.prototype.install=function(){var B=_.HB.apply(0,arguments),R=this;B.forEach(function(V){R.teardownLifecycle.install(V)});
B.forEach(function(V){R.visibilityLifecycle.install(V)})};var gt=function(){rt.call(this);var B={};this.install((B.document_disposed={callback:this.abortSlisAndFlush},B));_.k("combine_ve_grafts")&&(B={},this.install((B.document_disposed={callback:this.flushInteractionLoggingAttachVes},B)));B={};this.install((B.flush_logs={callback:this.logFinalPayload},B));_.k("web_log_cfg_cee_ks")||_.kD(_.dV,MKv)};
_.l(gt,rt);var JWY=function(){gt.loggingInstance||(gt.loggingInstance=new gt);return gt.loggingInstance};
gt.prototype.logFinalPayload=function(){if(_.k("web_fp_via_jspb")){var B=new pw4,R=_.TE();R&&_.bg(B,1,R);R=_.k("jspb_sparse_encoded_pivot")?new Me([{}]):new Me;_.Vm(R,380,Yqv,B);$EZ("finalPayload",R);_.k("web_fp_via_jspb_and_json")&&_.dn("finalPayload",{csn:_.TE()})}else _.dn("finalPayload",{csn:_.TE()})};
gt.prototype.abortSlisAndFlush=function(){bFv(iW);sN!=null&&sN.flush()};
gt.prototype.flushInteractionLoggingAttachVes=function(){LVa(_.WK())};
var MKv=function(){var B=_.vE("CLIENT_EXPERIMENT_EVENTS");if(B){var R=cAq();B=_.h(B);for(var V=B.next();!V.done;V=B.next())V=V.value,R(V)&&_.dn("genericClientExperimentEvent",{eventType:V});delete _.xj.CLIENT_EXPERIMENT_EVENTS}};var kca={};
kca.YtPlayerBehavior=[_.cu.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 B=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Xs;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;jZu(function(){B.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.T8(this,"pan-down"),_.k("kevlar_pinch_fullscreen")&&_.YZ().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.k("kevlar_pinch_fullscreen")&&_.YZ().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(B,R,V){var e=this;oV(this.useUnifiedPlayer_());if(this.mainAppPlayer_)oV(!1,"MainAppPlayer already created.");else{var X=_.k("kevlar_player_container_query_killswitch")?this.$.container:_.w(this.hostElement).querySelector("#container");this.mainAppPlayer_=new iT(this.getWebPlayerContextConfig_(),X,function(Y){return _.Xc(Y,e.hostElement)},B,R,V);
this.mainAppPlayer_.api.then(function(Y){e.player_=Y;e.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&x3G.resolve(Y)})}},
loadVideoWithPlayerResponse:function(B,R){var V=this;if(this.useUnifiedPlayer_()){var e=this.watchNextData,X,Y=(X=B.videoDetails)==null?void 0:X.videoId,t,b,J;(X=(t=this.watchNextData)==null?void 0:(b=t.currentVideoEndpoint)==null?void 0:(J=b.watchEndpoint)==null?void 0:J.videoId)&&Y!=X&&(e=void 0,_.k("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(B,e,R):this.createMainAppPlayer_(B,e,R);this.mainAppPlayer_.api.then(function(){_.OI(V.hostElement,
"yt-player-updated")})}else this.update($bd(B,R))},
loadVideoWithPlayerVars:function(B){var R=this;this.useUnifiedPlayer_()?(_.k("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(B):this.createMainAppPlayer_(void 0,void 0,B),this.mainAppPlayer_.api.then(function(){_.OI(R.hostElement,"yt-player-updated")})):this.update({args:B})},
update:function(B){var R=this;if(this.useUnifiedPlayer_())oV(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(B);var V=baI(B.args);V&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==V&&Object.assign(B.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(B).then(function(e){_.OI(R.hostElement,"yt-player-updated",_.k("kevlar_player_updated_obsolete_player_killswitch")?
e:void 0)})}_.v5(new _.H8("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,R.getPlayerPromise(),2);V=e.yieldResult;if(!V)throw Error("uh");B&&R.updatePlayerPlaylist_(B);_.b3(e)})},
acquireApi_:function(B){var R=this;if(this.useUnifiedPlayer_())oV(!1,"Invalid method call in kevlar_unified_player.");else return _.dV.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(oV(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(V){R.shouldAutoplay_(B)?V.loadVideoByPlayerVars(B.args):V.cueVideoByPlayerVars(B.args)})):this.initPlayerPromise_=this.initPlayerContainer_(B),this.initPlayerPromise_},
initPlayerContainer_:function(B){var R=this;if(this.useUnifiedPlayer_())oV(!1,"Invalid method call in kevlar_unified_player.");else return oV(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.KE(Error("vh")),oV(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.k("kevlar_player_container_query_killswitch")?this.$.container:_.w(this.hostElement).querySelector("#container"),X1Y().then(function(){var V=R.initPlayer_(B);R.playerResolver_.resolve(V);
return V})},
onPlayerReady_:function(B,R){this.useUnifiedPlayer_()?oV(!1,"Invalid method call in kevlar_unified_player."):(B.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&x3G.resolve(B),R(B))},
maybeCallApiMethodOnElement_:function(B,R){if(typeof B[R]==="function")return B[R]()},
maybeAdoptBootstrapPlayer_:function(){var B=window,R,V=(R=B.ytplayer)==null?void 0:R.bootstrapPlayerContainer;if((R=V==null?void 0:V.firstElementChild)&&R.classList.contains("html5-video-player")){var e,X,Y=(e=B.ytplayer)==null?void 0:(X=e.bootstrapWebPlayerContextConfig)==null?void 0:X.contextId;e=this.getWebPlayerContextConfig_().contextId;if(Y&&Y===e){V!==this.playerContainer_&&(V=!1,this.maybeCallApiMethodOnElement_(R,"getPlayerState")===2&&(V=!0),this.playerContainer_.appendChild(R),V||this.maybeCallApiMethodOnElement_(R,
"playVideo"));var t;if((t=B.ytplayer)==null?0:t.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=B.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(B){var R=this;if(this.useUnifiedPlayer_())oV(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(V){R.maybeAdoptBootstrapPlayer_();var e=B?CLY(B):void 0;e&&e==R.bootstrapPlayerResponse_&&(B.loaded=!0);e=R.playerContainer_;var X=R.getWebPlayerContextConfig_();e=W_5(e,B,X);R.player_=e;R.onPlayerReadyEvent_=R.onPlayerReady_.bind(R,R.player_,V);R.player_.addEventListener("onReady",R.onPlayerReadyEvent_);R.player_.addEventListener("innertubeCommand",
R.onPlayerInnerTubeCommand_.bind(R))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(B){B.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(B){B.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var B=_.Oz().resolve(_.$B).getCurrentPage();B&&B.getScrollTop()<=0?_.T8(this,"pan-down"):_.T8(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(B){B.isFullscreen()||B.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(B){B.isFullscreen()&&B.toggleFullscreen()})},
updatePlayerPlaylist_:function(B){var R=this,V,e,X;return _.W(function(Y){if(Y.nextAddress==1)return V=_.Oz().resolve(_.uj(_.Ky)),e=!!(V&&V.playlistComponent&&V.playlistComponent.loopOn),_.U(Y,R.getPlayerPromise(),2);var t=X=Y.yieldResult,b=t.updatePlaylist,J=[];if(_.k("kevlar_player_playlist_use_local_index")){var G,y;var S=(y=(G=B.localCurrentIndex)!=null?G:B.currentIndex)!=null?y:0}else{var M;S=(M=B.currentIndex)!=null?M:0}if(B.contents)for(G=0;G<B.contents.length;G++)if((y=B.contents[G])&&y.playlistPanelVideoRenderer)if(eiZ(y)){y=
y.playlistPanelVideoRenderer;M="";y.shortBylineText&&(M=_.FF(y.shortBylineText));var f="";y.title?f=_.FF(y.title):y.unplayableText&&(f=_.FF(y.unplayableText));J.push({author:M,title:f,encrypted_id:y.videoId})}else G<S&&--S;b.call(t,{index:S,list:B.playlistId?B.playlistId:"",loop:e,playlist_title:B.title,playlist_length:J.length,video:J,fetch:0,external_list:"1",title:B.title?B.title:"",playlist_author:B.ownerName?_.FF(B.ownerName):void 0});_.b3(Y)})},
focusOnPlayer:function(){_.gB(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var B=this.playerContainer_.querySelector(".html5-video-player");B&&(_.ZF(_.Oz().resolve(_.fD)),B.focus())}})},
preparePlayer:function(){var B=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(R){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")R();else{var V=function(){document.removeEventListener("DOMContentLoaded",V);R()};
document.addEventListener("DOMContentLoaded",V)}})).then(function(){return X1Y()}).then(function(){B.initPlayerPromise_||B.preparePlayerJobId_||(B.preparePlayerJobId_=_.kD(_.dV,function(){B.initPlayerPromise_||(B.initPlayerPromise_=B.initPlayerContainer_())}))}):_.v5(new _.H8("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(B){this.useUnifiedPlayer_()?oV(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(B)||(B.args.autoplay="0")},
shouldAutoplay_:function(B){if(this.useUnifiedPlayer_())oV(!1,"Invalid method call in kevlar_unified_player.");else{var R=this.get("args.el",B);return R&&R!="detailpage"&&this.isMiniplayerActive_()||R&&(R=="sponsorshipsoffer"||R=="handlesclaiming")&&this.get("args.autoplay",B)=="0"?!1:(B=CLY(B))&&this.get("playerConfig.playbackStartConfig.startPaused",B)?!1:!0}},
isMiniplayerActive_:function(){return _.Oz().resolve(_.An).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var B=this.getPlayer();if(B){var R=B.getPlayerState();_.k("kevlar_player_check_ad_state_on_stop")&&(R=B.getPlayerState(B.getPresentingPlayerType()));R!=5&&B.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(B,R,V){V=V===void 0?!1:V;var e=this,X,Y,t,b;return _.W(function(J){if(J.nextAddress==1)return R||(R=e.hostElement),X=e.useUnifiedPlayer_()?!!e.mainAppPlayer_:!!e.initPlayerPromise_,X?_.U(J,e.getPlayerPromise(),2):(V?B.insertBefore(R,B.firstChild):B.appendChild(R),J.return());Y=J.yieldResult;t=Y.getPlayerState(Y.getPresentingPlayerType());b=!1;if(t==-1||t==1||t==3)b=!0;V?B.insertBefore(R,B.firstChild):B.appendChild(R);b&&Y.playVideo();Y.setSize(NaN,NaN);_.b3(J)})},
watchNextDataChanged_:function(B){var R=this;B&&(this.useUnifiedPlayer_()&&_.k("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Gc4(this.mainAppPlayer_,B):this.getPlayerPromise().then(function(V){V.updateVideoData(R.computeWatchNextPlayerVars_(B))}))},
computeWatchNextPlayerVars_:function(B){if(this.useUnifiedPlayer_()&&_.k("kevlar_unified_player_update_watch_next_killswitch"))oV(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:B}},
maybeSendAbandonmentPing_:function(){var B=this.getPlayer();B&&B.getPlayerState()!=5&&B.getPlayerState()!=0&&B.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var B=_.vE("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(B=Object.assign({},B),B.rootElementId=this.playerId);B.serializedExperimentIds&&B.serializedExperimentFlags||_.KE(Error("wh"));return B},
hasWebPlayerContextConfig_:function(){return!!_.vE("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(B){this.useUnifiedPlayer_()?oV(!1,"Invalid method call in kevlar_unified_player."):_.Xc(B,this.hostElement)},
useUnifiedPlayer_:function(){var B=_.k("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.k("kevlar_unified_player")||B}}];var DOT={};DOT.YtPlaylistPanelBehavior=[_.O.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(B){B=B.detail;if(B.actions.loop!=void 0||B.actions["yt-icons:loop"]!=void 0)this.loopOn=B.actions.loop||B.actions["yt-icons:loop"];if(B.actions.shuffle!=void 0||B.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=B.actions.shuffle||B.actions["yt-icons:shuffle"]},
setMenuData_:function(B){if(!B||!B.playlistButtons||B.isInfinite)return null;for(var R=B.playlistButtons.menuRenderer.topLevelButtons,V=R.length,e=0;e<V;e++)if(R[e].toggleButtonRenderer){var X=R[e].toggleButtonRenderer;X.defaultIcon.iconType=="LOOP"&&this.loopOn?X.isToggled=this.loopOn:X.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(X.isToggled=this.shuffleOn)}return B.playlistButtons}}];var fWl=function(B){BJ.call(this,B,132);this.isDocument=B===document.documentElement};
_.l(fWl,BJ);fWl.prototype.calculateScrollDelta=function(B,R,V){var e=0;B<R?e=B<R-100?-48:-8:B>R+V&&(e=B>R+V+100?48:8);return e};
fWl.prototype.JSC$9207_onMouseMove=function(B){this.isDocument||(B.clientX=B.event_.pageX,B.clientY=B.event_.pageY);BJ.prototype.JSC$9207_onMouseMove.call(this,B)};var mV=function(){var B=_.tM.apply(this,arguments)||this;B._noAccessors=!0;B.scrollElement=document.documentElement;B.JSC$12144_dragListGroup=null;B.dragScrollSupport=null;B.onDraggerCreated=function(R){var V=R.JSC$9203_dragger;V.scrollTarget_=B.scrollElement;R=R.draggerEl;V&&R.menuOpened&&V.setEnabled(!1)};
B.onDragStart=function(R){var V=R.draggerEl;R=R.currDragItem;var e=Object.assign({},R==null?void 0:R.data);e.trackingParams=void 0;V.data=e;V.style.position="absolute";V.style.width=(R==null?void 0:R.clientWidth)+"px";V.style.zIndex="2030";V.onDrag&&V.onDrag();_.k("web_owner_document_fallback_killswitch")?(R=document.querySelector("ytd-app"))&&_.w(R).appendChild(V):(R=_.zg(V),(e=R.querySelector("ytd-app"))?_.w(e).appendChild(V):R.body.appendChild(V));B.dragScrollSupport=new fWl(B.scrollElement);B.dragScrollSupport.horizontalScrolling_=
!1;V=B.dragScrollSupport;V.constrainScroll_=!!V.margin_&&!1};
B.onDrop=function(R){B.handleDrop(R);B.dragScrollSupport&&(_.Cx(B.dragScrollSupport),B.dragScrollSupport=null)};
B.onReorderableScroll=function(){if(B.JSC$12144_dragListGroup){var R=B.JSC$12144_dragListGroup;oAR(R,R.currDragItem_)}};
return B};
_.l(mV,_.tM);mV.prototype.detached=function(){_.lWR(this)};
_.lWR=function(B){B.JSC$12144_dragListGroup&&(_.SI(B.JSC$12144_dragListGroup,gG4,B.onDragStart),_.SI(B.JSC$12144_dragListGroup,Cz2,B.onDragStart),B.JSC$12144_dragListGroup.dispose(),B.JSC$12144_dragListGroup=null);B.dragScrollSupport&&(_.Cx(B.dragScrollSupport),B.dragScrollSupport=null);B.scrollElement.removeEventListener("scroll",B.onReorderableScroll)};
_.zBR=function(B,R,V,e){e=e===void 0?"":e;_.lWR(B);V&&(B.scrollElement=V);B.JSC$12144_dragListGroup=new q7;B.JSC$12144_dragListGroup.hysteresisDistance_=2;nGb(B.JSC$12144_dragListGroup,R);B.JSC$12144_dragListGroup.draggerElClasses_=US("dragging").split(" ");e&&uF5(B.JSC$12144_dragListGroup,function(X){var Y=X||document,t=null;Y.getElementsByClassName?t=Y.getElementsByClassName(e)[0]:t=FbG("*",e,X);return t||X});
_.G2(B.JSC$12144_dragListGroup,FP2,B.onDraggerCreated);_.G2(B.JSC$12144_dragListGroup,gG4,B.onDragStart);_.G2(B.JSC$12144_dragListGroup,Cz2,B.onDrop);B.JSC$12144_dragListGroup.init();B.scrollElement.addEventListener("scroll",B.onReorderableScroll,{passive:!0})};
mV.prototype.handleDrop=function(){};
_.mh.Object.defineProperties(mV.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.r([_.E({value:100}),_.Z("design:type",Number)],mV.prototype,"scrollMargin",void 0);mV=_.r([_.Wc()],mV);_.aW4=[mV.prototype];_.$c={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(B,R,V){var e=this.getClickTarget_(R);if(e&&this.isClickAllowed_(e)){R.preventDefault();B=(0,_.M_.unsafeClone)(B);var X=this.getContainerBoundingRect();R=this.getRelativeClickXy_(R,X);this.expandEndpointUrlMacros_(B,{NX:R[0],NY:R[1],NB:e.code});V&&this.truncateWebCommendMetadataUrl_(B);_.OI(this.hostElement,"yt-navigate",{endpoint:B})}},
getClickTarget_:function(B){if(!this.clickTargetMap)return null;B=_.Az(B)||[];B=_.h(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;if(R===_.w(this.hostElement).querySelector("#menu"))break;if(R=this.clickTargetMap.get(R.id))return R}return null},
getRelativeClickXy_:function(B,R){var V=B.detail.x,e=B.detail.y;_.k("use_on_click_for_desktop_display_ad")&&B.clientX!=null&&B.clientY!=null&&(V=B.clientX,e=B.clientY);B=Math.round(V-R.left);R=Math.round(e-R.top);return B<0||R<0?[null,null]:[B,R]},
getContainerBoundingRect:function(){return _.w(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(B,R){for(var V=_.h(B.loggingUrls||[]),e=V.next();!e.done;e=V.next())e=e.value,e.baseUrl&&(e.baseUrl=kl(e.baseUrl,R));B.urlEndpoint&&B.urlEndpoint.url&&(B.urlEndpoint.url=kl(B.urlEndpoint.url,R));B.commandMetadata&&B.commandMetadata.webCommandMetadata&&B.commandMetadata.webCommandMetadata.url&&(B.commandMetadata.webCommandMetadata.url=kl(B.commandMetadata.webCommandMetadata.url,R))},
truncateWebCommendMetadataUrl_:function(B){if(B.commandMetadata&&B.commandMetadata.webCommandMetadata&&B.commandMetadata.webCommandMetadata.url){var R=B.commandMetadata.webCommandMetadata.url,V=R.indexOf("&pp=");if(V>0){var e=R.indexOf("&",V+1);B.commandMetadata.webCommandMetadata.url=e>V&&e<R.length?R.slice(0,V)+R.slice(e):R.slice(0,V)}}},
configureClickTargets:function(B,R,V){this.containerId=B;this.clickTargetMap=new Map;B=_.h(R);for(R=B.next();!R.done;R=B.next())if(R=R.value,R.location){var e=V.get(R.location);e&&(_.nk(_.w(this.hostElement).querySelector("#"+e),"yt-simple-endpoint",this.isClickAllowed_(R)),this.clickTargetMap.set(e,R))}},
isClickAllowed_:function(B){return B.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||B.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||B.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||B.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.CL={};
_.CL.YtLazyListBehavior=[_.Fk.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 B=(this.constructor.generatedFrom||this).observers;B||(B=[]);B.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
B}},
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 B=this.renderElementsOutsideVisibleArea_;B&&(E74(B,4),B.processSignal())},
deepLazyListObserver_:function(B){var R=this;if(B){var V=B.value||[];if(this.itemsPath==B.path){var e=this.nonDeferredItemCount;B=0;e>-1&&V.length>e&&(B=_.vE("REMAINING_DOVA_DEFERRED_CHUNKS",-1));B>0?(e>0&&(e=V.slice(0,e),this.setInitialItemsOnDataChanged(e)),(e=this.renderElementsOutsideVisibleArea_)?e.cancel():(e=this.renderElementsOutsideVisibleArea_=new _.gM(2,"eocs"),_.nAo(window,"scroll",function(){return R.renderDeferredElements()})),_.Z2(e,function(){R.setInitialItemsOnDataChanged(V)}),_.LQ("REMAINING_DOVA_DEFERRED_CHUNKS",
B-1)):this.setInitialItemsOnDataChanged(V)}else if(this.itemsPath+".splices"==B.path)this.onItemsUpdated_(V);
else e="shownItems"+B.path.substr(this.itemsPath.length),this.useSignals&&e==="shownItems.length"||this.notifyPath(e,B.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(B){B&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(B),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(B){B=B.indexSplices;for(var R=0,V=B.length;R<V;R++){var e=B[R];if(e.index<this.shownCount&&(e.removed&&this.splice("shownItems",e.index,e.removed.length),e.addedCount)){var X=e.object.slice(e.index,e.index+e.addedCount);e=["shownItems",e.index,0];e.push.apply(e,X);this.splice.apply(this,e)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(B){this.cancelPendingTasks_();B||(B=[]);this.items_=B;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&&(_.KQ("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.gB(this,this.tryRenderChunk_)))},
fillRange_:function(B,R){this.canShowMore&&this.items_&&(B=this.items_.slice(B,R),B.unshift("shownItems"),this.push.apply(this,B),this.shownCount=R,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var B=this;this.canShowMore&&_.LJ(this,"renderChunk",function(){B.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.KQ("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.kx(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var B=this.renderElementsOutsideVisibleArea_;B&&(B.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var B=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(B-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=B;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(B){return Math.ceil(1E3/B)},
onCanShowMoreUpdated_:function(B){this.data&&this.items_!==null&&(B?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(B){!this.shouldUseTaskManager()&&this.data&&(!B&&this.canShowMore?(_.c7x(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):B&&this.partiallyRenderedItems_.has(this.items_)&&(_.k("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var uT;_.Pu={};
uT=function(){var B=_.tM.apply(this,arguments)||this;B.atStart=!0;B.atEnd=!0;B.startIndex=0;B.endIndex=0;B.scrollCount=0;B.initialStartIndex=0;B.disableScrollEventListener=!1;B.useFloorScrolling=!1;B.isSearch=!1;B.dragging=!1;B.dragMouseStart=0;B.dragOffsetStart=0;B.disableWheelScroll=!1;B.centerListItems=!1;B.offset=0;B.minComponentWidth=0;B.marginWidthRight=0;B.marginWidthLeft=0;B.setButtonsStateRequested=!1;B.itemsVisibilityObserver=null;B.fullyVisibleItemsIndices=[];B.JSC$12155_onWheelScroll=function(R){if(B.isSearch&&
!B.disableWheelScroll&&_.k("desktop_enable_dmpanel_wheel_scroll")){var V=R.shiftKey?Math.abs(R.deltaY)>Math.abs(R.deltaX)?R.deltaY:R.deltaX:R.deltaX;V!==0&&(R.preventDefault(),B.ytLazyListBehavior.fillRemainingListItems(),B.offset+=V,nL(B),B.reposition_())}};
B.onPointerDown=function(R){dOv(B)&&(B.dragMouseStart=R.clientX,B.dragOffsetStart=B.offset,B.dragging=!0)};
B.onPointerMove=function(R){dOv(B)&&B.dragging&&(B.ytLazyListBehavior.fillRemainingListItems(),B.offset=B.dragOffsetStart-(R.clientX-B.dragMouseStart),nL(B),B.reposition_())};
B.onPointerUp=function(){dOv(B)&&(B.dragging=!1)};
return B};
_.l(uT,_.tM);var w1b=function(B){var R=_.w(B.hostElement).querySelector("#items").children;if(!R)return 0;var V=0;B=_.h(B.fullyVisibleItemsIndices);for(var e=B.next();!e.done;e=B.next())V+=R[e.value].clientWidth;return V},dOv=function(B){return B.isSearch&&_.k("desktop_enable_dmpanel_click_drag_scroll")};
uT.prototype.created=function(){this.cachedViewportWidth=_.vE("initialInnerWidth")||window.innerWidth;this.JSC$12155_cachedViewportHeight=_.vE("initialInnerHeight")||window.innerHeight;_.vE("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.LQ("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
uT.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.k("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();T7G(this)};
uT.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.k("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var B;(B=this.itemsVisibilityObserver)==null||B.disconnect();this.itemsVisibilityObserver=null;var R;(R=this.itemsObserver)==null||R.disconnect()};
var T7G=function(B){var R=_.w(B.hostElement).querySelector("#scroll-container");if(R){if(!B.itemsVisibilityObserver){var V=window.getComputedStyle(R).marginRight;B.itemsVisibilityObserver=new IntersectionObserver(function(e){xOh(B,e)},{root:R,
rootMargin:V,threshold:.98})}if(R=_.w(B.hostElement).querySelector("#items"))B.itemsObserver=new Lyh(R,function(e){L_T(B,e)})}},L_T=function(B,R){vt4(B)&&(Array.from(R.addedNodes).filter(function(V){return V.nodeType===Node.ELEMENT_NODE}).forEach(function(V){B.itemsVisibilityObserver&&B.itemsVisibilityObserver.observe(V)}),Array.from(R.removedNodes).filter(function(V){return V.nodeType===Node.ELEMENT_NODE}).forEach(function(V){B.itemsVisibilityObserver&&B.itemsVisibilityObserver.unobserve(V)}))},
xOh=function(B,R){var V=new Set(B.fullyVisibleItemsIndices);
R=_.h(R);for(var e=R.next();!e.done;e=R.next()){e=e.value;var X=e.target.parentElement;X?(X=Array.from(X.children).indexOf(e.target),e.isIntersecting?V.add(X):V.has(X)&&V.delete(X)):_.KE(new _.H8("Parent element not found",e.target.nodeName))}B.fullyVisibleItemsIndices=Array.from(V).sort(function(Y,t){return Y-t});
V.size===0?_.KE(new _.H8("No visible entries in horizontal list")):(B.startIndex=B.fullyVisibleItemsIndices[0],B.endIndex=B.fullyVisibleItemsIndices[B.fullyVisibleItemsIndices.length-1])},vt4=function(B){B.data?B=(B=B.data)&&B.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===B.itemSizeConstraint:!1:B=!1;
return B};
_.p=uT.prototype;_.p.addScrollEventListeners=function(){var B=_.w(this.hostElement).querySelector("#scroll-container");B.style.touchAction="pan-y";B.addEventListener("wheel",this.JSC$12155_onWheelScroll);B.addEventListener("pointerdown",this.onPointerDown);B.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.p.removeScrollEventListeners=function(){var B=_.w(this.hostElement).querySelector("#scroll-container");B.removeEventListener("wheel",this.JSC$12155_onWheelScroll);B.removeEventListener("pointerdown",this.onPointerDown);B.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&&_.gB(this,this.setStartIndex,[this.initialStartIndex])};
_.p.reposition_=function(){var B=_.vE("HTML_DIR")=="rtl"?"":"-",R=_.w(this.hostElement).querySelector("#items");R&&(R.style.transform="translateX("+B+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.p.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.gB(this,this.setButtonsState_))};
_.p.setButtonsState_=function(){this.setButtonsStateRequested=!1;var B=_.w(this.hostElement).querySelector("#items").firstElementChild;if(B){this.minComponentWidth||(this.minComponentWidth=K_5(this,B));B=_.w(this.hostElement).querySelector("#scroll-container").clientWidth;var R=_.w(this.hostElement).querySelector("#items").clientWidth,V=this.get(this.ytLazyListBehavior.itemsPath,this);if(V){var e=Math.round(B/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+e,V.length)-1)}this.ytLazyListBehavior.canShowMore?R+this.minComponentWidth>=this.offset+B&&(this.atEnd=!1):this.atEnd=this.offset+B>=R-20?!0:!1;this.atStart=this.offset<=20}};
_.p.setStartIndex=function(B){if(!this.minComponentWidth){var R=_.w(this.hostElement).querySelector("#items").firstElementChild;if(!R)return;this.minComponentWidth=K_5(this,R)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*B;nL(this);this.reposition_()};
_.p.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.bx();var B=_.w(this.hostElement).querySelector("#scroll-container").clientWidth;_.k("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=K_5(this,_.w(this.hostElement).querySelector("#items").firstElementChild));B=this.useFloorScrolling?Math.floor(B/this.minComponentWidth)||1:Math.round(B/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&IWS(this);this.offset+=vt4(this)?
w1b(this):B*this.minComponentWidth;nL(this);this.reposition_();this.scrollCount++};
_.p.prevClick_=function(){var B=_.w(this.hostElement).querySelector("#scroll-container").clientWidth;B=this.useFloorScrolling?Math.floor(B/this.minComponentWidth)||1:Math.round(B/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=vt4(this)?w1b(this):this.minComponentWidth*this.scrollCount-1):this.offset-=vt4(this)?w1b(this):B*this.minComponentWidth;this.centerListItems&&IWS(this);nL(this);this.reposition_()};
_.p.onIronResize_=function(){this.resizeSupportEnabled&&_.gB(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.p.onItemsTransitionEnd_=function(B){_.ii(B)===_.w(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.p.onChildElementFocus_=function(B){B=B.target.closest("#items > *");var R=_.w(this.hostElement).querySelector("#scroll-container");if(R.contains(B)){if(_.k("web_horizontal_list_behavior_focus_killswitch"))if(B.offsetLeft<this.offset)this.offset=Math.abs(B.offsetLeft)<B.clientWidth?0:B.offsetLeft;else if(B.offsetLeft+B.clientWidth>this.offset+R.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.bx(),this.offset=B.offsetLeft+B.clientWidth-R.clientWidth;else return;else{var V=_.w(this.hostElement).querySelector("#items"),
e=_.vE("HTML_DIR")==="rtl",X=e?V.clientWidth-B.offsetLeft:B.offsetLeft;V=e?V.clientWidth-(B.offsetLeft+B.clientWidth):B.offsetLeft+B.clientWidth;var Y=e?X>this.offset+R.clientWidth:X<this.offset,t=e?V<this.offset:V>this.offset+R.clientWidth,b=e?Y:t;if(e?t:Y)R=e?V:X,this.offset=Math.abs(R)<B.clientWidth?0:R;else if(b)this.ytLazyListBehavior.fillRemainingListItems(),_.bx(),this.offset=(e?X:V)-R.clientWidth;else return}nL(this);this.reposition_()}};
_.p.observeShownItems_=function(){this.reset()};
_.p.checkComponentWidthResize=function(){var B=_.w(this.hostElement).querySelector("#items").firstElementChild;B&&(B=K_5(this,B),this.centerListItems||B!==this.minComponentWidth)&&(this.minComponentWidth=B,this.offset=B*this.scrollCount,this.centerListItems&&IWS(this),nL(this),this.reposition_())};
var K_5=function(B,R){var V=window.getComputedStyle(R).marginRight;V=Math.floor(Number(V.replace("px","")));var e=window.getComputedStyle(R).marginLeft;e=Math.floor(Number(e.replace("px","")));B.centerListItems&&!B.marginWidthRight&&(B.marginWidthRight=V,B.marginWidthLeft=e);return B.resizeSupportEnabled?R.getBoundingClientRect().width+V:R.offsetWidth+V},nL=function(B){var R=_.w(B.hostElement).querySelector("#scroll-container").clientWidth,V=_.w(B.hostElement).querySelector("#items").clientWidth;
B.offset<0?B.offset=0:B.offset+R>=V&&(B.offset=V-R)},IWS=function(B){B.offset-=(_.w(B.hostElement).querySelector("#scroll-container").clientWidth+B.marginWidthRight-B.minComponentWidth)/2-B.marginWidthLeft};
_.mh.Object.defineProperties(uT.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var B=_.vE("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(B==-1)B=this.JSC$12155_cachedViewportHeight,B=B>1320?5:B>1020?4:B>730?3:B>430?2:1;else if(B==0)return 0;_.LQ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",B-1);B=_.vE("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(B>-1)return B;B=this.cachedViewportWidth;B=B>1600?6:B>1400?5:B>1300?4:B>1090?5:B>870?4:B>660?3:2;_.LQ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
B);return B},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.k("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
uT.prototype.observeShownItems_=uT.prototype.observeShownItems_;uT.prototype.onChildElementFocus_=uT.prototype.onChildElementFocus_;uT.prototype.onItemsTransitionEnd_=uT.prototype.onItemsTransitionEnd_;uT.prototype.onIronResize_=uT.prototype.onIronResize_;uT.prototype.prevClick_=uT.prototype.prevClick_;uT.prototype.nextClick_=uT.prototype.nextClick_;uT.prototype.setButtonsState_=uT.prototype.setButtonsState_;uT.prototype.requestButtonsStateUpdate_=uT.prototype.requestButtonsStateUpdate_;
uT.prototype.reposition_=uT.prototype.reposition_;uT.prototype.reset=uT.prototype.reset;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.CL.YtLazyListBehavior),_.Z("design:type",Object)],uT.prototype,"ytLazyListBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uT.prototype,"atStart",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uT.prototype,"atEnd",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"startIndex",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"endIndex",void 0);_.r([_.E({value:6}),_.Z("design:type",Number)],uT.prototype,"initialCount",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"scrollCount",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"initialStartIndex",void 0);
_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"disableScrollEventListener",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"supportComponentResize",void 0);_.r([_.E({value:function(){var B=this;return function(){return B.prevClick_()}}}),
_.Z("design:type",Function)],uT.prototype,"boundPrevClick",void 0);_.r([_.E({value:function(){var B=this;return function(){return B.nextClick_()}}}),
_.Z("design:type",Function)],uT.prototype,"boundNextClick",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"useFloorScrolling",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"isSearch",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"dragging",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"dragMouseStart",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"dragOffsetStart",void 0);
_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"disableWheelScroll",void 0);_.r([_.E(),_.Z("design:type",Object)],uT.prototype,"centerListItems",void 0);_.r([_.R_("iron-resize"),_.XX("guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uT.prototype,"onIronResize_",null);_.r([_.R_("transitionend"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],uT.prototype,"onItemsTransitionEnd_",null);
_.r([_.R_("focusin"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],uT.prototype,"onChildElementFocus_",null);_.r([_.XX("shownItems"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uT.prototype,"observeShownItems_",null);uT=_.r([_.Wc()],uT);_.Pu.YtdHorizontalListBehavior=[];_.Pu.YtdHorizontalListBehavior.push(_.LC,_.O.YtRendererBehavior,_.CL.YtLazyListBehavior,_.KL.YtdGuideStateAwareBehavior,uT.prototype);var N7I=["APP_STATE","PI"];var Etv=_.$Q(["about:blank"]),QZa={pushState:window.history.pushState,replaceState:window.history.replaceState};var O_=function(B){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=B;this.internalPushState=B.pushState.bind(B);this.internalReplaceState=B.replaceState.bind(B)};
O_.prototype.init=function(){this.initialized=!0};
O_.prototype.pushState=function(B,R){this.initialized||this.init();this.internalPushState&&this.internalPushState(B,"",R)};
O_.prototype.replaceState=function(B,R){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(B,"",R)};
O_.prototype.getState=function(){return this.history&&this.history.state};var q9S=function(B){var R=function(){var V=B.apply(this,arguments)||this;V.boundHistoryPushState=!1;V.boundHistoryReplaceState=!1;V.debugInfo={};return V};
_.l(R,B);R.prototype.init=function(){var V=_.jr("IFRAME");_.wc(V,_.u3(Etv));V.sandbox="allow-same-origin";V.style.display="none";this.iframe=V;document.body.appendChild(V);this.bindHistoryStateFunctions();B.prototype.init.call(this)};
R.prototype.bindHistoryStateFunctions=function(){var V=this,e=[],X;this.iframe&&((X=this.iframe.contentWindow)==null?0:X.history)&&(X=this.iframe.contentWindow.history)&&(e.push(X),Object.getPrototypeOf(X)&&e.push(Object.getPrototypeOf(X)));window.history&&e.push(window.history);X=window.history;Object.getPrototypeOf(X)&&e.push(Object.getPrototypeOf(X));e.push(QZa);X=function(t){for(var b=null,J=0;J<e.length;J++){var G=e[J][t];if(typeof G==="function"){b=G.bind(window.history);V.debugInfo[t]=J;break}}return b};
if(!this.boundHistoryReplaceState){var Y=X("replaceState");Y&&(this.internalReplaceState=Y,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(X=X("pushState"))&&(this.internalPushState=X,this.boundHistoryPushState=!0)};
return R}(O_),cWv=function(){return q9S.call(this,window.history)||this};
_.l(cWv,q9S);cWv.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var of=function(B){this.browserHistory=B;this.initialized=!1};
of.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
of.prototype.pushState=function(B,R){this.initialized||this.init();this.browserHistory.pushState(B,R)};
of.prototype.replaceState=function(B,R){this.initialized||this.init();this.browserHistory.replaceState(B,R)};
of.prototype.handlePopstate=function(B){return B.state};_.AWa=function(B,R,V,e,X){this.endpoint=B;this.forward=R;this.historyEntry=V;this.JSC$26427_savedComponentState=e;this.legacyBorder=X===void 0?!1:X};var iN_=function(B,R){this.rootData=B;this.scrollTop=R};var aH=new _.u0("PAGE_REQUEST_TOKEN"),pM_=new _.u0("FETCH_PBJ_TOKEN");_.BO=new _.u0("EPHEMERAL_STORE_TOKEN");_.Rf=function(B){this.data=Object.assign({},B);var R;(R=this.data.innertubeResponse)==null||delete R.frameworkUpdates};
_.Rf.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.P8)()};
_.WS=function(B){return Object.assign({},B.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var sZ_=function(){this.maxSize=100;this.timeToDataCache=new Map};
sZ_.prototype.get=function(B){var R=this.timeToDataCache.get(B);R&&(this.timeToDataCache.delete(B),this.timeToDataCache.set(B,R));if(R&&R.rootData&&(_.k("web_use_response_store_for_history_cache")||_.k("mweb_use_new_history_manager"))){var V=_.Oz().resolve(_.BO),e=F_J(R),X=!!e;if(e){if(e.content){var Y=Ve(V,e.content);X&&Y?R.rootData.response=_.WS(Y):X=!1}e.player&&(Y=Ve(V,e.player),X&&Y?R.rootData.playerResponse=_.WS(Y):X=!1);e.reelSequence&&(V=Ve(V,e.reelSequence),X&&V?R.rootData.reelWatchSequenceResponse=
_.WS(V):X=!1)}X||(this.timeToDataCache.delete(B),R=void 0)}return R};
sZ_.prototype.set=function(B,R){if(R.rootData&&(_.k("web_use_response_store_for_history_cache")||_.k("mweb_use_new_history_manager"))){var V=F_J(R),e=Object.assign({},R.rootData);V&&(V.content&&R.rootData.response&&(rWb(this,V.content,R.rootData.response),e.response=null),V.player&&R.rootData.playerResponse&&(rWb(this,V.player,R.rootData.playerResponse),e.playerResponse=null),V.reelSequence&&R.rootData.reelWatchSequenceResponse&&(rWb(this,V.reelSequence,R.rootData.reelWatchSequenceResponse),e.reelWatchSequenceResponse=
null));R=new iN_(e,R.scrollTop)}this.timeToDataCache.has(B)?this.timeToDataCache.delete(B):this.timeToDataCache.size>=this.maxSize&&(V=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(V.value));this.maxSize!==0&&this.timeToDataCache.set(B,R)};
sZ_.prototype.clear=function(){this.timeToDataCache.clear()};
var F_J=function(B){var R=_.Oz().resolve(_.uj(aH)),V;if((V=B.rootData)==null?0:V.endpoint)return R==null?void 0:fRd(R,B.rootData.endpoint);var e;_.KE(new _.H8("History snapshot response data does not contain endpoint",(e=B.rootData)==null?void 0:e.url));return null},rWb=function(B,R,V){if(B.maxSize>0){var e;
(B=(e=V.responseContext)==null?void 0:e.maxAgeSeconds)&&Number(B)>0&&(e=_.Oz().resolve(_.BO),V=V1(V,B),e.put(R,new _.Rf(V)))}};var gtv=function(B,R,V){this.endpoint=R;this.JSC$26432_savedComponentState=V===void 0?null:V;this.entryTime=B};var kcp=1;var ef=function(B){var R=function(){var V=B.apply(this,[].concat(_.MI(_.HB.apply(0,arguments))))||this;V.historyEntryTime=0;V.historySnapshotCache=V.createHistoryCache();return V};
_.l(R,B);R.prototype.createHistoryCache=function(){return new sZ_};
R.prototype.saveAndReplace=function(V,e,X){var Y=window.location.href;var t=t===void 0?{}:t;var b=(b=this.browserHistory.getState())&&b.entryTime?b.entryTime:DOY();V=this.createNewHistoryEntry(V,t,b);this.saveSnapshot(b,e,X);this.replaceState(V,Y||window.location.href)};
R.prototype.saveAndPush=function(V,e,X,Y,t){t=t===void 0?{}:t;this.saveSnapshot(this.historyEntryTime,X,Y);X=this.historySnapshotCache;Y=this.historyEntryTime;var b=X.timeToDataCache.keys();b=_.h(b);for(var J=b.next();!J.done;J=b.next())J=J.value,J>Y&&X.timeToDataCache.delete(J);e=this.createNewHistoryEntry(e,t);this.pushState(e,V)};
R.prototype.saveSnapshot=function(V,e,X){this.historySnapshotCache.set(V,new iN_(e,X))};
R.prototype.createNewHistoryEntry=function(V,e,X){X=X===void 0?DOY():X;return new gtv(X,V,e)};
R.prototype.handlePopstate=function(V){var e=B.prototype.handlePopstate.call(this,V),X=null,Y=null,t=!1,b=null;e&&e.entryTime&&(b=this.historySnapshotCache.get(e.entryTime)||null,t=e.entryTime>this.historyEntryTime,this.historyEntryTime=e.entryTime,X=e.endpoint,Y=e.JSC$26432_savedComponentState);this.handleHistoryCacheLoad(new _.AWa(X,t,b,Y),V);return e};
R.prototype.pushState=function(V,e){Number(V==null?void 0:V.entryTime)>=0&&(this.historyEntryTime=V.entryTime);B.prototype.pushState.call(this,V,e)};
R.prototype.replaceState=function(V,e){Number(V==null?void 0:V.entryTime)>=0&&(this.historyEntryTime=V.entryTime);B.prototype.replaceState.call(this,V,e)};
R.prototype.handleHistoryCacheLoad=function(){};
return R}(of),ZNJ=function(){var B=ef.call(this,new cWv)||this;
B.dispatchElement=null;B.entryIndex=0;return B};
_.l(ZNJ,ef);_.p=ZNJ.prototype;_.p.init=function(B){B=B===void 0?!0:B;ef.prototype.init.call(this);this.initialized||(B||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.p.handlePopstate=function(B){var R=null;B.state||(R="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return ef.prototype.handlePopstate.call(this,B);var V=new CustomEvent("yt-history-pop",{cancelable:!0});_.oF(this.dispatchElement,"yt-history-pop",[V,{errorMsg:R}]);_.Bz(this.dispatchElement,"yt-close-all-popups-action");if(!V.defaultPrevented){V=_.Oz().resolve(_.$B);R=V.getCurrentData();var e=V.getCurrentPage();V=0;e?(e=_.oF(this.dispatchElement,"yt-get-page-offset",
[e]),e.length>0&&(V=e[0])):_.KE(new _.H8("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:R?R.page:"undefined"}));R&&(R.csn=_.TE());this.saveSnapshot(this.historyEntryTime,R,V)}return ef.prototype.handlePopstate.call(this,B)};
_.p.handleHistoryCacheLoad=function(B,R){B.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.h(_.Bz(this.dispatchElement,"yt-history-will-navigate",[R])).next().value||_.oF(this.dispatchElement,"yt-history-load",[R,B]))};
_.p.pushState=function(B,R){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var V=new _.H8("history.pushState is not a function",this.getDebugString());_.Tn(V)}ef.prototype.pushState.call(this,B,R)};
_.p.replaceState=function(B,R){if(!this.browserHistory.boundHistoryReplaceState){var V=new _.H8("history.replaceState is not a function",this.getDebugString());_.Tn(V)}ef.prototype.replaceState.call(this,B,R)};
_.p.saveAndPush=function(B,R,V,e,X){X=X===void 0?{}:X;V&&(V.csn=_.TE());ef.prototype.saveAndPush.call(this,B,R,V,e,X)};
_.p.getDebugString=function(){var B=[];this.initialized&&B.push("i");this.browserHistory.boundHistoryReplaceState&&B.push("bhr");this.browserHistory.boundHistoryPushState&&B.push("bhs");"replaceState"in this.browserHistory.debugInfo&&B.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&B.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&B.push("ei:"+String(this.entryIndex));return B.join(",")};
_.Xq=function(B,R){B.init(!0);var V=B.browserHistory.getState();B.replaceState(V,RV(R))};
ZNJ.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.pI=new _.u0("DESKTOP_HISTORY_MANAGER_TOKEN");var mOR=[10,20,30,40,50,60],Y2=function(){this.currentPartitionIndex=0},$O2=function(B){MSl({mainAppWeb:_.EX(),
survivalSli:{partitionMinute:B,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},C7l=function(B){MSl({mainAppWeb:_.EX(),
survivalSli:{partitionMinute:B,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},P7o=function(B){return B.currentPartitionIndex>=0&&B.currentPartitionIndex<mOR.length?mOR[B.currentPartitionIndex]:-1},nt5=function(B){return B.currentPartitionIndex>0&&B.currentPartitionIndex-1<mOR.length?mOR[B.currentPartitionIndex-1]:-1};
Y2.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var B=nt5(this);B>0&&C7l(B);B=P7o(this);B>0&&$O2(B);uY_(this)}};
var uY_=function(B){var R=P7o(B);if(R>0){var V=nt5(B);V<0&&(V=0);B.intervalId=_.dV.addJob(function(){var e=nt5(B);e>0&&C7l(e);e=P7o(B);e>0&&$O2(e);uY_(B)},3,(R-V)*6E4);
B.currentPartitionIndex+=1}else B.currentPartitionIndex=-1};var ONJ=function(){this.skipNextNavigation=!1},oSa=function(B,R,V){if(!R)return!1;
if(B.skipNextNavigation)return B.skipNextNavigation=!1;if(_.D(V,_.ie))return!1;var e,X,Y;if((e=_.D(V,_.Jz))==null?0:(X=e.browseEndpointContextSupportedConfigs)==null?0:(Y=X.browseEndpointContextMainConfig)==null?0:Y.skipConfirmation)return!1;var t;return((t=_.D(R.commandMetadata,_.$a))==null?void 0:t.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
ONJ.prototype.showConfirmationDialog=function(B,R){this.navigateParams=R;this.customConfirmationCommand?_.Oz().resolve(_.oC).resolveCommand(this.customConfirmationCommand):(R={openPopupAction:{popup:{confirmDialogRenderer:{title:_.s$(_.Wz("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.s$(_.Wz("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.s$(_.Wz("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.s$(_.Wz("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.sd.getInstance().triggerAction("yt-open-popup-action",R,B))};
ONJ.prototype.cancelPendingNavigation=function(){var B;((B=this.navigateParams)==null?void 0:B.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var Bmv=function(){},V1J=function(B,R,V,e,X,Y,t){V=V===void 0?{}:V;
t=t===void 0?{}:t;var b=_.Vf.instance,J,G=(J=_.D(R,_.ie))==null?void 0:J.url;return G?oNY(b,G,V,window.location.href,function(y,S){Ryh(B,y,S,!1,!0,V,Y,e)},function(){return!1}):FM(b,R,V,window.location.href,UX(R),function(y,S){Ryh(B,y,S,!1,!0,V,Y,e)},X,t)},Ryh=function(B,R,V,e,X,Y,t,b){if(!B.JSC$12213_chunkHandler)if(V.page==="watch"||V.page==="learning_journey_watch")if(X||e){if(_.k("kevlar_continue_playback_without_player_response")){var J;
var G=(J=_.D(b,_.sI))==null?void 0:J.videoId}B.JSC$12213_chunkHandler=new sWG(_.Pr,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:e,previousVideoId:G},tempData:Y},t)}else B.JSC$12213_chunkHandler=new QWl(_.Pr);else V.page==="shorts"&&X&&!e?B.JSC$12213_chunkHandler=new iuG(_.Pr,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:Y},t):B.JSC$12213_chunkHandler=new qLo(t);B.JSC$12213_chunkHandler.processChunk({endpoint:R,data:V});return B.JSC$12213_chunkHandler.qr.promise},
eyv=function(B,R,V,e,X){(V=_.MF_(V))&&Ryh(B,R,V,!1,!0,e,void 0,X)};var XGJ=function(){this.pendingNavigationPromise=null};
_.p=XGJ.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 pGS=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],hQ=function(){_.H_.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];YM_(this)};
_.l(hQ,_.H_);hQ.prototype.verifyUser=function(){var B=YM_(this),R=B.logout;if(!B.sessionChange)return!0;this.dispatchEvent("ytsessionchange");R&&this.dispatchEvent("ytuserinvalid");return!1};
var YM_=function(B){var R=pGS.map(function(X){var Y;return(Y=_.UB.get(X))!=null?Y:""}),V=R.some(function(X,Y){return B.sessionCookies&&B.sessionCookies[Y]!==""&&X===""}),e=R.some(function(X,Y){return B.sessionCookies&&B.sessionCookies[Y]!==X});
B.sessionCookies=R;return{logout:V,sessionChange:e}};
hQ.prototype.clearTimeout=function(){this.scheduledJobId&&(_.dV.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var dOu=new _.u0("POSTMESSAGE_TUNNEL_TOKEN");var lWZ=["/parent_tools","/file_download","/artist_roster"],xOA=[DY4,fKT,lK4,aKJ,zNG,k_h,dYl,wdS];var hyh=new _.u0("APP_ROOT");var tQ=new _.u0("NAVIGATION_CONFIRMATION_SERVICE");var t1J="/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(" "),WW4=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
WO=function(B,R){this.pendingNavigationPromise=null;this.JSC$12231_clientRoot=B;this.historyManager=R;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new Bmv;this.debugString=B.is;B={"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};_.Fo(_.sd.getInstance(),B,this.JSC$12231_clientRoot)},NmR,Gql,ylh,SMb,U52;
_.l(WO,XGJ);WO.prototype.reload=function(){_.TF(window.location.href)};
var ffJ=function(B){B.currentEndpoint&&_.D(B.currentEndpoint,_.GF)?B.reload():B.currentEndpoint&&B.navigate(B.currentEndpoint,!0,void 0,{disableCache:!0})};
WO.prototype.navigate=function(B,R,V,e,X,Y,t,b){R=R===void 0?!1:R;V=V===void 0?{}:V;e=e===void 0?{}:e;var J=_.Oz().resolve(tQ),G;if(!t&&oSa(J,(G=this.currentEndpoint)!=null?G:void 0,B))return J.showConfirmationDialog(this.JSC$12231_clientRoot.parentElement,{endpoint:B,reload:R,params:V,tempData:e,requestType:X,createScreenConfig:Y}),!1;var y=_.Ep();_.Qj(y,"eocs")||y.parkOrScheduleJob(function(){y.processSignal("eocs")},10,"eor");
t=UX(B);J=e.autonav==="1";G=_.TE();hQ.instance||(hQ.instance=new hQ);var S=hQ.instance.verifyUser(),M;if(_.k("enable_dark_theme_only_on_shorts")){var f=document.documentElement.hasAttribute("dark"),z=_.Lk(!0)==="USER_INTERFACE_THEME_DARK";if(t==="shorts"){if(!f)if(_.k("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var T;_.TF((T=_.D(B==null?void 0:B.commandMetadata,_.$a))==null?void 0:T.url,void 0,void 0,window.top)}}else{var L;_.TF(_.rg((L=_.D(B==null?
void 0:B.commandMetadata,_.$a))==null?void 0:L.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.k("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!f){var Q;_.TF(_.rg((Q=_.D(B==null?void 0:B.commandMetadata,_.$a))==null?void 0:Q.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(z!==f){var q;_.TF(_.rg((q=_.D(B==null?void 0:B.commandMetadata,_.$a))==null?void 0:q.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(t==="watch"){if(bXR(_.Oz().resolve(_.An),
B)&&(S||_.k("fix_miniplayer_navigation_killswitch")))return!1;_.k("block_all_player_prefetch_requests")||(M=kfo(_.hn(_.eS),B,J))}else{var m,g=(m=_.D(this.currentEndpoint,_.sI))==null?void 0:m.videoId;g&&_.fy.getInstance().then(function(io){io&&io.set("yt-miniplayer-shown-video-id",g)})}M&&(V.frags=M.missingFragments_.join(","));
T=null;var Vu;L=(Vu=_.D(B==null?void 0:B.commandMetadata,_.$a))==null?void 0:Vu.ignoreNavigation;if(!L)if(_.k("kevlar_command_url")){var n;T=(n=_.D(B==null?void 0:B.commandMetadata,_.$a))==null?void 0:n.url}else T=_.q5K(B,V);if(T&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&T==this.lastNavigationUrl)return _.f0({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.GT(Kp(),"CANCELLED")}T&&(this.lastNavigationUrl=T);tjq();_.LQ("IS_HOMEPAGE_COLD",
!1);_.LQ("IS_RESULTS_PAGE_COLD",!1);_.LQ("IS_WATCH_PAGE_COLD",!1);B.loggingUrls&&B.loggingUrls.forEach(function(io){io.baseUrl&&_.qC(io.baseUrl)});
_.IWK(B,Y?Y.layer:0)&&_.k("kevlar_flush_logs_on_away_navigation")&&_.wn();if(L_Y(B))return!1;ps4(t,X);if(!T)return L||_.KE(new _.H8("Can't construct url for endpoint",B)),_.GT(Kp(),"FAILURE"),!1;_.fWN();Vu=B&&_.D(B,_.Jz)&&_.D(B,_.Jz).browseId.startsWith("UC");V=(n=_.k("enable_dark_theme_only_on_shorts")&&t==="shorts"?!1:_.v$()&&document.documentElement.hasAttribute("dark")!==_.xA())?{themeRefresh:1}:{};n&&!_.GK()&&_.Lk()==="USER_INTERFACE_THEME_DARK"&&(V.theme="dark");Vu=n||Jl4(T)&&!Vu&&!_.k("kevlar_disable_url_allowlist");
S||(Vu=!0);if(Vu||_.vE("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var Yd;var kd=(Yd=window.top)==null?void 0:Yd.location.href}catch(io){var a5;kd=(a5=io)==null?void 0:a5.message}_.KE(new _.H8("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:kd}))}B=_.k("kevlar_redirect_on_window_killswitch")?window.top:window;wr(T);_.TF(_.rg(T,V),void 0,void 0,B);_.GT(Kp(),"ABORTED");return!1}_.k("kevlar_early_popup_close")&&_.oF(this.JSC$12231_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12213_chunkHandler=void 0;var lo;kd=UX((lo=this.currentEndpoint)!=null?lo:void 0);(lo=t==="shorts"&&kd==="shorts")||_.bgY();_.Qh(OaZ)("nr",void 0);J&&_.f0({webInfo:{navigationReason:"an"}});B.clickTrackingParams&&(e.itct=B.clickTrackingParams,e.csn=G);j$o(e);e.endpoint=JSON.stringify(B);_.k("enable_unknown_lact_fix_on_html5")&&(_.Oz().resolve(_.fD),e.lact=_.B5());_.M_.isEmpty(e)||_.Zg(T,e);!_.k("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(Y=Object.assign({},{layer:0},Y,{parentLayer:3}));this.pendingNavigationPromise=Y=V1J(this.pageFetcher,B,e,this.currentEndpoint,this.JSC$12231_isNetworkPromiseStale.bind(this),Y,b);Y=Y.then(this.handleNavigateSuccess.bind(this,Y,B,M,e),this.handleNavigateFail.bind(this,Y,B));_.Up().navigationFinishPromise=Y;R={endpoint:B,pageType:t,url:RV(T),reload:!!R,noProgressBar:_.k("web_disable_page_navigation_progress")||lo};X&&(R.type=X);this.fireEvent("yt-navigate-start",R);M&&
eyv(this.pageFetcher,B,M,e,this.currentEndpoint);return!0};
WO.prototype.JSC$12231_isNetworkPromiseStale=function(B){return B!=this.pendingNavigationPromise};
var jQG=function(B,R,V,e,X){var Y=UX(R);R={endpoint:R,pageType:Y};X&&(R.errorMessage=X);_.KE(V);R.navigationDoneMs=_.zp("nd");R.navigationErrorReason=e;B.fireEvent("yt-navigate-error",R)};
WO.prototype.handleNavigateFail=function(B,R,V){var e=void 0;V instanceof _.Cw&&(e=V,ETu(V));if(this.JSC$12231_isNetworkPromiseStale(B))return _.SR(e);_.GT(Kp(),"FAILURE");jQG(this,R,V,"101");return _.SR(V)};
WO.prototype.handleNavigateSuccess=function(B,R,V,e,X){if(this.JSC$12231_isNetworkPromiseStale(B))return _.XT();this.pendingNavigationPromise=null;if(!X)return R=new _.H8("Missing data in response for navigation endpoint",R),_.SR(R);if(X.reload)return window.location.reload(!0),_.XT();V&&(B={},_.M_.extend(B,_.MF_(V),X),X=B);var Y,t;V=(Y=X)==null?void 0:(t=Y.timing)==null?void 0:t.responseStart;V!=null&&_.zp("srt",V);_.zp("pdc");var b,J;Y=(b=X)==null?void 0:(J=b.timing)==null?void 0:J.info;Y!=null&&
(b=_.Qh(_.VPq)(Y),_.f0(b));_.GT(Kp(),"SUCCESS");U52(this,R,X,1,e);return _.XT()};
var Jl4=function(B){var R=B;_.k("kevlar_no_redirect_to_classic_2_ks")||(R=(new _.FO(B)).getPath());if(R==="/"||R==="/red")return!1;var V=!0;t1J.forEach(function(e){B.indexOf(e)===0&&(V=!1)});
WW4.forEach(function(e){var X=e.url;_.k(e.expFlag)&&B.indexOf(X)===0&&(V=!1)});
return V};
WO.prototype.publishPageData=function(B){this.fireEvent("yt-page-data-fetched",{pageData:B})};
NmR=function(B,R,V,e,X,Y){var t=null;R.page!=="watch"||e?R.filler||_.oF(B.JSC$12231_clientRoot,"yt-stop-old-player",[R]):t=Ryh(B.pageFetcher,X,R,V,!1,Y,void 0,B.currentEndpoint);if(t)return t.then(B.publishPageData.bind(B,R));B.publishPageData(R);return _.XT()};
Gql=function(B,R,V){var e=null;if(!V)return e=new _.H8("Empty data",B.debugString,R);var X=V.response;if(!X)return e;var Y={endpointType:UX(R)||"unknown"};X.responseContext?(X=X.responseContext.errors)&&(e=new _.H8("Errors in response context",B.debugString,R,X,Y)):e=X.error||X.errorMetadata?new _.H8("Errors in response",B.debugString,R,X.error,X.errorMetadata,Y):new _.H8("responseContext missing",B.debugString,R,Object.keys(X).sort().join(","),Y);var t,b,J,G;if(B=V==null?void 0:(t=V.response)==null?
void 0:(b=t.responseContext)==null?void 0:(J=b.webResponseContextExtensionData)==null?void 0:(G=J.webResponseContextDebugData)==null?void 0:G.debugErrorMessages)for(t=0;t<B.length;t++);return e};
ylh=function(B){var R,V,e,X;return B==null?void 0:(R=B.response)==null?void 0:(V=R.responseContext)==null?void 0:(e=V.errors)==null?void 0:(X=e.error)==null?void 0:X["0"]};
SMb=function(B,R){var V;if(V=R.url&&!R.url.startsWith("/clip"))V=R.url,V=!_.k("webfe_parse_debug_param_in_resolveurl_service")&&B.searchDebugUrlMatcher.test(V)||AmZ(V)?!0:!1;if(V)AmZ(R.url)&&_.FW(window.location.href).themeRefresh?(R=_.mc(R.url,"themeRefresh"),_.Xq(B.historyManager,R)):R.url&&!HNd(R.url)&&_.Xq(B.historyManager,R.url);else if(R.endpoint){var e,X,Y;(V=(e=R.endpoint)==null?void 0:(X=e.commandMetadata)==null?void 0:(Y=X.webCommandMetadata)==null?void 0:Y.url)&&!HNd(V)&&_.Xq(B.historyManager,
V);V&&R.url&&V!=R.url&&!R.url.match("playnext=1")&&new _.H8("Response url mismatch in response data",B.debugString,V,R.url)}};
_.HX5=function(B,R,V,e,X,Y,t,b){Y=Y===void 0?!1:Y;var J=_.Oz().resolve(tQ),G;if(!b&&oSa(J,(G=B.currentEndpoint)!=null?G:void 0,R))return J.showConfirmationDialog(B.JSC$12231_clientRoot.parentElement,{endpoint:R,data:V,navigationType:e,tempData:X,isMiniplayer:Y,isForwardHistoryNavigation:t==null?void 0:t.forward}),_.XT();B.pageFetcher.JSC$12213_chunkHandler=void 0;return U52(B,R,V,e,X,Y)};
U52=function(B,R,V,e,X,Y){Y=Y===void 0?!1:Y;B.isMiniplayerExpansion=Y;var t=e===2;B.currentEndpoint=R;B.numNavigations++;B.numNavigations&&(ocq.navigationCount=B.numNavigations);_.LQ("NUM_NAV",B.numNavigations);var b=Gql(B,R,V);if(b)return jQG(B,R,b,"102",ylh(V)),_.SR(b);var J,G,y,S;b=V.rootVe||(V==null?void 0:(J=V.response)==null?void 0:(G=J.responseContext)==null?void 0:(y=G.webResponseContextExtensionData)==null?void 0:(S=y.ytConfigData)==null?void 0:S.rootVisualElementType);!t&&V&&SMb(B,V);var M,
f;J=V==null?void 0:(M=V.response)==null?void 0:(f=M.responseContext)==null?void 0:f.maxAgeSeconds;if(!t&&!isNaN(J)){var z;_.k("kevlar_use_response_ttl_to_invalidate_cache")?z=(0,_.P8)()+1E3*J:_.k("kevlar_always_invalidate_cache")&&(z=0);isNaN(z)||(V.expirationTime=z)}_.k("html5_enable_ssap_entity_id")&&t&&V.playerResponse&&(V.playerResponse.cacheMetadata={isCacheHit:!0});_.hn(_.eS).prefetchCache_.clear();t||V.page!=="watch"||V.type!=="reduced"&&e!==1?e=NmR(B,V,t,!!Y,R,X):(B.publishPageData(V),e=_.XT());
X=e.then(function(){var T=UX(R);T={endpoint:R,pageType:T,fromHistory:t,response:V};T.navigationDoneMs=_.zp("nd");B.fireEvent("yt-navigate-finish",T)});
V.csn&&b&&V.clientSideGrafts&&e.then(B.attachClientSideGrafts.bind(B,V,_.wT()));return X};
_.p=WO.prototype;_.p.attachClientSideGrafts=function(B,R){B.clientSideGrafts&&R&&B.clientSideGrafts.forEach(function(V){if(R&&V){var e=_.U5(V);_.k("combine_ve_grafts")?_.WK().graftServerVe(V,R):_.EV(B.csn,R,e)}})};
_.p.handleSignalActionHistoryBack=function(){window.history.back()};
_.p.handleSignalActionCloseWindow=function(){window.close()};
_.p.handleSignalActionReloadPage=function(){this.reload()};
_.p.handleSignalActionSoftReloadPage=function(){ffJ(this)};
_.p.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.p.fireEvent=function(B,R){B=new CustomEvent(B,{bubbles:!0,cancelable:!1,composed:!0,detail:R});this.dispatchEvent(B)};
_.p.addEventListener=function(B,R){this.JSC$12231_clientRoot.addEventListener(B,R)};
_.p.dispatchEvent=function(B){return this.JSC$12231_clientRoot.dispatchEvent(B)};
_.p.removeEventListener=function(B,R){this.JSC$12231_clientRoot.removeEventListener(B,R)};
WO[na]=[hyh,_.pI];_.Wvx=new MG("browse","h8y2qb");_.bVY=new MG("search","JzFVk");_.JPN=new MG("shorts","xwEKAe");_.jUq=new MG("watchFixie","nmfa2d");_.Uvd=new MG("watchFlexy","CF909");_.NDI=new MG("watchGrid","Tm0L3c");_.GSS=new MG("watchLearningJourney","L3n37");var M1G;var b6=function(){return _.c.apply(this,arguments)||this};
_.l(b6,_.c);_.mh.Object.defineProperties(b6,{template:{configurable:!0,enumerable:!0,get:function(){if(M1G===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);M1G=B}B=M1G;return B}}});
_.r([_.v(kca.YtPlayerBehavior),_.Z("design:type",Object)],b6.prototype,"ytPlayerBehavior",void 0);b6=_.r([_.A({is:"ytd-player"})],b6);var kql;var D5J;var fUG;var JQ=function(){var B=_.c.apply(this,arguments)||this;B.forceModernIconButton=!1;B.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return B};
_.l(JQ,_.c);JQ.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]]"}}}}}};
JQ.prototype.handleAccountLinkingStateChangedCommand=function(B){if(B=_.D(B,A8J)){var R,V=(R=this.data)==null?void 0:R.providerKey;R=B.providerKey;V&&R&&V.id===R.id&&V.subject===R.subject&&(B=B.linked,B!==void 0&&(this.set("data.linked",B),this.notifyPath("data.linked"),_.k("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(B)))}};
JQ.prototype.setPlayerAccountLinkState=function(B){var R=new J1d;b4Z(R,jSd(new UMS,B));var V=_.Pr();V&&V.getPlayerPromise().then(function(e){e.setAccountLinkState(_.O4(R.JSC$9981_serializeBinary(),4));e.updateAccountLinkingConfig(B)})};
JQ.prototype.handleShowAccountLinkDialog=function(){var B=this.get("button.buttonRenderer.command");B&&_.Y8([B],this.hostElement)};
_.mh.Object.defineProperties(JQ.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}}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.r([_.v([_.$Z.YtActionHandlerBehavior]),_.Z("design:type",Object)],JQ.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],JQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],JQ.prototype,"overrides",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],JQ.prototype,"forceModernIconButton",void 0);_.r([_.E({value:"bottom"}),_.Z("design:type",String)],JQ.prototype,"buttonTooltipPosition",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],JQ.prototype,"forceIconButton",void 0);_.r([_.E(),_.Z("design:type",Boolean)],JQ.prototype,"disableTextTransform",void 0);
_.r([_.K("data","data.linked","data.isWarning"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],JQ.prototype,"button",null);JQ=_.r([_.A({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],JQ);
_.F(JQ,"ytd-account-link-button-renderer",function(){if(fUG!==void 0)return fUG;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return fUG=B},{mode:1});var lU4;var zyS=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],jf=function(){return _.c.apply(this,arguments)||this};
_.l(jf,_.c);jf.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
jf.prototype.updateButtonActiveState=function(){var B=this,R=!!zyS.find(function(V){return B.currentState===V});
this.button&&(this.button.isPressed=R)};
_.mh.Object.defineProperties(jf.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.playlistLoopStateEntity)==null?void 0:B.state)||((R=this.data)==null?void 0:R.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var B=void 0,R;if(this.currentState&&((R=this.data)==null?0:R.states)){R=_.h(this.data.states);for(var V=R.next();!V.done;V=R.next()){V=_.D(V.value,_.X_b);var e=void 0;if(((e=V)==null?void 0:e.state)===this.currentState){B=V;break}}}return B}}});
jf.prototype.updateButtonActiveState=jf.prototype.updateButtonActiveState;_.r([_.v(_.dt),_.Z("design:type",Object)],jf.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.iNo}),_.Z("design:type",Object)],jf.prototype,"playlistLoopStateEntity",void 0);_.r([_.E(),_.Z("design:type",Object)],jf.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],jf.prototype,"forceIconOnly",void 0);_.r([_.Yp("ytd-button-renderer"),_.Z("design:type",_.sH)],jf.prototype,"button",void 0);
_.r([_.K("data","playlistLoopStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jf.prototype,"currentState",null);_.r([_.XX("currentButtonStateRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jf.prototype,"updateButtonActiveState",null);_.r([_.K("currentState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jf.prototype,"currentButtonStateRenderer",null);
jf=_.r([_.A({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],jf);
_.F(jf,"ytd-playlist-loop-button-renderer",function(){if(lU4!==void 0)return lU4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return lU4=B},
{mode:1});var aUl;var d5o=_.Wz("DOWNLOAD",{},"Download"),wGS=_.Wz("DOWNLOADING",{},"Downloading"),Tm4=_.Wz("DOWNLOADED",{},"Downloaded"),x54=_.Wz("RETRY",{},"Retry"),UW=function(){var B=_.c.apply(this,arguments)||this;B.forceIconButton=!1;B.forceIconOnly=!1;B.overrides=!1;B.buttonTooltipPosition=!1;B.styleActionButton=!1;B.disableTextTransform=!1;B.downloadProgress=0;B.isDownloadComplete=!1;B.isHidden=!0;B.transferState="TRANSFER_STATE_UNKNOWN";B.isVideoDeletedByUser=!1;B.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return B};
_.l(UW,_.c);_.p=UW.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.dataChanged=function(){var B;(B=this.data)!=null&&B.text||(B=_.Tz(_.g6().getState(),this.videoId),this.updateButtonState(B))};
_.p.computeVideoId=function(B){return B};
_.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(B){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==wGS||!_.NR(B))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(B){case "TRANSFER_STATE_UNKNOWN":B=d5o;var R="OFFLINE_DOWNLOAD";var V="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":B=x54;R="OFFLINE_DOWNLOAD";V="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":B=Tm4;R="OFFLINE_PIN";V="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":B=
wGS;R="OFFLINE_DOWNLOADING_ZERO";V="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":B=x54;R="OFFLINE_DOWNLOAD";V="ACTION_RETRY";break;default:B=d5o,R="OFFLINE_DOWNLOAD",V="ACTION_ADD"}this.isVideoDeletedByUser&&(B=d5o,R="OFFLINE_DOWNLOAD",V="ACTION_ADD");var e=Object.assign({},this.data);e.text=_.s$(B);e.tooltip=B;e.icon={iconType:R};e.size="SIZE_DEFAULT";e.style="STYLE_DEFAULT";_.D(e.command,_.Jv)&&(_.D(e.command,_.Jv).action=V);this.set("data",e)}};
_.p.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var B="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?B="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?B="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?B="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?B="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?B="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(B="OFFLINE_PIN",this.isDownloadComplete=!0);var R;B!==((R=this.data.icon)==null?void 0:R.iconType)&&(R=Object.assign({},this.data),R.text=_.s$(wGS),R.tooltip=wGS,R.icon={iconType:B},_.D(R.command,_.Jv)&&(_.D(R.command,_.Jv).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",R))}};
UW.prototype.updateProgress=UW.prototype.updateProgress;UW.prototype.onTransferStateChanged=UW.prototype.onTransferStateChanged;UW.prototype.showHideButton=UW.prototype.showHideButton;UW.prototype.dataChanged=UW.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],UW.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],UW.prototype,"forceIconButton",void 0);
_.r([_.E(),_.Z("design:type",Object)],UW.prototype,"forceIconOnly",void 0);_.r([_.E(),_.Z("design:type",Object)],UW.prototype,"overrides",void 0);_.r([_.E(),_.Z("design:type",Object)],UW.prototype,"buttonTooltipPosition",void 0);_.r([_.E(),_.Z("design:type",Object)],UW.prototype,"styleActionButton",void 0);_.r([_.E(),_.Z("design:type",Object)],UW.prototype,"disableTextTransform",void 0);
_.r([_.E({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Z("design:type",String)],UW.prototype,"videoId",void 0);_.r([_.E(),_.Z("design:type",Object)],UW.prototype,"data",void 0);_.r([_.E({selector:L7,selectorArgs:["videoId"]}),_.Z("design:type",Object)],UW.prototype,"downloadProgress",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],UW.prototype,"isDownloadComplete",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],UW.prototype,"isHidden",void 0);_.r([_.E({selector:_.Tz,selectorArgs:["videoId"]}),_.Z("design:type",String)],UW.prototype,"transferState",void 0);_.r([_.E({selector:_.Ztd,selectorArgs:["videoId"]}),_.Z("design:type",Object)],UW.prototype,"isVideoDeletedByUser",void 0);_.r([_.E({selector:ito,selectorArgs:["videoId"]}),_.Z("design:type",Object)],UW.prototype,"offlineabilityState",void 0);
_.r([_.E({value:!0}),_.Z("design:type",Boolean)],UW.prototype,"showTooltips",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],UW.prototype,"sendCommandWhenDisabled",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],UW.prototype,"disabled",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UW.prototype,"dataChanged",null);
_.r([_.bp("offlineabilityState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UW.prototype,"showHideButton",null);_.r([_.bp("transferState","isVideoDeletedByUser"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UW.prototype,"onTransferStateChanged",null);_.r([_.bp("downloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UW.prototype,"updateProgress",null);
UW=_.r([_.A({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],UW);
_.F(UW,"ytd-download-button-renderer",function(){if(aUl!==void 0)return aUl;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return aUl=B},{mode:2});var LW5;var vSR,KWJ=function(){if(vSR!==void 0)return vSR;var B=document.createElement("template");_.a(B,'\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 vSR=B};var IUo=_.k("web_button_rework")&&_.KQ("BUTTON_REWORK")||_.k("web_button_rework_with_live"),ESv=_.RC("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,N3=function(){var B=_.c.apply(this,arguments)||this;B.isPressed=!1;B.forceIconButton=!1;B.forceIconOnly=!1;B.forceModernIconButton=!1;B.alignByText=!1;B.isShorts=!1;B.animatedText=!1;B.shouldAnimate=!1;B.JSC$12269_browserSupportsAnimation=_.k("web_supports_animations_api");B.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};B.onTap=function(){var R;if((R=B.data)==null||!R.defaultNavigationEndpoint){var V;R=!((V=B.data)==null?0:V.isToggled);var e;if((e=B.data)==null||!e.preventAutoToggle){B.shouldAnimate=!1;B.disableTextUpdateJobId&&_.dV.cancelJob(B.disableTextUpdateJobId);B.disableTextUpdateJobId=_.dV.addLowPriorityJob(function(){B.disableTextUpdateJobId=void 0},ESv);
var X;B.set("data.isToggled",!((X=B.data)==null?0:X.isToggled));V=B.getInnertubeIcon();e={toggled:R,actions:{}};V&&(e.actions[V.toLowerCase()]=R);_.OI(B.hostElement,"yt-toggle-button",e)}}};
return B};
_.l(N3,_.c);_.p=N3.prototype;_.p.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.dV.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.toggle=function(B){var R;this.set("data.isToggled",B!==void 0?B:!((R=this.data)==null?0:R.isToggled))};
_.p.handleUpdateToggleButtonStateCommand=function(B){if(this.data){B=_.D(B,P9J);var R,V,e,X=(R=this.data)==null?void 0:(V=R.toggleButtonSupportedData)==null?void 0:(e=V.toggleButtonIdData)==null?void 0:e.id;X&&B&&X===(B==null?void 0:B.buttonId)&&this.set("data.isToggled",B.toggled)}};
_.p.handleUpdateToggleButtonTextAction=function(B){if(this.data){B=_.D(B,dyT);var R,V,e,X=(R=this.data)==null?void 0:(V=R.toggleButtonSupportedData)==null?void 0:(e=V.toggleButtonIdData)==null?void 0:e.id;X&&B&&X===(B==null?void 0:B.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=B.defaultNumericalValue,this.set("data.defaultText",B.defaultText),this.set("data.toggledText",B.toggledText),this.shouldAnimate=!1)}};
_.p.getInnertubeIcon=function(){var B=this.data;if(B){var R,V,e=((R=B.defaultIcon)==null?0:R.iconType)?(V=B.defaultIcon)==null?void 0:V.iconType:null,X,Y;R=((X=B.toggledIcon)==null?0:X.iconType)?(Y=B.toggledIcon)==null?void 0:Y.iconType:e;return B.isToggled?R:e}};
_.p.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.mh.Object.defineProperties(N3.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B={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$12269_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var R=B.renderer;var V=B.element;var e=B.toggled;var X=B.onTapCallback;var Y=B.commandClientArgs;var t=B.overrides;var b=B.forceIcon;var J=B.forceModernIconButton;var G=B.forceDisabled;var y=B.useAnimatedText;var S=B.animatedTextProps;B=gtu(R,e);b=!R.defaultIcon||!b&&R.defaultText?R.defaultIcon?"leading":void 0:J?"icon-only":"icon-only-40";b==="icon-only-40"&&(B.type="text");var M;J=Object;var f=J.assign,z;a:switch((z=
R.style)==null?void 0:z.styleType){case "STYLE_COMPACT_GRAY":z={size:"S"};break a;default:z={size:"M"}}var T=!!e;var L=(L=e&&R.toggledText||R.defaultText)?_.fc(L):void 0;y?(y=_.FF(e&&R.toggledText||R.defaultText))&&S&&!isNaN(Number(S.numberValue))?(S.numberText=y,e&&(S.numberValue+=1),y=S):y=void 0:y=void 0;var Q,q,m,g;var Vu=(S=((q=e?R.toggledAccessibilityData||((Vu=R.toggledText)==null?void 0:Vu.accessibility):R.accessibilityData||((Q=R.defaultText)==null?void 0:Q.accessibility))==null?void 0:(m=
q.accessibilityData)==null?void 0:m.label)||((g=R.accessibility)==null?void 0:g.label))?S:_.FF(e&&R.toggledText||R.defaultText);G=G===void 0?R.isDisabled:G;V=rWI(R,e,X,V,Y);e=F_q(R,e);e!=null&&e.length?(e=_.T2({innertubeCommand:qmu(e),forceNewState:!0}),e=xT(e)?e:void 0):e=void 0;R=f.call(J,{},B,z,{iconPosition:b},t,{focused:!1,toggled:T,toggleable:!0,formattedButtonText:L,animatedTextProps:y,accessibilityLabel:Vu,disabled:G,onTap:V,aTagConfig:e},hFu((M=R.colorData)==null?void 0:M.basicColorPaletteData));
R.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(R.type="filled");return R}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var B=this.getInnertubeIcon();if(B)return _.RT(B)}}});
N3.prototype.resetAnimation=N3.prototype.resetAnimation;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],N3.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],N3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"isPressed",void 0);_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"forceIconButton",void 0);_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"forceIconOnly",void 0);_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"forceModernIconButton",void 0);_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"alignByText",void 0);_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"overrides",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],N3.prototype,"disabled",void 0);_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"isShorts",void 0);_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"buttonTooltipPosition",void 0);_.r([_.E(),_.Z("design:type",Object)],N3.prototype,"animatedText",void 0);_.r([_.E(),_.Z("design:type",String)],N3.prototype,"textNumberValue",void 0);_.r([_.E({computed:"computeTooltip(data, data.isToggled)"}),_.Z("design:type",Object)],N3.prototype,"tooltip",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],N3.prototype,"resetAnimation",null);_.r([_.K("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N3.prototype,"computedButtonShape",null);_.r([_.K("data.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N3.prototype,"computedIcon",null);
N3=_.r([_.A({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],N3);IUo&&_.F(N3,"ytd-toggle-button-renderer",KWJ,{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var Bmu=[],RyA=!1;_.oA(XGq);var QQh=_.sx(function(B){function R(G){var y;return _.W(function(S){if(S.nextAddress==1)return(y=!$Od(G,b())||!b().enabled)?S.jumpTo(2):_.U(S,ONq(),3);S.nextAddress!=2&&(y=S.yieldResult);if(y)return S.return();V();setTimeout(function(){t(!1)},1500);
_.b3(S)})}
function V(){setTimeout(function(){t(!0);var G;(G=e.lottieEl)==null||G.goToAndPlay(0)},150)}
var e=_.hv(),X=_.h(_.WU(!1,void 0,"xffAp")),Y=X.next().value,t=X.next().value,b=_.AM(B.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.zM(function(){var G,y;((G=B.settings)==null?void 0:(y=G.call(B))==null?void 0:y.uniqueId)==="this is not intended behavior"&&_.KE(new _.H8("Smartimation Settings is undefined"))});
_.lJ(function(){b().experimentEnabled&&(b().enabled?C7N(R):(t(!1),P7S(R)),_.aK(function(){P7S(R)}))});
_.lJ(function(){b().timings.join("");b().experimentEnabled&&(ntd(b()),_.aK(function(){uYo(b())}))});
var J=_.NW(function(){return ZNq(e,b())},void 0,"d96jJc");
X={};return _.N("yt-smartimation",{class:_.XE(B.className,"smartimation",(X["smartimation--experiment-enabled"]=function(){return b().experimentEnabled},X["smartimation--active-border"]=Y,X["smartimation--enable-masking"]=pGK(),X))},_.N(_.H,{cond:function(){return b().experimentEnabled},
then:function(){return _.N("div",{class:"smartimation__border"},_.N(_.pD,{className:"smartimation__border-gradient",data:J,animationName:function(){return J().animationConfig.name}}))}}),_.N("div",{class:"smartimation__content"},B.children))},"x"),gLd=_.k("web_enable_sink_smartimations")?QQh:XGq,qMl=_.k("web_enable_sink_smartimations")?QQh:_.h3(XGq);
QQh.idomCompat=!0;_.k("web_enable_sink_smartimations")?_.mR(qMl,"yt-smartimation",{props:{className:_.qq,settings:_.qq}}):_.Br(gLd,"yt-smartimation",{propNames:["className","settings"]});var GB=function(){var B=_.c.apply(this,arguments)||this;B.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};B.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};B.shouldEnableSmartimation=!1;return B};
_.l(GB,_.c);GB.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
GB.prototype.onDataChanged=function(){var B,R;this.shouldEnableSmartimation=(((B=this.data)==null?void 0:(R=B.timedAnimationData)==null?void 0:R.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
GB.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var B=_.D(this.data.likeButton,_.EN),R=_.D(this.data.dislikeButton,_.EN);return!!((B==null?0:B.isToggled)||(R==null?0:R.isToggled))};
GB.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]]"}}}}}};
_.mh.Object.defineProperties(GB.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var B,R,V=((B=this.data)==null?void 0:(R=B.timedAnimationData)==null?void 0:R.animationTiming)||[];return{uniqueId:"like-dislike",timings:V,enabled:this.shouldEnableSmartimation,experimentEnabled:V.length>0}}}});
GB.prototype.onDataChanged=GB.prototype.onDataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],GB.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],GB.prototype,"likeButtonOverride",void 0);_.r([_.E(),_.Z("design:type",Object)],GB.prototype,"dislikeButtonOverride",void 0);
_.r([_.K("shouldEnableSmartimation"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"smartimationSettings",null);_.r([_.XX("data"),_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"onDataChanged",null);GB=_.r([_.A({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],GB);
_.F(GB,"ytd-segmented-like-dislike-button-renderer",function(){if(LW5!==void 0)return LW5;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return LW5=B},{mode:1});var clv;var Al2;(Al2=document.body)==null||Al2.setAttribute("rounded-container","");var iXb={};iXb.YtToggleButtonBehavior=[_.$Z.YtActionHandlerBehavior,YE.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 B=this.data.isToggled;if(!this.isModal_(B)){if(!this.data.preventAutoToggle){this.toggle();var R={toggled:this.data.isToggled,actions:{}};R.actions[this.buttonIcon]=this.data.isToggled;_.OI(this.hostElement,"yt-toggle-button",R)}R=this.data.defaultServiceEndpoint||null;var V=this.data.toggledServiceEndpoint||null;if(R&&V||R&&this.data.preventAutoToggle)B=B?V:R,R=this.disableCommandHandlerOverride,_.k("killswitch_toggle_button_behavior_resolve_command")||R?_.VD(this.hostElement,
[B]):_.Xc(B,this.hostElement),_.OI(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:B})}},
stateChanged_:function(){var B=this.data;if(B){var R=B.isToggled;this._setEndpoint(this.computeEndpoint_(B));this._setServiceEndpoint(this.computeServiceEndpoint_(B));this._setButtonIcon(this.computeButtonIcon_(B,R));this._setButtonText(this.computeButtonText_(B,R));this._setButtonAccessibility(this.computeAccessibility_(B,R));this._setButtonTooltip(this.computeTooltip_(B,R));this._setButtonClass(this.computeButtonClass_(B,R));this._setIconPositionType(this.computeIconPositionType_(B));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=R):this.elements_.button.setAttribute("aria-pressed",R));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=R)}},
shouldSetIconActiveState_:function(){return _.k("kevlar_system_icons")},
toggle:function(B){this.set("data.isToggled",B!==void 0?B:!this.data.isToggled);_.k("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(B){if(B){var R,V;return!!((R=this.data)==null?0:(V=R.toggledServiceEndpoint)==null?0:V.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(B){return B&&B.defaultNavigationEndpoint||null},
computeButtonIcon_:function(B,R){var V=B&&B.defaultIcon?_.RT(B.defaultIcon.iconType):null;B=B&&B.toggledIcon?_.RT(B.toggledIcon.iconType):V;return R?B:V},
handleUpdateToggleButtonStateCommand_:function(B){B=B.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==B.buttonId&&this.toggle(B.toggled)},
computeButtonText_:function(B,R){return B?R&&B.toggledText||B.defaultText||null:null},
computeAccessibility_:function(B,R){return B?(R?this.get("toggledAccessibilityData.accessibilityData",B):this.get("accessibilityData.accessibilityData",B))||B.accessibility||null:null},
computeTooltip_:function(B,R){return B?R&&B.toggledTooltip||B.defaultTooltip||null:null},
computeButtonClass_:function(B,R){if(!B)return"";var V="",e=B.toggledStyle||B.style;if(R=R?e:B.style){R.styleType&&(R=R.styleType);try{V+=R.toLowerCase().replace(/_/g,"-")+" "}catch(X){_.Iq(X,R,typeof R),_.KE(X)}}if(B=B.size){B.sizeType&&(B=B.sizeType);try{V+=B.toLowerCase().replace(/_/g,"-")+" "}catch(X){_.Iq(X,B,typeof B),_.KE(X)}}return V.trim()},
computeIconPositionType_:function(B){return B&&B.iconPosition||null},
computeServiceEndpoint_:function(B){var R=B&&B.serviceEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return R?R:V&&B.command?B.command:null},
handleUpdateToggleButtonTextAction_:function(B){B=B.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==B.buttonId&&(this.set("data.defaultText",B.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",B.toggledText),this.notifyPath("data.toggledText"))}}];_.aO("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var sQl=_.k("web_button_rework")&&_.KQ("BUTTON_REWORK")||_.k("web_button_rework_with_live"),ye=function(){var B=_.c.apply(this,arguments)||this;B.systemIcons=_.k("kevlar_system_icons");B.roundedContainer=!0;return B};
_.l(ye,_.c);ye.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ye.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var B=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var R={toggled:!!this.data.isToggled,actions:{}};R.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var V,e;R.actions.playlistId=(V=this.data.defaultServiceEndpoint)==null?void 0:(e=V.playlistEditEndpoint)==null?void 0:e.playlistId;_.OI(this.hostElement,"yt-toggle-button",R)}(B=B?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(B)}};
ye.prototype.onYtNavigate=function(B){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(B.detail.endpoint);R&&(B.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(R))};
_.mh.Object.defineProperties(ye,{template:{configurable:!0,enumerable:!0,get:function(){if(clv===void 0){var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);clv=B}B=clv;return B}}});
ye.prototype.onYtNavigate=ye.prototype.onYtNavigate;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ye.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],ye.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(iXb.YtToggleButtonBehavior),_.Z("design:type",Object)],ye.prototype,"ytToggleButtonBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],ye.prototype,"data",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],ye.prototype,"showTooltips",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ye.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ye.prototype,"roundedContainer",void 0);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ye.prototype,"onYtNavigate",null);
ye=_.r([_.A({is:"ytd-toggle-button-renderer",disableElementRegistration:sQl})],ye);var FW2;_.Sf=new _.u0("PANEL_CONTROLLER_TOKEN");_.HO=new _.u0("SHEET_CONTROLLER_TOKEN");_.M3=new _.u0("DIALOG_CONTROLLER_TOKEN");FW2=new _.u0("DIALOG_CONTAINER_TOKEN");var NmZ=_.Wz("DOWNLOAD",{},"Download"),GqN=_.Wz("DOWNLOADING",{},"Downloading"),ylA=_.Wz("DOWNLOADED",{},"Downloaded"),SMI=_.Wz("RETRY",{},"Retry");var rl5=_.sx(function(B){var R=aUN,V=function(){return""},e=D5q(B.data),X=fU_(B.data),Y=lUx(B.data),t=zyK(B.data);
R=function(){var b=B.data(),J=jQ_(b,e(),X(),Y(),t()),G=!!b.videoId,y=J.text;return{title:G?y:void 0,tooltip:G?void 0:y,accessibilityText:y,onTap:J.onTap,iconName:J.iconType,style:b.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:J.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:b.buttonSize}};
V={};V=_.XE("ytDownloadButtonViewModelHost",(V.ytDownloadButtonViewModelIsHidden=function(){var b=B.data(),J=t();return b.playlistId||J()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||J()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},V));
return _.N("download-button-view-model",{class:V},_.N(_.qo,{data:R}))},"y");
rl5.idomCompat=!0;_.oA(Tmx);_.oA(d5S);var ZXa=_.sx(function(B){var R=B.backgroundLottieRef;var V=B.foregroundLottieRef;var e=B.children;var X=B.wrapperClass;var Y=B.disableAnimation;B=function(){return(_.k("web_animated_actions")||_.k("web_animated_actions_v2"))&&!(Y==null?0:Y())};
return _.N("yt-animated-action",{class:_.XE("animated-action__container",X)},_.N("div",{class:"animated-action__content-with-background"},_.N(_.H,{cond:B,then:function(){return _.N(gSo,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:R==null?void 0:R(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(x5x()?"dark":"light")+"_v5.json"}}}})}}),e),_.N(_.H,{cond:B,
then:function(){return _.N(gSo,{lottiePlayerProps:function(){return{animationRef:V==null?void 0:V(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(x5x()?"dark":"light")+"_v4.json"}}}})}}))},"z");
ZXa.idomCompat=!0;var YfA=_.k("web_enable_sink_animated_actions")?ZXa:Tmx,m5v=_.k("web_enable_sink_animated_actions")?ZXa:_.h3(Tmx),gSo=_.sx(function(B){var R=B.wrapperClass;var V=B.lottieClass;var e=B.lottiePlayerProps;return _.N("div",{class:_.XE("animated-action__lottie",R),"aria-hidden":"true"},_.N(_.pD,{className:V,data:e,animationName:function(){return e().animationConfig.name}}))},"A");var LWd={isOpen:!1};var KWq={isAllowed:!1};var ESu={errorMessage:"",title:"",privacy:"",isDisabled:!0};var qMN={isOpen:!1};var Ald={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var $54={response:void 0};var sQN=function(B,R){B=B===void 0?$54:B;switch(R.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},B,{response:R.payload});default:return B}};var CYh={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var FWd=function(B,R){B=B===void 0?CYh:B;switch(R.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},B,{nextDisabled:R.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},B,{nextCommand:R.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},B,{footerSubmissionData:R.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},B,{isImpersonationValid:R.payload});default:return B}};var PYJ={reportFormData:void 0,reportDetailsFormData:void 0};var rld=function(B,R){B=B===void 0?PYJ:B;switch(R.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},B,{reportFormData:R.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},B,{reportDetailsFormData:R.payload});default:return B}};var nS4=void 0;_.k("mweb_enable_redux_store_on_demand")||(nS4=new r6(gSS()));var pAZ=_.sx(function(B){B=_.ip(B,{themeOverride:void 0,animationRef:{}});var R=B.animatedIconType,V=B.active,e=B.themeOverride,X=B.animationRef;B=B.staticIconFn;var Y=_.h(_.WU(void 0,void 0,"P5a72b")),t=Y.next().value,b=Y.next().value,J=function(){a:{var L=R();var Q=e==null?void 0:e();var q;Q=(Q==null?void 0:Q.useDarkTheme)||((q=_.Oz().resolve(_.uj(_.E5)))==null?void 0:q());switch(L){case "LIKE":b:{nS4||(nS4=new r6(gSS()));if((L=gep(nS4.getState()))&&L.animationStyle)switch(L.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":L=
m5u({name:Q?"valentines25_heart_dark":"valentines25_heart_light",path:Q?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":L=m5u({name:Q?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:Q?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":L=
m5u({name:Q?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:Q?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}L=void 0}if(L){Q=L;break a}Q="animated_like_icon_"+(Q?"dark_v4":"light_v4");Q={lottiePlayerProps:{animationConfig:{name:Q,path:ZXp("animated_like_icon",Q),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":Q={lottiePlayerProps:{animationConfig:{name:Q?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(Q?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}Q=void 0}return Q},G=function(){var L,Q;
return(Q=(L=J())==null?void 0:L.lottiePlayerProps.animationConfig.name)!=null?Q:""},y=function(){if(J()){var L=J().lottiePlayerProps.animationConfig.path;
return eQ.get(L)||t()}};
Y=_.h(_.WU(!1,void 0,"h6xR3c"));var S=Y.next().value;Y=Y.next().value;var M=CYA(Y),f=function(){var L=J(),Q,q,m;return(m=L==null?void 0:(Q=L.lottiePlayerProps.animationConfig)==null?void 0:(q=Q.rendererSettings)==null?void 0:q.className)!=null?m:""},z=void 0,T=void 0;
_.lJ(function(){var L=J(),Q=G(),q=y(),m=S(),g=V();if(L&&(T!==Q&&(T=Q,z=g,Q=X(),M.animationConfig=L.lottiePlayerProps.animationConfig,M.animationRef=Q,q&&(M.animationConfig.animationData=q,M.animationConfig.path=void 0),Q=L.lottiePlayerProps.animationConfig.path,!eQ.get(Q)&&L.lazyLoad&&Q&&$5x(Q,b)),!(m||L.lazyLoad&&!q))){if(q=!X().lottieEl)g?(m=L.totalFrames,M.animationConfig.initialSegment=[m-1,m]):M.animationConfig.initialSegment=void 0;if(z!==g&&!q)if(q=X(),g){var Vu;(Vu=q.lottieEl)==null||Vu.playSegments([0,
L.totalFrames],!0)}else{var n;(n=q.lottieEl)==null||n.playSegments([0,1],!0)}z=g}});
return _.N("animated-icon",{class:"ytAnimatedIconHost"},_.N(_.H,{cond:function(){var L,Q;return!((L=J())==null||!L.lottiePlayerProps.animationConfig.path||((Q=J())==null?0:Q.lazyLoad)&&!y()||S())},
then:function(){return _.N(_.pD,{data:M,animationName:G,className:f,animationRef:X})},
else:B}))},"B");_.oA(hSK);var uz_,oL4;uz_=_.sx(function(B){var R=_.Zh(),V=_.Zh(),e=_.Zh(),X=_.hv(),Y=_.hv(),t=_.hv(),b=_.No(_.Xt,function(){return B.data().stateEntityStoreKey}),J=_.No(Etu,function(){var eJ,pR;
return(pR=(eJ=B.data().notificationStateEntityStoreKeys)==null?void 0:eJ.subsNotificationStateKey)!=null?pR:""}),G=function(){return!B.data().enableSubscribeButtonPostClickAnimation},y=_.h(_.WU(0,void 0,"j8TVGc")),S=y.next().value,M=y.next().value;
y=_.h(_.WU(0,void 0,"LYLUoe"));var f=y.next().value,z=y.next().value;y=_.h(_.WU(!1,void 0,"CXkJEf"));var T=y.next().value,L=y.next().value;y=_.h(_.WU(!1,void 0,"OWieEd"));var Q=y.next().value,q=y.next().value;y=_.h(_.WU(!1,void 0,"bHcaje"));var m=y.next().value,g=y.next().value,Vu;y=_.h(_.WU(!1,void 0,"Cjx6se"));var n=y.next().value,Yd=y.next().value,kd=function(){q(!0);_.kx(_.dV,function(){q(!1)},1500)};
_.lJ(function(){var eJ=Q();tI(function(){eJ&&!G()&&b()&&UJY(X,Y,t)})});
_.lJ(function(){var eJ=b();tI(function(){if(!G()&&eJ){var pR;((pR=B.animateWidth)==null?0:pR.call(B))&&jsd(R.value,!!eJ.subscribed,S(),f());var d4,W2;((d4=Vu)==null?0:d4.subscribed)||!eJ.subscribed||eJ.key!==((W2=Vu)==null?void 0:W2.key)||kd();Vu=eJ}})});
y=_.NW(function(){var eJ,pR,d4,W2=B.data(),By=!((eJ=b())==null||!eJ.subscribed);eJ=!((pR=B.isOverlay)==null||!pR.call(B));pR=T()?R.value:void 0;var DY=(d4=J())==null?void 0:d4.state;d4=n();Jc_(W2,DY);return Gr({model:W2,subscribed:By,isOverlay:eJ,element:pR,notificationState:DY,disableTextEllipsis:!0,focused:d4})},void 0,"g67gvb");
var a5=function(){var eJ;if(!G()&&((eJ=B.animateWidth)==null?0:eJ.call(B))&&(V==null?0:V.value)&&(e==null?0:e.value)&&!m()){eJ=b();var pR=_.h((eJ==null?0:eJ.subscribed)?[V,e]:[e,V]),d4=pR.next().value;pR=pR.next().value;d4=Math.ceil(d4.value.getBoundingClientRect().width);pR=Math.ceil(pR.value.getBoundingClientRect().width);M(d4);z(pR);jsd(R.value,!(eJ==null||!eJ.subscribed),d4,pR);g(!0)}},lo=_.Wr(function(eJ){a5();
var pR=b();pR&&(eJ.detail.endpoint.subscribeEndpoint||eJ.detail.endpoint.unsubscribeEndpoint)&&WFI(R.value,!pR.subscribed,pR)}),io=function(){var eJ=_.Oz().resolve(_.uj(_.DE));
eJ&&Yd(eJ.isKeyBoardInUse())},vd=function(){Yd(!1)};
_.gn("yt-player-subscribe",function(eJ){var pR=b();pR&&eJ===B.data().channelId&&WFI(R.value,!0,pR)});
_.gn("yt-player-unsubscribe",function(eJ){var pR=b();pR&&eJ===B.data().channelId&&WFI(R.value,!1,pR)});
_.gn("yt-update-subscribe-button-action",function(eJ){eJ=_.D(eJ,XAN);var pR=b();pR&&eJ&&eJ.channelId===B.data().channelId&&WFI(R.value,!!eJ.subscribed,pR)});
_.zM(function(){R.value&&(R.value.addEventListener("focusin",io),R.value.addEventListener("focusout",vd));var eJ=_.kD(_.dV,function(){a5()});
L(!0);_.aK(function(){_.dV.cancelJob(eJ);R.value&&(R.value.removeEventListener("focusin",io),R.value.removeEventListener("focusout",vd))})});
var cd=function(){var eJ,pR,d4;if(d4=!((eJ=b())==null||!eJ.subscribed))eJ=!!B.data().disableNotificationBell,d4=(pR=J())==null?void 0:pR.state,d4=!eJ&&!!d4;return d4},ES=function(){var eJ;
return!((eJ=b())==null?0:eJ.subscribed)},$d=function(){var eJ,pR;
if(pR=ES()){pR=!!B.data().disableNotificationBell;var d4=(eJ=J())==null?void 0:eJ.state;pR=!pR&&!!d4}return pR},Eo={},GG={};
return _.N("yt-subscribe-button-view-model",{class:_.XE(B.className,"yt-subscribe-button-view-model-wiz",(Eo["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var eJ,pR;return!((eJ=b())==null||!eJ.subscribed)&&((pR=B.animateWidth)==null?void 0:pR.call(B))&&Q()},Eo["yt-subscribe-button-view-model-wiz--hidden"]=function(){var eJ;
return!((eJ=b())==null?0:eJ.subscribed)&&B.data().hideWhenUnsubscribed},Eo)),
el:R,"on:yt-service-request-sent":lo},_.N(m5v,{backgroundLottieRef:X,foregroundLottieRef:Y,wrapperClass:_.XE("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(GG["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var eJ;return((eJ=B.animateWidth)==null?void 0:eJ.call(B))&&Q()},GG["yt-subscribe-button-view-model-wiz__static-width"]=function(){var eJ;
return!((eJ=B.animateWidth)==null?0:eJ.call(B))},GG)),
disableAnimation:G},_.N("div",{el:V,class:"yt-subscribe-button-view-model-wiz__container"},_.N(BI,{data:y,icon:function(){return _.N(_.H,{cond:cd,then:function(){var eJ=function(){var pR;return ta5((pR=J())==null?void 0:pR.state)};
return _.N(_.H,{cond:function(){return G()||eJ()!=="NOTIFICATIONS_NONE"},
then:function(){return _.N(_.Us,{icon:eJ})},
else:function(){return _.N(pAZ,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:t})}})}})},
secondaryIconName:function(){return cd()?"EXPAND":void 0}}))),_.N("div",{el:e,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.N(_.H,{cond:function(){var eJ;return((eJ=B.animateWidth)==null?void 0:eJ.call(B))&&!G()&&!m()},
then:function(){return _.N(BI,{data:_.NW(function(){var eJ;return Gr({model:B.data(),subscribed:ES(),isOverlay:!((eJ=B.isOverlay)==null||!eJ.call(B)),element:R.value,disableTextEllipsis:!0})},void 0,"smNF2c"),
iconName:function(){var eJ;return $d()?ta5((eJ=J())==null?void 0:eJ.state):void 0},
secondaryIconName:function(){return $d()?"EXPAND":void 0}})}})))},"C");
_.OX5=_.k("web_enable_sink_yt_subscribe_button_view_model")?uz_:hSK;oL4=_.k("web_enable_sink_yt_subscribe_button_view_model")?uz_:_.h3(hSK);uz_.idomCompat=!0;var Nwu=new _.u0("RENDERER_STAMPER_OPTIONS_TOKEN");var aV;_.zr=new xUv;aV=new Map;var LFY="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),KFx=["notificationTextRenderer","notificationMultiActionRenderer"],vLI="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
xJ_=f3S(function(B){return _.wA(B==null?void 0:B.targetId)}).useUpdatableData;var TwY=0;_.wb.debugName="EjJbCe";var Bw4=_.sx(function(B){var R=B.data;var V=_.No(_.Xt,function(){return R().subscriptionStateEntityKey});
return _.N(_.H,{cond:function(){var e=R(),X=V();return!e.hideWhenUnsubscribed||(X==null?0:X.subscribed)?_.D(R().button,_.Tr):void 0},
then:function(e){return _.N("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.N(_.qo,{data:e,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var QsI=_.ll({buttonViewModel:_.qo,subscribeButtonViewModel:_.OX5,downloadButtonViewModel:rl5,toggleButtonViewModel:_.LO,subscribePlusButtonViewModel:Bw4});_.oA(ccd);var RS4=_.sx(function(B){return _.N(_.wb,{data:function(){return B.actionRow().actions}},{buttonViewModel:function(R){var V=R.data;
return _.N(k2,{isRow:B.isRow,isIconOnlyButton:function(){return Acd(V())},
useIntrinsicWidth:B.useIntrinsicWidth},_.N(_.qo,{data:V}))},
subscribeButtonViewModel:function(R){return _.N(k2,{isRow:B.isRow},_.N(oL4,{data:R.data,isOverlay:!1,animateWidth:function(){return!B.isRow()}}))},
downloadButtonViewModel:function(R){var V=R.data;return _.N(k2,{isRow:B.isRow,isIconOnlyButton:function(){return!!V().playlistId}},_.N(rl5,{data:V}))},
toggleButtonViewModel:function(R){var V=R.data;return _.N(k2,{isRow:B.isRow,isIconOnlyButton:function(){var e=V();return Acd(_.D(e.isToggled?e.toggledButtonViewModel:e.defaultButtonViewModel,_.Tr))}},_.N(_.LO,{data:V}))},
subscribePlusButtonViewModel:function(R){return _.N(k2,{isRow:B.isRow},_.N(Bw4,{data:R.data}))}})},"E"),k2=_.sx(function(B){var R={};
return _.N("div",{class:_.XE("yt-flexible-actions-view-model-wiz__action",(R["yt-flexible-actions-view-model-wiz__action--row-action"]=B.isRow,R["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=B.useIntrinsicWidth,R["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,R["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=B.isIconOnlyButton,R))},B.children)},"F"),Va_=_.sx(function(B){var R=function(){var e;
return((e=B.layout)==null?void 0:e.call(B))===1},V={};
return _.N("yt-flexible-actions-view-model",{class:_.XE("yt-flexible-actions-view-model-wiz",B.className,(V["yt-flexible-actions-view-model-wiz--inline"]=function(){return!R()},V["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return B.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},V))},_.N(_.yh,{each:function(){return B.data().actionsRows||[]}},function(e){return _.N(_.H,{cond:R,
then:function(){return _.N("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.N(RS4,{actionRow:e,isRow:R,useIntrinsicWidth:function(){return!!B.data().respectActionIntrinsicWidth}}))},
else:function(){return _.N(RS4,{actionRow:e,isRow:R})}})}))},"G"),eSv=_.k("web_enable_sink_yt_flexible_actions_view_model")?Va_:ccd,DC=_.k("web_enable_sink_yt_flexible_actions_view_model")?Va_:_.h3(ccd);
Va_.idomCompat=!0;_.mR(DC,"yt-flexible-actions-view-model",{props:{data:_.qq,layout:_.qq,justifyContentOverride:_.qq,className:_.qq}});_.oA(isd);var XAl,mJ_;XAl=_.sx(function(B){var R=_.No(Tj,function(){var X;return(X=B.data().dislikeEntityKey)!=null?X:""}),V=_.NW(function(){var X=R();
return X?X.likeStatus==="DISLIKE":_.D(B.data().toggleButtonViewModel,_.xx).isToggled},void 0,"D8oIFb"),e=_.NW(function(){return Object.assign({},_.D(B.data().toggleButtonViewModel,_.xx),{isToggled:V()})},void 0,"shaCXe");
return _.N("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.N(_.LO,{data:e,buttonShapeOverrides:B.buttonShapeOverrideables,onToggle:function(X){var Y=R();Y&&X!==(Y.likeStatus==="DISLIKE")&&Y.key&&_.cc(_.v7("likeStatusEntity",Y.key,{likeStatus:X?"DISLIKE":"INDIFFERENT",hadUserInteraction:X}))}}))},"H");
mJ_=_.k("web_enable_sink_dislike_button_view_model")?XAl:isd;_.fI=_.k("web_enable_sink_dislike_button_view_model")?XAl:_.h3(isd);XAl.idomCompat=!0;_.oA(FFY);var pAR,Zsx;pAR=_.sx(function(B){var R=_.k("web_supports_animations_api"),V=rl(function(M){var f=G(),z,T=(f==null?void 0:(z=f.likeCountIfIndifferent)==null?void 0:z.content)!==M.numberText;if(b()||!T)return M;var L,Q;return{numberText:(f==null?void 0:(L=f.likeCountIfIndifferent)==null?void 0:L.content)||"",numberValue:Number((Q=f==null?void 0:f.likeCountIfIndifferentNumber)!=null?Q:0),heightPx:36,shouldAnimate:!!f}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),e=rl(function(M){var f=G(),z,T=(f==null?void 0:(z=f.likeCountIfIndifferent)==null?void 0:z.content)!==M.numberText;if(b()||!T)return M;var L,Q;return{numberText:(f==null?void 0:(L=f.likeCountIfLiked)==null?void 0:L.content)||"",numberValue:Number((Q=f==null?void 0:f.likeCountIfLikedNumber)!=null?Q:0),heightPx:36,shouldAnimate:!!f}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),X=_.h(_.WU(void 0,void 0,"T6jMHc")),Y=X.next().value,t=X.next().value,b=Y,J=_.No(Tj,function(){var M,f;return(f=(M=B.data())==null?void 0:M.likeStatusEntityKey)!=null?f:""}),G=_.No(UbI,function(){var M,f;
return((M=B.likeCountEntity)==null?void 0:(f=M.call(B))==null?void 0:f.key)||""}),y=_.NW(function(){var M;
return((M=J())==null?void 0:M.likeStatus)==="LIKE"},void 0,"WxQBcd"),S=function(){var M;
return R&&!((M=B.likeCountEntity)==null||!M.call(B))};
return _.N("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.N(_.LO,{data:function(){var M=Object,f=M.assign,z;var T=_.D((z=B.data())==null?void 0:z.toggleButtonViewModel,_.xx);return f.call(M,{},T||{},{isToggled:y()})},
buttonShapeOverrides:B.buttonShapeOverrideables,animatedTextPropsDefault:function(){return S()?V():void 0},
animatedTextPropsToggled:function(){return S()?e():void 0},
onToggle:function(M){rcd(M,J(),b(),t)},
style:function(){var M;return((M=B.disableIconAnimation)==null?0:M.call(B))?void 0:{animateIcon:"true"}}}))},"I");
Zsx=_.k("web_enable_sink_like_button_view_model")?pAR:FFY;_.l6=_.k("web_enable_sink_like_button_view_model")?pAR:_.h3(FFY);_.oA($JA);var Yfh=_.sx(function(B){var R=function(){return _.D(B.data().likeButtonViewModel,KO)},V=function(){var X;
return((X=R())==null?void 0:X.likeStatusEntityKey)||""},e=_.NW(function(){var X,Y;
var t=(Y=_.No(Tj,V)())!=null?Y:(X=R())==null?void 0:X.likeStatusEntity;X=B.data();var b;X=(X==null?void 0:(b=X.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:X,enabled:(t==null?void 0:t.likeStatus)==="INDIFFERENT"&&X.length>0,experimentEnabled:X.length>0}},void 0,"e1fsz");
return _.N("segmented-like-dislike-button-view-model",{class:_.XE("ytSegmentedLikeDislikeButtonViewModelHost",B.className),"button-renderer":!0},_.N(qMl,{settings:e},_.N("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.N(_.H,{cond:R,then:function(X){return _.N(_.l6,{data:X,likeCountEntity:function(){return B.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.N(_.H,{cond:function(){return _.D(B.data().dislikeButtonViewModel,IV)},
then:function(X){return _.N(_.fI,{data:X,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),hSS=_.k("web_enable_sink_segmented_like_dislike_button_view_model")?Yfh:$JA;
Yfh.idomCompat=!0;_.k("web_enable_sink_segmented_like_dislike_button_view_model")?_.mR(hSS,"segmented-like-dislike-button-view-model",{props:{data:_.qq,className:_.qq}}):_.Br(hSS,"segmented-like-dislike-button-view-model",{propNames:["data"]});var okd=0;_.mR(NjZ,"account-link-button-view-model",{props:{data:_.qq,className:_.Z9,setMinWidth:_.Z9,forceIconOnly:_.Z9}});_.aO("menuRenderer","menuRenderer","ytd-menu-renderer");
var ta4={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"}},
WFb=_.k("web_fix_missing_action_buttons")?100:200,zB=function(){var B=_.c.apply(this,arguments)||this;B.safeArea=!_.k("kevlar_flex_menu_safe_area_killswitch");B.tonalOverride=!1;B.threeDotSize="M";B.isOverlay=!1;B.useOverlayDark=!1;B.topLevelIconsOnly=!1;B.JSC$12420_lastWidth=0;B.maybeUpdateFlexibleMenu=function(){_.k("web_fix_missing_action_buttons")?requestAnimationFrame(B.maybeUpdateFlexibleMenuImpl):B.maybeUpdateFlexibleMenuImpl()};
B.maybeUpdateFlexibleMenuImpl=function(){var R;if((R=B.data)!=null&&R.flexibleItems){B.maybeFlushDebouncer();R=B.hostElement.clientWidth;var V=R>B.JSC$12420_lastWidth,e,X=((e=B.topLevelButtonsContainer)==null?void 0:e.scrollHeight)||0,Y;e=((Y=B.flexibleItemButtonsContainer)==null?void 0:Y.scrollHeight)||0;Y=B.hostElement.scrollHeight>Math.max(X,e)+8;V?(B.resetFlexibleItems(),B.JSC$12420_lastWidth=B.hostElement.clientWidth,B.maybeUpdateFlexibleMenu()):Y&&(B.shrinkFlexibleMenu(),B.JSC$12420_lastWidth=
R)}};
B.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){B.onOverflowTap()},
iconPosition:"icon-only",style:B.isOverlay?B.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:B.threeDotSize,state:"active",accessibilityLabel:B.computeAccessibilityLabel(B.data)},B.threeDotButtonOverride)};
B.onOverflowTap=function(){if(B.data.fetchMenuCommand)_.Oz().resolve(_.oC).resolveCommand(B.data.fetchMenuCommand,{form:{element:B.hostElement}});else if(B.data.isDisabled&&B.data.disabledCommand)_.Xc(B.data.disabledCommand,B.hostElement);else{var R=B.createMenuRendererVe(),V={items:B.items};B.data.menuPopupAccessibility&&(V.menuPopupAccessibility=B.data.menuPopupAccessibility);B.data.footer&&(V.footer=B.data.footer);R={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:V},veData:R}};
_.Oz().resolve(_.HO).openSheet({openPopupActionCommand:R},B.hostElement)}};
return B};
_.l(zB,_.c);_.p=zB.prototype;_.p.updateButtonOverrides=function(){if(!_.k("menu_renderer_label_update_upkillswitch")){var B=_.w(this.hostElement).querySelector("yt-button-view-model");B&&(B.buttonOverrides=this.buttonOverrides)}};
_.p.computeHasItems=function(){var B;return((B=this.topLevelButtonData)==null?void 0:B.length)||this.hasFlexibleItems};
_.p.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.p.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.o_(this.hostElement,{"--ytd-menu-renderer-button-color":_.li(this.data.iconColor)}))};
_.p.onStamperFinished=function(){this.JSC$12420_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.p.setupFlexibleMenu=function(){var B=this,R;(R=this.data)!=null&&R.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.o7(this.maybeUpdateFlexibleMenu,WFb,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){B.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(_.k("web_replace_formatted_with_attributed_string")){var B;(B=this.topLevelButtons)==null||B.forEach(function(V){var e;(V=(e=V.getElementsByTagName("yt-attributed-string"))==null?void 0:e[0])&&A7o(V)});
var R;(R=this.flexibleItemButtons)==null||R.forEach(function(V){var e;(V=(e=V.getElementsByTagName("yt-attributed-string"))==null?void 0:e[0])&&A7o(V)})}};
_.p.resetFlexibleItems=function(){var B;if((B=this.data)!=null&&B.flexibleItems){_.k("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var R;this.flexAsTopLevelButtons=(R=this.data.flexibleItems)==null?void 0:R.map(function(V){return _.D(V,_.eX2).topLevelButton});
_.k("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 B;(B=this.flexAsTopLevelButtons)!=null&&B.length&&(this.flexAsTopLevelButtons=[].concat(_.MI(this.flexAsTopLevelButtons.slice(0,-1))))};
_.p.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:ta4,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:ta4,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="yt-icons:more_vert"};
_.p.computeTopLevelButtonData=function(B){if(!B)return[];var R;B=(R=B==null?void 0:B.topLevelButtons)!=null?R:[];return _.M_.unsafeClone([].concat(_.MI(B)))};
_.p.computeItems=function(B,R){if(!B)return[];var V=[];if(R){var e=(B.flexibleItems||[]).map(function(t){return _.D(t,_.eX2)});
e=_.h(e);for(var X=e.next();!X.done;X=e.next())X=X.value,R.includes(X.topLevelButton)||(X=X.menuItem)&&V.push(X)}var Y;B=(Y=B==null?void 0:B.items)!=null?Y:[];return[].concat(_.MI(V),_.MI(B))};
_.p.computeMenuActive=function(B,R){return B||R};
_.p.onPopupOpened=function(){this.overlayOpen=!0;_.OI(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.p.onPopupClosed=function(){this.overlayOpen=!1;_.OI(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.p.onPopupCanceled=function(){this.overlayOpen=!1;_.OI(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.p.computeAccessibilityLabel=function(B){return this.get("accessibility.accessibilityData.label",B)};
_.p.isHidden=function(B,R){return this.tonalOverride||!B?!0:B.fetchMenuCommand||B.isDisabled&&B.disabledCommand?!1:!(R==null?0:R.length)};
_.p.isModernOverflowHidden=function(B,R){return this.tonalOverride&&B?B.fetchMenuCommand?!1:!(R==null?0:R.length):!0};
_.p.createMenuRendererVe=function(){var B=this.data.trackingParams,R=_.TE(),V=_.wT();return B&&R&&V?(B=_.U5(B),V=_.kB(7591),_.k("combine_ve_grafts")?_.YJ(_.WK(),V,B):_.EV(R,B,V),V):null};
_.mh.Object.defineProperties(zB.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.flexAsTopLevelButtons)==null||!B.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
zB.prototype.onPopupCanceled=zB.prototype.onPopupCanceled;zB.prototype.onPopupClosed=zB.prototype.onPopupClosed;zB.prototype.onPopupOpened=zB.prototype.onPopupOpened;zB.prototype.tonalOverrideChanged=zB.prototype.tonalOverrideChanged;zB.prototype.resetFlexibleItems=zB.prototype.resetFlexibleItems;zB.prototype.setupFlexibleMenu=zB.prototype.setupFlexibleMenu;zB.prototype.iconButtonColorChanged=zB.prototype.iconButtonColorChanged;zB.prototype.updateButtonOverrides=zB.prototype.updateButtonOverrides;
_.r([_.v(_.Ad),_.Z("design:type",Object)],zB.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Yp("#button-shape"),_.Z("design:type",Ob)],zB.prototype,"buttonShape",void 0);_.r([_.Yp("#button"),_.Z("design:type",Object)],zB.prototype,"button",void 0);
_.r([_.E(),_.Z("design:type",Object)],zB.prototype,"data",void 0);_.r([_.E({computed:"computeTopLevelButtonData(data)"}),_.Z("design:type",Array)],zB.prototype,"topLevelButtonData",void 0);_.r([_.E(),_.Z("design:type",Array)],zB.prototype,"flexAsTopLevelButtons",void 0);_.r([_.E({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Z("design:type",Array)],zB.prototype,"items",void 0);_.r([_.E({value:"yt-icons:more_vert"}),_.Z("design:type",String)],zB.prototype,"icon",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zB.prototype,"safeArea",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Z("design:type",Boolean)],zB.prototype,"menuActive",void 0);_.r([_.E(),_.Z("design:type",Boolean)],zB.prototype,"menuFocused",void 0);_.r([_.E({value:"bottom"}),_.Z("design:type",String)],zB.prototype,"buttonTooltipPosition",void 0);_.r([_.E(),_.Z("design:type",Boolean)],zB.prototype,"overlayOpen",void 0);
_.r([_.E({value:!0}),_.Z("design:type",Boolean)],zB.prototype,"forceIconButton",void 0);_.r([_.E(),_.Z("design:type",Boolean)],zB.prototype,"styleActionButton",void 0);_.r([_.E(),_.Z("design:type",Boolean)],zB.prototype,"disableTextTransformOnButtons",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zB.prototype,"tonalOverride",void 0);_.r([_.E(),_.Z("design:type",Object)],zB.prototype,"threeDotSize",void 0);
_.r([_.E(),_.Z("design:type",Object)],zB.prototype,"threeDotButtonOverride",void 0);_.r([_.E(),_.Z("design:type",Object)],zB.prototype,"isOverlay",void 0);_.r([_.E(),_.Z("design:type",Object)],zB.prototype,"useOverlayDark",void 0);_.r([_.E({computed:"computeButtonOverride(tonalOverride)"}),_.Z("design:type",Object)],zB.prototype,"buttonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zB.prototype,"hasCustomIconColor",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("flexAsTopLevelButtons"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zB.prototype,"hasFlexibleItems",null);_.r([_.E({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Z("design:type",Boolean)],zB.prototype,"hasItems",void 0);_.r([_.E(),_.Z("design:type",Object)],zB.prototype,"topLevelIconsOnly",void 0);
_.r([_.XX("topLevelIconsOnly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zB.prototype,"updateButtonOverrides",null);_.r([_.K("topLevelIconsOnly"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zB.prototype,"buttonOverrides",null);_.r([_.Yp("#top-level-buttons-computed"),_.Z("design:type",HTMLElement)],zB.prototype,"topLevelButtonsContainer",void 0);_.r([_.hM(".top-level-buttons > *"),_.Z("design:type",Array)],zB.prototype,"topLevelButtons",void 0);
_.r([_.Yp("#flexible-item-buttons"),_.Z("design:type",HTMLElement)],zB.prototype,"flexibleItemButtonsContainer",void 0);_.r([_.hM("#flexible-item-buttons > *"),_.Z("design:type",Array)],zB.prototype,"flexibleItemButtons",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zB.prototype,"iconButtonColorChanged",null);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zB.prototype,"setupFlexibleMenu",null);_.r([_.bp("topLevelIconsOnly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zB.prototype,"resetFlexibleItems",null);_.r([_.XX("tonalOverride"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zB.prototype,"tonalOverrideChanged",null);
_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zB.prototype,"onPopupOpened",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zB.prototype,"onPopupClosed",null);_.r([_.R_("yt-popup-canceled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zB.prototype,"onPopupCanceled",null);
_.F(zB,"ytd-menu-renderer",function(){if(D5J===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);D5J=B}B=D5J;return B},{mode:_.up("kevlar_poly_si_batch_j030")?1:2});var bsR;var JcG;_.ul=_.sx(function(B){var R=B.data;var V=function(){if(R().icon)a:{var e={iconName:R().icon};for(var X=_.Oz().resolve(_.VM),Y=_.h([12,24]),t=Y.next();!t.done;t=Y.next()){var b=t.value;t=Object.assign({},e,{iconStyle:"youtube_fill",iconSize:b});b=Object.assign({},e,{iconStyle:"youtube_outline",iconSize:b});if(X.resolveIcon(t)){e=t;break a}if(X.resolveIcon(b)){e=b;break a}}e=void 0}else e=void 0;return e};
B={};return _.N("badge-shape",{class:_.XE("badge-shape-wiz",function(){return StN(R().type)},(B["badge-shape-wiz--overlay"]=function(){return R().isOverlay},B["badge-shape-wiz--ads-include-dot"]=function(){return R().adsIncludeDot},B["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(R().type){case 16:case 17:case 18:var e=!0;
break a;default:e=!1}return e},B["badge-shape-wiz--status-badge"]=function(){a:switch(R().type){case 11:case 12:case 13:case 14:case 15:var e=!0;
break a;default:e=!1}return e},B["badge-shape-wiz--no-text"]=function(){return!R().text},B["badge-shape-wiz--modern"]=function(){return R().modern},B)),
style:_.jQ({"background-color":function(){var e;return(e=R().customColors)==null?void 0:e.backgroundColor}}),
role:function(){return R().accessibilityText?"img":void 0},
"aria-label":function(){return R().accessibilityText}},_.N(_.H,{cond:function(){return R().animation},
then:function(e){return _.N(_.pD,{className:"badge-shape-wiz__icon",data:e,animationName:function(){return e().animationConfig.name||""}})}}),_.N(_.H,{cond:function(){var e;
return V()&&!((e=R())==null?0:e.animation)},
then:function(){return _.N("div",{class:"badge-shape-wiz__icon"},_.N(Xeu,{data:function(){return V()}}))}}),_.N("div",{class:"badge-shape-wiz__text"},function(){var e;
return(e=R())==null?void 0:e.text}))},"K");
_.ul.idomCompat=!0;_.mR(_.ul,"badge-shape",{props:{data:_.qq}});var af=function(){var B=_.c.apply(this,arguments)||this;B.systemIcons=_.k("kevlar_system_icons");B.animated=_.k("animated_live_badge_icon");B.useBadgeShape=_.k("web_badge_shape_defrag");return B};
_.l(af,_.c);_.p=af.prototype;_.p.addTooltips=function(){for(var B=_.w(this.hostElement).querySelectorAll(".badge"),R=0,V;V=B[R++];){var e=this.repeatElement.itemForElement(V);V=_.w(V);V.lastChild&&V.lastChild.is==="tp-yt-paper-tooltip"&&V.removeChild(V.lastChild);if(e=e.metadataBadgeRenderer&&e.metadataBadgeRenderer.tooltip){var X=_.rM("tp-yt-paper-tooltip");(0,_.OX)(X).textContent=e;X.setAttribute("position","top");V.appendChild(X)}}};
_.p.badgesChanged=function(){var B=this;_.Ep().parkOrScheduleJob(function(){B.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.p.standaloneRoundedBadgeChanged=function(){var B=this.useRoundedBadge?this.useRoundedBadge:void 0;B&&(this.useRoundedBadge=B)};
_.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(B){_.k("enable_html5_teal_ad_badge")&&B==="BADGE_STYLE_TYPE_AD"&&(B="badge-style-type-ad-alternate");_.k("kevlar_ytb_live_badges")&&B==="BADGE_STYLE_TYPE_LIVE_NOW"&&(B="badge-style-type-live-now-alternate");return B?B.toLowerCase().replace(/_/g,"-"):""};
_.p.computeRole=function(B){return this.computeAriaLabel(B)?"img":"status"};
_.p.computeAriaLabel=function(B){var R;return(B==null?void 0:(R=B.accessibilityData)==null?void 0:R.label)||(B==null?void 0:B.label)};
_.p.computeBadgeShape=function(B){var R;if(B){var V,e=GUK(B.style),X=y1p(B.style),Y=B.label,t=((V=B.accessibilityData)==null?void 0:V.label)||B.label;B=(R=B.icon)==null?void 0:R.iconType;R={type:e,brNzRatingBadgeType:X,text:Y,accessibilityText:t,icon:B!=="PREMIUM"?B:void 0}}else R={};return R};
_.p.updateComputedBadges=function(B,R,V){var e=this;(R=R?[R]:V?[V]:void 0)?this.computedBadges=R:this.computedBadges=B==null?void 0:B.filter(function(X){var Y;if((Y=X.metadataBadgeRenderer)==null?0:Y.groups){Y=!1;X=_.h(X.metadataBadgeRenderer.groups);for(var t=X.next();!t.done;t=X.next()){t=t.value;var b=void 0;Y=Y||((b=e.hiddenBadgeGroups)==null?void 0:b.includes(t))}return!Y}return!0})};
_.p.useFilledIcons=function(B){return _.k("kevlar_system_icons")&&(B==="AUDIO_BADGE"||B==="CHECK_CIRCLE_THICK"||B==="OFFICIAL_ARTIST_BADGE"||B==="SPONSORSHIP_STAR"||B==="PERSON_RADAR_FILLED"||B==="PERSON_RADAR")};
_.p.computeIcon=function(B){var R,V;B=B==null?void 0:(R=B.metadataBadgeRenderer)==null?void 0:(V=R.icon)==null?void 0:V.iconType;if(B!=="PREMIUM"&&B)return _.RT(B)};
_.p.computeStandaloneBadge=function(B){var R;B=B==null?void 0:(R=B.icon)==null?void 0:R.iconType;return B==="PREMIUM_STANDALONE"||B==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
af.prototype.hiddenBadgeGroupsChanged=af.prototype.hiddenBadgeGroupsChanged;af.prototype.standaloneBadgeChanged=af.prototype.standaloneBadgeChanged;af.prototype.standaloneRoundedBadgeChanged=af.prototype.standaloneRoundedBadgeChanged;af.prototype.badgesChanged=af.prototype.badgesChanged;_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"hidden",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],af.prototype,"componentBehavior",void 0);
_.r([_.E(),_.Z("design:type",Array)],af.prototype,"badges",void 0);_.r([_.E(),_.Z("design:type",Object)],af.prototype,"topStandaloneBadge",void 0);_.r([_.E(),_.Z("design:type",Object)],af.prototype,"bottomStandaloneBadge",void 0);_.r([_.E(),_.Z("design:type",Object)],af.prototype,"computedBadges",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"mediumFontAdBadge",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"useRoundedBadge",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"largeFontAdBadge",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"overlayAd",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"overlayPremium",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"noDotAdBadge",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"collectionTruncate",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"isThumbnailBadge",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],af.prototype,"wrapBadges",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],af.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],af.prototype,"animated",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],af.prototype,"useBadgeShape",void 0);_.r([_.E({value:[]}),_.Z("design:type",Array)],af.prototype,"hiddenBadgeGroups",void 0);_.r([_.Yp("#repeat"),_.Z("design:type",Hc)],af.prototype,"repeatElement",void 0);_.r([_.bp("badges"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],af.prototype,"badgesChanged",null);
_.r([_.bp("useRoundedBadge"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],af.prototype,"standaloneRoundedBadgeChanged",null);_.r([_.bp("topStandaloneBadge","bottomStandaloneBadge"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],af.prototype,"standaloneBadgeChanged",null);_.r([_.bp("hiddenBadgeGroups"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],af.prototype,"hiddenBadgeGroupsChanged",null);
af=_.r([_.A({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],af);
var js2=_.nJ()(af,"ytd-badge-supported-renderer",function(){if(JcG===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);JcG=B}B=JcG;return B},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.up("kevlar_poly_si_batch_j053")?1:2});var d0=function(){var B=_.c.apply(this,arguments)||this;B.iconType="STAR";B.standardizeIconSize=_.k("kevlar_system_icons");B.mediaHoverOverlayInitialVisibility=_.k("enable_top_landscape_image_button_command_web");B.noBottomMargin=!1;B.thumbnailObjectFit="CONTAIN";B.thumbnailFitHeight=!0;B.actionMap={"yt-mute-ad-action":"handleMuteAd"};return B};
_.l(d0,_.c);_.p=d0.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",d0.JSC$12432_DEFAULT_CLICK_LOCATION_BEHAVIOR,d0.JSC$12432_CLICK_LOCATION_ID_MAP))};
_.p.onTap=function(B){if(!_.k("use_on_click_for_desktop_display_ad"))this.onTapOrClick(B)};
_.p.onClick=function(B){if(_.k("use_on_click_for_desktop_display_ad"))this.onTapOrClick(B)};
_.p.onTapOrClick=function(B){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,B,!1)};
_.p.updateMediaBackgroundImage=function(){var B=this.get("data.image.thumbnail.thumbnails");B&&(B=_.$T(B,0))&&_.o_(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+B+")"})};
_.p.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var B=0;B<this.data.impressionEndpoints.length;B++){var R=this.data.impressionEndpoints[B];R.clickTrackingParams&&delete R.clickTrackingParams;_.Oz().resolve(_.oC).resolveCommand(R,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var V;((V=this.data)==null?0:V.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.p.handleMuteAd=function(){};
_.p.attached=function(){var B=this;_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.k("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.mh.Object.defineProperties(d0.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.titleText)return"";var R;return _.Wz("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((R=this.data)==null?void 0:R.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.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 B;return!((B=this.data)==null||!B.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"}}});
d0.prototype.onClick=d0.prototype.onClick;d0.prototype.onTap=d0.prototype.onTap;d0.prototype.dataChanged=d0.prototype.dataChanged;
d0.JSC$12432_CLICK_LOCATION_ID_MAP=_.k("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"]]);
d0.JSC$12432_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.k("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"}];_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.TY),_.Z("design:type",Object)],d0.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],d0.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.$c.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],d0.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.v(zY),_.Z("design:type",Object)],d0.prototype,"ytdActiveViewBehavior",void 0);_.r([_.v([_.$Z.YtActionHandlerBehavior]),_.Z("design:type",Object)],d0.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],d0.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],d0.prototype,"clickCommand",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],d0.prototype,"miniMode",void 0);_.r([_.E(),_.Z("design:type",String)],d0.prototype,"iconType",void 0);_.r([_.K("data.titleText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],d0.prototype,"titleAriaLabel",null);
_.r([_.K("data.rating"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],d0.prototype,"getRating",null);_.r([_.K("data.price"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],d0.prototype,"getPrice",null);_.r([_.K("data.thirdLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],d0.prototype,"getThirdLine",null);_.r([_.K("data.fourthLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],d0.prototype,"getFourthLine",null);
_.r([_.K("data.fifthLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],d0.prototype,"getFifthLine",null);_.r([_.K("getRating"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d0.prototype,"computeRatingHidden",null);_.r([_.K("getPrice"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d0.prototype,"computePriceHidden",null);_.r([_.K("getThirdLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d0.prototype,"computeThirdLineHidden",null);
_.r([_.K("getFourthLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d0.prototype,"computeFourthLineHidden",null);_.r([_.K("getFifthLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d0.prototype,"computeFifthLineHidden",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.energyIcon"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d0.prototype,"hasEnergyIcon",null);
_.r([_.K("computePriceHidden","computeRatingHidden"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d0.prototype,"computeSecondaryTextHidden",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],d0.prototype,"standardizeIconSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],d0.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],d0.prototype,"noBottomMargin",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data.layout"),_.Z("design:type",String),_.Z("design:paramtypes",[])],d0.prototype,"layout",null);_.r([_.K("data.layout"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],d0.prototype,"mediaThumbnailWidth",null);_.r([_.K("layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d0.prototype,"useRoundedBadge",null);_.r([_.E(),_.Z("design:type",String)],d0.prototype,"thumbnailObjectFit",void 0);
_.r([_.E(),_.Z("design:type",Object)],d0.prototype,"thumbnailFitHeight",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d0.prototype,"dataChanged",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],d0.prototype,"onTap",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],d0.prototype,"onClick",null);
d0=_.r([_.A({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],d0);
_.F(d0,"ytd-display-ad-renderer",function(){if(bsR!==void 0)return bsR;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return bsR=B},{mode:1});var UJT;var Nwv;var GJT;var H4Z=new Map;var yc5=!1;var w0=function(){var B=_.c.apply(this,arguments)||this;B.DEFAULT_TOOLTIP_OFFSET="10";B.TOOLTIP_OFFSET_NO_BANNER="-8";B.badges=null;B.noEndpoints=!1;B.wrapText=!1;B.forceVerified=!1;B.tooltipPosition="top";B.compactStyle=!1;B.height=0;B.lineHeight=0;return B};
_.l(w0,_.c);_.p=w0.prototype;_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.p.attached=function(){var B=this;this.observer=new MutationObserver(function(R,V){B.handleResized();V.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.p.detached=function(){this.observer&&this.observer.disconnect()};
_.p.logTooltipEvent=function(){_.k("kevlar_wiz_tooltip_event_killswitch")||yc5||(_.Mwp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),yc5=!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 B=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.vE("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=B:this.textContainerEl.style.marginRight=B}};
_.p.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.vE("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.p.handleResized=function(){var B=this;this.verified&&_.dV.addLowPriorityJob(function(){B.fitBackgroundToText();var R=getComputedStyle(B.hostElement).lineHeight;R&&(R=R.match(/\d+/))&&R.length&&(B.lineHeight=Number(R[0]));B.height=B.lineHeight&&!B.wrapText?B.lineHeight:B.textEl.offsetHeight})};
_.p.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var B=document.createRange(),R=_.w(this.textEl).children;R.length>0?B.selectNodeContents(R[0]):B.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(B.getBoundingClientRect().width)+"px"}};
_.p.computeChannelBadgeStyle=function(B){var R;if((B==null?0:(R=B.runs)==null?0:R.length)&&B.runs[0].textColor)return"--ytd-badge-icon-color:"+_.li(B.runs[0].textColor)+";"};
_.mh.Object.defineProperties(w0.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"?_.s$(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var B=this.get("badges.0.metadataBadgeRenderer.tooltip");if(B)return B}return _.FF(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
w0.prototype.onLineHeightChanged=w0.prototype.onLineHeightChanged;w0.prototype.onHeightChanged=w0.prototype.onHeightChanged;w0.prototype.onChannelNameChanged=w0.prototype.onChannelNameChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],w0.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],w0.prototype,"badges",void 0);_.r([_.E(),_.Z("design:type",Object)],w0.prototype,"channelName",void 0);
_.r([_.E(),_.Z("design:type",Object)],w0.prototype,"noEndpoints",void 0);_.r([_.E(),_.Z("design:type",Object)],w0.prototype,"wrapText",void 0);_.r([_.E(),_.Z("design:type",Object)],w0.prototype,"forceVerified",void 0);_.r([_.E(),_.Z("design:type",Object)],w0.prototype,"tooltipPosition",void 0);_.r([_.E(),_.Z("design:type",String)],w0.prototype,"tooltip",void 0);_.r([_.E(),_.Z("design:type",Boolean)],w0.prototype,"hasChannelArt",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],w0.prototype,"compactStyle",void 0);_.r([_.Yp("#text-container"),_.Z("design:type",HTMLElement)],w0.prototype,"textContainerEl",void 0);_.r([_.Yp("#text"),_.Z("design:type",Object)],w0.prototype,"textEl",void 0);_.r([_.Yp("#verified-tooltip"),_.Z("design:type",HTMLElement)],w0.prototype,"verifiedTooltip",void 0);_.r([_.E(),_.Z("design:type",Object)],w0.prototype,"height",void 0);
_.r([_.E(),_.Z("design:type",Object)],w0.prototype,"lineHeight",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("badges","forceVerified"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],w0.prototype,"verified",null);_.r([_.K("badges","verified"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],w0.prototype,"hideBadges",null);_.r([_.K("channelName"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],w0.prototype,"formattedName",null);
_.r([_.K("badges","verified","formattedName"),_.Z("design:type",String),_.Z("design:paramtypes",[])],w0.prototype,"tooltipText",null);_.r([_.K("hasChannelArt"),_.Z("design:type",String),_.Z("design:paramtypes",[])],w0.prototype,"tooltipOffset",null);_.r([_.XX("channelName"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w0.prototype,"onChannelNameChanged",null);
_.r([_.XX("height"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w0.prototype,"onHeightChanged",null);_.r([_.XX("lineHeight","height"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w0.prototype,"onLineHeightChanged",null);w0=_.r([_.A({is:"ytd-channel-name",disableElementRegistration:!0})],w0);
_.F(w0,"ytd-channel-name",function(){if(GJT!==void 0)return GJT;var B=document.createElement("template");_.a(B,'\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 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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return GJT=B},{mode:_.up("kevlar_poly_si_batch_j036")?1:2});var TB=function(){var B=_.c.apply(this,arguments)||this;B.standardizeIconSize=_.k("kevlar_system_icons");B.enableModernCommentBadges=_.k("enable_modern_comment_badges");return B};
_.l(TB,_.c);TB.prototype.basicPaletteChanged=function(){var B;(B=this.data.color)!=null&&B.basicColorPaletteData&&_.lP(this.hostElement,this.data.color.basicColorPaletteData)};
TB.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var B,R=this.get("basicColorPaletteData.backgroundColor",(B=this.data)==null?void 0:B.color),V;B=this.get("basicColorPaletteData.foregroundTitleColor",(V=this.data)==null?void 0:V.color);V={};R?(R=_.li(R),V["--ytd-author-comment-badge-background-color"]=R):(V["--ytd-author-comment-badge-icon-background-color"]="transparent",V["--ytd-author-comment-badge-background-color"]="transparent");B?(R=_.li(B),V["--ytd-author-comment-badge-name-color"]=
R,V["--ytd-author-comment-badge-icon-color"]=R):V["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(V).length>0&&_.o_(this.hostElement,V)}};
TB.prototype.useFilledIcons=function(B){return _.k("kevlar_system_icons")&&(B==="CHECK_CIRCLE_THICK"||B==="OFFICIAL_ARTIST_BADGE")};
_.mh.Object.defineProperties(TB.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
TB.prototype.colorChanged=TB.prototype.colorChanged;TB.prototype.basicPaletteChanged=TB.prototype.basicPaletteChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],TB.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],TB.prototype,"standardizeIconSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],TB.prototype,"enableModernCommentBadges",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data.authorUnifiedVerified"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TB.prototype,"verified",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TB.prototype,"creator",null);_.r([_.XX("data.color.basicColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TB.prototype,"basicPaletteChanged",null);
_.r([_.XX("data.color"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TB.prototype,"colorChanged",null);TB=_.r([_.A({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],TB);
_.F(TB,"ytd-author-comment-badge-renderer",function(){if(Nwv!==void 0)return Nwv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Nwv=B},{mode:1});var Sfv;var x2=function(){return _.c.apply(this,arguments)||this};
_.l(x2,_.c);x2.prototype.computeThumbnailWidth=function(B){if(B==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],x2.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],x2.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],x2.prototype,"surface",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.k("enable_shrink_image_size_on_web_posts_singleton")}),_.Z("design:type",Boolean)],x2.prototype,"searchSxsUx",void 0);x2=_.r([_.A({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],x2);
_.F(x2,"ytd-backstage-image-renderer",function(){if(Sfv!==void 0)return Sfv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Sfv=B},{mode:1});var Hsa;var LI=function(){var B=_.c.apply(this,arguments)||this;B.isLoading=!1;B.selectedItemIndex=-1;return B};
_.l(LI,_.c);_.p=LI.prototype;_.p.computeIsChannelOwner=function(B){if(!B)return!0;B=B[0];return!(B&&(B.signinEndpoint||B.selectServiceEndpoint))};
_.p.computeIsImagePoll=function(B){return(B==null?void 0:B.type)==="POLL_TYPE_IMAGE"};
_.p.computeIsTotalVotesDisabled=function(B){return!(B==null?0:B.totalVotes)};
_.p.thumbnailSrc=function(B){var R,V,e,X;return(B==null?0:(R=B.thumbnails)==null?0:(V=R[0])==null?0:V.url)?_.ym((e=B.thumbnails)==null?void 0:(X=e[0])==null?void 0:X.url):void 0};
_.p.progressWidth=function(B){return"width:"+(B?B*100:0)+"%;"};
_.p.textAreaWidth=function(B){return this.isImagePoll?null:"width:"+(B?B*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 B=this.data.choices,R=0;R<B.length;R++)if(B[R].selected){this.selectedItemIndex=R;break}};
_.p.onPopupClosed=function(B,R){B=Number(this.pollVotes.selected);R.confirmed&&(this.selectChoice(B,!1),_.oF(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(B,R){R&&(this.selectChoice(R.selectedChoiceIndex,!0),this.set("data.totalVotes",R.totalVotes))};
_.p.onYtServiceRequestSent=function(B,R){if(R.actions)for(B=0;B<R.actions.length;B++){var V=R.actions[B];_.D(V,zl)&&this.set("data.totalVotes",_.D(V,zl).totalVotes)}};
_.p.onYtServiceRequestCompleted=function(B){var R=this.get("detail.data.actionResults.0.feedback",B);B=this.get("detail.data.actionResults.0.status",B);if(R==="FEEDBACK_DESELECT"||R==="FEEDBACK_SELECT")this.isLoading=!1,B==="STATUS_FAILED"?_.OI(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.p.getEndpoint=function(B,R){return R===B?this.data.choices[R].deselectServiceEndpoint||null:this.data.choices[B].selectServiceEndpoint||null};
_.p.selectChoice=function(B,R){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var V=0;V<this.data.choices.length;V++){var e;if(B===this.selectedItemIndex){var X=!1;var Y=e=null}else e=(X=V===B)?this.data.choices[V].voteRatioIfSelected:this.data.choices[V].voteRatioIfNotSelected,Y=X?this.data.choices[V].votePercentageIfSelected:this.data.choices[V].votePercentageIfNotSelected;this.set("data.choices."+V+".voteRatio",e);
this.set("data.choices."+V+".votePercentage",Y);this.set("data.choices."+V+".selected",X)}R||(this.isLoading=!0,(R=this.getEndpoint(B,this.selectedItemIndex))&&_.Oz().resolve(_.oC).resolveCommand(R,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===B?-1:B};
_.mh.Object.defineProperties(LI.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
LI.prototype.onYtServiceRequestCompleted=LI.prototype.onYtServiceRequestCompleted;LI.prototype.onYtServiceRequestSent=LI.prototype.onYtServiceRequestSent;LI.prototype.onYtCommentPollRevert=LI.prototype.onYtCommentPollRevert;LI.prototype.onPopupClosed=LI.prototype.onPopupClosed;LI.prototype.dataChanged=LI.prototype.dataChanged;_.r([_.v(_.CC),_.Z("design:type",Object)],LI.prototype,"paperItemBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],LI.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],LI.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],LI.prototype,"isLoading",void 0);_.r([_.E({computed:"computeIsChannelOwner(data.choices)"}),_.Z("design:type",Boolean)],LI.prototype,"isChannelOwner",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Z("design:type",Boolean)],LI.prototype,"isImagePoll",void 0);_.r([_.E({computed:"computeIsTotalVotesDisabled(data)"}),_.Z("design:type",Boolean)],LI.prototype,"isTotalVotesDisabled",void 0);_.r([_.E(),_.Z("design:type",Object)],LI.prototype,"previousPollInfo",void 0);_.r([_.E(),_.Z("design:type",Object)],LI.prototype,"selectedItemIndex",void 0);_.r([_.Yp("#poll-votes"),_.Z("design:type",Object)],LI.prototype,"pollVotes",void 0);
_.r([_.K("isChannelOwner"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],LI.prototype,"endpointStyle",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LI.prototype,"dataChanged",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],LI.prototype,"onPopupClosed",null);
_.r([_.R_("yt-comment-poll-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],LI.prototype,"onYtCommentPollRevert",null);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],LI.prototype,"onYtServiceRequestSent",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],LI.prototype,"onYtServiceRequestCompleted",null);LI=_.r([_.A({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],LI);
_.F(LI,"ytd-backstage-poll-renderer",function(){if(Hsa!==void 0)return Hsa;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Hsa=B},{mode:2});var Mao;var kJT={autoplay:!1,loop:!1},DJo={simpleText:""},vO=function(){var B=_.c.apply(this,arguments)||this;B.isLoading=!1;B.usesPanelLockup=!1;B.selectedItemIndex=-1;B.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},kJT,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});B.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},kJT,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});B.correctnessAnimationProps=[];B.correctnessAnimationRefs=[];return B};
_.l(vO,_.c);_.p=vO.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.p.computeIsChannelOwner=function(B){if(!B)return!0;B=B[0];return!(B&&(B.signinEndpoint||B.selectServiceEndpoint))};
_.p.computeIsTotalVotesDisabled=function(B){return!(B==null?0:B.totalVotes)};
_.p.computeIsImageQuiz=function(B){return(B==null?void 0:B.type)==="POLL_TYPE_IMAGE"};
_.p.onExplanationChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var B=this.data.choices;if(B){this.maybeInitializeQuizLotties(B);for(var R=0;R<B.length;R++)if(B[R].isSelected||this.isChannelOwner&&B[R].isCorrect){this.selectedItemIndex=R;return}this.selectedItemIndex=-1}}};
_.p.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var B=this.selectedItemIndex,R=Number(this.quizVotes.selected);this.selectChoice(R);this.sendVoteAction(R,B);this.quizVotes.selected=-1;var V;B=!((V=this.data)==null?0:V.enableAnimation);this.maybePlayAnswerAnimations(B)}};
_.p.onYtCommentPollRevert=function(B,R){R&&(this.selectChoice(R.selectedChoiceIndex),this.set("data.totalVotes",R.totalVotes))};
_.p.onYtServiceRequestSent=function(B,R){if(R.actions)for(B=_.h(R.actions),R=B.next();!R.done;R=B.next())(R=_.D(R.value,zl))&&this.set("data.totalVotes",R.totalVotes)};
_.p.onYtServiceRequestCompleted=function(B){var R=this.get("detail.data.actionResults.0.feedback",B);B=this.get("detail.data.actionResults.0.status",B);if(R==="FEEDBACK_DESELECT"||R==="FEEDBACK_SELECT")this.isLoading=!1,B==="STATUS_FAILED"?_.OI(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.p.getAnimationPropsForChoiceIndex=function(B,R){return R[B]};
_.p.maybePlayAnswerAnimations=function(B){B=B===void 0?!1:B;var R;if((R=this.data)!=null&&R.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){R=_.h(this.correctnessAnimationRefs);for(var V=R.next();!V.done;V=R.next()){var e=void 0,X=void 0;(e=V.value)==null||(X=e.lottieEl)==null||X.stop()}if(!(this.selectedItemIndex<0)){R=0;B&&(R=this.isCorrect?37:25);var Y,t;(Y=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(t=Y.lottieEl)==null||t.goToAndPlay(B?R:0,!0);if(!(this.isCorrect||
(Y=this.data.choices.findIndex(function(y){return y.isCorrect}),Y<0))){var b,J;
(J=(b=this.correctnessAnimationRefs[Y])==null?void 0:b.lottieEl)==null||J.goToAndPlay(37,!0);var G;b=(G=this.fadeContainers)==null?void 0:G.item(Y);!B&&b&&this.fadeIn(b)}}}};
_.p.thumbnailSrc=function(B){var R,V,e,X;return(B==null?0:(R=B.thumbnails)==null?0:(V=R[0])==null?0:V.url)?_.ym((e=B.thumbnails)==null?void 0:(X=e[0])==null?void 0:X.url):void 0};
_.p.a11yVotedText=function(B,R){var V,e,X=((V=this.data)==null?void 0:(e=V.correctVotedText)==null?void 0:e.simpleText)||"",Y,t;V=((Y=this.data)==null?void 0:(t=Y.votedText)==null?void 0:t.simpleText)||"";if(!R)return"";var b,J;if((b=this.data)==null?0:(J=b.choices)==null?0:J[B].isCorrect)return X;var G,y;return((G=this.data)==null?0:(y=G.choices)==null?0:y[B].isSelected)?V:""};
_.p.getEndpoint=function(B,R){return R===B?this.data.choices[B].deselectServiceEndpoint||null:this.data.choices[B].selectServiceEndpoint||null};
_.p.sendVoteAction=function(B,R){if(B=this.getEndpoint(B,R))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(B)};
_.p.selectChoice=function(B){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var R=0;R<this.data.choices.length;R++)this.set("data.choices."+R+".isSelected",B===this.selectedItemIndex?!1:R===B);this.selectedItemIndex=this.selectedItemIndex===B?-1:B};
_.p.maybeInitializeQuizLotties=function(B){var R=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=B.map(function(V){return{animationConfig:V.isCorrect?R.baseCorrectLottiePlayerAnimationConfig:R.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){R.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(V){return V.animationRef||{}})};
_.p.fadeIn=function(B){B.classList.add("fade-in");_.ua(_.dV,function(){B.classList.remove("fade-in")},900)};
_.mh.Object.defineProperties(vO.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.k("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.FF(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 B,R;return((B=this.data)==null?void 0:(R=B.choices)==null?void 0:R.some(function(V){return V.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null||!B.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?DJo:this.data.choices[this.selectedItemIndex].explanation||DJo}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null||!B.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
vO.prototype.onYtServiceRequestCompleted=vO.prototype.onYtServiceRequestCompleted;vO.prototype.onYtServiceRequestSent=vO.prototype.onYtServiceRequestSent;vO.prototype.onYtCommentPollRevert=vO.prototype.onYtCommentPollRevert;vO.prototype.dataChanged=vO.prototype.dataChanged;vO.prototype.onExplanationChanged=vO.prototype.onExplanationChanged;_.r([_.v(_.CC),_.Z("design:type",Object)],vO.prototype,"paperItemBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],vO.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.Fk.YtTaskEmitterBehavior),_.Z("design:type",Object)],vO.prototype,"ytTaskEmitterBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],vO.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],vO.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],vO.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",Object)],vO.prototype,"usesPanelLockup",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Z("design:type",Boolean)],vO.prototype,"isChannelOwner",void 0);_.r([_.E({computed:"computeIsTotalVotesDisabled(data)"}),_.Z("design:type",Boolean)],vO.prototype,"isTotalVotesDisabled",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Z("design:type",Boolean)],vO.prototype,"isImageQuiz",void 0);_.r([_.E(),_.Z("design:type",Object)],vO.prototype,"previousQuizInfo",void 0);_.r([_.E(),_.Z("design:type",Object)],vO.prototype,"selectedItemIndex",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data","usesPanelLockup"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vO.prototype,"shouldUseModernUi",null);
_.r([_.hM(".fade-container"),_.Z("design:type",Object)],vO.prototype,"fadeContainers",void 0);_.r([_.E(),_.Z("design:type",Array)],vO.prototype,"correctnessAnimationProps",void 0);_.r([_.K("explanation","showCorrectAnswer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vO.prototype,"showExplanation",null);_.r([_.K("isChannelOwner","isAttempted"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vO.prototype,"showCorrectAnswer",null);
_.r([_.K("isChannelOwner","isAttempted","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vO.prototype,"isQuizAnsweringDisabled",null);_.r([_.K("isQuizAnsweringDisabled"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vO.prototype,"endpointStyle",null);_.r([_.K("data","selectedItemIndex"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vO.prototype,"isAttempted",null);
_.r([_.K("data","selectedItemIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vO.prototype,"explanation",null);_.r([_.K("data","selectedItemIndex"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vO.prototype,"isCorrect",null);_.r([_.Yp("ytd-expander"),_.Z("design:type",Object)],vO.prototype,"expander",void 0);_.r([_.Yp("#quiz-votes"),_.Z("design:type",Object)],vO.prototype,"quizVotes",void 0);
_.r([_.XX("explanation"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vO.prototype,"onExplanationChanged",null);_.r([_.XX("data","isChannelOwner"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vO.prototype,"dataChanged",null);_.r([_.R_("yt-comment-quiz-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],vO.prototype,"onYtCommentPollRevert",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],vO.prototype,"onYtServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vO.prototype,"onYtServiceRequestCompleted",null);vO=_.r([_.A({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],vO);
_.F(vO,"ytd-backstage-quiz-renderer",function(){if(Mao!==void 0)return Mao;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Mao=B},{mode:1});var f3o;var KI=function(){return _.c.apply(this,arguments)||this};
_.l(KI,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],KI.prototype,"data",void 0);KI=_.r([_.A({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],KI);
_.F(KI,"ytd-post-uploaded-video-renderer",function(){if(f3o!==void 0)return f3o;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return f3o=B},{mode:1});var l35;var If=function(){return _.c.apply(this,arguments)||this};
_.l(If,_.c);If.prototype.useFilledIcons=function(B){return B==="SPONSORSHIP_STAR"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],If.prototype,"data",void 0);If=_.r([_.A({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],If);
_.F(If,"ytd-sponsors-only-badge-renderer",function(){if(l35!==void 0)return l35;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return l35=B},{mode:1});var zS5;var EW=function(){return _.c.apply(this,arguments)||this};
_.l(EW,_.c);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],EW.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],EW.prototype,"data",void 0);EW=_.r([_.A({is:"ytd-child-video-renderer",disableElementRegistration:!0})],EW);
_.F(EW,"ytd-child-video-renderer",function(){if(zS5!==void 0)return zS5;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return zS5=B},{mode:1});var a3o;var dJJ;var Qe=function(){var B=_.c.apply(this,arguments)||this;B.size=0;B.enableWebModernCollectionsV2=_.k("web_modern_collections_v2");B.fallbackImageSize={height:void 0,width:9999};B.webModernCollections=!1;return B};
_.l(Qe,_.c);_.p=Qe.prototype;_.p.computeBlurredImageSize=function(B){return B?{height:B*2,width:B*2}:this.fallbackImageSize};
_.p.computeImageSize=function(B){return B?{height:B,width:B}:this.fallbackImageSize};
_.p.computeObjectFit=function(B){return B?"FILL":"CONTAIN"};
_.p.computePreserve=function(B){return B?!0:!1};
_.p.setBackground=function(){var B,R;_.k("web_modern_collections_v2")&&((B=this.data)==null?0:(R=B.thumbnail)==null?0:R.sampledThumbnailColor)&&(B=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+B.red+","+B.green+","+B.blue+",1)")};
Qe.prototype.setBackground=Qe.prototype.setBackground;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Qe.prototype,"watchFeedThumbnail",void 0);_.r([_.E(),_.Z("design:type",Object)],Qe.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Qe.prototype,"size",void 0);
_.r([_.E({computed:"computeBlurredImageSize(size)"}),_.Z("design:type",Object)],Qe.prototype,"blurredImageSize",void 0);_.r([_.E({computed:"computeImageSize(size)"}),_.Z("design:type",Object)],Qe.prototype,"imageSize",void 0);_.r([_.E({computed:"computePreserve(size)"}),_.Z("design:type",String)],Qe.prototype,"preserve",void 0);_.r([_.E({computed:"computeObjectFit(size)"}),_.Z("design:type",String)],Qe.prototype,"objectFit",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Qe.prototype,"enableWebModernCollectionsV2",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Qe.prototype,"webModernCollections",void 0);_.r([_.XX("data.thumbnail.sampledThumbnailColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qe.prototype,"setBackground",null);Qe=_.r([_.A({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Qe);
_.F(Qe,"ytd-playlist-custom-thumbnail-renderer",function(){if(dJJ!==void 0)return dJJ;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return dJJ=B},{mode:1});var wAT;var q3=function(){return _.c.apply(this,arguments)||this};
_.l(q3,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],q3.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Number)],q3.prototype,"width",void 0);q3=_.r([_.A({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],q3);
_.F(q3,"ytd-playlist-video-thumbnail-renderer",function(){if(wAT!==void 0)return wAT;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wAT=B},{mode:1});var TwT;var cO=function(){return _.c.apply(this,arguments)||this};
_.l(cO,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cO.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Number)],cO.prototype,"width",void 0);cO=_.r([_.A({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],cO);
_.F(cO,"ytd-show-custom-thumbnail-renderer",function(){if(TwT!==void 0)return TwT;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return TwT=B},{mode:1});var xJG;var AQ=function(){return _.c.apply(this,arguments)||this};
_.l(AQ,_.c);AQ.prototype.useFilledIcons=function(B){return B==="MUSIC"||B==="COURSE"};
AQ.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=aG(this.overlayColor,"0.8");else if(this.overlayColor){var B=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+B.red+","+B.green+","+B.blue+",0.8)"}};
_.mh.Object.defineProperties(AQ.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)}}});
AQ.prototype.overlayColorChanged=AQ.prototype.overlayColorChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],AQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],AQ.prototype,"overlayColor",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data.icon","data.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AQ.prototype,"overlayStyle",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data.icon","data.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AQ.prototype,"overlayTextStyle",null);_.r([_.XX("overlayColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AQ.prototype,"overlayColorChanged",null);AQ=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],AQ);
_.F(AQ,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(xJG!==void 0)return xJG;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return xJG=B},{mode:1});var LFT;var i6=function(){var B=_.c.apply(this,arguments)||this;B.active=!1;return B};
_.l(i6,_.c);i6.prototype.computeIsSpinnerHidden=function(B){return(B==null?void 0:B.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
i6.prototype.computeOverlayIcon=function(B){return(B==null?void 0:B.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(B==null?void 0:B.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],i6.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],i6.prototype,"active",void 0);i6=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],i6);
_.F(i6,"ytd-thumbnail-overlay-downloading-renderer",function(){if(LFT!==void 0)return LFT;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return LFT=B},{mode:1});var vLb;var sW=function(){return _.c.apply(this,arguments)||this};
_.l(sW,_.c);_.mh.Object.defineProperties(sW.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],sW.prototype,"data",void 0);_.r([_.K("data.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sW.prototype,"text",null);sW=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],sW);
_.F(sW,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(vLb!==void 0)return vLb;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return vLb=B},{mode:1});var KF4,I34=function(){if(KF4!==void 0)return KF4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return KF4=B};var Fq=function(){return _.c.apply(this,arguments)||this};
_.l(Fq,_.c);_.mh.Object.defineProperties(Fq,{template:{configurable:!0,enumerable:!0,get:function(){return I34()}}});
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Fq.prototype,"animateEqualizer",void 0);Fq=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Fq);_.nJ()(Fq,"ytd-thumbnail-overlay-equalizer",function(){return I34()},{allowedProps:["animateEqualizer"],
mode:1});var ELa;var r0=function(){var B=_.c.apply(this,arguments)||this;B.nowPlayingBadge=_.k("web_now_playing_badge");B.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return B};
_.l(r0,_.c);r0.prototype.activeChanged=function(){var B=this;_.k("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.gB(this,function(){_.OI(B.hostElement,"yt-playlist-lockup-now-playing-active",B)})};
r0.prototype.onMiniplayerPlayStateChanged=function(B){var R,V=(R=_.D(_.Up().currentEndpoint,_.sI))==null?void 0:R.videoId;this.isVideoPlaying=B&&(_.k("web_limit_now_playing_animation_killswitch")||this.videoId===V)};
r0.prototype.activeChanged=r0.prototype.activeChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],r0.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],r0.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],r0.prototype,"isVideoPlaying",void 0);_.r([_.E(),_.Z("design:type",String)],r0.prototype,"videoId",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],r0.prototype,"equalizerOnly",void 0);_.r([_.E(),_.Z("design:type",Boolean)],r0.prototype,"isActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],r0.prototype,"nowPlayingBadge",void 0);_.r([_.XX("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],r0.prototype,"activeChanged",null);
r0=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],r0);
_.F(r0,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(ELa!==void 0)return ELa;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ELa=B},{mode:1});var Qsb;var g0=function(){return _.c.apply(this,arguments)||this};
_.l(g0,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],g0.prototype,"data",void 0);g0=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],g0);
_.F(g0,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Qsb!==void 0)return Qsb;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Qsb=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var qfb;var ZC=function(){return _.c.apply(this,arguments)||this};
_.l(ZC,_.c);ZC.prototype.onDurationChanged=function(){var B,R;_.w(this.hostElement).querySelector("#progress").style.width=((R=(B=this.data)==null?void 0:B.percentDurationWatched)!=null?R:0)+"%"};
ZC.prototype.onDurationChanged=ZC.prototype.onDurationChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ZC.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ZC.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ZC.prototype,"isLive",void 0);_.r([_.XX("data.percentDurationWatched"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZC.prototype,"onDurationChanged",null);
ZC=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],ZC);
_.F(ZC,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(qfb!==void 0)return qfb;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return qfb=B},{mode:1});var cc2;var mm=function(){var B=_.c.apply(this,arguments)||this;B.bottomPanel=!1;B.richGridOverlay=!1;B.watchFeedOverlay=!1;B.isCompact=!1;return B};
_.l(mm,_.c);mm.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.mh.Object.defineProperties(mm.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:(R=B.icon)==null?void 0:R.iconType)==="PLAY_ALL"&&_.k("kevlar_system_icons")}}});
mm.prototype.widthChanged=mm.prototype.widthChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],mm.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Number)],mm.prototype,"width",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],mm.prototype,"bottomPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],mm.prototype,"richGridOverlay",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],mm.prototype,"watchFeedOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],mm.prototype,"isCompact",void 0);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],mm.prototype,"isIconFilled",null);_.r([_.XX("width","watchFeedOverlay"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mm.prototype,"widthChanged",null);
mm=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],mm);
_.F(mm,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(cc2!==void 0)return cc2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return cc2=B},{mode:1});var Ac2;var is2=["CLIP","SHORTS"],$2=function(){var B=_.c.apply(this,arguments)||this;B.animated=_.k("animated_live_badge_icon");B.hasIcon=!1;B.updateTimerIntervalId=0;B.timeSinceLive=0;return B};
_.l($2,_.c);_.p=$2.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 B,R;return!!(((B=this.data)==null?0:B.icon)||((R=this.data)==null?0:R.text))};
_.p.initializeLiveBadgeTimer=function(){var B=this,R,V=(R=this.liveBadgeData)==null?void 0:R.startTimestampSec;if(V&&this.canShowLiveBadgeTimer()){var e;R=Number((e=this.liveBadgeData)==null?void 0:e.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(V);this.updateTimerIntervalId=_.Yz(function(){B.canShowLiveBadgeTimer()?B.timeSinceLive++:(B.timeSinceLive=0,window.clearInterval(B.updateTimerIntervalId))},R)}else this.timeSinceLive=0};
_.p.canShowLiveBadgeTimer=function(){var B=Date.now(),R,V;return B<(Number((R=this.liveBadgeData)==null?void 0:R.endTimestampSec)-1)*1E3&&B>Number((V=this.liveBadgeData)==null?void 0:V.startTimestampSec)*1E3};
_.mh.Object.defineProperties($2.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=this.data;var R=this.timeSinceLive;var V,e,X,Y;a:{var t=B.style;if(t===void 0)t=16;else switch(t){case "LIVE":t=17;break a;default:t=16}}R={type:t,text:R?niZ({seconds:R}):_.FF(B.text),accessibilityText:(V=B.text)==null?void 0:(e=V.accessibility)==null?void 0:(X=e.accessibilityData)==null?void 0:X.label,icon:(Y=B.icon)==null?void 0:Y.iconType}}else R={};return R}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.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 is2.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
$2.prototype.initializeLiveBadgeTimer=$2.prototype.initializeLiveBadgeTimer;$2.prototype.dataChanged=$2.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],$2.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$2.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],$2.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$2.prototype,"animated",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Z("design:type",Boolean)],$2.prototype,"hideTimeStatus",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],$2.prototype,"hasIcon",void 0);_.r([_.E(),_.Z("design:type",Object)],$2.prototype,"timeSinceLive",void 0);_.r([_.K("data","timeSinceLive"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$2.prototype,"badgeShapeData",null);
_.r([_.K("data","overlayType"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$2.prototype,"hideBadgeShape",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$2.prototype,"dataChanged",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.style"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$2.prototype,"overlayStyle",null);
_.r([_.K("data.liveBadgeData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$2.prototype,"liveBadgeData",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.type"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$2.prototype,"overlayType",null);_.r([_.K("overlayType","overlayStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$2.prototype,"useFilledIcon",null);
_.r([_.bp("liveBadgeData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$2.prototype,"initializeLiveBadgeTimer",null);$2=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],$2);
_.F($2,"ytd-thumbnail-overlay-time-status-renderer",function(){if(Ac2!==void 0)return Ac2;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Ac2=B},{mode:_.up("kevlar_poly_si_batch_j035")?1:2});var ss4;var CI=function(){return _.c.apply(this,arguments)||this};
_.l(CI,_.c);CI.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"}}}}};
CI.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(B){if(this.hasPlaybackProgressBar)return{percentDurationWatched:B.percentDurationWatched}};
CI.prototype.computeHasPlaybackProgressBar=function(B){return!!B.percentDurationWatched&&B.percentDurationWatched>0};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],CI.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Z("design:type",Boolean)],CI.prototype,"hasPlaybackProgressBar",void 0);
CI=_.r([_.A({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],CI);
_.F(CI,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(ss4!==void 0)return ss4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ss4=B},{mode:1});var FFT;_.oA(f_o);var rc5=_.sx(function(B){var R=B.data;var V=B.children;var e=function(){return!!R().doubleStack};
return _.N("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!R().experimentEnabled}},_.N(_.H,{cond:R,
then:function(){return _.N("div",null,_.N(_.H,{cond:e,then:function(){var X={};return _.N("div",{class:_.XE("collections-stack-wiz__collection-stack2",function(){return R().customClassName2ndStack},(X["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return R().enableResponsiveMode},X)),
style:_.jQ({"background-color":function(){return kUA(R())}})})}}),_.N("div",{class:_.XE("collections-stack-wiz__collection-stack1",function(){return R().customClassName1stStack},function(){return DMx(R().thumbnailSize?R().thumbnailSize:"medium")}),
style:_.jQ({"background-color":function(){return kUA(R())}})}),V)}}))},"L");_.mR(rc5,"yt-collections-stack",{props:{data:_.qq}});var PO=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};B.webModernCollections=!1;B.isSearch=!1;B.isDoubleStack=!1;B.thumbnailSize="medium";B.enableWebModernCollectionsV2=_.k("web_modern_collections_v2");return B};
_.l(PO,_.c);_.p=PO.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(B){if(B!=null&&B.thumbnailRenderer){var R=B.thumbnailRenderer,V;if((V=R.playlistVideoThumbnailRenderer)==null?0:V.thumbnail)return R.playlistVideoThumbnailRenderer.thumbnail;var e;if((e=R.playlistCustomThumbnailRenderer)==null?0:e.thumbnail)return R.playlistCustomThumbnailRenderer.thumbnail;B=B.thumbnailRenderer;var X;if((X=B.showCustomThumbnailRenderer)==null?0:X.thumbnail)return B.showCustomThumbnailRenderer.thumbnail}};
_.p.computeOverlayColor=function(B){var R,V;if((R=this.getThumbnailDetails(B))==null?0:(V=R.darkColorPalette)==null?0:V.section2Color)return this.getThumbnailDetails(B).darkColorPalette.section2Color;var e;return(e=this.getThumbnailDetails(B))==null?void 0:e.sampledThumbnailColor};
_.p.computeWebModernCollections=function(B){if(B==null||!B.thumbnailOverlays)return!1;B=_.h(B.thumbnailOverlays);for(var R=B.next();!R.done;R=B.next()){var V=void 0;if((V=R.value)==null?0:V.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.p.computeNavigationEndpoint=function(B){return BpZ(B==null?void 0:B.navigationEndpoint)};
_.mh.Object.defineProperties(PO.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var B=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:B==null?void 0:B.sampledThumbnailColor,vibrantColorPalette:B==null?void 0:B.vibrantColorPalette,darkColorPalette:B==null?void 0:B.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],PO.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v($b2),_.Z("design:type",Object)],PO.prototype,"ytdThumbnailBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],PO.prototype,"componentBehavior",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],PO.prototype,"watchFeedThumbnail",void 0);_.r([_.E(),_.Z("design:type",Number)],PO.prototype,"customThumbnailSize",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],PO.prototype,"hideAria",void 0);_.r([_.E(),_.Z("design:type",Object)],PO.prototype,"data",void 0);_.r([_.E({computed:"computeOverlayColor(data)"}),_.Z("design:type",Object)],PO.prototype,"overlayColor",void 0);
_.r([_.E({computed:"computeWebModernCollections(data)"}),_.Z("design:type",Object)],PO.prototype,"webModernCollections",void 0);_.r([_.E({computed:"computeNavigationEndpoint(data)"}),_.Z("design:type",Object)],PO.prototype,"computedNavigationEndpoint",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],PO.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],PO.prototype,"isDoubleStack",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],PO.prototype,"thumbnailSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],PO.prototype,"enableWebModernCollectionsV2",void 0);_.r([_.K("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PO.prototype,"collectionStack",null);PO=_.r([_.A({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],PO);
_.F(PO,"ytd-playlist-thumbnail",function(){if(FFT!==void 0)return FFT;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return FFT=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var gL2;var nI=function(){var B=_.c.apply(this,arguments)||this;B.noEndpoints=!1;B.amsterdamPostMvp=_.k("web_amsterdam_post_mvp_playlists");B.badges=[];B.transferState="TRANSFER_STATE_UNKNOWN";return B};
_.l(nI,_.c);_.p=nI.prototype;_.p.getMetadata=function(B){if(!B)return[];var R=[],V=B.shortViewCountText||B.viewCountText;V&&R.push(_.FF(V));B.publishedTimeText&&R.push(_.FF(B.publishedTimeText));B.upcomingEventData&&B.upcomingEventData.upcomingEventText&&R.push(_.c7(_.FF(B.upcomingEventData.upcomingEventText),Number(B.upcomingEventData.startTime)));return R};
_.p.observeDataForBylineSeparator=function(){this.data&&_.nk(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=_.li(this.metadataColor)};
_.p.getSimpleString=function(B){return _.FF(B)};
_.p.isBylineHidden=function(B){return this.noByline||!((B==null?0:B.longBylineText)||(B==null?0:B.shortBylineText))};
_.p.isMetadataHidden=function(B){var R;return((R=this.getMetadata(B))==null?void 0:R.length)===0};
_.p.isBylineMetadataSeparatorHidden=function(B){return this.isMetadataHidden(B)||!this.shouldShowVideoInfo};
_.p.isLongByline=function(B,R){return R&&!(B==null||!B.longBylineText)};
_.mh.Object.defineProperties(nI.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var B;return this.amsterdamPostMvp&&!((B=this.data)==null||!B.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 _.k("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
nI.prototype.metadataColorChanged=nI.prototype.metadataColorChanged;nI.prototype.observeDataForBylineSeparator=nI.prototype.observeDataForBylineSeparator;_.r([_.v(_.dt),_.Z("design:type",Object)],nI.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],nI.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],nI.prototype,"noEndpoints",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],nI.prototype,"isSlimShort",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],nI.prototype,"radioMeta",void 0);_.r([_.E({selector:_.Av}),_.Z("design:type",Object)],nI.prototype,"isGridViewEnabled",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],nI.prototype,"richMeta",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nI.prototype,"amsterdamPostMvp",void 0);_.r([_.E(),_.Z("design:type",Boolean)],nI.prototype,"noByline",void 0);
_.r([_.E({computed:"isLongByline(data, radioMeta)"}),_.Z("design:type",Boolean)],nI.prototype,"longByline",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],nI.prototype,"truncateMetadataLine",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],nI.prototype,"miniMode",void 0);_.r([_.E(),_.Z("design:type",Number)],nI.prototype,"metadataColor",void 0);_.r([_.E(),_.Z("design:type",Array)],nI.prototype,"badges",void 0);
_.r([_.E({selector:_.Tz,selectorArgs:["data.videoId"]}),_.Z("design:type",String)],nI.prototype,"transferState",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],nI.prototype,"isDownloading",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],nI.prototype,"typographyBump",void 0);_.r([_.Yp("#metadata-line"),_.Z("design:type",HTMLElement)],nI.prototype,"metadataLine",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nI.prototype,"observeDataForBylineSeparator",null);_.r([_.XX("metadataColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nI.prototype,"metadataColorChanged",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nI.prototype,"shouldShowVideoInfo",null);
_.r([_.K("badges"),_.Z("design:type",String),_.Z("design:paramtypes",[])],nI.prototype,"inlineBadgeClass",null);_.r([_.K("longByline"),_.Z("design:type",String),_.Z("design:paramtypes",[])],nI.prototype,"longBylineClass",null);_.r([_.K("data","longByline"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nI.prototype,"bylineText",null);_.r([_.K("isGridViewEnabled","data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],nI.prototype,"watchFeedBigThumbs",null);
nI=_.r([_.A({is:"ytd-video-meta-block",disableElementRegistration:!0})],nI);
_.F(nI,"ytd-video-meta-block",function(){if(gL2!==void 0)return gL2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return gL2=B},{mode:_.up("kevlar_poly_si_batch_j080")?1:2});_.aO("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var u6=function(){var B=_.c.apply(this,arguments)||this;B.displayItemCount=2;B.isBackstagePlaylist=!1;B.isPostCompactPlaylist=!1;B.shouldShowChannelThumbnail=!1;B.useModernCollectionsV2=_.k("web_modern_collections_v2");return B};
_.l(u6,_.c);_.p=u6.prototype;_.p.computeFirstVideos=function(B,R){return B===void 0||R===void 0?[]:B.slice(0,R)};
_.p.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var B=this.data.thumbnailRenderer;B.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",B.playlistVideoThumbnailRenderer.thumbnail);B.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",B.playlistCustomThumbnailRenderer.thumbnail)}};
_.p.computeThumbnailHeight=function(B,R,V,e,X){return e?X==="BIG"?280:X==="MASSIVE"?337:234:V?240:R?72:B?118:138};
_.p.computeThumbnailWidth=function(B,R,V,e,X){return e?X==="MEDIUM"?450:X==="BIG"?500:X==="MASSIVE"?600:420:V?360:R?128:B?210:246};
_.p.computeUseBiggerThumbs=function(B){return B&&_.k("enable_desktop_search_bigger_thumbs")};
_.p.computeShouldShowChannelThumbnail=function(B,R){return B&&!(R==null||!R.channelThumbnail)};
_.mh.Object.defineProperties(u6.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
u6.prototype.dataChanged=u6.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],u6.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],u6.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],u6.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],u6.prototype,"displayItemCount",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],u6.prototype,"isBackstagePlaylist",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],u6.prototype,"isPostCompactPlaylist",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],u6.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Z("design:type",Boolean)],u6.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.V_("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],u6.prototype,"biggerThumbsStyle",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],u6.prototype,"isDownloads",void 0);_.r([_.E({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Z("design:type",Object)],u6.prototype,"shouldShowChannelThumbnail",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],u6.prototype,"useModernCollectionsV2",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],u6.prototype,"dataChanged",null);_.r([_.K("isSearch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],u6.prototype,"stackThumbnailSize",null);u6=_.r([_.A({is:"ytd-playlist-renderer",disableElementRegistration:!0})],u6);
_.F(u6,"ytd-playlist-renderer",function(){if(a3o===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);a3o=B}B=a3o;return B},{mode:1});var Zs4;var mJG;var OW=function(){var B=_.c.apply(this,arguments)||this;B.collections=!!_.k("web_modern_collections_v2");B.startX=0;return B};
_.l(OW,_.c);OW.prototype.onEndpointMouseDown=function(B){this.startX=B.clientX};
OW.prototype.onEndpointClick=function(B){this.startX!==B.clientX&&(B.preventDefault(),B.stopPropagation())};
OW.prototype.computeObjectFit=function(B){return B==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||B==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||B==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
OW.prototype.computeCardStyle=function(B){return B?B.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.mh.Object.defineProperties(OW.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var B,R;return this.collections&&((B=this.data)==null?void 0:(R=B.searchRefinementCardRendererStyle)==null?void 0:R.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],OW.prototype,"data",void 0);_.r([_.E({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Z("design:type",Number)],OW.prototype,"objectFit",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Z("design:type",String)],OW.prototype,"cardStyle",void 0);
_.r([_.E({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],OW.prototype,"roundContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],OW.prototype,"collections",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OW.prototype,"isAlbumCard",null);_.r([_.K("data","collections","isAlbumCard"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OW.prototype,"collectionStack",null);
OW=_.r([_.A({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],OW);
_.F(OW,"ytd-search-refinement-card-renderer",function(){if(mJG!==void 0)return mJG;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return mJG=B},{mode:1});var $Jh;var oW=function(){var B=_.c.apply(this,arguments)||this;B.isRichGrid=!1;return B};
_.l(oW,_.c);_.r([_.E(),_.Z("design:type",Object)],oW.prototype,"data",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],oW.prototype,"componentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],oW.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],oW.prototype,"isRichGrid",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],oW.prototype,"miniMode",void 0);
oW=_.r([_.A({is:"ytd-game-details-renderer",disableElementRegistration:!0})],oW);
_.F(oW,"ytd-game-details-renderer",function(){if($Jh!==void 0)return $Jh;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return $Jh=B},{mode:1});var Cuo;var Pu4;var B0=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return B};
_.l(B0,_.c);_.p=B0.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.currentStateData=function(B){var R=B||this.data;return R&&R.states&&R.currentStateId!=null?R.states.find(function(V){return V.stateId===R.currentStateId})||null:null};
_.p.currentStateRendererData=function(B){return(B=this.currentStateData(B))&&B.state&&B.state.buttonRenderer?B.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(B){B=this.currentStateRendererData(B);var R;return(B==null?0:(R=B.icon)==null?0:R.iconType)?B.icon.iconType.toLowerCase():null};
_.p.computeAccessibility=function(B){return(B=this.currentStateRendererData(B))&&B.accessibilityData?B.accessibilityData.accessibilityData||null:null};
_.p.computeButtonClass=function(B){var R=this.currentStateRendererData(B);if(!R)return"";B="";var V=R.style;V&&(B+=V.toLowerCase().replace(/_/g,"-")+" ");(R=R.size)&&(B+=R.toLowerCase().replace(/_/g,"-")+" ");return B.trim()};
_.p.computeServiceEndpoint=function(B){if(!B)return null;var R=B&&B.serviceEndpoint,V=this.get("command.commandMetadata.webCommandMetadata.sendPost",B);return R?R:V&&B.command?B.command:null};
_.p.computeBellMenuItemParams=function(B){var R;B=(R=_.D(B==null?void 0:B.command,_.p0))==null?void 0:R.commands;if(!B||B.length===0)return null;R=_.D(B[0],_.ai);var V,e;return(R==null?0:(V=R.popup)==null?0:(e=V.menuPopupRenderer)==null?0:e.items)?R.popup.menuPopupRenderer.items.map(function(X){return X.menuServiceItemRenderer.trackingParams}):null};
_.p.handleBellMenuOpenSelectedAction=function(B){var R=B.trackingParams,V=this.computeBellMenuItemParams(this.data);this.data&&R&&V&&V.includes(R)&&this.ytRenderButtonBehavior._setButtonIcon(B.icon.iconType.toLowerCase())};
_.p.onYtServiceRequestCompleted=function(B,R){(B=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",R))&&this.set("data",B)};
_.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 B=this.currentStateRendererData(this.data);B&&this.ytRendererBehavior.logExplicitClick(B)}};
B0.prototype.onYtServiceRequestError=B0.prototype.onYtServiceRequestError;B0.prototype.onYtServiceRequestCompleted=B0.prototype.onYtServiceRequestCompleted;B0.prototype.stateChanged=B0.prototype.stateChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],B0.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(YE.YtRenderButtonBehavior),_.Z("design:type",Object)],B0.prototype,"ytRenderButtonBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],B0.prototype,"data",void 0);_.r([_.bp("data","data.currentStateId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],B0.prototype,"stateChanged",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],B0.prototype,"onYtServiceRequestCompleted",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],B0.prototype,"onYtServiceRequestError",null);B0=_.r([_.A({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],B0);
_.F(B0,"ytd-subscription-notification-toggle-button-renderer",function(){if(Pu4!==void 0)return Pu4;var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Pu4=B},{mode:1});var nLh;var RW=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};B.tapHandler=function(){if(B.data){var R=B.currentStateRendererData();R&&B.ytRendererBehavior.logExplicitClick(R)}};
return B};
_.l(RW,_.c);_.p=RW.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.currentStateData=function(){var B=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(R){return R.stateId===B.data.currentStateId})||null:null};
_.p.currentStateRendererData=function(){var B=this.currentStateData();return B&&B.state&&B.state.buttonRenderer?B.state.buttonRenderer:null};
_.p.computeAccessibilityLabel=function(){var B,R,V;return(B=this.currentStateRendererData())==null?void 0:(R=B.accessibilityData)==null?void 0:(V=R.accessibilityData)==null?void 0:V.label};
_.p.computeBellMenuItemParams=function(){var B,R,V=(R=_.D((B=this.data)==null?void 0:B.command,_.p0))==null?void 0:R.commands;if(!V||V.length===0)return null;B=_.D(V[0],_.ai);var e,X;return(B==null?0:(e=B.popup)==null?0:(X=e.menuPopupRenderer)==null?0:X.items)?B.popup.menuPopupRenderer.items.map(function(Y){return Y.menuServiceItemRenderer.trackingParams}):null};
_.p.handleBellMenuOpenSelectedAction=function(B){var R=B.trackingParams,V=this.computeBellMenuItemParams();if(this.data&&R&&V&&V.includes(R)&&(B==null||!B.isDisabled)){var e;((e=_.D(B.serviceEndpoint,_.hE))==null?void 0:e.signal)!=="CLIENT_SIGNAL"&&(this.icon=B.icon.iconType)}};
_.p.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.p.onYtServiceRequestCompleted=function(B,R){if(B=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",R))this.icon=void 0,this.set("data",B)};
_.p.onYtServiceRequestError=function(){this.icon=void 0};
_.mh.Object.defineProperties(RW.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=this.data,R=this.textLabel,V=this.hostElement,e=this.computeAccessibilityLabel(),X=this.tapHandler,Y=this.isOverlay?"overlay":"mono",t=(B==null?0:B.disableButton)?"disabled":"active";R=R?_.fc(R):void 0;return{style:Y,type:"tonal",state:t,size:"M",focused:!1,formattedButtonText:R,iconPosition:"leading-trailing",onTap:a_u(B,X,V),accessibilityLabel:e}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var B=this.currentStateRendererData(),R,V,e=(V=this.icon)!=null?V:B==null?void 0:(R=B.icon)==null?void 0:R.iconType;if(e)return _.RT(e)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(B=this.data)==null?void 0:(R=B.secondaryIcon)==null?void 0:R.iconType;if(V)return _.RT(V)}}});
RW.prototype.onYtServiceRequestError=RW.prototype.onYtServiceRequestError;RW.prototype.onYtServiceRequestCompleted=RW.prototype.onYtServiceRequestCompleted;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],RW.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],RW.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],RW.prototype,"textLabel",void 0);
_.r([_.E(),_.Z("design:type",String)],RW.prototype,"icon",void 0);_.r([_.E(),_.Z("design:type",Boolean)],RW.prototype,"isOverlay",void 0);_.r([_.K("data.*","textLabel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],RW.prototype,"computedButtonShape",null);_.r([_.K("data.*","icon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],RW.prototype,"computedIcon",null);_.r([_.K("data.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],RW.prototype,"computedSecondaryIcon",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],RW.prototype,"onYtServiceRequestCompleted",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],RW.prototype,"onYtServiceRequestError",null);RW=_.r([_.A({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],RW);
_.F(RW,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(nLh!==void 0)return nLh;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return nLh=B},{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var urv;_.k("web_enable_sink_animated_actions")?_.mR(m5v,"yt-animated-action",{props:{backgroundLottieRef:_.qq,foregroundLottieRef:_.qq,wrapperClass:_.qq,disableAnimation:_.qq},unsafeExternallySettableAttributes:new Set(["key"])}):_.Br(YfA,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var VF=function(){var B=_.c.apply(this,arguments)||this;B.animatedActionEnabled=_.k("web_animated_actions");B.foregroundLottieRef={};B.backgroundLottieRef={};B.forceIconOnly=!1;B.showTextWhileAnimating=!1;B.keyboardFocused=!1;B.isAnimating=!1;B.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return B};
_.l(VF,_.c);_.p=VF.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(B,R){(this.get("endpoint.subscribeEndpoint",R)||this.get("endpoint.unsubscribeEndpoint",R))&&this.updateSubscriptionState(!this.subscribed)};
_.p.onYtServiceRequestCompleted=function(B,R){(B=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",R.data))&&this.bellButton&&(this.bellButton.data=B)};
_.p.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.o_(this.hostElement)};
_.p.onPlayerSubscribe=function(B){this.isCompactRed()||B!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.p.onPlayerUnsubscribe=function(B){this.isCompactRed()||B!==this.data.channelId||this.updateSubscriptionState(!1)};
_.p.handleUpdateSubscribeButtonAction=function(B){B=_.D(B,XAN);var R;B&&B.channelId===((R=this.data)==null?void 0:R.channelId)&&this.updateSubscriptionState(!!B.subscribed)};
_.p.computeButtonStyle=function(B){return this.get("style.styleType",B)||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(B){if(B!==this.subscribed){this.set("data.subscribed",B);var R,V=(R=this.data)==null?void 0:R.subscribedEntityKey;V&&this.ytdReduxBehavior.dispatch(_.SX("subscriptionStateEntity",V,{key:V,subscribed:B}));this.isCompactRed()||_.OI(this.hostElement,"yt-subscription-changed",B);B||(_.oF(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!B),B&&this.hasBellButton&&this.startAnimation())}};
_.p.startAnimation=function(){var B=this;if(!this.isAnimating){var R=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var V;(V=this.backgroundLottieRef.lottieEl)==null||V.goToAndPlay(0);var e;(e=this.foregroundLottieRef.lottieEl)==null||e.goToAndPlay(0);_.dV.addJob(function(){B.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.dV.addJob(function(){B.updateContainerToFitContent(!!B.subscribed,!0)},2,1500);
_.dV.addJob(function(){B.isAnimating=!1},2,R)}};
_.p.maybeAnimateBellIcon=function(){var B=_.P$(this.hostElement).querySelector("yt-animated-icon");if(B){var R;(R=B.animationRef.lottieEl)==null||R.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 B;this.unsubscribedWidth=(B=this.subscribeButtonShape)==null?void 0:B.getBoundingClientRect().width}var R;this.subscribedWidth=(R=this.bellButton)==null?void 0:R.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.p.updateContainerToFitContent=function(B,R){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(B?(B=this.subscribedWidth,R=this.isAnimating&&!R,this.subscribedIconOnlyWidth===void 0||R||(B=this.subscribedIconOnlyWidth),this.hostElement.style.width=B+"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 B=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var R;B.subscribedIconOnlyWidth=(R=B.bellButton)==null?void 0:R.getBoundingClientRect().width;requestAnimationFrame(function(){if(B.bellButton){var V;B.bellButton.textLabel=
(V=B.data)==null?void 0:V.subscribedButtonText}})})))};
_.mh.Object.defineProperties(VF.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 B;return(B=this.data)==null?void 0:B.subscribedButtonText}var R;return this.forceIconOnly?void 0:(R=this.data)==null?void 0:R.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var B,R,V=((B=this.data)==null?void 0:(R=B.timedAnimationData)==null?void 0:R.animationTiming)||[];return{uniqueId:"subscribe",timings:V,enabled:V.length>0&&!this.subscribed,experimentEnabled:V.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var B;return!this.subscribed&&((B=this.data)==null?void 0:B.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 B={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var R=B.renderer;var V=B.element;var e=B.subscribed;var X=B.commandController;var Y=B.isOverlay;B=B.config;var t=xMq(R,e);Y&&(t.style="overlay");Y=Object;var b=Y.assign,J;a:switch((J=R.style)==null?void 0:J.styleType){case "COMPACT_GRAY":case "COMPACT_RED":J={size:"S"};break a;default:J={size:"M"}}var G=Tj5(R,e);var y=
(y=e?R.subscribedButtonText:R.unsubscribedButtonText)?_.fc(y):void 0;return b.call(Y,{},t,J,{focused:!1,toggled:e,accessibilityLabel:G,formattedButtonText:y,onTap:w4x(R,B,e,V,X)})}}}});
VF.prototype.onMouseDown=VF.prototype.onMouseDown;VF.prototype.onDataChanged=VF.prototype.onDataChanged;VF.prototype.observedSubscribed=VF.prototype.observedSubscribed;VF.prototype.onYtServiceRequestCompleted=VF.prototype.onYtServiceRequestCompleted;VF.prototype.onYtServiceRequestSent=VF.prototype.onYtServiceRequestSent;VF.prototype.maybeUpdateBellButtonText=VF.prototype.maybeUpdateBellButtonText;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],VF.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],VF.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],VF.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],VF.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.subscribedEntityKey"],selector:_.Xt}),_.Z("design:type",Object)],VF.prototype,"subscriptionStateEntity",void 0);_.r([_.E({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],VF.prototype,"subscribed",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],VF.prototype,"branded",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],VF.prototype,"animatedActionEnabled",void 0);
_.r([_.E(),_.Z("design:type",Object)],VF.prototype,"foregroundLottieRef",void 0);_.r([_.E(),_.Z("design:type",Object)],VF.prototype,"backgroundLottieRef",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],VF.prototype,"overlayButton",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Z("design:type",Object)],VF.prototype,"buttonStyle",void 0);_.r([_.E(),_.Z("design:type",Object)],VF.prototype,"forceIconOnly",void 0);
_.r([_.E(),_.Z("design:type",Object)],VF.prototype,"showTextWhileAnimating",void 0);_.r([_.E({value:function(){return!!_.Oz().resolve(_.uj(_.DE))&&_.k("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Z("design:type",Boolean)],VF.prototype,"useKeyboardFocused",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],VF.prototype,"keyboardFocused",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],VF.prototype,"isAnimating",void 0);_.r([_.K("data.notificationPreferenceButton.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VF.prototype,"hasBellButton",null);
_.r([_.XX("subscribedButtonText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VF.prototype,"maybeUpdateBellButtonText",null);_.r([_.K("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VF.prototype,"subscribedButtonText",null);_.r([_.K("data.timedAnimationData.animationTiming","subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VF.prototype,"smartimationSettings",null);
_.r([_.E({reflectToAttribute:!0}),_.K("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VF.prototype,"subscribeButtonHidden",null);_.r([_.E({reflectToAttribute:!0}),_.K("subscribed","hasBellButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VF.prototype,"subscribeButtonInvisible",null);
_.r([_.E({reflectToAttribute:!0}),_.K("subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VF.prototype,"unsubscribeButtonHidden",null);_.r([_.Yp("ytd-subscription-notification-toggle-button-renderer-next"),_.Z("design:type",Object)],VF.prototype,"bellButton",void 0);_.r([_.Yp("#subscribe-button-shape"),_.Z("design:type",HTMLElement)],VF.prototype,"subscribeButtonShape",void 0);
_.r([_.K("overlayButton","subscribed","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VF.prototype,"buttonShape",null);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],VF.prototype,"onYtServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],VF.prototype,"onYtServiceRequestCompleted",null);
_.r([_.XX("subscribed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VF.prototype,"observedSubscribed",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VF.prototype,"onDataChanged",null);_.r([_.R_("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VF.prototype,"onMouseDown",null);
VF=_.r([_.A({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],VF);
_.F(VF,"ytd-subscribe-button-renderer",function(){if(urv!==void 0)return urv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return urv=B},{mode:1});var e_=function(){var B=_.c.apply(this,arguments)||this;B.isRichGrid=!1;return B};
_.l(e_,_.c);e_.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],e_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],e_.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e_.prototype,"isRichGrid",void 0);e_=_.r([_.A({is:"ytd-game-card-renderer",disableElementRegistration:!0})],e_);
_.F(e_,"ytd-game-card-renderer",function(){if(Cuo!==void 0)return Cuo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Cuo=B},{mode:1});var XP={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.k("defer_menus")&&!c74?0:void 0,waitForSignal:"eocs"};var Osh;var ok5;var pu=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return B};
_.l(pu,_.c);_.p=pu.prototype;_.p.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.p.onSeriesReminderStateEntityChange=function(){var B,R,V;((B=this.eventReminderStateEntity)==null?0:B.key)&&((R=this.seriesReminderStateEntity)==null?void 0:R.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((V=this.eventReminderStateEntity)==null?void 0:V.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.SX("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 B;this.updateReminderStateEntitiesFromButtonState((B=this.data)==null?void 0:B.currentState)};
_.p.handleUpdateUpcomingEventReminderButtonStateCommand=function(B){if(B=_.D(B,niR)){var R,V=(R=this.data)==null?void 0:R.targetId;V&&B.targetId===V&&_.xp(this.updateReminderStateEntitiesFromButtonState.bind(this,B.state))}};
_.p.getButtonStateFromReminderState=function(){var B;if(((B=this.seriesReminderStateEntity)==null?void 0:B.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var R;if(((R=this.eventReminderStateEntity)==null?void 0:R.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var V,e;if(((V=this.seriesReminderStateEntity)==null?void 0:V.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((e=this.eventReminderStateEntity)==
null?void 0:e.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(B){if(B){switch(B){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":B="UPCOMING_EVENT_REMINDER_STATE_NONE";var R="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":B="UPCOMING_EVENT_REMINDER_STATE_SINGLE";R="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":B="UPCOMING_EVENT_REMINDER_STATE_NONE";R="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var V;
((V=this.eventReminderStateEntity)==null?0:V.key)&&this.ytdReduxBehavior.dispatch(_.SX("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:B})));var e;((e=this.seriesReminderStateEntity)==null?0:e.key)&&this.ytdReduxBehavior.dispatch(_.SX("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:R})))}};
_.mh.Object.defineProperties(pu.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var B=this.getButtonStateFromReminderState(),R,V;if(B&&((R=this.data)==null?0:(V=R.states)==null?0:V.length))for(R=_.h(this.data.states),V=R.next();!V.done;V=R.next()){V=V.value;var e=void 0;if(((e=_.D(V,umR))==null?void 0:e.state)===B)return _.D(V,umR)}}}});
pu.prototype.onYtServiceRequestError=pu.prototype.onYtServiceRequestError;pu.prototype.onYtServiceRequestCompleted=pu.prototype.onYtServiceRequestCompleted;pu.prototype.onSeriesReminderStateEntityChange=pu.prototype.onSeriesReminderStateEntityChange;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],pu.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],pu.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],pu.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:QZp}),_.Z("design:type",Object)],pu.prototype,"eventReminderStateEntity",void 0);
_.r([_.E({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(B,R){return _.p7(B.entities,"sportsSeriesReminderStateEntity",R)}}),
_.Z("design:type",Object)],pu.prototype,"seriesReminderStateEntity",void 0);_.r([_.K("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pu.prototype,"currentButtonStateRenderer",null);_.r([_.XX("seriesReminderStateEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pu.prototype,"onSeriesReminderStateEntityChange",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pu.prototype,"onYtServiceRequestCompleted",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pu.prototype,"onYtServiceRequestError",null);pu=_.r([_.A({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],pu);
_.F(pu,"ytd-upcoming-event-reminder-button-renderer",function(){if(ok5!==void 0)return ok5;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return ok5=B},{mode:1});var BjJ;var Yg=function(){return _.c.apply(this,arguments)||this};
_.l(Yg,_.c);Yg.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.mh.Object.defineProperties(Yg.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(_.k("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Yg.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Yg.prototype,"shelfDismissal",void 0);_.r([_.K("data.responseText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Yg.prototype,"text",null);
_.r([_.K("data.responseText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Yg.prototype,"textAriaLabel",null);Yg=_.r([_.A({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Yg);
_.F(Yg,"ytd-notification-multi-action-renderer",function(){if(BjJ!==void 0)return BjJ;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return BjJ=B},{mode:1});var R9R;var h5=function(){return _.c.apply(this,arguments)||this};
_.l(h5,_.c);h5.prototype.ready=function(){var B=this;_.w(this.hostElement).querySelector("#undo").addEventListener("tap",function(){B.onUndoTap()})};
h5.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.Oz().resolve(_.oC).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],h5.prototype,"data",void 0);h5=_.r([_.A({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],h5);
_.F(h5,"ytd-notification-text-renderer",function(){if(R9R!==void 0)return R9R;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return R9R=B},{mode:1});var Vwl;var t5=function(){var B=_.c.apply(this,arguments)||this;B.mouseOverDelayJobId=0;B.fadeInImageDelayJobId=0;B.startTimeMs=-1;B.loadingStartTimeMs=-1;B.loadingEndTimeMs=-1;B.hasVideoPreview=!1;return B};
_.l(t5,_.c);_.p=t5.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 B=this;this.csn=_.TE();_.aF("fmth");_.dV.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.ua(_.dV,function(){B.loadingStartTimeMs=(0,_.P8)();var R=_.w(B.hostElement).querySelector("#thumbnail");R.complete?B.displayMouseOverImage():R.addEventListener("load",_.Bc(B,B.displayMouseOverImage))},150):_.nk(_.w(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 B=this.videoId,R=this.csn,V=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,e=this.startTimeMs,X=this.hasVideoPreview,Y=_.U5(this.trackingParams),t={isMovingThumbnail:X};X&&e>0&&(V>0&&(t.movingThumbnailLoadingDurationMs=Math.round(V)),t.durationHoveredMs=Math.round((0,_.P8)()-e));B&&(t.videoId=B);_.sV(R,Y,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:t});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.p.removeVideoPreview=function(){_.dV.cancelJob(this.mouseOverDelayJobId);_.dV.cancelJob(this.fadeInImageDelayJobId);var B=_.w(this.hostElement).querySelector("#thumbnail");_.nk(B,"fade-in",!1);B.removeEventListener("load",_.Bc(this,this.displayMouseOverImage));B=_.w(this.hostElement).querySelector("#play");_.nk(B,"fade-in",!1);_.nk(B,"show",!1)};
_.p.displayMouseOverImage=function(){var B=_.w(this.hostElement).querySelector("#thumbnail"),R=_.w(this.hostElement).querySelector("#play");this.isImageAvailable(B)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.P8)(),this.startTimeMs=(0,_.P8)(),this.fadeInImageDelayJobId=_.ua(_.dV,function(){_.nk(B,"fade-in",!0)},50)):_.nk(R,"fade-in",!0)};
_.p.computeThumbnail=function(B,R){var V;B&&B.movingThumbnailDetails&&B.movingThumbnailDetails.thumbnails&&R?V=_.$T(B.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):V=R?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(V)return _.ym(V)};
_.p.isImageAvailable=function(B){return!(!B.src||B.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||B.naturalWidth===120)};
t5.prototype.onTap=t5.prototype.onTap;t5.prototype.dataChanged=t5.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],t5.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],t5.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],t5.prototype,"csn",void 0);_.r([_.E(),_.Z("design:type",Object)],t5.prototype,"trackingParams",void 0);
_.r([_.E(),_.Z("design:type",String)],t5.prototype,"videoId",void 0);_.r([_.E(),_.Z("design:type",Boolean)],t5.prototype,"isAttachedAndDataSet",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t5.prototype,"dataChanged",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t5.prototype,"onTap",null);t5=_.r([_.A({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],t5);
_.F(t5,"ytd-moving-thumbnail-renderer",function(){if(Vwl!==void 0)return Vwl;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Vwl=B},{mode:1});var e9R;_.UT=function(B){this.hostElement=B;this.eventSink=null;this.eventList=[]};
_.UT.prototype.shouldForward=function(){var B,R;return(R=(B=this.eventSink)==null?void 0:B.isConnected)!=null?R:document.body.contains(this.eventSink)};
_.UT.prototype.start=function(B,R){this.eventSink&&this.stop();for(var V=0;V<B.length;V++)this.hostElement.addEventListener(B[V],_.Bc(this,this.forwardEvent));var e;this.eventSink=(e=R.hostElement)!=null?e:R;this.eventList=B};
_.UT.prototype.stop=function(){for(var B=0;B<this.eventList.length;B++)this.hostElement.removeEventListener(this.eventList[B],_.Bc(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.UT.prototype.forwardEvent=function(B,R){this.shouldForward()&&(B.stopPropagation(),this.eventSink instanceof Element?_.OI(this.eventSink,B.type,R):_.KE(new _.H8("eventSink is not an element")))};_.W0={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.UT(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(B,R){this.forwarder_.start(B,R)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var b2=function(){return _.c.apply(this,arguments)||this};
_.l(b2,_.c);_.p=b2.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=_.vE("HTML_DIR")==="rtl"?"right":"left"};
_.p.dataChanged=function(){this.popupOpen=!1};
_.p.computeAriaLabel=function(B){return _.D(B,j6_).label};
_.p.onTap=function(B){B.stopPropagation();B.preventDefault();this.data.command&&_.Oz().resolve(_.oC).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()};
b2.prototype.onPopupClosed=b2.prototype.onPopupClosed;b2.prototype.onPopupOpened=b2.prototype.onPopupOpened;b2.prototype.onTap=b2.prototype.onTap;b2.prototype.dataChanged=b2.prototype.dataChanged;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],b2.prototype,"eventForwardingBehavior",void 0);_.r([_.v(_.KC),_.Z("design:type",Object)],b2.prototype,"ironButtonState",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],b2.prototype,"componentBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],b2.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:-1}),_.Z("design:type",Number)],b2.prototype,"tabindex",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Z("design:type",Object)],b2.prototype,"ariaLabel",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],b2.prototype,"disableTooltips",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],b2.prototype,"popupOpen",void 0);
_.r([_.E(),_.Z("design:type",Element)],b2.prototype,"eventSink",void 0);_.r([_.Yp("#tooltip"),_.Z("design:type",Object)],b2.prototype,"tooltip",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b2.prototype,"dataChanged",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],b2.prototype,"onTap",null);
_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b2.prototype,"onPopupOpened",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b2.prototype,"onPopupClosed",null);b2=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],b2);
_.F(b2,"ytd-thumbnail-overlay-button-renderer",function(){if(e9R!==void 0)return e9R;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return e9R=B},{mode:1});var X42;var J5=function(){return _.c.apply(this,arguments)||this};
_.l(J5,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],J5.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],J5.prototype,"disableAnimation",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],J5.prototype,"rounded",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],J5.prototype,"transparentBackground",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],J5.prototype,"noPadding",void 0);J5=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],J5);
_.F(J5,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(X42!==void 0)return X42;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return X42=B},{mode:1});var p4h;var j_=function(){return _.c.apply(this,arguments)||this};
_.l(j_,_.c);j_.prototype.computeIconPosition=function(B){return this.get("iconPosition",B)||null};
j_.prototype.computeIconStyle=function(B){return this.get("iconStyle",B)||null};
j_.prototype.computeIsIconStyleFilled=function(B){if(!B)return!1;var R;return B.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((R=B.icon)==null?void 0:R.iconType)==="ERROR_BLACK"};
_.r([_.E(),_.Z("design:type",Object)],j_.prototype,"data",void 0);_.r([_.E({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],j_.prototype,"iconPosition",void 0);_.r([_.E({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],j_.prototype,"iconStyle",void 0);_.r([_.E({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],j_.prototype,"iconStyleFilled",void 0);
j_=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],j_);
_.F(j_,"ytd-thumbnail-overlay-icon-renderer",function(){if(p4h!==void 0)return p4h;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return p4h=B},{mode:1});var Yt4;var UL=function(){return _.c.apply(this,arguments)||this};
_.l(UL,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],UL.prototype,"data",void 0);UL=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],UL);
_.F(UL,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(Yt4!==void 0)return Yt4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Yt4=B},{mode:1});var h95;var ND=function(){var B=_.c.apply(this,arguments)||this;B.isPreviewLoading=!1;return B};
_.l(ND,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ND.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ND.prototype,"isPreviewLoading",void 0);ND=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],ND);
_.F(ND,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(h95!==void 0)return h95;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return h95=B},{mode:1});var twl;var Gb=function(){return _.c.apply(this,arguments)||this};
_.l(Gb,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Gb.prototype,"data",void 0);Gb=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Gb);
_.F(Gb,"ytd-thumbnail-overlay-pinking-renderer",function(){if(twl!==void 0)return twl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return twl=B},{mode:1});var W7J;var yF=function(){var B=_.c.apply(this,arguments)||this;B.disableTooltips=!1;B.isLoading=!1;B.useExpandableTooltip=!1;B.toggled=!1;B.hovered=!1;B.mouseoverDelayJobId=0;B.toggleDelayJobId=0;B.expandAnimationDelayJobId=0;return B};
_.l(yF,_.c);_.p=yF.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");_.w(this.hostElement).querySelector("#tooltip").position=_.vE("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&&_.dV.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.dV.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.dV.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.p.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.dV.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.dV.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.dV.cancelJob(this.expandAnimationDelayJobId)};
_.p.computeIcon=function(B,R,V){return(B=V?R:B)&&B.iconType?_.RT(B.iconType):void 0};
_.p.computeAriaLabel=function(B,R,V){return _.D(V?R:B,j6_).label};
_.p.computeTooltip=function(B,R,V){return V?R:B};
_.p.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.p.computeIconOnHover=function(B,R){if((B==null?0:B.iconType)&&!R)return _.RT(B.iconType)};
_.p.onTap=function(B){var R=this;B.stopPropagation();B.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(B=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(B),this.useExpandableTooltip&&(this.toggleDelayJobId=_.ua(_.dV,function(){R.hovered=!1;R.data&&!R.data.toggledServiceEndpoint&&(R.expandAnimationDelayJobId=_.ua(_.dV,function(){R.set("data.isToggled",
!1)},200))},2E3))};
_.p.onMouseenter=function(){var B=this;this.mouseoverDelayJobId=_.ua(_.dV,function(){B.hovered=!0},300)};
_.p.onMouseleave=function(){_.dV.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(B,R){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(R)||this.set("data.isToggled",!this.data.isToggled)};
_.p.serviceRequestWasSuccessful=function(B){return _.D(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Lt)?B.data.status==="STATUS_SUCCEEDED":!0};
yF.prototype.onServiceRequestCompleted=yF.prototype.onServiceRequestCompleted;yF.prototype.onPopupClosed=yF.prototype.onPopupClosed;yF.prototype.onPopupOpened=yF.prototype.onPopupOpened;yF.prototype.onMouseleave=yF.prototype.onMouseleave;yF.prototype.dataChanged=yF.prototype.dataChanged;_.r([_.v(_.KC),_.Z("design:type",Object)],yF.prototype,"ironButtonState",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],yF.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],yF.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yF.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Z("design:type",Object)],yF.prototype,"ariaLabel",void 0);_.r([_.E(),_.Z("design:type",Object)],yF.prototype,"disableTooltips",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yF.prototype,"popupOpen",void 0);_.r([_.E(),_.Z("design:type",Object)],yF.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",Element)],yF.prototype,"eventSink",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],yF.prototype,"useExpandableTooltip",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Z("design:type",Object)],yF.prototype,"toggled",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],yF.prototype,"hovered",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Z("design:type",Object)],yF.prototype,"iconOnHover",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yF.prototype,"dataChanged",null);
_.r([_.R_("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yF.prototype,"onMouseleave",null);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yF.prototype,"onPopupOpened",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yF.prototype,"onPopupClosed",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],yF.prototype,"onServiceRequestCompleted",null);yF=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],yF);
_.F(yF,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(W7J!==void 0)return W7J;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return W7J=B},{mode:_.up("kevlar_poly_si_batch_j053")?1:2});var b4R;var J12=_.sx(function(B){var R=B.data;var V=function(){return R().enableSegmentView};
return _.N("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.N(_.H,{cond:V,then:function(){return _.N("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.N("div",{class:_.YB("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+R().startPercent+"%"}}),_.N("div",{class:_.YB("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+R().segmentDurationPercent+"%"}},_.N("div",{class:_.YB("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.N("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.N("div",null," ",function(){return R().segmentLabel})),_.N("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.N("div",{class:_.YB("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.N(_.H,{cond:function(){return!V()&&R().startPercent},
then:function(){var e={};return _.N("div",{class:_.YB("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(e.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.k("web_enable_modern_progress_bar_overlay"),e))},_.N("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+R().startPercent+"%"}}))}}))},"M");
J12.idomCompat=!0;var jS2=_.sx(function(B){var R=_.hv(),V=_.w1(function(X){var Y,t,b;a:{var J=(Y=B.data())==null?void 0:Y.animationActivationTargetId;Y=((t=B.data())==null?void 0:t.animationActivationEntityKey)||"";t=(b=B.data())==null?void 0:b.animationActivationEntitySelectorType;if(Y&&J)switch(t){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":X=_.p7(X.entities,"playerStateEntity",Y);b=_.Oz().resolve(_.uj(_.An));J=!!(X&&X.videoId===J&&(b==null?0:b.isMiniplayerActive()));J={activated:J,playAnimation:J&&
X.playerState==="PLAYER_STATE_PLAYING"};break a}J=void 0}return J});
_.lJ(function(){var X;if((X=V())==null?0:X.activated){var Y;if((Y=V())==null?0:Y.playAnimation){var t;(t=R.lottieEl)==null||t.goToAndPlay(0)}else{var b;(b=R.lottieEl)==null||b.goToAndStop(0)}}});
var e=function(){var X,Y=!((X=V())==null||!X.activated);if(B.data()){X=B.data();var t=void 0;X.icon&&(t=_.d8A(X.icon),t=Iwo(t));var b=void 0,J;if((J=X.backgroundColor)==null?0:J.lightTheme){var G;b={backgroundColor:aG((G=X.backgroundColor)==null?void 0:G.lightTheme,"0.8")}}if(X.text||t||Y){if(Y&&X.lottieData&&R){G=X.lottieData;var y,S,M;J={animationConfig:{name:G.url,path:G.url,autoplay:(y=G.settings)==null?void 0:y.autoplay,loop:(M=(S=G.settings)==null?void 0:S.loop)!=null?M:!0},animationRef:R}}else J=
void 0;if(Y)y=16;else b:switch(X.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":y=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":y=18;break b;default:y=16}Y={type:y,text:Y&&X.animatedText?X.animatedText:X.text,icon:t,customColors:b,animation:J}}else Y=void 0}else Y=void 0;return Y};
return _.N("yt-thumbnail-badge-view-model",{class:_.XE("yt-thumbnail-badge-view-model-wiz",B.class)},_.N(_.H,{cond:e,then:function(){return _.N(_.ul,{data:function(){return e()}})}}))},"N");var UMo=_.sx(function(B){var R={};return _.N("yt-thumbnail-bottom-overlay-view-model",{class:_.XE("ytThumbnailBottomOverlayViewModelHost",(R.ytThumbnailBottomOverlayViewModelHostBackground=function(){return B.data().enableGradientBackground},R))},_.N("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.N(_.wb,{data:function(){return B.data().progressBar}},{thumbnailOverlayProgressBarViewModel:J12}),_.N(_.wb,{data:function(){return B.data().badge}},{thumbnailBadgeViewModel:function(V){return _.N(jS2,
{data:V.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.N(_.wb,{data:function(){return B.data().badges}},{thumbnailBadgeViewModel:function(V){return _.N(jS2,{data:V.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
UMo.idomCompat=!0;_.mR(UMo,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Z9}});var F7Y={calledOnce:!1,state:"visible"},r1x={calledOnce:!1,state:"hidden"};_.oA(Z4o);var NjR=_.sx(function(B){var R=B.data;var V=B.className;B=B.alwaysShow;var e=_.Zh();_.gb(e,function(){return R().rendererContext});
var X=_.K7Y(),Y={};return _.N("thumbnail-hover-overlay-view-model",{el:e,class:_.XE("ytThumbnailHoverOverlayViewModelHost",V,(Y.ytThumbnailHoverOverlayViewModelHostForceHover=B,Y)),"aria-label":function(){var t;return(t=_.D(R().rendererContext,_.mJ))==null?void 0:t.label},
role:function(){return _.Ft(R().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Ft(R().rendererContext)!==void 0?0:void 0},
"on:keypress":X},_.N("div",{class:_.XE("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(R().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var t="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:t="ytThumbnailHoverOverlayViewModelStyleCover"}return t})},_.N(_.H,{cond:function(){return R().icon},
then:function(t){return _.N(_.ia,{data:t,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.N(_.H,{cond:function(){return R().text},
then:function(t){return _.N(_.Hr,{text:t,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P"),GUS=_.k("web_enable_sink_lockups_batch")?NjR:Z4o,y1a=_.k("web_enable_sink_lockups_batch")?NjR:_.h3(Z4o);
NjR.idomCompat=!0;var Stl=_.sx(function(B){var R=B.data;return _.N(_.wb,{data:function(){return R==null?void 0:R().overlays}},{thumbnailHoverOverlayViewModel:y1a})},"Q");
Stl.idomCompat=!0;var H4R={};var Mwa=_.sx(function(B){var R=B.data;var V=B.image;var e=B.state;var X=B.iconType;var Y=B.overlays;var t=B.isOverlay;var b=_.mA();B=_.h(_.WU(!0,void 0,"AA4e7b"));var J=B.next().value,G=B.next().value,y=function(){return!!R().onTap},S=_.AM(X,"LIVE");
_.lJ(function(){var f=R();requestAnimationFrame(function(){if(b.value===null)var z=!0;else{var T=b.value;z=f.badgeText;var L=mMA(f.size);z in H4R?T=H4R[z]:(T=T.clientWidth,H4R[z]=T);(z=T>L)?b.value.style.display="none":b.value.style.visibility="visible"}G(z)})});
var M=function(){var f={};return f["yt-spec-avatar-shape__image"]=!0,f["yt-spec-avatar-shape__image--ads-app"]=R().type===1,f};
return _.N("yt-avatar-shape",null,_.N("div",{el:_.Fc(Cko(y,{keydown:function(f){if(f.key==="Enter"){var z;(z=f.currentTarget)==null||z.click()}},
click:function(f){var z,T;return void((T=(z=R()).onTap)==null?void 0:T.call(z,f))}})),
class:function(){var f={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},z=R();f=(f[z.clusterLayoutConfig?uN_(z.clusterLayoutConfig):O45(z.size)]=!0,f["yt-spec-avatar-shape__button--tappable"]=y(),f);(z=R().avatarButtonCustomClassName)&&(f[z]=!0);return _.YB(f)},
"aria-label":function(){return y()?R().accessibilityText:""},
role:function(){return y()?"button":void 0},
tabindex:function(){return y()?0:void 0}},_.N("div",{class:function(){var f,z=R(),T=e==null?void 0:e(),L=t==null?void 0:t(),Q=!((f=z.decorations)==null||!f.includes(2)||z.size!=="medium"&&z.size!=="large"),q=z.size==="tiny"||z.size==="extra-small",m,g,Vu,n,Yd={};
f=(Yd["yt-spec-avatar-shape--live-ring"]=!!(((m=z.decorations)==null?0:m.includes(0))&&BN_(z.size)),Yd["yt-spec-avatar-shape--stories-watched"]=Q&&!(T==null||!T.storiesWatched),Yd["yt-spec-avatar-shape--stories-unwatched"]=Q&&!(T==null?0:T.storiesWatched),Yd["yt-spec-avatar-shape--background-border"]=R85(z.decorations)&&!q,Yd["yt-spec-avatar-shape--background-border-thin"]=R85(z.decorations)&&q,Yd["yt-spec-avatar-shape__on-select-border"]=!((g=z.decorations)==null||!g.includes(4)),Yd["yt-spec-avatar-shape__white-border"]=
!((Vu=z.decorations)==null||!Vu.includes(5)),Yd["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((n=z.decorations)==null?0:n.includes(5))&&q),Yd["yt-spec-avatar-shape--is-overlay"]=!!L,Yd);return _.YB(f)}},_.N("div",{class:function(){var f={};
var z=R();f=(f[z.clusterLayoutConfig?Pk5(z.clusterLayoutConfig):nkx(z.size)]=!0,f["yt-spec-avatar-shape--no-margin"]=R85(R().decorations),f);return _.YB(f)}},_.N(_.ia,{data:V,
alt:function(){return!y()&&R().accessibilityText?R().accessibilityText:""},
targetWidth:function(){return oud(R().size)},
targetHeight:function(){return oud(R().size)},
className:function(){return _.YB(M())}}),_.N(_.H,{cond:function(){var f;
return((f=R().decorations)==null?void 0:f.includes(0))&&BN_(R().size)},
then:function(){return _.N("div",{class:function(){var f={};f=(f["yt-spec-avatar-shape__live-badge"]=!0,f["yt-spec-avatar-shape__live-badge--badge-small"]=R().size==="small",f["yt-spec-avatar-shape__live-badge--badge-medium"]=R().size==="medium"||R().size==="48",f["yt-spec-avatar-shape__live-badge--badge-large"]=R().size==="large",f["yt-spec-avatar-shape__live-badge--badge-extra-large"]=R().size==="extra-large"||R().size==="extra-extra-large"||R().size==="giant",f);return _.YB(f)}},_.N(_.H,{cond:function(){return R().badgeText},
then:function(f){return _.N("div",{class:"yt-spec-avatar-shape__badge-text",el:b},f)}}),_.N(_.H,{cond:J,
then:function(){return _.N("div",{class:"yt-spec-avatar-shape__badge-icon"},_.N(_.Us,{icon:S,size:function(){a:switch(R().size){case "extra-large":var f=16;break a;default:f=13}return f}}))}}))}}),_.N(_.H,{cond:function(){var f,z;
return((f=R().decorations)==null?void 0:f.includes(1))||((z=R().decorations)==null?void 0:z.includes(0))&&!BN_(R().size)},
then:function(){return _.N("div",{class:function(){var f=R(),z,T,L={};var Q=(L["yt-spec-avatar-shape__live-dot"]=!((z=f.decorations)==null||!z.includes(0)||BN_(f.size)),L["yt-spec-avatar-shape__new-content"]=!((T=f.decorations)==null||!T.includes(1)),L);return _.YB(Q)}})}}),_.N(_.H,{cond:function(){return!!Y},
then:function(){return _.N("div",{class:function(){var f={};f=Object.assign((f["yt-spec-avatar-shape__image-overlays"]=!0,f),M());return _.YB(f)}},Y==null?void 0:Y())}})))))},"R");
Mwa.idomCompat={callbacks:{overlays:!0}};_.TP=_.sx(function(B){function R(){V().endpoint&&_.Lc(V().endpoint)}
var V=B.data;var e=B.decorations;var X=B.avatarButtonCustomClassName;var Y=B.isOverlay;var t=B.clusterLayoutConfig;return _.N("avatar-view-model",null,_.N(_.H,{cond:function(){return V().image},
then:function(b){return _.N(Mwa,{data:function(){return e8S({data:V(),onTap:V().endpoint?R:void 0,decorations:e==null?void 0:e(),badgeText:void 0,accessibilityText:V().accessibilityText,avatarButtonCustomClassName:X==null?void 0:X(),clusterLayoutConfig:t==null?void 0:t()})},
image:b,iconType:"RADAR_LIVE",overlays:function(){return _.N(Stl,{data:V})},
isOverlay:Y})}}))},"S");
_.TP.idomCompat=!0;_.S_=_.sx(function(B){var R=B.data;B=B.className;var V=_.mA(),e=function(){return _.D(R().avatar,_.$x)},X=_.NW(function(){var Y,t=R(),b=e(),J=_.Ft(R().rendererContext),G=(Y=V.value)!=null?Y:void 0,y;
if(b){G={data:t,avatar:b,onTap:J,element:G};Y=G.data;t=G.avatar;b=G.onTap;J=G.element;G=G.commandController;b=b?h8N(b,J,G):void 0;J=[];Y.liveData&&J.push(0);var S;G=(S=Y.liveData)==null?void 0:S.liveBadgeText;S=(y=_.D(Y.rendererContext,_.mJ))==null?void 0:y.label;y=e8S({data:t,onTap:b,decorations:J,badgeText:G,accessibilityText:S?S:Y.a11yLabel})}else y={size:"medium"};return y},void 0,"H8tk9d");
return _.N("yt-decorated-avatar-view-model",{class:_.XE("yt-decorated-avatar-view-model-wiz",B),el:V},_.N(_.H,{cond:function(){var Y;return(Y=e())==null?void 0:Y.image},
then:function(Y){return _.N(Mwa,{data:X,image:Y,iconType:"RADAR_LIVE",overlays:function(){return _.N(Stl,{data:e})}})}}))},"T");
_.S_.idomCompat=!0;_.H0=_.sx(function(B){var R=function(){var b;return Object.assign({},B.data(),(b=B.overrides)==null?void 0:b.call(B))},V=_.Zh(),e=function(){return V&&_.rb(R().rendererContext)};
_.gb(V,function(){return R().rendererContext});
var X=function(){var b=R().avatars,J,G;return(G=(J=(b==null?0:b[0])?_.D(b[0],_.$x):void 0)==null?void 0:J.avatarImageSize)!=null?G:"AVATAR_SIZE_UNKNOWN"},Y=function(){return Y35(R())},t={};
return _.N("yt-avatar-stack-view-model",{el:V,class:_.XE("yt-avatar-stack-view-model-wiz",B.className,(t["yt-avatar-stack-view-model-wiz--tappable"]=e,t["yt-avatar-stack-view-model-wiz--is-overlay"]=B.isOverlay,t["yt-avatar-stack-view-model-wiz--medium-text"]=B.useMediumText,t)),tabindex:function(){return e()?0:void 0},
role:function(){return e()?"link":void 0},
"aria-label":function(){var b,J;return(J=(b=_.D(R().rendererContext,_.mJ))==null?void 0:b.label)!=null?J:""}},_.N(_.H,{cond:function(){var b;
return R().avatars&&!((b=B.hideAvatar)==null?0:b.call(B))},
then:function(){return _.N("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.N(_.H,{cond:function(){return R().decoratedText},
then:function(b){var J={};return _.N("div",{class:_.XE("yt-avatar-stack-view-model-wiz__text-container",(J["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return X()==="AVATAR_SIZE_XXS"||X()==="AVATAR_SIZE_XS"},J["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var G;
return((G=B.isOverlay)==null?void 0:G.call(B))&&(X()==="AVATAR_SIZE_XXS"||X()==="AVATAR_SIZE_XS")},J)),
style:_.jQ({width:function(){return Y().avatarSizeInPx+"px"},
height:function(){return Y().avatarSizeInPx+"px"}})},_.N(_.Hr,{text:b,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.N("div",{style:function(){return _.jQ(Y().avatarStackStyle)()},
class:function(){return Y().avatarStackClass}},_.N(_.wb,{data:function(){return Y().avatars.reverse()}},{avatarViewModel:function(b,J){return _.N("div",{style:function(){var G,y;
return _.jQ((y=(G=Y()).avatarStyle)==null?void 0:y.call(G,J()))()},
class:function(){return Y().avatarClass}},_.N(_.TP,{data:b.data,
decorations:function(){var G;if((G=B.decorations)==null?0:G.call(B))G=B.decorations();else{G=R();var y=0;G.avatars&&(y+=G.avatars.length);G.decoratedText&&(y+=1);G=y>1?[3]:[]}return G},
avatarButtonCustomClassName:function(){return Y().avatarButtonCustomClassName},
isOverlay:B.isOverlay,clusterLayoutConfig:function(){var G,y;return(y=(G=Y()).clusterLayoutConfig)==null?void 0:y.call(G,J())}}))},
decoratedAvatarViewModel:function(b,J){return _.N("div",{style:function(){var G,y;return _.jQ((y=(G=Y()).avatarStyle)==null?void 0:y.call(G,J()))()},
class:function(){return Y().avatarClass}},_.N(_.S_,{data:b.data}))}})))}}),_.N(_.H,{cond:function(){return R().text},
then:function(b){return _.N(_.Hr,{text:b,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.H0.idomCompat=!0;_.mR(_.sx(function(B){var R=B.data;var V=B.thumbnailSize;return _.N("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.N("div",{class:_.XE("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return tdu(V==null?void 0:V())})},_.N(_.wb,{data:function(){return R().avatarStack}},{avatarStackViewModel:function(e){return _.N(_.H0,{data:e.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.qq,
thumbnailSize:_.qq}});_.oA(WwK);var kUh=_.sx(function(B){B=_.ip(B,{hidden:!1});var R=B.data;return _.N("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:B.hidden},_.N(_.Hr,{text:function(){return R().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.N(_.H,{cond:function(){return R().subtitle},
then:function(){return _.N(_.Hr,{text:function(){return R().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W"),DM4=_.k("web_enable_sink_lockups_batch")?kUh:WwK,f__=_.k("web_enable_sink_lockups_batch")?kUh:_.h3(WwK);
kUh.idomCompat=!0;_.k("web_enable_sink_lockups_batch")?_.mR(f__,"yt-thumbnail-overlay-title-view-model",{props:{data:_.qq,hidden:_.qq}}):_.Br(DM4,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var l_2=_.sx(function(B){B=_.ip(B,{isClip:!1});var R=B.data,V=B.thumbnailSize,e={};return _.N("yt-thumbnail-overlay-badge-view-model",{class:_.XE("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(R().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 bHA(V==null?void 0:V())},(e["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
B.isClip,e))},_.N(_.wb,{data:function(){return R().thumbnailBadges}},{thumbnailBadgeViewModel:function(X){return _.N(jS2,{data:X.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
l_2.idomCompat=!0;_.mR(l_2,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.qq,thumbnailSize:_.qq,isClip:_.qq}});_.oA(JgS);_.Br(JgS,"yt-page-indicator-view-model",{propNames:["data"]});var MD=function(){var B=_.c.apply(this,arguments)||this;B.eventSink=function(){return B};
B.disableInteraction=!1;B.noRoundedCorners=!1;B.isPreviewLoading=!1;B.isOriginalAspectRatio=!1;B.computedObjectFit=!1;B.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return B};
_.l(MD,_.c);_.p=MD.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:_.k("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(B,R,V,e){if(B&&R&&!e&&!_.k("disable_moving_thumbs_handling")&&!V)return R};
_.p.computeImageWidth=function(B,R){return R||9999};
_.p.computeIsOriginalAspectRatio=function(B){return B};
_.p.computeIsLive=function(B){if(B==null?0:B.badges)for(var R=0;R<B.badges.length;R++){var V=B.badges[R];if(V.metadataBadgeRenderer&&V.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(B==null?0:B.thumbnailOverlays)for(R=0;R<B.thumbnailOverlays.length;R++)if(V=B.thumbnailOverlays[R],V.thumbnailOverlayTimeStatusRenderer&&V.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.p.computeObjectFit=function(B,R){return R||(B?"CONTAIN":"")};
_.p.computeNavigationEndpoint=function(B,R,V){return B?R:V};
_.p.computeHasClip=function(B){B=_.h(B||[]);for(var R=B.next();!R.done;R=B.next())if(R.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.p.computeOverlayColor=function(B){var R;return(B==null?0:(R=B.darkColorPalette)==null?0:R.section2Color)?B.darkColorPalette.section2Color:B==null?void 0:B.sampledThumbnailColor};
_.mh.Object.defineProperties(MD.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return m3(this.width)}}});
MD.prototype.onImageUnloaded=MD.prototype.onImageUnloaded;MD.prototype.onImageLoaded=MD.prototype.onImageLoaded;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],MD.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],MD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v($b2),_.Z("design:type",Object)],MD.prototype,"ytdThumbnailBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],MD.prototype,"componentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],MD.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],MD.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],MD.prototype,"circular",void 0);
_.r([_.E({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Z("design:type",Object)],MD.prototype,"richThumbnail",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Z("design:type",Boolean)],MD.prototype,"hasClip",void 0);_.r([_.E(),_.Z("design:type",Object)],MD.prototype,"eventSink",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],MD.prototype,"queued",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],MD.prototype,"richGridThumbnail",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],MD.prototype,"useExpandableTooltip",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],MD.prototype,"useUntranslatedNavigationEndpoint",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],MD.prototype,"disableInteraction",void 0);
_.r([_.E({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Z("design:type",Object)],MD.prototype,"computedNavigationEndpoint",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],MD.prototype,"nowPlayingEqualizerOnly",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],MD.prototype,"hidePlaybackStatus",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],MD.prototype,"objectFit",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],MD.prototype,"noRoundedCorners",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],MD.prototype,"watchFeedThumbnail",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],MD.prototype,"isPreviewLoading",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Z("design:type",Object)],MD.prototype,"isOriginalAspectRatio",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Z("design:type",Object)],MD.prototype,"computedObjectFit",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Z("design:type",Boolean)],MD.prototype,"isLiveVideo",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],MD.prototype,"loaded",void 0);_.r([_.E({computed:"computeOverlayColor(data.thumbnail)"}),_.Z("design:type",Object)],MD.prototype,"overlayColor",void 0);_.r([_.E({selector:_.wLq}),_.Z("design:type",Boolean)],MD.prototype,"inlinePreviewIsEnabled",void 0);_.r([_.E(),_.Z("design:type",Number)],MD.prototype,"width",void 0);
_.r([_.K("inlinePreviewIsEnabled"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MD.prototype,"isPreviewDisabled",null);_.r([_.K("width"),_.Z("design:type",String),_.Z("design:paramtypes",[])],MD.prototype,"thumbnailSize",null);_.r([_.R_("image-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MD.prototype,"onImageLoaded",null);
_.r([_.R_("image-unloaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MD.prototype,"onImageUnloaded",null);MD=_.r([_.A({disableElementRegistration:!0,is:"ytd-thumbnail"})],MD);
var z9a=_.nJ()(MD,"ytd-thumbnail",function(){if(b4R===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);b4R=B}B=b4R;return B},{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 GNp=function(B){var R=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12700_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12700_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(V){a_v(R,V)};
this.onLockupMouseLeaveFn=function(V){V=V.relatedTarget;var e,X;((e=document.getElementsByTagName("ytd-video-preview"))==null?0:(X=e.item(0))==null?0:X.contains(V))||(R.terminateVideoPreview(),kg(R))};
this.onThumbnailMouseDownFn=function(){R.terminateVideoPreview();kg(R)};
this.onTouchStart=function(){R.JSC$12700_touched=!0};
this.mediaRenderer=B.mediaRenderer;this.thumbnailElement=B.thumbnailElement;this.lockupElement=B.lockupElement;this.videoPreviewOptsInput=B.videoPreviewOpts;dMR(this);Da(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)):
_.KE(Error("Bh")):_.KE(Error("Ch")):w44(this)},Y1=function(B){w44(B);
var R;(R=B.lockupElement)==null||R.removeEventListener("mouseenter",B.onMouseMoveFn);var V;(V=B.lockupElement)==null||V.removeEventListener("mouseleave",B.onLockupMouseLeaveFn);var e;(e=B.lockupElement)==null||e.removeEventListener("touchstart",B.onTouchStart);var X;(X=B.thumbnailElement)==null||X.removeEventListener("mousedown",B.onThumbnailMouseDownFn);kg(B)},dMR=function(B){B.inlinePreviewIsEnabledForUser=_.g6().getState().ui.inlinePreviewIsEnabled;
B.unsubscribeFromInlinePreviewIsEnabled=_.Ge(_.g6(),_.wLq,function(R){(B.inlinePreviewIsEnabledForUser=R)||kg(B)});
B.JSC$12700_unsubscribeFromInlinePreviewIsActive=_.Ge(_.g6(),_.dfd,function(R){(B.inlinePreviewIsActive=R)||kg(B)})},w44=function(B){B.unsubscribeFromInlinePreviewIsEnabled();
B.unsubscribeFromInlinePreviewIsEnabled=function(){};
B.JSC$12700_unsubscribeFromInlinePreviewIsActive();B.JSC$12700_unsubscribeFromInlinePreviewIsActive=function(){}},a_v=function(B,R){R.buttons>0||(R=_.RC("kevlar_lockup_hover_delay",-1),B.JSC$12700_touched&&R>=0?(_.dV.cancelJob(B.videoPreviewJobId),B.videoPreviewJobId=_.ua(_.dV,function(){Tj4(B)},R),B.JSC$12700_touched=!1):Tj4(B))},xMJ=function(B){B.videoPreviewJobId=_.ua(_.dV,function(){var R,V,e,X;
return _.W(function(Y){if(Y.nextAddress==1){if(!Da(B))return Y.return();R=B.getVideoPreviewOpts();if(!R)return Y.return();R.isAutoplay=!0;return(e=(V=_.Bz(B.mediaRenderer.hostElement,"yt-open-video-preview-action",[R]))&&V[0])?_.U(Y,V[0],3):Y.jumpTo(2)}Y.nextAddress!=2&&(e=Y.yieldResult===1);e&&Uw_((X=B.mediaRenderer)==null?void 0:X.data);_.b3(Y)})})},Tj4=function(B){!B.previewTriggered&&Da(B)&&(B.inlinePreviewIsActive&&B.terminateVideoPreview(),B.previewTriggered=!0,B.mediaRenderer.isInlinePreviewTriggered=
!0,_.dV.cancelJob(B.videoPreviewJobId),B.videoPreviewJobId=_.ua(_.dV,function(){var R,V,e,X;
return _.W(function(Y){if(Y.nextAddress==1){if(!Da(B))return Y.return();R=B.getVideoPreviewOpts();return R?(e=(V=_.Bz(B.mediaRenderer.hostElement,"yt-open-video-preview-action",[R]))&&V[0])?_.U(Y,V[0],3):Y.jumpTo(2):Y.return()}Y.nextAddress!=2&&(e=Y.yieldResult===1);e&&Uw_((X=B.mediaRenderer)==null?void 0:X.data);_.b3(Y)})}))};
GNp.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var B,R;if((R=(B=this.videoPreviewOptsInput)==null?void 0:B.videoPreviewData)!=null)B=R;else if(B=this.mediaRenderer.data)if(jvN(B))B={inlinePlaybackEndpoint:_.dl(B.inlinePlayerData.onVisible),navigationEndpoint:_.dl(B.onTap),thumbnail:"image"in B?B.image:B.thumbnail,thumbnailOverlays:void 0,accessibilityText:NNS(B)};else if("multipleInlinePlaybackEndpoint"in B){var V=_.D(_.D(B.multipleInlinePlaybackEndpoint,Uua),NK_);if(V!=
null&&V.playerDescriptors){R=[];V=_.h(V.playerDescriptors);for(var e=V.next();!e.done;e=V.next())e=e.value,R.push({inlinePlaybackEndpoint:e.inlinePlaybackEndpoint,navigationEndpoint:e.navigationEndpoint,thumbnail:e.thumbnail,thumbnailOverlays:e.thumbnailOverlays,accessibilityText:NNS(B)});B=R}else B=void 0}else B={inlinePlaybackEndpoint:B.inlinePlaybackEndpoint,navigationEndpoint:B.navigationEndpoint,thumbnail:B.thumbnail,thumbnailOverlays:B.thumbnailOverlays,accessibilityText:NNS(B)};else B=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:B,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Da=function(B){var R;if(R=B.inlinePreviewIsEnabledForUser)R=(B=B.mediaRenderer.data)?"inlinePlaybackEndpoint"in B&&B.inlinePlaybackEndpoint||jvN(B)&&B.inlinePlayerData||"multipleInlinePlaybackEndpoint"in B&&B.multipleInlinePlaybackEndpoint?!0:!1:!1;return R};
GNp.prototype.terminateVideoPreview=function(){_.oF(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var kg=function(B){_.dV.cancelJob(B.videoPreviewJobId);B.inlinePreviewIsActive=!1;B.previewTriggered=!1;B.mediaRenderer.isInlinePreviewTriggered=!1};var L7h=_.$Q(["#"]),fu=function(){var B=_.c.apply(this,arguments)||this;B.isDisabled=!1;return B};
_.l(fu,_.c);_.p=fu.prototype;_.p.configureRendererStamper=function(){return{"data.menu":XP,"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(B){var R=[];if(B.metadataText&&Object.keys(B.metadataText).length>0){var V=this.ytRendererBehavior.getSimpleString(B.metadataText);B.upcomingEventData&&B.upcomingEventData.upcomingEventText&&(V=_.c7(V,Number(B.upcomingEventData.startTime)));R.push(V)}else B.shortViewCountText&&R.push(this.ytRendererBehavior.getSimpleString(B.shortViewCountText)),B.publishedTimeText&&R.push(this.ytRendererBehavior.getSimpleString(B.publishedTimeText)),B.upcomingEventData&&B.upcomingEventData.upcomingEventText&&
(V=this.ytRendererBehavior.getSimpleString(B.upcomingEventData.upcomingEventText),R.push(_.c7(V,Number(B.upcomingEventData.startTime))));return R};
_.p.calculateBylineText=function(B){return B.shortBylineText?B.shortBylineText:B.bylineText?B.bylineText:null};
_.p.calculateIsDisabled=function(B){return!!B.isDisabled};
_.p.computeHrefWithDefault=function(B){return this.ytComponentBehavior.computeHref_(B)||_.MV(L7h)};
_.p.onDetailsTap=function(B){var R=this.data&&this.data.navigationEndpoint;R&&!_.g1(_.Az(B)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.k("kevlar_grid_video_renderer_killswitch")?_.OI(this.hostElement,"yt-navigate",{endpoint:R}):this.ytComponentBehavior.resolveCommand(R))};
_.p.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12705_inlinePreviewHoverListener=CO({mediaRenderer:this,lockupElement:_.w(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.w(this.hostElement).querySelector("ytd-thumbnail")})};
_.p.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$12705_inlinePreviewHoverListener)==null||Y1(B)};
_.p.computeThumbnailWidth=function(B,R){return R&&R>0?R:B?360:210};
_.p.computeShowChannelThumbnail=function(B,R){var V;return R&&!!(B==null?0:(V=B.channelThumbnailSupportedRenderers)==null?0:V.channelThumbnailWithLinkRenderer)};
_.mh.Object.defineProperties(fu.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$12705_inlinePreviewHoverListener)==null?0:Da(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
fu.prototype.dataChanged=fu.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],fu.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],fu.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.v(_.Qi),_.Z("design:type",Object)],fu.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],fu.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fu.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],fu.prototype,"noEndpoints",void 0);_.r([_.E({computed:"calculateBylineText(data)"}),_.Z("design:type",Object)],fu.prototype,"bylineText",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],fu.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],fu.prototype,"isDownloading",void 0);_.r([_.E({reflectToAttribute:!0,value:0}),_.Z("design:type",Number)],fu.prototype,"width",void 0);_.r([_.E({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Z("design:type",Object)],fu.prototype,"isDisabled",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fu.prototype,"dataChanged",null);_.r([_.K("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],fu.prototype,"isHovered",null);fu=_.r([_.A({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],fu);
_.F(fu,"ytd-grid-video-renderer",function(){if(Osh!==void 0)return Osh;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Osh=B},{mode:_.up("kevlar_poly_si_batch_j047")?1:2});var vko;var l2=function(){var B=_.c.apply(this,arguments)||this;B.roundedContainer=!0;B.skipRoundingTop=!1;B.disableTopPadding=!1;B.amsterdamEnabled=_.k("enable_desktop_amsterdam_info_panels");return B};
_.l(l2,_.c);l2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
l2.prototype.onClick=function(B){var R,V=(R=this.data)==null?void 0:R.sourceEndpoint;!_.g1(_.Az(B),this.hostElement,["A".toString()])&&V&&_.OI(this.hostElement,"yt-navigate",{endpoint:V})};
_.mh.Object.defineProperties(l2.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 B;return!((B=this.data)==null||!B.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=(B=this.data)==null?void 0:B.paragraphMaxLines)!=null?R:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],l2.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],l2.prototype,"showVerticalDividers",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],l2.prototype,"roundedContainer",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],l2.prototype,"skipRoundingTop",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],l2.prototype,"disableTopPadding",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],l2.prototype,"amsterdamEnabled",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],l2.prototype,"showMetadataAtTop",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],l2.prototype,"showMetadataBelowTitle",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.menu"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],l2.prototype,"hasMenu",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.truncateParagraphs"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],l2.prototype,"truncateParagraphs",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data.paragraphMaxLines"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],l2.prototype,"paragraphMaxLines",null);_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.background"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],l2.prototype,"background",null);l2=_.r([_.A({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],l2);
_.F(l2,"ytd-info-panel-content-renderer",function(){if(vko!==void 0)return vko;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return vko=B},{mode:_.up("kevlar_poly_si_batch_j076")?1:2});var K7T;var I_o;var EkR;var QS_;var zb=function(){return _.c.apply(this,arguments)||this};
_.l(zb,_.c);zb.prototype.computeStyle=function(B){return B};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zb.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],zb.prototype,"style_",void 0);zb=_.r([_.fJ({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],zb);
_.F(zb,"yt-channel-thumbnail-with-link-renderer",function(){if(QS_===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;EkR===void 0&&(EkR=document.createElement("template"));var e=EkR;V.call(R,e.content.cloneNode(!0),B.content.firstChild);QS_=B}B=QS_;return B},{mode:2});var aW=function(){var B=_.c.apply(this,arguments)||this;B.modernTypography=_.k("web_modern_typography");return B};
_.l(aW,_.c);aW.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"}}}};
aW.prototype.computeTitleStyle=function(B){return B||null};
aW.prototype.computeAvatarStyle=function(B){return B||null};
aW.prototype.computeShowNavigationButton=function(B,R){return!(B==null||!B.navigationButton||R)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],aW.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Z("design:type",String)],aW.prototype,"titleStyle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Z("design:type",String)],aW.prototype,"avatarStyle",void 0);_.r([_.E(),_.Z("design:type",Boolean)],aW.prototype,"hideNavigationButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],aW.prototype,"isModernSd",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],aW.prototype,"modernTypography",void 0);
aW=_.r([_.A({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],aW);
_.F(aW,"ytd-rich-list-header-renderer",function(){if(I_o!==void 0)return I_o;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return I_o=B},{mode:_.up("kevlar_poly_si_batch_j058")?1:2});var wo=function(){return _.c.apply(this,arguments)||this};
_.l(wo,_.c);wo.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]]"}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],wo.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],wo.prototype,"isSearch",void 0);wo=_.r([_.A({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],wo);
_.F(wo,"ytd-preview-card-renderer",function(){if(K7T!==void 0)return K7T;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return K7T=B},{mode:1});var qtG;var Tb=function(){return _.c.apply(this,arguments)||this};
_.l(Tb,_.c);Tb.prototype.configureRendererStamper=function(){return{"data.menu":XP}};
Tb.prototype.dataChanged=function(){var B=this.get("colorExtractionPalette.section1Color",this.data);B=_.li(B);_.o_(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":B})};
Tb.prototype.computeCardStyle=function(B){return this.get("style.value",B)||null};
Tb.prototype.dataChanged=Tb.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],Tb.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Tb.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Z("design:type",String)],Tb.prototype,"cardStyle",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Tb.prototype,"dataChanged",null);Tb=_.r([_.A({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Tb);
_.F(Tb,"ytd-compact-channel-recommendation-card-renderer",function(){if(qtG!==void 0)return qtG;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return qtG=B},{mode:1});var c14;var A1S;var xg=function(){var B=_.c.apply(this,arguments)||this;B.alignAuto=!1;B.collapsed=!0;B.isToggled=!1;B.alwaysCollapsed=!1;B.canToggle=!0;B.collapsedHeight=80;B.disableToggle=!1;B.alwaysToggleable=!1;B.reversed=!1;B.shouldUseNumberOfLines=!1;B.recomputeOnResize=!1;B.canToggleJobId=0;B.lastReversed=!1;return B};
_.l(xg,_.c);_.p=xg.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 B=_.w(this.hostElement),R=B.childNodes,V=document.createDocumentFragment(),e=B.childNodes.length-1;e>=0;e--)_.w(V).appendChild(R[e]);_.k("enable_shadydom_free_scoped_node_methods")?_.P$(this.hostElement).appendChild(V):B.appendChild(V)}};
_.p.ready=function(){var B=this;_.xp(function(){B.initChildrenObserver()},1)};
_.p.detached=function(){this.detachObserver()};
_.p.toggle=function(B,R){this.canToggle&&(this.isToggled=R,_.OI(this.hostElement,"yt-refit"),B&&B.stopPropagation())};
_.p.reset=function(){this.childrenChanged()};
_.p.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.p.computeIsMoreVisible=function(B,R){return B&&!R};
_.p.computeShouldUseNumberOfLines=function(B){try{return!!B&&window.CSS.supports("-webkit-line-clamp","1")}catch(R){}return!1};
_.p.computeIsLessVisible=function(B,R){return B&&R};
_.p.observeCollapsedHeightAndMaxLines=function(){var B=this.collapsedHeight,R=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.o_(this.hostElement,{"--ytd-expander-max-lines":""+R,"--ytd-expander-collapsed-height":""}):_.o_(this.hostElement,{"--ytd-expander-collapsed-height":B+"px","--ytd-expander-max-lines":""})};
_.p.handleMoreTap=function(B){this.disableToggle||(_.OI(this.hostElement,"yt-expander-more-tapped"),this.toggle(B,!0))};
_.p.handleLessTap=function(B){_.OI(this.hostElement,"yt-expander-less-tapped");this.toggle(B,!1)};
_.p.initChildrenObserver=function(){var B=this;this.observer=new MutationObserver(function(){B.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.p.childrenChanged=function(){var B=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){nc(function(){B.canToggleJobId=0;B.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()};
_.p.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("collapsed-changed",this.collapsed))};
_.p.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("is-toggled-changed",this.isToggled))};
_.p.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("can-toggle-changed",this.canToggle))};
_.mh.Object.defineProperties(xg.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
xg.prototype.canToggleChangedForBinding=xg.prototype.canToggleChangedForBinding;xg.prototype.isToggledChangedForBinding=xg.prototype.isToggledChangedForBinding;xg.prototype.collapsedChangedForBinding=xg.prototype.collapsedChangedForBinding;xg.prototype.observeCollapsedHeightAndMaxLines=xg.prototype.observeCollapsedHeightAndMaxLines;xg.prototype.onIronResize=xg.prototype.onIronResize;xg.prototype.reversedChanged=xg.prototype.reversedChanged;xg.prototype.toggledChanged=xg.prototype.toggledChanged;
xg.prototype.alwaysToggleableChanged=xg.prototype.alwaysToggleableChanged;_.r([_.v(_.LC),_.Z("design:type",Object)],xg.prototype,"ironResizableBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],xg.prototype,"alignAuto",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],xg.prototype,"collapsed",void 0);_.r([_.E(),_.Z("design:type",Object)],xg.prototype,"isToggled",void 0);_.r([_.E(),_.Z("design:type",Object)],xg.prototype,"alwaysCollapsed",void 0);
_.r([_.E(),_.Z("design:type",Object)],xg.prototype,"canToggle",void 0);_.r([_.E(),_.Z("design:type",Object)],xg.prototype,"collapsedHeight",void 0);_.r([_.E(),_.Z("design:type",Object)],xg.prototype,"disableToggle",void 0);_.r([_.E(),_.Z("design:type",Object)],xg.prototype,"alwaysToggleable",void 0);_.r([_.E(),_.Z("design:type",Object)],xg.prototype,"reversed",void 0);_.r([_.E(),_.Z("design:type",Number)],xg.prototype,"maxNumberOfLines",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Z("design:type",Object)],xg.prototype,"shouldUseNumberOfLines",void 0);_.r([_.E(),_.Z("design:type",Object)],xg.prototype,"recomputeOnResize",void 0);_.r([_.Yp("#content"),_.Z("design:type",HTMLDivElement)],xg.prototype,"content",void 0);_.r([_.bp("alwaysToggleable"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xg.prototype,"alwaysToggleableChanged",null);
_.r([_.bp("isToggled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xg.prototype,"toggledChanged",null);_.r([_.K("canToggleJobId"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xg.prototype,"isResetting",null);_.r([_.XX("reversed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xg.prototype,"reversedChanged",null);
_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xg.prototype,"onIronResize",null);_.r([_.XX("maxNumberOfLines","collapsedHeight"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xg.prototype,"observeCollapsedHeightAndMaxLines",null);_.r([_.XX("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xg.prototype,"collapsedChangedForBinding",null);
_.r([_.XX("isToggled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xg.prototype,"isToggledChangedForBinding",null);_.r([_.XX("canToggle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xg.prototype,"canToggleChangedForBinding",null);xg=_.r([_.A({disableElementRegistration:!0,is:"ytd-expander"})],xg);
_.F(xg,"ytd-expander",function(){if(A1S!==void 0)return A1S;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return A1S=B},{mode:1});var Lu=function(){return _.c.apply(this,arguments)||this};
_.l(Lu,_.c);Lu.prototype.computeIsCarousel=function(B){return!!B.isCarousel};
Lu.prototype.observeLightsourcePalette=function(){var B,R=(B=this.data)==null?void 0:B.vibrantsourceColorPaletteData;R&&_.lP(this.hostElement,R)};
Lu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Lu.prototype.observeLightsourcePalette=Lu.prototype.observeLightsourcePalette;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Lu.prototype,"data",void 0);_.r([_.E({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Lu.prototype,"isCarousel",void 0);
_.r([_.XX("data.vibrantsourceColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lu.prototype,"observeLightsourcePalette",null);Lu=_.r([_.A({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Lu);
_.F(Lu,"ytd-media-upsell-renderer",function(){if(c14!==void 0)return c14;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return c14=B},{mode:2});var i4J;var v0=function(){var B=_.c.apply(this,arguments)||this;B.JSC$12733_playerEvents=new Map;B.listeningToPlayer=!1;B.startX=0;B.active=!1;B.shouldShowButtons=_.k("web_buttons_hidden_killswitch");B.isHighlighted=!1;B.useHighlightStyling=_.k("web_enable_deeper_metadata_highlight_styling");B.modern=_.k("kevlar_modern_sd");B.enableProblemWalkthrough=_.k("problem_walkthrough_sd");return B};
_.l(v0,_.c);_.p=v0.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$12733_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.p.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Bc(this,this.onRepeatButtonToggle));_.k("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Bc(this,this.onActiveUpdate))};
_.p.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Bc(this,this.onRepeatButtonToggle));_.k("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Bc(this,this.onActiveUpdate))};
_.p.onDataChanged=function(){this.removePlayerListeners()};
_.p.onColorPaletteChange=function(){var B={},R;if(_.Lk()==="USER_INTERFACE_THEME_DARK"&&((R=this.data)==null?0:R.darkColorPalette)){var V=this.data.darkColorPalette;B["--ytd-macro-markers-list-item-background-color"]=_.zF(this.get("section2Color",V))}else{var e;_.Lk()==="USER_INTERFACE_THEME_LIGHT"&&((e=this.data)==null?0:e.lightColorPalette)&&(V=this.data.lightColorPalette,B["--ytd-macro-markers-list-item-background-color"]=_.zF(this.get("section3Color",V)))}V?(B["--ytd-macro-markers-list-item-title-color"]=
_.zF(this.get("primaryTitleColor",V)),B["--ytd-macro-markers-list-item-secondary-color"]=_.zF(this.get("secondaryTitleColor",V)),B["--ytd-macro-markers-list-item-timestamp-background-color"]=_.zF(this.get("section1Color",V)),this.customButtonProperties={customColors:{color:_.zF(this.get("primaryTitleColor",V))}},this.useColorSampling=!0):(B["--ytd-macro-markers-list-item-background-color"]="initial",B["--ytd-macro-markers-list-item-title-color"]="initial",B["--ytd-macro-markers-list-item-secondary-color"]=
"initial",B["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.o_(this.hostElement,B)};
_.p.onEndpointMouseDown=function(B){this.startX=B.clientX};
_.p.onEndpointClick=function(B){var R=this,V,e,X;return _.W(function(Y){if(Y.nextAddress==1){if(R.startX!==B.clientX)return B.preventDefault(),Y.return();R.data&&R.ytRendererBehavior.logExplicitClick(R.data);if(!R.seekWithAnimationOnClick)return Y.jumpTo(0);if(B.button!==0||B.shiftKey||B.altKey||B.metaKey||B.ctrlKey||_.g1(_.Az(B),R.hostElement,["BUTTON".toString()]))return Y.return();B.stopPropagation();B.preventDefault();return R.data?_.U(Y,_.nD().getPlayerPromise(),3):Y.return()}V=Y.yieldResult;
X=(e=_.D(R.data.onTap,_.sI))==null?void 0:e.startTimeSeconds;X!==void 0&&V.seekToTimeWithAnimation(X*1E3,_.FF(R.data.title));_.b3(Y)})};
_.p.computeLayout=function(B){return B};
_.p.computeIsHighlighted=function(B){return!!B};
_.p.computeCarouselType=function(B){return B};
_.p.hideModernCarousel=function(B){return this.modern&&this.hideThumbnail(B)};
_.p.hideThumbnail=function(B){return this.enableProblemWalkthrough&&B!==null&&B==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.p.onRepeatButtonToggle=function(B){var R=this;B.detail.toggled&&_.nD().getPlayerPromise().then(function(V){R.ytPlayerListenerBehavior.listenToPlayerEvents(V,R.JSC$12733_playerEvents);R.listeningToPlayer=!0})};
_.p.onLoopRangeChange=function(B){var R=_.w(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(R){var V=R.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",R.polymerController.data);if(V){var e=Number(V.endTimeMs);if(Number(V.startTimeMs)!==(B==null?void 0:B.startTimeMs)||e!==(B==null?void 0:B.endTimeMs))R.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.p.removePlayerListeners=function(){var B=this;this.listeningToPlayer&&_.nD().getPlayerPromise().then(function(R){B.ytPlayerListenerBehavior.unlistenFromPlayerEvents(R,B.JSC$12733_playerEvents);B.listeningToPlayer=!1})};
_.p.onActiveUpdate=function(B){this.active=B.detail.active};
v0.prototype.onColorPaletteChange=v0.prototype.onColorPaletteChange;v0.prototype.onDataChanged=v0.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],v0.prototype,"ytPlayerListenerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],v0.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],v0.prototype,"useCustomColors",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],v0.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],v0.prototype,"shouldShowButtons",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Z("design:type",String)],v0.prototype,"layout",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Z("design:type",Object)],v0.prototype,"isHighlighted",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],v0.prototype,"useHighlightStyling",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],v0.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],v0.prototype,"enableProblemWalkthrough",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Z("design:type",String)],v0.prototype,"carouselType",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],v0.prototype,"useColorSampling",void 0);_.r([_.E(),_.Z("design:type",Boolean)],v0.prototype,"seekWithAnimationOnClick",void 0);_.r([_.E(),_.Z("design:type",Object)],v0.prototype,"customButtonProperties",void 0);
_.r([_.Yp("#repeat-button"),_.Z("design:type",HTMLElement)],v0.prototype,"repeatButton",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],v0.prototype,"onDataChanged",null);_.r([_.XX("data.lightColorPalette","data.darkColorPalette"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],v0.prototype,"onColorPaletteChange",null);
v0=_.r([_.A({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],v0);
_.F(v0,"ytd-macro-markers-list-item-renderer",function(){if(i4J!==void 0)return i4J;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return i4J=B},{mode:1});var sSo;var F7T;var Ku=function(){var B=_.c.apply(this,arguments)||this;B.modernTypography=_.k("web_modern_typography");return B};
_.l(Ku,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ku.prototype,"modernTypography",void 0);_.r([_.E(),_.Z("design:type",Object)],Ku.prototype,"data",void 0);Ku=_.r([_.A({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Ku);
_.F(Ku,"ytd-title-and-button-list-header-renderer",function(){if(F7T!==void 0)return F7T;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return F7T=B},{mode:1});var r14;var gkl=new _.u0("BUTTON_RENDERER_WIZ_TOKEN"),Z4_=new _.u0("BUTTON_RENDERER_TOKEN");_.IW=_.sx(function(B){var R=_.Oz().resolve(_.uj(gkl));if(R)return _.N(R,Object.assign({},B));var V=_.Oz().resolve(Z4_);return V?_.N(zqS,null,function(){return _.N($D,null,function(){var e,X,Y,t,b,J,G,y,S,M,f,z;return void V(B.data(),{onButtonClickCallback:B.onButtonClickCallback,shouldShowIcons:(e=B.shouldShowIcons)==null?void 0:e.call(B),icon:(X=B.icon)==null?void 0:X.call(B),processAllEndpoints:(Y=B.processAllEndpoints)==null?void 0:Y.call(B),preventDefault:(t=B.preventDefault)==null?void 0:t.call(B),
stopPropagation:(b=B.stopPropagation)==null?void 0:b.call(B),disableButtonRendererClickHandling:(J=B.disableButtonRendererClickHandling)==null?void 0:J.call(B),className:(G=B.className)==null?void 0:G.call(B),buttonOverrides:(y=B.buttonOverrides)==null?void 0:y.call(B),forceModernIconButton:(S=B.forceModernIconButton)==null?void 0:S.call(B),isSubscribe:(M=B.isSubscribe)==null?void 0:M.call(B),alignByText:(f=B.alignByText)==null?void 0:f.call(B),forceDisabled:(z=B.forceDisabled)==null?void 0:z.call(B)})})}):
_.N(_.OZ,null)},"Y");
_.IW.idomCompat=!0;var mMh=_.sx(function(B){var R=B.data,V=_.AM(B.useSquareAspectRatio,!1);return _.N("dismissed-mini-game-card-view-model",null,_.N(_.H,{cond:function(){var e,X;return(e=R().responseText)==null?void 0:(X=e.runs)==null?void 0:X.length},
then:function(){var e={};return _.N("div",{class:_.XE("yt-mini-game-card-view-model__dismissed-card",(e["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!V()},e["yt-mini-game-card-view-model--dismissed-square-card"]=V,e))},_.N("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.N(_.H,{cond:function(){return R().responseText.runs[0].text},
then:function(X){return _.N("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:X},X)}}),_.N(_.wb,{data:function(){return R().buttons}},{buttonRenderer:_.IW,
buttonViewModel:_.qo})))}}))},"Z");var O44=_.sx(function(B){B=_.ip(B,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var R=B.data,V=B.useFullWidth,e=B.isDesktopWeb,X=B.addSearchResultTopMargin,Y=function(){return R().layout},t=function(){return R().title},b=function(){return R().genre},J=function(){return R().channelName},G=function(){return R().image},y=function(){return R().colorPalette},S=function(){return R().actionButton},M=function(){return R().overflowButton},f=function(){return R().avatar},
z=function(){var q={};
q=_.XE("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(q["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return e()},q));
return _.N("div",{class:q},_.N($MG,{imageData:G,colorPalette:y}),_.N(Ck_,{onTap:function(){return R().onTap},
imageData:G,accessibilityText:function(){return R().accessibilityText},
overlayBadgeText:function(){return R().overlayBadgeText},
iconName:function(){return R().iconName},
unplayableInlinePlaybackIconName:function(){return R().unplayableInlinePlaybackIconName},
isDesktopWeb:e}),_.N(_.H,{cond:function(){return!e()},
then:function(){return _.N(_.OZ,null,_.N(Pk4,{layout:Y,colorPalette:y,isDesktopWeb:e,overflowButton:M,avatar:f,onTap:function(){return R().onTap},
genre:b,title:t,channelName:J,entityRedesignExperiments:function(){return R().entityRedesignExperiments}}),_.N(EL,{actionButton:S}))}}))},T=function(){var q={};
q=_.XE((q["yt-mini-game-card-view-model--search-result-desktop"]=function(){return e()},q["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!e()},q["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return X()},q));
return _.N("div",{class:q},z(),_.N(nk4,{description:function(){return R().description},
isDesktopWeb:e,title:t,genre:b,onTap:function(){return R().onTap},
actionButton:S,overflowButton:M,avatar:f,channelName:J}))},L=function(){var q=function(){var g;
return(g=R().entityRedesignExperiments)==null?void 0:g.changePlayablesLayoutWithCta},m={};
m=_.XE("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(m["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return q()},m["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return e()},m["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return e()&&R().width===135},m["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return e()},m["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!q()&&e()&&R().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},m["yt-mini-game-card-view-model--big-metadata-font"]=function(){return R().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},m["yt-mini-game-card-view-model--use-full-width"]=function(){return V()},m["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!S()},m));
return _.N("div",{class:m},_.N(_.H,{cond:function(){return q()},
then:function(){return _.N(_.OZ,null,_.N(uNG,{entityRedesignExperiments:function(){return R().entityRedesignExperiments},
colorPalette:y,isDesktopWeb:e,onTap:function(){return R().onTap},
accessibilityText:function(){return R().accessibilityText},
overlayBadgeText:function(){return R().overlayBadgeText},
iconName:function(){return R().iconName},
unplayableInlinePlaybackIconName:function(){return R().unplayableInlinePlaybackIconName},
actionButton:S,imageData:G}),_.N(Pk4,{layout:Y,colorPalette:y,isDesktopWeb:e,overflowButton:M,avatar:f,onTap:function(){return R().onTap},
genre:b,title:t,channelName:J,entityRedesignExperiments:function(){return R().entityRedesignExperiments}}),_.N(_.H,{cond:function(){return!!q()===!1&&S()},
then:function(){return _.N(EL,{actionButton:S})}}))},
else:function(){return _.N(_.OZ,null,_.N($MG,{imageData:G,colorPalette:y}),_.N(Ck_,{onTap:function(){return R().onTap},
imageData:G,accessibilityText:function(){return R().accessibilityText},
overlayBadgeText:function(){return R().overlayBadgeText},
iconName:function(){return R().iconName},
unplayableInlinePlaybackIconName:function(){return R().unplayableInlinePlaybackIconName},
isDesktopWeb:e}),_.N(Pk4,{layout:Y,colorPalette:y,isDesktopWeb:e,overflowButton:M,avatar:f,onTap:function(){return R().onTap},
genre:b,title:t,channelName:J,entityRedesignExperiments:function(){return R().entityRedesignExperiments}}),_.N(EL,{actionButton:S}))}}))},Q=function(){var q={};
q=_.XE("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(q["yt-mini-game-card-view-model--square-card-desktop"]=function(){return e()},q["yt-mini-game-card-view-model--use-full-width"]=function(){return V()},q));
return _.N("div",{class:q},_.N(Ck_,{onTap:function(){return R().onTap},
imageData:G,accessibilityText:function(){return R().accessibilityText},
overlayBadgeText:function(){return R().overlayBadgeText},
iconName:function(){return R().iconName},
unplayableInlinePlaybackIconName:function(){return R().unplayableInlinePlaybackIconName},
isDesktopWeb:e}),_.N(Pk4,{layout:Y,colorPalette:y,isDesktopWeb:e,overflowButton:M,avatar:f,onTap:function(){return R().onTap},
genre:b,title:t,channelName:J,entityRedesignExperiments:function(){return R().entityRedesignExperiments}}))};
return _.N("mini-game-card-view-model",{class:B.className},_.N(_.MN,null,_.N(_.Sv,{when:function(){return Y()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return L()}),_.N(_.Sv,{when:function(){return Y()==="MINI_APP_LAYOUT_SQUARE"}},function(){return Q()}),_.N(_.Sv,{when:function(){return Y()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return T()})))},"$");
O44.idomCompat=!0;var EL=_.sx(function(B){var R=_.AM(B.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.N(_.wb,{data:B.actionButton},{buttonViewModel:function(V){return _.N("div",{class:R},_.N(_.qo,{data:V.data}))}})},"aa"),Ck_=_.sx(function(B){var R=B.onTap;
var V=B.imageData;var e=B.accessibilityText;var X=B.overlayBadgeText;var Y=B.iconName;var t=B.unplayableInlinePlaybackIconName;B=B.isDesktopWeb;return _.N(_.SQ,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:R},_.N(_.ia,{data:V,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(e==null?void 0:e())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.N(ou5,{overlayBadgeText:X,iconName:Y,unplayableInlinePlaybackIconName:t,isDesktopWeb:B}))},"ba"),ou5=_.sx(function(B){var R=B.overlayBadgeText;
var V=B.iconName;var e=B.unplayableInlinePlaybackIconName;var X=B.isDesktopWeb;return _.N("div",{class:"yt-mini-game-card-view-model__badge-container"},_.N(_.H,{cond:V,then:function(Y){return _.N("div",{class:"yt-mini-game-card-view-model__badge"},_.N("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.N(_.Us,{icon:Y,className:"yt-mini-game-card-view-model__icon"}),_.N("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},R)))}}),_.N(_.H,{cond:function(){return!V()&&
R()},
then:function(){return _.N("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},R)}}),_.N(_.H,{cond:function(){return e()&&X()},
then:function(){return _.N("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.N(_.Us,{icon:e,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),$MG=_.sx(function(B){var R=B.colorPalette;
var V=B.imageData;var e=function(){return R().vibrantColorPalette?R().vibrantColorPalette.section2Color:R().sectionTwoColor};
return _.N(_.OZ,null,_.N("div",{class:"yt-mini-game-card-view-model__background-base",style:_.jQ({"background-color":function(){return aG(e(),"1")}})}),_.N("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.jQ({"background-image":function(){return"url("+V().sources[0].url+")"}})}),_.N("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.jQ({background:function(){return"linear-gradient(180deg,\n    "+aG(e(),".8")+" 0%,\n    "+aG(e(),".4")+" 25%,\n    "+aG(R().vibrantColorPalette?R().vibrantColorPalette.section4Color:R().sectionFourColor,".8")+" 100%)"}})}))},"da"),Pk4=_.sx(function(B){var R=B.layout;
var V=B.colorPalette;var e=B.overflowButton;var X=B.avatar;var Y=B.onTap;var t=B.title;var b=B.channelName;var J=B.entityRedesignExperiments;var G=B.genre;var y=function(){var M;return R()!=="MINI_APP_LAYOUT_SQUARE"&&((M=V())==null?0:M.textPrimaryColor)?"color: "+aG(V().textPrimaryColor,".7"):""},S=function(){var M;
return J==null?void 0:(M=J())==null?void 0:M.changePlayablesLayoutWithCta};
return _.N("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.N(_.H,{cond:X,then:function(){return _.N("div",{class:"yt-mini-game-card-view-model__avatar"},_.N(_.wb,{data:X},{avatarViewModel:_.TP}))}}),_.N(_.SQ,{command:Y,
className:"yt-mini-game-card-view-model__metadata-details"},_.N("h3",{class:"yt-mini-game-card-view-model__title",title:t},t),_.N(_.H,{cond:X,then:function(){return _.N("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.N("span",{class:"yt-mini-game-card-view-model__genre",title:b,style:y},b),_.N("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:y},G))},
else:function(){return _.N(_.H,{cond:S,then:function(){return _.N("span",{class:"yt-mini-game-card-view-model__genre",title:G},G)},
else:function(){return _.N("span",{class:"yt-mini-game-card-view-model__genre",title:G,style:y},G)}})}})),_.N("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.N(_.wb,{data:e},{buttonViewModel:function(M){var f=M.data;
return _.N(_.qo,{data:function(){return Object.assign({},f(),{customFontColor:S()?void 0:f().customFontColor})}})}})))},"ea"),uNG=_.sx(function(B){var R=B.entityRedesignExperiments;
var V=B.colorPalette;var e=B.isDesktopWeb;var X=B.onTap;var Y=B.accessibilityText;var t=B.overlayBadgeText;var b=B.iconName;var J=B.unplayableInlinePlaybackIconName;var G=B.actionButton;B=B.imageData;var y=function(){var S;return R==null?void 0:(S=R())==null?void 0:S.changePlayablesLayoutWithCta};
return _.N("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.N($MG,{imageData:B,colorPalette:V}),_.N(Ck_,{onTap:X,imageData:B,accessibilityText:Y,overlayBadgeText:t,iconName:b,unplayableInlinePlaybackIconName:J,isDesktopWeb:e}),_.N(_.H,{cond:function(){return(y==null?void 0:y())&&(G==null?void 0:G())},
then:function(){return _.N(EL,{actionButton:G})}}))},"fa"),nk4=_.sx(function(B){var R=B.description;
var V=B.isDesktopWeb;var e=B.title;var X=B.genre;var Y=B.onTap;var t=B.actionButton;var b=B.overflowButton;var J=B.avatar;B=B.channelName;var G={};G=_.XE("yt-mini-game-card-view-model--search-result-metadata-wrapper",(G["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=V,G["yt-mini-game-card-view-model--show-unplayable-on-hover"]=V,G["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!V()},G));
var y={};y=_.XE("yt-mini-game-card-view-model__search-result-info-row",(y["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!V()},y));
return _.N("div",{class:G},_.N("div",{class:y},_.N(_.SQ,{command:Y,className:"yt-mini-game-card-view-model__metadata-details"},_.N("h3",{class:"yt-mini-game-card-view-model__title",title:e},e),_.N("span",{class:"yt-mini-game-card-view-model__genre",title:X},X)),_.N(EL,{actionButton:t,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.N("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.N(_.wb,{data:b},{buttonViewModel:_.qo}))),_.N("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.N("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.N("div",{class:"yt-mini-game-card-view-model__avatar"},_.N(_.wb,{data:J},{avatarViewModel:function(S){var M=S.data;return _.N(_.TP,{data:function(){return Object.assign({},M(),{avatarImageSize:V()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.N(_.SQ,{command:Y,
className:"yt-mini-game-card-view-model__description"},_.N("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},B)),_.N(_.SQ,{command:Y,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.N("div",null)))),_.N(_.H,{cond:V,then:function(){return _.N(_.SQ,{command:Y,className:"yt-mini-game-card-view-model__description"},R)}}))},"ga");_.mR(O44,"mini-game-card-view-model",{props:{data:_.qq,className:_.qq,useFullWidth:_.qq,isDesktopWeb:_.qq,addSearchResultTopMargin:_.qq}});_.mR(mMh,"dismissed-mini-game-card-view-model",{props:{data:_.qq,useSquareAspectRatio:_.qq}});var QF=function(){var B=_.c.apply(this,arguments)||this;B.isSearch=!1;B.isRichGrid=!1;return B};
_.l(QF,_.c);_.p=QF.prototype;_.p.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.p.dismissibleItemOnYtServiceRequestSent=function(B,R){R.actions&&this.dismissibleItemProcessActions(B,R.actions)};
_.p.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.p.dataChanged=function(){this.dismissibleItemReset()};
_.p.dismissibleItemProcessActions=function(B,R){for(var V=0;V<R.length;V++){var e=R[V];_.D(e,_.ki)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.D(e,_.ki)),B.stopPropagation())}};
_.p.dismissibleItemHandleReplaceEnclosingAction=function(B){this.dismissedRenderer=B.item;this.isDismissed=!0};
_.p.experimentalPropertiesChanged=function(){_.k("kevlar_mini_game_card_c3po_to_wiz")||this.ytIdomTemplatingBehavior.debounceRender()};
_.p.renderIdom=function(){if(!_.k("kevlar_mini_game_card_c3po_to_wiz")&&this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var B=!!this.useSquareAspectRatio;cK(mMh)({data:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:B===void 0?!1:B})}else cK(O44)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0})};
_.mh.Object.defineProperties(QF.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){if(!_.k("kevlar_mini_game_card_c3po_to_wiz"))return!1;var B;return!!this.data&&!((B=this.dismissedRenderer)==null?0:B.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){if(!_.k("kevlar_mini_game_card_c3po_to_wiz"))return!1;var B;return!((B=this.dismissedRenderer)==null||!B.notificationMultiActionRenderer)}}});
QF.prototype.experimentalPropertiesChanged=QF.prototype.experimentalPropertiesChanged;QF.prototype.dataChanged=QF.prototype.dataChanged;QF.prototype.dismissibleItemOnRequestSent=QF.prototype.dismissibleItemOnRequestSent;QF.prototype.dismissibleItemOnYtServiceRequestSent=QF.prototype.dismissibleItemOnYtServiceRequestSent;_.r([_.v(_.k("kevlar_mini_game_card_c3po_to_wiz")?{}:Ta_),_.Z("design:type",Object)],QF.prototype,"ytIdomTemplatingBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],QF.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],QF.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],QF.prototype,"isDismissed",void 0);_.r([_.E(),_.Z("design:type",Object)],QF.prototype,"dismissedRenderer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],QF.prototype,"isRichGrid",void 0);
_.r([_.K("data.layout"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QF.prototype,"useSquareAspectRatio",null);_.r([_.K("data","dismissedRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QF.prototype,"showCard",null);_.r([_.K("data","dismissedRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QF.prototype,"showDismissed",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],QF.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.r([_.R_("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],QF.prototype,"dismissibleItemOnRequestSent",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QF.prototype,"dataChanged",null);_.r([_.XX("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QF.prototype,"experimentalPropertiesChanged",null);QF=_.r([_.fJ({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],QF);
_.F(QF,"ytd-mini-game-card-view-model",function(){if(r14!==void 0)return r14;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return r14=B},{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var BNG;var R84;var qD=function(){return _.$_.apply(this,arguments)||this};
_.l(qD,_.$_);qD.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
qD.prototype.getContinuationUrl=function(B){var R={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(R.itct=this.data.clickTrackingParams);return _.gg(B,R)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qD.prototype,"data",void 0);qD=_.r([_.fJ({is:"yt-reload-continuation",noInjection:!0})],qD);var VdR;var e8o;var c0=function(){var B=_.c.apply(this,arguments)||this;B.notificationData={};return B};
_.l(c0,_.c);_.p=c0.prototype;_.p.isMenuExpanded=function(B){return B&&B.length<=1?"undefined":"false"};
_.p.dataChanged_=function(){this.selected=void 0;var B=this.computeSelectedIndex_(this.data);B>=0&&(this.selected=B);B=this.data&&this.data.length>1;_.nk(this.hostElement,"has-items",B);_.w(this.hostElement).querySelector("#label").tabIndex=B?0:-1};
_.p.onDropdownOpen=function(){var B=_.TE();if(this.parentTrackingParams&&this.data){var R=_.U5(this.parentTrackingParams);this.data.forEach(function(V){B&&R&&V.trackingParams&&(V=_.U5(V.trackingParams),_.EV(B,R,V),_.cz(B,[V]))})}else this.parentTrackingParams||_.KE(new _.H8("No parent tracking params passed in for yt-dropdown-menu."))};
_.p.hasNotification=function(B){var R;if(B.targetId&&((R=this.notificationData)==null?0:R.targetId)){var V;return B.targetId===((V=this.notificationData)==null?void 0:V.targetId)}};
_.p.computeSelectedIndex_=function(B){if(B)for(var R=0,V=B.length;R<V;R++)if(B[R].selected)return R;return-1};
_.p.computeLabel_=function(B){return this.data&&B!=void 0?this.data[B].title:""};
_.p.computeShowIcon_=function(B,R){return!R&&!!B};
_.p.computeVerticalOffset_=function(B){return B?36:0};
_.p.computeEndpoint_=function(B){return B.endpoint||B.navigationEndpoint};
_.p.onLabelClick_=function(B){this.data&&this.data.length<=1?B.stopPropagation():this.menuExpanded="true"};
_.p.onIronActivate_=function(B){B=B.detail.item;var R=_.w(this.hostElement).querySelector("#repeat").itemForElement(B);if(R&&R.trackingParams){var V=_.TE(),e=_.U5(R.trackingParams);V&&_.iF(V,e)}if(R&&R.serviceEndpoint)_.k("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(R.serviceEndpoint):_.VD(this.hostElement,[R.serviceEndpoint]),_.OI(this.hostElement,"yt-playlist-reloading");else a:{if((R=B.querySelector("yt-supported-renderers"))&&(R=
R.rendererElement)&&R.is=="yt-reload-continuation"){R.trigger();break a}(B=B.querySelector("yt-reload-continuation"))&&B.trigger()}};
_.p.onTap_=function(B){B.preventDefault()};
_.p.onItemTap_=function(B){this.ytEndpointBehavior.onEndpointTap_(B)};
_.p.onLinkFocus_=function(B){try{var R=B.target}catch(e){}if(R){var V=R.querySelector("tp-yt-paper-item");V&&_.LJ(this,"focus",function(){V.focus()})}};
_.p.onMenuClose_=function(){this.menuExpanded="false"};
_.p.isLabelIconActive_=function(B){return B==="true"};
_.p.computeHasSubtitle_=function(B){return!!B};
_.p.computeHrefForItem_=function(B){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(B))};
_.p.updateSelectedFromBinding=function(B){this.selected=B.detail.value};
_.mh.Object.defineProperties(c0.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
c0.prototype.onMenuClose_=c0.prototype.onMenuClose_;c0.prototype.onTap_=c0.prototype.onTap_;c0.prototype.onIronActivate_=c0.prototype.onIronActivate_;c0.prototype.onDropdownOpen=c0.prototype.onDropdownOpen;c0.prototype.dataChanged_=c0.prototype.dataChanged_;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],c0.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.VR.YtEndpointBehavior),_.Z("design:type",Object)],c0.prototype,"ytEndpointBehavior",void 0);
_.r([_.E(),_.Z("design:type",Array)],c0.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],c0.prototype,"parentTrackingParams",void 0);_.r([_.E(),_.Z("design:type",Object)],c0.prototype,"selected",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],c0.prototype,"useLabel",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],c0.prototype,"useComputedAriaLabel",void 0);_.r([_.E(),_.Z("design:type",String)],c0.prototype,"icon",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],c0.prototype,"iconLabel",void 0);_.r([_.E(),_.Z("design:type",String)],c0.prototype,"ariaLabel",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],c0.prototype,"disabled",void 0);_.r([_.E({computed:"isMenuExpanded(data)"}),_.Z("design:type",String)],c0.prototype,"menuExpanded",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],c0.prototype,"closeOnActivate",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.k("web_modern_buttons")}),_.Z("design:type",Boolean)],c0.prototype,"modernButtons",void 0);_.r([_.E(),_.Z("design:type",Object)],c0.prototype,"notificationData",void 0);_.r([_.K("ariaLabel, selected"),_.E(),_.Z("design:type",String),_.Z("design:paramtypes",[])],c0.prototype,"computedAriaLabel",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],c0.prototype,"dataChanged_",null);
_.r([_.R_("paper-dropdown-open"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],c0.prototype,"onDropdownOpen",null);_.r([_.R_("iron-activate"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],c0.prototype,"onIronActivate_",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],c0.prototype,"onTap_",null);
_.r([_.R_("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],c0.prototype,"onMenuClose_",null);c0=_.r([_.fJ({is:"yt-dropdown-menu",disableElementRegistration:!0})],c0);
_.F(c0,"yt-dropdown-menu",function(){if(e8o===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;VdR===void 0&&(VdR=document.createElement("template"));var e=VdR;V.call(R,e.content.cloneNode(!0),B.content.firstChild);e8o=B}B=e8o;return B},{mode:2});var A5=function(){var B=_.c.apply(this,arguments)||this;B.hasNotification=!1;return B};
_.l(A5,_.c);A5.prototype.computeId=function(B){return B};
A5.prototype.computeHorizontalAlign=function(B){return B?"right":"left"};
A5.prototype.computeAccessibilityLabel=function(B){var R,V;return((R=B.accessibility)==null?void 0:(V=R.accessibilityData)==null?void 0:V.label)||null};
A5.prototype.notificationDataChanged=function(){var B;this.hasNotification=!!this.notificationData&&!((B=this.data)==null?0:B.icon)};
A5.prototype.notificationDataChanged=A5.prototype.notificationDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.wM.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],A5.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],A5.prototype,"data",void 0);_.r([_.E({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",String)],A5.prototype,"id",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],A5.prototype,"isRightAligned",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],A5.prototype,"disabled",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],A5.prototype,"closeOnActivate",void 0);_.r([_.E(),_.Z("design:type",Object)],A5.prototype,"notificationData",void 0);_.r([_.E(),_.Z("design:type",Object)],A5.prototype,"hasNotification",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],A5.prototype,"useComputedAriaLabel",void 0);_.r([_.XX("notificationData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],A5.prototype,"notificationDataChanged",null);A5=_.r([_.fJ({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],A5);
_.F(A5,"yt-sort-filter-sub-menu-renderer",function(){if(R84===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;BNG===void 0&&(BNG=document.createElement("template"));var e=BNG;V.call(R,e.content.cloneNode(!0),B.content.firstChild);R84=B}B=R84;return B},{mode:2});_.oA(S3K);
var XVS=_.sx(function(B){var R=B.children;var V=B.className;var e=B.style;var X=B.role;var Y=B.ariaSelected;var t=B.ariaLabel;var b=B.ariaHidden;var J=B.ariaLabelledby;var G=B.ariaDescribedby;var y=B.command;var S=B.elementsCommand;var M=B.forceNewState;var f=B.tabIdentifier;var z=B.target;var T=B.tabIndex;var L=B.stopPropagation;B=_.NW(function(){var Q=_.T2({innertubeCommand:y==null?void 0:y(),elementsCommand:S==null?void 0:S(),forceNewState:M==null?void 0:M(),stopPropagation:(L==null?void 0:L())!==
!1});Q||(Q={});Q["aria-hidden$"]=b==null?void 0:b();var q;Q.tabindex$=(q=T==null?void 0:T())!=null?q:Q.tabindex$;var m;Q["force-new-state$"]=(m=M==null?void 0:M())!=null?m:Q["force-new-state$"];var g;Q.role$=(g=X==null?void 0:X())!=null?g:Q.role$;var Vu;Q["aria-hidden$"]=(Vu=b==null?void 0:b())!=null?Vu:Q["aria-hidden$"];var n;Q.target$=(n=z==null?void 0:z())!=null?n:Q.target$;return Q},void 0,"SU0Mnc");
return _.N(_.SQ,{aTagConfig:B,className:V,style:e,ariaLabel:t,ariaLabelledby:J,ariaDescribedby:G,ariaSelected:Y,tabIdentifier:f},R)},"ha");var HH_=_.k("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",pVl=_.h3(Mdu);_.oA(Mdu);_.mR(pVl,"place-data-view-model",{props:{data:_.qq}});var Y34=new _.u0("INLINE_PLAYBACK_HOOK_TOKEN");var IBY=function(B){this.setActiveSlideIndex=B;this.jobIds=[];this.isSlideshowPlaying=!1},QvA=function(B){if(B.isSlideshowPlaying){B.isSlideshowPlaying=!1;
for(var R=B.jobIds,V=0,e=R.length;V<e;V++)_.dV.cancelJob(R[V]);B.jobIds.length=0}},EuZ=function(B,R){B.isSlideshowPlaying||(B.isSlideshowPlaying=!0,h8l(B),tdv(B,R,0))},h8l=function(B){_.ua(_.dV,function(){B.setActiveSlideIndex(0)},1)},tdv=function(B,R,V){B.jobIds.push(_.ua(_.dV,function(){var e=V<R-1?V+1:0;
B.setActiveSlideIndex(e);tdv(B,R,e)},1800))};var dwZ=new _.u0("IMAGE_ON_LOAD_HANDLER_TOKEN");var WwS=_.sx(function(B){return _.N("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.N(_.H,{cond:function(){var R;return(R=B.data())==null?void 0:R.thumbnail},
then:function(R){return _.N(_.ia,{data:R,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.i2=_.sx(function(B){var R=B.data;var V=B.lockupExperiments;B={};return _.N("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.N("div",{class:_.XE("ytThumbnailOverlayButtonViewModelButton",(B.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var e;return V&&((e=V())==null?void 0:e.useLegacySizedIconButton)},B))},_.N(_.wb,{data:function(){return R().overlayButton}},{buttonViewModel:function(e){return _.N(_.qo,{data:e.data,
buttonOverrides:function(){var X;return V&&((X=V())==null?0:X.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.i2.idomCompat=!0;var bHh=_.sx(function(B){var R=_.Wr(function(V){V.preventDefault();return!1});
return _.N("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":R},_.N(_.wb,{data:function(){return B.data().buttons}},{toggleButtonViewModel:function(V){return _.N("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.N(_.LO,{data:V.data}))}}))},"ka");
bHh.idomCompat=!0;var Jgo=_.sx(function(B){var R=function(){var V;return((V=_.D(B.data().rendererContext,_.mJ))==null?void 0:V.label)||""};
return _.N("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.N(_.H,{cond:function(){return B.data().image},
then:function(){return _.N("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.N(_.ia,{data:function(){return B.data().image},
alt:R}))}}),_.N(_.H,{cond:function(){return B.data().text},
then:function(){return _.N("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return B.data().text})}}))},"la");var TN5=_.ll({thumbnailOverlayTitleViewModel:DM4,thumbnailOverlayBadgeViewModel:l_2,thumbnailBottomOverlayViewModel:UMo,thumbnailOverlayFullViewModel:Jgo,thumbnailOverlayButtonViewModel:_.i2}),xwd=_.ll({thumbnailHoverOverlayViewModel:GUS,thumbnailHoverOverlayToggleActionsViewModel:bHh}),Lwd=_.ll({animatedThumbnailOverlayViewModel:WwS});_.oA(vuN);var jvl,UwG;jvl=_.sx(function(B){var R=[],V=function(){var M,f;return m3((M=B.width)==null?void 0:M.call(B),(f=B.height)==null?void 0:f.call(B))},e=_.Oz().resolve(_.uj(dwZ)),X=_.Zh(function(){R.push("elRef.value set");
var M;(M=B.playbackRef)==null||M.call(B,{thumbnailElRef:X,thumbnail:B.data().image,thumbnailOverlays:B.data().overlays,thumbnailSize:V()})});
_.zM(function(){R.push("onInit");_.aK(function(){R.push("onCleanup")})});
var Y=_.w1(Dwq),t=function(){var M,f;return(f=(M=B.aspectRatio)==null?void 0:M.call(B))!=null?f:0},b=function(){return(B.data().image?_.awI(B.data().image):t())<=1&&t()===0},J=function(){return b()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},G=function(){X.value||_.KE(new _.H8("Thumbnail elRef.value is null",R.join("\n")));
e&&X.value&&e(X.value)},y=function(){var M,f;
return((M=B.hovered)==null?void 0:M.call(B))&&V()!=="large"&&((f=B.data().overlays)==null?void 0:f.some(function(z){return _.D(z,wVd)}))},S={};
return _.N("yt-thumbnail-view-model",{class:_.XE("yt-thumbnail-view-model",B.className,function(){return KwS(t())},function(){var M,f;
a:{var z=V(),T=(M=B.disableRounding)==null?void 0:M.call(B);M=(f=B.isClip)==null?void 0:f.call(B);if(!T&&!M)switch(z){case "large":f="yt-thumbnail-view-model--large";break a;case "small":f="yt-thumbnail-view-model--small";break a;default:f="yt-thumbnail-view-model--medium";break a}f=void 0}return f},(S["yt-thumbnail-view-model--cinematic"]=b,S)),
style:_.jQ({"background-color":function(){var M,f=b()?(M=B.data().backgroundColor)==null?void 0:M.lightTheme:void 0;return f?aG(f,"1"):void 0}}),
el:X},_.N(_.H,{cond:b,then:function(){return _.N("div",{class:"yt-thumbnail-view-model__blurred-image"},_.N(_.ia,{data:function(){return B.data().image},
alt:"",contentMode:J,targetWidth:B.width,onload:G}))}}),_.N("div",{class:"yt-thumbnail-view-model__image"},_.N(_.ia,{data:function(){return B.data().image},
alt:"",contentMode:J,targetWidth:B.width,onload:G}),null),_.N(_.wb,{data:function(){return y()?void 0:B.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:f__,thumbnailOverlayBadgeViewModel:function(M){return _.N(l_2,{data:M.data,thumbnailSize:V,isClip:B.isClip})},
thumbnailBottomOverlayViewModel:UMo,thumbnailOverlayFullViewModel:Jgo,thumbnailOverlayButtonViewModel:function(M){return _.N(_.i2,{data:M.data,lockupExperiments:B.lockupExperiments})}}),_.N(_.wb,{data:function(){var M;
return((M=B.hovered)==null?0:M.call(B))?B.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(M){return _.N(y1a,{data:M.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:bHh}),_.N(_.wb,{data:function(){var M;return((M=B.hovered)==null?0:M.call(B))&&Y()?B.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:WwS}),_.N(_.H,{cond:B.isClip,then:function(){return z8d()}}))},"ma");
UwG=_.k("web_enable_sink_lockups_batch")?jvl:vuN;_.sL=_.k("web_enable_sink_lockups_batch")?jvl:_.h3(UwG,{callbacks:{playbackRef:!0}});jvl.idomCompat={callbacks:{playbackRef:!0}};var q3d=_.ll({thumbnailViewModel:UwG});_.oA(cgp);var NNo=_.sx(function(B){var R=_.h(_.WU(-1,void 0,"GEkecf")),V=R.next().value,e=R.next().value;_.zM(function(){var X=new IBY(e);EuZ(X,B.data().thumbnails.length);_.aK(function(){QvA(X)})});
return _.N("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.N(_.wb,{data:function(){return B.data().thumbnails}},{thumbnailViewModel:function(X,Y){return _.N("div",{class:function(){var t=!B.data().primaryThumbnail,b=Y(),J=V(),G=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
t&&b===0&&G.push("yt-collection-thumbnail-slideshow--first-slide");b<=J&&G.push("yt-collection-thumbnail-slideshow--show-slide");return G.join(" ")}},_.N(_.sL,{data:X.data,
disableRounding:B.disableRounding}))}}))},"na"),rgq=_.k("web_enable_sink_lockups_batch")?NNo:cgp,GNa=_.k("web_enable_sink_lockups_batch")?NNo:_.h3(cgp);
NNo.idomCompat=!0;var Ag5=new _.u0("DWELL_DETECTOR_REGISTRY_TOKEN");var Fwq=_.ll({thumbnailViewModel:UwG});_.oA(gu5);var S3S=_.sx(function(B){var R=svd(B.triggeringElement),V=function(){return!!B.data().primaryThumbnail};
return _.N("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.N(ygo,{stackEnabled:V,thumbnailSize:function(){var e,X;return m3((e=B.width)==null?void 0:e.call(B),(X=B.height)==null?void 0:X.call(B))},
doubleStack:B.doubleStack,stackColor:function(){return B.data().stackColor}},_.N("div",null,_.N(_.wb,{data:function(){return B.data().primaryThumbnail}},{thumbnailViewModel:function(e){var X={};
return _.N(_.sL,{data:e.data,width:B.width,height:B.height,aspectRatio:B.aspectRatio,disableRounding:B.disableRounding,className:_.XE((X["yt-collection-thumbnail-view-model--has-stacks"]=V,X)),hovered:B.hovered,playbackRef:B.playbackRef})}}),_.N(_.H,{cond:function(){var e;
return R()&&((e=B.data().thumbnails)==null?void 0:e.length)},
then:function(){return _.N("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.N(GNa,{data:B.data,disableRounding:function(){return!V()}}))}}))))},"oa"),HHG=_.k("web_enable_sink_lockups_batch")?S3S:_.h3(gu5,{callbacks:{playbackRef:!0}});
S3S.idomCompat={callbacks:{playbackRef:!0}};
var ygo=_.sx(function(B){var R=B.children;var V=B.stackEnabled;var e=B.thumbnailSize;var X=B.doubleStack;var Y=B.stackColor;var t,b=(t=_.Oz().resolve(_.uj(_.E5)))==null?void 0:t();return _.N(_.H,{cond:V,then:function(){return _.N(rc5,{data:function(){var J,G;return{experimentEnabled:!0,thumbnailSize:e(),doubleStack:X==null?void 0:X(),color:b?Y==null?void 0:(J=Y())==null?void 0:J.darkTheme:Y==null?void 0:(G=Y())==null?void 0:G.lightTheme,enableResponsiveMode:!1}}},R)},
else:function(){return R}})},"pa");var Mdv=new _.u0("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var ro;_.FP={calledOnce:!0,state:"visible"};ro={calledOnce:!0,state:"hidden"};_.go=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;var e=B.className;var X=B.delayedClassName;B=B.animationEntityKey;var Y=_.Zh(),t=_.AM(B,""),b=_.No(F9q,t),J=function(){var n,Yd;return(Yd=(n=b())==null?void 0:n.value)!=null?Yd:!1},G=function(){_.cc(_.SX("booleanEntity",t(),{key:t(),
value:!0}));Q=void 0};
B=_.h(_.J3(J));var y=B.next().value,S=B.next().value;B=_.h(_.J3(J));var M=B.next().value,f=B.next().value;B=_.h(_.J3(function(){var n;return J()?(n=R().styleTransitionConfig)==null?void 0:n.destinationStyle:void 0}));
var z=B.next().value,T=B.next().value,L=function(){var n=Object.assign({},R(),z()&&{style:z()}),Yd,kd,a5=n.label,lo=(Yd=n.interaction)==null?void 0:(kd=Yd.accessibility)==null?void 0:kd.label;Yd=n.iconImage?n.label&&n.label.content?n.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:a5,accessibilityLabel:lo,style:CUd(n.style),type:PUA(n.style),state:"active",size:$wu(n.size),iconPosition:Yd,disabled:!1,aTagConfig:mwx(n,V)}},Q;
_.Od(Y,{visibilityCallback:function(n){var Yd,kd=(Yd=R().interaction)==null?void 0:Yd.onFirstVisible;n&&kd&&_.Lc(kd)},
showOption:_.FP});var q=function(){return Nx(L(),!!R().iconImage)};
e=_.XE(function(){return"ytwAdButtonViewModelHost"},function(){return R().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var n=!!R().delayedAppearanceConfig,Yd=y();
return n?Yd?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var n=!!R().delayedAppearanceConfig,Yd=M();
return n?Yd?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!R().delayedAppearanceConfig||y()?X==null?void 0:X():""},e!=null?e:"");
var m=function(){var n,Yd=(n=R().delayedAppearanceConfig)==null?void 0:n.delayedInvisibleSeconds;Yd&&(Q=_.kx(_.dV,function(){S(!0);g()},Yd*1E3))},g=function(){var n,Yd=(n=R().delayedAppearanceConfig)==null?void 0:n.delayedVisibleSeconds;
Yd&&(Q=_.kx(_.dV,function(){f(!0);Vu()},Yd*1E3))},Vu=function(){var n,Yd=(n=R().styleTransitionConfig)==null?void 0:n.styleTransitionSeconds,kd,a5=(kd=R().styleTransitionConfig)==null?void 0:kd.destinationStyle;
Yd&&a5?Q=_.kx(_.dV,function(){T(a5);G()},Yd*1E3):G()};
_.zM(function(){var n;((n=R().delayedAppearanceConfig)==null?0:n.transitionDurationSeconds)&&Y.value.style.setProperty("transition-duration",R().delayedAppearanceConfig.transitionDurationSeconds+"s");m()});
_.aK(function(){Q&&_.dV.cancelJob(Q)});
return _.N("ad-button-view-model",{class:e,el:Y},_.N(_.H,{cond:L,then:function(){return _.N(BI,{data:L,icon:function(){return _.N(_.H,{cond:function(){return R().iconImage},
then:function(n){return _.N(_.ia,{data:n,alt:"",targetWidth:q,targetHeight:q,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var kNv=_.sx(function(B){var R=B.data;B=_.Zh();_.Od(B,{visibilityCallback:function(V){var e,X=(e=R().interaction)==null?void 0:e.onFirstVisible;V&&X&&_.Lc(X)},
showOption:_.FP});return _.N("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:B},_.N("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.N(_.wb,{data:function(){return R().secondaryAdButton}},{adButtonViewModel:function(V){return _.N(_.go,{data:V.data})}})),_.N("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.N(_.wb,{data:function(){return R().primaryAdButton}},{adButtonViewModel:function(V){return _.N(_.go,{data:V.data})}})))},"ra");var DwJ=_.sx(function(B){var R=function(){var V;return((V=B.data())==null?void 0:V.answers)||[]};
return _.N("yt-survey-icons",{class:"ytSurveyIconsHost"},_.N("div",{class:"ytSurveyIconsHeader"},_.N("div",{class:"ytSurveyIconsTitle"},function(){var V;return(V=B.data())==null?void 0:V.text}),_.N("div",null,_.N(BI,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var V;(V=B.onDismiss)==null||V.call(B)}}},
iconName:"DISMISSAL"}))),_.N("div",null,_.N("div",{class:"ytSurveyIconsAnswers"},_.N(_.yh,{each:function(){return R()},
keyBy:"INDEX"},function(V,e){return _.N("div",null,_.N(BI,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var X;(X=B.onSelect)==null||X.call(B,V(),e)}}},
icon:function(){return _.N(_.Us,{icon:function(){var X,Y;return(X=V())==null?void 0:(Y=X.icon)==null?void 0:Y.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.N("div",{class:"ytSurveyIconsAnswersText"},_.N("div",null,function(){return R().length?R()[0].text:""}),_.N("div",null,function(){return R().length?R()[R().length-1].text:""}))))},"sa");var fBJ=_.sx(function(B){var R=_.h(_.WU(!1,void 0,"s8HkOb")),V=R.next().value,e=R.next().value,X=_.No(h9d,function(){var b;return(b=B.data().keys)==null?void 0:b.surveyEntityKey}),Y=_.No(twN,function(){var b;
return(b=B.data().keys)==null?void 0:b.surveyStateEntityKey});
_.gn("ytd-slimline-survey-show-action",function(){e(!1)});
var t=function(){var b,J;var G=(b=Y())==null?void 0:(J=b.questionStack)==null?void 0:J[0];if(G!==void 0){var y,S;return(y=X())==null?void 0:(S=y.questions)==null?void 0:S[G]}};
R={};return _.N("yt-slimline-survey-view-model",{class:_.XE("ytSlimlineSurveyViewModelHost",(R.ytSlimlineSurveyViewModelCollapsed=function(){return V()},R))},_.N("div",{class:"ytSlimlineSurveyViewModelContainer"},_.N(_.H,{cond:function(){var b;
return((b=t())==null?void 0:b.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.N(DwJ,{data:function(){return t()},
onSelect:function(b,J){var G,y;return _.W(function(S){e(!0);if(y=(G=B.data())==null?void 0:G.onSelectRating)_.Lc(y),_.cc(QfS(J));_.b3(S)})},
onDismiss:function(){e(!0)}})}})))},"ta");var lB4=_.sx(function(B){return _.N("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.N(_.wb,{data:function(){var R;return(R=B.data())==null?void 0:R.attachments}},{flexibleActionsViewModel:function(R){return _.N("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.N(Va_,{data:R.data,
layout:function(){var V;return((V=B.lockupStyle())==null?void 0:V.arrangement)===1?0:1},
justifyContentOverride:function(){var V;return((V=B.lockupStyle())==null?void 0:V.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(R){return _.N("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.N(fBJ,{data:R.data}))},
expandableMetadataViewModel:function(R){R=R.data;var V;return _.N("div",{class:"ytLockupAttachmentsViewModelAttachment"},(V=_.Oz().resolve(_.uj(Mdv)))==null?void 0:V({data:R}))},
adButtonGroupViewModel:function(R){return _.N("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.N(kNv,{data:R.data}))}}))},"ua");var RRx=_.RC("rich_grid_min_item_width",310),oKY=_.RC("rich_grid_max_item_width",500);var ULd=_.sx(function(B){var R=B.data;return _.N("br-nz-badge-shape",{class:_.XE(function(){return Wjd(R().brNzRatingBadgeType)}),
role:function(){return R().accessibilityText?"img":void 0},
"aria-label":function(){return R().accessibilityText}},function(){var V;
return(V=R())==null?void 0:V.text})},"va");_.oA(N8d);var z85,YPN;z85=_.sx(function(B){var R=function(){var V=B.data(),e,X;return V?jtY(V,!((e=B.workaroundShortsIsThumbnailBadge)==null||!e.call(B)),(X=B.modern)==null?void 0:X.call(B)):void 0};
return _.N("yt-badge-view-model",{class:_.XE("yt-badge-view-model-wiz",B.class)},_.N(_.MN,null,_.N(_.Sv,{when:function(){var V;return!((V=R())==null||!V.brNzRatingBadgeType)}},function(){return _.N(ULd,{data:function(){return R()}})}),_.N(_.Sv,{when:function(){return!!R()&&!R().brNzRatingBadgeType}},function(){return _.N(_.ul,{data:function(){return R()}})})))},"wa");
YPN=_.k("web_enable_sink_yt_badge_view_model")?z85:N8d;_.Za=_.k("web_enable_sink_yt_badge_view_model")?z85:_.h3(N8d);z85.idomCompat=!0;var yCp,Gdd;yCp=16/9;Gdd=2/3;_.mZ=_.sx(function(B){var R=B.data;var V=B.className;var e=B.imageSizeConfig;var X=B.notifyOnLoaded;B=_.Zh();var Y=function(){return R().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},t=function(){var y;
return _.rb((y=R())==null?void 0:y.rendererContext)},b={};
b=(b["yt-content-preview-image-view-model-wiz"]=!0,b["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return Y()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},b["yt-content-preview-image-view-model-wiz--tappable"]=function(){return t()},b);
var J=function(){var y,S;return(S=(y=_.D(R().rendererContext,_.mJ))==null?void 0:y.label)!=null?S:""},G=function(){return HMZ(R())};
_.gb(B,function(){var y;return(y=R())==null?void 0:y.rendererContext});
return _.N("yt-content-preview-image-view-model",{el:B,role:function(){return t()?"link":void 0},
tabindex:function(){return t()?0:void 0},
class:_.XE(V,b,function(){var y=Y();var S=e==null?void 0:e();y=y==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||y==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||y==="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 y}),
style:function(){return Svd(Y(),R().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",e==null?void 0:e(),M7Z(G()),R().layoutWidth,R().layoutHeight)}},_.N(_.H,{cond:G,
then:function(y){return _.N(_.ia,{data:y,alt:J,"data-disabled$":function(){return!J()},
notifyOnLoaded:X})}}),_.N(_.wb,{data:function(){var y;
return(y=R())==null?void 0:y.overlays}},{thumbnailHoverOverlayViewModel:y1a,
thumbnailOverlayButtonViewModel:_.i2}))},"xa");
_.mZ.idomCompat=!0;var $g=_.sx(function(B){var R=B.data;var V=B.className;var e=B.useSmallLayout;var X=B.useMediumText;B=_.Zh();var Y={};X=(Y["yt-attribution-view-model-wiz"]=!0,Y["yt-attribution-view-model-wiz--medium-text"]=X,Y);_.gb(B,function(){var t;return(t=R())==null?void 0:t.rendererContext});
return _.N("yt-attribution-view-model",{el:B,class:_.XE(V,X)},_.N(_.H,{cond:function(){return _.rb(R().rendererContext)},
then:function(){return _.N("button",{class:"yt-attribution-view-model-wiz--tappable"},_.N(aBb,{data:R,useSmallLayout:e}))},
else:function(){return _.N(aBb,{data:R,useSmallLayout:e})}}))},"ya"),aBb=_.sx(function(B){var R=B.data;
var V=B.useSmallLayout;var e=function(){return{size:(V==null?0:V())?16:24}};
return _.N(_.OZ,null,_.N(_.wb,{data:function(){return R().contentPreviewImage}},{contentPreviewImageViewModel:function(X){return _.N(_.mZ,{data:X.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:e})}}),_.N(_.wb,{data:function(){return R().badge}},{badgeViewModel:function(X){return _.N(_.Za,{data:X.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.N(_.H,{cond:function(){return R().text},
then:function(){return _.N(_.Hr,{text:function(){return R().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.N(_.H,{cond:function(){return R().suffix},
then:function(){return _.N(_.Hr,{text:function(){return R().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
$g.idomCompat=!0;var dLA=_.ll({avatarStackViewModel:_.H0,badgeViewModel:YPN});_.oA(xLZ);var dwR,wV2,TN4,xw5,Lw2,vul,Kwo;dwR=_.sx(function(B){var R=B.delimiter;var V=B.max;var e=B.index;var X=B.isStandalone;return _.N(_.H,{cond:function(){return V()-1>e()},
then:function(){var Y={};return _.N("span",{class:_.XE("yt-content-metadata-view-model-wiz__delimiter",(Y["yt-content-metadata-view-model-wiz__delimiter--standalone"]=X,Y)),"aria-hidden":!0},R)}})},"Aa");
wV2=_.sx(function(B){var R=B.metadataPart;var V=B.maxLines;return _.N(_.Hr,{text:function(){return R().text},
linkInheritColor:!0,className:function(){return Ljq(V())},
userInput:!0})},"Ba");
TN4=_.sx(function(B){var R=B.metadataPart;var V=B.maxLines;return _.N(_.H,{cond:function(){return R().tooltip},
then:function(e){return _.N("span",{title:e,role:"tooltip"},_.N(wV2,{metadataPart:R,maxLines:V}))},
else:function(){return _.N(wV2,{metadataPart:R,maxLines:V})}})},"Ca");
xw5=_.sx(function(B){var R=B.metadataPart;var V=B.isOverlay;var e=B.useMediumText;var X=B.hideAvatar;var Y=function(){return R().maxLines!==void 0?R().maxLines:1};
return _.N(_.OZ,null,_.N(_.wb,{data:function(){return R().avatarStack}},{avatarStackViewModel:function(t){return _.N(_.H0,{data:t.data,
isOverlay:V,useMediumText:e,hideAvatar:X})},
badgeViewModel:_.Za}),_.N(_.H,{cond:function(){return R().text},
then:function(){return _.N(TN4,{metadataPart:R,maxLines:Y})}}))},"Da");
Lw2=_.sx(function(B){var R=B.metadataRow;var V=B.isInline;var e=B.delimiter;var X=B.isOverlay;var Y=B.useMediumText;var t=B.extensions;var b=function(){var G;return DL_(t==null?void 0:(G=t())==null?void 0:G.lockupMetadata,R())},J=function(){return R().metadataParts||[]};
B={};return _.N("div",{class:_.XE("yt-content-metadata-view-model-wiz__metadata-row",(B["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=V,B["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var G;return fLN(t==null?void 0:(G=t())==null?void 0:G.lockupMetadata,R())},B["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var G;
return!!(t==null?0:(G=t())==null?0:G.lockupMetadata)&&R().badges},B))},_.N(_.wb,{data:function(){return R().badges}},{badgeViewModel:function(G){return _.N("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.N(_.Za,{data:G.data}))}}),_.N(_.yh,{each:J},function(G,y){return _.N(_.OZ,null,_.N(xw5,{metadataPart:G,
isOverlay:X,useMediumText:Y,hideAvatar:b}),_.N(dwR,{delimiter:e,max:function(){return J().length},
index:y,isStandalone:!1}))}),_.N(_.H,{cond:function(){return R().isSpacerRow&&!V()},
then:function(){return _.N("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
vul=_.sx(function(B){var R=_.ip(B,{layout:0,isOverlay:!1});B=R.className;var V=R.data,e=R.layout,X=R.isOverlay,Y=R.useMediumText,t=R.extensions;R=_.Zh();var b=function(){return e()===0};
_.gb(R,function(){return V().rendererContext});
var J=function(){return V().metadataRows||[]},G={};
return _.N("yt-content-metadata-view-model",{class:_.XE(B,"yt-content-metadata-view-model-wiz",(G["yt-content-metadata-view-model-wiz--inline"]=b,G["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.rb(V().rendererContext)},G["yt-content-metadata-view-model-wiz--medium-text"]=Y,G)),
el:R},_.N(_.yh,{each:J},function(y,S){return _.N(_.OZ,null,_.N(Lw2,{metadataRow:y,isInline:b,delimiter:function(){return V().delimiter},
isOverlay:X,useMediumText:Y,extensions:t}),_.N(_.H,{cond:function(){return b()&&!y.isSpacerRow},
then:function(){return _.N(dwR,{delimiter:function(){return V().delimiter},
max:function(){return J().length},
index:S,isStandalone:!0})}}))}))},"Fa");
Kwo=_.k("web_enable_sink_yt_content_metadata_view_model")?vul:xLZ;_.IBT=_.k("web_enable_sink_yt_content_metadata_view_model")?vul:_.h3(xLZ);vul.idomCompat=!0;var ILY=_.ll({avatarViewModel:_.TP,decoratedAvatarViewModel:_.S_,avatarStackViewModel:_.H0,contentMetadataViewModel:Kwo,buttonViewModel:_.qo,attributionViewModel:$g});_.oA(EK5);var EuR=_.sx(function(B){var R={};return _.N("yt-lockup-metadata-view-model",{class:_.XE("yt-lockup-metadata-view-model-wiz",function(){a:{var V=B.lockupStyle();if(V==null?0:V.isOverlay)V="yt-lockup-metadata-view-model-wiz--overlay";else switch(V==null?void 0:V.arrangement){case 1:V="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:V="yt-lockup-metadata-view-model-wiz--vertical"}}return V},function(){a:{var V=B.lockupStyle();
if(V==null?0:V.isTiny)V="yt-lockup-metadata-view-model-wiz--tiny";else switch(V==null?void 0:V.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":V="yt-lockup-metadata-view-model-wiz--compact";break a;default:V="yt-lockup-metadata-view-model-wiz--standard"}}return V},(R["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var V;
return(V=B.lockupStyle())==null?void 0:V.isOverlay},R["yt-lockup-metadata-view-model-wiz--card"]=function(){var V;
return(V=B.lockupStyle())==null?void 0:V.isCard},R["yt-lockup-metadata-view-model-wiz--centered"]=function(){var V;
return(V=B.lockupStyle())==null?void 0:V.isCentered},R["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var V;
return(V=B.lockupStyle())==null?void 0:V.typographyBump},R["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var V;
return(V=B.lockupStyle())==null?void 0:V.useLegacyTypography},R["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var V;
return(V=B.lockupStyle())==null?void 0:V.useRichGridLegacyTypography},R))},_.N(_.wb,{data:function(){return B.data().image}},{avatarStackViewModel:function(V){return _.N("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.N(_.H0,{data:V.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(V){return _.N("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.N(_.TP,{data:V.data}))},
decoratedAvatarViewModel:function(V){return _.N("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.N(_.S_,{data:V.data}))}}),_.N("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.N("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var V;return(V=B.data().title)==null?void 0:V.content}},_.N(_.H,{cond:function(){return B.data().title},
then:function(V){return _.N(_.SQ,{command:B.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:B.lockupAccessibilityLabel},_.N(_.Hr,{text:V}))}})),_.N("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.N(_.wb,{data:function(){return B.data().metadata}},{contentMetadataViewModel:function(V){return _.N(_.IBT,{data:V.data,
layout:1,useMediumText:function(){var e,X;return((e=B.lockupStyle())==null?void 0:e.typographyBump)||((X=B.lockupStyle())==null?void 0:X.useRichGridLegacyTypography)},
extensions:function(){var e,X;return{lockupMetadata:{byline:{hideAvatar:((e=B.lockupStyle())==null?void 0:e.arrangement)===0,addPadding:((X=B.lockupStyle())==null?void 0:X.arrangement)===1}}}}})}})),_.N(_.wb,{data:function(){return B.data().attribution}},{attributionViewModel:function(V){return _.N("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.N($g,{data:V.data,
useSmallLayout:!0}))}})),_.N("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.N(_.wb,{data:function(){return B.data().menuButton}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
buttonOverrides:function(){var e;return((e=B.lockupStyle())==null?0:e.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga"),Qvh=_.k("web_enable_sink_lockups_batch")?EuR:_.h3(EK5);
EuR.idomCompat=!0;var q32=_.sx(function(B){var R=_.Zh();_.fQ(function(){requestAnimationFrame(function(){_.Zt(R.value)})});
var V={},e={},X={};return _.N("notification-multi-action-renderer",{class:_.XE("ytNotificationMultiActionRendererHost",(V.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var Y;return(Y=B.useLegacyShelfStyle)==null?void 0:Y.call(B)},V)),
el:R},_.N("span",{"aria-live":"polite",class:_.XE("ytNotificationMultiActionRendererTextContainer",(e.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var Y;return(Y=B.useLegacyShelfStyle)==null?void 0:Y.call(B)},e))},_.N(_.Hr,{text:function(){return B.data().responseText}})),_.N("div",{class:_.XE("ytNotificationMultiActionRendererButtonContainer",(X.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var Y;
return(Y=B.useLegacyShelfStyle)==null?void 0:Y.call(B)},X))},_.N(_.wb,{data:function(){var Y;
return(Y=B.data().buttons)==null?void 0:Y.map(function(t){if(t=t.buttonRenderer){var b,J=Object,G=J.assign,y=(b=t.icon)==null?void 0:b.iconType;b=(b=t.command||t.serviceEndpoint||t.navigationEndpoint)?{innertubeCommand:b}:void 0;t={buttonViewModel:G.call(J,{},{iconName:y,onTap:b,trackingParams:t.trackingParams,titleFormatted:t.text?_.fc(t.text):void 0},Qt_(t))}}else t=void 0;return t}).filter(function(t){return!!t})}},{buttonViewModel:function(Y,t){return _.N("div",null,_.N(_.qo,{data:Y.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var b;return((b=B.useModernStyles)==null?0:b.call(B))?{type:t()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var cga=_.sx(function(B){var R=_.Zh();_.fQ(function(){requestAnimationFrame(function(){_.Zt(R.value)})});
return _.N("notification-text-renderer",{el:R,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.N(_.Hr,{text:function(){return B.data().successResponseText}}))},"Ia");_.Ag4=_.sx(function(B){var R=_.No(sZo,function(){var e;return qv5((e=B.contentId)==null?void 0:e.call(B))}),V=function(){var e;
return _.D((e=R())==null?void 0:e.command,_.ki)};
return _.N(_.H,{cond:function(){var e;if(!(e=V())){var X;e=_.D((X=R())==null?void 0:X.command,ko4)}return e},
then:function(){return _.N(_.H,{cond:V,then:function(){var e={};return _.N("div",{class:_.XE("ytDismissibleItemReplacedContent",function(){var X;return cCI((X=B.aspectRatio)==null?void 0:X.call(B))})},_.N("div",{class:_.XE((e.ytDismissibleItemAspectRatioContainer=function(){var X;
return((X=B.aspectRatio)==null?void 0:X.call(B))!==void 0},e))},_.N(_.wb,{data:function(){var X;
return(X=V())==null?void 0:X.item}},{notificationMultiActionRenderer:function(X){return _.N(q32,{data:X.data,
useModernStyles:B.useModernStyle,useLegacyShelfStyle:B.useLegacyShelfStyle})},
notificationTextRenderer:cga})))}})},
else:B.children})},"Ja");_.iHh=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;B=_.mA();var e=function(){var Y;return((Y=R().interaction)==null?0:Y.onTap)?function(t){var b;ZH_(t,(b=R().interaction)==null?void 0:b.onTap,V)}:void 0},X=function(){var Y,t=R(),b=e(),J=(Y=_.D(R().rendererContext,_.mJ))==null?void 0:Y.label;
a:switch(t.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":Y=1;break a;default:Y=0}return{size:sto(t.size),type:Y,onTap:b,accessibilityText:J}};
_.Od(B,{visibilityCallback:function(Y){var t,b=(t=R().interaction)==null?void 0:t.onFirstVisible;Y&&b&&_.Lc(b)},
showOption:_.FP});return _.N("ad-avatar-view-model",{class:function(){var Y;return((Y=R().interaction)==null?0:Y.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:B},_.N(_.H,{cond:function(){return R().image},
then:function(Y){return _.N(Mwa,{data:X,image:Y})}}))},"Ka");_.Cu=_.sx(function(B){B=_.ip(B,{hasDot:!1});var R=Object.assign({},B),V=B.data,e=B.hasDot;B=B.customCommandResolver;var X=(delete R.data,delete R.hasDot,delete R.customCommandResolver,R);R=function(){return V().style};
R!==void 0&&R!==null||_.cE(Error("Dh"));R=_.Zh();_.P7(R,function(){return V().interaction},B);
return _.N("ad-badge-view-model",{class:_.XE(function(){var Y;return((Y=V().interaction)==null?0:Y.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var Y=X.adRenderingContextType();
V();return Y==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:R},_.N(_.ul,{data:function(){var Y;V();return{type:2,text:(Y=V().label)==null?void 0:Y.content,adsIncludeDot:e(),isOverlay:V().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var sv5;_.P0=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;var e=B.adRenderingContextType;B=_.Zh();_.P7(B,function(){return R().interaction},V);
_.Od(B,{visibilityCallback:function(X){var Y,t=(Y=R().interaction)==null?void 0:Y.onFirstVisible;X&&t&&_.Lc(t)},
showOption:_.FP});return _.N("ad-details-line-view-model",{class:function(){var X;return((X=R().interaction)==null?0:X.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:B},_.N(_.H,{cond:function(){return R().style},
then:function(X){return _.N(_.yh,{each:function(){var Y;return((Y=R())==null?void 0:Y.attributes)||[]},
keyBy:"INDEX"},function(Y){return _.N(sv5,{attribute:Y,style:X,adRenderingContextType:function(){return e()}})})}}))},"Ma");
sv5=_.sx(function(B){var R=B.attribute;var V=B.style;var e=B.adRenderingContextType;return _.N(_.H,{cond:function(){return R().text},
then:function(X){return _.N(_.Hr,{text:X,className:function(){var Y=e();V();return Y==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var FwJ=_.sx(function(B){var R=B.data;var V=B.typographyBump;var e=function(){return R().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
B={};return _.N(_.OZ,null,_.N("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.N(_.Hr,{text:function(){return R().headline},
className:_.XE("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(B.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return e==null?void 0:e()},B.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(V==null?void 0:V())&&!(e==null?0:e())},B)),
linkInheritColor:!0}),_.N(_.H,{cond:function(){return R().description},
then:function(X){var Y={};return _.N(_.Hr,{text:X,className:_.XE("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(Y.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return e==null?void 0:e()},Y.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(V==null?void 0:V())&&!(e==null?0:e())},Y)),
linkInheritColor:!0})}}),_.N("div",{class:function(){return e()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.N(_.wb,{data:function(){return R().adBadge}},{adBadgeViewModel:function(X){return _.N(_.Cu,{data:X.data,
hasDot:function(){return!!R().adDetailsLine},
adRenderingContextType:function(){return R().adRenderingContextType}})}}),_.N(_.wb,{data:function(){return R().adDetailsLine}},{adDetailsLineViewModel:function(X){return _.N(_.P0,{data:X.data,
adRenderingContextType:function(){return R().adRenderingContextType}})}}))),_.N("div",{class:function(){return e()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.N(_.wb,{data:function(){return R().menu}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
buttonOverrides:function(){a:switch(R().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var Y="S";break a;default:Y="M"}return{size:Y}}})}})))},"Oa"),rgJ=_.sx(function(B){var R=B.data;
var V=B.noBottomMargin;var e=B.useVideoLockupTopPadding;var X=B.typographyBump;B={};B=_.XE("ytwFeedAdMetadataViewModelHostMetadata",(B.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return V==null?void 0:V()},B.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return e==null?void 0:e()},B));
var Y=function(){return R().adBadge};
Y!==void 0&&Y!==null||_.cE(Error("Eh"));Y={};var t={};return _.N(_.OZ,null,_.N(_.H,{cond:function(){return R().adAvatar},
then:function(){return _.N("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.N(_.wb,{data:function(){return R().adAvatar}},{adAvatarViewModel:function(b){return _.N(_.iHh,{data:b.data})}}))}}),_.N("div",{class:B},_.N("div",{class:_.XE("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(Y.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return X==null?void 0:X()},Y.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(X==
null?void 0:X())&&_.k("web_enable_typography_bump_v2")},Y))},_.N(_.Hr,{text:function(){return R().headline},
linkInheritColor:!0})),_.N(_.H,{cond:function(){return R().description},
then:function(b){return _.N(_.Hr,{text:b,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.N("div",{class:function(){return R().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.k("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.N(_.wb,{data:function(){return R().adBadge}},
{adBadgeViewModel:function(b){return _.N(_.Cu,{data:b.data,
hasDot:function(){return!!R().adDetailsLine},
adRenderingContextType:function(){return R().adRenderingContextType}})}}),_.N(_.wb,{data:function(){return R().adDetailsLine}},{adDetailsLineViewModel:function(b){return _.N(_.P0,{data:b.data,
adRenderingContextType:function(){return R().adRenderingContextType}})}})),_.N(_.H,{cond:function(){return R().secondaryDescription},
then:function(b){return _.N(_.Hr,{text:b,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.N("div",{class:_.XE("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(t.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return e==null?void 0:e()},t))},_.N(_.wb,{data:function(){return R().menu}},{buttonViewModel:_.qo})))},"Pa"),gu4=_.sx(function(B){var R=B.data;
var V=B.noBottomMargin;var e=B.listenToTapEvent;var X=B.setTouchEndHandler;var Y=B.useVideoLockupTopPadding;var t=B.typographyBump;var b=_.Zh();_.P7(b,function(){return R().interaction},void 0,function(){return e==null?void 0:e()});
B=_.h(_.WU(!1,void 0,"v9Bv8e"));var J=B.next().value,G=B.next().value;B=_.Wr(function(){(X==null?0:X())&&!J()&&(b.value.click(),G(!0),setTimeout(function(){G(!1)},100));
return!1});
_.Od(b,{visibilityCallback:function(y){var S,M=(S=R().interaction)==null?void 0:S.onFirstVisible;y&&M&&_.Lc(M)},
showOption:_.FP});return _.N("feed-ad-metadata-view-model",{class:function(){var y;return((y=R().interaction)==null?0:y.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:b,"on:touchend":B},_.N(_.MN,null,_.N(_.Sv,{when:function(){return R().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.N(FwJ,{data:R,
typographyBump:t})}),_.N(_.Sv,{when:function(){return R().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.N(rgJ,{data:R,
noBottomMargin:V,useVideoLockupTopPadding:Y,typographyBump:t})})))},"Qa");var ZHG;_.nu=_.sx(function(B){return _.N("yt-lockup-view-model",{class:_.XE(B.className)},_.N(_.Ag4,{contentId:function(){return B.data().contentId},
useModernStyle:!0,aspectRatio:function(){var R,V;return((R=B.containerType)==null?void 0:R.call(B))!==3?hRu(B.data().contentType,(V=B.force16By9ThumbnailAspectRatio)==null?void 0:V.call(B)):void 0}},function(){return _.N(ZHG,Object.assign({},B))}))},"Ra");
ZHG=_.sx(function(B){B=_.ip(B,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var R=B.data,V=B.containerLayoutConfig,e=B.containerType,X=B.sizing,Y=B.protectBackground,t=B.typographyBump,b=B.force16By9ThumbnailAspectRatio,J=B.thumbnailFixedWidth,G=B.thumbnailTargetWidth,y=B.lockupExperiments,S=B.elementsPerRow;
B=_.Zh();_.gb(B,function(){var vd;return(vd=R())==null?void 0:vd.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var M=_.w1(fBq),f=_.Oz().resolve(_.uj(Y34)),z=f?{}:void 0,T=function(){var vd,cd,ES;return(ES=(cd=_.D((vd=R())==null?void 0:vd.rendererContext,_.mJ))==null?void 0:cd.label)!=null?ES:void 0},L=function(){var vd=V==null?void 0:V(),cd;
if(vd==null?0:vd.containerType){var ES=(cd=R())==null?void 0:cd.contentType;cd=y();var $d=t(),Eo=G(),GG=Y();vd=Object.assign({},t7I(XXp(vd),V7I(vd.responsiveSize),$d,ES,vd.force16By9ThumbnailAspectRatio,Eo,GG,cd),{thumbnailFixedWidth:vd.contentPreviewWidth})}else vd=t7I(e(),X(),t(),(ES=R())==null?void 0:ES.contentType,b(),G(),Y(),y());return vd};
f&&z&&f({enabled:function(){return M()},
itemPlaybackModel:function(){return R().itemPlayback},
thumbnailElRef:function(){return z.thumbnailElRef},
containerElRef:B,options:function(){var vd,cd=(vd=_.D(R().metadata,hV4))==null?void 0:vd.endorsement;vd=z.thumbnailOverlays||[];cd&&vd.push(cd);var ES,$d;return{thumbnail:z.thumbnail,thumbnailOverlays:vd,accessibilityText:T(),thumbnailSize:z.thumbnailSize,enableRounding:L().isCollection,containPlayerWithinThumbnail:L().isCollection,trackingParams:(ES=_.D(R().rendererContext,_.n4Z))==null?void 0:($d=ES.loggingDirectives)==null?void 0:$d.trackingParams}}});
var Q=0;f=_.h(_.WU(!1,void 0,"HzAs3"));var q=f.next().value,m=f.next().value;f=_.h(_.WU(!1,void 0,"ujOXud"));var g=f.next().value,Vu=f.next().value;f=_.Wr(function(){var vd=M()&&R().itemPlayback;g()?(_.dV.cancelJob(Q),Q=_.dV.addJob(function(){m(!vd)},8,32)):m(!vd);
return!0});
var n=_.Wr(function(){Q&&(_.dV.cancelJob(Q),Q=0);m(!1)});
_.aK(function(){Q&&(_.dV.cancelJob(Q),Q=0)});
var Yd=iMo(function(){Vu(!0)}),kd=Yd.touchFeedbackEvents,a5=Yd.touchFeedbackOnPointerUp,lo=Yd.touchFeedbackOnPointerDown;
Yd=Yd.touchFeedbackOnPointerLeave;var io={};return _.N("div",{el:B,class:_.XE("yt-lockup-view-model-wiz",function(){a:{var vd=L();if(vd.isOverlay)vd="yt-lockup-view-model-wiz--overlay";else switch(vd.arrangement){case 1:vd="yt-lockup-view-model-wiz--horizontal";break a;default:vd="yt-lockup-view-model-wiz--vertical"}}return vd},function(){a:{var vd=L();
if(vd.isOverlay)vd="yt-lockup-view-model-wiz--overlay";else{switch(vd.collectionStackNumber){case 1:vd="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:vd="yt-lockup-view-model-wiz--collection-stack-2";break a}vd=void 0}}return vd},(io["yt-lockup-view-model-wiz--card"]=function(){return L().isCard},io["yt-lockup-view-model-wiz--compact"]=function(){return L().isTiny||L().sizing!=="STANDARD"},io["yt-lockup-view-model-wiz--protect-background"]=Y,io["yt-lockup-view-model-wiz--add-margins"]=
function(){return L().addMarginForFullbleed},io["yt-lockup-view-model-wiz--centered"]=function(){return L().isCentered},io["yt-lockup-view-model-wiz--fullbleed"]=function(){return L().fullbleed},io["yt-lockup-view-model-wiz--single-column-grid"]=function(){return S()===1&&e()===2},io["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var vd;
return(vd=y())==null?void 0:vd.useRichGridLegacyMargin},io)),
"on:mousedown":lo,"on:mouseleave":n,"on:mouseup":a5,"on:mouseover":f,"on:touchstart":lo,"on:touchend":a5,"on:pointerleave":Yd},_.N(_.SQ,{command:function(){var vd;return _.Ft((vd=R())==null?void 0:vd.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return J()&&L().arrangement===1?"width: "+J():""}},_.N(_.wb,{data:function(){var vd;
return(vd=R())==null?void 0:vd.contentImage}},{thumbnailViewModel:function(vd){return _.N(_.sL,{data:vd.data,
aspectRatio:function(){return L().aspectRatio},
disableRounding:function(){return L().disableRounding},
width:G,hovered:q,isClip:function(){var cd;return((cd=R())==null?void 0:cd.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:kNu(z),lockupExperiments:function(){return y()}})},
collectionThumbnailViewModel:function(vd){return _.N(HHG,{data:vd.data,aspectRatio:function(){return L().aspectRatio},
disableRounding:function(){return L().disableRounding},
width:G,doubleStack:function(){return L().collectionStackNumber===2},
hovered:q,playbackRef:kNu(z)})},
decoratedAvatarViewModel:_.S_})),_.N("div",{class:"yt-lockup-view-model-wiz__metadata"},_.N(_.wb,{data:function(){var vd;return(vd=R())==null?void 0:vd.metadata}},{lockupMetadataViewModel:function(vd){return _.N(Qvh,{data:vd.data,
lockupStyle:L,lockupCommand:function(){var cd;return _.Ft((cd=R())==null?void 0:cd.rendererContext)},
lockupAccessibilityLabel:function(){return T()}})},
feedAdMetadataViewModel:function(vd){return _.N(gu4,{data:vd.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:t})}}),_.N(_.wb,{data:function(){var vd;
return(vd=R())==null?void 0:vd.attachmentSlot}},{lockupAttachmentsViewModel:function(vd){return _.N(lB4,{data:vd.data,
lockupStyle:L})}})),_.N(_.yK,{model:function(){a:{switch(L().collectionStackNumber){case 1:var vd=8;
break a;case 2:vd=12;break a}vd=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:vd}},
pointerDownEvent:kd.pointerDownEvent,pointerUpEvent:kd.pointerUpEvent,pointerLeaveEvent:kd.pointerLeaveEvent}))},"Sa");
_.nu.idomCompat=!0;_.mR(_.nu,"yt-lockup-view-model",{props:{data:_.qq,containerLayoutConfig:_.qq,containerType:_.qq,sizing:_.qq,protectBackground:_.qq,typographyBump:_.qq,thumbnailFixedWidth:_.qq,thumbnailTargetWidth:_.qq,force16By9ThumbnailAspectRatio:_.qq,className:_.qq,lockupExperiments:_.qq,elementsPerRow:_.qq}});_.oA($L5);var mw4=_.h3($L5,{callbacks:{onExpandClick:!0}});var oMp=_.ll({buttonViewModel:_.qo}),$wv=_.h3(u$x);_.oA(u$x);_.oA(PZp);_.oA(nKY);_.mR($wv,"yt-video-attribute-view-model",{props:{data:_.qq,className:_.qq}});var u2=function(){var B=_.c.apply(this,arguments)||this;B.useHighlightStyling=_.k("web_enable_deeper_metadata_highlight_styling");B.isSearch=!1;B.JSC$12953_lastScrollContainerWidth=NaN;B.pageLoadingFromNavigation=!1;B.currentIndex=0;B.supportComponentResize=!1;return B};
_.l(u2,_.c);_.p=u2.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",_.Bc(this,this.onPageChange))};
_.p.detached=function(){document.removeEventListener("yt-page-type-changed",_.Bc(this,this.onPageChange))};
_.p.getItemsPath=function(){return"data.cards"};
_.p.onIronResize=function(){this.updateListStyles()};
_.p.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var B;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(B=this.data)==null?void 0:B.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.k("problem_walkthrough_sd")&&!!this.centerItems};
_.p.computeCardListStyle=function(B){return B||null};
_.p.computeEmpty=function(B){return!this.get("cards.length",B)};
_.p.computeThumbnailStyle=function(B){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",B)||null};
_.p.computeHasSubtitle=function(B){return!!this.get("header.richListHeaderRenderer.subtitle",B)};
_.p.computeInitialCountNumber=function(B){return this.hasSquareMiniApp&&B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.p.computeUseFloorScrolling=function(B){return B==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.p.computeHasGameCard=function(B){return(B=this.get("cards",B))?B.some(function(R){return R.gameCardRenderer}):!1};
_.p.computeCenterHeaderTitle=function(B){return!(B==null||!B.centerHeaderTitle)};
_.p.computeHasPortraitMiniApp=function(B){return(B=B==null?void 0:B.cards)?B.some(function(R){return R.miniGameCardViewModel&&R.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.p.computeHasSquareMiniApp=function(B){return(B=B==null?void 0:B.cards)?B.some(function(R){return R.miniGameCardViewModel&&R.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.p.computeHasSkinnyWidthPortraitMiniApp=function(B){return(B=B==null?void 0:B.cards)?B.some(function(R){return R.miniGameCardViewModel&&R.miniGameCardViewModel.width===135}):!1};
_.p.computeCenterItems=function(B){return!!B};
_.p.computeHasInfoPanel=function(B){var R;return B==null?void 0:(R=B.cards)==null?void 0:R.some(function(V){return V.infoPanelContentRenderer})};
_.p.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.p.getItemByIndex=function(B){var R=this.items.children;return R&&R.length>B?R[B]:void 0};
_.p.onPageChange=function(){var B=this;this.pageLoadingFromNavigation=!0;_.dV.addJob(function(){B.pageLoadingFromNavigation=!1;_.Bz(B.hostElement,"yt-terminate-video-preview-action")},8)};
_.p.updateListStyles=function(){if(_.k("problem_walkthrough_sd")&&this.JSC$12953_scrollContainer!==void 0){var B=this.JSC$12953_scrollContainer.clientWidth;B!==this.JSC$12953_lastScrollContainerWidth&&(this.JSC$12953_lastScrollContainerWidth=B,_.o_(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(B*.8,415)+"px"}),_.OI(this.hostElement,"iron-resize"))}};
_.mh.Object.defineProperties(u2.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.k("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return _.k("kevlar_modern_sd")&&!!((B=this.data)==null?0:(R=B.cards)==null?0:(V=R[0])==null?0:V.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return!!((B=this.data)==null?0:(R=B.cards)==null?0:(V=R[0])==null?0:V.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return _.k("enable_desktop_amsterdam_info_panels")&&!!((B=this.data)==null?0:(R=B.cards)==null?0:(V=R[0])==null?0:V.infoPanelContentRenderer)}}});
u2.prototype.dataChanged=u2.prototype.dataChanged;u2.prototype.onIronResize=u2.prototype.onIronResize;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Pu.YtdHorizontalListBehavior),_.Z("design:type",Object)],u2.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.v(_.TY),_.Z("design:type",Object)],u2.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],u2.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],u2.prototype,"useCustomColors",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],u2.prototype,"useHighlightStyling",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Z("design:type",Object)],u2.prototype,"cardListStyle",void 0);_.r([_.E({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Z("design:type",Boolean)],u2.prototype,"empty",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Z("design:type",Boolean)],u2.prototype,"hasSubtitle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Z("design:type",Boolean)],u2.prototype,"thumbnailStyle",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Z("design:type",Boolean)],u2.prototype,"hasGameCard",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Z("design:type",Boolean)],u2.prototype,"centerHeaderTitle",void 0);
_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Z("design:type",Boolean)],u2.prototype,"hasPortraitMiniApp",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Z("design:type",Boolean)],u2.prototype,"hasSquareMiniApp",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Z("design:type",Boolean)],u2.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.r([_.E({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Z("design:type",Boolean)],u2.prototype,"hasInfoPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],u2.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],u2.prototype,"inlineStructuredDescription",void 0);_.r([_.Yp("#scroll-container"),_.Z("design:type",HTMLDivElement)],u2.prototype,"JSC$12953_scrollContainer",void 0);
_.r([_.E({computed:"computeInitialCountNumber(data.style.type)"}),_.Z("design:type",Number)],u2.prototype,"initialCount",void 0);_.r([_.E({computed:"computeUseFloorScrolling(data.style.type)"}),_.Z("design:type",Boolean)],u2.prototype,"useFloorScrolling",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Z("design:type",Boolean)],u2.prototype,"centerItems",void 0);_.r([_.E(),_.Z("design:type",Object)],u2.prototype,"pageLoadingFromNavigation",void 0);
_.r([_.E(),_.Z("design:type",Object)],u2.prototype,"currentIndex",void 0);_.r([_.E(),_.Z("design:type",Number)],u2.prototype,"scrollCount",void 0);_.r([_.E(),_.Z("design:type",Object)],u2.prototype,"supportComponentResize",void 0);_.r([_.Yp("#items"),_.Z("design:type",HTMLDivElement)],u2.prototype,"items",void 0);_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],u2.prototype,"onIronResize",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],u2.prototype,"dataChanged",null);_.r([_.E({reflectToAttribute:!0}),_.K("inlineStructuredDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],u2.prototype,"hideNavigationButton",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],u2.prototype,"modernChapters",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],u2.prototype,"hasVideoAttributeViewModels",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],u2.prototype,"modernInfoPanels",null);u2=_.r([_.A({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],u2);
_.F(u2,"ytd-horizontal-card-list-renderer",function(){if(sSo!==void 0)return sSo;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return sSo=B},{mode:_.up("kevlar_poly_si_batch_j072")?1:2});_.oA(RKS);var CU5=_.sx(function(B){var R=B.data;var V={};return _.N("video-summary-content-view-model",{class:_.XE("video-summary-content-view-model-wiz",B.className,(V["video-summary-content-view-model-wiz--is-search"]=B.isSearch,V))},_.N(_.yh,{each:function(){var e=[],X=R().paragraphs;if(X==null||!X.length)return[];for(var Y=0;Y<X.length;Y++){var t=_.D(X[Y],BRY),b=void 0;Y>0&&(b=_.D(X[Y-1],BRY));b&&!!b.marker===!!t.marker?e[e.length-1].paragraphs.push(t):e.push({isList:!!t.marker,paragraphs:[t]})}return e},
keyBy:"INDEX"},function(e){return _.N(_.H,{cond:function(){return e().isList},
then:function(){return _.N("ul",{class:"video-summary-content-view-model-wiz__list"},_.N(_.yh,{each:function(){return e().paragraphs},
keyBy:"INDEX"},function(X){return _.N("li",{class:"video-summary-content-view-model-wiz__list-item"},_.N(_.Hr,{text:function(){return X().text}}))}))},
else:function(){return _.N(_.yh,{each:function(){return e().paragraphs},
keyBy:"INDEX"},function(X){return _.N("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.N(_.Hr,{text:function(){return X().text}}))})}})}),_.N(_.H,{cond:function(){return!!_.D(R().likeButtonViewModel,KO)&&!!_.D(R().dislikeButtonViewModel,IV)},
then:function(){return _.N("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.N("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.N(_.l6,{data:function(){return _.D(R().likeButtonViewModel,KO)},
disableIconAnimation:!0})),_.N(_.fI,{data:function(){return _.D(R().dislikeButtonViewModel,IV)}}))}}))},"Ta"),PUh=_.k("web_enable_sink_video_summary_content_view_model")?CU5:RKS,nuS=_.k("web_enable_sink_video_summary_content_view_model")?CU5:_.h3(RKS);
CU5.idomCompat=!0;_.k("web_enable_sink_video_summary_content_view_model")?_.mR(PUh,"video-summary-content-view-model",{props:{data:_.qq,isSearch:_.qq,className:_.qq}}):_.Br(PUh,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var OL=function(){var B=_.c.apply(this,arguments)||this;var R,V;B.isExpanded=(V=(R=B.data)==null?void 0:R.isExpanded)!=null?V:!1;B.disableExpand=!1;B.showProminentLabel=!1;B.showRightSideLabel=!0;B.toggleExpandableContent=function(e){B.disableExpand||(e.stopPropagation(),_.ZP(_.Az(e),B.hostElement,["info","expanded-subtitle"])||(B.isExpanded=!B.isExpanded,B.ytRendererBehavior.logExplicitClick(B.data),B.JSC$12966_cardList&&!_.k("expandable_metadata_a11y_fix_ks")&&_.gB(B,function(){_.rV(B.hostElement)})))};
B.useSquareThumbnail=!1;B.startX=0;return B};
_.l(OL,_.c);_.p=OL.prototype;_.p.computeUseSquareThumbnail=function(){var B;return(B=this.data)==null?void 0:B.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 B,R;this.isExpanded=(R=(B=this.data)==null?void 0:B.isExpanded)!=null?R:!1;var V,e,X,Y;if(B=this.isDarkTheme()?(V=this.data)==null?void 0:(e=V.colorData)==null?void 0:e.darkColorPalette:(X=this.data)==null?void 0:(Y=X.colorData)==null?void 0:Y.lightColorPalette){var t,b;if((t=this.data)==null?0:(b=t.colorData)==null?0:b.vibrantColorPalette)B.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.lP(this.hostElement,B)}}};
_.p.isExpandedChanged=function(){this.isExpanded&&this.JSC$12966_cardList&&_.OI(this.JSC$12966_cardList,"iron-resize")};
_.p.computeIsExpanded=function(B){return!!B.isExpanded};
_.p.computeShowProminentLabel=function(B,R){var V;return!!(B==null?0:(V=B.header)==null?0:V.showLeadingCollapsedLabel)&&!R};
_.p.computeShowRightSideLabel=function(B,R){var V;return!(B==null?0:(V=B.header)==null?0:V.showLeadingCollapsedLabel)&&!R};
_.p.captureContentClick=function(B){if(!this.disableExpand)if(_.k("expandable_metadata_fix_killswitch")){var R=B.target;_.jNv(R,"ytd-macro-markers-list-item-renderer")||B.stopPropagation();(R==null?void 0:R.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.ZP(_.Az(B),this.hostElement,["items"])||_.g1(_.Az(B),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.p.timestampClick=function(B){B.stopPropagation();var R,V;(B=(R=this.data)==null?void 0:(V=R.header)==null?void 0:V.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(B)};
_.p.onDown=function(B){B.stopPropagation();this.startX=B.detail?B.detail.x:0};
_.p.onUp=function(B){this.skipKeyInteraction(B)&&B.stopPropagation()};
_.p.skipKeyInteraction=function(B){var R=B.target;if((R==null?void 0:R.id)==="scroll-container"||(R==null?void 0:R.id)==="items"||B.detail&&B.detail.x!==this.startX)return!0;B=_.Az(B);B=_.h(B);for(R=B.next();!R.done;R=B.next()){R=R.value;if(R===this.hostElement)break;if(R.hasAttribute&&R.hasAttribute("skip-key-interaction"))return!0}return!1};
_.p.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.mh.Object.defineProperties(OL.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.D((B=this.data)==null?void 0:B.expandedContent,GAb)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.D((B=this.data)==null?void 0:B.expandedContent,_.t8a)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null||!B.useCustomColors)&&!((R=this.data)==null||!R.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var B,R;return!!((B=this.data)==null?0:(R=B.header)==null?0:R.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var B,R;return!!((B=this.data)==null?0:(R=B.header)==null?0:R.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var B,R;return!!((B=this.data)==null?0:(R=B.header)==null?0:R.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
OL.prototype.onUp=OL.prototype.onUp;OL.prototype.onDown=OL.prototype.onDown;OL.prototype.isExpandedChanged=OL.prototype.isExpandedChanged;OL.prototype.dataChanged=OL.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],OL.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],OL.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OL.prototype,"isExpanded",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OL.prototype,"disableExpand",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],OL.prototype,"isSearch",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],OL.prototype,"isWatch",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Z("design:type",Object)],OL.prototype,"showProminentLabel",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Z("design:type",Object)],OL.prototype,"showRightSideLabel",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],OL.prototype,"hasVideoSummary",null);_.r([_.E({value:!1,reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],OL.prototype,"hasLockupViewModel",null);_.r([_.E({reflectToAttribute:!0}),_.K("data","isWatch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],OL.prototype,"useCustomColors",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],OL.prototype,"showInfoButton",null);_.r([_.K("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],OL.prototype,"showTimestamp",null);_.r([_.K("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],OL.prototype,"showExpandedSubtitle",null);
_.r([_.K("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],OL.prototype,"showThumbnail",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OL.prototype,"useVppShoppingDestinationStyle",null);_.r([_.E(),_.Z("design:type",Object)],OL.prototype,"toggleExpandableContent",void 0);_.r([_.Yp("ytd-horizontal-card-list-renderer"),_.Z("design:type",Object)],OL.prototype,"JSC$12966_cardList",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Z("design:type",Object)],OL.prototype,"useSquareThumbnail",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OL.prototype,"dataChanged",null);_.r([_.XX("isExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OL.prototype,"isExpandedChanged",null);
_.r([_.R_("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],OL.prototype,"onDown",null);_.r([_.R_("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],OL.prototype,"onUp",null);OL=_.r([_.A({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],OL);
_.F(OL,"ytd-expandable-metadata-renderer",function(){if(Zs4!==void 0)return Zs4;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Zs4=B},{mode:1});var u7R,OHo=function(){if(u7R!==void 0)return u7R;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return u7R=B};_.mR(_.H0,"yt-avatar-stack-view-model",{props:{className:_.qq,data:_.qq,overrides:_.qq,isOverlay:_.qq,useMediumText:_.qq,decorations:_.qq,hideAvatar:_.qq}});_.aO("itemSectionRenderer","videoRenderer","ytd-video-renderer");var o0=function(){var B=_.c.apply(this,arguments)||this;B.disableExpand=!1;B.shouldShowChannelInfo=!1;B.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return B};
_.l(o0,_.c);_.p=o0.prototype;_.p.computeUseSearchUi=function(){var B,R;return this.isSearch||((B=this.data)==null?void 0:(R=B.style)==null?void 0:R.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.p.computeUseThreeLineTitle=function(){var B;return((B=this.data)==null?void 0:B.maxTitleLines)===3};
_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.k("polymer_video_renderer_defer_menu")&&!c74?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(){_.nk(this.hostElement,"blue-links",_.k("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.ui(_.w(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var B=this.get("data.buttons.buttonRenderer.serviceEndpoint"),R;B&&((R=_.D(B.commandMetadata,_.df))==null?0:R.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(B);this.updateInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12971_inlinePreviewHoverListener=CO({mediaRenderer:this,lockupElement:this.JSC$12971_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.p.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$12971_inlinePreviewHoverListener)==null||Y1(B)};
_.p.onTextWrapperClick=function(B){var R,V,e=this.hideTranslation?(R=this.data)==null?void 0:R.untranslatedNavigationEndpoint:(V=this.data)==null?void 0:V.navigationEndpoint;R=_.ZP(_.Az(B),this.hostElement,["expandable-metadata"]);!e||R&&!_.k("expandable_metadata_fix_killswitch")||_.g1(_.Az(B),this.hostElement,["A".toString(),"BUTTON".toString()])||_.OI(this.hostElement,"yt-navigate",{endpoint:e})};
_.p.computeThumbnailWidth=function(B,R,V,e,X){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:e?X==="MASSIVE"?600:X==="BIG"?500:X==="MEDIUM"?450:420:V?360:R?128:B?210:246};
_.p.computeUseBiggerThumbs=function(B){return B&&_.k("enable_desktop_search_bigger_thumbs")};
_.p.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.p.computeVideoStyle=function(){if(_.k("enable_video_style")){var B,R;return(B=this.data)==null?void 0:(R=B.style)==null?void 0:R.value}};
_.p.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.p.handleHideItemSectionVideosByIdCommand=function(B){var R;B=(R=_.D(B,cHv))==null?void 0:R.videoId;this.data&&this.data.videoId===B&&(this.isHidden=!0)};
_.p.getMetadataSnippetContainerClass=function(B){return B?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.p.computeTitleText=function(B,R,V){return B?V:R};
_.p.computeDescriptionSnippet=function(B,R,V){return B?V:R};
_.p.computeSnippetText=function(B,R,V){return B?V:R};
_.p.computeNavigationEndpoint=function(B,R){return B?R==null?void 0:R.untranslatedNavigationEndpoint:R==null?void 0:R.navigationEndpoint};
_.p.hideInlineTitleIcon=function(B,R){return B||!R};
_.mh.Object.defineProperties(o0.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 B;return(B=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?B:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return!!(this==null?0:(B=this.data)==null?0:(R=B.channelThumbnailSupportedRenderers)==null?0:(V=R.channelThumbnailWithLinkRenderer)==null?0:V.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.D((B=this.data)==null?void 0:B.avatar,Wfb)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$12971_inlinePreviewHoverListener)==null?0:Da(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.mh.Object.defineProperties(o0,{template:{configurable:!0,enumerable:!0,get:function(){return OHo()}}});
o0.prototype.dataChanged=o0.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],o0.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],o0.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.v(_.Qi),_.Z("design:type",Object)],o0.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],o0.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],o0.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],o0.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],o0.prototype,"isBackstageVideo",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],o0.prototype,"isPostCompactVideo",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],o0.prototype,"isHistory",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],o0.prototype,"isRichGridVideoPost",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],o0.prototype,"isHidden",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],o0.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Z("design:type",Boolean)],o0.prototype,"useSearchUi",void 0);_.r([_.E({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Z("design:type",Boolean)],o0.prototype,"useThreeLineTitle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Z("design:type",Boolean)],o0.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Z("design:type",Object)],o0.prototype,"videoStyle",void 0);_.r([_.E({computed:"computeDisableExpand(videoStyle)"}),_.Z("design:type",Object)],o0.prototype,"disableExpand",void 0);
_.r([_.E({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Z("design:type",Object)],o0.prototype,"shouldShowChannelInfo",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.V_("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],o0.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Z("design:type",String)],o0.prototype,"inlineTitleIcon",void 0);_.r([_.E({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Z("design:type",Object)],o0.prototype,"computedNavigationEndpoint",void 0);_.r([_.E({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(B,R){return _.p7(B.entities,"searchVideoResultEntity",R)}}),
_.Z("design:type",Object)],o0.prototype,"searchVideoResultEntity",void 0);_.r([_.Yp("ytd-thumbnail"),_.Z("design:type",HTMLElement)],o0.prototype,"thumbnail",void 0);_.r([_.Yp("#dismissible"),_.Z("design:type",HTMLElement)],o0.prototype,"JSC$12971_dismissibleMedia",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],o0.prototype,"dataChanged",null);
_.r([_.K("searchVideoResultEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],o0.prototype,"hideTranslation",null);_.r([_.K("searchVideoResultEntity"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],o0.prototype,"hiddenBadgeGroups",null);_.r([_.K("data","useAvatar"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],o0.prototype,"shouldShowChannelThumbnail",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],o0.prototype,"useAvatar",null);
_.r([_.K("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],o0.prototype,"isHovered",null);o0=_.r([_.A({is:"ytd-video-renderer",disableElementRegistration:!0})],o0);_.F(o0,"ytd-video-renderer",function(){return OHo()},{mode:_.up("kevlar_poly_si_batch_j047")?1:2});var BM=function(){var B=_.c.apply(this,arguments)||this;B.editDialog=null;B.roundedContainer=!0;B.isLoading=!1;B.isRichGrid=!1;B.isRichGridRepost=!1;B.reduceSidePaddings=_.k("reduce_side_paddings_in_shelf");B.JSC$12978_spinnerEl=null;return B};
_.l(BM,_.c);_.p=BM.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 B=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var R=0,V=this.data.actions&&this.data.actions.length;R<V;R++)this.openEditDialog(_.D(this.data.actions[R],hoG));if((R=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(R=this.get("buttonRenderer.hint.hintRenderer.hintId",R))&&R.startsWith("share-post-hint")){var e=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(e){_.uR.getInstance();var X=Op(_.s$(_.Wz("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.dV.addLowPriorityJob(function(){_.eO(B.hostElement,X,e)})}}}};
_.p.updatePoll=function(B){B>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.p.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12978_spinnerEl||(this.JSC$12978_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.w(this.hostElement).appendChild(this.JSC$12978_spinnerEl));this.JSC$12978_spinnerEl&&(this.JSC$12978_spinnerEl.active=this.isLoading)};
_.p.onYtNavigate=function(B){var R=this.get("updateCommentDialogEndpoint",B.detail.endpoint);R&&(this.openEditDialog(R),B.stopPropagation())};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.onYtCommentPollRevert=function(B,R){R&&this.updatePoll(R.selectedChoiceIndex)};
_.p.onYtServiceRequestSent=function(B,R){var V;R.endpoint&&(_.D(R.endpoint,wLJ)||_.D(R.endpoint,df5)&&((V=_.D(R.endpoint,df5))==null||!V.clientActions))&&(this.isLoading=!0);if(R.actions)for(B=0;B<R.actions.length;B++)V=R.actions[B],_.D(V,zl)&&(V=this.get("updateBackstagePollAction.selectedChoiceIndex",V),V==void 0&&(V=-1),this.updatePoll(V))};
_.p.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.p.openEditDialog=function(B){B&&B.dialog&&(this.editDialog=B.dialog,B=this.editDialogEl.firstElementChild)&&(B.focus(),B.openDialog&&B.openDialog())};
_.p.computeIsPostHidden=function(B,R){return!!B||R};
_.p.computeSurfaceType=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.p.computeUsesCompactLockup=function(B){return B==="BACKSTAGE_SURFACE_TYPE_HOME"||B==="BACKSTAGE_SURFACE_TYPE_SEARCH"||B==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||B==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||B==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||B==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.p.computeShowWithoutToolbar=function(B){return!B.actionButtons&&!B.actionMenu};
_.p.computePostAttachment=function(B){if(B.backstageAttachment){if(_.D(B.backstageAttachment,X6l))return"poll";if(_.D(B.backstageAttachment,FG_))return"quiz";if(_.D(B.backstageAttachment,_.Qy))return"video";if(_.D(B.backstageAttachment,rf_))return"uploaded-videos";if(_.D(B.backstageAttachment,Q6b))return B.contentText?"image":"image-only";if(_.D(B.backstageAttachment,cf4))return"playlist"}return"none"};
_.p.computePostTabIndex=function(B){return B?0:-1};
_.p.computeButtonTooltipPosition=function(B){return this.computeUsesCompactLockup(B)?"top":"bottom"};
_.p.computeHasText=function(B){return!(B==null||!B.contentText)};
_.p.onTap=function(B){var R,V;if(((R=this.data)==null?0:R.navigationEndpoint)&&((V=this.data)==null?void 0:V.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var e;((e=this.data)==null?0:e.navigationEndpoint)&&!_.g1(_.Az(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.mh.Object.defineProperties(BM.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.voteCount)||_.s$("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,X6l))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,rf_))}}});
BM.prototype.onYtServiceRequestCompleted=BM.prototype.onYtServiceRequestCompleted;BM.prototype.onYtServiceRequestSent=BM.prototype.onYtServiceRequestSent;BM.prototype.onYtCommentPollRevert=BM.prototype.onYtCommentPollRevert;BM.prototype.onYtCommentboxDismiss=BM.prototype.onYtCommentboxDismiss;BM.prototype.onYtNavigate=BM.prototype.onYtNavigate;BM.prototype.isLoadingChanged=BM.prototype.isLoadingChanged;BM.prototype.dataChanged=BM.prototype.dataChanged;BM.prototype.contentTextChanged=BM.prototype.contentTextChanged;
_.r([_.v(_.TY),_.Z("design:type",Object)],BM.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],BM.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],BM.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],BM.prototype,"editDialog",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],BM.prototype,"roundedContainer",void 0);_.r([_.E(),_.Z("design:type",Object)],BM.prototype,"isLoading",void 0);_.r([_.E({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Z("design:type",String)],BM.prototype,"surface",void 0);
_.r([_.E({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],BM.prototype,"usesCompactLockup",void 0);_.r([_.E({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],BM.prototype,"showWithoutToolbar",void 0);_.r([_.E({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Z("design:type",String)],BM.prototype,"attachment",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],BM.prototype,"isRichGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],BM.prototype,"isRichGridRepost",void 0);_.r([_.E({reflectToAttribute:!0,value:_.k("use_better_post_dismissals")}),_.Z("design:type",Boolean)],BM.prototype,"useBetterPostDismissals",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],BM.prototype,"reduceSidePaddings",void 0);
_.r([_.E({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],BM.prototype,"hasText",void 0);_.r([_.Yp("#expander"),_.Z("design:type",Object)],BM.prototype,"expander",void 0);_.r([_.Yp("#action-buttons"),_.Z("design:type",Object)],BM.prototype,"actionButtons",void 0);_.r([_.Yp("#edit-dialog"),_.Z("design:type",HTMLElement)],BM.prototype,"editDialogEl",void 0);
_.r([_.XX("data.contentText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BM.prototype,"contentTextChanged",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BM.prototype,"dataChanged",null);_.r([_.XX("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BM.prototype,"isLoadingChanged",null);
_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],BM.prototype,"onYtNavigate",null);_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BM.prototype,"onYtCommentboxDismiss",null);_.r([_.R_("yt-comment-poll-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],BM.prototype,"onYtCommentPollRevert",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],BM.prototype,"onYtServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],BM.prototype,"onYtServiceRequestCompleted",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BM.prototype,"voteCount",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BM.prototype,"commentCount",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BM.prototype,"hasPoll",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BM.prototype,"hasUploadedVideo",null);BM=_.r([_.A({is:"ytd-post-renderer",disableElementRegistration:!0})],BM);
_.F(BM,"ytd-post-renderer",function(){if(UJT!==void 0)return UJT;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return UJT=B},{mode:1});var oKT;var B8T;var R0=function(){return _.c.apply(this,arguments)||this};
_.l(R0,_.c);R0.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Pu.YtdHorizontalListBehavior),_.Z("design:type",Object)],R0.prototype,"ytdHorizontalListBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],R0.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],R0.prototype,"data",void 0);
_.r([_.E({value:"$.items.children"}),_.Z("design:type",String)],R0.prototype,"itemsPath",void 0);_.r([_.E({value:1}),_.Z("design:type",Number)],R0.prototype,"initialCount",void 0);_.r([_.E(),_.Z("design:type",String)],R0.prototype,"surface",void 0);R0=_.r([_.A({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],R0);
_.F(R0,"ytd-post-multi-image-renderer",function(){if(B8T!==void 0)return B8T;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return B8T=B},{mode:_.up("kevlar_poly_si_batch_j079")?1:2});var RR4={"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"}}},V$=function(){var B=_.c.apply(this,arguments)||this;B.hasInlineCommentSection=!1;B.editDialog=null;B.isLoading=!1;B.shouldHideAuthor=!1;B.shouldShowVideoTime=!1;
B.isInEngagementPanel=!1;B.hideBorder=!1;B.usesFullLockup=!1;B.shouldShowMenuInCompactView=!1;B.JSC$12994_spinnerEl=null;B.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return B};
_.l(V$,_.c);_.p=V$.prototype;_.p.configureRendererStamper=function(){return RR4};
_.p.computeIsPollHeaderEnabled=function(B){return(B==null?void 0:B.pollMetadataIcon)!=null};
_.p.getPublishTimeStampString=function(B,R){R=new Date((Number(R)-60*((new Date).getTimezoneOffset()-(new Date(Number(R)*1E3)).getTimezoneOffset()))*1E3);R=(new As(10)).format(R);if(B&&B.runs&&B.runs.length)for(var V=0;V<B.runs.length;V++)B.runs[V].text&&(B.runs[V].text=B.runs[V].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",R));return B};
_.p.created=function(){this.JSC$12994_spinnerEl=null};
_.p.contentTextChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var B;if((B=this.data)==null?0:B.actions){B=_.h(this.data.actions);for(var R=B.next();!R.done;R=B.next())this.openEditDialog(_.D(R.value,hoG))}};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){_.w(this.hostElement).querySelector("#action-buttons").reply()};
_.p.updatePoll=function(B,R){R&&this.set("data.pollMetadataVoteCountText",R);this.hasInlineCommentSection&&(B=B>=0,R=_.w(this.hostElement).querySelector("#action-buttons"),B?R.reply():R.hideReplyDialog())};
_.p.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12994_spinnerEl||(this.JSC$12994_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.w(this.hostElement).appendChild(this.JSC$12994_spinnerEl));this.JSC$12994_spinnerEl&&(this.JSC$12994_spinnerEl.active=this.isLoading)};
_.p.onYtNavigate=function(B){var R=this.get("updateCommentDialogEndpoint",B.detail.endpoint);R&&(this.openEditDialog(R),B.stopPropagation())};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.onYtCommentPollRevert=function(B,R){R&&this.updatePoll(R.selectedChoiceIndex,R.totalVotes)};
_.p.onYtServiceRequestSent=function(B,R){B.stopPropagation();B=_.D(R.endpoint,df5);if(_.D(R.endpoint,wLJ)||B&&!B.clientActions)this.isLoading=!0;if(R.actions)for(B=0;B<R.actions.length;B++){var V=R.actions[B],e=_.D(V,zl);e&&(V=this.get("updateBackstagePollAction.selectedChoiceIndex",V),V===void 0&&(V=-1),this.updatePoll(V,e.totalVotes))}};
_.p.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.p.openEditDialog=function(B){B&&B.dialog&&(this.editDialog=B.dialog,B=this.editDialogElement.firstElementChild)&&(B.focus(),B.openDialog&&B.openDialog())};
_.p.computeIsBodyHidden=function(B,R){return!!B||R};
_.mh.Object.defineProperties(V$.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var B,R;if((B=this.data)==null?0:(R=B.pollMetadataIcon)==null?0:R.iconType)return _.RT(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.voteCount)||_.s$("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,X6l))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,FG_))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,rf_))}}});
V$.prototype.onYtServiceRequestCompleted=V$.prototype.onYtServiceRequestCompleted;V$.prototype.onYtServiceRequestSent=V$.prototype.onYtServiceRequestSent;V$.prototype.onYtCommentPollRevert=V$.prototype.onYtCommentPollRevert;V$.prototype.onYtCommentboxDismiss=V$.prototype.onYtCommentboxDismiss;V$.prototype.onYtNavigate=V$.prototype.onYtNavigate;V$.prototype.isLoadingChanged=V$.prototype.isLoadingChanged;V$.prototype.dataChanged=V$.prototype.dataChanged;V$.prototype.contentTextChanged=V$.prototype.contentTextChanged;
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],V$.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],V$.prototype,"rendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],V$.prototype,"rendererstamperBehavior",void 0);_.r([_.Yp("#contentTextExpander"),_.Z("design:type",Object)],V$.prototype,"expander",void 0);
_.r([_.Yp("#edit-dialog"),_.Z("design:type",Element)],V$.prototype,"editDialogElement",void 0);_.r([_.E(),_.Z("design:type",Object)],V$.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],V$.prototype,"hasInlineCommentSection",void 0);_.r([_.E(),_.Z("design:type",Object)],V$.prototype,"editDialog",void 0);_.r([_.E(),_.Z("design:type",Object)],V$.prototype,"isLoading",void 0);
_.r([_.E({computed:"computeIsPollHeaderEnabled(data)"}),_.Z("design:type",Boolean)],V$.prototype,"isPollHeaderEnabled",void 0);_.r([_.E(),_.Z("design:type",Object)],V$.prototype,"shouldHideAuthor",void 0);_.r([_.E(),_.Z("design:type",Object)],V$.prototype,"shouldShowVideoTime",void 0);_.r([_.E(),_.Z("design:type",Object)],V$.prototype,"isInEngagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],V$.prototype,"hideBorder",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],V$.prototype,"usesFullLockup",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],V$.prototype,"shouldShowMenuInCompactView",void 0);_.r([_.K("isInEngagementPanel"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],V$.prototype,"postTextMaxLines",null);_.r([_.K("data.icon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],V$.prototype,"pollIcon",null);
_.r([_.XX("data.contentText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V$.prototype,"contentTextChanged",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V$.prototype,"dataChanged",null);_.r([_.XX("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V$.prototype,"isLoadingChanged",null);
_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],V$.prototype,"onYtNavigate",null);_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V$.prototype,"onYtCommentboxDismiss",null);_.r([_.R_("yt-comment-poll-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],V$.prototype,"onYtCommentPollRevert",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],V$.prototype,"onYtServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],V$.prototype,"onYtServiceRequestCompleted",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],V$.prototype,"voteCount",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],V$.prototype,"commentCount",null);_.r([_.K("data.backstageAttachment"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],V$.prototype,"hasPoll",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],V$.prototype,"hasQuiz",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],V$.prototype,"hasUploadedVideo",null);
V$=_.r([_.A({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],V$);
_.F(V$,"ytd-backstage-post-renderer",function(){if(oKT!==void 0)return oKT;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return oKT=B},{mode:1});var V7b;var eF=function(){var B=_.c.apply(this,arguments)||this;B.editDialog=null;B.showExpandButton=!1;B.isRichGrid=!1;B.usesFullLockup=!1;return B};
_.l(eF,_.c);_.p=eF.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(B){return this.usesCompactLockup||B&&B.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.p.computeUsesCompactLockup=function(B){return!!B.condensedContent};
_.p.computeShowFullContentText=function(B){return!B};
_.p.onYtNavigate=function(B){B=this.get("updateCommentDialogEndpoint",B.detail.endpoint);this.openEditDialog(B)};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.openEditDialog=function(B){B&&B.dialog&&(this.editDialog=B.dialog,B=this.repostEditDialogEl.firstElementChild)&&(B.focus(),B.openDialog&&B.openDialog())};
_.p.onTap=function(B){if(this.data){var R=null;this.usesCompactLockup&&!_.g1(_.Az(B)||[],this.hostElement,["YT-IMG-SHADOW"])?R=this.get("navigationEndpoint",this.data):B.target===this.moreButtonEl&&(R=this.get("navigationEndpoint",B.target.data));R&&_.OI(this.hostElement,"yt-navigate",{endpoint:R})}};
eF.prototype.onYtCommentboxDismiss=eF.prototype.onYtCommentboxDismiss;eF.prototype.onYtNavigate=eF.prototype.onYtNavigate;eF.prototype.dataChanged=eF.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],eF.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],eF.prototype,"editDialog",void 0);_.r([_.E({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],eF.prototype,"usesCompactLockup",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],eF.prototype,"showExpandButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],eF.prototype,"isRichGrid",void 0);
_.r([_.E({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],eF.prototype,"showFullContentText",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],eF.prototype,"usesFullLockup",void 0);_.r([_.Yp("#more"),_.Z("design:type",Object)],eF.prototype,"moreButtonEl",void 0);_.r([_.Yp("#repost-content-text"),_.Z("design:type",HTMLElement)],eF.prototype,"repostContentTextEl",void 0);
_.r([_.Yp("#repost-edit-dialog"),_.Z("design:type",HTMLElement)],eF.prototype,"repostEditDialogEl",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eF.prototype,"dataChanged",null);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],eF.prototype,"onYtNavigate",null);
_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eF.prototype,"onYtCommentboxDismiss",null);eF=_.r([_.A({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],eF);
_.F(eF,"ytd-shared-post-renderer",function(){if(V7b!==void 0)return V7b;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return V7b=B},{mode:1});var eR2;var XXa;var Xl=function(){return _.c.apply(this,arguments)||this};
_.l(Xl,_.c);Xl.prototype.attached=function(){var B=this;this.networkStatusManager||(this.networkStatusManager=new _.A$,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){B.onlineHandler()}))};
Xl.prototype.detached=function(){var B=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){B.onlineHandler()}),delete this.networkStatusManager)};
Xl.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Xl.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Xl.prototype,"data",void 0);Xl=_.r([_.A({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Xl);
_.F(Xl,"ytd-reload-page-button-renderer",function(){if(XXa!==void 0)return XXa;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return XXa=B},{mode:1});var pX4={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"},p_=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(p_,_.c);_.p=p_.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(B){return!!B.bodyText};
_.p.computeButtons=function(B){var R=[];B.ctaButton&&R.push(B.ctaButton);B.secondaryButton&&R.push(B.secondaryButton);return R};
_.p.computeRendererStyle=function(B){return B.style?B.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():B.icon?"":"no-icon"};
_.p.getIconName=function(B,R){R=R===void 0?!1:R;if(B===void 0)return"";B=this.get("icon.iconType",B);var V;_.k("enable_hlp_client_icon_pick")?V=this.getThemedIcon(B,R):V=B;(R=pX4[V])||(R="yt-icons");return[R,V].join(":")};
_.p.getThemedIcon=function(B,R){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(B)?R?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(B)?R?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":B};
_.p.isThumbnail=function(B){return!!B.thumbnail};
_.p.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],p_.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],p_.prototype,"data",void 0);
_.r([_.E({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],p_.prototype,"rendererStyle",void 0);_.r([_.E({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Z("design:type",String)],p_.prototype,"iconName",void 0);_.r([_.E({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],p_.prototype,"thumbnail",void 0);_.r([_.E({computed:"computeButtons(data)"}),_.Z("design:type",Array)],p_.prototype,"buttons",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],p_.prototype,"isDarkTheme",void 0);_.r([_.E({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],p_.prototype,"hasBodyText",void 0);p_=_.r([_.A({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],p_);
_.F(p_,"ytd-background-promo-renderer",function(){if(eR2!==void 0)return eR2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return eR2=B},{mode:1});var YvR;var Yn=function(){var B=_.c.apply(this,arguments)||this;B.collections=_.k("web_modern_collections_v2");return B};
_.l(Yn,_.c);_.mh.Object.defineProperties(Yn.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e,X,Y;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(B=this.data)==null?void 0:(R=B.thumbnail)==null?void 0:R.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(e=V.thumbnail)==null?void 0:e.vibrantColorPalette,darkColorPalette:(X=this.data)==null?void 0:(Y=X.thumbnail)==null?void 0:Y.darkColorPalette,experimentEnabled:this.collections}}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Yn.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Yn.prototype,"collections",void 0);_.r([_.K("data","collections"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Yn.prototype,"collectionStack",null);Yn=_.r([_.A({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Yn);
_.F(Yn,"ytd-compact-station-renderer",function(){if(YvR!==void 0)return YvR;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return YvR=B},{mode:1});var hRv;var h7=function(){var B=_.c.apply(this,arguments)||this;B.isRichGrid=!1;return B};
_.l(h7,_.c);h7.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]]"}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],h7.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],h7.prototype,"isRichGrid",void 0);h7=_.r([_.A({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],h7);
_.F(h7,"ytd-grid-channel-renderer",function(){if(hRv!==void 0)return hRv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return hRv=B},{mode:1});var t7b;var t7=function(){return _.c.apply(this,arguments)||this};
_.l(t7,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],t7.prototype,"data",void 0);t7=_.r([_.A({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],t7);
_.F(t7,"ytd-grid-movie-playlist-renderer",function(){if(t7b!==void 0)return t7b;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return t7b=B},{mode:1});var Wj2;var WM=function(){var B=_.c.apply(this,arguments)||this;B.downloadProgress=0;B.transferState="TRANSFER_STATE_UNKNOWN";B.modernButtons=_.k("web_modern_buttons");B.useModernCollectionsV2=_.k("web_modern_collections_v2");return B};
_.l(WM,_.c);WM.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
WM.prototype.configureRendererStamper=function(){return{"data.menu":XP}};
WM.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
WM.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.k("woffle_playlist_renderer_killswitch")){var B,R=DyA(this.entityInfo,this.transferState,this.downloadProgress,(B=this.data)==null?void 0:B.playlistId,this.isOnline);B=R.viewPlaylistText;var V=R.badges;R=R.thumbnailOverlays;this.isDownloads=!!B||!!V;this.set("data.viewPlaylistText",B);V&&V.length>0&&this.set("data.badges",V);R&&R.length>0&&this.set("data.thumbnailOverlays",
R)}};
_.mh.Object.defineProperties(WM.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 B;return!((B=this.data)==null?0:B.menu)}}});
WM.prototype.transferStateChanged=WM.prototype.transferStateChanged;WM.prototype.dataChanged=WM.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],WM.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],WM.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E({selector:_.qNd,selectorArgs:["data.playlistId"]}),_.Z("design:type",Object)],WM.prototype,"downloadProgress",void 0);_.r([_.E({selector:_.xG,selectorArgs:["data.playlistId"]}),_.Z("design:type",Object)],WM.prototype,"transferState",void 0);_.r([_.E({selector:Qid,selectorArgs:["data.playlistId"]}),_.Z("design:type",Object)],WM.prototype,"entityInfo",void 0);_.r([_.E({selector:xfI}),_.Z("design:type",Boolean)],WM.prototype,"isOnline",void 0);
_.r([_.E(),_.Z("design:type",Object)],WM.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],WM.prototype,"downloadRenderData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WM.prototype,"modernButtons",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],WM.prototype,"isDownloads",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WM.prototype,"useModernCollectionsV2",void 0);
_.r([_.K("transferState"),_.E({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],WM.prototype,"downloadState",null);_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],WM.prototype,"menuHidden",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WM.prototype,"dataChanged",null);
_.r([_.bp("transferState","downloadProgress","isOnline"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WM.prototype,"transferStateChanged",null);WM=_.r([_.A({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],WM);
_.F(WM,"ytd-grid-playlist-renderer",function(){if(Wj2!==void 0)return Wj2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Wj2=B},{mode:1});var bM4;var bE=function(){var B=_.c.apply(this,arguments)||this;B.collections=_.k("web_modern_collections_v2");return B};
_.l(bE,_.c);bE.prototype.configureRendererStamper=function(){return{"data.menu":XP,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.mh.Object.defineProperties(bE.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e,X,Y;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(B=this.data)==null?void 0:(R=B.thumbnail)==null?void 0:R.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(e=V.thumbnail)==null?void 0:e.vibrantColorPalette,darkColorPalette:(X=this.data)==null?void 0:(Y=X.thumbnail)==null?void 0:Y.darkColorPalette,experimentEnabled:this.collections}}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],bE.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],bE.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bE.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bE.prototype,"collections",void 0);_.r([_.K("data","collections"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bE.prototype,"collectionStack",null);bE=_.r([_.A({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],bE);
_.F(bE,"ytd-grid-radio-renderer",function(){if(bM4!==void 0)return bM4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return bM4=B},{mode:1});var JCa;var J7=function(){var B=_.c.apply(this,arguments)||this;B.useModernCollectionsV2=_.k("web_modern_collections_v2");return B};
_.l(J7,_.c);J7.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
J7.prototype.computeNavigationEndpoint=function(B){return BpZ(B==null?void 0:B.navigationEndpoint)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],J7.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],J7.prototype,"data",void 0);_.r([_.E({computed:"computeNavigationEndpoint(data)"}),_.Z("design:type",Object)],J7.prototype,"computedNavigationEndpoint",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],J7.prototype,"useModernCollectionsV2",void 0);J7=_.r([_.A({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],J7);
_.F(J7,"ytd-grid-show-renderer",function(){if(JCa!==void 0)return JCa;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return JCa=B},{mode:1});var jtT;_.jF=function(B){this.playerClient=B};
_.UL5=function(B,R,V){V=V===void 0?{}:V;return B.playerClient.setOption("ad",R,V)};
_.jF.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.jF.prototype.executeCommand=function(B,R){this.getOptions().includes("executeCommand")?_.UL5(this,"executeCommand",{command:B,layoutId:R}):_.R7("Calling executeCommand when adModule is not loaded")};var Uu=function(){return _.c.apply(this,arguments)||this};
_.l(Uu,_.c);Uu.prototype.getLayoutId=function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.layoutId:null};
Uu.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var B=_.Pr(),R=this.getLayoutId(),V=this.data.clickthroughEndpoint;B&&R&&_.k("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?B.getPlayerPromise().then(function(e){(new _.jF(e)).executeCommand(V,R)}):_.OI(this.hostElement,"yt-navigate",{endpoint:V})}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Uu.prototype,"data",void 0);Uu=_.r([_.A({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Uu);
_.F(Uu,"ytd-shopping-companion-item-renderer",function(){if(jtT!==void 0)return jtT;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return jtT=B},{mode:1});var N82;var N4=function(){var B=_.c.apply(this,arguments)||this;B.isExpandableContent=!1;return B};
_.l(N4,_.c);_.mh.Object.defineProperties(N4.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.data)==null?void 0:B.price)||((R=this.data)==null?void 0:(V=R.dealsData)==null?void 0:V.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var B,R;if((B=this.data)!=null&&B.dealsData&&((R=this.data)==null||!R.priceReplacementText)){B=this.data.dealsData;var V,e,X;return((V=B.salesData)==null?void 0:V.originalPrice)||((e=B.priceDropData)==null?void 0:e.referencePrice)||((X=B.promotionData)==null?void 0:X.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var B,R;return(B=this.data)==null?void 0:(R=B.dealsData)==null?void 0:R.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],N4.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],N4.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],N4.prototype,"isExpandableContent",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"showCta",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"ctaText",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"hasPriceTopPosition",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"hasPriceBottomPosition",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"useNewStyle",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"showPriceReplacementText",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"priceValue",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"showDeal",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"showAffiliateDisclaimer",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"useSaleStyle",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"useFromBrandCtaStyle",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"useFromVendorCtaStyle",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],N4.prototype,"useShoppingCollectionCtaStyle",null);N4=_.r([_.A({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],N4);
_.F(N4,"ytd-vertical-product-card-renderer",function(){if(N82!==void 0)return N82;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return N82=B},{mode:1});var Gd2;var Gf=function(){return _.c.apply(this,arguments)||this};
_.l(Gf,_.c);Gf.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],Gf.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Gf.prototype,"data",void 0);Gf=_.r([_.A({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Gf);
_.F(Gf,"ytd-grid-movie-renderer",function(){if(Gd2!==void 0)return Gd2;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Gd2=B},{mode:1});var yCa;var y$=function(){var B=_.c.apply(this,arguments)||this;B.rounded=!0;B.itemStyle="small-item";return B};
_.l(y$,_.c);y$.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var B,R,V,e,X=(R=_.D((B=this.data)==null?void 0:B.buttonCommand,_.MYl))==null?void 0:(V=R.item)==null?void 0:(e=V.notificationTextRenderer)==null?void 0:e.successResponseText;X&&_.VT5(this.hostElement,X)}};
_.mh.Object.defineProperties(y$.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:B.isProductPlaceholder)!==void 0&&((R=this.data)==null?void 0:R.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.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}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],y$.prototype,"rounded",void 0);_.r([_.E(),_.Z("design:type",Object)],y$.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],y$.prototype,"itemStyle",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],y$.prototype,"hasPrice",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],y$.prototype,"hasPriceReplacementText",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],y$.prototype,"hasAdditionalFeesText",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],y$.prototype,"hasAffiliateDisclaimer",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],y$.prototype,"isProductPlaceholder",null);
_.r([_.E(),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],y$.prototype,"hideOpenInNewIcon",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],y$.prototype,"ariaLabel",null);y$=_.r([_.A({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],y$);
_.F(y$,"ytd-merch-shelf-item-renderer",function(){if(yCa!==void 0)return yCa;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return yCa=B},{mode:1});var Sv2=_.sx(function(B){var R=_.Zh();_.gb(R,function(){return B.data().rendererContext});
return _.N("button-card-view-model",{el:R,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return B.data().title},
role:"button"},_.N(_.yK,{model:{}}),_.N("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.N("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.N(_.H,{cond:function(){return B.data().image},
then:function(V){return _.N(_.ia,{data:V,alt:function(){var e;return(e=B.data().title)!=null?e:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.N("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return B.data().title})))},"Ua");_.k("web_button_view_model_wcw_registration_killswitch")||_.mR(Sv2,"button-card-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){B=_.ip(B,{className:void 0});var R=B.data;B=B.className;var V=_.NW(function(){return R().onTapCommand},void 0,"NprDr");
return _.N("ytd-shopping-item-card",{class:_.XE("ytdShoppingItemCardHost",B)},_.N(_.SQ,{command:V,className:"ytdShoppingItemCardHostLink"},_.N("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.N(_.wb,{data:function(){return R().thumbnailViewModel}},{thumbnailViewModel:function(e){return _.N(_.sL,{data:e.data,
aspectRatio:3})}})),_.N("div",null,_.N("p",{class:"ytdShoppingItemCardHostItemTitle"},_.N(_.Hr,{text:function(){return R().itemTitle}})),_.N("p",{class:"ytdShoppingItemCardHostPrice"},_.N(_.Hr,{text:function(){return R().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.qq,
className:_.qq}});var HMR={isAdsVideo:!0},M7R={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},kdJ={showPlayerControls:!1,videoPreviewDurationMs:15E3},JBZ={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.k("web_shorts_imp_fullwidth_killswitch")};var eB=null,eKN={};var YCS="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(" "),SF={},hKx=(SF.FEwhat_to_watch="home",SF.FEhashtag="hashtag",SF.FEtrending="trending",SF.FEhistory="history",SF.SPunlimited="premium",SF.FEmemberships_and_purchases="paid_memberships",SF.SPredeem_code="redeem",SF.SPverify_location="locate",SF.SPminor_moment="minor_moment",
SF.FEmini_app_container="mini_app",SF.FEnews_destination="news",SF.SPopen_in_app="open_in_app",SF.FEexplore="explore",SF.FEsubscriptions="subscriptions",SF.FEsfv_audio_pivot="sfv_audio_pivot",SF.FEplaylist_aggregation="playlist_aggregation",SF);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");_.XT("init");var DLG=function(){},aLb=_.sx(function(B){var R=B.data;
var V=B.inlineMetadata;var e=B.aspectRatio;var X=B.scrimStyle;var Y=B.className;var t=B.useDefaultStyle;var b=new DLG,J=_.k("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",G=_.NW(function(){return(t==null?0:t())?J==="SHORTS_LOCKUP_STYLE_SLIM":R().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),y=_.NW(function(){return _.wA(V)||G()||!1},void 0,"pcPnBf"),S=function(){return(X==null?void 0:X())!==void 0?X==null?void 0:X():1};
B=_.Zh(function(m){b&&(b.hostElement=m,T())});
_.Od(B,{visibilityCallback:function(m){var g=R().onFirstVisible;m&&g&&_.Lc(g)},
showOption:{calledOnce:!0,state:"visible"}});Y=_.XE("shortsLockupViewModelHost",Y);var M=_.Zh(),f={};f=_.XE(function(){return G(),"shortsLockupViewModelHostThumbnailContainer"},(f.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.wA(e)===1},f.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.wA(e)===2},f.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!G()},f.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.k("web_shorts_2_by_3_lockups_study")&&!_.k("desktop_search_enable_two_by_three_shorts_aspect_ratio")},f));
var z,T=function(){if(b){var m;(m=z)==null||Y1(m);var g;b.hostElement&&((g=b.data)==null?0:g.inlinePlayerData)&&(z=CO({mediaRenderer:b,lockupElement:b.hostElement,thumbnailElement:M.value,videoPreviewOpts:JBZ}))}};
_.lJ(function(){b&&(b.data=R(),T())});
var L=_.NW(function(){return R().thumbnail},void 0,"FXJKOd"),Q=_.NW(function(){return R().badge},void 0,"RHSDwe"),q=_.NW(function(){return R().onTap},void 0,"twXQme");
return _.N("ytm-shorts-lockup-view-model",{el:B,class:Y},_.N(_.OZ,null,_.N(_.SQ,{command:q,className:_.XE("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!y()},
tabIndex:function(){return y()?0:-1}},_.N("div",{el:M,
class:f},_.N(_.H,{cond:L,then:function(){return _.N(_.ia,{data:function(){return L()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.N(_.H,{cond:y,
then:function(){return _.N(fLl,{data:R,scrimStyle:S,useDefaultStyle:t})}}),_.N(_.wb,{data:Q},{badgeViewModel:function(m){return _.N(_.Za,{data:m.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.N(_.H,{cond:function(){return y()&&R().menuOnTap},
then:function(){return _.N(lLa,{data:R,inlineMetadata:!0})}}),_.N(_.H,{cond:function(){return!y()},
then:function(){return _.N(zR5,{data:R,useDefaultStyle:t})}})))},"Wa"),fLl=_.sx(function(B){var R=B.data;
var V=B.scrimStyle;var e=B.useDefaultStyle;var X=_.k("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Y=e&&_.k("web_hide_primary_text_for_pivot_panel"),t=_.NW(function(){return(e==null?0:e())?X==="SHORTS_LOCKUP_STYLE_SLIM":R().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
B={};B=_.XE("shortsLockupViewModelHostInlineMetadata",(B.shortsLockupViewModelHostMetadataRounded=function(){return!t()},B.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(V==null?void 0:V())===3&&!_.k("enable_shorts_lockup_new_scrim")},B.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(V==null?void 0:V())===3&&_.k("enable_shorts_lockup_new_scrim")},B.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(V==null?void 0:V())===2||(V==null?void 0:
V())===4},B.shortsLockupViewModelHostShowOverPlayer=function(){return!0},B),"image-overlay-text");
var b={};return _.N("div",{class:B},_.N("h3",{class:_.XE("shortsLockupViewModelHostMetadataTitle",(b.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(V==null?void 0:V())===4},b)),
"aria-label":function(){return R().accessibilityText}},_.N(_.H,{cond:function(){var J;
return!((J=R().overlayMetadata)==null||!J.primaryText)&&!Y},
then:function(){return _.N(_.Hr,{text:function(){var J;return(J=R().overlayMetadata)==null?void 0:J.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.N(_.H,{cond:function(){var J;
return(J=R().overlayMetadata)==null?void 0:J.secondaryText},
then:function(){return _.N(dLh,{data:R,scrimStyle:V,className:void 0})}}))},"Xa"),zR5=_.sx(function(B){var R=B.data;
var V=B.useDefaultStyle;var e=_.k("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",X=_.NW(function(){return(V==null?0:V())?e==="SHORTS_LOCKUP_STYLE_SLIM":R().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
B=_.XE(function(){return X()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var Y,t=_.Wr(function(){var J;(J=Y)==null||J.click();return!1}),b={};
return _.N("div",{class:B,"on:click":t},_.N("h3",{class:_.XE("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(b.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var J,G;return!((J=R().overlayMetadata)==null?0:(G=J.primaryText)==null?0:G.content)},b)),
"aria-label":function(){return R().accessibilityText}},_.N(_.SQ,{ref:function(J){return void(Y=J)},
command:function(){return R().onTap},
className:_.XE("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var J,G;return(J=R().overlayMetadata)==null?void 0:(G=J.primaryText)==null?void 0:G.content}},_.N(_.H,{cond:function(){return!!R().overlayMetadata},
then:function(){return _.N(_.Hr,{text:function(){var J;return(J=R().overlayMetadata)==null?void 0:J.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.N(_.H,{cond:function(){var J;
return(J=R().overlayMetadata)==null?void 0:J.secondaryText},
then:function(){return _.N(dLh,{data:R,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.N(_.H,{cond:function(){return R().menuOnTap},
then:function(){return _.N(lLa,{data:R,inlineMetadata:!1})}}))},"Ya"),dLh=_.sx(function(B){var R=B.data;
var V=B.scrimStyle;B=B.className;var e={};return _.N("div",{class:_.XE((e.shortsLockupViewModelHostMetadataSubhead=function(){return(V==null?void 0:V())!==4},e.shortsLockupViewModelHostMetadataSubheadNew=_.k("enable_shorts_lockup_new_scrim"),e.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(V==null?void 0:V())===4},e),B),
"aria-hidden":"true"},_.N(_.Hr,{text:function(){var X;return(X=R().overlayMetadata)==null?void 0:X.secondaryText},
noStyleRuns:!0}))},"Za"),lLa=_.sx(function(B){var R=B.data;
var V=B.inlineMetadata;B={};B=_.XE((B.shortsLockupViewModelHostInlineMetadataMenu=function(){return V()},B.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!V()},B.shortsLockupViewModelHostShowOverPlayer=function(){return!0},B),"image-overlay-text");
return _.N("div",{class:B},_.N(BI,{data:function(){return{style:V()?"overlay":"mono",accessibilityLabel:R().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(e){e.preventDefault();e.stopPropagation();var X=_.T2({elementsCommand:R().menuOnTap,forceNewState:!0});if(X==null?0:X.onclick)X.onclick(e)}}},
iconName:"MORE_VERT"}))},"$a");var UB_=_.ll({badgeViewModel:YPN}),bvu=function(){},wXl=_.h3(yBu),T8a=_.sx(function(B){var R=B.data;
var V=B.inlineMetadata;var e=B.aspectRatio;var X=B.scrimStyle;var Y=B.className;var t=B.useDefaultStyle;B=_.NW(function(){var J=R().entityId;return J?J.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var b=_.k("web_shorts_lockup_view_model_sink")?aLb:wXl;return _.N("ytm-shorts-lockup-view-model-v2",{class:_.XE("shortsLockupViewModelHost",Y)},_.N(_.Ag4,{contentId:B,aspectRatio:function(){return(e==null?void 0:e())===1?1:(e==null?void 0:e())===2?2:4}},function(){return _.N(b,{data:R,
inlineMetadata:V,aspectRatio:e,scrimStyle:X,className:Y,useDefaultStyle:t})}))},"ab");
_.oA(yBu);_.oA(jdo);_.oA(GI5);_.oA(SCq);_.oA(NRK);_.mR(T8a,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Z9,inlineMetadata:_.Z9,aspectRatio:_.Z9,scrimStyle:_.Z9,className:_.Z9,useDefaultStyle:_.Z9}});var xLR=16/9*210,HM=function(){var B=_.c.apply(this,arguments)||this;B.isExpandableContent=!1;B.hideShelfHeader=!1;B.engagementPanel=!1;B.buttonClasses=["arrow"];B.isSearch=!1;B.disableScrollEventListener=!1;B.containsLockup=!1;B.overrideArrowPositionForProductCard=!1;B.overrideArrowPositionForShoppingItemCard=!1;B.overrideArrowPositionForReelItems=!1;B.overrideArrowPositionForGridMovie=!1;B.overrideArrowPositionToCenter=!1;B.isSearchPostShelf=!1;B.overrideArrowPositionForMixedShelf=!1;B.overrideArrowPositionForMixedShelfShortsOnly=
!1;B.hasBigThumbsReelItems=!1;B.shouldUseMixedListHeight=!1;B.shouldUseShortsListHeight=!1;B.gridVideoWidth=0;B.isSearchVodShelf=!1;B.disableWheelScroll=!1;B.sizing="COMPACT";B.shortsLockupAspectRatio=0;return B};
_.l(HM,_.c);_.p=HM.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(),_.k("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.p.computeInitialCountNumber=function(B){if(!B)return 6;var R=B.items.some(function(Y){return!!Y.topicRecommendationsChipRenderer}),V=B.items.some(function(Y){return!!Y.displayAdRenderer}),e=this.computeShouldListItemsHaveEqualHeight(B),X=B.items.some(function(Y){return!!Y.gridPlaylistRenderer});
B=B.items.some(function(Y){return!!Y.shoppingItemCardViewModel});
return R?9:V?8:X||e?10:B?7:6};
_.p.computeContainsPost=function(B){return!!B&&!!B.items&&B.items.some(function(R){return!!R.postRenderer})};
_.p.computeContainsLockup=function(){if(_.k("web_horizontal_list_lockup_arrow_killswitch"))return!1;var B,R;return(B=this.data)==null?void 0:(R=B.items)==null?void 0:R.some(function(V){return!!V.lockupViewModel})};
_.p.maybeUpdateLockupAspectRatio=function(){var B,R;if(this.computeContainsLockup()&&((B=this.data)==null?0:(R=B.items)==null?0:R.length)){var V;B=hRu((V=this.data.items[0].lockupViewModel)==null?void 0:V.contentType,this.data.force16By9ThumbnailAspectRatio);V=mbN(B);V=this.computeLockupWidth()/V;_.o_(this.hostElement,{"--yt-horizontal-list-content-height":V+"px"})}};
_.p.computeOverrideArrowPositionForProductCard=function(B){if(this.isExpandableContent)return!1;var R;return!!(B==null?0:(R=B.items)==null?0:R.some(function(V){return!!V.verticalProductCardRenderer}))};
_.p.computeOverrideArrowPositionForShoppingItemCard=function(B){var R;return!!(B==null?0:(R=B.items)==null?0:R.some(function(V){return!!V.shoppingItemCardViewModel}))};
_.p.computeOverrideArrowPositionForReelItemRenderer=function(B){return this.containsReelItemRenderer(B)};
_.p.computeHasBigThumbsReelItems=function(B,R){return B&&this.containsReelItemRenderer(R)};
_.p.computeShouldListItemsHaveEqualHeight=function(B){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(B==null?void 0:B.itemSizeConstraint)};
_.p.computeShouldListItemsHaveShortsHeight=function(B){return this.computeShouldListItemsHaveEqualHeight(B)&&!this.containsGridVideoRenderer(B)};
_.p.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.p.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.p.containsReelItemRenderer=function(B){var R;return!!(B==null?0:(R=B.items)==null?0:R.some(function(V){return!(!V.reelItemRenderer&&!V.shortsLockupViewModel)}))};
_.p.containsGridVideoRenderer=function(B){var R;return!!(B==null?0:(R=B.items)==null?0:R.some(function(V){return!!V.gridVideoRenderer||!!V.lockupViewModel}))};
_.p.computeContainsGridMovieRenderer=function(B){var R;return!!(B==null?0:(R=B.items)==null?0:R.some(function(V){return!!V.gridMovieRenderer}))};
_.p.computeOverrideArrowPositionToCenter=function(B){return this.computeIsSearchPostShelf(B)};
_.p.computeIsSearchPostShelf=function(B){var R;return!!(B==null?0:(R=B.items)==null?0:R.some(function(V){var e,X;return((X=(e=V.postRenderer)==null?void 0:e.surface)!=null?X:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.p.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(B){var R;return!!(B==null?0:(R=B.items)==null?0:R.some(function(V){var e,X,Y;return((Y=(e=V.backgroundPromoRenderer)==null?void 0:(X=e.style)==null?void 0:X.value)!=null?Y:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.p.computeIsSearchVodShelf=function(B,R){return B&&this.containsGridVideoRenderer(R)};
_.p.computeDisableWheelScroll=function(B,R){return this.computeIsSearchVodShelf(B,R)};
_.p.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.p.computeShortsLockupAspectRatio=function(B){return B&&_.k("web_shorts_2_by_3_lockups_no_search")&&!_.k("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.p.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.o_(this.hostElement,{"--ytd-reel-item-thumbnail-height":xLR+"px"})};
HM.prototype.dataChanged=HM.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],HM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Pu.YtdHorizontalListBehavior),_.Z("design:type",Object)],HM.prototype,"ytdHorizontalListBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],HM.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],HM.prototype,"isExpandableContent",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"hideShelfHeader",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"engagementPanel",void 0);_.r([_.E(),_.Z("design:type",Array)],HM.prototype,"buttonClasses",void 0);_.r([_.E(),_.Z("design:type",Object)],HM.prototype,"isSearch",void 0);
_.r([_.E(),_.Z("design:type",Object)],HM.prototype,"disableScrollEventListener",void 0);_.r([_.E({computed:"computeInitialCountNumber(data)"}),_.Z("design:type",Number)],HM.prototype,"initialCount",void 0);_.r([_.E({computed:"computeContainsPost(data)"}),_.Z("design:type",Boolean)],HM.prototype,"supportComponentResize",void 0);_.r([_.E({computed:"computeContainsPost(data)"}),_.Z("design:type",Boolean)],HM.prototype,"containsPost",void 0);
_.r([_.E({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"containsLockup",void 0);_.r([_.E({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],HM.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.r([_.E({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"overrideArrowPositionForProductCard",void 0);_.r([_.E({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.r([_.E({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"overrideArrowPositionForReelItems",void 0);_.r([_.E({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"overrideArrowPositionForGridMovie",void 0);
_.r([_.E({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"overrideArrowPositionToCenter",void 0);_.r([_.E({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"isSearchPostShelf",void 0);_.r([_.E({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.r([_.E({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.r([_.E({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"hasBigThumbsReelItems",void 0);
_.r([_.E({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"shouldUseMixedListHeight",void 0);_.r([_.E({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"shouldUseShortsListHeight",void 0);_.r([_.E({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"gridVideoWidth",void 0);
_.r([_.E({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"isSearchVodShelf",void 0);_.r([_.E({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Z("design:type",Object)],HM.prototype,"disableWheelScroll",void 0);_.r([_.E({computed:"computeSizing(isSearch)"}),_.Z("design:type",Object)],HM.prototype,"sizing",void 0);
_.r([_.E({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Z("design:type",Object)],HM.prototype,"shortsLockupAspectRatio",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HM.prototype,"dataChanged",null);
_.F(HM,"yt-horizontal-list-renderer",function(){if(kql===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);kql=B}B=kql;return B},{mode:1});var LjJ;var vKG=[10,12,14,16,18,20,24,28,32,36],KjT=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],M4=function(){var B=_.c.apply(this,arguments)||this;B.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";B.hideOverflow=!1;B.useRoboto=!1;B.fontClass="";B.overflown=!1;B.actionMap={"yt-window-resized":"resize"};return B};
_.l(M4,_.c);_.p=M4.prototype;
_.p.attached=function(){var B=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();_.gB(this,function(){B.resize()});
if(!_.ho){var R,V,e;(R=document)==null||(V=R.fonts)==null||(e=V.ready)==null||e.then(function(){B.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 B=this.getMaxNumLines(),R=this.getMinFont(),V=this.getMaxFont(),e=this.useRoboto?vKG:KjT;for(e=e.filter(function(Y){return Y<=V&&Y>=R});e.length>1;){var X=Math.floor(e.length/2);
this.updateFontSize(e[X]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=B)e=e.slice(X,e.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>B)e=e.slice(0,X);else break}this.updateFontSize(e[e.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(B)}};
_.p.handleOverflow=function(B){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>B&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",B.toString()))};
_.p.updateFontSize=function(B){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+B;this.textNode.classList.add(this.fontClass)};
_.p.getMaxFont=function(){var B=this.useRoboto?vKG:KjT;B=B[B.length-1];return this.maxFontSize&&this.maxFontSize<=B?this.maxFontSize:B};
_.p.getMinFont=function(){var B=(this.useRoboto?vKG:KjT)[0];return this.minFontSize&&this.minFontSize>=B?this.minFontSize:B};
_.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+_.FF(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()}};
M4.prototype.guideIsExpandedChanged=M4.prototype.guideIsExpandedChanged;M4.prototype.dataChanged=M4.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],M4.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],M4.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],M4.prototype,"text",void 0);
_.r([_.E(),_.Z("design:type",String)],M4.prototype,"fontFamily",void 0);_.r([_.E(),_.Z("design:type",Number)],M4.prototype,"maxWidth",void 0);_.r([_.E(),_.Z("design:type",Number)],M4.prototype,"maxHeight",void 0);_.r([_.E(),_.Z("design:type",Number)],M4.prototype,"maxFontSize",void 0);_.r([_.E(),_.Z("design:type",Number)],M4.prototype,"minFontSize",void 0);_.r([_.E(),_.Z("design:type",Number)],M4.prototype,"maxLines",void 0);_.r([_.E(),_.Z("design:type",Object)],M4.prototype,"hideOverflow",void 0);
_.r([_.E({selector:_.luK}),_.Z("design:type",Boolean)],M4.prototype,"guideIsExpanded",void 0);_.r([_.Yp("#container"),_.Z("design:type",HTMLElement)],M4.prototype,"containerNode",void 0);_.r([_.Yp("#text"),_.Z("design:type",HTMLElement)],M4.prototype,"textNode",void 0);_.r([_.bp("text"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],M4.prototype,"dataChanged",null);
_.r([_.bp("guideIsExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],M4.prototype,"guideIsExpandedChanged",null);M4=_.r([_.A({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],M4);
_.F(M4,"yt-dynamic-sizing-formatted-string",function(){if(LjJ!==void 0)return LjJ;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return LjJ=B},{mode:1});var ILT;_.EK4=function(B){_.o5.call(this,B)};
_.l(_.EK4,_.o5);var QtG=function(B){_.o5.call(this,B)};
_.l(QtG,_.EK4);var Df=function(){return _.c.apply(this,arguments)||this};
_.l(Df,_.c);Df.prototype.onTapSuspendedChannel=function(){var B;if((B=this.data)!=null&&B.serviceEndpoint){var R,V;(B=(V=_.D((R=this.data)==null?void 0:R.serviceEndpoint,_.ie))==null?void 0:V.url)?_.TF(B,void 0,void 0,window.top):(R=new QtG("Did not handle suspended account tap. No appealUrl."),_.Tn(R))}else R=new QtG("Did not handle suspended account tap. No serviceEndpoint."),_.Tn(R)};
Df.prototype.onTap=function(){var B=this,R=_.WK(),V,e=(V=_.tJ(R,{veType:7116}))!=null?V:void 0;_.Es(R,{visualElement:e});_.dr();this.saveRoleText();var X;if((X=this.data)==null?0:X.youtubeSuspended)this.onTapSuspendedChannel();else{var Y=!1,t,b;(R=(b=_.D((t=this.data)==null?void 0:t.serviceEndpoint,_.Iu4))==null?void 0:b.supportedTokens)&&R.forEach(function(J){if(J.accountSigninToken)if(Y=!0,B.onAccountItemTap)B.onAccountItemTap(J.accountSigninToken.signinUrl);else _.TF(J.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!Y){if(t=this.get("serviceEndpoint",this.data))Y=!0,this.ytComponentBehavior.resolveCommand(t);Y||_.v5(new QtG("Did not handle account switch tap. No token."))}}};
Df.prototype.saveRoleText=function(){if(this.data){var B=this.data,R=B.channelDelegationRole;if(R){var V,e=(V=_.D(B==null?void 0:B.serviceEndpoint,_.Iu4))==null?void 0:V.supportedTokens;if(!e){var X,Y,t,b;e=(X=_.D(B==null?void 0:B.serviceEndpoint,_.ai))==null?void 0:(Y=X.popup)==null?void 0:(t=Y.confirmDialogRenderer)==null?void 0:(b=t.confirmButton)==null?void 0:b.buttonRenderer;var J;e=(J=_.D(e==null?void 0:e.command,_.p0))==null?void 0:J.commands;if(!e)return;var G;e=(G=_.D(e[1],_.Iu4))==null?
void 0:G.supportedTokens}if(e){J=void 0;G=_.h(e);for(e=G.next();!e.done;e=G.next())if(e=e.value,e.datasyncIdToken){J=e.datasyncIdToken.datasyncIdToken;break}if(J){var y;a:{if(_.puu()&&(G=_.MkN(J+"::pom"))){G=new bG(G);break a}G=void 0}(y=G)==null||y.set("role_text",R);if((HLS?HLS:window.location).href.indexOf("studio")!==-1&&(y=Y_x())){G=y.src?(new URL(y.src)).origin:"*";var S;(S=y.contentWindow)==null||S.postMessage({action:"save_pom_role",datasyncId:J,roleText:R},G)}}}}}};
_.mh.Object.defineProperties(Df.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(B=this.data)==null?void 0:(R=B.accountPhoto)==null?void 0:R.thumbnails;return V&&V.length>0&&(V[0].height===36||V[0].height===48)?V[0].height:40}}});
Df.prototype.onTap=Df.prototype.onTap;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Df.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Df.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!1}),_.Z("design:type",Function)],Df.prototype,"onAccountItemTap",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Df.prototype,"enableRingForActiveAccount",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Df.prototype,"thumbnailSize",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Df.prototype,"onTap",null);Df=_.r([_.A({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Df);
_.F(Df,"ytd-account-item-renderer",function(){if(ILT!==void 0)return ILT;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return ILT=B},{mode:1});var qv4;var f_=function(){return _.c.apply(this,arguments)||this};
_.l(f_,_.c);f_.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.Oz().resolve(_.oC).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],f_.prototype,"data",void 0);f_=_.r([_.A({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],f_);
_.F(f_,"ytd-identity-chip-renderer",function(){if(qv4!==void 0)return qv4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return qv4=B},{mode:1});var cCb;var ACJ;var iM_;var st_;var lE=function(){var B=_.c.apply(this,arguments)||this;B.richItemMinWidth=_.RC("wn_grid_min_item_width",310);B.isShorts=!1;B.isWatchNext=!1;B.isExploreHub=!1;return B};
_.l(lE,_.c);_.mh.Object.defineProperties(lE.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var B=[],R=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.o_(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var V;if(((V=this.data)==null?0:V.rows)&&R)for(R*=this.data.rows,V=0;V<R;V++)B.push({});return B}}});
_.r([_.v(_.dt),_.Z("design:type",Object)],lE.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lE.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.ar,value:3}),_.Z("design:type",Number)],lE.prototype,"itemsPerRow",void 0);_.r([_.E({selector:_.fud,value:6}),_.Z("design:type",Number)],lE.prototype,"slimItemsPerRow",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Number)],lE.prototype,"richItemMinWidth",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],lE.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lE.prototype,"isShorts",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lE.prototype,"isWatchNext",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lE.prototype,"isExploreHub",void 0);
_.r([_.K("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],lE.prototype,"cardItems",null);lE=_.r([_.A({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],lE);
_.Fjv=_.nJ()(lE,"ytd-ghost-grid-renderer",function(){if(st_===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);st_=B}B=st_;return B},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.mR(_.sx(function(B){var R=_.ip(B,{numberOfComments:3}).numberOfComments,V=_.ip(B,{isInitialLoad:!1}).isInitialLoad,e=_.ip(B,{engagementPanel:!1}).engagementPanel,X=function(){return Math.min(Number(R==null?void 0:R())||20,20)};
return _.N("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.N(_.H,{cond:function(){return!(e==null?0:e())&&(V==null?void 0:V())},
then:function(){return _.N("div",{class:"ytGhostCommentsComments"},_.N("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.N("div",{class:_.XE("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.N("div",{class:_.XE("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.N("div",{class:"ytGhostCommentsGhostCard"},_.N("div",{class:"ytGhostCommentsAvatar"},_.N("div",{class:"ytGhostCommentsCircle"})),_.N("div",{class:"ytGhostCommentsComments"},_.N("div",{class:"ytGhostCommentsMeta"},
_.N("div",{class:_.XE("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.N("div",{class:_.XE("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.N("div",{class:"ytGhostCommentsComments"},_.N(_.yh,{each:function(){return Array((X==null?void 0:X())||3)}},function(){return _.N("div",{class:"ytGhostCommentsGhostCard"},_.N("div",{class:"ytGhostCommentsAvatar"},_.N("div",{class:"ytGhostCommentsCircle"})),_.N("div",{class:"ytGhostCommentsHost"},_.N("div",{class:"ytGhostCommentsMeta"},
_.N("div",{class:_.XE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.N("div",{class:_.XE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.N("div",{class:_.XE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.N("div",{class:"ytGhostCommentsGhostLikeDislike"},_.N("div",{class:_.XE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.N("div",{class:_.XE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"bb"),"yt-ghost-comments",{props:{numberOfComments:_.qq,
isInitialLoad:_.qq,engagementPanel:_.qq}});_.aO("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var zf=function(){var B=_.c.apply(this,arguments)||this;B.isOverridable=!1;B.spinnerActive=!1;B.showButton=!1;B.isCommentsSection=!1;B.engagementPanel=!0;B.isShortsGrid=!1;B.isShortsPage=!1;B.isWatchPage=!1;B.ghostCardExperimentEnabled=_.k("show_ghost_comments_shorts_watch")||_.k("show_ghost_comments_desktop_watch");B.originalShowButton=!1;B.endOfList=!1;return B};
_.l(zf,_.c);_.p=zf.prototype;_.p.resetIntersectionObserver=function(){var B;(B=this.observer)==null||B.disconnect();this.observer=void 0};
_.p.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var B,R;((B=this.data)==null?void 0:B.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((R=this.data)==null?0:R.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.p.initializeIntersectionObserver=function(){var B=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(R){R=_.h(R);for(var V=R.next();!V.done;V=R.next())V.value.isIntersecting&&(B.triggerContinuation(),B.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 B;((B=this.data)==null?0:B.continuationEndpoint)&&(B=_.D(this.data.continuationEndpoint,_.xB))&&this.ytdReduxBehavior.dispatch(_.or({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:B}}))};
_.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(B,R){if(!_.k("kevlar_hide_spinner_on_empty_continuation_killswitch")){var V;(V=R.actions)!=null&&V.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 B=3;if(this.engagementPanel){var R,V,e;B=Math.floor(((((R=this.hostElement)==null?void 0:(V=R.parentElement)==null?void 0:(e=V.parentElement)==null?void 0:e.scrollHeight)||108)-108)/108);B=this.isInitialLoad?Math.max(B,3):3}R=[].concat(_.MI(this.hostElement.querySelectorAll("yt-ghost-comments")));R=_.h(R);for(V=R.next();!V.done;V=R.next())V=V.value,V.numberOfComments=B,V.isInitialLoad=this.isInitialLoad,V.engagementPanel=
this.engagementPanel}};
_.p.detached=function(){this.resetIntersectionObserver()};
_.mh.Object.defineProperties(zf.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.k("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.k("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
zf.prototype.numberOfGhostCommentsChanged=zf.prototype.numberOfGhostCommentsChanged;zf.prototype.continuationTriggerOffsetChanged=zf.prototype.continuationTriggerOffsetChanged;zf.prototype.showButtonChanged=zf.prototype.showButtonChanged;zf.prototype.onYtServiceRequestCompletedForButtonRenderer=zf.prototype.onYtServiceRequestCompletedForButtonRenderer;zf.prototype.onServiceRequestCompleted=zf.prototype.onServiceRequestCompleted;zf.prototype.onYtServiceRequestSentForButtonRenderer=zf.prototype.onYtServiceRequestSentForButtonRenderer;
zf.prototype.observeData=zf.prototype.observeData;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.vD.YtVisibilityBehavior),_.Z("design:type",Object)],zf.prototype,"ytVisibilityBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],zf.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],zf.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zf.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],zf.prototype,"isOverridable",void 0);_.r([_.E(),_.Z("design:type",Object)],zf.prototype,"spinnerActive",void 0);_.r([_.E(),_.Z("design:type",Object)],zf.prototype,"showButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zf.prototype,"isCommentsSection",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zf.prototype,"engagementPanel",void 0);_.r([_.E(),_.Z("design:type",Object)],zf.prototype,"isShortsGrid",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.auq}),_.Z("design:type",Object)],zf.prototype,"isShortsPage",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.w6}),_.Z("design:type",Object)],zf.prototype,"isWatchPage",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zf.prototype,"ghostCardExperimentEnabled",void 0);
_.r([_.E(),_.Z("design:type",Number)],zf.prototype,"continuationTriggerOffset",void 0);_.r([_.E(),_.Z("design:type",Object)],zf.prototype,"endOfList",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zf.prototype,"isInitialLoad",void 0);_.r([_.Yp("ytd-button-renderer"),_.Z("design:type",_.sH)],zf.prototype,"buttonRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],zf.prototype,"buttonOverrides",void 0);
_.r([_.E(),_.K("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zf.prototype,"isShortsCommentsSection",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zf.prototype,"observeData",null);
_.r([_.R_("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zf.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],zf.prototype,"onServiceRequestCompleted",null);
_.r([_.R_("yt-service-request-completed-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zf.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.r([_.bp("showButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zf.prototype,"showButtonChanged",null);
_.r([_.bp("continuationTriggerOffset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zf.prototype,"continuationTriggerOffsetChanged",null);_.r([_.XX("isInitialLoad","engagementPanel"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zf.prototype,"numberOfGhostCommentsChanged",null);zf=_.r([_.A({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],zf);
_.F(zf,"ytd-continuation-item-renderer",function(){if(iM_!==void 0)return iM_;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return iM_=B},{mode:1});var rCb;var a0=function(){var B=_.c.apply(this,arguments)||this;B.downloadProgress=0;B.transferState="TRANSFER_STATE_UNKNOWN";B.downloadState="DOWNLOAD_STATE_UNKNOWN";B.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";B.offlineVideoPolicyExpirationTimestamp=0;B.downloadedVideoPlaybackPosition=0;return B};
_.l(a0,_.c);a0.prototype.dataChanged=function(){var B;this.videoData=_.D((B=this.data)==null?void 0:B.renderer,Wp_);this.transferStateChanged()};
a0.prototype.downloadProgressChanged=function(){if(this.entityInfo){var B=Object.assign({},this.videoData),R=f0N(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),V=R.publishedTimeText,e=R.badges;B.shortViewCountText=R.shortViewCountText;B.publishedTimeText=V;B.badges=e;this.set("videoData",B)}};
a0.prototype.transferStateChanged=function(){if(this.entityInfo){var B=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",R=_.NR(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!U$(this.entityInfo.policyEntity),V=Object.assign({},this.videoData),e=f0N(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),X=e.publishedTimeText,Y=e.badges;V.shortViewCountText=
e.shortViewCountText;V.publishedTimeText=X;V.badges=Y;V.isDisabled=R;V.isWatched=this.downloadedVideoPlaybackPosition>0;V.navigationEndpoint=R?void 0:Ogd(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var t;B&&((t=this.videoData)==null?0:t.videoId)&&!_.k("dl_resume_click_killswitch")&&(V.isDisabled=!1,V.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});V.thumbnailOverlays=keo(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",V)}};
a0.prototype.transferStateChanged=a0.prototype.transferStateChanged;a0.prototype.downloadProgressChanged=a0.prototype.downloadProgressChanged;a0.prototype.dataChanged=a0.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],a0.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],a0.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],a0.prototype,"videoData",void 0);_.r([_.E({selector:L7,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],a0.prototype,"downloadProgress",void 0);_.r([_.E(),_.Z("design:type",Number)],a0.prototype,"relativeDateReference",void 0);_.r([_.E({selector:_.Tz,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],a0.prototype,"transferState",void 0);
_.r([_.E({selector:mfI,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],a0.prototype,"downloadState",void 0);_.r([_.E({selector:vix,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],a0.prototype,"offlinePolicyAction",void 0);_.r([_.E({selector:K8S,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],a0.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.r([_.E({selector:vk,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],a0.prototype,"downloadedVideoPlaybackPosition",void 0);_.r([_.E({selector:Eid,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],a0.prototype,"entityInfo",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],a0.prototype,"isDownloading",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a0.prototype,"dataChanged",null);
_.r([_.bp("downloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a0.prototype,"downloadProgressChanged",null);_.r([_.bp("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a0.prototype,"transferStateChanged",null);
a0=_.r([_.A({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],a0);
_.F(a0,"ytd-downloaded-video-grid-video-renderer",function(){if(rCb!==void 0)return rCb;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return rCb=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var gKR;var d$=function(){};
d$.prototype.resolve=function(B,R){var V=this;return _.W(function(e){return _.U(e,V.resolveCommand(B,R),0)})};var ZMv,w$;ZMv=f3S(function(B){return B.targetId},{shouldPersist:!1});
w$=ZMv.updateData;_.mL5=ZMv.useUpdatableData;var $L4,CZa;$L4=f3S(function(B){return B.targetId});
CZa=$L4.updateData;_.PZa=$L4.useUpdatableData;var nKT=HvK.bind(null,w$),u$4=HvK.bind(null,CZa);(function(B,R,V){var e=_.D(V==null?void 0:V.updatedRenderer,_.Afb);return e?B({targetId:R},function(){return e}):!1}).bind(null,w$);var Tf=function(){};
_.l(Tf,d$);Tf.prototype.resolveCommand=function(B){var R;return _.W(function(V){R=_.D(B,_.qio);if(!R)return V.return();nKT(R.targetId,R);_.b3(V)})};var xn=function(){var B=_.tM.apply(this,arguments)||this;B.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return B};
_.l(xn,_.tM);_.p=xn.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(B){var R=_.D(B,_.SO5);if(this.data&&this.data.targetId&&R&&this.continuationPathMap&&R.targetId===this.data.targetId){var V=sT_(B);if((B=V&&this.continuationPathMap[V])&&V){V=this.get(B,this.data);var e;a:{for(e=0;e<V.length;e++){var X=V[e],Y=void 0,t=!!_.D((Y=_.D(X,BK4))==null?void 0:Y.content,_.p6l);if(_.D(X,_.YQ)||t)break a}e=V.length}B="data."+B;R.continuationItems?e===V.length-1?(this.pop(B),this.push.apply(this,[B].concat(_.MI(R.continuationItems)))):
e===V.length?this.push.apply(this,[B].concat(_.MI(R.continuationItems))):this.splice.apply(this,[B,e,1].concat(_.MI(R.continuationItems))):this.splice(B,e,1);(_.k("web_enable_voting_animation")||_.k("enable_music_web_cairo_voting_animation"))&&_.OI(this.hostElement,"yt-append-continuation-items-action-finished");_.OI(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.KE(new _.H8("append continuation path does not exist",V))}};
_.p.handleReloadContinuationItemsCommand=function(B){var R=_.D(B,_.qio);if(this.data&&R){if(_.k("web_explore_hub")||_.k("web_client_explore_hub")||_.k("web_explore_hub_on_hover")||_.k("web_client_explore_hub_on_hover"))try{_.Oz().resolve(Tf).resolveCommand(B)}catch(Y){}if(this.data.targetId&&this.continuationPathMap&&R.targetId===this.data.targetId&&(!_.k("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||R.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var V,e=
(V=R.slot)==null?void 0:V.replace("RELOAD_CONTINUATION_SLOT_","");V=(B=sT_(B)+"-"+(e==null?void 0:e.toLowerCase()))&&this.continuationPathMap[B];if(!V||!B||!e)_.KE(new _.H8("reload continuation path does not exist",B));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(R)){if(R.replaceWithFirstItem){var X;this.set("data."+V,((X=R.continuationItems)==null?0:X.length)?R.continuationItems[0]:{})}else this.set("data."+V,R.continuationItems?R.continuationItems:
[]);this.continuationIsReloading=!1;_.OI(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.p.handleShowReloadUiCommand=function(B){B=_.D(B,vPv);var R;((R=this.data)==null?0:R.targetId)&&(B==null?0:B.targetId)&&B.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
xn.prototype.observeData=xn.prototype.observeData;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],xn.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],xn.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],xn.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],xn.prototype,"continuationIsReloading",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xn.prototype,"observeData",null);xn=_.r([_.Wc()],xn);_.L_=[_.Tk.YtComponentBehavior,_.$Z.YtActionHandlerBehavior,xn.prototype];_.vM={};_.vM.YtNextContinuationBehavior=[_.Fk.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",_.Bc(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Bc(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(B,R){B.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,R,{}):(B={locationRetrieved:function(V){this.makeNextContinuationRequest_(V,R,{})}.bind(this)},_.OI(this.hostElement,"yt-retrieve-location",B))},
makeNextContinuationRequest_:function(B,R,V){_.aF("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();B=R(B);var e;this.canUseContextualNetworkManager_()&&(e=this.getNetworkManager());e||(e=_.Oz().resolve(_.H$));R=_.QK.instance;if(_.vE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&R){e=_.Zz([B.startsWith("/")?B.substr(1):B]);var X,Y;V=_.vC(R,{},e,V==null?void 0:(X=V.context)==null?void 0:(Y=X.clickTracking)==null?void 0:Y.clickTrackingParams).then(function(t){return{response:t}})}else V=
this.nextContinuation.usePost?e.postData(B,V):e.fetchData(B);
V.then(this.updateNextContinuationData_.bind(this,B));this.pendingContinuationRequest_=V;this.startListeningForNavigate_()},
updateNextContinuationData_:function(B,R){var V=this;_.aF("ncl");this.pendingContinuationRequest_=void 0;if(R){var e={};this.nextContinuation&&(e=this.nextContinuation);if(R.response&&R.response.continuationContents&&R.response.continuationContents[e.continuationType]){B=R.response.continuationContents[e.continuationType];var X=e.header||"data.header",Y=B[e.responseHeaderKey||"header"];Y&&this.set(X,Y);X=e.contentsArray||"data.contents";Y=this.getContents_(B,e.responseContentsKey||"contents")||[];
this.pathExists_(X)?(Y.unshift(X),this.push.apply(this,Y)):this.set(X,Y);Y&&(MTo(_.WK(),R.response,this.hostElement,function(t){_.oF(V.hostElement,"yt-store-grafted-ve-action",[t])}),_.OI(this.hostElement,"yt-next-continuation-data-updated",{continuationData:R,
page:this,contentsArray:X}));this.set(e.continuationsArray||"data.continuations",B[e.responseContinuationsKey||"continuations"]||[])}else R.reload?_.KE(new _.H8("Reloading from continuation is unsupported")):R.responseContext&&R.responseContext.errors||(delete R.xsrf_token,delete R.timing,delete R.endpoint,delete R.csn,R.responseContext&&delete R.responseContext.serviceTrackingParams,X={request:_.rg(B,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(R).sort()},R.response&&(X.responseContentKeys=
Object.keys(R.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(X.continuationType=this.nextContinuation.continuationType.substr(0,256)),R=new _.H8("Malformed continuation",X),B.indexOf("/comment_service_ajax")==0?_.KE(R):_.Tn(R)),this.set(e.continuationsArray||"data.continuations",[])}else _.v5(new _.H8("Missing continuation response",B))},
getContents_:function(B,R){R=R.split(".");return _.M_.getValueByKeys(B,R)},
pathExists_:function(B){var R=this;B=B.toString().split(".");for(var V=0;V<B.length;V++)if(R=R[B[V]],R===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var OMv;var oMa;var K_=function(){var B=_.c.apply(this,arguments)||this;B.triggered_=!1;return B};
_.l(K_,_.c);_.p=K_.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_||(_.OI(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(B,R){return B===void 0?null:B.label||!R?B.label:this.showMoreText_};
_.p.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.p.getContinuationUrl=function(B){var R={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(R.itct=this.data.clickTrackingParams);return _.gg(B,R)};
_.p.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
K_.prototype.showButtonChanged_=K_.prototype.showButtonChanged_;K_.prototype.observeData_=K_.prototype.observeData_;_.r([_.v(_.vD.YtVisibilityBehavior),_.Z("design:type",Object)],K_.prototype,"ytVisibilityBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],K_.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],K_.prototype,"showButton",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],K_.prototype,"showIcon",void 0);_.r([_.E({computed:"computeLabel_(data, showButton)"}),_.Z("design:type",Object)],K_.prototype,"label",void 0);_.r([_.E({value:_.s$(_.Wz("SHOW_MORE",void 0,"Show More"))}),_.Z("design:type",Object)],K_.prototype,"showMoreText_",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],K_.prototype,"spinnerActive_",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],K_.prototype,"hasBeenTriggered_",void 0);
_.r([_.E({value:void 0}),_.Z("design:type",String)],K_.prototype,"observeVisibleOption",void 0);_.r([_.E({value:void 0}),_.Z("design:type",String)],K_.prototype,"observeHiddenOption",void 0);_.r([_.E({value:"observe_once"}),_.Z("design:type",Object)],K_.prototype,"observePrescanOption",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K_.prototype,"observeData_",null);
_.r([_.XX("showButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K_.prototype,"showButtonChanged_",null);K_=_.r([_.fJ({is:"yt-next-continuation",disableElementRegistration:!0})],K_);
_.F(K_,"yt-next-continuation",function(){if(oMa===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;OMv===void 0&&(OMv=document.createElement("template"));var e=OMv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);oMa=B}B=oMa;return B},{mode:2});var BRT;var RKo;var I0=function(){return _.c.apply(this,arguments)||this};
_.l(I0,_.c);I0.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],I0.prototype,"data",void 0);I0=_.r([_.fJ({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],I0);
_.F(I0,"yt-music-pass-small-feature-info-renderer",function(){if(RKo===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;BRT===void 0&&(BRT=document.createElement("template"));var e=BRT;V.call(R,e.content.cloneNode(!0),B.content.firstChild);RKo=B}B=RKo;return B},{mode:2});_.aO("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Eu=function(){var B=_.c.apply(this,arguments)||this;B.isCollapsible=!1;B.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return B};
_.l(Eu,_.c);_.p=Eu.prototype;_.p.computeIsCollapsible=function(B){return!!(((B==null?0:B.showMoreText)||(B==null?0:B.visibleRowCount))&&(B==null?0:B.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 B=this;_.LJ(this,"updateGridInitItems",function(){B.maybeUpdateInitialItemsDisplayed()})};
_.p.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var B=this.getVisibleWidth();B!==0&&(B=Math.floor(B/214)*(this.data.visibleRowCount||2),B!==this.initialCount&&(this.initialCount=B,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.p.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.p.computeExpandVisible=function(B,R,V,e){return B&&R&&V&&!!e&&!!e.showMoreText};
_.p.computeShowMoreButton=function(B){return{text:B,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.p.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.p.initCollapsed=function(){var B=this;this.ytLazyListBehavior.canShowMore=!1;var R;(this.collapsed=!((R=this.data)==null||!R.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.gB(this,function(){_.Bz(B.hostElement,"yt-refit-popups-action")})};
_.p.fillRestIfNotCollapsible=function(){var B=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!B||this.ytLazyListBehavior.fillRemainingListItems()};
_.p.computeViewAllHidden=function(B,R){return B||!R.viewAllEndpoint};
Eu.prototype.fillRestIfNotCollapsible=Eu.prototype.fillRestIfNotCollapsible;Eu.prototype.initCollapsed=Eu.prototype.initCollapsed;Eu.prototype.onIronResize=Eu.prototype.onIronResize;Eu.prototype.persistentGuideChanged=Eu.prototype.persistentGuideChanged;_.r([_.v(_.LC),_.Z("design:type",Object)],Eu.prototype,"ironResizableBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.CL.YtLazyListBehavior),_.Z("design:type",Object)],Eu.prototype,"ytLazyListBehavior",void 0);_.r([_.v(_.vM.YtNextContinuationBehavior),_.Z("design:type",Object)],Eu.prototype,"ytNextContinuationBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Eu.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.v(_.L_),_.Z("design:type",Object)],Eu.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Eu.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],Eu.prototype,"collapsed",void 0);_.r([_.E(),_.Z("design:type",Number)],Eu.prototype,"initialCount",void 0);_.r([_.E({computed:"computeShowMoreButton(data.showMoreText)"}),_.Z("design:type",Object)],Eu.prototype,"showMoreButton",void 0);
_.r([_.E({computed:"computeIsCollapsible(data)"}),_.Z("design:type",Object)],Eu.prototype,"isCollapsible",void 0);_.r([_.Yp("#items"),_.Z("design:type",HTMLElement)],Eu.prototype,"items",void 0);_.r([_.bp("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Eu.prototype,"persistentGuideChanged",null);_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Eu.prototype,"onIronResize",null);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Eu.prototype,"initCollapsed",null);_.r([_.bp("canShowMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Eu.prototype,"fillRestIfNotCollapsible",null);Eu=_.r([_.A({is:"ytd-grid-renderer",disableElementRegistration:!0})],Eu);
_.F(Eu,"ytd-grid-renderer",function(){if(gKR!==void 0)return gKR;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return gKR=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var Q$=function(){return _.c.apply(this,arguments)||this};
_.l(Q$,_.c);
Q$.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"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Q$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Q$.prototype,"data",void 0);Q$=_.r([_.A({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Q$);
_.F(Q$,"ytd-carousel-ad-renderer",function(){if(ACJ!==void 0)return ACJ;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ACJ=B},{mode:1});var VT4;var q4=function(){return _.c.apply(this,arguments)||this};
_.l(q4,_.c);_.p=q4.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,q4.JSC$13176_CLICK_LOCATION_ID_MAP))};
_.p.onSitelinkTap=function(B){B.stopPropagation();var R,V,e=B==null?void 0:(R=B.model)==null?void 0:(V=R.item)==null?void 0:V.onTap;e&&this.ytSparklesClickLocationBehavior.handleClick(e,B,!1)};
_.p.onTap=function(B){var R=this.data&&this.data.content&&this.data.content.navigationEndpoint;R&&this.ytSparklesClickLocationBehavior.handleClick(R,B,!1)};
_.p.sendImpression=function(){if(this.data&&this.data.content)for(var B=_.h(this.data.content.impressionEndpoints||[]),R=B.next();!R.done;R=B.next()){R=_.h(R.value.loggingUrls||[]);for(var V=R.next();!V.done;V=R.next())V=V.value,V.baseUrl&&cf(V.baseUrl,V.attributionSrcMode)}};
q4.prototype.onTap=q4.prototype.onTap;q4.prototype.dataChanged=q4.prototype.dataChanged;q4.JSC$13176_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"]]);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$c.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],q4.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],q4.prototype,"data",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],q4.prototype,"dataChanged",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],q4.prototype,"onTap",null);q4=_.r([_.A({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],q4);
_.F(q4,"ytd-promoted-sparkles-text-search-renderer",function(){if(VT4!==void 0)return VT4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return VT4=B},{mode:1});var eKl;var cM=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-mute-ad-action":"handleMuteAd"};return B};
_.l(cM,_.c);_.p=cM.prototype;
_.p.configureRendererStamper=function(){return{"data.menu":{id:_.k("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(B){return!(B==null||!B.adBadge)};
_.p.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",cM.JSC$13185_DEFAULT_AD_BADGE_RENDERER),_.nk(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,cM.JSC$13185_CLICK_LOCATION_ID_MAP))};
_.p.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var B;(((B=this.data)==null?void 0:B.impressionCommands)||[]).forEach(function(R){R=_.h(R.loggingUrls||[]);for(var V=R.next();!V.done;V=R.next())V=V.value,V.baseUrl&&cf(V.baseUrl,V.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.p.onTap=function(B){var R,V=(R=this.data)==null?void 0:R.navigationEndpoint,e;(R=(e=this.data)==null?void 0:e.thumbnailNavigationEndpoint)&&_.ZP(_.Az(B),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(R,B,!1):V&&this.ytSparklesClickLocationBehavior.handleClick(V,B,!1)};
_.p.handleMuteAd=function(){this.collapsed=!0};
_.p.attached=function(){var B=this;_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.k("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.mh.Object.defineProperties(cM.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var B;return!(((B=this.data)==null?void 0:B.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var B;return!(((B=this.data)==null?void 0:B.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.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}}});
cM.prototype.dataChanged=cM.prototype.dataChanged;
cM.JSC$13185_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"]]);
cM.JSC$13185_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Wz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.r([_.v(zY),_.Z("design:type",Object)],cM.prototype,"ytdActiveViewBehavior",void 0);
_.r([_.v([_.$Z.YtActionHandlerBehavior]),_.Z("design:type",Object)],cM.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.$c.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],cM.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cM.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],cM.prototype,"collapsed",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],cM.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.V_("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],cM.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Z("design:type",Boolean)],cM.prototype,"fixAlignmentSmallScreens",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_desktop_search_bigger_thumbs_square")}}),
_.Z("design:type",Boolean)],cM.prototype,"useBiggerThumbsSquare",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data.mediaHoverOverlay"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cM.prototype,"hideHoverOverlay",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cM.prototype,"webSearchLayout",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cM.prototype,"webSearchLayoutLandscape",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cM.prototype,"webSearchLayoutSquare",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cM.prototype,"sparklesCtaNoBackground",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.actionButton"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cM.prototype,"hideActionButton",null);_.r([_.E({computed:"computeButtonOverride(uiUpdate)"}),_.Z("design:type",Object)],cM.prototype,"buttonOverride",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Z("design:type",Boolean)],cM.prototype,"hasNewAdBadge",void 0);_.r([_.K("data.promotedSparklesWebStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cM.prototype,"useRoundedBadge",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cM.prototype,"dataChanged",null);cM=_.r([_.A({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],cM);
_.F(cM,"ytd-promoted-sparkles-web-renderer",function(){if(eKl!==void 0)return eKl;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return eKl=B},{mode:1});var Xlo;var A7=function(){return _.c.apply(this,arguments)||this};
_.l(A7,_.c);_.p=A7.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(B){return!(B==null||!B.ctaRenderer)};
_.p.onCtaClick=function(){var B,R,V,e=(B=this.data)==null?void 0:(R=B.ctaRenderer)==null?void 0:(V=R.buttonRenderer)==null?void 0:V.command;e&&this.ytComponentBehavior.resolveCommand(e)};
_.p.onWatchButtonClick=function(){var B,R,V,e=(B=this.data)==null?void 0:(R=B.watchButtonRenderer)==null?void 0:(V=R.buttonRenderer)==null?void 0:V.command;e&&this.ytComponentBehavior.resolveCommand(e)};
_.p.onTap=function(){};
_.p.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",A7.JSC$13188_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",A7.JSC$13188_DEFAULT_CLICK_LOCATION_BEHAVIOR,A7.JSC$13188_CLICK_LOCATION_ID_MAP),this.thumbnail)){var B=this.thumbnail.getElementsByTagName("a");B.length>0&&(B=B.namedItem("thumbnail"))&&B.removeAttribute("href")}};
_.p.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var B=_.h(this.data.impressionUrls),R=B.next();!R.done;R=B.next())R=R.value,zZu(R,d1d(R));this.data.impressionsFired=!0}};
_.p.maybeComputeHref=function(){return null};
_.p.computeIsShortDR=function(B){return!(B==null||!B.watchButtonRenderer)&&!(B==null||!B.ctaRenderer)&&!!this.enableShortDR};
_.p.computeIsNewUiOrShortDr=function(B){return!!this.enableUiUpdate||this.computeIsShortDR(B)};
_.p.computeIsNewUiAndNotShortDr=function(B){return!!this.enableUiUpdate&&!this.computeIsShortDR(B)};
_.p.computeHideAvatar=function(B){return!((B==null?0:B.channelThumbnail)&&this.computeIsNewUiOrShortDr(B))};
_.p.onClick=function(B){var R,V=(R=this.data)==null?void 0:R.navigationEndpoint;if(this.enableShortDR&&V&&(_.D(V,_.sI)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(V,B,!!_.D(V,_.sI)),B.stopPropagation();else if(V&&_.D(V,_.sI))this.ytSparklesClickLocationBehavior.handleClick(V,B,!0),B.stopPropagation();else if(V){var e,X;((e=this.data)==null?0:e.navigationEndpoint)&&((X=this.data)==null?0:X.adPlaybackContextParams)&&yHx(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(V)}};
_.p.computeButtonOverride=function(B){if(this.computeIsNewUiOrShortDr(B))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.p.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.p.onThumbnailContainerClick=function(B){this.onClick(B)};
_.p.computeThumbnailWidth=function(B,R){return B?R==="MASSIVE"?600:R==="BIG"?500:R==="MEDIUM"?450:420:360};
_.p.attached=function(){var B=this;_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.k("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
A7.prototype.dataChanged=A7.prototype.dataChanged;A7.prototype.onTap=A7.prototype.onTap;A7.JSC$13188_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Wz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};A7.JSC$13188_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
A7.JSC$13188_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"}];_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.r([_.v(zY),_.Z("design:type",Object)],A7.prototype,"ytdActiveViewBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],A7.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.$c.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],A7.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],A7.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],A7.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Z("design:type",Boolean)],A7.prototype,"enableShortDR",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_vac_ui_update_for_desktop_search")}}),
_.Z("design:type",Boolean)],A7.prototype,"enableUiUpdate",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.V_("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],A7.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Z("design:type",Boolean)],A7.prototype,"showCta",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Z("design:type",Boolean)],A7.prototype,"isShortDr",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Z("design:type",Boolean)],A7.prototype,"isShortDrOrNewUi",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Z("design:type",Boolean)],A7.prototype,"isNewUiAndNotShortDr",void 0);_.r([_.E({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],A7.prototype,"buttonOverride",void 0);_.r([_.E({computed:"computeSecondaryButtonOverride(data)"}),_.Z("design:type",Object)],A7.prototype,"secondaryButtonOverride",void 0);_.r([_.Yp("ytd-thumbnail"),_.Z("design:type",HTMLElement)],A7.prototype,"thumbnail",void 0);
_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],A7.prototype,"onTap",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],A7.prototype,"dataChanged",null);A7=_.r([_.A({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],A7);
_.F(A7,"ytd-promoted-video-renderer",function(){if(Xlo!==void 0)return Xlo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Xlo=B},{mode:1});var plT;var iE=function(){var B=_.c.apply(this,arguments)||this;B.useRoundedBadge=!0;B.sitelinkIds=[];return B};
_.l(iE,_.c);_.p=iE.prototype;
_.p.configureRendererStamper=function(){return{"data.menu":{id:_.k("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 B;(B=this.data)!=null&&B.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,iE.JSC$13195_CLICK_LOCATION_ID_MAP)};
_.p.onTap=function(B){var R,V=(R=this.data)==null?void 0:R.navigationCommand;V&&!_.ZP(_.Az(B),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(V,B,!1)};
_.p.onSitelinkTap=function(B){var R,V,e=B==null?void 0:(R=B.model)==null?void 0:(V=R.item)==null?void 0:V.onTap;e&&this.ytSparklesClickLocationBehavior.handleClick(e,B,!1)};
_.p.configureSitelinkClickTargets=function(){var B=this,R,V,e=(R=this.data)==null?void 0:(V=R.clickLocationTargets)==null?void 0:V.find(function(X){return X.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
e&&_.w(this.hostElement).querySelectorAll(".sitelink").forEach(function(X){_.nk(X,"yt-simple-endpoint",!0);B.sitelinkIds.push(X.id);var Y,t;(Y=B.ytSparklesClickLocationBehavior)==null||(t=Y.clickTargetMap)==null||t.set(X.id,e)})};
_.p.sendImpression=function(){var B,R,V=((B=this.data)==null?void 0:(R=B.impressionCommand)==null?void 0:R.loggingUrls)||[];B=_.h(V);for(R=B.next();!R.done;R=B.next())R=R.value,R.baseUrl&&cf(R.baseUrl,R.attributionSrcMode)};
_.p.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.mh.Object.defineProperties(iE.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
iE.prototype.onTap=iE.prototype.onTap;iE.prototype.dataChanged=iE.prototype.dataChanged;iE.JSC$13195_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"]]);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],iE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$c.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],iE.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],iE.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iE.prototype,"showFavicon",null);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],iE.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.V_("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],iE.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Z("design:type",Boolean)],iE.prototype,"enableThumbnailScalingFix",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iE.prototype,"dataChanged",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],iE.prototype,"onTap",null);iE=_.r([_.A({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],iE);
_.F(iE,"ytd-text-image-no-button-layout-renderer",function(){if(plT!==void 0)return plT;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return plT=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var YCo;var su=function(){var B=_.c.apply(this,arguments)||this;B.isInlinePlaybackState=!1;B.uiUpdate=_.k("web_modern_buttons");B.hideCta=_.k("hide_cta_for_home_web_video_ads");B.noBottomMargin=!1;B.animateInTimeStamp=_.RC("hide_cta_for_home_web_video_ads_animate_in_time");B.animateInCta=!1;B.isHovered=!1;B.player=null;B.JSC$13202_playerEvents=new Map;B.JSC$13202_preventProgressSaveTimer=null;B.delayedCtaJobId=null;return B};
_.l(su,_.c);_.p=su.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$13202_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13202_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.k("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$13202_playerEvents)};
_.p.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",su.JSC$13201_DEFAULT_CLICK_LOCATION_BEHAVIOR,su.JSC$13201_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.p.hoverChanged=function(){var B=this;this.delayedCtaJobId&&(_.dV.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.k("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.kx(_.dV,function(){B.buttonContainer.classList.add("show-delayed-buttons")},_.RC("delayed_cta_on_web_delay_milliseconds")))};
_.p.setPlayer=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return(R=_.Bz(B.hostElement,"yt-get-inline-preview-player-action"))&&R[0]?_.U(V,R[0].getPlayerPromise(),3):V.jumpTo(0);B.player=V.yieldResult;B.ytPlayerListenerBehavior.listenToPlayerEvents(B.player,B.JSC$13202_playerEvents);_.b3(V)})};
_.p.onPlaybackStart=function(){var B=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13202_preventProgressSaveTimer=_.ua(_.dV,function(){B.JSC$13202_preventProgressSaveTimer=null},1E4))};
_.p.onVideoProgress=function(B){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&B>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.p.resetPreventProgressSaveTimer=function(){_.dV.cancelJob(this.JSC$13202_preventProgressSaveTimer);this.JSC$13202_preventProgressSaveTimer=null};
_.p.getSimpleString=function(B){return _.FF(B)};
_.p.onClick=function(B){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var R,V=(R=this.data)==null?void 0:R.navigationEndpoint,e;R=(e=this.data)==null?void 0:e.channelEndpoint;var X,Y;(e=(Y=_.D((X=this.data)==null?void 0:X.adCtaButton,_.Ii))==null?void 0:Y.command)&&_.ZP(_.Az(B),this.hostElement,["call-to-action"])?_.k("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(e,B,!1):R&&_.ZP(_.Az(B),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(R,B,!1):!_.ZP(_.Az(B),this.hostElement,["secondary-button"])&&V&&(_.k("enable_short_dr_for_desktop_launchable")?(X=!!_.D(V,_.sI),this.isInlinePlaybackState&&X&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(V,B,X)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(V,B,!0)))}};
_.p.updateWatchEndpointStartTime=function(){var B,R;this.player&&((B=this.data)==null?0:B.inlinePlaybackEndpoint)&&((R=this.data)==null?0:R.navigationEndpoint)&&!this.JSC$13202_preventProgressSaveTimer&&(B=Math.floor(this.player.getCurrentTime()),_.D(this.data.navigationEndpoint,_.sI).startTimeSeconds=B,_.D(this.data.inlinePlaybackEndpoint,_.sI).startTimeSeconds=B)};
_.p.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.p.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.mh.Object.defineProperties(su.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.k("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null||!B.watchButton)&&!((R=this.data)==null||!R.adCtaButton)}}});
su.prototype.hoverChanged=su.prototype.hoverChanged;su.prototype.dataChanged=su.prototype.dataChanged;
su.JSC$13201_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"]]);
su.JSC$13201_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"}];
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],su.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.$c.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],su.prototype,"ytSparklesClickLocationBehavior",void 0);
_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],su.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],su.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],su.prototype,"isInlinePlaybackState",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],su.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],su.prototype,"uiUpdate",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],su.prototype,"hideCta",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],su.prototype,"noBottomMargin",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],su.prototype,"animateInCta",void 0);_.r([_.E({computed:"computeButtonOverride(uiUpdate)"}),_.Z("design:type",Object)],su.prototype,"buttonOverride",void 0);
_.r([_.E({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Z("design:type",Object)],su.prototype,"secondaryButtonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],su.prototype,"isHovered",void 0);_.r([_.Yp("#button-container"),_.Z("design:type",HTMLElement)],su.prototype,"buttonContainer",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],su.prototype,"typographyBump",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("typographyBump"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],su.prototype,"typographyBumpV2",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],su.prototype,"dataChanged",null);_.r([_.XX("isHovered"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],su.prototype,"hoverChanged",null);
_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],su.prototype,"isButtonGroup",null);su=_.r([_.A({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],su);
_.F(su,"ytd-ad-inline-playback-meta-block",function(){if(YCo!==void 0)return YCo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return YCo=B},{mode:_.up("kevlar_poly_si_batch_j065")?1:2});var hK4;var Fl=function(){var B=_.c.apply(this,arguments)||this;B.noBottomMargin=!1;B.isInlinePreviewTriggered=!1;B.JSC$13207_activeViewMeasurementDataResolver=_.A3();return B};
_.l(Fl,_.c);_.p=Fl.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 B=this;this.updateInlinePreviewHoverListeners();this.JSC$13207_activeViewMeasurementDataResolver.promise.then(function(R){B.ytdActiveViewBehavior.enableActiveViewMeasurement(R,15)});
_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){this.clearInlinePreviewHoverListeners();_.k("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13207_inlinePreviewHoverListener=CO({mediaRenderer:this,lockupElement:this.JSC$13207_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:HMR})};
_.p.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$13207_inlinePreviewHoverListener)==null||Y1(B)};
_.p.onDataChanged=function(){var B;((B=this.data)==null?0:B.activeView)&&this.JSC$13207_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Fl.JSC$13206_DEFAULT_CLICK_LOCATION_BEHAVIOR,Fl.JSC$13206_CLICK_LOCATION_ID_MAP);this.thumbnail&&(B=this.thumbnail.getElementsByTagName("a"),B.length>0&&(B=B.namedItem("thumbnail"))&&B.removeAttribute("href"));var R,V;if(((R=this.data)==
null?0:R.hasAutoplay)||((V=this.data)==null?0:V.forceImpAutoplay)){var e;(e=this.JSC$13207_inlinePreviewHoverListener)==null||xMJ(e)}};
_.p.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.p.onThumbnailContainerClick=function(B){if(this.data&&this.data.navigationEndpoint){var R,V=(R=this.data)==null?void 0:R.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(V,B,!!_.D(V,_.sI));B.stopPropagation()}};
_.p.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.p.impressionLog=function(){var B=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var R,V,e=(V=_.D((R=this.data)==null?void 0:R.onImpression,_.p0))==null?void 0:V.commands;e&&(e.forEach(function(X){X.clickTrackingParams&&delete X.clickTrackingParams;B.ytComponentBehavior.resolveCommand(X)}),this.data.impressionsFired=!0)}};
_.mh.Object.defineProperties(Fl.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$13207_inlinePreviewHoverListener)==null?0:Da(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Fl.prototype.onTypographyBumpChanged=Fl.prototype.onTypographyBumpChanged;Fl.prototype.onDataChanged=Fl.prototype.onDataChanged;Fl.JSC$13206_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Fl.JSC$13206_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"}];
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Fl.prototype,"ytComponentBehavior",void 0);_.r([_.v(zY),_.Z("design:type",Object)],Fl.prototype,"ytdActiveViewBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],Fl.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.v(_.Qi),_.Z("design:type",Object)],Fl.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Fl.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.$c.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],Fl.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Fl.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Fl.prototype,"noBottomMargin",void 0);
_.r([_.E(),_.Z("design:type",Object)],Fl.prototype,"isInlinePreviewTriggered",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],Fl.prototype,"miniMode",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Fl.prototype,"typographyBump",void 0);_.r([_.Yp("ytd-thumbnail"),_.Z("design:type",HTMLElement)],Fl.prototype,"thumbnail",void 0);_.r([_.Yp("#dismissible"),_.Z("design:type",HTMLElement)],Fl.prototype,"JSC$13207_dismissibleMedia",void 0);
_.r([_.Yp("ytd-ad-inline-playback-meta-block"),_.Z("design:type",HTMLElement)],Fl.prototype,"adInlinePlaybackMetaBlock",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fl.prototype,"onDataChanged",null);_.r([_.bp("typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fl.prototype,"onTypographyBumpChanged",null);
_.r([_.K("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Fl.prototype,"isHovered",null);Fl=_.r([_.A({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Fl);
_.F(Fl,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(hK4!==void 0)return hK4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return hK4=B},{mode:1});var tTo;var r$=function(){var B=_.c.apply(this,arguments)||this;B.isInlinePreviewTriggered=!1;B.JSC$13210_activeViewMeasurementDataResolver=_.A3();return B};
_.l(r$,_.c);_.p=r$.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 B=this;this.updateInlinePreviewHoverListeners();this.JSC$13210_activeViewMeasurementDataResolver.promise.then(function(R){B.ytdActiveViewBehavior.enableActiveViewMeasurement(R,15)})};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13210_inlinePreviewHoverListener=CO({mediaRenderer:this,lockupElement:this.JSC$13210_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:HMR})};
_.p.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$13210_inlinePreviewHoverListener)==null||Y1(B)};
_.p.onDataChanged=function(){var B;((B=this.data)==null?0:B.activeView)&&this.JSC$13210_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",r$.JSC$13209_DEFAULT_CLICK_LOCATION_BEHAVIOR,r$.JSC$13209_CLICK_LOCATION_ID_MAP);this.thumbnail&&(B=this.thumbnail.getElementsByTagName("a"),B.length>0&&(B=B.namedItem("thumbnail"))&&B.removeAttribute("href"))};
_.p.onThumbnailContainerClick=function(B){if(this.data&&this.data.navigationEndpoint){var R,V=(R=this.data)==null?void 0:R.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(V,B,!0);B.stopPropagation()}};
_.p.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.p.impressionLog=function(){var B=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var R,V,e=(V=_.D((R=this.data)==null?void 0:R.onImpression,_.p0))==null?void 0:V.commands;e&&(e.forEach(function(X){X.clickTrackingParams&&delete X.clickTrackingParams;_.Oz().resolve(_.oC).resolveCommand(X,{form:{element:B.hostElement}})}),this.data.impressionsFired=!0)}};
_.mh.Object.defineProperties(r$.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$13210_inlinePreviewHoverListener)==null?0:Da(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
r$.prototype.onDataChanged=r$.prototype.onDataChanged;r$.JSC$13209_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);r$.JSC$13209_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"}];_.r([_.v(zY),_.Z("design:type",Object)],r$.prototype,"ytdActiveViewBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],r$.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],r$.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],r$.prototype,"ytdReduxBehavior",void 0);
_.r([_.v(_.$c.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],r$.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],r$.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],r$.prototype,"isInlinePreviewTriggered",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],r$.prototype,"miniMode",void 0);_.r([_.Yp("ytd-thumbnail"),_.Z("design:type",HTMLElement)],r$.prototype,"thumbnail",void 0);
_.r([_.Yp("#dismissible"),_.Z("design:type",HTMLElement)],r$.prototype,"JSC$13210_dismissibleMedia",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],r$.prototype,"onDataChanged",null);_.r([_.K("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],r$.prototype,"isHovered",null);r$=_.r([_.A({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],r$);
_.F(r$,"ytd-video-display-full-buttoned-renderer",function(){if(tTo!==void 0)return tTo;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return tTo=B},{mode:1});var Jk=function(B,R,V,e){e=e===void 0?!1:e;_.o5.call(this,B);this.adsClientErrorMessage=V;this.aggressivelySample=e;this.args=[];R&&this.args.push(R)};
_.l(Jk,_.o5);var WI=function(B,R,V,e){e=e===void 0?!1:e;_.o5.call(this,B);this.adsClientErrorMessage=V;this.aggressivelySample=e;this.args=[];R&&this.args.push(R)};
_.l(WI,_.o5);var Wi2=function(B){_.Hn.call(this);var R=this;this.initializationFunction=B;this.instance=null;this.addOnDisposeCallback(function(){_.Cx(R.instance);R.instance=null})};
_.l(Wi2,_.Hn);Wi2.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.R7("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var wlN=function(){var B=new Map;[].forEach(function(R){B.set(R.JSC$26766_getType(),R)})};new Promise(function(){});var fJq=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"]]),kIZ=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"}]]),bvv=function(B){this.experimentApiProvider=B;B=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=B<.1};var g$=function(B,R,V,e){_.Hn.call(this);this.adsControlFlowEventListeners=R;this.adEventLogger=V;this.experimentApiProvider=e;this.adsControlFlowManagerHelper=B(this,this,this,this,this);_.t4(this,this.adsControlFlowManagerHelper);B=_.h(R);for(R=B.next();!R.done;R=B.next())_.t4(this,R.value)};
_.l(g$,_.Hn);var JBR=function(B,R,V,e){Zf(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",R,V,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e);B=_.h(B.adsControlFlowEventListeners);for(e=B.next();!e.done;e=B.next())JBR(e.value,R,V)};
_.p=g$.prototype;_.p.onOpportunityProcessedExternallyManaged=function(B,R,V,e){Zf(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",B,V,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
_.p.onSlotReceivedExternallyManaged=function(B,R){mM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",B,R)};
_.p.onSlotEntered=function(B){if($n(this.adsControlFlowManagerHelper,B)!=null){mM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",B);this.adsControlFlowManagerHelper.onSlotEntered(B);for(var R=_.h(this.adsControlFlowEventListeners),V=R.next();!V.done;V=R.next())V.value.onSlotEntered(B);if($n(this.adsControlFlowManagerHelper,B)!=null&&$n(this.adsControlFlowManagerHelper,B).isOccupyingSlotType()&&C_(this.adsControlFlowManagerHelper,B)&&!jd_(this.adsControlFlowManagerHelper,B)){var e;PM(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",B,(e=C_(this.adsControlFlowManagerHelper,B))!=null?e:void 0);B=$n(this.adsControlFlowManagerHelper,B);B.slotLifecycleStage!=="entered"&&n_(B.slot,B.slotLifecycleStage,"enterLayoutForSlot");B.slotLifecycleStage="rendering";B.registeredLayoutRenderingAdapter.startRendering(B.layout)}}};
_.p.onSlotExited=function(B){if($n(this.adsControlFlowManagerHelper,B)!=null){mM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",B);this.adsControlFlowManagerHelper.onSlotExited(B);for(var R=_.h(this.adsControlFlowEventListeners),V=R.next();!V.done;V=R.next())V.value.onSlotExited(B);$n(this.adsControlFlowManagerHelper,B)!=null&&$n(this.adsControlFlowManagerHelper,B).markedForUnscheduleAfterOutboundAdapterRequests&&UBG(this,B)}};
_.p.onLayoutReceivedExternallyManaged=function(B,R,V){B.managerLayer!=="core"&&PM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",B,R,V)};
var NRS=function(B,R,V){if($n(B.adsControlFlowManagerHelper,R)!=null){PM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",R,V);B=_.h(B.adsControlFlowEventListeners);for(var e=B.next();!e.done;e=B.next())NRS(e.value,R,V)}};
g$.prototype.onLayoutExited=function(B,R,V){if($n(this.adsControlFlowManagerHelper,B)!=null){PM(this.adEventLogger,DBY(V),B,R);this.adsControlFlowManagerHelper.onLayoutExited(B,R);for(var e=_.h(this.adsControlFlowEventListeners),X=e.next();!X.done;X=e.next())X.value.onLayoutExited(B,R,V);(V=C_(this.adsControlFlowManagerHelper,B))&&R.layoutId===V.layoutId&&GI4(this,B)}};
g$.prototype.disposeInternal=function(){var B=yBv(this.adsControlFlowManagerHelper);B=_.h(B);for(var R=B.next();!R.done;R=B.next())UBG(this,R.value);_.Hn.prototype.disposeInternal.call(this)};
var UBG=function(B,R){if($n(B.adsControlFlowManagerHelper,R)!=null)if($n(B.adsControlFlowManagerHelper,R).JSC$26797_isSlotExitRequested()||$n(B.adsControlFlowManagerHelper,R).JSC$26797_isLayoutExitRequested())$n(B.adsControlFlowManagerHelper,R).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if($n(B.adsControlFlowManagerHelper,R).isOccupyingSlotType())$n(B.adsControlFlowManagerHelper,R).markedForUnscheduleAfterOutboundAdapterRequests=!0,GI4(B,R);else if($n(B.adsControlFlowManagerHelper,R).JSC$26797_isSlotFillRequested())$n(B.adsControlFlowManagerHelper,
R).markedForUnscheduleAfterOutboundAdapterRequests=!0,$n(B.adsControlFlowManagerHelper,R)!=null&&(mM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",R),R=$n(B.adsControlFlowManagerHelper,R),R.fulfillmentLifecycleStage="fill_cancel_requested",R.registeredFulfillmentAdapter.cancelSlotFilling());else{var V=C_(B.adsControlFlowManagerHelper,R),e;B.experimentApiProvider.get();(e=_.k("h5_enable_layout_unscheduling_events"))&&(V?SCJ(B,R,V):_.R7(Error("Hh"),R,V,void 0,!1));mM(B.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",R);var X=$n(B.adsControlFlowManagerHelper,R),Y=R.slotEntryTrigger,t=X.registeredSlotEntryTriggerAdapters.get(Y.triggerId);t&&(t.unregisterTrigger(Y),X.registeredSlotEntryTriggerAdapters.delete(Y.triggerId));Y=_.h(R.slotFulfillmentTriggers);for(t=Y.next();!t.done;t=Y.next()){t=t.value;var b=X.registeredFulfillmentTriggerAdapters.get(t.triggerId);b&&(b.unregisterTrigger(t),X.registeredFulfillmentTriggerAdapters.delete(t.triggerId))}Y=_.h(R.slotExpirationTriggers);
for(t=Y.next();!t.done;t=Y.next())if(t=t.value,b=X.registeredExpirationTriggerAdapters.get(t.triggerId))b.unregisterTrigger(t),X.registeredExpirationTriggerAdapters.delete(t.triggerId);X.hasLayout()&&(Y=X.layout,uE(X,Y.layoutExitNormalTriggers),uE(X,Y.layoutExitSkipTriggers),uE(X,Y.layoutExitMuteTriggers),uE(X,Y.layoutExitUserInputSubmittedTriggers),uE(X,Y.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=B.adsControlFlowManagerHelper;$n(X,R)&&(X=HvS(X,R.slotType+"_"+R.slotPhysicalPosition))&&X.delete(R.slotId);mM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",R);B=_.h(B.adsControlFlowEventListeners);for(X=B.next();!X.done;X=B.next())X=X.value,X.onSlotUnscheduled(R),V&&!e&&SCJ(X,R,V)}},SCJ=function(B,R,V){PM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
R,V);
PM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",R,V);B=_.h(B.adsControlFlowEventListeners);for(var e=B.next();!e.done;e=B.next())e=e.value,V&&SCJ(e,R,V)},GI4=function(B,R){if($n(B.adsControlFlowManagerHelper,R)!=null&&$n(B.adsControlFlowManagerHelper,R).isOccupyingSlotType()){var V=C_(B.adsControlFlowManagerHelper,R);
if(V&&jd_(B.adsControlFlowManagerHelper,R)){if($n(B.adsControlFlowManagerHelper,R)!=null){var e=B.adEventLogger,X;var Y=((X=kIZ.get("abandoned"))==null?void 0:X.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";PM(e,Y,R,V);B=$n(B.adsControlFlowManagerHelper,R);B.slotLifecycleStage!=="rendering"&&n_(B.slot,B.slotLifecycleStage,"exitLayout");B.slotLifecycleStage="rendering_stop_requested";B.registeredLayoutRenderingAdapter.stopRendering(V,"abandoned")}}else{mM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
R);try{e=$n(B.adsControlFlowManagerHelper,R);if(!e)throw new WI("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");e.slotLifecycleStage!=="enter_requested"&&e.slotLifecycleStage!=="entered"&&e.slotLifecycleStage!=="rendering"&&n_(e.slot,e.slotLifecycleStage,"exitSlot");e.slotLifecycleStage="exit_requested";if(e.registeredSlotAdapter===void 0)throw e.slotLifecycleStage="scheduled",new WI("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
e.registeredSlotAdapter.exit()}catch(t){t instanceof WI&&t.adsClientErrorMessage?(MT_(B.adEventLogger,t.adsClientErrorMessage,R),_.R7(t,R,void 0,void 0,t.aggressivelySample)):(MT_(B.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",R),_.R7(t,R))}}}};var Ou=function(B,R,V,e,X,Y){_.Hn.call(this);this.registry=B;this.experimentApiProvider=Y;this.slotMap=new Map};
_.l(Ou,_.Hn);var HvS=function(B,R){return(B=B.slotMap.get(R))?B:new Map},$n=function(B,R){return HvS(B,R.slotType+"_"+R.slotPhysicalPosition).get(R.slotId)},yBv=function(B){var R=[];
B.slotMap.forEach(function(V){V=_.h(V.values());for(var e=V.next();!e.done;e=V.next())R.push(e.value.slot)});
return R};
Ou.prototype.onSlotEntered=function(B){B=$n(this,B);B.slotLifecycleStage!=="enter_requested"&&n_(B.slot,B.slotLifecycleStage,"onSlotEntered");B.slotLifecycleStage="entered"};
var jd_=function(B,R){B=$n(B,R);return B.hasLayout()&&B.isRendering()},C_=function(B,R){(B=$n(B,R))?B.hasLayout()&&!B.layout&&_.R7("Unexpected empty layout",R):_.R7("Unexpected undefined slotState",R);
return(B==null?void 0:B.layout)||null};
Ou.prototype.onSlotExited=function(B){B=$n(this,B);B.slotLifecycleStage!=="exit_requested"&&n_(B.slot,B.slotLifecycleStage,"onSlotExited");B.slotLifecycleStage="scheduled"};
Ou.prototype.onLayoutExited=function(B,R){B=$n(this,B);B.isPrimaryLayout(R)&&(B.slotLifecycleStage!=="rendering_stop_requested"&&n_(B.slot,B.slotLifecycleStage,"onLayoutExited"),B.slotLifecycleStage="entered")};
var uE=function(B,R){R=_.h(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;var e=B.registeredLayoutExitTriggerAdapters.get(V.triggerId);e&&(e.unregisterTrigger(V),B.registeredLayoutExitTriggerAdapters.delete(V.triggerId))}},n_=function(B,R,V){_.R7("Slot stage was "+R+" when calling method "+V,B)};var DBT=function(B){_.Hn.call(this);this.deps=B;this.JSC$13259_adsControlFlowManager=kIR(this)};
_.l(DBT,_.Hn);var kIR=function(B){var R=new g$(function(V,e,X,Y){return new Ou(B.deps.registry,V,e,X,Y,B.deps.experimentApiProvider)},new Set(dBp(B.deps.registry).concat(B.deps.listeners)),B.deps.adEventLogger,B.deps.experimentApiProvider);
_.t4(B,R);return R};var fJJ=function(B,R){_.Hn.call(this);this.experimentApiProvider=B;this.eventLoggingSettingsProvider=R;this.eventCount=0};
_.l(fJJ,_.Hn);fJJ.prototype.logEvent=function(B){Zf(this,B)};
var mM=function(B,R,V,e){Zf(B,R,void 0,void 0,void 0,V,void 0,void 0,void 0,V.adSlotLoggingData,void 0,void 0,e)},PM=function(B,R,V,e,X){Zf(B,R,void 0,void 0,void 0,V,e?e:void 0,void 0,void 0,V.adSlotLoggingData,e?e.adLayoutLoggingData:void 0,void 0,X)},MT_=function(B,R,V){Zf(B,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,V,void 0,void 0,void 0,V.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:R})},Zf=function(B,R,V,e,X,Y,t,b,J,G,y,S,M){M=M===void 0?0:M;
lJ5(B.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+R,"slot:",Y,"layout:",t,"ping:",b,"Opportunity:",{opportunityType:V,associatedSlotId:e,slotsFromOpportunity:X,triggerBundle:J,adSlotLoggingData:G,adLayoutLoggingData:y});try{var f=function(){B.experimentApiProvider.get();if(R!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){R||_.R7("Empty PACF event type",Y,t);var z=B.eventLoggingSettingsProvider.get();var T;(T=z.alwaysIncludeDebugData)||(z.experimentApiProvider.get(),T=
!1);z=T;T={eventType:R,eventOrder:++B.eventCount};var L={};Y&&(L.slotData=zK_(z,Y));if(t){var Q={type:t.layoutType,controlFlowManagerLayer:fJq.get(t.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z&&(Q.debugData={layoutId:t.layoutId});L.layoutData=Q}b&&(L.pingData={pingDispatchStatus:b.dispatchStatus,serializedAdPingMetadata:b.ping.serializedAdPingMetadata,pingIndex:b.index});J&&(L.triggerData=lJd(J.trigger,J.category));V&&(L.opportunityData=aJS(z,V,e,X));T.adClientData=L;G&&(T.serializedSlotAdServingData=
G.serializedSlotAdServingDataEntry);y&&(T.serializedAdServingData=y.serializedAdServingDataEntry);S&&(T.errorInfo=S);_.dn("adsClientStateChange",{adsClientEvent:T})}};
M&&M>0?_.kD(_.TT(),function(){return f()},M):f()}catch(z){lJ5(B.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.kD(_.TT(),function(){_.R7(z instanceof Error?z:String(z),Y,t,{pacf_message:"exception during pacf logging"})})}};var zKG=function(B,R){fJJ.call(this,B,R)};
_.l(zKG,fJJ);var aJo=function(){},lJ5=function(B,R){return _.k(R)};var wll=function(){var B=new dBa;this.JSC$13278_adsControlFlowManager=(new DBT(B)).JSC$13259_adsControlFlowManager},dBa=function(){_.Hn.call(this);
var B=this;this.experimentApiProvider=new Wi2(function(){return new aJo});
var R=new Wi2(function(){return new bvv(B.experimentApiProvider)});
this.adEventLogger=new zKG(this.experimentApiProvider,R);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.l(dBa,_.Hn);var TRR=function(){},xBa,o3=function(){xBa||(xBa=new TRR);
return xBa},Bs=function(B){if(!B.JSC$13289_externallyManagedSlotAdapterCallback){var R=(new wll).JSC$13278_adsControlFlowManager;
B.JSC$13289_externallyManagedSlotAdapterCallback=R}return B.JSC$13289_externallyManagedSlotAdapterCallback},LiJ=function(B,R,V){var e=R.opportunityType,X=Error("Ih");
if(e!==void 0){var Y=Bs(B);JBR(Y,e,void 0,V)}else _.R7(X,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});Y=[];if(R.adSlotAndLayoutMetadata!==void 0){R=_.h(R.adSlotAndLayoutMetadata);for(var t=R.next();!t.done;t=R.next()){var b=t.value;if(t=b.adSlotMetadata)if(Y.push(t),B.onSlotReceivedExternallyManaged(t,V),b.adLayoutMetadata){b=_.h(b.adLayoutMetadata);for(var J=b.next();!J.done;J=b.next())B.onLayoutReceivedExternallyManaged(t,J.value,V)}else V>0&&_.R7("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else V>0&&_.R7("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else V>0&&_.R7("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(e!==void 0)B.onOpportunityProcessedExternallyManaged(e,Y,void 0,V);else _.R7(X,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
TRR.prototype.onSlotReceivedExternallyManaged=function(B,R){B=bH(B);if(B instanceof WI)_.R7(B,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Bs(this).onSlotReceivedExternallyManaged(B,R)};
TRR.prototype.onLayoutReceivedExternallyManaged=function(B,R,V){B=bH(B);R=TRZ(R);if(B instanceof WI)_.R7(B,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(R instanceof Jk)_.R7(R,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Bs(this).onLayoutReceivedExternallyManaged(B,R,V)};
TRR.prototype.onOpportunityProcessedExternallyManaged=function(B,R,V,e){var X=[];R=_.h(R);for(var Y=R.next();!Y.done;Y=R.next())Y=bH(Y.value),Y instanceof WI?_.R7(Y,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):X.push(Y);Bs(this).onOpportunityProcessedExternallyManaged(B,X,V,e)};
var vMb=function(B,R){R=bH(R);if(R instanceof WI)_.R7(R,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var V=Bs(B);mM(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",R);V=_.h(V.adsControlFlowEventListeners);for(var e=V.next();!e.done;e=V.next())e=$n(e.value,R),e.slotLifecycleStage!=="not_scheduled"&&n_(e.slot,e.slotLifecycleStage,"onSlotScheduled"),e.slotLifecycleStage="scheduled";B=Bs(B);mM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",R);B=_.h(B.adsControlFlowEventListeners);
for(V=B.next();!V.done;V=B.next())V.value.onSlotEntered(R)}},Kiv=function(B,R){R=bH(R);
if(R instanceof WI)_.R7(R,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var V=Bs(B);mM(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",R);V=_.h(V.adsControlFlowEventListeners);for(var e=V.next();!e.done;e=V.next())e.value.onSlotExited(R);B=Bs(B);mM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",R);B=_.h(B.adsControlFlowEventListeners);for(V=B.next();!V.done;V=B.next())V.value.onSlotUnscheduled(R)}},IJJ=function(B,R,V){R=bH(R);
V=TRZ(V);if(R instanceof WI)_.R7(R,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(V instanceof Jk)_.R7(V,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var e=Bs(B);PM(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",R,V);e=_.h(e.adsControlFlowEventListeners);for(var X=e.next();!X.done;X=e.next())X.value.onLayoutScheduled(R,V);B=Bs(B);PM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",R,V);B=_.h(B.adsControlFlowEventListeners);
for(e=B.next();!e.done;e=B.next())NRS(e.value,R,V)}},R3=function(B,R,V){R=bH(R);
V=TRZ(V);if(R instanceof WI)_.R7(R,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(V instanceof Jk)_.R7(V,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var e=Bs(B);PM(e.adEventLogger,DBY("normal"),R,V);e=_.h(e.adsControlFlowEventListeners);for(var X=e.next();!X.done;X=e.next())X.value.onLayoutExited(R,V,"normal");B=Bs(B);B=_.h(B.adsControlFlowEventListeners);for(e=B.next();!e.done;e=B.next())SCJ(e.value,R,V)}};_.VY=_.sx(function(B){var R=_.ip(B,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});B=Object.assign({},R);var V=R.data;R=R.customCommandResolver;var e=(delete B.data,delete B.customCommandResolver,B),X=_.Zh();_.P7(X,function(){return V().interaction},R,function(){var b;
return(b=e.listenToTapEvent)==null?void 0:b.call(e)});
_.Od(X,{visibilityCallback:function(b){var J,G=(J=V().interaction)==null?void 0:J.onFirstVisible;b&&(G&&_.Lc(G),e.setOnErrorHandler()&&xBp(X))},
showOption:_.FP});B=_.h(_.WU(!1,void 0,"eiYvIe"));var Y=B.next().value,t=B.next().value;B=_.Wr(function(){var b;((b=e.setTouchEndHandler)==null?0:b.call(e))&&!Y()&&(X.value.click(),t(!0),setTimeout(function(){t(!1)},100));
return!1});
return _.N("ad-image-view-model",{class:function(){var b,J=[((b=V().interaction)==null?0:b.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],G;((G=e.isGridViewEnabled)==null?0:G.call(e))&&J.push("ytwAdImageViewModelHostInGridView");return J.join(" ")},
el:X,"on:touchend":B},_.N("div",{class:"ytwAdImageViewModelHostImageContainer"},_.N(_.ia,{data:function(){var b;return{sources:V().imageSources,contentMode:(b=V().imageProperties)==null?void 0:b.contentMode}},
alt:function(){var b,J;return((b=V().interaction)==null?void 0:(J=b.accessibility)==null?void 0:J.label)||""},
targetHeight:e.targetHeight,targetWidth:e.targetWidth,preserveHeight:e.preserveHeight,preserveWidth:e.preserveWidth,useWidth:e.useWidth,style:function(){var b,J;return"vertical-align: bottom;"+(((b=V().background)==null?0:b.color)?"background-color:"+_.li((J=V().background)==null?void 0:J.color)+";":"")},
className:function(){return e.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var b,J;return(J=(b=e.setDraggable)==null?void 0:b.call(e))!=null?J:void 0}})))},"cb");var EMl=_.sx(function(B){var R=B.data,V=B.listenToTapEvent,e=_.Zh();_.k("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.P7(e,function(){return R().interaction},void 0,function(){return V==null?void 0:V()});
_.Od(e,{visibilityCallback:function(Y){var t,b=(t=R().interaction)==null?void 0:t.onFirstVisible;Y&&b&&_.Lc(b)},
showOption:_.FP});B=_.Wr(function(){if(_.k("enable_web_home_top_landscape_image_layout_legacy_click_command")){var Y,t=(Y=R().interaction)==null?void 0:Y.onTap;t&&_.OI(e.value,"yt-navigate",{endpoint:_.dl(t)})}});
var X=function(){};
return _.N("ad-button-hover-overlay-view-model",{"on:click":B,class:function(){var Y;return((Y=R().interaction)==null?0:Y.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:e},function(){return _.k("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.N(_.wb,{data:function(){return R().button}},{adButtonViewModel:function(Y){return _.N(_.go,{data:Y.data,
customCommandResolver:X})}}):_.N(_.wb,{data:function(){return R().button}},{adButtonViewModel:_.go})}())},"db");var jB;_.mR(_.sx(function(B){var R=B.data;var V=_.Zh();_.k("stop_av_measurement_on_detach")&&_.aK(function(){Ns(V)});
_.P7(V,function(){return R().interaction},void 0,function(){return!0});
_.Od(V,{visibilityCallback:function(t){if(t){var b;(t=(b=R().interaction)==null?void 0:b.onFirstVisible)&&_.Lc(t);var J;if(b=(J=R().adLayoutData)==null?void 0:J.activeViewData)Uy(V,b),_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ns(V)})}else _.k("stop_av_measurement_on_detach")&&Ns(V)},
showOption:_.FP,hideOption:ro});B=_.h(_.WU(!1,void 0,"yzu6qe"));var e=B.next().value,X=B.next().value;B=_.Wr(function(){X(!0)});
var Y=_.Wr(function(){X(!1)});
return _.N("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:V,"on:mouseenter":B,"on:mouseleave":Y},_.N("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.jQ({"max-width":function(){return _.k("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.N("div",{class:function(){var t;
a:{var b;switch((t=_.D(R().thumbnailImage,Du))==null?void 0:(b=t.imageProperties)==null?void 0:b.renderingAspect){case "RENDERING_ASPECT_SQUARE":t="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":t="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}t=void 0}return t}},_.N(_.wb,{data:function(){return R().thumbnailImage}},{adImageViewModel:function(t){return _.N(_.VY,
{data:t.data,
listenToTapEvent:!0,setTouchEndHandler:_.k("enable_top_landscape_image_experiment_dom_id_web")})}})),_.N("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.N(_.H,{cond:function(){var t,b,J;
return(t=_.D(R().thumbnailImage,Du))==null?void 0:(b=t.imageProperties)==null?void 0:(J=b.overlayIcon)==null?void 0:J.iconImage},
then:function(t){return _.N(_.ia,{data:t,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.N("div",{class:function(){return e()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.N(_.wb,{data:function(){return R().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(t){return _.N(EMl,
{data:t.data,
listenToTapEvent:!0})}}))),_.N("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.N(_.wb,{data:function(){return R().feedAdMetadata}},{feedAdMetadataViewModel:function(t){return _.N(gu4,{data:t.data,
listenToTapEvent:!0,setTouchEndHandler:_.k("enable_top_landscape_image_experiment_dom_id_web")})}})))},"eb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;var V=_.Zh();_.k("stop_av_measurement_on_detach")&&_.aK(function(){Ns(V)});
var e=_.w1(_.Av);_.P7(V,function(){return R().interaction});
_.Od(V,{visibilityCallback:function(G){if(G){var y;(G=(y=R().interaction)==null?void 0:y.onFirstVisible)&&_.Lc(G);var S;if(y=(S=R().adLayoutData)==null?void 0:S.activeViewData)Uy(V,y),_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ns(V)})}else _.k("stop_av_measurement_on_detach")&&Ns(V)},
showOption:_.FP,hideOption:ro});var X=_.Wr(function(G){var y,S,M=(y=_.D(R().adImage,Du))==null?void 0:(S=y.interaction)==null?void 0:S.onTap;M&&(_.k("enable_square_image_components_ui_web_with_custom_event")?_.OI(V.value,"yt-navigate",{endpoint:_.dl(M)}):ZH_(G,M))}),Y=_.Wr(function(){var G,y,S=(G=_.D(R().adButton,vUS))==null?void 0:(y=G.interaction)==null?void 0:y.onTap;
S&&_.OI(V.value,"yt-navigate",{endpoint:_.dl(S)})}),t=function(){};
B={};var b={},J={};return _.N("square-image-layout-view-model",{class:_.XE("ytwSquareImageLayoutViewModelHost",(B.ytwSquareImageLayoutViewModelHostColumn=e,B)),el:V},_.N("div",{class:_.XE("ytwSquareImageLayoutViewModelHostImage",(b.ytwSquareImageLayoutViewModelHostColumnImage=e,b))},function(){return _.k("enable_square_image_components_ui_web_with_native_img")?_.N("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var G,y,S;return((G=_.D(R().adImage,Du))==null?void 0:(y=G.imageSources)==
null?void 0:(S=y[0])==null?void 0:S.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":X}):_.N(_.wb,{data:function(){return R().adImage}},{adImageViewModel:function(G){return _.N(_.VY,{data:G.data,
isGridViewEnabled:e,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.N("div",{class:_.XE("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(J.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=e,J))},_.N(_.wb,{data:function(){return R().feedAdMetadata}},{feedAdMetadataViewModel:gu4}),function(){return _.k("enable_square_image_components_ui_web_with_float_button")?_.N("div",{"on:click":Y},_.N(_.wb,{data:function(){return R().adButton}},
{adButtonViewModel:function(G){var y={};
return _.N(_.go,{data:G.data,customCommandResolver:t,className:_.XE((y.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=e,y))})}})):_.N(_.wb,{data:function(){return R().adButton}},{adButtonViewModel:function(G){var y={};
return _.N(_.go,{data:G.data,className:_.XE((y.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=e,y))})}})}()))},"fb"),"square-image-layout-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;var V=B.noBottomMargin;var e=B.typographyBump;var X=_.Zh();_.k("stop_av_measurement_on_detach")&&_.aK(function(){Ns(X)});
_.k("enable_web_home_top_landscape_image_layout_level_click")&&_.P7(X,function(){return R().interaction},void 0,function(){return!0});
B=function(){return R().interaction};
B!==void 0&&B!==null||_.cE(Error("Jh"));_.Od(X,{visibilityCallback:function(y){if(y){var S;(y=(S=R().interaction)==null?void 0:S.onFirstVisible)&&_.Lc(y);var M;if(S=(M=R().adLayoutData)==null?void 0:M.activeViewData)Uy(X,S),_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ns(X)})}else _.k("stop_av_measurement_on_detach")&&Ns(X)},
showOption:_.FP,hideOption:ro});var Y=function(){var y,S,M;return(y=_.D(R().thumbnailImage,Du))==null?void 0:(S=y.background)==null?void 0:(M=S.backgroundImageSource)==null?void 0:M.imageSources};
B=_.h(_.WU(!1,void 0,"GIwTMc"));var t=B.next().value,b=B.next().value;B=_.Wr(function(){b(!0)});
var J=_.Wr(function(){b(!1)}),G=function(){return t()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.N("top-landscape-image-layout-view-model",{class:function(){var y;return((y=R().interaction)==null?0:y.onTap)&&_.k("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:X,"on:mouseenter":B,"on:mouseleave":J},_.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.N(_.H,{cond:function(){return Y()&&Y().length>0},
then:function(){return _.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.jQ({top:"0","background-image":function(){return"url("+String(Y()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.N(_.H,{cond:function(){return!!R().adButtonHoverOverlay},
then:function(){return _.N("div",{class:G},_.N(_.wb,{data:function(){return R().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:EMl}))}}),_.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.N(_.wb,{data:function(){return R().thumbnailImage}},{adImageViewModel:function(y){return _.N(_.VY,{data:y.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.k("enable_web_home_top_landscape_image_layout_level_click")})}})),_.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.N(_.ia,{data:{sources:[{clientResource:{imageName:_.k("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.N("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.N(_.wb,{data:function(){return R().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.N(gu4,{data:y.data,
noBottomMargin:function(){return V==null?void 0:V()},
listenToTapEvent:function(){return _.k("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return e==null?void 0:e()}})}})))},"gb"),"top-landscape-image-layout-view-model",{props:{data:_.qq,
noBottomMargin:_.qq,typographyBump:_.qq}});_.mR(_.sx(function(B){var R=B.data;var V=B.typographyBump;var e=_.Zh();_.k("stop_av_measurement_on_detach")&&_.aK(function(){Ns(e)});
_.Od(e,{visibilityCallback:function(X){if(X){var Y;(X=(Y=R().interaction)==null?void 0:Y.onFirstVisible)&&_.Lc(X);var t;if(Y=(t=R().adLayoutData)==null?void 0:t.activeViewData)Uy(e,Y),_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ns(e)})}else _.k("stop_av_measurement_on_detach")&&Ns(e)},
showOption:_.FP,hideOption:ro});return _.N("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:e},_.N("div",null,_.N(_.wb,{data:function(){return R().videoLockup}},{lockupViewModel:function(X){return _.N(_.nu,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:V})}})))},"hb"),"video-display-button-group-layout-view-model",{props:{data:_.qq,
noBottomMargin:_.qq,typographyBump:_.qq}});_.mR(_.sx(function(B){var R=B.data;var V=B.typographyBump;var e=_.Zh();_.k("stop_av_measurement_on_detach")&&_.aK(function(){Ns(e)});
_.Od(e,{visibilityCallback:function(X){if(X){var Y;(X=(Y=R().interaction)==null?void 0:Y.onFirstVisible)&&_.Lc(X);var t;if(Y=(t=R().adLayoutData)==null?void 0:t.activeViewData)Uy(e,Y),_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ns(e)})}else _.k("stop_av_measurement_on_detach")&&Ns(e)},
showOption:_.FP,hideOption:ro});return _.N("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:e},_.N("div",null,_.N(_.wb,{data:function(){return R().videoLockup}},{lockupViewModel:function(X){return _.N(_.nu,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:V})}})))},"ib"),"video-display-full-layout-view-model",{props:{data:_.qq,
noBottomMargin:_.qq,typographyBump:_.qq}});_.Qdb=_.sx(function(B){var R=B.data;B=_.Zh();return _.N("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:B},_.N(_.H,{cond:function(){return R().imageBadge},
then:function(V){return _.N(_.ia,{data:V,alt:""})}}))},"jb");var qC4=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;B=_.Zh();_.P7(B,function(){return R().interaction},V);
_.Od(B,{visibilityCallback:function(e){var X,Y=(X=R().interaction)==null?void 0:X.onFirstVisible;e&&Y&&_.Lc(Y)},
showOption:_.FP});return _.N("carousel-ad-card-image-view-model",{class:function(){var e;return((e=R().interaction)==null?0:e.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:B,"aria-label":function(){var e,X;return(e=R().interaction)==null?void 0:(X=e.accessibility)==null?void 0:X.label}},_.N(_.wb,{data:function(){return R().adImage}},{adImageViewModel:function(e){return _.N(_.VY,{data:e.data,
customCommandResolver:V})}}),_.N("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.N(_.wb,{data:function(){return R().badge}},{adCardBadgeViewModel:_.Qdb})),_.N(_.yK,{model:{color:4}}))},"kb");var cBT=_.sx(function(B){var R=_.h(_.WU(0,void 0,"o9Bzd")),V=R.next().value;R.next();var e=R.next().value,X=_.h(_.WU(!1,void 0,"KLdzYe"));R=X.next().value;var Y=X.next().value,t;_.aK(function(){clearTimeout(t)});
X=_.Wr(function(){var G;((G=B.animate)==null?0:G.call(B))?(Y(!0),t=setTimeout(function(){Y(!1);b()},200)):b();
return!1});
var b=function(){e(function(G){return(G+B.numShownItems())%B.data().length})},J={};
return _.N("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.N("div",{class:_.XE("ytwHorizontalCarouselCarouselWrapper")},_.N("div",{class:_.XE("ytwHorizontalCarouselCarouselInnerWrapper",(J.ytwHorizontalCarouselAnimating=R,J))},_.N(_.yh,{each:B.data,keyBy:"INDEX"},function(G,y){return _.N("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.jQ({"flex-basis":function(){return"calc((100% - (8px * "+(B.numShownItems()-1)+")) / "+B.numShownItems()+")"},
order:function(){var S=y-V();S<0&&(S+=B.data().length);return S}})},B.children(G,y))}))),_.N("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":X},B.nextButton()))},"lb");var ABG=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;var e=B.expansive;B=_.Zh();_.Od(B,{visibilityCallback:function(X){var Y,t=(Y=R().interaction)==null?void 0:Y.onFirstVisible;X&&t&&_.Lc(t)},
showOption:_.FP});return _.N("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:B},_.N(cBT,{data:function(){var X;return((X=R())==null?void 0:X.carouselAdCards)||[]},
nextButton:function(){return _.N(_.wb,{data:function(){return R().nextButton}},{buttonViewModel:function(X){var Y=X.data;
return _.N(_.qo,{data:function(){return(e==null?0:e())?Object.assign({},Y(),{style:"mono"}):Y()},
className:_.k("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(X){return _.N(_.wb,{data:X},{carouselAdCardImageViewModel:function(Y){return _.N(qC4,{data:Y.data,customCommandResolver:V})}})}))},"mb");var ivS=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;var e=B.className;var X=B.buttonClassName;var Y=B.animationEntityKey;var t=B.expansive;return _.N("carousel-button-view-model",{class:_.XE("ytwCarouselButtonViewModelHost",e)},_.N(_.wb,{data:function(){return R().carousel}},{carouselAdCardCollectionViewModel:function(b){return _.N(ABG,{data:b.data,
customCommandResolver:V,expansive:t})}}),_.N(_.wb,{data:function(){return R().button}},{adButtonViewModel:function(b){var J=b.data;
return _.N(_.go,{data:function(){return(t==null?0:t())?Object.assign({},J(),{style:"AD_BUTTON_STYLE_TONAL"}):J()},
className:X,customCommandResolver:V,animationEntityKey:Y})}}))},"nb");_.sdh=_.sx(function(B){var R=B.data;B=B.className;var V=_.Zh();_.zM(function(){var e;((e=R())==null?0:e.backgroundColor)&&V.value.setAttribute("data-background-color",String(R().backgroundColor))});
return _.N("pivot-button-view-model",{el:V,class:_.XE("ytwPivotButtonViewModelHost",B)},_.N(_.SQ,{command:function(){var e=R();e=e.onClickCommand?_.dl(e.onClickCommand):e.contentDescription?_.$G(e.contentDescription):void 0;return e},
ariaLabel:function(){return R().contentDescription}},_.N(_.H,{cond:function(){return R().thumbnail},
then:function(e){return _.N(_.ia,{data:e,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.N(_.H,{cond:function(){return R().icon},
then:function(e){return _.N(_.Us,{icon:function(){return e().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"ob");_.Fiv=_.sx(function(B){var R=B.data;var V=B.buttonShapeOverrideables;return _.N("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.N(_.wb,{data:function(){return R().buttonViewModels}},{buttonViewModel:function(e){return _.N(_.qo,{data:e.data,
buttonOverrides:V})},
likeButtonViewModel:function(e){return _.N(_.l6,{data:e.data,buttonShapeOverrideables:V})},
dislikeButtonViewModel:function(e){return _.N(_.fI,{data:e.data,buttonShapeOverrideables:V})}}))},"pb");var rB4=_.sx(function(B){var R=B.avatar;var V=B.headline;var e=B.badge;var X=B.description;var Y=B.expansive;B={};return _.N("yt-ad-metadata-shape",{class:_.XE("ytAdMetadataShapeHost",(B.ytAdMetadataShapeHostLarge=Y,B))},_.N("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.N(_.H,{cond:R,then:function(t){return _.N(_.iHh,{data:function(){return(Y==null?0:Y())?Object.assign({},t(),{size:"AD_AVATAR_SIZE_MPLUS"}):t()}})}}),_.N("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.N(_.Hr,{text:V,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.N(_.H,{cond:e,then:function(t){return _.N(_.Cu,{data:function(){return(Y==null?0:Y())?Object.assign({},t(),{style:"AD_BADGE_STYLE_STARK"}):t()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.N("h2",{class:"ytAdMetadataShapeHostDescription"},_.N(_.Hr,{text:X,
linkInheritColor:!0})))},"qb");var gM_=_.sx(function(B){var R=B.data;var V=B.onShow;var e=B.expansive;B=_.Zh();_.P7(B,function(){return R().interaction});
_.zM(function(){var Y,t=(Y=R().animatedRenderingConfig)==null?void 0:Y.delayedSecondsToVisible;if(t){var b=setTimeout(V,t*1E3);_.aK(function(){clearTimeout(b)})}});
var X={};return _.N("reels-ad-card-buttoned-view-model",{class:_.XE(function(){var Y;return((Y=R().interaction)==null?0:Y.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(X.ytwReelsAdCardButtonedViewModelHostExpansive=e,X)),
el:B},_.N(rB4,{avatar:function(){return _.D(R().avatar,x6o)},
headline:function(){return R().headline},
badge:function(){return _.D(R().adBadge,Lgo)},
description:function(){return R().description},
expansive:e}),_.N(_.wb,{data:function(){return R().ctaButton}},{adButtonViewModel:function(Y){var t=Y.data;
return _.N(_.go,{data:function(){return(e==null?0:e())?Object.assign({},t(),{style:"AD_BUTTON_STYLE_FILLED"}):t()}})}}))},"rb");var Zva=_.sx(function(B){var R=B.data;B=B.expansive;var V=_.Zh();_.k("web_ad_metadata_clickable")&&_.P7(V,function(){return R().interaction});
var e={};e=_.YB("ytwReelsAdMetadataViewModelHost",(e.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.k("web_ad_metadata_clickable"),e));return _.N("reels-ad-metadata-view-model",{class:e,el:V},_.N(rB4,{avatar:function(){return _.D(R().avatar,x6o)},
headline:function(){return R().headline},
badge:function(){return _.D(R().adBadge,Lgo)},
description:function(){return R().description},
expansive:B}))},"sb");var mBG={iconPosition:"icon-with-label",size:"L"},$Bh=_.sx(function(B){var R=B.data;B=B.overlayDensity;var V=_.Zh(),e=_.AM(B,0);_.lJ(function(){V.value.setAttribute("overlay-density",String(e()))});
var X=function(){var S;return(S=R().reelsAdCardButtonedEntityKey)!=null?S:""},Y=function(){return X()+"/ad_button"},t=_.No(F9q,X),b=function(){var S,M;
return(M=(S=t())==null?void 0:S.value)!=null?M:!1},J=_.w1(qCx),G=function(){return Object.assign({},mBG,(J()||e()===2)&&{style:"overlay-dark"})};
B={};var y={};return _.N("reels-player-overlay-layout-view-model",{class:_.XE("ytwReelsPlayerOverlayLayoutViewModelHost",(B.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!R().extension},B.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},B)),
el:V},_.N("div",{class:_.XE("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(y.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},y))},_.N("div",{"aria-hidden":function(){return b()},
class:_.XE("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return b()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.jQ({"transition-duration":function(){return ivK(R())}})},_.N(_.wb,{data:function(){return R().adMetadata}},{reelsAdMetadataViewModel:function(S){return _.N(Zva,{data:S.data,
expansive:function(){return e()===1}})}}),_.N(_.H,{cond:function(){return R().extension},
then:function(S){return _.N("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.N(_.wb,{data:S},{adButtonViewModel:function(M){return _.N(_.go,{data:M.data,animationEntityKey:Y,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(M){return _.N(ivS,{data:M.data,animationEntityKey:Y,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return e()===1}})}}))}})),_.N("div",{"aria-hidden":function(){return!b()},
class:_.XE("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return b()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.jQ({"transition-duration":function(){return ivK(R())}})},_.N(_.wb,{data:function(){return R().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(S){return _.N(gM_,{data:S.data,
onShow:function(){_.cc(_.SX("booleanEntity",X(),{key:X(),value:!0}))},
expansive:function(){return e()===1}})}}))),_.N("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.N(_.wb,{data:function(){return R().actions}},{reelActionBarViewModel:function(S){return _.N(_.Fiv,{data:S.data,
buttonShapeOverrideables:G})}}),_.N(_.wb,{data:function(){return R().menu}},{buttonViewModel:function(S){return _.N(_.qo,{data:S.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},G(),{type:"tonal"})}})}}),_.N(_.wb,{data:function(){return R().pivotButton}},{pivotButtonViewModel:function(S){return _.N(_.sdh,{data:S.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"tb");_.mR($Bh,"reels-player-overlay-layout-view-model",{props:{data:_.qq,overlayDensity:_.qq}});var eZ=function(){var B=_.c.apply(this,arguments)||this;B.noBottomMargin=!1;B.overlayDensity=0;return B};
_.l(eZ,_.c);_.p=eZ.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.k("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 B=this;jZu(function(){B.isAttached&&hk(B.JSC$13332_storedAdSlotMetadata,B.JSC$13332_storedAdLayoutMetadata,B.adSlotMetadata,B.adLayoutMetadata)&&R3(o3(),B.JSC$13332_storedAdSlotMetadata,B.JSC$13332_storedAdLayoutMetadata)})};
_.p.attached=function(){hk(this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&IJJ(o3(),this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata)};
_.p.detached=function(){hk(this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&R3(o3(),this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata)};
_.p.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.p.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13332_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13332_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13332_storedAdLayoutMetadata!==void 0&&this.JSC$13332_storedAdSlotMetadata!==void 0&&R3(o3(),this.JSC$13332_storedAdSlotMetadata,this.JSC$13332_storedAdLayoutMetadata),IJJ(o3(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13332_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13332_storedAdSlotMetadata=this.adSlotMetadata)};
_.mh.Object.defineProperties(eZ.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.adLayoutMetadata}}});
eZ.prototype.onAdMetadataChanged=eZ.prototype.onAdMetadataChanged;eZ.prototype.onTypographyBumpChanged=eZ.prototype.onTypographyBumpChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],eZ.prototype,"rendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],eZ.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],eZ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],eZ.prototype,"noBottomMargin",void 0);_.r([_.E(),_.Z("design:type",Object)],eZ.prototype,"overlayDensity",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],eZ.prototype,"typographyBump",void 0);_.r([_.K("data.adLayoutMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],eZ.prototype,"adLayoutMetadata",null);_.r([_.E(),_.Z("design:type",Object)],eZ.prototype,"adSlotMetadata",void 0);
_.r([_.Yp("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Z("design:type",HTMLElement)],eZ.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.r([_.XX("typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eZ.prototype,"onTypographyBumpChanged",null);_.r([_.XX("adLayoutMetadata","adSlotMetadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eZ.prototype,"onAdMetadataChanged",null);
eZ=_.r([_.A({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],eZ);
_.F(eZ,"ytd-in-feed-ad-layout-renderer",function(){if(cCb!==void 0)return cCb;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return cCb=B},
{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var CXa;var PXo;var XI=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return B};
_.l(XI,_.c);_.p=XI.prototype;_.p.computeHasLiveDescription=function(B){return!(B==null||!B.liveDescription)};
_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.p.onYtToggleButton=function(B){var R,V=(R=this.data)==null?void 0:R.videoReminderEntityKey;V&&this.ytdReduxBehavior.dispatch(_.SX("upcomingEventReminderStateEntity",V,{key:V,state:B.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 B;this.videoReminderState&&_.D((B=this.data)==null?void 0:B.cta,_.EN)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.p.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var B=_.$T(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);B&&(B.startsWith("//")&&(B="https:"+B),this.hostElement.classList.add("channel-banner"),_.o_(this.hostElement,{"--ytvmh-channel-banner":"url("+B+")"}))}else _.k("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.p.onPlayerReady=function(){this.onIronResize()};
_.p.maybeFlushDebouncer=function(){_.k("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(B){var R;B=(R=B.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0];A7o(B==null?void 0:B.polymerController)})};
_.p.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var B=_.w(this.hostElement).querySelector("#live-description"),R;B&&((R=this.data)==null?0:R.shortLiveDescription)&&B.clientWidth<B.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
XI.prototype.onIronResize=XI.prototype.onIronResize;XI.prototype.videoReminderStateChanged=XI.prototype.videoReminderStateChanged;XI.prototype.dataChanged=XI.prototype.dataChanged;XI.prototype.onYtToggleButton=XI.prototype.onYtToggleButton;_.r([_.v(_.LC),_.Z("design:type",Object)],XI.prototype,"ironResizableBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],XI.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],XI.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],XI.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.videoReminderEntityKey"],selector:QZp}),_.Z("design:type",Object)],XI.prototype,"videoReminderState",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.k("web_modern_buttons")}),_.Z("design:type",Boolean)],XI.prototype,"rounded",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Z("design:type",Boolean)],XI.prototype,"hasLiveDescription",void 0);_.r([_.E({reflectToAttribute:!0,value:_.k("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Z("design:type",Boolean)],XI.prototype,"resizableAdBannerSafariFix",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.k("align_three_dot_menu_with_title_description")}),_.Z("design:type",Boolean)],XI.prototype,"menuFix",void 0);_.r([_.hM("yt-formatted-string"),_.Z("design:type",Array)],XI.prototype,"formattedStrings",void 0);_.r([_.Yp("#cta-button"),_.Z("design:type",HTMLElement)],XI.prototype,"ctaButton",void 0);_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],XI.prototype,"onYtToggleButton",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XI.prototype,"dataChanged",null);_.r([_.XX("videoReminderState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XI.prototype,"videoReminderStateChanged",null);_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XI.prototype,"onIronResize",null);
XI=_.r([_.A({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],XI);
_.F(XI,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(PXo!==void 0)return PXo;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return PXo=B},{mode:1});var nMo;var p3=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};B.isLocked=!1;return B};
_.l(p3,_.c);_.p=p3.prototype;_.p.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.p.onExpandedChanged=function(){this.expanded&&_.Bz(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.p.onMouseOver=function(){this.maybeExpand()};
_.p.onTap=function(){this.maybeExpand()};
_.p.onExpandableTileExpanding=function(B){B!==this&&(this.expanded=!1)};
_.p.onExpandableTileLockAndCollapse=function(B){this.isLocked=!0;B!==this&&(this.expanded=!1)};
_.p.onExpandableTileUnlock=function(){this.isLocked=!1};
p3.prototype.onTap=p3.prototype.onTap;p3.prototype.onMouseOver=p3.prototype.onMouseOver;p3.prototype.onExpandedChanged=p3.prototype.onExpandedChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],p3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],p3.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],p3.prototype,"expanded",void 0);_.r([_.bp("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],p3.prototype,"onExpandedChanged",null);_.r([_.R_("mouseover"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],p3.prototype,"onMouseOver",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],p3.prototype,"onTap",null);
p3=_.r([_.A({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],p3);
_.F(p3,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(nMo!==void 0)return nMo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return nMo=B},{mode:1});var uvl;var Yy=function(){var B=_.c.apply(this,arguments)||this;B.buttonOverrides={style:"overlay"};B.useYtdPlayer=_.k("use_ytd_player_for_desktop_masthead");B.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};B.playbackFinished=!1;B.JSC$13344_playerManager=null;B.JSC$13344_mastheadCounter=new IOo;return B};
_.l(Yy,_.c);_.p=Yy.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$13344_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13344_playerManager=new Jp)};
_.p.ready=function(){var B=this;this.JSC$13344_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var R=_.w(this.hostElement).querySelector("#player");this.useYtdPlayer?R.style.display="none":(this.ytdPlayer.style.display="none",oya(this.JSC$13344_playerManager,R,function(){B.onPlaybackEnded()}),_.w(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var V;
((V=B.data)==null?0:V.navigationEndpoint)&&_.OI(B.hostElement,"yt-navigate",{endpoint:B.data.navigationEndpoint})}))};
_.p.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13344_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.p.attached=function(){var B=this;_.xp(function(){B.maybePlayVideo()})};
_.p.maybePlayVideo=function(){var B=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$13344_playerManager.playVideo(),this.getPlayerPromise().then(function(){B.JSC$13344_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.p.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13344_playerManager.stopVideo()};
_.p.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var B,R={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((B=this.data.playbackStartMs)!=null?B:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(R);this.setupYtdPlayer()}else RHh(this.JSC$13344_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(BFR(this.JSC$13344_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.p.getPlayerPromise=function(){return this.JSC$13344_playerManager.getPlayerPromise()};
_.p.onYtToggleButton=function(B){this.useYtdPlayer?this.toggleMute(B.detail.toggled):B.detail.toggled?this.JSC$13344_playerManager.mute():this.JSC$13344_playerManager.unMute()};
_.p.onYtNavigate=function(B){var R=kYu(B.detail.endpoint),V=Dax(this.data.clickthroughReportingData);R&&V&&(B.detail.endpoint.watchEndpoint?B.detail.tempData=V:_.Zg(R,V,30))};
_.p.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.p.onExpandedChanged=function(){this.expanded?(_.Bz(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(B){B!==this&&(this.stopVideo(),this.expanded=!1)};
_.p.onExpandableTileLockAndCollapse=function(B){B!==this&&(this.isLocked=!0,this.expanded=!1)};
_.p.onExpandableTileUnlock=function(){this.isLocked=!1};
_.p.lockAndCollapseExpandableTiles=function(){_.oF(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.p.unlockExpandableTiles=function(){_.oF(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.p.setupYtdPlayer=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,B.ytdPlayer.getPlayerPromise(),2);R=V.yieldResult;R.addEventListener("onStateChange",function(e){B.onPlayerStateChange(e)});
R.addEventListener("onCueRangeExit",function(e){B.onCueRangeExit(e)});
_.b3(V)})};
_.p.onPlayerStateChange=function(B){if(B===1&&(B=this.ytdPlayer.getPlayer())){var R=B.getCurrentTime(),V,e,X=R+((e=(V=this.data)==null?void 0:V.playbackDurationMs)!=null?e:0)/1E3;B.addCueRange("playback",R,X);this.JSC$13344_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.p.onCueRangeExit=function(B){B==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.p.toggleMute=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,R.ytdPlayer.getPlayerPromise(),2);V=e.yieldResult;B?V.mute():V.unMute();_.b3(e)})};
Yy.prototype.onTap=Yy.prototype.onTap;Yy.prototype.onMouseOver=Yy.prototype.onMouseOver;Yy.prototype.onExpandedChanged=Yy.prototype.onExpandedChanged;Yy.prototype.onYtNavigate=Yy.prototype.onYtNavigate;Yy.prototype.onYtToggleButton=Yy.prototype.onYtToggleButton;Yy.prototype.dataChanged=Yy.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Yy.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Yy.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Yy.prototype,"expanded",void 0);_.r([_.E(),_.Z("design:type",Object)],Yy.prototype,"buttonOverrides",void 0);
_.r([_.E(),_.Z("design:type",Object)],Yy.prototype,"useYtdPlayer",void 0);_.r([_.Yp("#ytd-player"),_.Z("design:type",Object)],Yy.prototype,"ytdPlayer",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yy.prototype,"dataChanged",null);_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Yy.prototype,"onYtToggleButton",null);
_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Yy.prototype,"onYtNavigate",null);_.r([_.bp("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yy.prototype,"onExpandedChanged",null);_.r([_.R_("mouseover"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yy.prototype,"onMouseOver",null);
_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yy.prototype,"onTap",null);Yy=_.r([_.A({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Yy);
_.F(Yy,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(uvl!==void 0)return uvl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return uvl=B},{mode:1});var Ovv;var h0=function(){return _.c.apply(this,arguments)||this};
_.l(h0,_.c);h0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
h0.prototype.onShow=function(){var B=_.w(this.hostElement).querySelector("#live-description"),R;B&&((R=this.data)==null?0:R.shortLiveDescription)&&B.clientWidth<B.scrollWidth&&this.hostElement.classList.add("short-live-description")};
h0.prototype.onYtToggleButton=function(B){var R,V=(R=this.data)==null?void 0:R.videoReminderEntityKey;V&&this.ytdReduxBehavior.dispatch(_.SX("upcomingEventReminderStateEntity",V,{key:V,state:B.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
h0.prototype.videoReminderStateChanged=function(){var B;this.videoReminderState&&_.D((B=this.data)==null?void 0:B.cta,_.EN)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
h0.prototype.videoReminderStateChanged=h0.prototype.videoReminderStateChanged;h0.prototype.onYtToggleButton=h0.prototype.onYtToggleButton;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],h0.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],h0.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.videoReminderEntityKey"],selector:QZp}),_.Z("design:type",Object)],h0.prototype,"videoReminderState",void 0);_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],h0.prototype,"onYtToggleButton",null);_.r([_.XX("videoReminderState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h0.prototype,"videoReminderStateChanged",null);
h0=_.r([_.A({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],h0);
_.F(h0,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Ovv!==void 0)return Ovv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Ovv=B},{mode:_.up("kevlar_poly_si_batch_j065")?1:2});var oC5;var t0=function(){var B=_.c.apply(this,arguments)||this;B.useYtdPlayer=_.k("use_ytd_player_for_desktop_masthead");B.buttonOverrides={style:"overlay"};B.JSC$13352_playerManager=null;B.JSC$13352_mastheadCounter=new IOo;B.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return B};
_.l(t0,_.c);_.p=t0.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$13352_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13352_playerManager=new Jp)};
_.p.ready=function(){var B=this;this.JSC$13352_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var R;(R=this.embeddedPlayer)==null||R.remove()}else{var V;(V=this.ytdPlayer)==null||V.remove();oya(this.JSC$13352_playerManager,this.embeddedPlayer,function(){B.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){B.data&&B.data.navigationEndpoint&&_.OI(B.hostElement,"yt-navigate",{endpoint:B.data.navigationEndpoint})})}};
_.p.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13352_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.p.dataChanged=function(){var B=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var R=!this.data.disableAutoPlayback,V,e={autoplay:R,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((V=this.data.playbackStartMs)!=null?V:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(R?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(e);this.setupYtdPlayer()}else RHh(this.JSC$13352_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(BFR(this.JSC$13352_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13352_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.oF(B.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");B.JSC$13352_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.p.getPlayerPromise=function(){return this.JSC$13352_playerManager.getPlayerPromise()};
_.p.onYtToggleButton=function(B){this.useYtdPlayer?this.toggleMute(B.detail.toggled):B.detail.toggled?this.JSC$13352_playerManager.mute():this.JSC$13352_playerManager.unMute()};
_.p.onYtNavigate=function(B){var R=kYu(B.detail.endpoint),V=Dax(this.data.clickthroughReportingData);R&&V&&(B.detail.endpoint.watchEndpoint?B.detail.tempData=V:_.Zg(R,V,30))};
_.p.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13352_playerManager.stopVideo()};
_.p.setupYtdPlayer=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,B.ytdPlayer.getPlayerPromise(),2);R=V.yieldResult;R.addEventListener("onStateChange",function(e){B.onPlayerStateChange(e)});
R.addEventListener("onCueRangeExit",function(e){B.onCueRangeExit(e)});
_.b3(V)})};
_.p.onPlayerStateChange=function(B){if(B===1&&(B=this.ytdPlayer.getPlayer())){var R=B.getCurrentTime(),V,e,X=R+((e=(V=this.data)==null?void 0:V.playbackDurationMs)!=null?e:0)/1E3;B.addCueRange("playback",R,X);_.oF(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13352_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.p.onCueRangeExit=function(B){B==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.p.toggleMute=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,R.ytdPlayer.getPlayerPromise(),2);V=e.yieldResult;B?V.mute():V.unMute();_.b3(e)})};
_.mh.Object.defineProperties(t0.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var B,R;if(!((B=this.data)==null?0:(R=B.accessibilityData)==null?0:R.label))return"Ad primary link";var V,e;return _.Wz("AD_TITLE",{title:(V=this.data)==null?void 0:(e=V.accessibilityData)==null?void 0:e.label})}}});
t0.prototype.onYtMastheadHidden=t0.prototype.onYtMastheadHidden;t0.prototype.onYtNavigate=t0.prototype.onYtNavigate;t0.prototype.onYtToggleButton=t0.prototype.onYtToggleButton;t0.prototype.dataChanged=t0.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],t0.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],t0.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],t0.prototype,"useYtdPlayer",void 0);_.r([_.Yp("ytd-toggle-button-renderer"),_.Z("design:type",Object)],t0.prototype,"muteButton",void 0);_.r([_.E(),_.Z("design:type",Object)],t0.prototype,"buttonOverrides",void 0);
_.r([_.K("data.accessibilityData.label"),_.Z("design:type",String),_.Z("design:paramtypes",[])],t0.prototype,"titleAriaLabel",null);_.r([_.Yp("#replay-button"),_.Z("design:type",Object)],t0.prototype,"replayButton",void 0);_.r([_.Yp("#player-container"),_.Z("design:type",Object)],t0.prototype,"playerContainer",void 0);_.r([_.Yp("#player"),_.Z("design:type",Object)],t0.prototype,"embeddedPlayer",void 0);_.r([_.Yp("#ytd-player"),_.Z("design:type",Object)],t0.prototype,"ytdPlayer",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t0.prototype,"dataChanged",null);_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],t0.prototype,"onYtToggleButton",null);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],t0.prototype,"onYtNavigate",null);
_.r([_.R_("yt-masthead-hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t0.prototype,"onYtMastheadHidden",null);t0=_.r([_.A({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],t0);
_.F(t0,"ytd-video-masthead-ad-primary-video-renderer",function(){if(oC5!==void 0)return oC5;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return oC5=B},{mode:2});var B9G;var Ws=function(){var B=_.c.apply(this,arguments)||this;B.collapsed=!1;B.impressionResolver=_.A3();B.JSC$13356_activeViewMeasurementDataResolver=_.A3();B.actionMap={"yt-mute-ad-action":"handleMuteAd"};return B};
_.l(Ws,_.c);_.p=Ws.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 B=this;_.w(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){B.expandAd()});
this.hostElement.addEventListener("yt-action",function(R){if(R.detail.actionName==="yt-service-request"){var V=R.detail.args[1];V.videoMastheadAdMuteCommand&&(B.collapseAd(V.videoMastheadAdMuteCommand.encryptedMastheadId),R.stopPropagation())}})};
_.p.attached=function(){var B=this;_.xp(function(){B.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(R){if(!B.collapsed){R=_.h(R);for(var V=R.next();!V.done;V=R.next())V=V.value,cf(V.baseUrl,V.attributionSrcMode);B.data.impressionCommand=void 0}});
this.JSC$13356_activeViewMeasurementDataResolver.promise.then(function(R){B.ytdActiveViewBehavior.enableActiveViewMeasurement(R,15)});
_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.dataChanged=function(){var B;((B=this.data.impressionCommand)==null?0:B.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var R;((R=this.data)==null?0:R.activeView)&&this.JSC$13356_activeViewMeasurementDataResolver.resolve(this.data.activeView);(B=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(B.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.p.computeWidescreen=function(B){var R;return!!(B&&((R=_.D(B,zfh))==null?0:R.isWidescreen))};
_.p.computeExpandable=function(B){return!!(B&&B.length>0)};
_.p.onIronResize=function(){if(this.expandable){var B=_.w(this.hostElement).querySelector("#expandable-tile-container :first-child");B&&!B.expanded&&(B.expanded=!0)}};
_.p.handleMuteAd=function(){this.collapseAd(null)};
_.p.restoreCollapsedState=function(B){this.collapsed=_.UV().get("HIDDEN_MASTHEAD_ID")===B};
_.p.collapseAd=function(B){if(B){var R=_.UV();R.set("HIDDEN_MASTHEAD_ID",B);R.save()}(B=_.w(this.hostElement).querySelector("#video"))&&_.OI(B,"yt-masthead-hidden");this.collapsed=!0};
_.p.expandAd=function(){var B=_.UV();B.set("HIDDEN_MASTHEAD_ID",!1);B.save();location.reload()};
_.p.detached=function(){_.k("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Ws.prototype.onIronResize=Ws.prototype.onIronResize;Ws.prototype.dataChanged=Ws.prototype.dataChanged;_.r([_.v(_.LC),_.Z("design:type",Object)],Ws.prototype,"ironResizableBehavior",void 0);_.r([_.v(zY),_.Z("design:type",Object)],Ws.prototype,"ytdActiveViewBehavior",void 0);_.r([_.v(_.LL),_.Z("design:type",Object)],Ws.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ws.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ws.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ws.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Z("design:type",Boolean)],Ws.prototype,"widescreen",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Z("design:type",Boolean)],Ws.prototype,"expandable",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ws.prototype,"collapsed",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ws.prototype,"dataChanged",null);
_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ws.prototype,"onIronResize",null);Ws=_.r([_.A({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Ws);
_.F(Ws,"ytd-video-masthead-ad-v3-renderer",function(){if(B9G!==void 0)return B9G;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return B9G=B},{mode:2});var bM=function(){return _.c.apply(this,arguments)||this};
_.l(bM,_.c);_.p=bM.prototype;_.p.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.p.ready=function(){var B=this;jZu(function(){B.isAttached&&hk(B.JSC$13361_storedAdSlotMetadata,B.JSC$13361_storedAdLayoutMetadata,B.adSlotMetadata,B.adLayoutMetadata)&&R3(o3(),B.JSC$13361_storedAdSlotMetadata,B.JSC$13361_storedAdLayoutMetadata)})};
_.p.attached=function(){hk(this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&IJJ(o3(),this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata)};
_.p.detached=function(){hk(this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&R3(o3(),this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata)};
_.p.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13361_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13361_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13361_storedAdLayoutMetadata!==void 0&&this.JSC$13361_storedAdSlotMetadata!==void 0&&R3(o3(),this.JSC$13361_storedAdSlotMetadata,this.JSC$13361_storedAdLayoutMetadata),IJJ(o3(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13361_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13361_storedAdSlotMetadata=this.adSlotMetadata)};
_.mh.Object.defineProperties(bM.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.adLayoutMetadata}}});
bM.prototype.onAdMetadataChanged=bM.prototype.onAdMetadataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],bM.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bM.prototype,"data",void 0);_.r([_.K("data.adLayoutMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bM.prototype,"adLayoutMetadata",null);
_.r([_.E(),_.Z("design:type",Object)],bM.prototype,"adSlotMetadata",void 0);_.r([_.XX("adLayoutMetadata","adSlotMetadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bM.prototype,"onAdMetadataChanged",null);bM=_.r([_.A({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],bM);
_.F(bM,"ytd-page-top-ad-layout-renderer",function(){if(CXa!==void 0)return CXa;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return CXa=
B},{mode:_.up("kevlar_poly_si_batch_j070")?1:2});var R3G;var J0=function(){var B=_.c.apply(this,arguments)||this;B.noBottomMargin=!1;B.overlayDensity=0;B.typographyBump=!1;return B};
_.l(J0,_.c);_.p=J0.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 B=this;jZu(function(){B.isAttached&&B.adSlotMetadata&&Kiv(o3(),B.adSlotMetadata)})};
_.p.attached=function(){if(this.adSlotMetadata){var B;if(this.adSlotMetadata===((B=this.data)==null?void 0:B.adSlotMetadata))vMb(o3(),this.adSlotMetadata);else{var R;_.KE(Error("Kh`"+this.adSlotMetadata+"`"+((R=this.data)==null?void 0:R.adSlotMetadata)))}}};
_.p.detached=function(){this.adSlotMetadata&&Kiv(o3(),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&&Kiv(o3(),this.adSlotMetadata),vMb(o3(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.mh.Object.defineProperties(J0.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var B,R,V=_.D((B=this.data)==null?void 0:(R=B.fulfillmentContent)==null?void 0:R.fulfilledLayout,_.d64),e;return(B=(e=_.D(V==null?void 0:V.renderingContent,a4v))==null?void 0:e.layout)?B.toLowerCase().replace(/_/g,"-"):""}}});
J0.prototype.onAdSlotMetadataChanged=J0.prototype.onAdSlotMetadataChanged;J0.prototype.onTypographyBumpChanged=J0.prototype.onTypographyBumpChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],J0.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],J0.prototype,"rendererBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],J0.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],J0.prototype,"noBottomMargin",void 0);_.r([_.E(),_.Z("design:type",Object)],J0.prototype,"overlayDensity",void 0);_.r([_.E(),_.Z("design:type",Object)],J0.prototype,"typographyBump",void 0);_.r([_.Yp("ytd-in-feed-ad-layout-renderer"),_.Z("design:type",HTMLElement)],J0.prototype,"inFeedAdLayoutRenderer",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],J0.prototype,"layout",null);_.r([_.XX("typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J0.prototype,"onTypographyBumpChanged",null);_.r([_.XX("data.adSlotMetadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J0.prototype,"onAdSlotMetadataChanged",null);
J0=_.r([_.A({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],J0);
_.F(J0,"ytd-ad-slot-renderer",function(){if(R3G!==void 0)return R3G;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return R3G=B},{mode:_.up("kevlar_poly_si_batch_j077")?
1:2});var VlJ;var jZ=function(){return _.c.apply(this,arguments)||this};
_.l(jZ,_.c);_.p=jZ.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.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&yHx(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.p.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var B=_.h(this.data.impressionUrls),R=B.next();!R.done;R=B.next())R=R.value,zZu(R,d1d(R));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.p.attached=function(){var B=this;_.k("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.k("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.mh.Object.defineProperties(jZ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.k("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.k("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
jZ.prototype.dataChanged=jZ.prototype.dataChanged;jZ.prototype.onTap=jZ.prototype.onTap;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.r([_.v(zY),_.Z("design:type",Object)],jZ.prototype,"ytdActiveViewBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],jZ.prototype,"ytdReduxBehavior",void 0);
_.r([_.E({selector:_.Av}),_.Z("design:type",Object)],jZ.prototype,"isGridViewEnabled",void 0);_.r([_.K("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],jZ.prototype,"watchFeedBigThumbs",null);_.r([_.K("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],jZ.prototype,"thumbnailWidth",null);_.r([_.E(),_.Z("design:type",Object)],jZ.prototype,"data",void 0);
_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jZ.prototype,"onTap",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jZ.prototype,"dataChanged",null);jZ=_.r([_.A({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],jZ);
_.F(jZ,"ytd-compact-promoted-video-renderer",function(){if(VlJ!==void 0)return VlJ;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" 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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return VlJ=B},{mode:1});var e34;_.aO("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var UA=function(){return _.c.apply(this,arguments)||this};
_.l(UA,_.c);UA.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],UA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],UA.prototype,"data",void 0);UA=_.r([_.A({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],UA);
_.F(UA,"ytd-search-pyv-renderer",function(){if(e34!==void 0)return e34;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return e34=B},{mode:1});var XmR;_.aO("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var N$=function(){var B=_.c.apply(this,arguments)||this;B.roundedContainer=!0;B.JSC$13377_handleOpenPostCommentDialogActionAfterStamp=!1;B.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return B};
_.l(N$,_.c);_.p=N$.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$13377_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){var B=_.w(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");B?B.openDialog():this.JSC$13377_handleOpenPostCommentDialogActionAfterStamp=!0};
_.p.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.p.computeHideBorder=function(){return this.isInEngagementPanel};
_.p.computeIsCompact=function(){return this.isInEngagementPanel};
_.p.computeUsesCompactLockup=function(B){return B==="BACKSTAGE_SURFACE_TYPE_HOME"||B==="BACKSTAGE_SURFACE_TYPE_SEARCH"||B==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||B==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||B==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||B==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.p.computeUsesFullLockup=function(){var B,R=(B=this.data)==null?void 0:B.post,V;B=(V=_.D(R,qDb))==null?void 0:V.surface;var e;V=(e=_.D(R,AoR))==null?void 0:e.originalPost;var X;if(e=B||((X=_.D(V,qDb))==null?void 0:X.surface))return!this.computeUsesCompactLockup(e)&&this.useUpdatedRepostUi;var Y;return((Y=_.D(R,AoR))==null?void 0:Y.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.mh.Object.defineProperties(N$.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var B,R;return((R=_.D((B=this.data)==null?void 0:B.post,qDb))==null?void 0:R.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.useUpdatedRepostUi}}});
N$.prototype.onYtCommentModerationPanelEmpty=N$.prototype.onYtCommentModerationPanelEmpty;N$.prototype.onStampFinished=N$.prototype.onStampFinished;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],N$.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],N$.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],N$.prototype,"roundedContainer",void 0);_.r([_.E({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],N$.prototype,"hideBorder",void 0);_.r([_.E({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],N$.prototype,"isCompact",void 0);
_.r([_.E({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],N$.prototype,"usesFullLockup",void 0);_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],N$.prototype,"onStampFinished",null);
_.r([_.R_("ytd-comment-moderation-panel-empty"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],N$.prototype,"onYtCommentModerationPanelEmpty",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],N$.prototype,"isInEngagementPanel",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],N$.prototype,"useUpdatedRepostUi",null);
N$=_.r([_.A({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],N$);
_.F(N$,"ytd-backstage-post-thread-renderer",function(){if(XmR!==void 0)return XmR;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return XmR=B},{mode:1});var pma;var GR=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(GR,_.c);GR.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
GR.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var B=this.data.thumbnail.thumbnails;this.isDarkTheme&&(B=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(B=_.$T(B,24,void 0,"height"))?B:void 0}};
GR.prototype.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
GR.prototype.computeHasText=function(){var B;return!((B=this.data)==null||!B.text)};
_.mh.Object.defineProperties(GR.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.ym(this.bannerImageUrl))+'");'}}});
GR.prototype.computeHasText=GR.prototype.computeHasText;GR.prototype.computeBannerImageUrl=GR.prototype.computeBannerImageUrl;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],GR.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],GR.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],GR.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],GR.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",String)],GR.prototype,"bannerImageUrl",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Z("design:type",Boolean)],GR.prototype,"hasText",void 0);_.r([_.XX("data","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GR.prototype,"computeBannerImageUrl",null);
_.r([_.XX("data.text"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GR.prototype,"computeHasText",null);_.r([_.K("bannerImageUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GR.prototype,"bannerStyle",null);GR=_.r([_.A({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],GR);
_.F(GR,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(pma!==void 0)return pma;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return pma=B},{mode:1});var YG5;var yY=function(){return _.c.apply(this,arguments)||this};
_.l(yY,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yY.prototype,"data",void 0);yY=_.r([_.A({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],yY);
_.F(yY,"ytd-backstage-zero-state-renderer",function(){if(YG5!==void 0)return YG5;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return YG5=B},{mode:1});var h3v;var SZ=function(){return _.c.apply(this,arguments)||this};
_.l(SZ,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],SZ.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],SZ.prototype,"icon",void 0);SZ=_.r([_.A({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],SZ);
_.F(SZ,"ytd-post-filter-zero-state-renderer",function(){if(h3v!==void 0)return h3v;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return h3v=B},{mode:1});var tlS;var WS4={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Hs=function(){return _.c.apply(this,arguments)||this};
_.l(Hs,_.c);Hs.prototype.configureRendererStamper=function(){return WS4};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Hs.prototype,"rendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Hs.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],Hs.prototype,"icon",void 0);Hs=_.r([_.A({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Hs);
_.F(Hs,"ytd-post-scheduling-zero-state-renderer",function(){if(tlS!==void 0)return tlS;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return tlS=B},{mode:1});var b1G;var M$=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return B};
_.l(M$,_.c);M$.prototype.onTabsActivate=function(B){this.data&&this.data.tabs&&_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[B.detail.selected].navigationEndpoint})};
M$.prototype.shouldShowTotalCount=function(B){return B&&B.totalCount!==void 0};
M$.prototype.handleUpdatePostsTotalCountAction=function(B){var R=this.get(["data.tabs",1,"totalCount"]),V=this.get("updatePostsTotalCountAction.updateType",B);B=this.get("updatePostsTotalCountAction.number",B);R!==void 0&&V!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&B&&(V==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(R)+B):V==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(R)-B))};
_.mh.Object.defineProperties(M$.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var B=0,R=this.data.tabs.length;B<R;B++)if(this.data.tabs[B].selected)return B;return 0}}});
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],M$.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],M$.prototype,"rendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],M$.prototype,"data",void 0);_.r([_.K("data.tabs"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],M$.prototype,"selected",null);M$=_.r([_.A({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],M$);
_.F(M$,"ytd-post-stream-filter-renderer",function(){if(b1G!==void 0)return b1G;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return b1G=B},{mode:1});var JVo;var ky=function(){return _.c.apply(this,arguments)||this};
_.l(ky,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ky.prototype,"kevlarBehaviors",void 0);_.r([_.E(),_.Z("design:type",Object)],ky.prototype,"data",void 0);ky=_.r([_.A({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],ky);
_.F(ky,"ytd-channel-age-gate-renderer",function(){if(JVo!==void 0)return JVo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return JVo=B},{mode:1});var jX4;_.aO("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var DZ=function(){var B=_.c.apply(this,arguments)||this;B.data=null;return B};
_.l(DZ,_.c);DZ.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.mh.Object.defineProperties(DZ.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.data)==null?0:(R=B.title)==null?0:(V=R.runs)==null?0:V.length)?147:160}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],DZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],DZ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],DZ.prototype,"imageSizePx",null);DZ=_.r([_.A({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],DZ);
_.F(DZ,"ytd-channel-owner-empty-state-renderer",function(){if(jX4!==void 0)return jX4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return jX4=B},{mode:1});var Utl;var N94;var f3=function(){var B=_.c.apply(this,arguments)||this;B.boundSubmitSearch=function(){B.submitSearch()};
B.boundClearSearch=function(){B.clearSearch()};
return B};
_.l(f3,_.c);_.p=f3.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=TuK||!this.input.value};
_.p.submitOnEnterKeyUp=function(B){B.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(){_.OI(this.hostElement,"search-query-changed",this.input.value)};
f3.prototype.toggleClearButton=f3.prototype.toggleClearButton;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],f3.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],f3.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],f3.prototype,"hideClearButton",void 0);_.r([_.E(),_.Z("design:type",Object)],f3.prototype,"boundSubmitSearch",void 0);_.r([_.E(),_.Z("design:type",Object)],f3.prototype,"boundClearSearch",void 0);_.r([_.Yp("#input"),_.Z("design:type",Object)],f3.prototype,"input",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],f3.prototype,"toggleClearButton",null);
f3=_.r([_.A({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],f3);
_.F(f3,"ytd-channel-switcher-search-box-renderer",function(){if(N94!==void 0)return N94;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return N94=B},{mode:1});var GZ_;var lM=function(){var B=_.c.apply(this,arguments)||this;B.boundSubmit=function(){B.submit()};
return B};
_.l(lM,_.c);_.p=lM.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 B=this;this.form.addEventListener("submit",function(R){return B.onSubmit(R)})};
_.p.onSubmit=function(B){B.preventDefault();return!1};
_.p.toggleClearButton=function(){this.hideClearButton=TuK||!this.input.value};
_.p.submitOnEnterKeyUp=function(B){B.keyCode===13&&this.submit()};
_.p.submit=function(){var B=this.data.endpoint,R=(0,_.M_.unsafeClone)(B);_.D(R,_.Jz)?_.D(R,_.Jz).query=this.input.value:_.D(R,_.jc)&&(_.D(R,_.jc).query=this.input.value);var V=_.D(R.commandMetadata,_.$a);(V==null?0:V.url)?(V.url=_.QU(V.url,"query",this.input.value),_.OI(this.hostElement,"yt-navigate",{endpoint:R})):_.D(R,HUh)?(_.D(R,HUh).channelSwitcherQuery=this.input.value,_.Oz().resolve(_.oC).resolveCommand(R,{form:{element:this.hostElement}})):(B=Error("Lh`"+JSON.stringify(B)),_.Tn(B))};
_.p.getUrl=function(B){return this.get("commandMetadata.webCommandMetadata.url",B)};
lM.prototype.toggleClearButton=lM.prototype.toggleClearButton;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lM.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lM.prototype,"hideClearButton",void 0);
_.r([_.E(),_.Z("design:type",Object)],lM.prototype,"boundSubmit",void 0);_.r([_.Yp("#form"),_.Z("design:type",HTMLFormElement)],lM.prototype,"form",void 0);_.r([_.Yp("#input"),_.Z("design:type",Object)],lM.prototype,"input",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lM.prototype,"toggleClearButton",null);lM=_.r([_.A({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],lM);
_.F(lM,"ytd-search-box-renderer",function(){if(GZ_!==void 0)return GZ_;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return GZ_=B},{mode:2});var zR=function(){var B=_.c.apply(this,arguments)||this;B.showSearchBox=!0;return B};
_.l(zR,_.c);zR.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zR.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zR.prototype,"showSearchBox",void 0);zR=_.r([_.A({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],zR);
_.F(zR,"ytd-channel-switcher-header-renderer",function(){if(Utl!==void 0)return Utl;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Utl=B},{mode:1});var yVR;var SGS;var a3=function(){var B=_.c.apply(this,arguments)||this;B.isDisplayed=!0;return B};
_.l(a3,_.c);_.p=a3.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(B){return B||"UNKNOWN"};
_.p.onYtServiceRequestCompleted=function(B){B.stopPropagation();this.isDisplayed=!1};
_.p.onClose=function(){this.isDisplayed=!1};
a3.prototype.onYtServiceRequestCompleted=a3.prototype.onYtServiceRequestCompleted;a3.prototype.dataChanged=a3.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],a3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],a3.prototype,"data",void 0);
_.r([_.E({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Z("design:type",String)],a3.prototype,"type",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],a3.prototype,"isDisplayed",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a3.prototype,"dataChanged",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],a3.prototype,"onYtServiceRequestCompleted",null);a3=_.r([_.A({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],a3);
_.F(a3,"ytd-alert-with-button-renderer",function(){if(SGS!==void 0)return SGS;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return SGS=B},{mode:1});var dF=function(){var B=_.c.apply(this,arguments)||this;B.noResult=!1;B.enableAlertBanner=!1;B.dismissedAlertBanner=!1;B.hideCreateChannelButton=!1;B.boundDismissAlertBanner=function(){B.dismissAlertBanner()};
B.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return B};
_.l(dF,_.c);_.p=dF.prototype;_.p.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.p.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.p.updateChannelSwitcherAction=function(B){var R;B=(R=_.D(B,o3G))==null?void 0:R.page;_.D(B,OYv)!==void 0&&(this.data=_.D(B,OYv))};
_.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(B,R){if(this.data&&this.data.contents&&this.data.contents.length){B=[];var V=[];this.hideCreateChannelButton=this.noResult=!1;for(var e=document.querySelectorAll("ytd-account-item-renderer"),X=_.h(e),Y=X.next();!Y.done;Y=X.next())Y=Y.value,V.push(Y),Y.style.display="block";this.resetRightBorder(V);if(R){this.hideCreateChannelButton=!0;for(V=1;V<this.data.contents.length;V++)if(Y=this.data.contents[V],_.D(Y,Gol)){var t=void 0,b=void 0;X=(t=_.D(Y,Gol))==null?void 0:(b=
t.accountName)==null?void 0:b.simpleText;b=t=void 0;Y=(t=_.D(Y,Gol))==null?void 0:(b=t.channelHandle)==null?void 0:b.simpleText;(t=e[V-1])&&X&&_.jq(X,R)?B.push(t):_.k("enable_handle_search_on_channel_switcher")&&t&&Y&&_.jq(Y.toString(),R.toString())?B.push(t):t.style.display="none"}B.length===0&&(this.noResult=!0);this.resetRightBorder(B)}}};
_.p.resetRightBorder=function(B){for(var R=0;R<B.length;R++)B[R].style.borderRight=!this.hideCreateChannelButton&&(R+2)%3===0||this.hideCreateChannelButton&&(R+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.p.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.p.setShowSearchBox=function(B){if(B&&B.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var R=0;R<B.contents.length;R++)_.D(B.contents[R],_.YQ)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.p.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.mh.Object.defineProperties(dF.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null?0:B.contents)}}});
dF.prototype.onContinuationItemsUpdated=dF.prototype.onContinuationItemsUpdated;dF.prototype.searchQueryChanged=dF.prototype.searchQueryChanged;dF.prototype.onDataChanged=dF.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],dF.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],dF.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],dF.prototype,"data",void 0);_.r([_.Yp("ytd-channel-switcher-header-renderer"),_.Z("design:type",Object)],dF.prototype,"channelSwitcherHeaderRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],dF.prototype,"noResult",void 0);
_.r([_.E(),_.Z("design:type",Object)],dF.prototype,"enableAlertBanner",void 0);_.r([_.E(),_.Z("design:type",Object)],dF.prototype,"dismissedAlertBanner",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],dF.prototype,"hideCreateChannelButton",void 0);_.r([_.K("data.contents"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],dF.prototype,"isLoading",null);_.r([_.E(),_.Z("design:type",Object)],dF.prototype,"boundDismissAlertBanner",void 0);
_.r([_.E({computed:"computeButtonOverride()"}),_.Z("design:type",Object)],dF.prototype,"buttonOverride",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dF.prototype,"onDataChanged",null);_.r([_.R_("search-query-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,String]),_.Z("design:returntype")],dF.prototype,"searchQueryChanged",null);
_.r([_.R_("yt-next-continuation-data-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],dF.prototype,"onContinuationItemsUpdated",null);dF=_.r([_.A({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],dF);
_.F(dF,"ytd-channel-switcher-page-renderer",function(){if(yVR!==void 0)return yVR;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return yVR=B},{mode:1});var H14;var Mla;var wF=function(){var B=_.c.apply(this,arguments)||this;B.images=[];B.selectedImageIndex=0;return B};
_.l(wF,_.c);_.p=wF.prototype;
_.p.ready=function(){_.G2(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.G2(this.JSC$13422_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.G2(this.JSC$13422_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.G2(this.JSC$13422_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.p.onThumbnailClick=function(B){if(B=B.event_.detail)this.selectedImageIndex=this.images.indexOf(B)};
_.p.updateImageThumbnails=function(B){B=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:B.event_.detail});this.images.splice(this.selectedImageIndex,1,B);this.images=[].concat(_.MI(this.images))};
_.p.cancelImageRepositions=function(){this.selectedImageIndex=0;_.OI(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.p.saveImageRepositions=function(){this.selectedImageIndex=0;_.OI(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.mh.Object.defineProperties(wF.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var B=this;return(this.images||[]).map(function(R,V){return{image:R,selected:V===B.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Yp("ytd-backstage-image-preview-renderer"),_.Z("design:type",Object)],wF.prototype,"JSC$13422_imagePreviewContainer",void 0);_.r([_.Yp(".thumbnail-images-container"),_.Z("design:type",HTMLElement)],wF.prototype,"thumbnailImagesContainer",void 0);_.r([_.E(),_.Z("design:type",Array)],wF.prototype,"images",void 0);
_.r([_.E(),_.Z("design:type",Object)],wF.prototype,"repositionInstructions",void 0);_.r([_.E(),_.Z("design:type",Object)],wF.prototype,"selectedImageIndex",void 0);_.r([_.K("images","selectedImageIndex"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],wF.prototype,"thumbnailRendererDatas",null);_.r([_.K("images","selectedImageIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wF.prototype,"selectedImageData",null);
wF=_.r([_.A({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],wF);
_.F(wF,"ytd-backstage-multi-image-reposition-renderer",function(){if(Mla!==void 0)return Mla;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Mla=B},{mode:1});var TR=function(B,R){_.H_.call(this);this.uploadUrl=B;this.channelId=R;this.imagesUploadData=[]};
_.l(TR,_.H_);TR.prototype.getAllUploadStatuses=function(){var B=this,R,V,e;return _.W(function(X){if(X.nextAddress==1)return _.U(X,kZv(B),2);R=X.yieldResult;V=R.get("succeed");e=R.get("failed");return X.return(V.concat(e))})};
var fnv=function(B){var R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,kZv(B),2);R=e.yieldResult;V=R.get("failed");V.length>0&&Dt4(B,V);return e.return(B.getAllUploadStatuses())})},kZv=function(B){var R,V,e,X,Y,t,b;
return _.W(function(J){if(J.nextAddress==1)return R=new Map,_.U(J,Promise.allSettled(B.imagesUploadData.map(function(G){return G.uploadPromise})),2);
V=J.yieldResult;e=[];X=_.h(V);for(Y=X.next();!Y.done;Y=X.next())t=Y.value,t.status==="fulfilled"&&e.push(t.value);b=B.imagesUploadData.map(function(G){return G.image}).filter(function(G){return e.every(function(y){return y.id!==G.id})});
R.set("succeed",e);R.set("failed",b);return J.return(R)})},Dt4=function(B,R){R=_.h(R);
for(var V=R.next();!V.done;V=R.next()){var e=B;V=V.value;lnR(e,V.id)>=0&&e.cancel(V.id);var X=new z3R(V),Y=_.efh(e.uploadUrl,{"X-YouTube-ChannelId":e.channelId},V.imageBlob);X.transfer=Y;X.uploadPromise=anT(Y,V);e.imagesUploadData.push(X);Y.run()}};
TR.prototype.cancel=function(B){var R=lnR(this,B);R!==-1&&((R=this.imagesUploadData[R].transfer)&&R.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(V){return V.image.id!==B}))};
var lnR=function(B,R){return B.imagesUploadData.findIndex(function(V){return V.image.id===R})},anT=function(B,R){return new Promise(function(V,e){B.listen("l",function(){var X=B.getResponseText();
X?(X=JSON.parse(X).encryptedBlobId,R.encryptedBlobId=X,V(R)):e("upload failed")});
B.listen("n",function(){e("upload failed")})})},z3R=function(B){this.image=B};var sdA=function(B,R,V,e,X){this.id=B;this.imageBlob=R;this.localImageSrc=V;this.naturalWidth=e;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 dtS=[".jpeg",".jpg",".png"],xy=function(){var B=_.c.apply(this,arguments)||this;B.showImagesPreview=!1;B.pollOptions=[];B.errorMessage="";B.optionPlaceholderText="";B.optionDefaultText="";B.JSC$13433_imageId=0;B.maxFileSizeMb=0;B.maxAspectRatio=0;B.invalidFileSizeError="";B.invalidAspectRatioError="";B.invalidFileTypeError="";B.imageSelector=new jE(null,"single_file",dtS);return B};
_.l(xy,_.c);_.p=xy.prototype;_.p.ready=function(){_.G2(this.imageSelector,"j",this.onImageSelect,!1,this);_.G2(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.G2(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.p.dataChanged=function(){var B,R,V=_.D((B=this.data)==null?void 0:(R=B.cellTemplate)==null?void 0:R.onEmptyCellTap,Og5);if(V&&V.uploadUrl&&V.channelId){var e;this.maxFileSizeMb=((e=V.imageValidationInfo)==null?void 0:e.maxFileSizeMb)||0;var X;this.maxAspectRatio=((X=V.imageValidationInfo)==null?void 0:X.allowedMaxAspectRatio)||0;var Y;this.invalidFileSizeError=this.getSimpleString((Y=this.data)==null?void 0:Y.invalidFileSizeError);var t;this.invalidAspectRatioError=this.getSimpleString((t=this.data)==
null?void 0:t.invalidAspectRatioError);var b;this.invalidFileTypeError=this.getSimpleString((b=this.data)==null?void 0:b.invalidFileTypeError);this.uploadManager=new TR(V.uploadUrl,V.channelId)}};
_.p.onEditorInfoChange=function(){this.optionPlaceholderText=_.FF(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.FF(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.p.observeAddImageError=function(){this.errorMessage!==""&&_.OI(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.p.onPollOptionsChange=function(){for(var B=!1,R=[],V=0;V<this.pollOptions.length;V++){var e=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(V+1);this.pollOptions[V].placeholderText!==e?(B=!0,R.push(Object.assign({},this.pollOptions[V],{placeholderText:e}))):R.push(this.pollOptions[V])}B&&(this.pollOptions=R);this.isValid()?_.OI(this.hostElement,"yt-commentbox-post-enable"):_.OI(this.hostElement,"yt-commentbox-post-disable")};
_.p.createPollOptions=function(B){var R=[],V;B=(V=B==null?void 0:B.minPollOptions)!=null?V:0;for(V=0;V<B;V++)R.push(this.createPollOption());return R};
_.p.onImageSelect=function(B){var R=this,V,e,X,Y,t,b;return _.W(function(J){if(J.nextAddress==1){if(R.selectedImageIndex===void 0)return J.jumpTo(0);V=B.files[0];R.errorMessage="";e=R.validateImage(V);if(e!=="")return R.errorMessage=e,J.return();X=new gf(R.maxAspectRatio,!1,!0);return _.U(J,X.transform(V),3)}if(J.nextAddress!=4)return Y=J.yieldResult,Y.transformedData?Y.invalidAspectRatio?(R.errorMessage=R.invalidAspectRatioError,J.return()):_.U(J,Fiu(R.JSC$13433_imageId,B.files[0],Y.transformedData),
4):(R.errorMessage=R.invalidFileTypeError,J.return());t=J.yieldResult;R.JSC$13433_imageId++;Dt4(R.uploadManager,[t]);b=Object.assign({},R.pollOptions[R.selectedImageIndex],{image:t});R.pollOptions.splice(R.selectedImageIndex,1,b);R.refreshPollOptions();_.OI(R.hostElement,"yt-backstage-poll-image-select");_.b3(J)})};
_.p.validateImage=function(B){return B.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.p.refreshPollOptions=function(){this.pollOptions=[].concat(_.MI(this.pollOptions))};
_.p.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.MI(this.pollOptions),[this.createPollOption()]))};
_.p.onRemovePollOption=function(B){var R=this.pollOptions[B.model.index];R&&R.image&&this.uploadManager.cancel(R.image.id);this.pollOptions.splice(B.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.OI(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.p.onTextInput=function(){this.refreshPollOptions()};
_.p.onImageButtonClick=function(B){this.selectedImageIndex=B.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(B){B=B.event_.detail;for(var R=0,V=[],e=_.h(this.pollOptions),X=e.next();!X.done;X=e.next())X=X.value,X.image!==void 0?(X=Object.assign({},X,{image:B[R]}),V.push(X),R++):V.push(X);this.showImagesPreview=!1;this.pollOptions=[].concat(_.MI(V))};
_.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 B=0,R=_.h(this.pollOptions),V=R.next();!V.done;V=R.next())if(V=V.value,V.optionText.trim()!==""||V.image!==void 0){if(!V.image||this.hasCustomOptionText&&V.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;B++}return B>=Number(this.editorInfo.minPollOptions)};
_.p.getAllUploadStatuses=function(){var B=this,R,V,e,X;return _.W(function(Y){if(Y.nextAddress==1)return _.U(Y,B.uploadManager.getAllUploadStatuses(),2);R=Y.yieldResult;V=_.h(R);for(e=V.next();!e.done;e=V.next())if(X=e.value,X.encryptedBlobId===void 0)return Y.return(fnv(B.uploadManager));return Y.return(R)})};
_.p.getPostCreateOptions=function(){for(var B=[],R=_.h(this.pollOptions),V=R.next();!V.done;V=R.next())V=V.value,V.image!==void 0&&B.push({text:this.hasCustomOptionText?V.optionText:V.placeholderText,image:V.image});return B};
_.p.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.p.createButtonRenderer=function(B,R){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:B,accessibilityData:{accessibilityData:{label:this.getSimpleString(B)}},isDisabled:R}};
_.p.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.p.computeThumbnailRendererData=function(B){return B?{image:B,selected:!1}:void 0};
_.p.getSimpleString=function(B){return _.FF(B)};
_.p.updateOptionTextFromBinding=function(B){if(B.target){var R=Array.from(_.w(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(B.target);if(R>=0){var V;this.pollOptions[R].optionText=(V=B.detail.value)!=null?V:""}}};
_.mh.Object.defineProperties(xy.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var B,R;return this.pollOptions.length<((R=(B=this.editorInfo)==null?void 0:B.maxPollOptions)!=null?R:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(B){return B.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(B){return B.image}).map(function(B){return B.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(B){return B.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var B,R=(B=this.data)==null?void 0:B.addOptionButtonText;return R?this.createButtonRenderer(R,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var B,R=(B=this.data)==null?void 0:B.repositionImagesButtonLabel;return R?this.createButtonRenderer(R,!this.hasImages):void 0}}});
xy.prototype.onPollOptionsChange=xy.prototype.onPollOptionsChange;xy.prototype.observeAddImageError=xy.prototype.observeAddImageError;xy.prototype.onEditorInfoChange=xy.prototype.onEditorInfoChange;xy.prototype.dataChanged=xy.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Yp("ytd-backstage-multi-image-reposition-renderer"),_.Z("design:type",Object)],xy.prototype,"imageRepositionContainer",void 0);
_.r([_.E(),_.Z("design:type",Object)],xy.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],xy.prototype,"editorInfo",void 0);_.r([_.E(),_.Z("design:type",TR)],xy.prototype,"uploadManager",void 0);_.r([_.E(),_.Z("design:type",Object)],xy.prototype,"showImagesPreview",void 0);_.r([_.E(),_.Z("design:type",Array)],xy.prototype,"pollOptions",void 0);_.r([_.E(),_.Z("design:type",Object)],xy.prototype,"errorMessage",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xy.prototype,"dataChanged",null);_.r([_.bp("editorInfo"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xy.prototype,"onEditorInfoChange",null);_.r([_.XX("errorMessage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xy.prototype,"observeAddImageError",null);
_.r([_.bp("pollOptions"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xy.prototype,"onPollOptionsChange",null);_.r([_.K("pollOptions","editorInfo"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xy.prototype,"isAllowedToAddOption",null);_.r([_.K("pollOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xy.prototype,"hasImages",null);
_.r([_.K("pollOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xy.prototype,"imagesToReposition",null);_.r([_.K("pollOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xy.prototype,"hasCustomOptionText",null);_.r([_.K("data","isAllowedToAddOption"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xy.prototype,"addOptionButton",null);_.r([_.K("data","hasImages"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xy.prototype,"repositionImagesButton",null);
xy=_.r([_.A({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],xy);
_.F(xy,"ytd-backstage-image-poll-editor-renderer",function(){if(H14!==void 0)return H14;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return H14=B},{mode:2});var wm4={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 T9o;var L3=function(){var B=_.c.apply(this,arguments)||this;B.a11yConfig=wm4;B.imageDisplayOffsetTop=0;B.imageDisplayOffsetLeft=0;B.pickerDisplayOffsetTop=0;B.pickerDisplayOffsetLeft=0;B.showPreviewContainer=!0;B.startPicker=!1;B.repositionOptional=!1;B.editOnlyMode=!1;B.savedImageDisplayOffsetTop=0;B.savedImageDisplayOffsetLeft=0;return B};
_.l(L3,_.c);_.p=L3.prototype;_.p.created=function(){_.iv.requestAvailability()};
_.p.ready=function(){};
_.p.onArrowKeysDown=function(B){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){B.detail.keyboardEvent.preventDefault();var R=0,V=0,e="";switch(B.detail.keyboardEvent.key){case "ArrowUp":rBx(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?e=this.a11yConfig.reachBottomOfImage:R=this.imageHeight*.05*-1;break;case "ArrowDown":rBx(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?e=this.a11yConfig.reachTopOfImage:
R=this.imageHeight*.05;break;case "ArrowLeft":rBx(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?e=this.a11yConfig.reachRightOfImage:V=this.imageWidth*.05*-1;break;case "ArrowRight":rBx(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?e=this.a11yConfig.reachLeftOfImage:V=this.imageWidth*.05}e&&_.Wz(e)&&_.OI(this.hostElement,"iron-announce",{text:_.Wz(e)});if(V||R)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+R)),B=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),B=_.Wz(this.a11yConfig.imageVerticalPosition,{x_percent:""+B,y_percent:""+(100-B)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+V)),B=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),B=_.Wz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+B,y_percent:""+(100-B)})),B&&_.OI(this.hostElement,"iron-announce",{text:B})}};
_.p.getPreviewPosition=function(B,R,V,e){return Math.round(100*(B+R*.5-V)/e)};
_.p.calculateDisplayPosition=function(){var B=this.imageData.naturalWidth,R=this.imageData.naturalHeight;this.displayScale=Math.max(200/B,200/R);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var V=B*this.displayScale*this.imageData.previewCoordinates.left,e=R*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=R>B?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-V;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=B>R?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-e;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=B*this.displayScale;this.imageHeight=R*this.displayScale};
_.p.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.p.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.p.getSignedPosition=function(B,R,V){return R==="X"&&_.vE("HTML_DIR")==="rtl"?V==="-"?B+"px":B*-1+"px":V==="-"?B*-1+"px":B+"px"};
_.p.pickerMove=function(B){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var R=this.pickerOffsetX-B.clientX,V=this.pickerOffsetY-B.clientY;this.pickerOffsetX=B.clientX;this.pickerOffsetY=B.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
V)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-R))}};
_.p.pickerMoveStart=function(B){this.startPicker=!0;this.pickerOffsetX=B.clientX;this.pickerOffsetY=B.clientY};
_.p.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var B=this.generateCropPreview();B&&_.OI(this.hostElement,"ytd-backstage-image-preview-coordinates-update",B)};
_.p.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.OI(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.p.deleteImage=function(){_.OI(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 B=this.generateCropPreview();B&&_.OI(this.hostElement,"ytd-backstage-image-preview-coordinates-save",B)};
_.p.getPreviewOffset=function(B,R,V){return R&&B?(V==="X"&&_.vE("HTML_DIR")==="rtl"?300/R*B:300/R*B*-1)+"px":"0px"};
_.p.getSimpleText=function(B){return B?_.FF(B):""};
_.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}};
_.mh.Object.defineProperties(L3.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var B=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Wz(this.a11yConfig.imageVerticalPosition,{x_percent:""+B,y_percent:""+(100-B)})+"\n"+_.Wz(this.a11yConfig.verticalRepositionInstruction)}B=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Wz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+B,y_percent:""+(100-B)})+"\n"+_.Wz(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 B,R,V=(B=this.instruction)==null?void 0:(R=B.previewInstruction)==null?void 0:R.editButtonLabel;return V?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e,X=this.editOnlyMode?(B=this.instruction)==null?void 0:(R=B.editInstruction)==null?void 0:R.saveImagesButtonLabel:(V=this.instruction)==null?void 0:(e=V.editInstruction)==null?void 0:e.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 B,R,V=(B=this.instruction)==null?void 0:(R=B.previewInstruction)==null?void 0:R.deleteButtonLabel;return V?{size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(B=this.instruction)==null?void 0:(R=B.editInstruction)==null?void 0:R.cancelButtonLabel;B=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return V?{style:B,size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}: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"}}});
L3.prototype.onEditOnlyModeUpdate=L3.prototype.onEditOnlyModeUpdate;L3.prototype.onImageChange=L3.prototype.onImageChange;_.r([_.E(),_.Z("design:type",sdA)],L3.prototype,"imageData",void 0);_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"instruction",void 0);_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"a11yConfig",void 0);_.r([_.E(),_.Z("design:type",Number)],L3.prototype,"imageWidth",void 0);_.r([_.E(),_.Z("design:type",Number)],L3.prototype,"imageHeight",void 0);
_.r([_.E(),_.Z("design:type",Number)],L3.prototype,"displayScale",void 0);_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"imageDisplayOffsetTop",void 0);_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"imageDisplayOffsetLeft",void 0);_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"pickerDisplayOffsetTop",void 0);_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"pickerDisplayOffsetLeft",void 0);_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"showPreviewContainer",void 0);
_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"startPicker",void 0);_.r([_.E(),_.Z("design:type",Number)],L3.prototype,"pickerOffsetX",void 0);_.r([_.E(),_.Z("design:type",Number)],L3.prototype,"pickerOffsetY",void 0);_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"repositionOptional",void 0);_.r([_.E(),_.Z("design:type",Object)],L3.prototype,"editOnlyMode",void 0);_.r([_.Yp("#picker-container"),_.Z("design:type",HTMLElement)],L3.prototype,"JSC$13446_pickerContainer",void 0);
_.r([_.Yp("#picker"),_.Z("design:type",HTMLElement)],L3.prototype,"picker",void 0);_.r([_.Yp("#preview-clipper"),_.Z("design:type",HTMLElement)],L3.prototype,"previewClipper",void 0);_.r([_.Yp("#image-in-picker-background"),_.Z("design:type",HTMLImageElement)],L3.prototype,"JSC$13446_imageInBackground",void 0);_.r([_.Yp("#image-in-picker"),_.Z("design:type",HTMLImageElement)],L3.prototype,"JSC$13446_imageInPicker",void 0);
_.r([_.Yp("#image-in-preview-clipper"),_.Z("design:type",HTMLImageElement)],L3.prototype,"JSC$13446_imageInPreviewClipper",void 0);_.r([_.K("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],L3.prototype,"altLabelForImage",null);_.r([_.K("imageHeight","imageWidth"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],L3.prototype,"pickerSize",null);
_.r([_.K("imageHeight","imageWidth"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L3.prototype,"imageOrientationStyle",null);_.r([_.K("instruction"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L3.prototype,"editButton",null);_.r([_.K("instruction","editOnlyMode"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L3.prototype,"saveButton",null);_.r([_.K("instruction"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L3.prototype,"deleteButton",null);
_.r([_.K("instruction","editOnlyMode"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L3.prototype,"cancelButton",null);_.r([_.K("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],L3.prototype,"cropOffsetTop",null);_.r([_.K("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],L3.prototype,"cropOffsetLeft",null);
_.r([_.K("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],L3.prototype,"pickerBackgroundStyle",null);_.r([_.K("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],L3.prototype,"pickerDisplayStyle",null);_.r([_.K("cropOffsetLeft","cropOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],L3.prototype,"imageInPickerStyle",null);
_.r([_.K("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Z("design:type",String),_.Z("design:paramtypes",[])],L3.prototype,"previewClipperStyle",null);_.r([_.bp("imageData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],L3.prototype,"onImageChange",null);_.r([_.bp("editOnlyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],L3.prototype,"onEditOnlyModeUpdate",null);
_.r([_.K("showPreviewContainer"),_.Z("design:type",String),_.Z("design:paramtypes",[])],L3.prototype,"pickerModeStyle",null);L3=_.r([_.A({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],L3);
_.F(L3,"ytd-backstage-image-preview-renderer",function(){if(T9o!==void 0)return T9o;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return T9o=B},{mode:1});var xtl;var LSS={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 vCb;var KSS;var vs=function(){var B=_.c.apply(this,arguments)||this;B.a11yConfig=LSS;B.imageDisplayOffsetTop=0;B.imageDisplayOffsetLeft=0;B.pickerDisplayOffsetTop=0;B.pickerDisplayOffsetLeft=0;B.cropCoordinatesSaved=!1;B.previewSize=0;B.startPicker=!1;B.repositionOptional=!1;return B};
_.l(vs,_.c);_.p=vs.prototype;_.p.created=function(){_.iv.requestAvailability()};
_.p.ready=function(){};
_.p.onArrowKeysDown=function(B){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){B.detail.keyboardEvent.preventDefault();var R=0,V=0,e="";switch(B.detail.keyboardEvent.key){case "ArrowUp":gMo(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?e=this.a11yConfig.reachBottomOfImage:R=this.imageHeight*.05*-1;break;case "ArrowDown":gMo(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?e=this.a11yConfig.reachTopOfImage:
R=this.imageHeight*.05;break;case "ArrowLeft":gMo(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?e=this.a11yConfig.reachRightOfImage:V=this.imageWidth*.05*-1;break;case "ArrowRight":gMo(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?e=this.a11yConfig.reachLeftOfImage:V=this.imageWidth*.05}e&&_.Wz(e)&&_.OI(this.hostElement,"iron-announce",{text:_.Wz(e)});if(V||R)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+R)),B=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),B=_.Wz(this.a11yConfig.imageVerticalPosition,{x_percent:""+B,y_percent:""+(100-B)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+V)),B=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),B=_.Wz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+B,y_percent:""+(100-B)})),B&&_.OI(this.hostElement,"iron-announce",{text:B})}};
_.p.getPreviewPosition=function(B,R,V,e){return Math.round(100*(B+R*.5-V)/e)};
_.p.displayImage=function(){var B=this.JSC$13457_pickerContainer.getBoundingClientRect().width,R=this.JSC$13457_pickerContainer.getBoundingClientRect().height,V=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),e=this.JSC$13457_imageInBackground.naturalWidth,X=this.JSC$13457_imageInBackground.naturalHeight;this.displayScale=Math.max(V/e,V/X);this.imageWidth=e*this.displayScale;this.imageHeight=X*this.displayScale;this.pickerDisplayOffsetLeft=(B-V)/2;this.pickerDisplayOffsetTop=
(R-V)/2;this.imageDisplayOffsetLeft=X>e?this.pickerDisplayOffsetLeft:(B-this.imageWidth)/2;this.imageDisplayOffsetTop=e>X?this.pickerDisplayOffsetTop:(R-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.p.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13457_imageInBackground.src=this.imageData.toString(),this.JSC$13457_imageInPicker.src=this.imageData.toString(),this.JSC$13457_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.p.getSignedPosition=function(B,R,V){return R==="X"&&_.vE("HTML_DIR")==="rtl"?V==="-"?B+"px":B*-1+"px":V==="-"?B*-1+"px":B+"px"};
_.p.pickerMove=function(B){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var R=this.pickerOffsetX-B.clientX,V=this.pickerOffsetY-B.clientY;this.pickerOffsetX=B.clientX;this.pickerOffsetY=B.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
V)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-R))}};
_.p.pickerMoveStart=function(B){this.startPicker=!0;this.pickerOffsetX=B.clientX;this.pickerOffsetY=B.clientY};
_.p.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.p.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.OI(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.p.getPreviewOffset=function(B,R,V,e){return R&&B&&V?(e==="X"&&_.vE("HTML_DIR")==="rtl"?V/R*B:V/R*B*-1)+"px":"0px"};
_.p.getSimpleText=function(B){return B?_.FF(B):""};
_.p.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var B=this.cropOffsetTop/this.imageHeight,R=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,V=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,e=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.w(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.OI(this.hostElement,"yt-img-crop-coordinates-update",{top:B,right:R,bottom:V,left:e})}};
_.mh.Object.defineProperties(vs.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var B=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Wz(this.a11yConfig.imageVerticalPosition,{x_percent:""+B,y_percent:""+(100-B)})+"\n"+_.Wz(this.a11yConfig.verticalRepositionInstruction)}B=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Wz(this.a11yConfig.imageHorizontalPosition,{x_percent:""+B,y_percent:""+(100-B)})+"\n"+_.Wz(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 B,R=(B=this.learnMore.runs[0])==null?void 0:B.navigationEndpoint,V;return((V=_.D(R,_.ie))==null?void 0:V.url)||void 0}}}});
vs.prototype.onImageDataChange=vs.prototype.onImageDataChange;_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"imageData",void 0);_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"instruction",void 0);_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"a11yConfig",void 0);_.r([_.E(),_.Z("design:type",Number)],vs.prototype,"imageWidth",void 0);_.r([_.E(),_.Z("design:type",Number)],vs.prototype,"imageHeight",void 0);_.r([_.E(),_.Z("design:type",Number)],vs.prototype,"displayScale",void 0);
_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"imageDisplayOffsetTop",void 0);_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"imageDisplayOffsetLeft",void 0);_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"pickerDisplayOffsetTop",void 0);_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"pickerDisplayOffsetLeft",void 0);_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"cropCoordinatesSaved",void 0);_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"previewSize",void 0);
_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"startPicker",void 0);_.r([_.E(),_.Z("design:type",Number)],vs.prototype,"pickerOffsetX",void 0);_.r([_.E(),_.Z("design:type",Number)],vs.prototype,"pickerOffsetY",void 0);_.r([_.E(),_.Z("design:type",Object)],vs.prototype,"repositionOptional",void 0);_.r([_.Yp("#picker-container"),_.Z("design:type",HTMLElement)],vs.prototype,"JSC$13457_pickerContainer",void 0);_.r([_.Yp("#picker"),_.Z("design:type",HTMLElement)],vs.prototype,"picker",void 0);
_.r([_.Yp("#image-in-picker-background"),_.Z("design:type",HTMLImageElement)],vs.prototype,"JSC$13457_imageInBackground",void 0);_.r([_.Yp("#image-in-picker"),_.Z("design:type",HTMLImageElement)],vs.prototype,"JSC$13457_imageInPicker",void 0);_.r([_.Yp("#image-in-preview-clipper"),_.Z("design:type",HTMLImageElement)],vs.prototype,"JSC$13457_imageInPreviewClipper",void 0);_.r([_.Yp("#full-image-as-preview"),_.Z("design:type",HTMLImageElement)],vs.prototype,"imageAsPreview",void 0);
_.r([_.K("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],vs.prototype,"altLabelForImage",null);_.r([_.K("imageHeight","imageWidth"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],vs.prototype,"pickerSize",null);_.r([_.K("imageHeight","imageWidth"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vs.prototype,"imageOrientationStyle",null);
_.r([_.K("instruction.previewInstruction.editButtonLabel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vs.prototype,"editButton",null);_.r([_.K("instruction.editInstruction.saveButtonLabel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vs.prototype,"saveButton",null);_.r([_.K("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],vs.prototype,"cropOffsetTop",null);
_.r([_.K("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],vs.prototype,"cropOffsetLeft",null);_.r([_.K("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],vs.prototype,"pickerBackgroundStyle",null);_.r([_.K("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],vs.prototype,"pickerDisplayStyle",null);
_.r([_.K("cropOffsetLeft","cropOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],vs.prototype,"imageInPickerStyle",null);_.r([_.K("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Z("design:type",String),_.Z("design:paramtypes",[])],vs.prototype,"previewClipperStyle",null);_.r([_.XX("imageData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vs.prototype,"onImageDataChange",null);
_.r([_.K("cropCoordinatesSaved"),_.Z("design:type",String),_.Z("design:paramtypes",[])],vs.prototype,"pickerModeStyle",null);_.r([_.K("instruction.editInstruction.learnMore"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vs.prototype,"learnMore",null);_.r([_.K("learnMore"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vs.prototype,"learnMoreUrl",null);vs=_.r([_.fJ({is:"yt-img-crop-picker",disableElementRegistration:!0})],vs);
_.F(vs,"yt-img-crop-picker",function(){if(KSS===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;vCb===void 0&&(vCb=document.createElement("template"));var e=vCb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);KSS=B}B=KSS;return B},{mode:2});var K3=function(){var B=_.c.apply(this,arguments)||this;B.errorMessage="";B.hasPreview=!1;B.isBackstagePost=!1;B.dismissButtonOverrides={size:"XS"};return B};
_.l(K3,_.c);_.p=K3.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(B){_.w(this.hostElement).querySelector("#preview-picker").imageData=B;this.hasPreview=!0;_.OI(this.hostElement,"yt-backstage-image-select-preview")};
_.p.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var B=_.w(this.hostElement).querySelector("#dropzone");B.classList.remove("dragover");B.classList.remove("error");_.OI(this.hostElement,"yt-backstage-image-select-cancel")};
_.p.setupOverlay=function(){var B=this.imageUploadEndpoint;this.removeOverlay();if(B&&B.imageValidationInfo){var R=_.w(this.hostElement).querySelector("#dropzone"),V=_.w(this.hostElement).querySelector("#select");this.overlay=new m8(B.uploadUrl,B.channelId,B.imageValidationInfo.maxFileSizeMb,B.imageValidationInfo.allowedMaxAspectRatio,R,V,!0);_.G2(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.G2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.G2(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.G2(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.G2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.p.removeOverlay=function(){this.overlay&&(_.SI(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.SI(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.SI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.SI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.SI(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.p.onDragOver=function(B){var R=_.w(this.hostElement).querySelector("#dropzone");_.nk(R,"dragover",B.value)};
_.p.onPreview=function(B){this.setPreview(B.value)};
_.p.onImageError=function(B){if(B.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var R;B=(R=this.data)==null?void 0:R.fileSizeError}else if(B.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var V;B=(V=this.data)==null?void 0:V.invalidError}else if(B.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var e;B=(e=this.data)==null?void 0:e.invalidAspectRatioError}else return;this.errorMessage=_.FF(B);_.w(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.p.onImageAlert=function(B){this.onImageError(B)};
_.p.uploadPromise=function(){var B=this,R=this.overlay&&this.overlay.uploadPromise();if(R)return R.catch(function(){throw Error(B.data?_.FF(B.data.uploadFailureError):"");})};
_.mh.Object.defineProperties(K3.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var B,R;if((B=this.data)==null?0:(R=B.icon)==null?0:R.iconType)return _.RT(this.data.icon.iconType)}}});
K3.prototype.setupOverlay=K3.prototype.setupOverlay;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],K3.prototype,"rendererStamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],K3.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],K3.prototype,"imageUploadEndpoint",void 0);_.r([_.E(),_.Z("design:type",Object)],K3.prototype,"errorMessage",void 0);
_.r([_.E(),_.Z("design:type",m8)],K3.prototype,"overlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],K3.prototype,"hasPreview",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],K3.prototype,"isBackstagePost",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],K3.prototype,"selectionCancel",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],K3.prototype,"previewCancel",null);
_.r([_.K("data.icon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],K3.prototype,"icon",null);_.r([_.E(),_.Z("design:type",Object)],K3.prototype,"dismissButtonOverrides",void 0);_.r([_.XX("imageUploadEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K3.prototype,"setupOverlay",null);K3=_.r([_.A({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],K3);
_.F(K3,"ytd-backstage-image-select-renderer",function(){if(xtl!==void 0)return xtl;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return xtl=B},{mode:1});var In4;var EC_;var I3=function(){var B=_.c.apply(this,arguments)||this;B.selected=!1;return B};
_.l(I3,_.c);_.p=I3.prototype;_.p.computeSelected=function(B){return B==null?void 0:B.selected};
_.p.computeTransform=function(B,R,V){var e,X,Y=(X=(e=this.imageContainer)==null?void 0:e.getBoundingClientRect())!=null?X:{width:0,height:0};e=Math.max(Y.width/R,Y.height/V);V=V*e*B.top;return"translateX("+this.getSignedPosition(R*e*B.left,"X","-")+") translateY("+this.getSignedPosition(V,"Y","-")+")"};
_.p.getSignedPosition=function(B,R,V){return R==="X"&&_.vE("HTML_DIR")==="rtl"?V==="-"?B+"px":B*-1+"px":V==="-"?B*-1+"px":B+"px"};
_.p.onClick=function(){var B;_.OI(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(B=this.data)==null?void 0:B.image)};
_.p.onKeyPress=function(B){if(B.keyCode===13)this.onClick()};
_.mh.Object.defineProperties(I3.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:(R=B.image)==null?void 0:R.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)!=null&&B.image){var R;B=(R=this.data)==null?void 0:R.image;return B.previewCoordinates.top!==0||B.previewCoordinates.left!==0?(R=this.computeTransform(B.previewCoordinates,B.naturalWidth,B.naturalHeight),B.naturalHeight>=B.naturalWidth?"width:inherit;transform:"+R+";":"height:inherit;transform:"+R+";"):B.naturalHeight>=B.naturalWidth?"width:inherit;":"height:inherit;"}}}});
I3.prototype.onKeyPress=I3.prototype.onKeyPress;_.r([_.Yp(".image-container"),_.Z("design:type",HTMLElement)],I3.prototype,"imageContainer",void 0);_.r([_.E(),_.Z("design:type",Object)],I3.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Z("design:type",Object)],I3.prototype,"selected",void 0);_.r([_.K("data.image"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],I3.prototype,"thumbnailUrl",null);
_.r([_.K("data.image","data.image.previewCoordinates"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],I3.prototype,"thumbnailStyle",null);_.r([_.R_("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],I3.prototype,"onKeyPress",null);I3=_.r([_.A({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],I3);
_.F(I3,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(EC_!==void 0)return EC_;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return EC_=B},{mode:2});var EA=function(B,R,V){V=V===void 0?!1:V;_.H_.call(this);var e=this;this.dropZoneOverlay=new JG(B);this.selectOverlay=V?new jE(R,"multiple_file",["image/*"]):new jE(R,"single_file",["image/*"]);this.handler=new _.oL(this);_.t4(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(R,"click",function(){e.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.l(EA,_.H_);EA.prototype.onChange=function(B){var R;(R=B.files)!=null&&R.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:B.files}))};var QY=function(){var B=_.c.apply(this,arguments)||this;B.addImageErrorMessage="";B.errorMessage="";B.images=[];B.selectedImageIndex=0;B.modern=_.k("web_modern_buttons");B.maxNumImagesPerPost=_.RC("max_num_images_per_post_web_ui");B.JSC$13472_imageId=0;return B};
_.l(QY,_.c);_.p=QY.prototype;_.p.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.OI(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.p.observeDragToReorder=function(){var B=this;if(this.showImagesPreview){var R,V=uP4(_.uR.getInstance(),(R=this.data)==null?void 0:R.dragToReorderTooltip);_.dV.addLowPriorityJob(function(){_.eO(B.hostElement,V,B.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(B){return(B==null?void 0:B.localImageSrc)||void 0};
_.p.onRendererstamperFinished=function(){_.zBR(this.ytReorderableBehavior,_.w(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.w(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.p.handleDrop=function(B){var R=B.currDragItem;if(R!=null&&R.data){B=this.images[this.selectedImageIndex];var V=R.data.image,e=this.images.indexOf(V)||0;R=_.rx(R.parentNode.children,R);this.images.splice(e,1);this.images.splice(R,0,V);this.images=[].concat(_.MI(this.images));this.selectedImageIndex=this.images.indexOf(B)}};
_.p.setUpImagePicker=function(){var B=this.imageUploadEndpoint;B&&B.imageValidationInfo&&(this.uploadManager=new TR(B.uploadUrl,B.channelId),this.initialPicker||(this.initialPicker=new EA(this.dropzone,this.selectLink,!0),_.G2(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new EA(this.addImageButtonContainer,this.addImageSelectButton),_.G2(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.G2(this.JSC$13472_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.G2(this.JSC$13472_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.G2(_.w(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.p.detached=function(){this.initialPicker&&(_.SI(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.SI(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.p.onInitialSelectImages=function(B){var R=this;return _.W(function(V){return _.U(V,R.onSelectImages(B,!1),0)})};
_.p.onAddImage=function(B){var R=this;return _.W(function(V){return _.U(V,R.onSelectImages(B,!0),0)})};
_.p.onSelectImages=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu,n;return _.W(function(Yd){switch(Yd.nextAddress){case 1:R?V.addImageErrorMessage="":(V.images=[],V.errorMessage="");e=B.detail;X=V.validateImages([].concat(_.MI(e)));if(X!=="")return R?V.addImageErrorMessage=X:V.errorMessage=X,Yd.return();Y=[].concat(_.MI(e)).map(function(kd){return(new gf(V.maxAspectRatio,!1,!0)).transform(kd)});
return _.U(Yd,Promise.allSettled(Y),2);case 2:t=Yd.yieldResult,b=_.h(t.entries()),J=b.next();case 3:if(J.done){Yd.jumpTo(5);break}G=J.value;y=_.h(G);S=y.next().value;M=y.next().value;f=S;z=M;if(z.status!=="fulfilled"){Q=L=T=void 0;R?V.addImageErrorMessage=_.FF((T=V.data)==null?void 0:T.invalidError):V.errorMessage=V.errorMessage===""?_.FF((L=V.data)==null?void 0:L.invalidError):_.FF((Q=V.data)==null?void 0:Q.multiFileError);Yd.jumpTo(4);break}q=z.value;q.cropped&&_.OI(V.hostElement,"yt-backstage-multi-image-cropped");
if(q.invalidAspectRatio){Vu=g=m=void 0;R?V.addImageErrorMessage=_.FF((m=V.data)==null?void 0:m.invalidAspectRatioError):V.errorMessage=V.errorMessage===""?_.FF((g=V.data)==null?void 0:g.invalidAspectRatioError):_.FF((Vu=V.data)==null?void 0:Vu.multiFileError);Yd.jumpTo(4);break}return _.U(Yd,Fiu(V.JSC$13472_imageId,B.detail[f],q.transformedData),8);case 8:n=Yd.yieldResult,V.images.push(n),V.JSC$13472_imageId++;case 4:J=b.next();Yd.jumpTo(3);break;case 5:if(V.errorMessage!==""||V.addImageErrorMessage!==
"")return Yd.return();R?Dt4(V.uploadManager,[V.images[V.images.length-1]]):Dt4(V.uploadManager,V.images);V.images=[].concat(_.MI(V.images));V.selectedImageIndex=R?Math.max(V.images.length-1,0):0;_.OI(V.hostElement,"yt-backstage-multi-image-select");_.b3(Yd)}})};
_.p.onThumbnailClick=function(B){if(B=B.event_.detail)this.selectedImageIndex=this.images.indexOf(B)};
_.p.validateImages=function(B){if(B.length>this.maxNumImagesPerPost){var R;return _.FF((R=this.data)==null?void 0:R.multiImageExceedMaxImageCountError)}var V=1048576*this.maxFileSizeMb;B=B.filter(function(Y){return Y.size>V}).length;
if(B===0)return"";var e,X;B=B>1?(e=this.data)==null?void 0:e.multiFileError:(X=this.data)==null?void 0:X.fileSizeError;return _.FF(B)};
_.p.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.MI(this.images));this.selectedImageIndex=0};
_.p.repositionImage=function(B){this.images[this.selectedImageIndex].previewCoordinates=B.event_.detail;this.images=[].concat(_.MI(this.images))};
_.p.getAllUploadStatuses=function(){var B=this,R,V,e,X;return _.W(function(Y){if(Y.nextAddress==1)return _.U(Y,B.uploadManager.getAllUploadStatuses(),2);R=Y.yieldResult;V=_.h(R);for(e=V.next();!e.done;e=V.next())if(X=e.value,X.encryptedBlobId===void 0)return Y.return(fnv(B.uploadManager));return Y.return(R)})};
_.p.hasImages=function(){return this.images.length>0};
_.p.cancel=function(){for(var B=this.uploadManager,R=_.h(B.imagesUploadData),V=R.next();!V.done;V=R.next())B.cancel(V.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.OI(this.hostElement,"yt-backstage-multi-image-cancel")};
_.mh.Object.defineProperties(QY.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.imageUploadEndpoint)==null?void 0:(R=B.imageValidationInfo)==null?void 0:R.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.imageUploadEndpoint)==null?void 0:(R=B.imageValidationInfo)==null?void 0:R.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var B,R;if((B=this.data)==null?0:(R=B.icon)==null?0:R.iconType)return _.RT(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.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 B=this;return(this.images||[]).map(function(R,V){return{renderer:{image:R,selected:V===B.selectedImageIndex}}})}}});
QY.prototype.setUpImagePicker=QY.prototype.setUpImagePicker;QY.prototype.onRendererstamperFinished=QY.prototype.onRendererstamperFinished;QY.prototype.observeDragToReorder=QY.prototype.observeDragToReorder;QY.prototype.observeAddImageError=QY.prototype.observeAddImageError;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],QY.prototype,"rendererStamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.aW4),_.Z("design:type",Object)],QY.prototype,"ytReorderableBehavior",void 0);_.r([_.Yp("#dropzone"),_.Z("design:type",HTMLElement)],QY.prototype,"dropzone",void 0);_.r([_.Yp("#select-link"),_.Z("design:type",HTMLElement)],QY.prototype,"selectLink",void 0);_.r([_.Yp("#thumbnail-drag-drop-area"),_.Z("design:type",HTMLElement)],QY.prototype,"thumbnailDragDropArea",void 0);_.r([_.Yp("#add-image-button-container"),_.Z("design:type",HTMLElement)],QY.prototype,"addImageButtonContainer",void 0);
_.r([_.Yp("#add-image-button"),_.Z("design:type",HTMLElement)],QY.prototype,"addImageSelectButton",void 0);_.r([_.Yp("#image-preview-container"),_.Z("design:type",Object)],QY.prototype,"JSC$13472_imagePreviewContainer",void 0);_.r([_.E(),_.Z("design:type",Object)],QY.prototype,"addImageErrorMessage",void 0);_.r([_.E(),_.Z("design:type",Object)],QY.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],QY.prototype,"errorMessage",void 0);
_.r([_.E(),_.Z("design:type",Object)],QY.prototype,"imageUploadEndpoint",void 0);_.r([_.E(),_.Z("design:type",Array)],QY.prototype,"images",void 0);_.r([_.E(),_.Z("design:type",EA)],QY.prototype,"initialPicker",void 0);_.r([_.E(),_.Z("design:type",EA)],QY.prototype,"addImagePicker",void 0);_.r([_.E(),_.Z("design:type",TR)],QY.prototype,"uploadManager",void 0);_.r([_.E(),_.Z("design:type",Object)],QY.prototype,"selectedImageIndex",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],QY.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],QY.prototype,"maxNumImagesPerPost",void 0);_.r([_.K("imageUploadEndpoint"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],QY.prototype,"maxAspectRatio",null);_.r([_.K("imageUploadEndpoint"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],QY.prototype,"maxFileSizeMb",null);
_.r([_.K("data.icon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QY.prototype,"dropIcon",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QY.prototype,"selectionCancel",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QY.prototype,"previewCancel",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QY.prototype,"dataForAddImageButton",null);
_.r([_.K("errorMessage"),_.Z("design:type",String),_.Z("design:paramtypes",[])],QY.prototype,"dropzoneClass",null);_.r([_.K("images"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QY.prototype,"showImagesPreview",null);_.r([_.K("images"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QY.prototype,"containMaxImages",null);_.r([_.XX("addImageErrorMessage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QY.prototype,"observeAddImageError",null);
_.r([_.XX("showImagesPreview"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QY.prototype,"observeDragToReorder",null);_.r([_.K("images","selectedImageIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QY.prototype,"selectedImageData",null);_.r([_.K("images","selectedImageIndex"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],QY.prototype,"thumbnailRenderers",null);
_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QY.prototype,"onRendererstamperFinished",null);_.r([_.XX("imageUploadEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QY.prototype,"setUpImagePicker",null);QY=_.r([_.A({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],QY);
_.F(QY,"ytd-backstage-multi-image-select-renderer",function(){if(In4!==void 0)return In4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return In4=B},{mode:1});var QXb;var qGJ;var cV4;var q$=function(){var B=_.c.apply(this,arguments)||this;B.boundCaptureFocus=function(R){B.onCaptureFocus(R)};
return B};
_.l(q$,_.c);_.p=q$.prototype;_.p.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.p.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.p.onCaptureFocus=function(B){_.Az(B).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.p.getIconType=function(B){return B?"yt-icons:"+B.toLowerCase():null};
_.p.onSelect=function(){var B;if((B=this.data)==null?0:B.onSelectCommand)if(_.k("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var R;((R=_.D(this.data.onSelectCommand.commandMetadata,_.$a))==null?0:R.url)?_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.Oz().resolve(_.oC).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.mh.Object.defineProperties(q$.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.FF(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}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],q$.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],q$.prototype,"data",void 0);_.r([_.Yp("#item"),_.Z("design:type",HTMLElement)],q$.prototype,"item",void 0);_.r([_.K("data.label"),_.Z("design:type",String),_.Z("design:paramtypes",[])],q$.prototype,"label",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],q$.prototype,"value",null);q$=_.r([_.A({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],q$);
_.F(q$,"ytd-privacy-dropdown-item-renderer",function(){if(cV4!==void 0)return cV4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return cV4=B},{mode:1});var cs=function(){var B=_.c.apply(this,arguments)||this;B.value="";B.label="";B.disabled=!1;return B};
_.l(cs,_.c);_.p=cs.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 B;if(this.value&&(B=this.data)!=null&&B.entries){B=_.h(this.data.entries);for(var R=B.next();!R.done;R=B.next())if((R=this.getRendererForEntry(R.value))&&this.getItemRendererValue(R)===this.value){this.label=this.ytComponentBehavior.getSimpleString(R.label);break}}};
_.p.setInitialLabel=function(){if(this.data&&this.data.entries)for(var B=_.h(this.data.entries),R=B.next();!R.done;R=B.next())if(R=this.getRendererForEntry(R.value)){if(R.isSelected){this.label=this.ytComponentBehavior.getSimpleString(R.label);break}this.data.label&&(this.label=this.data.label)}};
_.p.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var B=_.h(this.data.entries),R=B.next();!R.done;R=B.next()){R=this.getRendererForEntry(R.value);var V=void 0;if((V=R)==null?0:V.isSelected)return this.getItemRendererValue(R)||-1}return-1};
_.p.getItemRendererValue=function(B){return"stringValue"in B||"int32Value"in B?B.stringValue||B.int32Value||null:null};
_.p.getRendererForEntry=function(B){return B.dropdownItemRenderer||B.privacyDropdownItemRenderer||B.navigationDropdownItemRenderer||null};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("value-changed",this.value))};
_.p.updateValueFromBinding=function(B){this.value=B.detail.value};
cs.prototype.valueChangedForBinding=cs.prototype.valueChangedForBinding;cs.prototype.valueChanged=cs.prototype.valueChanged;cs.prototype.dataChanged=cs.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],cs.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],cs.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],cs.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],cs.prototype,"value",void 0);_.r([_.E(),_.Z("design:type",Object)],cs.prototype,"label",void 0);_.r([_.Yp("#entries"),_.Z("design:type",Object)],cs.prototype,"entries",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],cs.prototype,"disabled",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cs.prototype,"dataChanged",null);
_.r([_.bp("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cs.prototype,"valueChanged",null);_.r([_.XX("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cs.prototype,"valueChangedForBinding",null);cs=_.r([_.A({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],cs);
_.F(cs,"ytd-flat-dropdown-renderer",function(){if(qGJ!==void 0)return qGJ;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return qGJ=B},{mode:1});var AVG;var gF=function(){var B=_.c.apply(this,arguments)||this;B.quizOptions=[];B.explanationPlaceholderText="";B.optionPlaceholderText="";B.correctAnswerIndex=-1;B.isMarkAnswerTooltipShown=!1;B.timer=0;return B};
_.l(gF,_.c);_.p=gF.prototype;_.p.dataChanged=function(){this.optionPlaceholderText=_.FF(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.FF(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.p.onMarkCorrectAnswer=function(B){var R,V=((R=this.quizOptions[this.correctAnswerIndex])==null?void 0:R.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[B.model.index]=Object.assign({},this.quizOptions[B.model.index],{explanationText:V,isCorrect:!0});this.correctAnswerIndex=B.model.index;this.quizOptions=[].concat(_.MI(this.quizOptions))};
_.p.updatePlaceholderTexts=function(){for(var B=!1,R=[],V=0;V<this.quizOptions.length;V++){var e=this.optionPlaceholderText+" "+(V+1),X=void 0;((X=this.quizOptions[V])==null?void 0:X.placeholderText)!==e?(B=!0,R.push(Object.assign({},this.quizOptions[V],{placeholderText:e}))):R.push(this.quizOptions[V])}B&&(this.quizOptions=R);this.isValid()?_.OI(this.hostElement,"yt-commentbox-post-enable"):_.OI(this.hostElement,"yt-commentbox-post-disable")};
_.p.getSimpleString=function(B){return _.FF(B)};
_.p.createQuizOptions=function(B){var R=[],V;B=(V=B==null?void 0:B.minQuizOptions)!=null?V:0;for(V=0;V<B;V++)R.push(this.createQuizOption());return R};
_.p.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.MI(this.quizOptions),[this.createQuizOption()]))};
_.p.onInput=function(){this.quizOptions=[].concat(_.MI(this.quizOptions))};
_.p.onExplanationInput=function(){_.OI(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.p.onRemoveQuizOption=function(B){this.quizOptions.splice(B.model.index,1);B.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:B.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.MI(this.quizOptions));this.quizOptions.length===0&&_.OI(this.hostElement,"yt-quiz-attachment-dismiss")};
_.p.updateHintRenderer=function(){var B=this;clearTimeout(this.timer);this.timer=setTimeout(function(){B.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 B=0,R=0,V=_.h(this.quizOptions),e=V.next();!e.done;e=V.next()){e=e.value;var X=void 0;if(((X=e.optionText)==null?void 0:X.trim())!==""||e.isCorrect){e.isCorrect&&R++;X=void 0;if(this.hasCustomOptionText&&((X=e.optionText)==null?void 0:X.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;B++}}return B>=
Number(this.editorInfo.minQuizOptions)&&R===1};
_.p.getPostCreateOptions=function(){for(var B=[],R=_.h(this.quizOptions),V=R.next();!V.done;V=R.next()){V=V.value;var e=void 0;((e=V.optionText)==null?void 0:e.trim())!==""&&B.push({pollOption:{text:V.optionText,explanation:V.explanationText},isCorrect:V.isCorrect})}return B};
_.p.getExplanationText=function(){var B;return((B=this.quizOptions[this.correctAnswerIndex])==null?void 0:B.explanationText)||""};
_.p.maybeDisplayMarkAnswerEduToolTip=function(){var B,R,V,e,X,Y,t;this.shouldShowMarkAnswerTooltip()&&((B=this.editorInfo)==null?0:(R=B.markAnswerButton)==null?0:(V=R.buttonRenderer)==null?0:(e=V.hint)==null?0:(X=e.hintRenderer)==null?0:(Y=X.content)==null?0:(t=Y.bubbleHintRenderer)==null?0:t.text)&&(_.uR.getInstance(),B=Op(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,(B==null?void 0:B.length)>0&&this.optionSelectors&&_.Xc(B[0],this.optionSelectors[0]))};
_.p.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var B=0,R=_.h(this.quizOptions),V=R.next();!V.done;V=R.next()){V=V.value;var e=void 0;((e=V.optionText)==null?void 0:e.trim())!==""&&B++;if(V.isCorrect)return!1}return B<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(B){if(B.target){var R=Array.from(_.w(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(B.target);if(R>=0){var V;this.quizOptions[R].optionText=(V=B.detail.value)!=null?V:""}}};
_.mh.Object.defineProperties(gF.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(B=this.editorInfo)==null?void 0:(R=B.addOptionButton)==null?void 0:R.buttonRenderer;V&&(V.style="STYLE_SUGGESTIVE",V.size="SIZE_SMALL",V.isDisabled=!this.isAllowedToAddOption);return(V==null?0:V.text)?V:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var B,R;return this.quizOptions.length<((R=(B=this.editorInfo)==null?void 0:B.maxQuizOptions)!=null?R:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(B){var R;return(R=B.optionText)==null?void 0:R.trim()})}}});
gF.prototype.updatePlaceholderTexts=gF.prototype.updatePlaceholderTexts;gF.prototype.dataChanged=gF.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],gF.prototype,"editorInfo",void 0);_.r([_.E(),_.Z("design:type",Array)],gF.prototype,"quizOptions",void 0);_.r([_.E(),_.Z("design:type",Object)],gF.prototype,"explanationPlaceholderText",void 0);_.r([_.hM(".option-selector-button"),_.Z("design:type",Array)],gF.prototype,"optionSelectors",void 0);
_.r([_.bp("editorInfo"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gF.prototype,"dataChanged",null);_.r([_.K("editorInfo","isAllowedToAddOption","quizOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gF.prototype,"addAnswerButton",null);_.r([_.K("editorInfo","quizOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gF.prototype,"isAllowedToAddOption",null);
_.r([_.bp("quizOptions"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gF.prototype,"updatePlaceholderTexts",null);_.r([_.K("quizOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gF.prototype,"hasCustomOptionText",null);gF=_.r([_.A({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],gF);
_.F(gF,"ytd-backstage-quiz-editor-renderer",function(){if(AVG!==void 0)return AVG;var B=document.createElement("template");_.a(B,'\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-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" 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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return AVG=B},{mode:2});var i1h;var sXo=(a7.FIRSTDAYOFWEEK+1)%7;var FS5;var rVo=[],gCh=0,Z1v=0;gCh=0;Z1v=24;if(.25*(Z1v-gCh)<0)FS5=[];else{for(var mt_=gCh;mt_<Z1v;mt_+=.25)rVo.push(mt_);FS5=rVo}var $tl=FS5.map(function(B){B=B*60*60;return{secondsSinceMidnight:B,text:(new As(7)).format(new Date(0,0,0,0,0,B))}});var CSv;var ZZ=function(){var B=_.c.apply(this,arguments)||this;B.skipNextOpenDialog=!1;B.errorMessage="";return B};
_.l(ZZ,_.c);_.p=ZZ.prototype;_.p.attached=function(){var B=this,R=new MutationObserver(function(){B.JSC$13515_calendarMain.scrollHeight>0&&(R.disconnect(),B.calendarConfig&&B.calendarConfig.selectedDate&&B.scrollToDate())});
R.observe(this.JSC$13515_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){R.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 B=this.validateDateText();B.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(B.details)):this.textbox.setAttribute("invalid","")}};
_.p.handleDayClick=function(B){B.model.day.date&&(this.commitDate(B.model.day.date),this.dialog.close())};
_.p.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var B=oCd(this.calendarConfig.selectedDate,this.renderData);B!==void 0&&this.JSC$13515_calendarMain.scrollToIndex(B)}};
_.p.scrollToNextMonth=function(){this.JSC$13515_calendarMain.scrollToIndex(this.JSC$13515_calendarMain.firstVisibleIndex+1)};
_.p.scrollToPrevMonth=function(){this.JSC$13515_calendarMain.firstVisibleIndex===0&&this.JSC$13515_calendarMain.scrollTo(0,0);this.JSC$13515_calendarMain.scrollToIndex(this.JSC$13515_calendarMain.firstVisibleIndex-1)};
_.p.onFormSubmit=function(B){B.preventDefault();this.calendarConfig&&(B=this.validateDateText(),B.isValid&&(this.commitDate(B.details),this.dialog.close()))};
_.p.onEscOrClickingOutside=function(B){B=B.detail.path&&!!B.detail.path.length&&B.detail.path[0];if(B.classList.contains("ytd-calendar-date-picker")){B===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var R=0;R<this.dropdownButton.children.length;R++)this.dropdownButton.children[R]===B&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}B=this.textbox.value!==this.dateText;R=this.validateDateText();B&&R.isValid&&this.commitDate(R.details);this.dialog.close();this.textbox.value=
this.dateText};
_.p.commitDate=function(B){this.calendarConfig&&(this.set("calendarConfig.selectedDate",B),_.OI(this.hostElement,"ytd-calendar-date-selected",B))};
_.p.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var B=this.textbox.value;var R=new Date;B=(new H15(2)).parse(B,R,{validate:!0})===B.length?uvN(R):void 0;if(!B)return this.errorMessage=_.Wz("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};R=this.calendarConfig.start;var V=this.calendarConfig.end;if(mB_(B,R))return this.errorMessage=_.Wz("ENTER_DATE_OR_LATER",{allowed_date:nMS(R)}),{isValid:!1,details:void 0};if(mB_(V,B))return this.errorMessage=
_.Wz("ENTER_DATE_OR_EARLIER",{allowed_date:nMS(V)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:B}};
_.mh.Object.defineProperties(ZZ.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?nMS(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var B=this.calendarConfig,R=[],V=0;V<7;V++)R.push(a7.NARROWWEEKDAYS[(V+sXo)%7]);V=[];for(var e=new Date(B.start.year,B.start.month);e.getFullYear()<B.end.year||e.getFullYear()===B.end.year&&e.getMonth()<=B.end.month;){var X=V,Y=X.push,t=e.getFullYear(),b=e.getMonth(),J=B,G=void 0,y=[],S=Object.freeze({extraCssClass:"invisible",debugClass:""}),M=new Date(t,b),f=uvN(M);M=M.getDay();for(var z=uvN(new Date);f.month===
b;){M!==sXo&&G||(G=Array.from({length:7}).fill(S),y.push(G));var T={date:{year:t,month:b,day:f.day},extraCssClass:"",debugClass:""};J.selectedDate&&T.date&&Zvp(T.date,J.selectedDate)&&(T.extraCssClass+=" selected");if(mB_(f,J.start)||mB_(J.end,f))T.extraCssClass+=" disabled";Zvp(f,z)&&(T.extraCssClass+=" today");T.extraCssClass=T.extraCssClass.trim();G[(M-sXo+7)%7]=T;f=CXp(f);M=(M+1)%7}Y.call(X,{weeks:y,monthLabel:a7.SHORTMONTHS[b]+" "+t,year:t,month:b,monthLabelExtraCssClass:y[0][2]===S?"shift-down-label":
""});e.setMonth(e.getMonth()+1)}return{months:V,daysOfWeekLabel:R}}}}});
ZZ.prototype.onEscOrClickingOutside=ZZ.prototype.onEscOrClickingOutside;ZZ.prototype.scrollToDate=ZZ.prototype.scrollToDate;_.r([_.E(),_.Z("design:type",Object)],ZZ.prototype,"calendarConfig",void 0);_.r([_.E(),_.Z("design:type",Object)],ZZ.prototype,"skipNextOpenDialog",void 0);_.r([_.E(),_.Z("design:type",Object)],ZZ.prototype,"errorMessage",void 0);_.r([_.Yp("#textbox"),_.Z("design:type",HTMLInputElement)],ZZ.prototype,"textbox",void 0);
_.r([_.Yp("#calendar-dialog"),_.Z("design:type",Object)],ZZ.prototype,"dialog",void 0);_.r([_.Yp("#calendar-main"),_.Z("design:type",Object)],ZZ.prototype,"JSC$13515_calendarMain",void 0);_.r([_.Yp("#date-picker"),_.Z("design:type",HTMLElement)],ZZ.prototype,"dropdownButton",void 0);_.r([_.K("calendarConfig.selectedDate"),_.Z("design:type",String),_.Z("design:paramtypes",[])],ZZ.prototype,"dateText",null);
_.r([_.K("calendarConfig","calendarConfig.selectedDate"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZZ.prototype,"renderData",null);_.r([_.XX("renderData","calendarConfig.selectedDate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZZ.prototype,"scrollToDate",null);_.r([_.R_("iron-overlay-canceled"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ZZ.prototype,"onEscOrClickingOutside",null);
ZZ=_.r([_.fJ({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ZZ);
_.F(ZZ,"ytd-calendar-date-picker",function(){if(CSv!==void 0)return CSv;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return CSv=B},{mode:2});var PS5=_.Wz("UTC_OFFSET_FORMAT",{utc_offset:(new As("Z")).format(new Date)}),nCo=(new Date).getTimezoneOffset()*-60,uV4=new Date,O1h,oo_=ck(uV4.getTimezoneOffset());O1h=bkh(jG2(oo_,uV4));var BJR=_.Wz("LOCAL_TIME_GMT_LABEL",{gmt_text:O1h.replace("+0","+").replace("-0","-").replace(":00","")}),mE=function(){var B=_.c.apply(this,arguments)||this;B.selectedTimeIndex=0;B.selectedTimezoneIndex=0;B.timeOfDayOptions=$tl;return B};
_.l(mE,_.c);_.p=mE.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 B=PXS();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=B,this.selectedTimeIndex=0;else{var R=Ovu(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},B,{selectedDate:R.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(V){return V.secondsSinceMidnight===R.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.p.onDatePicked=function(B){this.selectedDate=B.detail};
_.p.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.OI(this.hostElement,"ytd-date-time-selection-cancelled")};
_.p.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var B=this.selectedDate;B=new Date(B.year,B.month,B.day);_.OI(this.hostElement,"ytd-date-time-selection-update",Math.floor(B.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+B.getTimezoneOffset()*60))}};
_.p.getTimezoneFormat=function(B){return B.localizedDisplayText?B.localizedDisplayText:_.Wz("TIMEZONE_FORMAT",{utc_offset_text:""+B.localizedUtcOffset,city_name:""+B.localizedName})};
_.p.updateSelectedTimeIndexFromBinding=function(B){this.selectedTimeIndex=B.detail.value};
_.p.updateSelectedTimezoneIndexFromBinding=function(B){this.selectedTimezoneIndex=B.detail.value};
_.mh.Object.defineProperties(mE.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var B=this.data.timezoneOptions;var R={name:"Etc/Unknown",localizedName:_.Wz("LOCAL_TIME_LABEL"),localizedUtcOffset:PS5,utcOffsetSec:""+nCo,localizedDisplayText:BJR};B?B.length&&B[0].name!==R.name&&(B[0].localizedDisplayText||(R.localizedDisplayText=""),B.unshift(R)):B=[R];return B}}},
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]}}});
mE.prototype.onDateTimeTimezoneChange=mE.prototype.onDateTimeTimezoneChange;mE.prototype.onDatePicked=mE.prototype.onDatePicked;mE.prototype.updateDefaultSelectedValue=mE.prototype.updateDefaultSelectedValue;_.r([_.E(),_.Z("design:type",Object)],mE.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],mE.prototype,"calendarConfig",void 0);_.r([_.E(),_.Z("design:type",Object)],mE.prototype,"selectedDate",void 0);_.r([_.E(),_.Z("design:type",Object)],mE.prototype,"selectedTimeIndex",void 0);
_.r([_.E(),_.Z("design:type",Object)],mE.prototype,"selectedTimezoneIndex",void 0);_.r([_.Yp("#time-listbox"),_.Z("design:type",Object)],mE.prototype,"timeListBox",void 0);_.r([_.Yp("#timezone-listbox"),_.Z("design:type",Object)],mE.prototype,"timezoneListBox",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],mE.prototype,"rendererStamperBehavior",void 0);_.r([_.K("data.timezoneOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],mE.prototype,"timeZones",null);
_.r([_.bp("data","timeZones"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mE.prototype,"updateDefaultSelectedValue",null);_.r([_.K("selectedTimezoneIndex","timeZones"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],mE.prototype,"selectedTimezone",null);_.r([_.K("selectedTimeIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],mE.prototype,"selectedTime",null);
_.r([_.R_("ytd-calendar-date-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mE.prototype,"onDatePicked",null);_.r([_.XX("selectedTimezone","selectedTime","selectedDate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mE.prototype,"onDateTimeTimezoneChange",null);mE=_.r([_.A({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],mE);
_.F(mE,"ytd-date-time-picker-renderer",function(){if(i1h!==void 0)return i1h;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return i1h=B},{mode:1});var Rv2;var $y=function(){var B=_.c.apply(this,arguments)||this;B.boundOnTapDismissButton=function(){B.dismissTapHandler()};
B.dismissButtonOverrides={size:"XS"};return B};
_.l($y,_.c);$y.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}}}}}};
$y.prototype.dismissTapHandler=function(){_.OI(this.hostElement,"yt-backstage-attachment-dismissed")};
$y.prototype.computeAttachmentType=function(B){return B?B.backstageImageRenderer?"image":B.videoRenderer?"video":"none":"none"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$y.prototype,"attachmentPreview",void 0);_.r([_.E(),_.Z("design:type",Object)],$y.prototype,"dismissButton",void 0);_.r([_.E(),_.Z("design:type",Object)],$y.prototype,"boundOnTapDismissButton",void 0);
_.r([_.E(),_.Z("design:type",Object)],$y.prototype,"dismissButtonOverrides",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Z("design:type",String)],$y.prototype,"attachmentType",void 0);$y=_.r([_.A({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],$y);
_.F($y,"ytd-backstage-dismissable-attachment",function(){if(Rv2!==void 0)return Rv2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Rv2=B},{mode:1});var V0J;var C3=function(){var B=_.c.apply(this,arguments)||this;B.selectedVideoId=void 0;B.picker=void 0;B.dismissButtonOverrides={size:"XS"};B.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return B};
_.l(C3,_.c);_.p=C3.prototype;_.p.onServiceRequestCompleted=function(B){B.stopPropagation()};
_.p.handleAddVideoPreviewAction=function(B){B=this.get("addVideoPreviewAction",B);this.onGetVideoPreviewSuccess(B)};
_.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(B){var R=this,V=_.FF(this.get("addVideoLinkAction.title",B)),e=this.get("addVideoLinkAction.onePickHostId",B);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",B);e&&(this.picker||(V=_.Wno(_.z$I(e).setTitle(V).addView(pE4()).addView(XEG()),function(X){R.onPickVideo(X)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",B)||V.addView("youtube"),this.picker=V.build()),this.picker.setVisible(!0))};
_.p.onPickVideo=function(B){if(B)if(B.action==="cancel")_.OI(this.hostElement,"yt-video-link-button-cancel");else if(B.action==="picked"){B=B.docs;if(!B||B.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(B=(B==null?0:B.length)?B[0]:void 0)?B.id:void 0;this.setVideoPreview()}};
_.p.setVideoPreview=function(){var B=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){B.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.p.onGetVideoPreviewSuccess=function(B){if(B&&B.videoPreview&&B.cancelButton)this.videoPreview=B.videoPreview,this.cancelButton=B.cancelButton,_.OI(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;_.OI(this.hostElement,"yt-video-link-cancel")};
_.p.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
C3.prototype.onServiceRequestCompleted=C3.prototype.onServiceRequestCompleted;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],C3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],C3.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],C3.prototype,"videoPreview",void 0);_.r([_.E(),_.Z("design:type",Object)],C3.prototype,"cancelButton",void 0);_.r([_.E(),_.Z("design:type",Object)],C3.prototype,"getVideoPreviewCommand",void 0);_.r([_.E(),_.Z("design:type",Object)],C3.prototype,"dismissButtonOverrides",void 0);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],C3.prototype,"onServiceRequestCompleted",null);C3=_.r([_.A({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],C3);
_.F(C3,"ytd-backstage-video-link-attachment",function(){if(V0J!==void 0)return V0J;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return V0J=B},{mode:1});var evR;var XFR;var pFh;var Ps=function(){return _.c.apply(this,arguments)||this};
_.l(Ps,_.c);Ps.prototype.dataChanged=function(){this.active=!1};
Ps.prototype.onTap=function(){_.OI(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Ps.prototype.identity=function(B){return B};
_.mh.Object.defineProperties(Ps.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e;if((B=this.data)==null?0:(R=B.image)==null?0:(V=R.thumbnails)==null?0:(e=V[0])==null?0:e.url)return B=this.data.image.thumbnails[0].url,B.startsWith("data:image/svg+xml")?bD(B):_.ym(B)}}});
Ps.prototype.dataChanged=Ps.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],Ps.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ps.prototype,"active",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ps.prototype,"dataChanged",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ps.prototype,"imageSrc",null);
Ps=_.r([_.A({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Ps);
_.F(Ps,"ytd-emoji-suggestion",function(){if(pFh!==void 0)return pFh;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return pFh=B},{mode:1});var YPl=/.*([:@#].*?)$/,n3=function(){var B=_.c.apply(this,arguments)||this;B.suggestions=[];B.suggestionIndex=-1;B.JSC$13543_lastSuggestionRange=null;return B};
_.l(n3,_.c);_.p=n3.prototype;_.p.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.p.getSuggestions=function(B){var R=[],V=L9_(this.emojiManager,B.substr(0,3));if(V)for(var e in V)if(e.toLocaleLowerCase().indexOf(B)===0){var X=V[e];if(X&&X.emojiId){X=wY(this.emojiManager,X.emojiId);var Y=void 0,t=void 0,b=void 0,J=void 0,G=((Y=X)==null?0:Y.isCustomEmoji)?(t=X)==null?void 0:(b=t.shortcuts)==null?void 0:b[0]:(J=X)==null?void 0:J.emojiId;Y=void 0;R.push({suggestion:{image:(Y=X)==null?void 0:Y.image,alt:G,text:e}});if(R.length>=64)break}}return R?R.sort(function(y,S){return S.suggestion.text<
y.suggestion.text?-1:S.suggestion.text===y.suggestion.text?0:1}):null};
_.p.insertSuggestion=function(B){_.OI(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13543_lastSuggestionRange,text:B.alt});this.dropdown.opened=!1};
_.p.updateSuggestionsAtCaret=function(B){this.updateSuggestions(B,this.retrieveTextBeforeRange(B))};
_.p.offsetStartOfRangeBy=function(B,R){B.startOffset>=R&&B.setStart(B.startContainer,B.startOffset-R)};
_.p.updateSuggestions=function(B,R){var V=this;this.JSC$13543_lastSuggestionRange&&(this.JSC$13543_lastSuggestionRange.detach(),this.JSC$13543_lastSuggestionRange=null);if((R=YPl.exec(R))&&R.length&&(R=R[R.length-1].toLocaleLowerCase(),R.length>2||R===":_")&&(this.offsetStartOfRangeBy(B,R.length),this.JSC$13543_lastSuggestionRange=B,(B=this.getSuggestions(R))&&B.length)){this.suggestions=B;_.gB(this,function(){V.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(B.length-1);return}this.dropdown.opened=!1};
_.p.onKeyDown=function(B){if(this.dropdown.opened)switch(B.key){case "Escape":this.dropdown.opened=!1;B.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);B.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);B.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),B.preventDefault()}};
_.p.onKeyUp=function(B,R){switch(B.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(R);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(R)}};
_.p.onKeyPress=function(B){B.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),B.preventDefault())};
_.p.changeSuggestionIndex=function(B){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(B+this.suggestions.length)%this.suggestions.length,B=this.dropdownContent.children[this.suggestionIndex],B.active=!0,this.dropdownContent.scrollTop=B.offsetTop)};
_.p.retrieveTextBeforeRange=function(B){var R=B.startContainer;return R&&R.nodeType===Node.TEXT_NODE?R.textContent.substr(0,B.startOffset):""};
n3.prototype.onKeyPress=n3.prototype.onKeyPress;n3.prototype.onKeyUp=n3.prototype.onKeyUp;n3.prototype.onKeyDown=n3.prototype.onKeyDown;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Array)],n3.prototype,"suggestions",void 0);_.r([_.E(),_.Z("design:type",_.ao)],n3.prototype,"emojiManager",void 0);_.r([_.E(),_.Z("design:type",Number)],n3.prototype,"verticalSuggestionsOffset",void 0);
_.r([_.Yp("#dropdown"),_.Z("design:type",Object)],n3.prototype,"dropdown",void 0);_.r([_.Yp("#dropdown-content"),_.Z("design:type",HTMLDivElement)],n3.prototype,"dropdownContent",void 0);_.r([_.R_("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],n3.prototype,"onKeyDown",null);_.r([_.R_("keyup"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent,Range]),_.Z("design:returntype")],n3.prototype,"onKeyUp",null);
_.r([_.R_("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],n3.prototype,"onKeyPress",null);n3=_.r([_.A({disableElementRegistration:!0,is:"ytd-emoji-input"})],n3);
_.F(n3,"ytd-emoji-input",function(){if(XFR!==void 0)return XFR;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return XFR=B},{mode:2});var hv4;var uM=function(){var B=_.c.apply(this,arguments)||this;B.hasMaxOptions=!1;return B};
_.l(uM,_.c);_.p=uM.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(B){var R=this;this.set("pollOptions",[]);var V;for(V=0;V<Math.min(B.length,this.data.maxPollOptions);V++)this.push("pollOptions",B[V].substring(0,this.data.maxPollOptionChars));for(;V<this.data.minPollOptions;V++)this.push("pollOptions","");this.hasMaxOptions=V>=this.data.maxPollOptions;_.gB(this,function(){for(var e=R.pollOptions,X=_.w(R.hostElement).querySelectorAll(".poll-option-input"),Y=0;Y<X.length;Y++)X[Y].value=e[Y]})};
_.p.focusChanged=function(){_.o_(this.hostElement)};
_.p.onInput=function(){var B=this;_.LJ(this,"onInput",function(){B.isValid()?_.OI(B.hostElement,"yt-commentbox-post-enable"):_.OI(B.hostElement,"yt-commentbox-post-disable")},300)};
_.p.setPollOptions=function(){var B=[],R,V=((R=this.data)==null?0:R.minPollOptions)?this.data.minPollOptions:0;for(R=0;R<V;R++)B.push("");return B};
_.p.addPollOption=function(){var B=this;_.OI(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.dV.addLowPriorityJob(function(){var R;(R=_.w(B.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||R.focus()})};
_.p.onRemovePollOption=function(B){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.OI(this.hostElement,"yt-poll-attachment-dismiss")):(B=this.repeat.indexForElement(B.target.parentNode),B!==null&&(this.splice("pollOptions",B,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.OI(this.hostElement,"yt-commentbox-post-enable"))))};
_.p.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.p.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var B=0,R=this.pollOptions.length;B<R;B++)if(this.pollOptions[B].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.p.getPollOptions=function(){return this.pollOptions};
_.p.setPollOptionsFromInputs=function(){for(var B=_.w(this.hostElement).querySelectorAll(".poll-option-input"),R=0;R<B.length;R++)this.pollOptions[R]=B[R].value.trim()};
_.p.clearPollOptions=function(){var B=_.w(this.hostElement).querySelectorAll(".poll-option-input");B=_.h(B);for(var R=B.next();!R.done;R=B.next())R.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.p.getSimpleString=function(B){return _.FF(B)};
_.p.updateValueFromBinding=function(B){if(B.target&&this.pollOptions){var R=Array.from(_.w(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(B.target);if(R>=0){var V;this.pollOptions[R]=(V=B.detail.value)!=null?V:"";this.notifyPath("pollOptions."+R)}}};
uM.prototype.dataChanged=uM.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],uM.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Array)],uM.prototype,"pollOptions",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uM.prototype,"hasMaxOptions",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],uM.prototype,"enableCreationBox",void 0);
_.r([_.Yp("#repeat"),_.Z("design:type",Hc)],uM.prototype,"repeat",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uM.prototype,"dataChanged",null);uM=_.r([_.A({disableElementRegistration:!0,is:"ytd-poll-attachment"})],uM);
_.F(uM,"ytd-poll-attachment",function(){if(hv4!==void 0)return hv4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return hv4=B},{mode:2});var t0b;var W$v;var b95;var Jtv;var OA=function(){return _.c.apply(this,arguments)||this};
_.l(OA,_.c);_.mh.Object.defineProperties(OA.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],OA.prototype,"rendererBehaviors",void 0);_.r([_.E(),_.Z("design:type",Object)],OA.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],OA.prototype,"focused",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("focused"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OA.prototype,"ariaSelected",null);OA=_.r([_.fJ({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],OA);
_.F(OA,"yt-user-mention-suggestion-renderer",function(){if(Jtv===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;b95===void 0&&(b95=document.createElement("template"));var e=b95;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Jtv=B}B=Jtv;return B},{mode:2});var jyG;var Uhv;var oe=function(){var B=_.c.apply(this,arguments)||this;B.focusedSuggestionIndex=-1;return B};
_.l(oe,_.c);_.p=oe.prototype;_.p.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.p.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.p.setFocusedSuggestionIndex=function(B){!this.data||!this.data.suggestions||B<0||B>=this.data.suggestions.length||(this.focusedSuggestionIndex=B,B=this.getSuggestionId(B),this._setFocusedSuggestionId(B))};
_.p.advanceSuggestion=function(B){this.focusedSuggestionIndex===-1||B!==-1&&B!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+B),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.p.ensureSuggestionVisible=function(B){B=this.getSuggestionId(B);B=_.w(this.hostElement).querySelector("[id="+B+"]");B!=null&&(B.offsetTop<this.hostElement.scrollTop?B.scrollIntoView(!0):B.offsetTop+B.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&B.scrollIntoView(!1))};
_.p.getSuggestionId=function(B){return"user-mention-suggestion-"+B};
_.p.onSuggestionTap=function(B){var R=_.D(B.model.item,mfb);this.ytRendererBehavior.logExplicitClick(R);_.OI(this.hostElement,"yt-user-mention-suggestion-selected",{data:R,index:B.model.index})};
_.p.onSuggestionMouseMove=function(B){B.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(B.model.index)};
_.p.isSuggestionFocused=function(B,R){return B===R};
_.p.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.p.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("focused-suggestion-id-changed",this.focusedSuggestionId))};
oe.prototype.focusedSuggestionIdChangedForBinding=oe.prototype.focusedSuggestionIdChangedForBinding;oe.prototype.onDomChange=oe.prototype.onDomChange;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],oe.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],oe.prototype,"focusedSuggestionIndex",void 0);_.r([_.E({readOnly:!0}),_.Z("design:type",String)],oe.prototype,"focusedSuggestionId",void 0);
_.r([_.R_("dom-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],oe.prototype,"onDomChange",null);_.r([_.XX("focusedSuggestionId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oe.prototype,"focusedSuggestionIdChangedForBinding",null);oe=_.r([_.fJ({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],oe);
_.F(oe,"yt-user-mention-suggestions-dropdown",function(){if(Uhv===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;jyG===void 0&&(jyG=document.createElement("template"));var e=jyG;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Uhv=B}B=Uhv;return B},{mode:2});var Bg=function(){var B=_.c.apply(this,arguments)||this;B.suggestionsResponse=null;B.activeMention=null;B.selectionChangeListener=B.onSelectionChange.bind(B);B.handlesEnabled=_.k("enable_handles_in_mention_suggest_posts");B.handlesInMentionSuggestionsEnabled=_.k("handles_in_mention_suggest_posts");B.zeroPrefixMentionSuggestionEnabled=_.k("enable_zero_prefix_mention_suggestion_web");B.pendingQuery=null;B.flowNonce=null;return B};
_.l(Bg,_.c);_.p=Bg.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(B){return!!(B&&B.suggestions&&B.suggestions.length>0)};
_.p.onInput=function(){var B=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var R=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),V=this.activeMention.JSC$9159_getText().slice(-1)===" ",e=this.activeMention.JSC$9159_getText().slice(-2,-1)===" ",X="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9159_getText().slice(-2,-1))>=
0;X=this.zeroPrefixMentionSuggestionEnabled&&X;if(this.activeMention.isCollapsed()||(R||e||X)&&V)this.cancelActiveMention();else{var Y=this.activeMention.JSC$9159_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.LJ(this,"requestSuggestions",function(){B.requestSuggestions(Y)},100)}}}};
_.p.onServiceRequestSent=function(B){B.stopPropagation()};
_.p.onServiceRequestCompleted=function(B){B.stopPropagation();B=B.detail.data;B.query&&(!this.pendingQuery||this.pendingQuery!==B.query)||!this.zeroPrefixMentionSuggestionEnabled&&B.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=B,this.hasSuggestions(B)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.p.onServiceRequestError=function(B){B.stopPropagation()};
_.p.onUserMentionSuggestionSelected=function(B){this.selectSuggestion(B.detail.data,B.detail.index)};
_.p.onSelectionChange=function(){if(this.activeMention){var B=_.k1(),R=this.activeMention.JSC$9159_containsRange(B);B=B&&this.containsHelper(this.dropdown,B.getContainer());R||B||this.cancelActiveMention()}};
_.p.containsHelper=function(B,R){var V;if(((V=window.ShadyDOM)==null?void 0:V.noPatch)===!0)return B.contains(R);for(;R;){if(R===B)return!0;R=R instanceof ShadowRoot?R.host:R.parentNode}return!1};
_.p.maybeStartSuggest=function(){var B=_.k1();if(B&&B.isCollapsed()){var R=B.JSC$9159_getStartNode(),V=B.JSC$9159_getStartOffset();if(R instanceof Text&&!(V<1)){var e=R.textContent;!(e=e&&e.charAt(V-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(e)<0||(this.activeMention=_.Ej(R,V-1,B.JSC$9159_getEndNode(),B.JSC$9159_getEndOffset()),this.flowNonce=aL(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.p.updateActiveMention=function(){if(this.activeMention){var B=_.k1();B&&B.isCollapsed()&&(this.activeMention=_.Ej(this.activeMention.JSC$9159_getStartNode(),this.activeMention.JSC$9159_getStartOffset(),B.JSC$9159_getEndNode(),B.JSC$9159_getEndOffset()))}};
_.p.requestSuggestions=function(B){if(this.activeMention){var R={suggestions_query:B};this.pendingQuery=B;_.VD(this.hostElement,[this.suggestionsEndpoint,R])}};
_.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(B){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),B.preventDefault())};
_.p.focusNextSuggestion=function(B){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),B.preventDefault())};
_.p.selectFocusedSuggestion=function(B){if(this.hasSuggestions(this.suggestionsResponse)){var R=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.D(R,mfb)&&(this.selectSuggestion(_.D(R,mfb),this.dropdown.focusedSuggestionIndex),B.preventDefault())}};
_.p.selectSuggestion=function(B,R){if(B){var V=this.activeMention;if(V){var e=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&B.handle?_.vx(e,"\u00a0\u2068@"+B.handle+"\u2069\u00a0"):this.handlesEnabled?_.vx(e,"\u00a0"+B.displayName+"\u00a0"):_.vx(e,"\u00a0@"+B.displayName+"\u00a0");f$(e,"/channel/"+B.channelId);e.classList.add("yt-formatted-string","yt-simple-endpoint");e.setAttribute("spellcheck","false");V.isCollapsed()||V.JSC$9159_removeContents();V.insertNode(e,!0);B=document.createTextNode(" ");
e.parentNode.insertBefore(B,e.nextSibling);window.getSelection().collapse(B,1);R={suggestionSelected:{suggestionIndex:R}};if(this.zeroPrefixMentionSuggestionEnabled){var X;R.suggestionSelected.isZeroPrefix=((X=this.suggestionsResponse)==null?void 0:X.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",R);this.cancelActiveMention();_.OI(this.hostElement,"yt-mention-inserted")}}};
_.p.getPositionTarget=function(B){return B&&B.getBrowserRangeObject()};
_.p.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.p.onFocusedSuggestionIdChanged=function(B){var R=_.ICp(this.hostElement)[0];R&&(B.detail.value?R.setAttribute("aria-activedescendant",B.detail.value):R.removeAttribute("aria-activedescendant"))};
_.p.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.p.logGELEvent=function(B,R){B={eventType:B,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};R&&(B=Object.assign(B,R));_.dn("userMentionAutoCompleteBoxEvent",B)};
Bg.prototype.onDomChange=Bg.prototype.onDomChange;Bg.prototype.onUserMentionSuggestionSelected=Bg.prototype.onUserMentionSuggestionSelected;Bg.prototype.onServiceRequestError=Bg.prototype.onServiceRequestError;Bg.prototype.onServiceRequestCompleted=Bg.prototype.onServiceRequestCompleted;Bg.prototype.onServiceRequestSent=Bg.prototype.onServiceRequestSent;Bg.prototype.onInput=Bg.prototype.onInput;_.r([_.v(_.kI),_.Z("design:type",Object)],Bg.prototype,"ironA11yKeysBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Bg.prototype,"suggestionsEndpoint",void 0);_.r([_.E(),_.Z("design:type",Object)],Bg.prototype,"suggestionsResponse",void 0);_.r([_.E(),_.Z("design:type",Object)],Bg.prototype,"activeMention",void 0);_.r([_.Yp("#dropdown"),_.Z("design:type",Object)],Bg.prototype,"dropdown",void 0);_.r([_.Yp("#iron-dropdown"),_.Z("design:type",Object)],Bg.prototype,"ironDropdown",void 0);
_.r([_.R_("input"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Bg.prototype,"onInput",null);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Bg.prototype,"onServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Bg.prototype,"onServiceRequestCompleted",null);
_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Bg.prototype,"onServiceRequestError",null);_.r([_.R_("yt-user-mention-suggestion-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Bg.prototype,"onUserMentionSuggestionSelected",null);
_.r([_.R_("dom-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Bg.prototype,"onDomChange",null);Bg=_.r([_.fJ({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Bg);
_.F(Bg,"yt-user-mention-autosuggest-input",function(){if(W$v===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;t0b===void 0&&(t0b=document.createElement("template"));var e=t0b;V.call(R,e.content.cloneNode(!0),B.content.firstChild);W$v=B}B=W$v;return B},{mode:2});var Re=null;
_.Sm({is:"ytd-commentbox",_template:function(){if(evR!==void 0)return evR;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return evR=B},
behaviors:[_.y5Z.YtHostElementBehavior,_.kI,_.$Z.YtActionHandlerBehavior,_.Tk.YtComponentBehavior,_.mD.YtRendererstamperBehavior,_.mbl.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(B,R){return _.p7(B.entities,"aadcGuidelinesStateEntityPayload",R)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(B,R){return _.p7(B.entities,"commentboxStateEntity",R)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.Tx}},
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:_.k("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.k("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",_.Bc(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(B){this.fire(B?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(B){this.set("submitButtonDisabled",void 0);this.clear();B&&this.computeIsEmojiButtonDisplayed_(B)&&(B=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&B.updateEmojiCategories()},
observePrefilledImage_:function(B,R,V){this.isValidPrefilledImage_(B,R,V)&&(this.prefilledAttachment_="image",this.prefilledImageData_=R,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(B,R){this.isValidPrefilledVideo_(B,R)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(B){B&&B.pollData&&B.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(B.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.bx();this.focus()},
detached:function(){document.removeEventListener("tap",_.Bc(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(B){B=B.detail;B=B.isCustomEmoji?B.shortcuts[0]:B.emojiId;var R=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(R,B);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var B=_.k1();if(B){B=B.getBrowserRangeObject();for(var R=B.commonAncestorContainer;R;){if(R===this.getEditableTextArea_())return B;R=R.parentNode}}B=this.getEditableTextArea_();B=_.Ic(B,B.childNodes.length);B.select();return B.getBrowserRangeObject()},
insertTextWithEmojis_:function(B,R,V){(R=this.emojiManager.createDocumentFragment(R,!0,!1,V===void 0?!0:V))&&R.childNodes.length!==0&&(B.collapsed||B.deleteContents(),V=R.lastChild,B.insertNode(R),_.vGJ(V).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var B=_.k1();if(B){var R=B.JSC$9159_getStartNode(),V=B.JSC$9159_getEndNode();if(B9_(R)&&B9_(V)){var e=B.JSC$9159_getStartOffset(),X;if(_.Jo&&R.nodeType===Node.ELEMENT_NODE&&(X=_.rhl(R)))_.Ic(X,0).select();else{X=SB(R)?R:_.xl(R,SB);var Y=SB(V)?V:_.xl(V,SB);if(X||Y)if(B.isCollapsed()){if(R.nodeType===Node.TEXT_NODE){B=!0;e===R.length&&(B=!1);if(Re==="end"||Re==="right")B=!1;R=R.parentNode;B=[].concat(_.MI(R.parentNode.childNodes)).indexOf(R)+(B?0:1);_.Ic(R.parentNode,B).select()}}else X?
X.previousSibling&&X.previousSibling.length>0?_.Ej(V,B.JSC$9159_getEndOffset(),X.previousSibling,X.previousSibling.length-1).select():(R=document.createTextNode("\u200b"),X.parentNode.insertBefore(R,X),_.Ej(V,B.JSC$9159_getEndOffset(),R,0).select()):Y&&(Y.nextSibling&&Y.nextSibling.length>0?_.Ej(R,B.JSC$9159_getStartOffset(),Y.nextSibling,1).select():(V=document.createTextNode("\u200b"),Y.parentNode.insertBefore(V,Y.nextSibling),_.Ej(R,B.JSC$9159_getStartOffset(),V,V.length).select()));Re=null}}else Re=
null}else Re=null},
leftKeyPressed_:function(){Re="left"},
rightKeyPressed_:function(){Re="right"},
endKeyPressed_:function(){Re="end"},
maybeDeleteChip_:function(){var B=YGd(!0);if(B){var R=_.k1(),V=R.JSC$9159_getStartNode();R=R.JSC$9159_getStartOffset();_.Ts(V,R,B,B.childNodes.length).select()}},
maybeBackspaceChip_:function(){var B=YGd(!1);if(B){var R=_.k1(),V=R.JSC$9159_getStartNode();R=R.JSC$9159_getStartOffset();_.Ts(V,R,B,0).select()}},
maybeBackspaceChipWordMode_:function(B){var R=_.k1();if(R.isCollapsed()){var V=R.JSC$9159_getStartNode();R=R.JSC$9159_getStartOffset();var e=h3u(V,R,!0);e&&(_.Ts(V,R,e,0).select(),document.execCommand("delete"),B.preventDefault(),B.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(B){var R=_.k1();if(R.isCollapsed()){var V=R.JSC$9159_getStartNode();R=R.JSC$9159_getStartOffset();var e=h3u(V,R,!1);e&&(_.Ts(V,R,e,e.childNodes.length).select(),document.execCommand("delete"),B.preventDefault(),B.stopImmediatePropagation())}},
onTap_:function(B){if(!B.defaultPrevented&&(B.currentTarget.tagName==="YTD-COMMENTBOX"&&SB(B.target)&&B.preventDefault(),this.isEmojiPickerDisplayed)){var R=this.$$("#emojis"),V=this.$$("#emoji-button"),e=this.getEditableTextArea_();if((B=B.path?B.path:B.composedPath&&B.composedPath())&&!B.includes(R)&&!B.includes(e)&&!B.includes(V))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(B,R,V){return B==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&R!==void 0&&R.encryptedBlobId!==null&&R.sourceExternalVideoId!==null&&V!==void 0&&V.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(B,R){return B==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!R&&!!R.videoRenderer&&!!R.videoRenderer.videoId},
isValidPrefilledAttachment_:function(B,R,V){return this.isValidPrefilledImage_(B,R,V)||this.isValidPrefilledVideo_(B,V)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.k("enable_multi_image_post_creation")){var B=this.$$("ytd-backstage-multi-image-select-renderer");B&&B.hasImages()&&B.cancel()}else(B=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&B.cancel();(B=this.$["poll-attachment"])&&this.hasPoll_&&B.clearPollOptions();(B=this.$["image-poll-attachment"])&&this.hasImagePoll_&&B.resetPollOptions();(B=this.$["quiz-attachment"])&&this.hasQuiz_&&B.resetQuizOptions();
(B=this.$["video-link-attachment"])&&this.hasVideo_&&B.cancel();(B=this.$["access-restrictions-selector"].firstElementChild)&&B.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 _.w(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.w(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(B,R){B=Vlq(B,this.emojiManager,R).cloneNode(!0);for(R=B.firstChild;R;)if(R.nodeType!==1)R=R.nextSibling;else switch(R.tagName){case "BR":var V=_.ap();_.uaJ(V,R);R=V.nextSibling;break;case "DIV":(V=R.lastChild)&&R.nextSibling&&_.xP(_.ap(),V);R.previousSibling&&(R.previousSibling.nodeType===1||R.previousSibling.nodeType===3&&!R.previousSibling.textContent.endsWith("\n"))&&_.Tw(_.ap(),R);V&&V.nodeName==="BR"&&_.UJ(V);V=R;R.hasChildNodes()?(R=R.firstChild,
_.ORJ(V)):(R=R.nextSibling,_.UJ(V));break;default:R=R.nextSibling}return tlK(B)},
onAddImageError_:function(B){B.stopPropagation();this.errorMessage_=_.s$(B.detail)},
setTextAreaValue_:function(B){B||(B="");var R=this.getEditableFormattedString_();R.text="";this.getEditableTextArea_().innerText="";typeof B==="string"&&(B={runs:[{text:B}]});R.text=B},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Re=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var B=this.getEditableTextArea_();B&&(_.Ic(B,B.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.vE("HTML_DIR")==="rtl"){var B=this.getEditableTextArea_(),R=this.getTextAreaValue()!==""?"auto":"rtl";B.setAttribute("dir",R)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var B;return Snu((B=this.$["quiz-attachment"])==null?void 0:B.getExplanationText())||Snu(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var B=null;if(this.isEmojiButtonDisplayed){var R=this.getInputRange_();R&&(B=this.emojiInput.retrieveTextBeforeRange(R))}this.insertText_(B,!0);this.updateCharCount_();this.setSubmitButton_();B=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=B.scrollHeight>B.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var B=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:B})},
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(B){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(B)},
onPasteEmoji_:function(B){B.preventDefault();B.stopImmediatePropagation();B=B.clipboardData.getData("text/plain");this.insertText_(B,!1,!1)},
insertText_:function(B,R,V){R=R===void 0?!1:R;V=V===void 0?!0:V;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&B){var e=this.getInputRange_().cloneRange();this.emojiManager&&e&&(R&&this.emojiInput.offsetStartOfRangeBy(e,B.length),this.insertTextWithEmojis_(e,B,V),R3_(this.getEditableTextArea_().lastChild)||(e=this.getInputRange_().cloneRange()),e&&(this.emojiInput.updateSuggestions(e,B),this.updateSuggestionOffset_(e)))}},
setSubmitButton_:function(){if(this.data){var B=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",R=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(B||R){var V=this.getTextAreaValue().trim();R=V===this.previousText_;V=!V||this.aboveCharLimit_;B&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(V=this.aboveCharLimit_);this.submitButtonDisabled=
R||V||!this.getTextLength();B&&_.k("enable_post_scheduling")&&(this.submitButtonDisabled=R&&!this.scheduledPublishTimeSec_||V)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.FF,computeCreationBoxClass_:function(B){return B?"focused":"not-focused"},
computeFooterMessageClass_:function(B,R){return R?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(B,R){return R?R:B},
computeFooterMessageHidden_:function(B,R){return!R&&!B},
computePlaceholderText_:function(B,R,V){return(V==="video"||V==="image")&&(B==null?0:B.prefilledPlaceholderText)?B==null?void 0:B.prefilledPlaceholderText:R==="poll"||R==="image-poll"?B==null?void 0:B.pollPostPlaceholderText:R==="quiz"?B==null?void 0:B.quizPostPlaceholderText:R==="image"?B==null?void 0:B.imagePostPlaceholderText:B==null?void 0:B.placeholderText},
computeHideAttachmentButtons_:function(B,R,V,e){return B===void 0?!1:e&&this.getSimpleString(e)===this.getSimpleString(B.rateLimitErrorMessage)?!0:R!=="none"||V!=="none"||!B.videoLinkButton&&!B.pollButton&&!B.imagePollButton&&!B.quizButton&&!B.imageButton},
computeHideDismissableAttachment_:function(B){return B!=="image"&&B!=="video"},
computeHasVideo_:function(B){return B==="video"},
computeHasImage_:function(B){return B==="image"},
computeHasPoll_:function(B){return B==="poll"},
computeHasImagePoll_:function(B){return B==="image-poll"},
computeHasQuiz_:function(B){return B==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(B){return B&&B.backstageAttachment?B.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!B.backstageAttachment.quizRenderer&&!B.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(B){if(this.isValidPrefilledAttachment_(B.purpose,B.prefilledImageData,B.backstageAttachment))return B.backstageAttachment},
computeEditAttachment_:function(B){if(this.computePrefilledContent_(B)===void 0)return B.backstageAttachment},
computeAuthorThumbnailDimension_:function(B,R){return B&&!R?24:40},
computeImageUploadEndpoint_:function(B){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",B)},
computeRateLimitErrorCommands_:function(B){var R,V;return B==null?void 0:(R=B.advancedTierFeatures)==null?void 0:(V=R.rateLimit)==null?void 0:V.rateLimitCommands},
computeIsBackstageComment_:function(B){return!(!B||B!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(B){return this.get("submitButton.buttonRenderer.serviceEndpoint",B)||this.get("replyButton.buttonRenderer.serviceEndpoint",B)||this.get("postButton.buttonRenderer.serviceEndpoint",B)},
computeSubmitButtonOverride:function(){if(_.k("web_modern_buttons")){var B,R;return{segmentedPosition:this.dropdownSchedulePanel_||!((B=this.data)==null?0:(R=B.postOptionsMenu)==null?0:R.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.k("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(B,R){B=this.get("submitButton.buttonRenderer",B)||this.get("replyButton.buttonRenderer",B)||this.get("postButton.buttonRenderer",B);R&&(B=R);B&&(B=Object.assign({},B),B.serviceEndpoint=void 0,B.isDisabled=this.submitButtonDisabled);return B},
computeHasExternalLinksAccess_:function(B){if(_.k("enable_rfa_external_links")){var R,V,e;return(e=B==null?void 0:(R=B.advancedTierFeatures)==null?void 0:(V=R.externalLinks)==null?void 0:V.allowExternalLinks)!=null?e:!0}return!0},
computeIsEmojiButtonDisplayed_:function(B){return B.emojiButton&&B.emojiPicker&&B.emojiPicker.emojiPickerRenderer&&B.emojiPicker.emojiPickerRenderer.categories?B.emojiPicker.emojiPickerRenderer.categories.find(function(R){return R.emojiPickerCategoryRenderer?R.emojiPickerCategoryRenderer.emojiIds&&R.emojiPickerCategoryRenderer.emojiIds.length>0:R.emojiPickerUpsellCategoryRenderer?R.emojiPickerUpsellCategoryRenderer.emojis&&R.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(B){return B.charLimit?B.charLimit:null},
computeDropdownSchedulingPanel_:function(B,R){if(B==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&R)return R},
computeInlineSchedulingPanel_:function(B,R){if(B==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&R)return R},
computeHideAuthorThumbnail_:function(B,R){return B||this.computeUseIdentityChip_(R)},
computeHideIdentityChipRenderer_:function(B,R){return B||!this.computeUseIdentityChip_(R)},
computeUseIdentityChip_:function(B){return!!B&&!!B.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(B){var R,V,e,X;(B==null?0:(R=B.detail)==null?0:(V=R.endpoint)==null?0:V.ypcGetOffersEndpoint)||(B==null?0:(e=B.detail)==null?0:(X=e.endpoint)==null?0:X.ypcOffersEndpoint)?(B.stopPropagation(),_.VD(this,[B.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",B)&&(B.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(B){this.addedAttachment="video";this.selectedVideoId_=B.detail.videoId},
commentboxStateEntityChanged_:function(B){var R=this;(B==null?void 0:B.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(B==null?void 0:B.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){R.focus()})},
onYtServiceRequestSent_:function(B,R){if(R.actions)for(B=_.h(R.actions),R=B.next();!R.done;R=B.next())R.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(B){this.isLoading=!1;var R=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",B),V,e,X,Y=B==null?void 0:(V=B.detail)==null?void 0:(e=V.data)==null?void 0:(X=e.actionResult)==null?void 0:X.commentboxStateEntityKey;if(R)this.errorMessage_=R;else if(Y){var t;this.dismissData_=B==null?void 0:(t=B.detail)==null?void 0:t.data;this.commentboxStateKey_=Y}else{this.clear();var b;this.fire("yt-commentbox-dismiss",B==null?void 0:(b=B.detail)==
null?void 0:b.data)}},
onYtServiceRequestError_:function(B){B.stopPropagation();this.isLoading=!1;var R,V;if(((R=this.data)==null?void 0:R.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((V=this.data)==null?void 0:V.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(R=this.get("detail.error.args",B)||[],R.length>1&&R[1].message){this.handlePostsServiceRequestError_(R[1].message);return}(B=this.get("detail.error.message",B))?this.errorMessage_=this.data.errorMessage||_.s$(B):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(B){if(_.k("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var R=_.h(this.rateLimitErrorCommands),V=R.next();!V.done;V=R.next())if(V=V.value,V.errorLabel===B){_.Xc(V.command,this.hostElement);return}this.errorMessage_=_.s$(B)},
submitIfNotBackstagePost_:function(B){if(!this.isBackstagePost)this.onSubmit_(B)},
onSubmit_:function(B){var R=this,V,e,X,Y,t,b,J,G,y,S,M,f,z,T,L;return _.W(function(Q){switch(Q.nextAddress){case 1:B.stopPropagation();if(!R.serviceEndpoint||!R.isValidInput_())return Q.return();if(R.shouldShowPostAadcNotice_())return R.showPostAadcNotice_(),Q.return();if(R.shouldShowCommentAadcNotice_())return R.showCommentAadcNotice_(),Q.return();if(!(R.$$("ytd-backstage-multi-image-select-renderer")&&R.hasImage_&&_.k("enable_multi_image_post_creation"))){Q.jumpTo(2);break}V=R.$$("ytd-backstage-multi-image-select-renderer");
return _.U(Q,V.getAllUploadStatuses(),3);case 3:e=Q.yieldResult;if(!e)return Q.return();X=_.h(e);for(Y=X.next();!Y.done;Y=X.next())if(t=Y.value,t.encryptedBlobId===void 0)return R.isLoading=!1,J=b=void 0,R.errorMessage_=(J=(b=R.imageUploadEndpoint_)==null?void 0:b.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?J:null,Q.return();return Q.return(R.submitForm_(void 0,void 0,void 0,void 0,V.images,R.taggedVideoId_));case 2:if(!R.hasImagePoll_||!R.$["image-poll-attachment"]){Q.jumpTo(4);
break}return _.U(Q,R.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:G=Q.yieldResult;if(!G)return Q.return();y=_.h(G);for(S=y.next();!S.done;S=y.next())if(M=S.value,!M.encryptedBlobId)return R.isLoading=!1,f=void 0,R.errorMessage_=(f=R.data.errorMessage)!=null?f:null,Q.return();case 4:T=(z=R.$$("ytd-backstage-image-select-renderer"))&&z.uploadPromise(),L=R.getSharedPostId_(),T?T.then(function(){R.submitForm_.apply(R,_.MI(_.HB.apply(0,arguments)))}).catch(function(q){R.isLoading=!1;
R.errorMessage_=_.s$(q.message)}):R.selectedVideoId_?R.submitForm_(void 0,R.selectedVideoId_):R.prefilledAttachment_==="image"?R.submitForm_(R.prefilledImageData_.encryptedBlobId,void 0,void 0,R.prefilledImageData_.sourceExternalVideoId,void 0,R.taggedVideoId_):R.prefilledAttachment_==="video"?R.submitForm_(void 0,R.data.backstageAttachment.videoRenderer.videoId):L?R.submitForm_(void 0,void 0,L):R.taggedVideoId_!==void 0?R.submitForm_(void 0,void 0,void 0,void 0,void 0,R.taggedVideoId_):R.submitForm_(),
_.b3(Q)}})},
openSchedulingPanel:function(B){B&&B.scheduleButton&&B.scheduleButton.buttonRenderer&&(this.scheduleButton_=B.scheduleButton.buttonRenderer);B&&B.dateTimePicker&&this.set("data.schedulingDateTimePicker",B.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(B){B.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(B){B.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(B){B.stopPropagation();B.detail.alertMessage&&(this.alertMessage_=B.detail.alertMessage)},
onImageSelected_:function(B){B.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(B){B.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(B){B.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(B.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(B){B.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(B){var R=this.$["video-link-attachment"];R&&R.onLaunchVideoPicker(B)},
onAttachmentDismiss_:function(B){B.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"&&_.k("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.k("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 B;if(this.addedAttachment==="image-poll"&&((B=this.$["image-poll-attachment"])==null||!B.isValid()))return!1;var R;if(this.addedAttachment==="quiz"&&((R=this.$["quiz-attachment"])==null||!R.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;B=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(B=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")B=!0;return B||!!this.getTextAreaValue().trim()},
submitForm_:function(B,R,V,e,X,Y){var t=this.getTextAreaValue().trim(),b={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&t===this.previousText_&&(t=void 0);t!==void 0&&(b.comment_text=t);this.isLoading=!0;Y!=void 0&&(b.tagged_video_id=Y);B?(b.image_blob_id=B,this.imagePreviewCoordinates_&&(b.image_preview_coordinates=this.imagePreviewCoordinates_)):R?b.attached_video_id=R:V?b.shared_post_id=V:X&&X.length>0&&(b.images_data=X.map(function(J){return{encryptedBlobId:J.encryptedBlobId,
previewCoordinates:J.previewCoordinates}}));
e&&(b.source_video_id=e);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(b.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(b.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(b.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.k("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(b.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.k("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(b.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.VD(this,[this.serviceEndpoint,b])},
onIsInputFocusChanged_:function(B,R){B?this.fire("yt-autonav-pause-focus"):R!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(B){var R=this.getEditableTextArea_();[].concat(_.MI(B.dataTransfer.items)).forEach(function(V){V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(e){R.appendChild(document.createTextNode(e))})});
B.preventDefault()},
preventDefault_:function(B){B.preventDefault()},
onSuggestionInsert_:function(B){this.insertTextWithEmojis_(B.detail.range,B.detail.text)},
onEmojiSuggestionClick_:function(B){this.emojiInput.insertSuggestion(B.detail)},
computeSubmitButtonClass_:function(B,R){return!R||B?"":"with-options"},
updateSuggestionOffset_:function(B){if(this.emojiInput&&_.w(this.emojiInput).querySelector("#dropdown")){var R=this.getEditableTextArea_().getBoundingClientRect().bottom,V=B.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(R-V)+5;R=this.getEditableTextArea_().getBoundingClientRect().left;B=B.getBoundingClientRect().left-R;_.w(this.emojiInput).querySelector("#dropdown").style.marginLeft=B+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(B){if(_.k("enable_post_scheduling")&&this.data&&this.data.purpose){B=B.detail;if(Math.floor(Date.now()/1E3)>=B)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var R=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(R)||R!==B?this.scheduledPublishTimeSec_=B:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=B;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var B=["image-button","image-poll-button","poll-button"];_.k("enable_quiz_creation")&&B.push("quiz-button");_.k("auto_convert_posts_video_tag")||B.push("video-link-button");return B},
getButtonRenderer:function(B,R){if(B)switch(R){case "video-link-button":var V;return((V=B.videoLinkButton)==null?void 0:V.buttonRenderer)||void 0;case "image-button":var e;return((e=B.imageButton)==null?void 0:e.buttonRenderer)||void 0;case "poll-button":var X;return((X=B.pollButton)==null?void 0:X.buttonRenderer)||void 0;case "image-poll-button":var Y;return((Y=B.imagePollButton)==null?void 0:Y.buttonRenderer)||void 0;case "quiz-button":var t;return((t=B.quizButton)==null?void 0:t.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var B;return(B=this.data)==null||!B.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var B,R;return!((B=this.data)==null||!B.openAadcDialog)&&!((R=this.aadcGuidelinesState_)==null||!R.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.vE("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var B;((B=this.data)==null?0:B.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.vf("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(B){B.clickTrackingParams&&_.WK().clickCommand(B);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.oF(this,"yt-close-popup-action")},
onHideIdentityChip:function(B){var R;this.set("data.placeholderText",(R=B.hideIdentityChipAction)==null?void 0:R.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var VC=function(){var B=_.c.apply(this,arguments)||this;B.isOpen=!1;B.modern=_.k("web_modern_buttons");B.roundedContainer=!0;B.dropdownButtonOverride=_.k("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;B.inPopupContainer=!1;B.isCommentboxLoading=!1;var R=["image-button","image-poll-button","poll-button"];_.k("enable_quiz_creation")&&R.push("quiz-button");_.k("auto_convert_posts_video_tag")||R.push("video-link-button");B.attachmentButtonIds=R;B.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 B};
_.l(VC,_.c);_.p=VC.prototype;_.p.computeButtonOverride=function(){var B;return((B=this.data)==null?0:B.postOptionsMenu)&&_.k("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.p.configureRendererStamper=function(){var B={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.k("auto_convert_posts_video_tag")||(B["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return B};
_.p.ready=function(){var B=this,R=_.w(this.hostElement).querySelector("#placeholder-area"),V=function(e){B.onOpen(e)};
R.addEventListener("tap",V);R.addEventListener("keypress",V)};
_.p.showButtonEduTooltip=function(){var B,R,V,e,X,Y,t;if(_.k("enable_quiz_creation")&&((B=this.data)==null?0:(R=B.quizButton)==null?0:(V=R.buttonRenderer)==null?0:(e=V.hint)==null?0:(X=e.hintRenderer)==null?0:(Y=X.content)==null?0:(t=Y.bubbleHintRenderer)==null?0:t.text)&&(_.uR.getInstance(),B=Op(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(B==null?void 0:
B.length)>0)){this.ytComponentBehavior.resolveCommand(B[0],{form:{element:this.quizButton}});return}var b;if((b=this.data)==null?0:b.imagePollButtonTooltip)if(_.uR.getInstance(),b=Op(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(b==null?void 0:b.length)>0){this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.imagePollButton}});return}var J;_.k("enable_multi_image_post_creation")&&
((J=this.data)==null?0:J.multiImageButtonTooltip)&&(_.uR.getInstance(),J=Op(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(J==null?void 0:J.length)>0&&this.ytComponentBehavior.resolveCommand(J[0],{form:{element:this.imageButton}}))};
_.p.onCreatePollAction=function(B){_.D(B,pxT)&&(this.JSC$13598_commentbox.addedAttachment="poll",this.openDialog())};
_.p.onAddVideoLinkAction=function(B){if(_.D(B,XxR))this.JSC$13598_commentbox.onAddVideoLink(B)};
_.p.onShowSchedulingPanelCommand=function(B){(B=_.D(B,I4b))&&this.openSchedulingPanel(B)};
_.p.onCreateImagePollCommand=function(B){_.D(B,i8J)&&(this.JSC$13598_commentbox.openImagePollComponent(),this.openDialog())};
_.p.onCreateQuizCommand=function(B){_.D(B,scv)&&(this.JSC$13598_commentbox.openQuizComponent(),this.openDialog())};
_.p.openSchedulingPanel=function(B){_.k("enable_post_scheduling")&&(this.openDialog(),this.JSC$13598_commentbox.openSchedulingPanel(B))};
_.p.onCreateCommentAction=function(B){this.get("createCommentAction.contents",B)&&(this.JSC$13598_commentbox.clear(),this.closeDialog())};
_.p.onOpen=function(B){B instanceof KeyboardEvent&&B.type==="keypress"&&B.keyCode!==13&&B.keyCode!==32||(this.data.prepareAccountEndpoint?_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.p.onYtCommentboxDismiss=function(){this.closeDialog()};
_.p.onYtCommentboxLoadingStart=function(B){B.stopPropagation();this.isCommentboxLoading=!0};
_.p.onYtCommentboxLoadingEnd=function(B){B.stopPropagation();this.isCommentboxLoading=!1};
_.p.onYtVideoLinkButtonCancel=function(B){B.stopPropagation();this.onOpen(B)};
_.p.onYtVideoLinkSelected=function(B){B.stopPropagation();this.onOpen(B)};
_.p.onIronSelect=function(B){B.stopPropagation();B.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=B.detail.item.value&&(this.accessRestriction?(this.accessRestriction=B.detail.item.value,this.onOpen(B)):this.accessRestriction=B.detail.item.value)};
_.p.onYtNavigate=function(B){this.get("detail.endpoint.backstageImageUploadEndpoint",B)&&(this.JSC$13598_commentbox.addedAttachment="image",this.JSC$13598_commentbox.submitButtonDisabled=!0,this.onOpen(B))};
_.p.onRequestSent=function(B){if(_.k("web_button_rework"))for(var R=_.h(B.detail),V=R.next();!V.done;V=R.next())_.D(V.value,Og5)&&(this.JSC$13598_commentbox.addedAttachment="image",this.JSC$13598_commentbox.submitButtonDisabled=!0,this.onOpen(B))};
_.p.openDialog=function(){this.JSC$13598_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13598_commentbox.focus()};
_.p.onPopupClosed=function(){_.uR.getInstance()};
_.p.computeCreationDisabled=function(B){return!!B};
_.p.computeIsCreationDialog=function(B){return!!B&&B==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.p.computeDisabledPostButton=function(B){if(!B)return null;B.isDisabled=!0;return B};
_.p.computeIsCreationDialogWithHeader=function(B){return!this.inPopupContainer&&!!B&&!!B.authorText&&B.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.p.computeIsHeaderHidden=function(B,R){return!B||R};
_.p.computeDropdownRendererClasses=function(B){return B?["text-secondary-style"]:[]};
_.p.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var B=_.w(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;B&&B.reset()};
VC.prototype.onPopupClosed=VC.prototype.onPopupClosed;VC.prototype.onRequestSent=VC.prototype.onRequestSent;VC.prototype.onYtNavigate=VC.prototype.onYtNavigate;VC.prototype.onIronSelect=VC.prototype.onIronSelect;VC.prototype.onYtVideoLinkSelected=VC.prototype.onYtVideoLinkSelected;VC.prototype.onYtVideoLinkButtonCancel=VC.prototype.onYtVideoLinkButtonCancel;VC.prototype.onYtCommentboxLoadingEnd=VC.prototype.onYtCommentboxLoadingEnd;VC.prototype.onYtCommentboxLoadingStart=VC.prototype.onYtCommentboxLoadingStart;
VC.prototype.onYtCommentboxDismiss=VC.prototype.onYtCommentboxDismiss;VC.prototype.showButtonEduTooltip=VC.prototype.showButtonEduTooltip;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],VC.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],VC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],VC.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],VC.prototype,"isOpen",void 0);_.r([_.E({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],VC.prototype,"buttonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],VC.prototype,"modern",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],VC.prototype,"roundedContainer",void 0);_.r([_.E(),_.Z("design:type",Object)],VC.prototype,"dropdownButtonOverride",void 0);_.r([_.E({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Z("design:type",Boolean)],VC.prototype,"creationDisabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],VC.prototype,"enableCreationBox",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Z("design:type",Boolean)],VC.prototype,"isCreationDialog",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],VC.prototype,"inPopupContainer",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Z("design:type",Boolean)],VC.prototype,"isCreationDialogWithHeader",void 0);_.r([_.E(),_.Z("design:type",Object)],VC.prototype,"accessRestriction",void 0);
_.r([_.E({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Z("design:type",Array)],VC.prototype,"dropdownRendererClasses",void 0);_.r([_.E(),_.Z("design:type",Object)],VC.prototype,"isCommentboxLoading",void 0);_.r([_.E(),_.Z("design:type",Array)],VC.prototype,"attachmentButtonIds",void 0);_.r([_.Yp("#image-button"),_.Z("design:type",HTMLElement)],VC.prototype,"imageButton",void 0);
_.r([_.Yp("#image-poll-button"),_.Z("design:type",HTMLElement)],VC.prototype,"imagePollButton",void 0);_.r([_.Yp("#quiz-button"),_.Z("design:type",HTMLElement)],VC.prototype,"quizButton",void 0);_.r([_.Yp("#commentbox"),_.Z("design:type",Object)],VC.prototype,"JSC$13598_commentbox",void 0);_.r([_.XX("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VC.prototype,"showButtonEduTooltip",null);
_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VC.prototype,"onYtCommentboxDismiss",null);_.r([_.R_("yt-commentbox-loading-start"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VC.prototype,"onYtCommentboxLoadingStart",null);
_.r([_.R_("yt-commentbox-loading-end"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VC.prototype,"onYtCommentboxLoadingEnd",null);_.r([_.R_("yt-video-link-button-cancel"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VC.prototype,"onYtVideoLinkButtonCancel",null);
_.r([_.R_("yt-video-link-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VC.prototype,"onYtVideoLinkSelected",null);_.r([_.R_("iron-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VC.prototype,"onIronSelect",null);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VC.prototype,"onYtNavigate",null);
_.r([_.R_("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VC.prototype,"onRequestSent",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VC.prototype,"onPopupClosed",null);VC=_.r([_.A({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],VC);
_.F(VC,"ytd-backstage-post-dialog-renderer",function(){if(QXb!==void 0)return QXb;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return QXb=B},{mode:1});var NJh;var G7J;var eW=function(){return _.c.apply(this,arguments)||this};
_.l(eW,_.c);_.p=eW.prototype;_.p.computeHeartButtonStyle=function(B){return(B==null?0:B.styleType)?B.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.p.onYtButtonTap=function(){if(this.data.isEnabled){var B=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(B=this.getEndpoint(B))&&_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}})}else(B=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(B)};
_.p.toggle=function(B){this.set("data.isHearted",B!==void 0?B:!this.data.isHearted)};
_.p.getEndpoint=function(B){var R,V=(R=this.data)==null?void 0:R.heartEndpoint,e;R=(e=this.data)==null?void 0:e.unheartEndpoint;if(V&&R)return B?R:V};
_.p.computeButtonAccessibility=function(B,R){var V,e,X=B==null?void 0:(V=B.heartedAccessibility)==null?void 0:(e=V.accessibilityData)==null?void 0:e.label,Y,t;B=B==null?void 0:(Y=B.unheartedAccessibility)==null?void 0:(t=Y.accessibilityData)==null?void 0:t.label;return R?X:B};
_.mh.Object.defineProperties(eW.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 B;return _.k("kevlar_system_icons")&&!((B=this.data)==null||!B.isHearted)}}});
eW.prototype.onYtButtonTap=eW.prototype.onYtButtonTap;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],eW.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],eW.prototype,"data",void 0);_.r([_.K("data.isHearted"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],eW.prototype,"heartTooltip",null);
_.r([_.K("data.isHearted"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],eW.prototype,"iconFilled",null);_.r([_.E({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Z("design:type",String)],eW.prototype,"buttonAccessibility",void 0);_.r([_.E({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],eW.prototype,"heartButtonStyle",void 0);
_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eW.prototype,"onYtButtonTap",null);eW=_.r([_.A({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],eW);
_.F(eW,"ytd-creator-heart-renderer",function(){if(G7J!==void 0)return G7J;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return G7J=B},{mode:1});var XA=function(){var B=_.c.apply(this,arguments)||this;B.hasCreatorReply=!1;B.buttonOverrides={size:"S",iconPosition:"icon-only"};B.replyButtonOverrides={size:"S",type:"text"};B.forceIconButton=!_.k("web_modern_buttons");B.modern=_.k("web_modern_buttons");B.buttonTooltipPosition="bottom";B.systemIcons=_.k("kevlar_system_icons");B.replyDialog=null;return B};
_.l(XA,_.c);_.p=XA.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&&_.w(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var B,R,V;this.isLiked=this.systemIcons&&!!((B=this.data)==null?0:(R=B.likeButton)==null?0:(V=R.toggleButtonRenderer)==null?0:V.isToggled)};
_.p.computeShowVoteCountBeginning=function(B,R){return B===void 0||R===void 0?!0:B.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!R&&this.ytRendererBehavior.getSimpleString(R)!=="0"};
_.p.computeShowVoteCountEnd=function(B,R){return B===void 0||R===void 0?!0:B.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!R&&this.ytRendererBehavior.getSimpleString(R)!=="0"};
_.p.computeShowCommentCount=function(B,R){return B===void 0||R===void 0?!0:B.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!R&&this.ytRendererBehavior.getSimpleString(R)!=="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(B){B&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.w(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=B,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.p.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.p.onRequestSent=function(B){if(_.k("web_button_rework")){B=_.h(B.detail);for(var R=B.next();!R.done;R=B.next())(R=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",R.value))&&this.showReplyDialog(R)}};
_.p.onYtNavigate=function(B){var R,V;(B=(R=_.D(B.detail.endpoint,_.BpR))==null?void 0:(V=R.dialog)==null?void 0:V.commentReplyDialogRenderer)&&this.showReplyDialog(B)};
_.p.onYtServiceRequestSent=function(B,R){B.stopPropagation();if(R.actions)for(B=0;B<R.actions.length;B++){var V=_.D(R.actions[B],t9a);V&&this.handleUpdateCommentVoteAction(V)}};
_.p.handleUpdateCommentVoteAction=function(B){this.voteCount=B.voteCount||_.s$("0");B.voteStatus==="LIKE"?this.JSC$13609_ytdDislikeToggleButtonRenderer.toggle(!1):B.voteStatus==="DISLIKE"?this.JSC$13609_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13609_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13609_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.p.computeReplyButtonHidden=function(B){return B};
_.p.computeReplyButtonBeginning=function(B){return(B==null?0:B.replyButton)&&B.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?B.replyButton:void 0};
_.p.computeReplyButtonEnd=function(B){return(B==null?0:B.replyButton)&&B.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?B.replyButton:void 0};
_.p.computeActionButtonStyle=function(B){return(B==null?0:B.style)?B.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.p.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.p.onYtToggleButton=function(B){var R,V;this.isLiked=this.systemIcons&&!!((R=B.detail)==null?0:(V=R.actions)==null?0:V.like)};
XA.prototype.onYtToggleButton=XA.prototype.onYtToggleButton;XA.prototype.onButtonTooltipPositionChanged=XA.prototype.onButtonTooltipPositionChanged;XA.prototype.onYtServiceRequestSent=XA.prototype.onYtServiceRequestSent;XA.prototype.onYtNavigate=XA.prototype.onYtNavigate;XA.prototype.onRequestSent=XA.prototype.onRequestSent;XA.prototype.onYtCommentboxDismiss=XA.prototype.onYtCommentboxDismiss;XA.prototype.dataChange=XA.prototype.dataChange;
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],XA.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],XA.prototype,"voteCount",void 0);_.r([_.E(),_.Z("design:type",Object)],XA.prototype,"commentCount",void 0);_.r([_.E(),_.Z("design:type",Object)],XA.prototype,"replyThumbnail",void 0);
_.r([_.E(),_.Z("design:type",Object)],XA.prototype,"hasCreatorReply",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],XA.prototype,"enableCreationBox",void 0);_.r([_.E({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],XA.prototype,"actionButtonsStyle",void 0);_.r([_.E({computed:"computeReplyButtonBeginning(data)"}),_.Z("design:type",Object)],XA.prototype,"replyButtonBeginning",void 0);
_.r([_.E({computed:"computeReplyButtonEnd(data)"}),_.Z("design:type",Object)],XA.prototype,"replyButtonEnd",void 0);_.r([_.E(),_.Z("design:type",Object)],XA.prototype,"buttonOverrides",void 0);_.r([_.E(),_.Z("design:type",Object)],XA.prototype,"replyButtonOverrides",void 0);_.r([_.E(),_.Z("design:type",Object)],XA.prototype,"forceIconButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],XA.prototype,"useCommentIcon",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],XA.prototype,"modern",void 0);_.r([_.E(),_.Z("design:type",Object)],XA.prototype,"buttonTooltipPosition",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],XA.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],XA.prototype,"isLiked",void 0);_.r([_.Yp("ytd-button-renderer"),_.Z("design:type",Object)],XA.prototype,"ytdReplyButtonRenderer",void 0);
_.r([_.Yp("#like-button"),_.Z("design:type",Object)],XA.prototype,"JSC$13609_ytdLikeToggleButtonRenderer",void 0);_.r([_.Yp("#dislike-button"),_.Z("design:type",Object)],XA.prototype,"JSC$13609_ytdDislikeToggleButtonRenderer",void 0);_.r([_.Yp("#reply-dialog"),_.Z("design:type",HTMLElement)],XA.prototype,"replyDialogElement",void 0);_.r([_.Yp("#reply-button"),_.Z("design:type",HTMLElement)],XA.prototype,"replyButtonElement",void 0);
_.r([_.Yp("#reply-button-end"),_.Z("design:type",HTMLElement)],XA.prototype,"replyButtonEndElement",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XA.prototype,"dataChange",null);_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],XA.prototype,"onYtCommentboxDismiss",null);
_.r([_.R_("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],XA.prototype,"onRequestSent",null);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],XA.prototype,"onYtNavigate",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],XA.prototype,"onYtServiceRequestSent",null);_.r([_.XX("buttonTooltipPosition"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XA.prototype,"onButtonTooltipPositionChanged",null);
_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],XA.prototype,"onYtToggleButton",null);XA=_.r([_.A({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],XA);
_.F(XA,"ytd-comment-action-buttons-renderer",function(){if(NJh!==void 0)return NJh;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return NJh=B},{mode:1});var yta;var pb=function(){return _.c.apply(this,arguments)||this};
_.l(pb,_.c);pb.prototype.focus=function(){_.w(this.hostElement).querySelector("#commentbox").focus()};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],pb.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],pb.prototype,"zeroStepChannelCreationRenderer",void 0);pb=_.r([_.A({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],pb);
_.F(pb,"ytd-comment-dialog-renderer",function(){if(yta!==void 0)return yta;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return yta=B},{mode:1});var SPl;var Y4=function(){var B=_.c.apply(this,arguments)||this;B.buttonOverrides={size:"S",iconPosition:"icon-only"};B.replyButtonOverrides={size:"S",type:"text"};return B};
_.l(Y4,_.c);_.p=Y4.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(B){if(B){var R=this.replyBox;R||(R=document.createElement("ytd-comment-reply-dialog-renderer"),R.id="replybox",_.w(this.replyDialogDiv).appendChild(R));R.data=B;this.replyDialogDiv.hidden=!1;R.openDialog()}};
_.p.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.p.onYtServiceRequestSent=function(B,R){B.stopPropagation();if(R.actions)for(var V=0;V<R.actions.length;V++){var e=_.D(R.actions[V],t9a);e?this.handleUpdateCommentVoteAction(e):B.target===this.heartButton&&this.toggleHeartState()}};
_.p.handleUpdateCommentVoteAction=function(B){var R;(R=this.toolbarState)!=null&&R.key&&this.ytdReduxBehavior.dispatch(_.v7("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:B.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":B.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.p.toggleHeartState=function(){var B;(B=this.toolbarState)!=null&&B.key&&this.ytdReduxBehavior.dispatch(_.v7("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.mh.Object.defineProperties(Y4.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return(((B=this.toolbarState)==null?void 0:B.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(R=this.toolbarData)==null?void 0:R.likeCountLiked:(V=this.toolbarData)==null?void 0:V.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.toolbarSurface)==null?void 0:B.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.toolbarSurface)==null?void 0:B.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.toolbarSurface)==null?void 0:B.prepareAccountCommand)!==void 0&&!_.k("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B,R=_.D((B=this.toolbarSurface)==null?void 0:B.prepareAccountCommand,_.aT),V,e,X,Y,t,b,J,G,y;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((V=this.toolbarSharedData)==null||!V.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((e=this.toolbarState)==null?void 0:e.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:R!=null?R:_.D((X=this.toolbarSurface)==null?void 0:X.likeCommand,_.aT),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:R!=null?R:_.D((Y=this.toolbarSurface)==null?void 0:Y.unlikeCommand,_.aT),defaultCommand:this.isVisiblyDisabled?_.D((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,_.aT):void 0,defaultTooltip:(b=this.toolbarData)==null?void 0:b.likeInactiveTooltip,toggledTooltip:(J=this.toolbarData)==null?void 0:J.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(G=this.toolbarData)==null?void 0:G.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(y=this.toolbarSharedData)==null?void 0:y.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B,R=_.D((B=this.toolbarSurface)==null?void 0:B.prepareAccountCommand,_.aT),V,e,X,Y,t,b,J,G,y,S;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((V=this.toolbarSharedData)==null||!V.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((e=this.toolbarState)==null?void 0:e.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:R!=null?R:_.D((X=this.toolbarSurface)==null?void 0:X.dislikeCommand,_.aT),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:R!=null?R:_.D((Y=this.toolbarSurface)==null?void 0:Y.undislikeCommand,_.aT),defaultCommand:this.isVisiblyDisabled?_.D((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,_.aT):void 0,defaultTooltip:(b=this.toolbarData)==null?void 0:b.dislikeInactiveTooltip,toggledTooltip:(J=this.toolbarData)==null?void 0:
J.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(G=this.toolbarSharedData)==null?void 0:G.dislikeReplyButtonA11y:(y=this.toolbarSharedData)==null?void 0:y.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(S=this.toolbarSharedData)==null?void 0:S.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var B,R,V;if(((B=this.toolbarState)==null?void 0:B.heartState)!==void 0&&((R=this.toolbarState)==null?void 0:R.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((V=this.toolbarState)==null?void 0:V.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var e,X,Y,t,b,J,G,y,S,M,f,z,T,L;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(e=this.toolbarData)==null?void 0:e.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((t=this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.toolbarState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.D((J=this.toolbarSurface)==null?void 0:J.heartCommand,
_.aT),unheartEndpoint:this.isVisiblyDisabled?void 0:_.D((G=this.toolbarSurface)==null?void 0:G.unheartCommand,_.aT),disabledEndpoint:this.isVisiblyDisabled?_.D((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.aT):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(S=this.toolbarData)==null?void 0:S.heartActiveTooltip,unheartedTooltip:(M=this.toolbarData)==null?void 0:M.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((f=
this.toolbarState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(z=this.toolbarSharedData)==null?void 0:z.unheartButtonA11y:(T=this.toolbarSharedData)==null?void 0:T.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(L=this.toolbarSharedData)==null?void 0:L.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.toolbarSurface)==null||!B.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(B=this.commentStrings)==null?void 0:B.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.D((R=this.toolbarSurface)==null?void 0:R.replyCommand,_.aT),command:this.isVisiblyDisabled?_.D((V=this.toolbarSurface)==null?void 0:V.commentDisabledActionCommand,
_.aT):this.isSubscribersOnlyComments?_.D((e=this.toolbarSurface)==null?void 0:e.subscribersOnlySnackbarCommand,_.aT):void 0}}}});
Y4.prototype.onYtServiceRequestSent=Y4.prototype.onYtServiceRequestSent;Y4.prototype.hideReplyDialogDiv=Y4.prototype.hideReplyDialogDiv;_.r([_.E(),_.Z("design:type",Object)],Y4.prototype,"commentStrings",void 0);_.r([_.E(),_.Z("design:type",Boolean)],Y4.prototype,"isReply",void 0);_.r([_.E(),_.Z("design:type",Object)],Y4.prototype,"toolbarData",void 0);_.r([_.E(),_.Z("design:type",Object)],Y4.prototype,"toolbarSharedData",void 0);
_.r([_.E(),_.Z("design:type",String)],Y4.prototype,"toolbarStateKey",void 0);_.r([_.E(),_.Z("design:type",String)],Y4.prototype,"toolbarSurfaceKey",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Y4.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Y4.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Yp("#reply-dialog"),_.Z("design:type",HTMLElement)],Y4.prototype,"replyDialogDiv",void 0);_.r([_.Yp("#replybox"),_.Z("design:type",Object)],Y4.prototype,"replyBox",void 0);_.r([_.Yp("ytd-creator-heart-renderer"),_.Z("design:type",Object)],Y4.prototype,"heartButton",void 0);_.r([_.E({selector:function(B,R){return _.p7(B.entities,"engagementToolbarStateEntityPayload",R)},
selectorArgs:["toolbarStateKey"]}),_.Z("design:type",Object)],Y4.prototype,"toolbarState",void 0);_.r([_.E({selector:q9K,selectorArgs:["toolbarSurfaceKey"]}),_.Z("design:type",Object)],Y4.prototype,"toolbarSurface",void 0);_.r([_.E(),_.Z("design:type",Object)],Y4.prototype,"buttonOverrides",void 0);_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Y4.prototype,"hideReplyDialogDiv",null);
_.r([_.K("toolbarData","toolbarState"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Y4.prototype,"likeCount",null);_.r([_.K("likeCount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Y4.prototype,"showLikeCount",null);_.r([_.K("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Y4.prototype,"isVisiblyDisabled",null);_.r([_.K("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Y4.prototype,"isSubscribersOnlyComments",null);
_.r([_.K("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Y4.prototype,"hasPrepareAccountCommand",null);_.r([_.K("toolbarData","toolbarState","toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Y4.prototype,"likeToggleButtonRenderer",null);_.r([_.K("isReply","toolbarData","toolbarState","toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Y4.prototype,"dislikeToggleButtonRenderer",null);
_.r([_.K("toolbarData","toolbarState","toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Y4.prototype,"creatorHeartSupportedRenderer",null);_.r([_.K("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Y4.prototype,"hasReplyCommand",null);_.r([_.K("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Y4.prototype,"replyButtonRenderer",null);
_.r([_.E(),_.Z("design:type",Object)],Y4.prototype,"replyButtonOverrides",void 0);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],Y4.prototype,"onYtServiceRequestSent",null);Y4=_.r([_.A({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Y4);
_.F(Y4,"ytd-comment-engagement-bar",function(){if(SPl!==void 0)return SPl;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return SPl=B},{mode:1});var H94;var hL=function(){return _.c.apply(this,arguments)||this};
_.l(hL,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],hL.prototype,"data",void 0);hL=_.r([_.A({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],hL);
_.F(hL,"ytd-comment-inline-thumbnail-renderer",function(){if(H94!==void 0)return H94;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return H94=B},{mode:1});var M0S;var tL=function(){return _.c.apply(this,arguments)||this};
_.l(tL,_.c);_.r([_.E(),_.Z("design:type",Object)],tL.prototype,"data",void 0);tL=_.r([_.A({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],tL);
_.F(tL,"ytd-comment-pause-composer-renderer",function(){if(M0S!==void 0)return M0S;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return M0S=B},{mode:1});var k74;var Dh_;var Wg=function(){var B=_.c.apply(this,arguments)||this;B.isOpen=!1;return B};
_.l(Wg,_.c);_.p=Wg.prototype;_.p.dataChanged=function(){this.isOpen=!1};
_.p.onTap=function(){this.data&&(this.data.navigationEndpoint?_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.p.focus=function(){this.JSC$13635_commentbox.focus()};
_.p.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.p.openDialog=function(){this.isOpen=!0;this.JSC$13635_commentbox.focus();this.JSC$13635_commentbox.maybeHeightChanged()};
Wg.prototype.onYtCommentboxDismiss=Wg.prototype.onYtCommentboxDismiss;Wg.prototype.dataChanged=Wg.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Wg.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Wg.prototype,"isOpen",void 0);_.r([_.Yp("#commentbox"),_.Z("design:type",Object)],Wg.prototype,"JSC$13635_commentbox",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wg.prototype,"dataChanged",null);_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Wg.prototype,"onYtCommentboxDismiss",null);Wg=_.r([_.A({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Wg);
_.F(Wg,"ytd-comment-reply-dialog-renderer",function(){if(Dh_!==void 0)return Dh_;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Dh_=B},{mode:1});var fcR;var bd=function(){return _.c.apply(this,arguments)||this};
_.l(bd,_.c);_.mh.Object.defineProperties(bd.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(B=this.data)==null?void 0:(R=B.icon)==null?void 0:R.iconType;return V?"yt-icons:"+V.toLowerCase():null}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bd.prototype,"data",void 0);_.r([_.E(),_.K("data.icon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bd.prototype,"icon",null);bd=_.r([_.A({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],bd);
_.F(bd,"ytd-pinned-comment-badge-renderer",function(){if(fcR!==void 0)return fcR;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return fcR=B},{mode:1});var lc4;var zv5={},ac4={input:!0,meta:!0,br:!0,link:!0,img:!0},JL=null;zv5.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(){JL==null&&(JL=document.createElement("tp-yt-paper-tooltip"),JL.offset=8,JL.fitToVisibleBounds=!0)},
onMouseOver_:function(B){if(B=_.xl(B.target,function(X){return X==this||X.getAttribute&&X.getAttribute("shared-tooltip-text")}.bind(this),!0)){var R=B.getAttribute("shared-tooltip-text");
if(R){var V=this,e=null;B!=this&&(B.tagName.toLowerCase()in ac4?V=B.parentElement:V=B,B.id&&(e=B.id));this.polymerController.createTooltipIfRequired_();if(JL.parentElement!=V||JL.for!=e)(0,_.OX)(JL).textContent=R,_.w(V).appendChild(JL),JL.for=e,JL.animationDelay=this.polymerController.sharedTooltipAnimationDelay,JL.position=this.polymerController.sharedTooltipPosition}}}};var jW=function(){return _.c.apply(this,arguments)||this};
_.l(jW,_.c);jW.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]]"}}}}}};
jW.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
jW.prototype.colorChanged=function(){var B,R,V,e=(B=this.data)==null?void 0:(R=B.color)==null?void 0:(V=R.basicColorPaletteData)==null?void 0:V.foregroundBodyColor;e&&(this.rgbBadgeColor=_.li(e));_.w(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
jW.prototype.tooltipChanged=function(){var B;((B=this.data)==null?0:B.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
jW.prototype.tooltipChanged=jW.prototype.tooltipChanged;jW.prototype.colorChanged=jW.prototype.colorChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(zv5.YtSharedTooltipBehavior),_.Z("design:type",Object)],jW.prototype,"ytSharedTooltipBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],jW.prototype,"data",void 0);
_.r([_.E({value:"#4285F4"}),_.Z("design:type",String)],jW.prototype,"rgbBadgeColor",void 0);_.r([_.XX("data.color"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jW.prototype,"colorChanged",null);_.r([_.XX("data.tooltip"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jW.prototype,"tooltipChanged",null);jW=_.r([_.A({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],jW);
_.F(jW,"ytd-sponsor-comment-badge-renderer",function(){if(lc4!==void 0)return lc4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return lc4=B},{mode:1});var dh2;var wF2;var Ug=function(){return _.c.apply(this,arguments)||this};
_.l(Ug,_.c);Ug.prototype.computeState=function(B){switch(B==null?void 0:B.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"}};
Ug.prototype.updateStateIdentifier=function(B){if(this.viewModel.triStateKey){var R=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.v7("triStateButtonStateEntityPayload",R,{key:R,stateIdentifier:B}))}};
Ug.prototype.onClick=function(){var B=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(){B.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){B.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.mh.Object.defineProperties(Ug.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 B;return((B=this.data)==null?void 0:B.buttonText)||""}}});
_.r([_.E(),_.Z("design:type",Object)],Ug.prototype,"viewModel",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Ug.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Ug.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.r([_.E({selector:cWu,selectorArgs:["viewModel.triStateKey"]}),_.Z("design:type",Object)],Ug.prototype,"triStateButtonStateEntity",void 0);
_.r([_.E({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Z("design:type",String)],Ug.prototype,"state",void 0);_.r([_.K("viewModel","state"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ug.prototype,"data",null);_.r([_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ug.prototype,"buttonText",null);Ug=_.r([_.A({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Ug);
_.F(Ug,"ytd-tri-state-button-view-model",function(){if(wF2!==void 0)return wF2;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wF2=B},{mode:1});var TJG;var xhG;var NZ=function(){var B=_.c.apply(this,arguments)||this;B.defaultIconToFilled=!_.k("kevlar_fill_comment_chip_icon_killswitch");return B};
_.l(NZ,_.c);NZ.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
NZ.prototype.dataChanged=function(){if(this.data){var B,R;((B=this.data.chipColorPalette)==null?0:B.backgroundColor)&&((R=this.data.chipColorPalette)==null?0:R.foregroundTitleColor)&&_.o_(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.zF(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.zF(this.data.chipColorPalette.foregroundTitleColor)});var V;((V=this.data)==null?0:V.command)?(_.o_(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.o_(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}};
NZ.prototype.onTap=function(){var B;if(this.data&&(B=this.data)!=null&&B.command){var R;this.ytComponentBehavior.resolveCommand((R=this.data)==null?void 0:R.command)}};
NZ.prototype.getIconSize=function(){return _.k("kevlar_fill_comment_chip_icon_killswitch")?24:12};
NZ.prototype.onTap=NZ.prototype.onTap;NZ.prototype.dataChanged=NZ.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],NZ.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.kI),_.Z("design:type",Object)],NZ.prototype,"ironA11yKeysBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],NZ.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],NZ.prototype,"basePriceText",void 0);_.r([_.E(),_.Z("design:type",Object)],NZ.prototype,"chipIcon",void 0);_.r([_.E(),_.Z("design:type",Object)],NZ.prototype,"defaultIconToFilled",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NZ.prototype,"dataChanged",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NZ.prototype,"onTap",null);
NZ=_.r([_.fJ({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],NZ);
_.F(NZ,"yt-pdg-comment-chip-renderer",function(){if(xhG===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;TJG===void 0&&(TJG=document.createElement("template"));var e=TJG;V.call(R,e.content.cloneNode(!0),B.content.firstChild);xhG=B}B=xhG;return B},{mode:2});var G5=function(){var B=_.c.apply(this,arguments)||this;B.useSmallAvatars=_.k("small_avatars_for_comments");B.webWatchCompactComments=_.k("web_watch_compact_comments");B.editDialog=null;return B};
_.l(G5,_.c);_.p=G5.prototype;_.p.onShow=function(){_.aF("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 B={"--ytd-comment-paid-background-color":_.zF(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.o_(this.hostElement,B)}else _.o_(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.p.resetExpander=function(){var B;(B=this.expander)==null||B.reset()};
_.p.openEditDialog=function(B){B.dialog&&(this.editDialog=B.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.p.onYtNavigate=function(B){var R=B.detail.endpoint;if(R=_.D(R,_.RPh)||_.D(R,_.VH_))B.stopPropagation(),this.openEditDialog(R)};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null;_.o_(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.p.onAuthorThumbnailClicked=function(){var B=this;_.k("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(R,V){B.onAuthorThumbnailEndpointSuccess(V)},
onServerError:function(R,V){_.KE(new _.H8("Failed to resolve the command",V))}}})};
_.p.onAuthorThumbnailEndpointSuccess=function(B){if((B=B==null?void 0:B.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(B,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();B=B==null?void 0:B.clickTrackingParams;var R=_.wT();B&&R&&_.WK().graftServerVe(B,R)}};
_.p.logScreenVe=function(){_.py(_.WK(),66557)};
_.p.onYtCommentboxResize=function(B){var R;(B==null?0:(R=B.detail)==null?0:R.height)&&_.o_(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":B.detail.height+"px"})};
_.mh.Object.defineProperties(G5.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 B,R=(B=this.commentEntity)==null?void 0:B.author;return R&&(R.isCreator||R.isVerified||R.isArtist)?{renderer:{authorEndpoint:R.channelPageEndpoint?_.D(R.channelPageEndpoint,_.aT):_.D(R.channelCommand,_.aT),authorText:{runs:[{text:R.displayName}]},color:R.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:R.isArtist?{iconType:"AUDIO_BADGE"}:
R.isVerified?{iconType:R.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:R.isArtist||R.isVerified?R.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var B,R=(B=this.commentEntity)==null?void 0:B.author;return R!=null&&R.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:R.sponsorBadgeUrl}]},tooltip:R.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var B;return _.D((B=this.commentSurfaceEntity)==null?void 0:B.pdgCommentChip,_.LGS)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var B;return this.voiceReplyContainerViewModel&&((B=this.voiceReplyContainerViewModel)==null?void 0:B.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var B;return _.D((B=this.commentSurfaceEntity)==null?void 0:B.voiceReplyContainerViewModel,GwJ)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var B;return this.voiceReplyContainerViewModel&&(B=this.voiceReplyContainerViewModel)!=null&&B.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=(B=this.commentSurfaceEntity)==null?void 0:B.commentBackgroundColor)!=null?R:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.k("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var B,R;return(((B=this.commentEntity)==null?void 0:(R=B.properties)==null?void 0:R.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var B,R;if(_.k("enable_profile_cards_on_comments")&&((B=this.commentEntity)==null?0:(R=B.author)==null?0:R.profileCardEndpoint)&&this.viewModel.allowProfileCard){var V,e;return _.D((V=this.commentEntity)==null?void 0:(e=V.author)==null?void 0:e.profileCardEndpoint,_.aT)}var X,Y;return _.D((X=this.commentEntity)==null?void 0:(Y=X.avatar)==null?void 0:Y.endpoint,_.aT)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var B,R;if(_.k("enable_profile_cards_on_comments")&&((B=this.commentEntity)==null?0:(R=B.author)==null?0:R.channelPageEndpoint)){var V,e;return _.D((V=this.commentEntity)==null?void 0:(e=V.author)==null?void 0:e.channelPageEndpoint,_.aT)}var X,Y;return _.D((X=this.commentEntity)==null?void 0:(Y=X.avatar)==null?void 0:Y.endpoint,_.aT)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e,X=(B=this.commentEntity)==null?void 0:(R=B.avatar)==null?void 0:(V=R.image)==null?void 0:(e=V.sources)==null?void 0:e[0];return X?{thumbnails:[{url:X.url,width:X.width,height:X.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.commentEntity)==null?0:(R=B.author)==null?0:R.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.commentEntity)==null?void 0:(R=B.author)==null?void 0:R.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.commentEntity)==null?void 0:(R=B.properties)==null?void 0:R.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var B;return _.D((B=this.commentSurfaceEntity)==null?void 0:B.publishedTimeCommand,_.aT)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var B,R;if(((B=this.commentEntity)==null?0:B.translatedContent)&&((R=this.translateButtonState)==null?void 0:R.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var V;if((V=this.voiceReplyContainerViewModel)==null?0:V.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var e,X;return((e=this.commentEntity)==null?void 0:(X=e.properties)==null?void 0:X.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.commentSharedEntity)==null?void 0:(R=B.strings)==null?void 0:R.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.commentSharedEntity)==null?void 0:(R=B.strings)==null?void 0:R.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.commentEntity)==null||!B.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var B,R,V=(R=_.D((B=this.viewModel)==null?void 0:B.translateButton,NE4))!=null?R:{},e,X,Y,t,b,J,G,y,S,M,f;return Object.assign({},V,{untoggledStateData:Object.assign({},V.untoggledStateData,{buttonText:(e=this.commentEntity)==null?void 0:(X=e.translateData)==null?void 0:X.text}),togglingStateData:Object.assign({},V.togglingStateData,{buttonText:(Y=this.commentSharedEntity)==null?
void 0:(t=Y.strings)==null?void 0:t.translatingText}),toggledStateData:Object.assign({},V.toggledStateData,{buttonText:(b=this.commentSharedEntity)==null?void 0:(J=b.strings)==null?void 0:J.seeOriginalText}),transitionCommand:((G=this.commentEntity)==null?0:G.translatedContent)?void 0:_.D((y=this.commentEntity)==null?void 0:(S=y.translateData)==null?void 0:S.translateComment,_.aT),triStateKey:(M=this.commentEntity)==null?void 0:(f=M.properties)==null?void 0:f.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((R=_.D(_.D((B=this.toolbarSurface)==null?void 0:B.menuCommand,_.aT),ePT))==null?void 0:(V=R.menu)==null?void 0:V.menuRenderer)||null}}});
G5.prototype.onYtCommentboxResize=G5.prototype.onYtCommentboxResize;G5.prototype.onYtCommentboxDismiss=G5.prototype.onYtCommentboxDismiss;G5.prototype.onYtNavigate=G5.prototype.onYtNavigate;G5.prototype.resetExpander=G5.prototype.resetExpander;G5.prototype.updateBackgroundColor=G5.prototype.updateBackgroundColor;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],G5.prototype,"ytdReduxBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],G5.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Yp("#author-thumbnail > button"),_.Z("design:type",HTMLElement)],G5.prototype,"authorThumbnailAnchor",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("viewModel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],G5.prototype,"linked",null);
_.r([_.K("viewModel","linked"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"linkedCommentBadge",null);_.r([_.E({reflectToAttribute:!0}),_.K("viewModel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],G5.prototype,"pinned",null);_.r([_.K("viewModel","pinned"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"pinnedCommentBadge",null);
_.r([_.K("commentEntity","commentSharedEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"authorCommentBadge",null);_.r([_.E({reflectToAttribute:!0}),_.K("authorCommentBadge"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"hasAuthorBadge",null);_.r([_.K("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"sponsorCommentBadge",null);
_.r([_.E({reflectToAttribute:!0}),_.K("sponsorCommentBadge"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"hasSponsorBadge",null);_.r([_.K("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"pdgCommentChipRenderer",null);_.r([_.E({reflectToAttribute:!0}),_.K("voiceReplyContainerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"hasVoiceReply",null);
_.r([_.K("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"voiceReplyContainerViewModel",null);_.r([_.K("voiceReplyContainerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"voiceReplyUnavailableText",null);_.r([_.E(),_.Z("design:type",Object)],G5.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"viewModel",null);
_.r([_.E({selector:function(B,R){return _.p7(B.entities,"commentSharedEntityPayload",R)},
selectorArgs:["viewModel.sharedKey"]}),_.Z("design:type",Object)],G5.prototype,"commentSharedEntity",void 0);_.r([_.E({selector:function(B,R){return _.p7(B.entities,"commentEntityPayload",R)},
selectorArgs:["viewModel.commentKey"]}),_.Z("design:type",Object)],G5.prototype,"commentEntity",void 0);_.r([_.E({selector:function(B,R){return _.p7(B.entities,"commentSurfaceEntityPayload",R)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Z("design:type",Object)],G5.prototype,"commentSurfaceEntity",void 0);_.r([_.E({selector:q9K,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Z("design:type",Object)],G5.prototype,"toolbarSurface",void 0);_.r([_.E({selector:cWu,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Z("design:type",Object)],G5.prototype,"translateButtonState",void 0);
_.r([_.K("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"backgroundColor",null);_.r([_.E({reflectToAttribute:!0}),_.K("viewModel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],G5.prototype,"optimalReadingWidthComments",null);_.r([_.Yp("ytd-expander"),_.Z("design:type",Object)],G5.prototype,"expander",void 0);
_.r([_.XX("backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],G5.prototype,"updateBackgroundColor",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],G5.prototype,"useSmallAvatars",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],G5.prototype,"webWatchCompactComments",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"isReply",null);
_.r([_.K("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"authorThumbnailEndpoint",null);_.r([_.K("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"authorNameEndpoint",null);_.r([_.K("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"authorThumbnail",null);_.r([_.K("commentEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],G5.prototype,"authorTextClass",null);
_.r([_.K("commentEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],G5.prototype,"authorChannelName",null);_.r([_.K("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"publishedTime",null);_.r([_.K("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"publishedTimeCommand",null);
_.r([_.K("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"contentText",null);_.r([_.XX("contentText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],G5.prototype,"resetExpander",null);_.r([_.K("commentEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],G5.prototype,"shouldShowReadMoreInitially",null);
_.r([_.K("commentSharedEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],G5.prototype,"expandText",null);_.r([_.K("commentSharedEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],G5.prototype,"collapseText",null);_.r([_.K("commentEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],G5.prototype,"shouldShowTranslateButton",null);
_.r([_.K("commentEntity","commentSharedEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"translateButton",null);_.r([_.K("toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G5.prototype,"overflowMenuRenderer",null);_.r([_.E(),_.Z("design:type",Object)],G5.prototype,"editDialog",void 0);_.r([_.Yp("ytd-comment-dialog-renderer"),_.Z("design:type",Object)],G5.prototype,"editCommentDialogContainer",void 0);
_.r([_.Yp("ytd-comment-reply-dialog-renderer"),_.Z("design:type",Object)],G5.prototype,"editReplyDialogContainer",void 0);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],G5.prototype,"onYtNavigate",null);_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],G5.prototype,"onYtCommentboxDismiss",null);
_.r([_.R_("yt-commentbox-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],G5.prototype,"onYtCommentboxResize",null);G5=_.r([_.A({disableElementRegistration:!0,is:"ytd-comment-view-model"})],G5);
_.F(G5,"ytd-comment-view-model",function(){if(dh2!==void 0)return dh2;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return dh2=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var yC=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("web_modern_buttons");B.isWatchGrid=_.k("kevlar_watch_grid");B.buttonOverrides={style:"call-to-action"};B.JSC$13681_spinnerEl=null;return B};
_.l(yC,_.c);_.p=yC.prototype;_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.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 B=this.expanderContents;B&&(B.hidden=!0);this.isLoading=!1};
_.p.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.p.isLoadingChanged=function(){this.isLoading&&!this.JSC$13681_spinnerEl&&(this.JSC$13681_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.w(this.expanderContents).appendChild(this.JSC$13681_spinnerEl));this.JSC$13681_spinnerEl&&(this.JSC$13681_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var B;(B=this.contents)==null||B.classList.remove("reloading")}};
_.p.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var B=_.D(this.data.viewReplies,_.Ii);B&&this.ytRendererBehavior.logExplicitClick(B)};
_.p.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var B=_.D(this.data.hideReplies,_.Ii);B&&this.ytRendererBehavior.logExplicitClick(B)};
_.p.isShowMoreChanged=function(){var B=_.w(this.hostElement).querySelector("#expander-contents");B&&(B.hidden=this.isShowRepliesVisible)};
_.p.computeAlign=function(){if(this.modern){var B;return!((B=this.data)==null?0:B.viewRepliesCreatorThumbnail)}};
_.mh.Object.defineProperties(yC.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var B,R=(B=this.data)==null?void 0:B.contents;return!!R&&R.length>0&&!!R[R.length-1].continuationItemRenderer}}});
yC.prototype.isShowMoreChanged=yC.prototype.isShowMoreChanged;yC.prototype.isLoadingChanged=yC.prototype.isLoadingChanged;yC.prototype.triggerFirstContinuation=yC.prototype.triggerFirstContinuation;yC.prototype.dataChanged=yC.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.L_),_.Z("design:type",Object)],yC.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yC.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],yC.prototype,"modern",void 0);_.r([_.E(),_.Z("design:type",Boolean)],yC.prototype,"isLoading",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],yC.prototype,"isShowRepliesVisible",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],yC.prototype,"useNewFormatting",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],yC.prototype,"isWatchGrid",void 0);_.r([_.E(),_.Z("design:type",Object)],yC.prototype,"buttonOverrides",void 0);_.r([_.Yp("#expander-contents"),_.Z("design:type",HTMLElement)],yC.prototype,"expanderContents",void 0);_.r([_.Yp("ytd-continuation-item-renderer"),_.Z("design:type",Object)],yC.prototype,"continuationItemRenderer",void 0);_.r([_.Yp("#contents"),_.Z("design:type",HTMLElement)],yC.prototype,"contents",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yC.prototype,"dataChanged",null);_.r([_.K("data.contents"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yC.prototype,"hasContinuation",null);_.r([_.R_("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yC.prototype,"triggerFirstContinuation",null);
_.r([_.XX("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yC.prototype,"isLoadingChanged",null);_.r([_.XX("isShowRepliesVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yC.prototype,"isShowMoreChanged",null);yC=_.r([_.A({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],yC);
_.F(yC,"ytd-comment-replies-renderer",function(){if(k74!==void 0)return k74;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return k74=B},{mode:1});var L$5;var SW=function(){var B=_.c.apply(this,arguments)||this;B.isOpen=!1;B.commentDialog=null;B.useSmallAvatars=_.k("small_avatars_for_comments");B.useSmallAvatarsEngagementPanelOnly=_.k("small_avatars_for_comments_ep");B.placeholderFocusListener=null;B.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return B};
_.l(SW,_.c);_.p=SW.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 B=this,R=_.w(this.hostElement).querySelector("#placeholder-area"),V=_.w(this.hostElement).querySelector("#simplebox-placeholder"),e=function(X){X.stopPropagation();X instanceof KeyboardEvent&&X.type==="keypress"&&X.keyCode!==13&&X.keyCode!==32||B.openDialog()};
this.placeholderFocusListener=e;V.addEventListener("focus",this.placeholderFocusListener);R.addEventListener("tap",e);R.addEventListener("keypress",e)};
_.p.maybeRemoveFocusEventListener=function(){var B;(B=this.data)!=null&&B.prepareAccountEndpoint&&!_.k("web_comments_simplebox_modal_focus_on_tap_ks")&&(B=_.w(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(B.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.p.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.p.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.k("web_comment_simplebox_resolve_polymer_command_ks")?_.eR.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Xc(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.w(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.p.onYtCommentboxDismiss=function(B){B.stopPropagation();this.isOpen=!1};
_.p.onCreateCommentAction=function(B){this.get("createCommentAction.contents",B)&&(this.isOpen=!1)};
_.p.computeCommentDialog=function(B){return{placeholderText:B.placeholderText,authorThumbnail:B.authorThumbnail,submitButton:B.submitButton,imageButton:B.imageButton,cancelButton:B.cancelButton,emojiButton:B.emojiButton,emojis:B.emojis,emojiPicker:B.emojiPicker,aadcGuidelinesStateEntityKey:B.aadcGuidelinesStateEntityKey,openAadcDialog:B.openAadcDialog,unicodeEmojisUrl:B.unicodeEmojisUrl}};
_.p.onHideIdentityChip=function(B){_.D(B,YO_)&&this.set("data.placeholderText",_.D(B,YO_).placeholderText)};
SW.prototype.onYtCommentboxDismiss=SW.prototype.onYtCommentboxDismiss;SW.prototype.dataChanged=SW.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],SW.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],SW.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],SW.prototype,"isOpen",void 0);_.r([_.E(),_.Z("design:type",Object)],SW.prototype,"commentDialog",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],SW.prototype,"engagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SW.prototype,"useSmallAvatars",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SW.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],SW.prototype,"enableCreationBox",void 0);_.r([_.E(),_.Z("design:type",Boolean)],SW.prototype,"showCreateDialog",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SW.prototype,"dataChanged",null);
_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],SW.prototype,"onYtCommentboxDismiss",null);SW=_.r([_.A({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],SW);
_.F(SW,"ytd-comment-simplebox-renderer",function(){if(L$5!==void 0)return L$5;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return L$5=B},{mode:1});var vov;_.aO("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Hg=function(){var B=_.c.apply(this,arguments)||this;B.addHoverEffect=_.k("swatcheroo_comments_hover_effect");return B};
_.l(Hg,_.c);Hg.prototype.onTap=function(B){if(this.addHoverEffect&&!this.engagementPanel&&!_.g1(_.Az(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var R;((R=window.getSelection())==null?0:R.toString().length)||_.Xc({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
Hg.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.mh.Object.defineProperties(Hg.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)!=null&&B.commentViewModel)return _.D(this.data.commentViewModel,Um_)}}});
Hg.prototype.onTap=Hg.prototype.onTap;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Hg.prototype,"addHoverEffect",void 0);_.r([_.E(),_.Z("design:type",Object)],Hg.prototype,"data",void 0);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Hg.prototype,"commentViewModel",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Hg.prototype,"engagementPanel",void 0);_.r([_.R_("tap"),_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Hg.prototype,"onTap",null);Hg=_.r([_.A({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Hg);
_.F(Hg,"ytd-comment-thread-renderer",function(){if(vov!==void 0)return vov;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return vov=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var K$v;var MZ=function(){var B=_.c.apply(this,arguments)||this;B.modernTypography=_.k("web_modern_typography");B.compactHeader=_.k("web_watch_compact_comments_header");B.hidePanelButton=!1;B.isPostSchedulingEnabled=_.k("enable_post_scheduling");B.hasFinishedStamping=!1;B.JSC$13699_handleOpenPostCommentDialogActionAfterStamp=!1;B.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return B};
_.l(MZ,_.c);_.p=MZ.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$13699_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.p.onYtServiceRequestSent=function(B,R){if(!_.k("kevlar_command_handler")&&R.actions)for(B=0;B<R.actions.length;B++){var V=R.actions[B];_.D(V,I4b)&&_.w(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.D(V,I4b))}};
_.p.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var B;if(this.getPrefilledBackstagePostDialog((B=this.data)==null?void 0:B.actions)){_.w(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var R=_.w(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;R&&_.gB(this,function(){R.focus();R.openDialog&&R.openDialog()})}}else this.hasActionsChange=!0};
_.p.computeIsBackstage=function(B){return B};
_.p.onYtCommentboxDismiss=function(){_.w(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.p.removePrefilledDialog=function(B){if(B==null?0:B.actions){for(var R=B.actions.length-1;R>=0;R--){var V=void 0;((V=_.D(B.actions[R],o6o))==null?0:V.dialog)&&delete B.actions[R]}this.set("data",void 0);this.set("data",B)}};
_.p.getPrefilledBackstagePostDialog=function(B){if(B)for(var R=0;R<B.length;R++){var V=B[R],e=void 0;if((e=_.D(V,o6o))==null?0:e.dialog)return _.D(V,o6o).dialog}return null};
_.p.computeBackstagePostDialog=function(B){return B&&(this.getPrefilledBackstagePostDialog(B.actions)||B.createRenderer)};
_.p.dataChanged=function(){if(this.data){var B=this.data.customEmojis,R=this.data.unicodeEmojisUrl;_.Tx.clear();R&&_.ay2(_.Tx,R);B&&_.Tx.load(B)}};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){var B=_.w(this.hostElement).querySelector("ytd-comment-simplebox-renderer");B?B.openDialog():this.JSC$13699_handleOpenPostCommentDialogActionAfterStamp=!0};
_.mh.Object.defineProperties(MZ.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.k("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e,X,Y,t;return!this.hidePanelButton&&_.k("kevlar_watch_comments_panel_button")&&((t=_.D((B=this.data)==null?void 0:(R=B.sortMenu)==null?void 0:(V=R.sortFilterSubMenuRenderer)==null?void 0:(e=V.subMenuItems)==null?void 0:(X=e[0])==null?void 0:(Y=X.serviceEndpoint)==null?void 0:Y.commandMetadata,_.$a))==null?void 0:t.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Wz("MINIPLAYER_EXPAND_LABEL"),text:_.s$(_.Wz("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
MZ.prototype.dataChanged=MZ.prototype.dataChanged;MZ.prototype.onYtCommentboxDismiss=MZ.prototype.onYtCommentboxDismiss;MZ.prototype.observePrefilledBackstagePostDialog=MZ.prototype.observePrefilledBackstagePostDialog;MZ.prototype.onYtServiceRequestSent=MZ.prototype.onYtServiceRequestSent;MZ.prototype.onStampFinished=MZ.prototype.onStampFinished;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],MZ.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],MZ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],MZ.prototype,"modernTypography",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],MZ.prototype,"compactHeader",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],MZ.prototype,"engagementPanel",void 0);_.r([_.E(),_.Z("design:type",Object)],MZ.prototype,"hidePanelButton",void 0);_.r([_.E({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],MZ.prototype,"isBackstage",void 0);_.r([_.E({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Z("design:type",Object)],MZ.prototype,"backstagePostDialog",void 0);
_.r([_.E(),_.Z("design:type",Object)],MZ.prototype,"isPostSchedulingEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data","showCommentsPanelButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],MZ.prototype,"useSpaceBetween",null);_.r([_.E({reflectToAttribute:!0}),_.K("data","hidePanelButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],MZ.prototype,"showCommentsPanelButton",null);
_.r([_.K("data","showCommentsPanelButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],MZ.prototype,"commentsPanelButtonData",null);_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MZ.prototype,"onStampFinished",null);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],MZ.prototype,"onYtServiceRequestSent",null);
_.r([_.XX("data.actions"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MZ.prototype,"observePrefilledBackstagePostDialog",null);_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],MZ.prototype,"onYtCommentboxDismiss",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MZ.prototype,"dataChanged",null);
MZ=_.r([_.A({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],MZ);
_.F(MZ,"ytd-comments-header-renderer",function(){if(K$v!==void 0)return K$v;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return K$v=B},{mode:1});var Ich;var k4=function(){return _.c.apply(this,arguments)||this};
_.l(k4,_.c);_.r([_.E(),_.Z("design:type",Object)],k4.prototype,"data",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);k4=_.r([_.A({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],k4);
_.F(k4,"ytd-destination-button-renderer",function(){if(Ich!==void 0)return Ich;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Ich=B},{mode:1});var EoT;var Ds=function(){var B=_.c.apply(this,arguments)||this;B.isRichGrid=!1;B.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};B.modernTypography=_.k("web_modern_typography");return B};
_.l(Ds,_.c);_.p=Ds.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 B;if((B=this.data)==null||!B.isExpanded){B=this.hostElement.clientWidth;var R;if(B&&(R=this.data)!=null&&R.destinationButtons){R=Math.floor((B+4)/214);B=this.data.destinationButtons.length;var V=Math.ceil(B/R);this.fullyVisibleRows=B%R===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}}}};
_.p.updateRichGridDestinationButtonsVisibility=function(){var B,R;if(this.isRichGrid&&((B=this.data)==null||!B.isExpanded)&&(R=this.data)!=null&&R.destinationButtons){B=this.richGridItemsPerRow+1;R=this.data.destinationButtons.length;var V=Math.ceil(R/B);this.fullyVisibleRows=R%B===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}};
_.p.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Ds.prototype.updateRichGridDestinationButtonsVisibility=Ds.prototype.updateRichGridDestinationButtonsVisibility;_.r([_.E(),_.Z("design:type",Object)],Ds.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Number)],Ds.prototype,"fullyVisibleRows",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ds.prototype,"isShowMoreVisible",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ds.prototype,"isRichGrid",void 0);
_.r([_.E({selector:_.ar,value:0}),_.Z("design:type",Number)],Ds.prototype,"richGridItemsPerRow",void 0);_.r([_.E(),_.Z("design:type",Object)],Ds.prototype,"gridStateActionMap",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ds.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Ds.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ds.prototype,"modernTypography",void 0);_.r([_.XX("data","richGridItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ds.prototype,"updateRichGridDestinationButtonsVisibility",null);
Ds=_.r([_.A({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Ds);
_.F(Ds,"ytd-destination-shelf-renderer",function(){if(EoT!==void 0)return EoT;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return EoT=B},{mode:1});var QyJ;var fb=function(){return _.c.apply(this,arguments)||this};
_.l(fb,_.c);fb.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fb.prototype,"data",void 0);fb=_.r([_.A({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],fb);
_.F(fb,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(QyJ!==void 0)return QyJ;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return QyJ=B},{mode:1});var qPT;var ld=function(){var B=_.c.apply(this,arguments)||this;B.disableAnimation=!1;B.isSlimlineSurvey=!1;B.isSlimlineSurveyFollowUp=!1;B.isShortsStyle=!1;return B};
_.l(ld,_.c);ld.prototype.onTap=function(B){B.preventDefault();this.data&&_.OI(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.mh.Object.defineProperties(ld.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 B,R,V,e,X;return((B=this.data)==null?0:B.checked)?(R=this.data)==null?void 0:(V=R.onStateIcon)==null?void 0:V.iconType:(e=this.data)==null?void 0:(X=e.defaultStateIcon)==null?void 0:X.iconType}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ld.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ld.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],ld.prototype,"disableAnimation",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ld.prototype,"isSlimlineSurvey",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ld.prototype,"isSlimlineSurveyFollowUp",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ld.prototype,"isShortsStyle",void 0);_.r([_.K("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ld.prototype,"isAnimatedIcon",null);
_.r([_.K("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],ld.prototype,"iconSize",null);_.r([_.K("isShortsStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ld.prototype,"isDarkTheme",null);_.r([_.K("data.checked"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ld.prototype,"icon",null);ld=_.r([_.A({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],ld);
_.F(ld,"ytd-rating-survey-option-renderer",function(){if(qPT!==void 0)return qPT;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return qPT=B},{mode:2});var ct2;var z5=function(){var B=_.c.apply(this,arguments)||this;B.firstResponseText=null;B.lastResponseText=null;B.selectedNonStarOption=null;B.hideOptions=!1;B.hideUndoButton=!0;B.disableAnimation=!1;B.showResponseRangeText=!1;B.selectedRatingIndex=-1;B.isSlimlineSurvey=!1;B.isSlimlineSurveyFollowUp=!1;B.isShortsStyle=!1;B.slimlineSurveyRatingSelectedIndex=-1;return B};
_.l(z5,_.c);_.p=z5.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(B,R){var V=this;B=R.onStateIcon&&R.defaultStateIcon&&R.onStateIcon.iconType===R.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(t,b){t.responseText===R.responseText?V.isSlimlineSurvey?(V.selectedRatingIndex=b,V.ytdReduxBehavior.dispatch(QfS(b))):(V.setSurveyOptionValue(b,!0,"checked"),V.setSurveyOptionValue(b,!0,"selected")):(V.setSurveyOptionValue(b,!1,"checked"),V.setSurveyOptionValue(b,
!1,"selected"))});
else if(B)this.selectedNonStarOption=R,this.hideOptions=!0;else{var e=this.ytRendererBehavior.getSimpleString(R.responseText),X=!0;this.getOptionRenderers().forEach(function(t,b){V.setSurveyOptionValue(b,X,"checked");V.setSurveyOptionValue(b,!1,"selected");V.ytRendererBehavior.getSimpleString(t.responseText)===e&&(X=!1,V.setSurveyOptionValue(b,!0,"selected"))})}B=R.responseEndpoint;
var Y;R.followUpCommand&&(Y=_.D(R.followUpCommand,du_));this.isSlimlineSurvey?(this.resetComponent(),_.oF(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.oF(this.hostElement,"ytd-inline-survey-rating-select-action",[B,Y])};
_.p.showSelectedOption=function(){var B=this;_.dV.addJob(function(){var R=B.getOptionRenderers()[B.slimlineSurveyRatingSelectedIndex];B.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),R)},8,100)};
_.p.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(B){var R;return(R=_.D(B,TKo))!=null?R:{}}):[]};
_.p.onUndoClick=function(){this.resetComponent();_.oF(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.p.setSurveyOptionValue=function(B,R,V){this.notifyPath("data.ratings."+B+".ratingSurveyOptionRenderer."+V);this.set("data.ratings."+B+".ratingSurveyOptionRenderer."+V,R)};
_.p.resetComponent=function(){var B=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var R=this.getOptionRenderers(),V,e;this.firstResponseText=(e=(V=R[0])==null?void 0:V.responseText)!=null?e:null;var X,Y;this.lastResponseText=(Y=(X=R[R.length-1])==null?void 0:X.responseText)!=null?Y:null;R.forEach(function(t,b){B.setSurveyOptionValue(b,!1,"checked");B.setSurveyOptionValue(b,!1,"selected")})};
_.mh.Object.defineProperties(z5.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
z5.prototype.onOptionChange=z5.prototype.onOptionChange;z5.prototype.dataChanged=z5.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],z5.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],z5.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],z5.prototype,"firstResponseText",void 0);_.r([_.E(),_.Z("design:type",Object)],z5.prototype,"lastResponseText",void 0);_.r([_.E(),_.Z("design:type",Object)],z5.prototype,"selectedNonStarOption",void 0);_.r([_.E(),_.Z("design:type",Object)],z5.prototype,"hideOptions",void 0);_.r([_.E(),_.Z("design:type",Object)],z5.prototype,"hideUndoButton",void 0);_.r([_.E(),_.Z("design:type",Object)],z5.prototype,"disableAnimation",void 0);
_.r([_.E(),_.Z("design:type",Object)],z5.prototype,"showResponseRangeText",void 0);_.r([_.E(),_.Z("design:type",Object)],z5.prototype,"selectedRatingIndex",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],z5.prototype,"isSlimlineSurvey",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],z5.prototype,"isSlimlineSurveyFollowUp",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],z5.prototype,"isShortsStyle",void 0);_.r([_.E({selector:function(B){return B.ui.slimlineSurveyRatingSelectedIndex}}),
_.Z("design:type",Object)],z5.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.r([_.K("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],z5.prototype,"isSingleSelect",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],z5.prototype,"dataChanged",null);
_.r([_.R_("ytd-rating-survey-option-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],z5.prototype,"onOptionChange",null);z5=_.r([_.A({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],z5);
_.F(z5,"ytd-rating-survey-renderer",function(){if(ct2!==void 0)return ct2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ct2=B},{mode:1});var Atl;var i9_;var sy4;var GZo=(a7.FIRSTDAYOFWEEK+1)%7,F$_=function(B,R,V,e){var X="";if(e.selection&&JVS(e.selection))fw(B,e.selection)&&(X+=" selected");else if(e.selection&&jX5(e.selection)){var Y=e.selection.selectionState||"START_DATE";fw(B,e.selection.start)&&(X+=" period-start ",Y==="START_DATE"&&(X+="selected"));fw(B,e.selection.end)&&(X+=" period-end ",Y==="END_DATE"&&(X+="selected"));lH(B,e.selection.start)||lH(e.selection.end,B)||(X+=" highlighted")}if(lH(R,e.start)||lH(e.end,R))X+=" disabled";e.circleToday&&
fw(R,V)&&(X+=" today");return X};var ae=function(){return _.c.apply(this,arguments)||this};
_.l(ae,_.c);_.p=ae.prototype;_.p.attached=function(){var B=this;_.gB(this,function(){B.JSC$13733_calendarMain.scrollHeight>0&&(B.calendarConfig.selection?B.scrollToDate(UtN(B.calendarConfig.selection)):B.scrollToDate(B.calendarConfig.end))})};
_.p.updateSelection=function(B){B=yVZ(Object.assign({},this.calendarConfig,{selection:B}),F$_);this.splice.apply(this,["renderData.months",0,B.length].concat(_.MI(B)))};
_.p.scrollToDate=function(B){this.renderData&&(B=SGK(B,this.renderData),B!==void 0&&this.JSC$13733_calendarMain.scrollToIndex(B))};
_.p.scrollToNextMonth=function(){this.JSC$13733_calendarMain.scrollToIndex(this.JSC$13733_calendarMain.firstVisibleIndex+1)};
_.p.scrollToPrevMonth=function(){this.JSC$13733_calendarMain.firstVisibleIndex===0&&this.JSC$13733_calendarMain.scrollTo(0,0);this.JSC$13733_calendarMain.scrollToIndex(this.JSC$13733_calendarMain.firstVisibleIndex-1)};
_.p.handleDayClick=function(B){_.oF(this.hostElement,"ytd-calendar-date-clicked",[B.model.day.date])};
_.p.handleDayMouseDown=function(B){B.preventDefault();_.oF(this.hostElement,"ytd-calendar-date-mousedown",[B.model.day.date])};
_.p.handleDayMouseUp=function(B){_.oF(this.hostElement,"ytd-calendar-date-mouseup",[B.model.day.date])};
_.p.handleDayMouseEnter=function(B){B.preventDefault();_.oF(this.hostElement,"ytd-calendar-date-mouseenter",[B.model.day.date])};
_.p.handleDayMouseLeave=function(B){_.oF(this.hostElement,"ytd-calendar-date-mouseleave",[B.model.day.date])};
_.mh.Object.defineProperties(ae.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var B=this.calendarConfig,R=F$_;R=R===void 0?F$_:R;for(var V=[],e=0;e<7;e++)V.push(a7.NARROWWEEKDAYS[(e+GZo)%7]);return{months:yVZ(B,R),daysOfWeekLabel:V}}}});
_.r([_.E(),_.Z("design:type",Object)],ae.prototype,"calendarConfig",void 0);_.r([_.Yp("#calendar-main"),_.Z("design:type",Object)],ae.prototype,"JSC$13733_calendarMain",void 0);_.r([_.K("calendarConfig"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ae.prototype,"renderData",null);ae=_.r([_.A({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ae);
_.F(ae,"ytd-scrollable-calendar",function(){if(sy4!==void 0)return sy4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return sy4=B},{mode:2});var rtJ;var goa;var da=function(){var B=_.c.apply(this,arguments)||this;B.hideCharCounter=!1;B.hideLabel=!1;B.noLabelFloat=!1;B.autoValidate=!0;B.invalid=!1;B.disabled=!1;B.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return B};
_.l(da,_.c);_.p=da.prototype;_.p.reset=function(B){this.value=B&&this.data?this.data.value=B:"";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 B,R;if(((B=this.data)==null?0:B.value)||((R=this.data)==null?void 0:R.value)==="")this.value=this.data.value;else{var V;((V=this.data)==null?void 0:V.value)!==void 0||this.value||(this.value="")}};
_.p.computeLabel=function(B,R){return R?"":_.FF(B)};
_.p.computeAriaLabel=function(B,R){return R?_.FF(B):""};
_.p.computeErrorMessage=function(B,R,V,e){!B&&R?B=V||this.strings.REQUIRED_LABEL:(B=_.FF(e),B=_.bo(B,"&")?"document"in _.R5?Edh(B):Q54(B):B);return B};
_.p.computeType=function(B){return B==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.p.onTextValueChanged=function(B){this.value=B.detail.value;var R;(R=this.onValueChanged)==null||R.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.p.handleUpdateTextInputFormFieldRendererCommand=function(B){(B=_.D(B,C9_))&&this.data&&this.data.id===B.id&&(B.invalid!==void 0&&(this.invalid=B.invalid),B.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",B.invalidValueErrorMessage))};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("value-changed",this.value))};
_.p.updateInvalidFromBinding=function(B){this.invalid=B.detail.value};
_.mh.Object.defineProperties(da.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var B;return!((B=this.data)==null||!B.isMultiline)}}});
da.prototype.valueChangedForBinding=da.prototype.valueChangedForBinding;da.prototype.valueChanged=da.prototype.valueChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],da.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],da.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],da.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],da.prototype,"value",void 0);_.r([_.E(),_.Z("design:type",String)],da.prototype,"pattern",void 0);_.r([_.E(),_.Z("design:type",String)],da.prototype,"errorMessage",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],da.prototype,"componentStyle",void 0);_.r([_.E(),_.Z("design:type",Object)],da.prototype,"hideCharCounter",void 0);
_.r([_.E(),_.Z("design:type",Object)],da.prototype,"hideLabel",void 0);_.r([_.E(),_.Z("design:type",Object)],da.prototype,"noLabelFloat",void 0);_.r([_.E(),_.Z("design:type",Function)],da.prototype,"onValueChanged",void 0);_.r([_.E(),_.Z("design:type",Boolean)],da.prototype,"isMultilineOverride",void 0);_.r([_.E(),_.Z("design:type",Object)],da.prototype,"autoValidate",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],da.prototype,"invalid",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],da.prototype,"disabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],da.prototype,"enableOverlayTheme",void 0);_.r([_.E({value:{REQUIRED_LABEL:_.Wz("REQUIRED_LABEL",void 0,"Required")}}),_.Z("design:type",Object)],da.prototype,"strings",void 0);_.r([_.Yp("#input"),_.Z("design:type",Object)],da.prototype,"input",void 0);
_.r([_.K("data","isMultilineOverride"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],da.prototype,"isMultiline",null);_.r([_.bp("data.value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],da.prototype,"valueChanged",null);_.r([_.XX("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],da.prototype,"valueChangedForBinding",null);da=_.r([_.fJ({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],da);
_.F(da,"yt-text-input-form-field-renderer",function(){if(goa===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;rtJ===void 0&&(rtJ=document.createElement("template"));var e=rtJ;V.call(R,e.content.cloneNode(!0),B.content.firstChild);goa=B}B=goa;return B},{mode:2});var wa=function(){var B=_.c.apply(this,arguments)||this;B.data=void 0;B.selectionState="START_DATE";B.isStartDateInvalid=!1;B.isEndDateInvalid=!1;B.autoapply=!1;B.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 B};
_.l(wa,_.c);_.p=wa.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:zP(this.data.selection.start),end:zP(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:_.Ym(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 B=this.calendar.calendarConfig,R=B.end;B=Mlp({start:B.start,end:this.endDate||R},this.startDateInput.value||"");this.isStartDateInvalid=!B.isValid;B.isValid&&(B=B.value,this.selection=this.endDate?{start:B,end:this.endDate}:B,this.calendar.scrollToDate(B));this.updateInvalidState()}};
_.p.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var B=this.calendar.calendarConfig,R=B.start;B=Mlp({start:this.startDate||R,end:B.end},this.endDateInput.value||"");this.isEndDateInvalid=!B.isValid;B.isValid&&(B=B.value,this.selection={start:this.startDate,end:B},this.calendar.scrollToDate(B));this.updateInvalidState()}};
_.p.handleCalendarDateClicked=function(B){var R=this.selection&&UtN(this.selection),V=this.selection&&N95(this.selection);R&&!lH(B,R)&&this.selectionState==="END_DATE"?(this.selection={start:R,end:B},this.selectionState="START_DATE"):(V&&!lH(V,B)?this.selection={start:B,end:V}:this.selection=B,this.selectionState="END_DATE")};
_.p.handleCalendarDateMouseDown=function(B){this.selection&&!JVS(this.selection)&&(this.dragPivot=fw(B,this.selection.start)?this.selection.end:fw(B,this.selection.end)?this.selection.start:B)};
_.p.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.p.handleCalendarDateMouseEnter=function(B){this.dragPivot&&(this.selection={start:function(R,V){return lH(R,V)?R:V}(this.dragPivot,B),
end:function(R,V){return lH(R,V)?V:R}(this.dragPivot,B)},this.dragPivot||(this.selectionState="START_DATE"))};
_.p.handleCalendarDateMouseLeave=function(){};
_.p.handleCalendarSubmitDateRange=function(){this.selection&&!JVS(this.selection)&&_.oF(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.p.updateInvalidState=function(){var B=function(R,V){V?R.setAttribute("invalid",""):R.removeAttribute("invalid")};
B(this.startDateInput,this.isStartDateInvalid);B(this.endDateInput,this.isEndDateInvalid)};
_.p.updateDateStrings=function(){this.selection&&(JVS(this.selection)?b1_(this.selection):(b1_(this.selection.start),b1_(this.selection.end)))};
_.p.updateCalendarSelection=function(B){this.calendar.updateSelection(Object.assign({},B,{selectionState:this.selectionState}))};
_.p.updateIsStartDateInvalidFromBinding=function(B){this.isStartDateInvalid=B.detail.value};
_.p.updateIsEndDateInvalidFromBinding=function(B){this.isEndDateInvalid=B.detail.value};
_.p.updateStartDateStringFromBinding=function(){};
_.p.updateEndDateStringFromBinding=function(){};
_.mh.Object.defineProperties(wa.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:zP(this.data.dateRangeStart),end:zP(this.data.dateRangeEnd),selection:{start:zP(this.data.selection.start),end:zP(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&UtN(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&N95(this.selection)}}});
wa.prototype.resetTextboxes=wa.prototype.resetTextboxes;wa.prototype.observeSelection=wa.prototype.observeSelection;wa.prototype.dataChanged=wa.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],wa.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Yp("#calendar"),_.Z("design:type",Object)],wa.prototype,"calendar",void 0);
_.r([_.Yp("#start-date"),_.Z("design:type",Object)],wa.prototype,"startDateInput",void 0);_.r([_.Yp("#end-date"),_.Z("design:type",Object)],wa.prototype,"endDateInput",void 0);_.r([_.E(),_.Z("design:type",Object)],wa.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],wa.prototype,"selection",void 0);_.r([_.E(),_.Z("design:type",String)],wa.prototype,"selectionState",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wa.prototype,"calendarConfig",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wa.prototype,"errorMessage",null);_.r([_.K("selection"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wa.prototype,"startDate",null);_.r([_.K("selection"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wa.prototype,"endDate",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wa.prototype,"dataChanged",null);
_.r([_.XX("selection","selectionState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wa.prototype,"observeSelection",null);_.r([_.XX("selectionState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wa.prototype,"resetTextboxes",null);wa=_.r([_.A({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],wa);
_.F(wa,"ytd-date-period-picker-renderer",function(){if(i9_!==void 0)return i9_;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return i9_=B},{mode:1});var T5=function(){var B=_.c.apply(this,arguments)||this;var R={};B.actionMap=(R["ytd-date-period-picker-apply"]="handleDateRangeUpdated",R);return B};
_.l(T5,_.c);T5.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
T5.prototype.handleDateRangeUpdated=function(){};
_.r([_.E(),_.Z("design:type",Object)],T5.prototype,"data",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],T5.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],T5.prototype,"rendererstamperBehavior",void 0);T5=_.r([_.A({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],T5);
_.F(T5,"ytd-report-history-section-header-renderer",function(){if(Atl!==void 0)return Atl;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Atl=B},{mode:1});var Z9b;var mho;var $ha;var x4=function(){return _.c.apply(this,arguments)||this};
_.l(x4,_.c);_.mh.Object.defineProperties(x4.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?0:(R=B.icon)==null?0:R.iconType)?_.RT(this.data.icon.iconType):""}}});
_.r([_.E(),_.Z("design:type",Object)],x4.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],x4.prototype,"icon",null);x4=_.r([_.A({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],x4);
_.F(x4,"ytd-report-history-table-text-cell-renderer",function(){if($ha!==void 0)return $ha;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return $ha=B},{mode:1});var Lb=function(){return _.c.apply(this,arguments)||this};
_.l(Lb,_.c);Lb.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Lb.prototype,"data",void 0);Lb=_.r([_.A({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Lb);
_.F(Lb,"ytd-report-history-table-reason-cell-renderer",function(){if(mho!==void 0)return mho;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return mho=B},{mode:1});var vg=function(){return _.c.apply(this,arguments)||this};
_.l(vg,_.c);vg.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"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],vg.prototype,"rendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],vg.prototype,"data",void 0);vg=_.r([_.A({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],vg);
_.F(vg,"ytd-report-history-table-cell-renderer",function(){if(Z9b!==void 0)return Z9b;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return Z9b=B},{mode:1});var ChS;var Kb=function(){var B=_.c.apply(this,arguments)||this;B.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 B};
_.l(Kb,_.c);Kb.prototype.onDataChanged=function(){var B;if((B=this.data)==null?0:B.style)this.componentStyle=this.getStyleName(this.data.style)};
Kb.prototype.getCellForColumn=function(B){return this.cells.find(function(R){var V;return((V=_.D(R==null?void 0:R.cell,v3h)||_.D(R==null?void 0:R.cell,Lto))==null?void 0:V.columnId)===B.type})};
Kb.prototype.getClassForColumn=function(B){switch(B){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Kb.prototype.getStyleName=function(B){switch(B){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.mh.Object.defineProperties(Kb.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.cells)||[]).map(function(R){return _.D(R,xuT)})}}});
Kb.prototype.onDataChanged=Kb.prototype.onDataChanged;_.r([_.E(),_.Z("design:type",Object)],Kb.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Array)],Kb.prototype,"columnRenderData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],Kb.prototype,"componentStyle",void 0);_.r([_.K("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],Kb.prototype,"cells",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kb.prototype,"onDataChanged",null);Kb=_.r([_.A({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Kb);
_.F(Kb,"ytd-report-history-table-row-renderer",function(){if(ChS!==void 0)return ChS;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ChS=B},{mode:1});var Phv;var no4;var kZu={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Dt5={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Ie=function(){return _.c.apply(this,arguments)||this};
_.l(Ie,_.c);Ie.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"}}}}}};
Ie.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.mh.Object.defineProperties(Ie.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.columns)?dtK(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return z3Z(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var B=this.tableSpec,R=kZu;R=R===void 0?Dt5:R;R=anY(B.columnDimensions,B.columnsToShow||[],R);B=0;R=_.h(R);for(var V=R.next();!V.done;V=R.next())V=V.value,B+=V.minWidth+V.paddingLeft+V.paddingRight;return B}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.r([_.v(_.L_),_.Z("design:type",Object)],Ie.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ie.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ie.prototype,"tableSpec",null);_.r([_.K("tableSpec"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],Ie.prototype,"columnRenderData",null);
_.r([_.K("tableSpec"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Ie.prototype,"totalMinWidth",null);_.r([_.K("totalMinWidth"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ie.prototype,"tableWidthStyle",null);Ie=_.r([_.A({is:"ytd-table-renderer",disableElementRegistration:!0})],Ie);
_.F(Ie,"ytd-table-renderer",function(){if(no4!==void 0)return no4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return no4=B},{mode:1});var Eg=function(){return _.c.apply(this,arguments)||this};
_.l(Eg,_.c);Eg.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}}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Eg.prototype,"data",void 0);Eg=_.r([_.A({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Eg);
_.F(Eg,"ytd-report-reason-history-modal-renderer",function(){if(Phv!==void 0)return Phv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Phv=B},{mode:1});var ue4;var O9v;var oH2;var QC=function(){return _.c.apply(this,arguments)||this};
_.l(QC,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],QC.prototype,"data",void 0);QC=_.r([_.A({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],QC);
_.F(QC,"ytd-profile-column-stats-entry-renderer",function(){if(oH2!==void 0)return oH2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return oH2=B},{mode:1});var BZa;var qZ=function(){return _.c.apply(this,arguments)||this};
_.l(qZ,_.c);qZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qZ.prototype,"data",void 0);qZ=_.r([_.A({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],qZ);
_.F(qZ,"ytd-profile-column-stats-renderer",function(){if(BZa!==void 0)return BZa;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return BZa=B},{mode:1});var RpJ;var cg=function(){return _.c.apply(this,arguments)||this};
_.l(cg,_.c);_.mh.Object.defineProperties(cg.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.useThumbnailSize)return 80;var R,V;B=(R=this.data)==null?void 0:(V=R.thumbnail)==null?void 0:V.thumbnails;var e;return B&&((e=B[0])==null?void 0:e.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.useThumbnailSize)return 80;var R,V;B=(R=this.data)==null?void 0:(V=R.thumbnail)==null?void 0:V.thumbnails;var e;return B&&((e=B[0])==null?void 0:e.height)||80}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cg.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],cg.prototype,"componentStyle",void 0);_.r([_.K("data.useThumbnailSize"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cg.prototype,"thumbnailWidth",null);
_.r([_.K("data.useThumbnailSize"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cg.prototype,"thumbnailHeight",null);cg=_.r([_.A({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],cg);
_.F(cg,"ytd-profile-column-user-info-renderer",function(){if(RpJ!==void 0)return RpJ;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return RpJ=B},{mode:1});var AL=function(){return _.c.apply(this,arguments)||this};
_.l(AL,_.c);AL.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]]"}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],AL.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],AL.prototype,"componentStyle",void 0);AL=_.r([_.A({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],AL);
_.F(AL,"ytd-profile-column-renderer",function(){if(O9v!==void 0)return O9v;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return O9v=B},{mode:1});var id=function(){var B=_.c.apply(this,arguments)||this;B.componentStyle="NON_CENTERED_PROFILE";return B};
_.l(id,_.c);id.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
id.prototype.getIcon=function(B){return B?"settings:"+B.toLowerCase():null};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],id.prototype,"data",void 0);id=_.r([_.A({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],id);
_.F(id,"ytd-page-introduction-renderer",function(){if(ue4!==void 0)return ue4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ue4=B},{mode:1});var VM_;var sg=function(){return _.c.apply(this,arguments)||this};
_.l(sg,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],sg.prototype,"data",void 0);sg=_.r([_.A({is:"ytd-report-description-renderer",disableElementRegistration:!0})],sg);
_.F(sg,"ytd-report-description-renderer",function(){if(VM_!==void 0)return VM_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return VM_=B},{mode:1});var ep2;var Xvl;var FA=function(){return _.c.apply(this,arguments)||this};
_.l(FA,_.c);FA.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],FA.prototype,"data",void 0);FA=_.r([_.A({is:"ytd-video-report-renderer",disableElementRegistration:!0})],FA);
_.F(FA,"ytd-video-report-renderer",function(){if(Xvl!==void 0)return Xvl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Xvl=B},{mode:1});var pvT;_.aO("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.aO("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var ra=function(){return _.c.apply(this,arguments)||this};
_.l(ra,_.c);ra.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]]"}}}}}};
ra.prototype.computeMessageStyle=function(B){return B};
ra.prototype.computeButtonOverride=function(B){var R;if((B==null?0:(R=B.style)==null?0:R.value)&&B.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ra.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ra.prototype,"shelf",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ra.prototype,"panel",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Z("design:type",Boolean)],ra.prototype,"componentStyle",void 0);_.r([_.E({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],ra.prototype,"buttonOverride",void 0);ra=_.r([_.A({is:"ytd-message-renderer",disableElementRegistration:!0})],ra);
_.F(ra,"ytd-message-renderer",function(){if(pvT!==void 0)return pvT;var B=document.createElement("template");_.a(B,'\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<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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return pvT=B},{mode:1});var Zs=function(){return _.c.apply(this,arguments)||this};
_.l(Zs,_.c);Zs.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"}}}};
Zs.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Zs.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.mh.Object.defineProperties(Zs.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var B,R;return!!(((B=this.data)==null?0:B.header)&&((R=this.data)==null?0:R.table))}}});
Zs.prototype.onRequestError=Zs.prototype.onRequestError;_.r([_.v(_.L_),_.Z("design:type",Object)],Zs.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Zs.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Zs.prototype,"data",void 0);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zs.prototype,"isUnifiedReportHistory",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zs.prototype,"onRequestError",null);Zs=_.r([_.A({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Zs);
_.F(Zs,"ytd-report-history-section-renderer",function(){if(ep2!==void 0)return ep2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ep2=B},{mode:1});var Y2b;var mu=function(){var B=_.c.apply(this,arguments)||this;B.answerExpanded=!1;return B};
_.l(mu,_.c);mu.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],mu.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],mu.prototype,"answerExpanded",void 0);mu=_.r([_.A({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],mu);
_.F(mu,"ytd-handles-claiming-faq-renderer",function(){if(Y2b!==void 0)return Y2b;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Y2b=B},{mode:1});var hpb;var $4=function(){return _.c.apply(this,arguments)||this};
_.l($4,_.c);_.r([_.E(),_.Z("design:type",Object)],$4.prototype,"data",void 0);$4=_.r([_.A({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],$4);
_.F($4,"ytd-handles-claiming-faq-section-renderer",function(){if(hpb!==void 0)return hpb;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return hpb=B},{mode:1});var tMa;var Cb=function(){var B=_.c.apply(this,arguments)||this;B.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";B.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";B.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";B.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";B.leftSquiggly=B.leftSquigglyLight;B.rightSquiggly=B.rightSquigglyLight;
B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};B.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return B};
_.l(Cb,_.c);_.p=Cb.prototype;_.p.updateLeftSquigglyStyle=function(){_.o_(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.p.updateRightSquigglyStyle=function(){_.o_(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.p.ready=function(){var B=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(B)};
_.p.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.set("isDarkTheme",B),B?(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]]"}}}}}};
Cb.prototype.updateRightSquigglyStyle=Cb.prototype.updateRightSquigglyStyle;Cb.prototype.updateLeftSquigglyStyle=Cb.prototype.updateLeftSquigglyStyle;_.r([_.E(),_.Z("design:type",Object)],Cb.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Cb.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",String)],Cb.prototype,"leftSquiggly",void 0);_.r([_.E(),_.Z("design:type",String)],Cb.prototype,"rightSquiggly",void 0);
_.r([_.XX("leftSquiggly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cb.prototype,"updateLeftSquigglyStyle",null);_.r([_.XX("rightSquiggly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cb.prototype,"updateRightSquigglyStyle",null);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Cb.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Cb.prototype,"actionButtonOverride",void 0);Cb=_.r([_.A({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Cb);
_.F(Cb,"ytd-handles-claiming-header-renderer",function(){if(tMa!==void 0)return tMa;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return tMa=B},{mode:1});var Wdh;var Pg=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};B.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";B.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";B.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";B.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
B.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";B.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";B.image0SquigglyBackground=B.image0LightSquigglyBackground;B.image1SquigglyBackground=B.image1LightSquigglyBackground;B.image3SquigglyBackground=B.image3LightSquigglyBackground;return B};
_.l(Pg,_.c);_.p=Pg.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(B){B!==this.isDarkTheme&&(this.isDarkTheme=B)};
_.p.updateImage0SquigglyBackground=function(){_.o_(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.p.updateImage1SquigglyBackground=function(){_.o_(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.p.updateImage3SquigglyBackground=function(){_.o_(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.p.updateTitleAndImages=function(){var B,R;((B=this.data)==null?void 0:(R=B.titleImages)==null?void 0:R.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
Pg.prototype.updateImage3SquigglyBackground=Pg.prototype.updateImage3SquigglyBackground;Pg.prototype.updateImage1SquigglyBackground=Pg.prototype.updateImage1SquigglyBackground;Pg.prototype.updateImage0SquigglyBackground=Pg.prototype.updateImage0SquigglyBackground;Pg.prototype.onThemeChanged=Pg.prototype.onThemeChanged;Pg.prototype.onDataChanged=Pg.prototype.onDataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Pg.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Pg.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"title0",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"title1",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"title2",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"title3",void 0);
_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"title4",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"image0",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"image1",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"image2",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"image3",void 0);_.r([_.E(),_.Z("design:type",Object)],Pg.prototype,"image4",void 0);_.r([_.E(),_.Z("design:type",String)],Pg.prototype,"image0SquigglyBackground",void 0);
_.r([_.E(),_.Z("design:type",String)],Pg.prototype,"image1SquigglyBackground",void 0);_.r([_.E(),_.Z("design:type",String)],Pg.prototype,"image3SquigglyBackground",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pg.prototype,"onDataChanged",null);_.r([_.XX("isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pg.prototype,"onThemeChanged",null);
_.r([_.XX("image0SquigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pg.prototype,"updateImage0SquigglyBackground",null);_.r([_.XX("image1SquigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pg.prototype,"updateImage1SquigglyBackground",null);
_.r([_.XX("image3SquigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pg.prototype,"updateImage3SquigglyBackground",null);Pg=_.r([_.A({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Pg);
_.F(Pg,"ytd-handles-claiming-title-images-section-renderer",function(){if(Wdh!==void 0)return Wdh;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Wdh=B},{mode:1});var bG4;var nb=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(nb,_.c);nb.prototype.ready=function(){var B=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(B)};
nb.prototype.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&this.set("isDarkTheme",B)};
nb.prototype.onCopyButtonClick=function(){var B=this,R,V,e;return _.W(function(X){return(R=B.data)!=null&&R.primaryChannelUrl?_.U(X,navigator.clipboard.writeText(((V=B.data)==null?0:V.encodedChannelUrl)?B.data.encodedChannelUrl:"https://"+_.FF((e=B.data)==null?void 0:e.primaryChannelUrl)),0):X.jumpTo(0)})};
_.r([_.E(),_.Z("design:type",Object)],nb.prototype,"data",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],nb.prototype,"isDarkTheme",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],nb.prototype,"ytActionHandlerBehavior",void 0);nb=_.r([_.A({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],nb);
_.F(nb,"ytd-handles-claiming-update-social-renderer",function(){if(bG4!==void 0)return bG4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return bG4=B},{mode:1});var JOo;var ud=function(){var B=_.c.apply(this,arguments)||this;B.JSC$13828_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";B.JSC$13828_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};B.squigglyBackground=B.JSC$13828_squigglyBackgroundLight;return B};
_.l(ud,_.c);ud.prototype.updateSquigglyBackgroundStyle=function(){_.o_(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ud.prototype.ready=function(){var B=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",B);this.squigglyBackground=B?this.JSC$13828_squigglyBackgroundDark:this.JSC$13828_squigglyBackgroundLight};
ud.prototype.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.set("isDarkTheme",B),this.squigglyBackground=B?this.JSC$13828_squigglyBackgroundDark:this.JSC$13828_squigglyBackgroundLight)};
ud.prototype.updateSquigglyBackgroundStyle=ud.prototype.updateSquigglyBackgroundStyle;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ud.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],ud.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ud.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],ud.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",String)],ud.prototype,"squigglyBackground",void 0);_.r([_.XX("squigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ud.prototype,"updateSquigglyBackgroundStyle",null);ud=_.r([_.A({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ud);
_.F(ud,"ytd-handles-claiming-vanity-info-renderer",function(){if(JOo!==void 0)return JOo;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return JOo=B},{mode:1});var jxb;var Og=function(){var B=_.c.apply(this,arguments)||this;B.JSC$13831_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";B.JSC$13831_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";B.squigglyBackground=B.JSC$13831_squigglyBackgroundLight;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(Og,_.c);_.p=Og.prototype;_.p.ready=function(){var B=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(B)};
_.p.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.set("isDarkTheme",B),this.squigglyBackground=B?this.JSC$13831_squigglyBackgroundDark:this.JSC$13831_squigglyBackgroundLight)};
_.p.updateSquigglyBackgroundStyle=function(){_.o_(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 B=this,R,V;return _.W(function(e){R=B.data.videoId;V="http://i1.ytimg.com/vi/"+R+"/maxresdefault.jpg";B.playerElement.loadVideoWithPlayerVars({video_id:R,iurlhq:V});_.b3(e)})};
Og.prototype.onDataChanged=Og.prototype.onDataChanged;Og.prototype.updateSquigglyBackgroundStyle=Og.prototype.updateSquigglyBackgroundStyle;_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Og.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",String)],Og.prototype,"squigglyBackground",void 0);_.r([_.Yp("#player"),_.Z("design:type",Object)],Og.prototype,"playerElement",void 0);_.r([_.E(),_.Z("design:type",Object)],Og.prototype,"data",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Og.prototype,"ytActionHandlerBehavior",void 0);_.r([_.XX("squigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Og.prototype,"updateSquigglyBackgroundStyle",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Og.prototype,"onDataChanged",null);
Og=_.r([_.A({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Og);
_.F(Og,"ytd-handles-claiming-video-item-renderer",function(){if(jxb!==void 0)return jxb;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return jxb=B},{mode:1});var UP2;var Bh=function(){var B=_.tM.apply(this,arguments)||this;B.dragging=!1;B.dragMouseStart=0;B.dragOffsetStart=0;B.containerWidthDiff=0;B.boundPrevClick=function(){B.set("offset",o1(B,B.offset-(B.scrollDistance||320)))};
B.boundNextClick=function(){B.set("offset",o1(B,B.offset+(B.scrollDistance||320)))};
B.boundScrollContainerMouseDown=function(R){B.dragMouseStart=R.clientX;B.dragOffsetStart=B.offset;B.dragging=!0};
B.boundScrollContainerDrag=function(R){B.dragging&&B.set("offset",o1(B,B.dragOffsetStart-(R.clientX-B.dragMouseStart)))};
B.boundMouseUp=function(){B.onMouseUp()};
B.boundWheelScroll=function(R){var V=0;Math.abs(R.deltaX)>=Math.abs(R.deltaY)?V=R.deltaX:R.shiftKey&&(V=R.deltaY);V!==0&&(B.offset+=V,R.stopPropagation(),R.preventDefault())};
B.boundChipCloudChipScrollIntoView=function(R){(R=R.detail)&&B.scrollChipIntoView(R)};
return B};
_.l(Bh,_.tM);Bh.prototype.attached=function(){var B=_.w(this.hostElement).querySelector("#scroll-container");B.addEventListener("wheel",this.boundWheelScroll);B.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);B.style.touchAction="pan-y";B.addEventListener("pointerdown",this.boundScrollContainerMouseDown);B.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Bh.prototype.detached=function(){var B=_.w(this.hostElement).querySelector("#scroll-container");B.removeEventListener("wheel",this.boundWheelScroll);B.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);B.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);B.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Bh.prototype.reset=function(){this.set("offset",0);_.gB(this,this.setContainerWidthDiff);R1(this)};
var o1=function(B,R){return Math.min(Math.max(R,0),B.containerWidthDiff)};
Bh.prototype.onMouseUp=function(){this.dragging=!1};
Bh.prototype.transformContainer=function(){this.offset=o1(this,this.offset);var B=_.vE("HTML_DIR")==="rtl"?"":"-";_.w(this.hostElement).querySelector("#chips").style.transform="translateX("+B+this.offset+"px)";R1(this)};
var R1=function(B){_.gB(B,B.setButtonsState)};
Bh.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=o1(this,this.offset));this.atStart=this.offset<=0};
Bh.prototype.setContainerWidthDiff=function(){var B=_.w(this.hostElement).querySelector("#scroll-container"),R=_.w(this.hostElement).querySelector("#chips");B&&R&&(this.containerWidthDiff=R.clientWidth-B.clientWidth)};
Bh.prototype.scrollChipIntoView=function(B){var R=_.w(this.hostElement).querySelector("#scroll-container");if(R){var V=this.atStart?0:106,e=this.atEnd?0:106;B.offsetLeft<this.offset+V?this.offset=o1(this,B.offsetLeft-V):B.offsetLeft+B.clientWidth>this.offset+R.clientWidth-e&&(this.offset=o1(this,B.offsetLeft+B.clientWidth+e-R.clientWidth))}};
Bh.prototype.transformContainer=Bh.prototype.transformContainer;_.r([_.E({value:0}),_.Z("design:type",Number)],Bh.prototype,"offset",void 0);_.r([_.E({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Bh.prototype,"atStart",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Bh.prototype,"atEnd",void 0);_.r([_.E(),_.Z("design:type",Number)],Bh.prototype,"scrollDistance",void 0);
_.r([_.XX("offset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Bh.prototype,"transformContainer",null);Bh=_.r([_.Wc()],Bh);var NZh;var GQG;var HGR=_.sx(function(B){var R=B.data;B=_.h(_.WU(!1,void 0,"icHmSe"));var V=B.next().value,e=B.next().value;B={};B=_.XE("ytChipShapeChip",function(){a:switch(R==null?void 0:R().state){case 0:var b="ytChipShapeActive";break a;case 1:b="ytChipShapeDisabled";break a;default:b="ytChipShapeInactive"}return b},function(){var b=R().type===1||R().type===2,J=R();
return b||J!=null&&J.startIcon?J==null||!J.startIcon||J!=null&&J.text?b?"ytChipShapeEndIconPadding":(J==null?0:J.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(B.ytChipShapeFocused=function(){var b;
return V()&&((b=R())==null?void 0:b.state)!==1},B));
var X=function(b){if((R==null?void 0:R().state)!==1){var J,G;(G=(J=R()).onTap)==null||G.call(J,b)}},Y=_.Wr(function(){var b=_.Oz().resolve(_.uj(_.DE));
if(b){e(b.isKeyBoardInUse());var J,G;(G=(J=R()).onFocusIn)==null||G.call(J)}return!1}),t=_.Wr(function(){e(!1);
return!1});
return _.N("chip-shape",{class:"ytChipShapeHost","on:focusin":Y,"on:focusout":t},_.N(yO2,{shouldWrapInButton:function(){return R().type!==2},
selected:function(){return R().state===0},
onClick:X,isDropdown:function(){return R().type===1},
accessibilityLabel:function(){return R().accessibilityLabel}},_.N("div",{class:B},_.N(_.H,{cond:function(){return R().startIcon},
then:function(){return _.N(_.Us,{icon:function(){var b;return(b=R())==null?void 0:b.startIcon},
className:function(){return R().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return R().text},_.N(S2G,{shape:R,
onClick:X}))))},"ub");
HGR.idomCompat=!0;var yO2=_.sx(function(B){var R=_.Wr(function(V){B.onClick(V);return!1});
return _.N(_.H,{cond:B.shouldWrapInButton,then:function(){return _.N("button",{class:"ytChipShapeButtonReset","on:click":R,role:function(){return B.isDropdown()?"combobox":"tab"},
"aria-label":B.accessibilityLabel,"aria-selected":B.selected},B.children)},
else:function(){return B.children}})},"vb"),S2G=_.sx(function(B){var R=B.shape;
var V=B.onClick;var e=_.Wr(function(X){V(X);return!1});
return _.N(_.MN,null,_.N(_.Sv,{when:function(){return R().type===1}},function(){return _.N(_.Us,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.N(_.Sv,{when:function(){return R().type===2}},function(){return _.N("button",{class:"ytChipShapeButtonReset",
"on:click":e},_.N(_.Us,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.N(_.Sv,{when:function(){return R().type===0}},function(){return _.N(_.OZ,null)}))},"wb");_.mR(HGR,"chip-shape",{props:{data:_.qq}});var V4=function(){var B=_.c.apply(this,arguments)||this;B.disableDeselectEvent=!1;B.modern=_.k("web_modern_typography");B.useChipShape=_.k("web_chip_shape_defrag");B.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return B};
_.l(V4,_.c);_.p=V4.prototype;_.p.beforeRegister=function(){_.k("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.p.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.p.onSelectChipCommand=function(B){if(!this.selected&&this.data&&(B=_.D(B,A_4),B.targetId&&B.targetId===this.data.targetId))this.onTap()};
_.p.onFilterChipTransformCommand=function(B){if(!this.selected&&this.data){var R;(B=(R=_.D(B,ro4))==null?void 0:R.chipUniqueId)&&B===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.p.dataChanged=function(){var B=this;_.gB(this,function(){B.data&&B.data.isSelected&&!B.selected&&(B.scrollChipIntoView(),B.onTap())})};
_.p.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.p.computeChipStyle=function(B){return B!=null?B:"STYLE_DEFAULT"};
_.p.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.oF(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.oF(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 B=_.Oz().resolve(_.uj(_.DE));B&&B.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.p.scrollChipIntoView=function(){_.OI(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.mh.Object.defineProperties(V4.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return KSK({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
V4.prototype.onFocus=V4.prototype.onFocus;V4.prototype.onTap=V4.prototype.onTap;V4.prototype.selectionChanged=V4.prototype.selectionChanged;V4.prototype.dataChanged=V4.prototype.dataChanged;_.r([_.v(_.lv),_.Z("design:type",Object)],V4.prototype,"ironButtonState",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],V4.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],V4.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.kI),_.Z("design:type",Object)],V4.prototype,"ironA11yKeysBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],V4.prototype,"disableDeselectEvent",void 0);_.r([_.E(),_.Z("design:type",Object)],V4.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data.icon"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],V4.prototype,"hasIcon",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data.uniqueId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],V4.prototype,"isGnomeChip",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],V4.prototype,"modern",void 0);_.r([_.E({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Z("design:type",String)],V4.prototype,"chipStyle",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],V4.prototype,"selected",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],V4.prototype,"useChipShape",void 0);_.r([_.K("data","selected"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],V4.prototype,"chipShapeData",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V4.prototype,"dataChanged",null);_.r([_.XX("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V4.prototype,"selectionChanged",null);
_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V4.prototype,"onTap",null);_.r([_.R_("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V4.prototype,"onFocus",null);V4=_.r([_.fJ({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],V4);
_.F(V4,"yt-chip-cloud-chip-renderer",function(){if(GQG===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;NZh===void 0&&(NZh=document.createElement("template"));var e=NZh;V.call(R,e.content.cloneNode(!0),B.content.firstChild);GQG=B}B=GQG;return B},{mode:2});var e$=function(){var B=_.c.apply(this,arguments)||this;B.isDarkTheme=!1;B.notSticky=!1;B.transparentBackground=!1;B.shouldHide=!1;B.disableSticky=!1;B.fluidWidth=!1;B.isClipList=!1;B.defaultChipIndex=0;B.isPlaylist=!1;B.playlistVotingAnimationEnabled=_.k("web_enable_voting_animation");B.toolbarHeight=0;B.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return B};
_.l(e$,_.c);_.p=e$.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 B=this;document.addEventListener("scroll",_.Bc(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var R;this.toolbarHeight=((R=document.querySelector("ytd-masthead"))==null?void 0:R.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(V){B.handleIntersect(V)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){B.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.p.detached=function(){var B;(B=this.intersectionObserver)==null||B.disconnect();var R;(R=this.resizeObserver)==null||R.disconnect();document.removeEventListener("scroll",_.Bc(this,this.updateChipBarWidthAndTop))};
_.p.dataChanged=function(){var B=this,R,V,e;((e=_.D((R=this.data)==null?void 0:(V=R.contents)==null?void 0:V[0],hXo))==null?void 0:e.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var X=this.findSelectedChipIndex();this.selectedIndex!==X&&(this.selectedIndex=-1);_.gB(this,function(){B.selectedIndex=X;B.updating=!1;B.ytScrollableChipCloudBehavior.reset()})};
_.p.findSelectedChipIndex=function(){var B;if((B=this.data)==null||!B.contents)return 0;B=this.data.contents;for(var R=0;R<B.length;R++){var V=void 0;if((V=_.D(B[R],hXo))==null?0:V.isSelected)return R}return 0};
_.p.computeStyle=function(B){return B};
_.p.handleChipCloudChipSelectAction=function(B){B=this.JSC$13850_chipsSelector.indexOf(B);B>-1&&this.JSC$13850_chipsSelector.selectIndex(B)};
_.p.handleChipCloudChipDeselectAction=function(){if(_.k("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var B,R,V,e=(V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],hXo))==null?void 0:V.navigationEndpoint;e&&_.oF(this.hostElement,"yt-browse-section-list-reload-endpoint",[e]);this.JSC$13850_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.p.onGuideIsExpandedChanged=function(){var B=this.ytScrollableChipCloudBehavior;_.gB(B,B.setContainerWidthDiff);R1(this.ytScrollableChipCloudBehavior)};
_.p.onResize=function(){var B=this.ytScrollableChipCloudBehavior;_.gB(B,B.setContainerWidthDiff);R1(this.ytScrollableChipCloudBehavior)};
_.p.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.p.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.p.handleIntersect=function(B){_.k("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||B[0].intersectionRatio===1)};
_.p.updateDimensions=function(){var B=this.ytRendererBehavior.parentComponent;if(B){var R,V=(R=B.headerElement)!=null?R:B;_.o_(this.hostElement,{"--ytd-rich-grid-chips-bar-width":V.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.p.updateSelectedIndexFromBinding=function(B){this.selectedIndex=B.detail.value};
_.p.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var B;(B=this.sortFilterHeaderRendererElement)==null||B.setAttribute("is-playlist-page-with-filters","")}};
_.p.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.or({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.mh.Object.defineProperties(e$.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 B,R,V=(B=this.data)==null?void 0:(R=B.contents)==null?void 0:R.find(function(e){return _.D(e,JT_)});
return{sortFilterHeaderRenderer:_.D(V,JT_)}}}});
e$.prototype.dispatchChipBarIsSticky=e$.prototype.dispatchChipBarIsSticky;e$.prototype.isPlaylistPageChanged=e$.prototype.isPlaylistPageChanged;e$.prototype.updateChipBarWidthAndTop=e$.prototype.updateChipBarWidthAndTop;e$.prototype.onResize=e$.prototype.onResize;e$.prototype.onGuideIsExpandedChanged=e$.prototype.onGuideIsExpandedChanged;e$.prototype.dataChanged=e$.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],e$.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.LC),_.Z("design:type",Object)],e$.prototype,"ironResizableBehavior",void 0);_.r([_.v(),_.Z("design:type",Bh)],e$.prototype,"ytScrollableChipCloudBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],e$.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],e$.prototype,"data",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],e$.prototype,"selectedIndex",void 0);_.r([_.E({value:320}),_.Z("design:type",Number)],e$.prototype,"scrollDistance",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e$.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e$.prototype,"notSticky",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e$.prototype,"transparentBackground",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Z("design:type",String)],e$.prototype,"componentStyle",void 0);_.r([_.E({selector:_.luK}),_.Z("design:type",Boolean)],e$.prototype,"guideIsExpanded",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e$.prototype,"shouldHide",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e$.prototype,"disableSticky",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e$.prototype,"fluidWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e$.prototype,"isClipList",void 0);_.r([_.E(),_.Z("design:type",Object)],e$.prototype,"defaultChipIndex",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e$.prototype,"isPlaylist",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],e$.prototype,"playlistVotingAnimationEnabled",void 0);_.r([_.Yp("#chips"),_.Z("design:type",Object)],e$.prototype,"JSC$13850_chipsSelector",void 0);_.r([_.Yp("ytd-sort-filter-header-renderer"),_.Z("design:type",HTMLElement)],e$.prototype,"sortFilterHeaderRendererElement",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],e$.prototype,"updating",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e$.prototype,"dataChanged",null);_.r([_.XX("guideIsExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e$.prototype,"onGuideIsExpandedChanged",null);_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e$.prototype,"onResize",null);
_.r([_.bp("isChannelPageGrid","disableSticky","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e$.prototype,"updateChipBarWidthAndTop",null);_.r([_.K("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],e$.prototype,"isChannelPageGrid",null);_.r([_.K("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],e$.prototype,"isHashtagLandingPage",null);
_.r([_.XX("isPlaylistPage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e$.prototype,"isPlaylistPageChanged",null);_.r([_.K("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],e$.prototype,"isPlaylistPage",null);_.r([_.K("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],e$.prototype,"isDisableDeselectEvent",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e$.prototype,"sortFilterHeaderRendererData",null);_.r([_.E({reflectToAttribute:!0,selector:_.L8d}),_.Z("design:type",String)],e$.prototype,"frostedGlassMode",void 0);_.r([_.XX("notSticky"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e$.prototype,"dispatchChipBarIsSticky",null);e$=_.r([_.A({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],e$);
_.F(e$,"ytd-feed-filter-chip-bar-renderer",function(){if(UP2!==void 0)return UP2;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return UP2=B},{mode:1});var MM4;var kQo=_.sx(function(B){var R=B.data;var V=B.buttonIndex;var e=B.selectedIndex;var X=B.onSelect;var Y=function(){return V()===e()},t=function(){var J,G;
return(G=(J=R().text)==null?void 0:J.content)!=null?G:""};
_.Wr(function(){});
B=_.vkS();var b=_.Wr(function(){X(R().onSubmitCommand);return!1});
return _.N("yt-toggleable-image-button-view-model",{class:function(){var J={};J=(J["toggleable-image-button-view-model-wiz"]=!0,J[""]=!0,J["toggleable-image-button-view-model-wiz__semi-transparent"]=e()!==-1&&!Y(),J);return _.YB(J)},
tabindex:0,"aria-label":t,"aria-pressed":Y,role:"button","on:keydown":B,"on:click":b},_.N(_.H,{cond:function(){return R().logo},
then:function(J){return _.N(_.ia,{data:J,className:function(){var G={};G=(G["toggleable-image-button-view-model-wiz__image"]=!0,G["toggleable-image-button-view-model-wiz__circular-radius"]=!(!R().backgroundColor||!R().backgroundColorDarkMode),G["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(Y()&&R().backgroundColor&&R().backgroundColorDarkMode),G);return _.YB(G)},
alt:t,useWidth:!1,style:function(){if(Y()&&R().backgroundColor&&R().backgroundColorDarkMode){var G=aG(Number(R().backgroundColorDarkMode),"1");var y=aG(Number(R().backgroundColor),"1");G="background: linear-gradient(180deg,"+G+","+y+") border-box;"}else G="";return G}})}}),_.N(_.yK,{model:{borderRadius:"16px"}}),_.N("p",{class:function(){var J={};
J=(J["toggleable-image-button-view-model-wiz__label"]=!0,J["toggleable-image-button-view-model-wiz__bold-text"]=Y(),J);return _.YB(J)}},_.N(_.Hr,{text:function(){return R().text}})))},"xb");
kQo.idomCompat=!0;var f6a=_.sx(function(B){var R=B.data;B=_.h(_.WU({index:-1,command:{}},void 0,"Zcqtsb"));var V=B.next().value,e=B.next().value;return _.N("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.N("div",{class:"nudge-form-view-model-wiz__form-options"},_.N(_.wb,{data:function(){return R().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(X,Y){return _.N(kQo,{data:X.data,buttonIndex:Y,selectedIndex:function(){return V().index},
onSelect:function(t){e({index:Y(),command:t})}})}})),_.N(_.Hr,{text:function(){return R().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.N("div",{class:"nudge-form-view-model-wiz__submit"},_.N(_.wb,{data:function(){return R().submitButton}},{buttonViewModel:function(X){return _.N(DPS,{data:X.data,
isDisabled:function(){return V().index===-1},
onClick:function(){_.Lc(V().command)}})}})))},"yb");
f6a.idomCompat=!0;var DPS=_.sx(function(B){var R=_.NW(function(){return Object.assign({},B.data(),{state:B.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.N(_.qo,{data:R,onClick:B.onClick})},"zb");_.mR(f6a,"yt-nudge-form-view-model",{props:{data:_.qq}});var Xh=function(){var B=_.c.apply(this,arguments)||this;B.roundedContainer=!0;B.buttonUpdate=_.k("web_modern_buttons");B.isDarkMode=!1;B.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return B};
_.l(Xh,_.c);_.p=Xh.prototype;_.p.computeNudgeStyle=function(B){return B?"modernized-nudge":""};
_.p.handleDarkModeToggledAction=function(B){this.isDarkMode=B};
_.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(B){return B?!!B.applyModernizedStyle&&!!B.enableHorizontalButtons&&!!B.secondaryButton:!1};
_.mh.Object.defineProperties(Xh.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=(B=this.data)==null?void 0:B.backgroundStyle)!=null?R:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=(B=this.data)==null?void 0:B.contentsLocation)!=null?R:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null?0:B.lightIconImage)}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],Xh.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Xh.prototype,"actionHandlerBehavior",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("isHideEnclosingAction"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Xh.prototype,"isHidden",null);_.r([_.E(),_.Z("design:type",Object)],Xh.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Xh.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Xh.prototype,"buttonUpdate",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Z("design:type",String)],Xh.prototype,"nudgeStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data.trimStyle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Xh.prototype,"trimStyle",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.backgroundStyle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Xh.prototype,"backgroundStyle",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data.contentsLocation"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Xh.prototype,"contentsLocation",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.disableDropShadow"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Xh.prototype,"noShadow",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.lightIconImage"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Xh.prototype,"noIcon",null);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Z("design:type",Boolean)],Xh.prototype,"isHorizontalButtons",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Object)],Xh.prototype,"isDarkMode",void 0);Xh=_.r([_.A({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Xh);
_.F(Xh,"ytd-feed-nudge-renderer",function(){if(MM4!==void 0)return MM4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return MM4=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var l64;var zph;var po=function(){var B=_.c.apply(this,arguments)||this;B.collapsed=!1;B.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return B};
_.l(po,_.c);po.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"}}}};
po.prototype.handleRatingSelect=function(){var B;((B=this.data)==null?0:B.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
po.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],po.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],po.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.TY),_.Z("design:type",Object)],po.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],po.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],po.prototype,"collapsed",void 0);po=_.r([_.A({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],po);
_.F(po,"ytd-slimline-survey-renderer",function(){if(zph!==void 0)return zph;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return zph=B},{mode:1});var a6o;var Y7=function(){return _.c.apply(this,arguments)||this};
_.l(Y7,_.c);Y7.prototype.maybeGetBackgroundColor=function(B){return this.isDarkMode?B.section2Color:B.section3Color};
Y7.prototype.colorPaletteChanged=function(){var B=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;B&&(B==null?0:B.secondaryTitleColor)&&this.maybeGetBackgroundColor(B)?(this.hostElement.style.backgroundColor=_.li(this.maybeGetBackgroundColor(B)),this.hostElement.style.color=_.li(B.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Y7.prototype.colorPaletteChanged=Y7.prototype.colorPaletteChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],Y7.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Y7.prototype,"data",void 0);_.r([_.E({selector:function(B){return B.ui.darkModeIsEnabled}}),
_.Z("design:type",Boolean)],Y7.prototype,"isDarkMode",void 0);_.r([_.E(),_.Z("design:type",Object)],Y7.prototype,"lightColorPalette",void 0);_.r([_.E(),_.Z("design:type",Object)],Y7.prototype,"darkColorPalette",void 0);_.r([_.XX("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Y7.prototype,"colorPaletteChanged",null);Y7=_.r([_.A({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Y7);
_.F(Y7,"ytd-endorsement-header-renderer",function(){if(a6o!==void 0)return a6o;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return a6o=B},{mode:1});_.mR(_.S_,"yt-decorated-avatar-view-model",{props:{data:_.qq,className:_.qq}});var hX=function(){var B=_.c.apply(this,arguments)||this;B.fullHeight=_.k("web_rich_grid_media_full_height");B.showChannelAvatar=!0;B.hasPlaylistThumbnail=!1;B.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};B.prepareThumbnailForPageTransition=function(){_.k("web_thumbnail_to_watch_transition")&&(B.thumbnail.style.viewTransitionName="thumbnail-to-watch",B.cleanupThumbnailAfterPageTransition(B.thumbnail))};
return B};
_.l(hX,_.c);_.p=hX.prototype;
_.p.configureRendererStamper=function(){return{lazyLoadMenu:XP,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 B=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.k("kevlar_modern_downloads_page")||!B};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13876_inlinePreviewHoverListener=CO({mediaRenderer:this,lockupElement:this.JSC$13876_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.p.getVideoPreviewOpts=function(){var B={},R;if((R=this.data)==null?0:R.multipleInlinePlaybackEndpoint)B=kdJ;this.isRadio&&(B=M7R);return _.k("web_thumbnail_to_watch_transition")?Object.assign({},B,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):B};
_.p.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$13876_inlinePreviewHoverListener)==null||Y1(B)};
_.p.getOwner=function(){var B,R,V;return((B=this.data)==null?void 0:(R=B.channelThumbnailSupportedRenderers)==null?void 0:R.channelThumbnailWithLinkRenderer)||_.D((V=this.data)==null?void 0:V.showProviderChannelThumbnail,BEG)};
_.p.updateLockupSize=function(){var B;((B=this.getOwner())==null?0:B.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.p.getFeedbackEndpoint=function(B){if(_.D(B,_.Ki))return B;var R,V;B=(V=(R=_.D(B,_.p0))==null?void 0:R.commands)!=null?V:[];R=_.h(B);for(V=R.next();!V.done;V=R.next())if(V=this.getFeedbackEndpoint(V.value))return V;return null};
_.p.computeNavigationEndpoint=function(B){return BpZ(B==null?void 0:B.navigationEndpoint)};
_.p.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var B=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(B)!==JSON.stringify(this.data)&&this.set("data",B)}};
_.p.onDataChanged=function(){var B=this,R=this.getOwner();if(R){this.set("data.owner",R);var V,e,X,Y,t,b=((V=this.data)==null?void 0:(e=V.shortBylineText)==null?void 0:(X=e.runs)==null?void 0:(Y=X[0])==null?void 0:Y.text)||((t=R.name)==null?void 0:t.simpleText);this.set("data.owner.title",b)}var J,G,y,S,M,f;R=((J=this.data)==null?void 0:(G=J.thumbnailRenderer)==null?void 0:G.playlistVideoThumbnailRenderer)||((y=this.data)==null?void 0:(S=y.thumbnailRenderer)==null?void 0:S.playlistCustomThumbnailRenderer)||
((M=this.data)==null?void 0:(f=M.thumbnailRenderer)==null?void 0:f.showCustomThumbnailRenderer);var z;((z=this.data)==null?0:z.thumbnail)||!R||this.set("data.thumbnail",R.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){B.updateLockupSize()});
var T;if(J=((T=this.data)==null?void 0:T.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(J);var L;((L=this.dismissActionToReplayEntity)==null?0:L.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.p.onHiddenChanged=function(){this.updateLockupSize()};
_.p.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.oF(this.hostElement,"yt-terminate-video-preview-action");else{var B;(B=this.videoTitleLink)==null||B.focus()}};
_.p.metadataColorChanged=function(){var B;if(this.metadataColor&&((B=this.videoTitle)==null?0:B.style))this.videoTitle.style.color=_.li(this.metadataColor);else{var R,V;!this.metadataColor&&((R=this.videoTitle)==null?0:(V=R.style)==null?0:V.color)&&(this.videoTitle.style.color="")}};
_.p.onDetailsClick=function(B){var R=this.computedNavigationEndpoint;R&&(_.g1(_.Az(B),this.hostElement,["A","BUTTON"])||_.OI(this.hostElement,"yt-navigate",{endpoint:R}))};
_.p.cleanupThumbnailAfterPageTransition=function(B){_.nAo(document,"yt-page-type-changed",function(){B.style.viewTransitionName=""})};
_.p.onRendererTap=function(){this.prepareThumbnailForPageTransition();var B,R,V=((B=this.data)==null?void 0:B.serviceEndpoint)||this.getFeedbackEndpoint((R=this.data)==null?void 0:R.navigationEndpoint);V&&_.D(V,_.Ki)&&this.ytComponentBehavior.resolveCommand(V)};
_.p.onMouseDown=function(B){var R=B.target,V=this.computedNavigationEndpoint,e;B=R.href||((e=_.D(V==null?void 0:V.commandMetadata,_.$a))==null?void 0:e.url);e=R.data||V;B&&e&&VgY(B,e)};
_.p.computeVideoTitleText=function(){var B;if((B=this.data)==null?0:B.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.p.computeHasPlaylistThumbnail=function(B){var R,V,e,X,Y;if((((R=B.thumbnailRenderer)==null?0:R.playlistVideoThumbnailRenderer)||((V=B.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer)||((e=B.thumbnailRenderer)==null?0:e.showCustomThumbnailRenderer)||((X=B.thumbnailRenderer)==null?0:X.playlistVideoThumbnailRenderer)||((Y=B.thumbnailRenderer)==null?0:Y.playlistCustomThumbnailRenderer))&&B.thumbnailOverlays)for(R=0;R<B.thumbnailOverlays.length;R++)if(V=void 0,(V=B.thumbnailOverlays[R])==
null?0:V.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.mh.Object.defineProperties(hX.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.k("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var B;return(B=this.data)==null?void 0:B.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var B;return(B=this.data)==null?void 0:B.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$13876_inlinePreviewHoverListener)==null?0:Da(B))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.W$(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:B.videoId)||((R=this.data)==null?void 0:R.playlistId)||""}}});
hX.prototype.onMouseDown=hX.prototype.onMouseDown;hX.prototype.metadataColorChanged=hX.prototype.metadataColorChanged;hX.prototype.onIsDismissedChanged=hX.prototype.onIsDismissedChanged;hX.prototype.onHiddenChanged=hX.prototype.onHiddenChanged;hX.prototype.onDataChanged=hX.prototype.onDataChanged;hX.prototype.handleReloadDownloadsInfo=hX.prototype.handleReloadDownloadsInfo;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],hX.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],hX.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],hX.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],hX.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],hX.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],hX.prototype,"entitySelectorType",void 0);_.r([_.E(),_.Z("design:type",Boolean)],hX.prototype,"noEndpoints",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],hX.prototype,"isRadio",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],hX.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],hX.prototype,"fullHeight",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],hX.prototype,"showDarkVideoMetadata",void 0);_.r([_.E(),_.Z("design:type",Boolean)],hX.prototype,"showLightVideoMetadata",void 0);_.r([_.E(),_.Z("design:type",Number)],hX.prototype,"metadataColor",void 0);_.r([_.E(),_.Z("design:type",Object)],hX.prototype,"showChannelAvatar",void 0);_.r([_.E(),_.Z("design:type",Boolean)],hX.prototype,"hidden",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],hX.prototype,"showYtInteraction",void 0);
_.r([_.E(),_.Z("design:type",String)],hX.prototype,"dismissedContentId",void 0);_.r([_.E({selectorArgs:["dismissedContentId"],selector:sZo}),_.Z("design:type",Object)],hX.prototype,"dismissActionToReplayEntity",void 0);
_.r([_.E({selectorArgs:["entitySelectorType","mediaId"],selector:function(B,R,V){if(_.k("kevlar_modern_downloads_page")&&V&&R&&R!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(R){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var e=Eid(B,V);if(e){R=_.Tz(B,V);var X=L7(B,V),Y=mfI(B,V);B=vk(B,V);var t=f0N(e,R,X,Y);X=t.shortViewCountText;var b=t.publishedTimeText;t=t.badges;var J=B>0;Y=keo(e,R,Y,B);e=_.NR(R)||R==="TRANSFER_STATE_FAILED"||R==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!U$(e.policyEntity)?
void 0:Ogd(V,B,e.videoEntity.lengthSeconds);R==="TRANSFER_STATE_PAUSED_BY_USER"&&V&&!_.k("dl_resume_click_killswitch")&&(e={offlineVideoEndpoint:{videoId:V,action:"ACTION_RESUME"}});V={shortViewCountText:X,publishedTimeText:b,badges:t,isWatched:J,navigationEndpoint:e,thumbnailOverlays:Y}}else V=void 0;return V;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(R=Qid(B,V))if(e=_.xG(B,V),Y=_.qNd(B,V),e!=="TRANSFER_STATE_UNKNOWN"){V=DyA(R,e,Y,V,xfI(B));break a}V=void 0}return V;default:_.KE(new _.H8("Error: entitySelectorType defined but not matched in selector.",
B,R))}}}),
_.Z("design:type",Object)],hX.prototype,"entityDrivenState",void 0);_.r([_.E({computed:"computeVideoTitleText(data)"}),_.Z("design:type",Object)],hX.prototype,"videoTitleText",void 0);_.r([_.E({computed:"computeHasPlaylistThumbnail(data)"}),_.Z("design:type",Object)],hX.prototype,"hasPlaylistThumbnail",void 0);_.r([_.E({computed:"computeNavigationEndpoint(data)"}),_.Z("design:type",Object)],hX.prototype,"computedNavigationEndpoint",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],hX.prototype,"typographyBump",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("typographyBump"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hX.prototype,"typographyBumpV2",null);_.r([_.Yp("#video-title"),_.Z("design:type",HTMLElement)],hX.prototype,"videoTitle",void 0);_.r([_.Yp("#video-title-link"),_.Z("design:type",HTMLElement)],hX.prototype,"videoTitleLink",void 0);
_.r([_.Yp("#thumbnail"),_.Z("design:type",HTMLElement)],hX.prototype,"thumbnail",void 0);_.r([_.Yp("#dismissible"),_.Z("design:type",HTMLElement)],hX.prototype,"JSC$13876_dismissibleMedia",void 0);_.r([_.K("data.menu"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hX.prototype,"lazyLoadMenu",null);_.r([_.K("data.menu"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hX.prototype,"immediateLoadMenu",null);
_.r([_.bp("entityDrivenState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hX.prototype,"handleReloadDownloadsInfo",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hX.prototype,"onDataChanged",null);_.r([_.bp("hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hX.prototype,"onHiddenChanged",null);
_.r([_.XX("isDismissed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hX.prototype,"onIsDismissedChanged",null);_.r([_.XX("metadataColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hX.prototype,"metadataColorChanged",null);_.r([_.R_("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],hX.prototype,"onMouseDown",null);
_.r([_.K("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hX.prototype,"isHovered",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hX.prototype,"useAvatar",null);_.r([_.K("data","entitySelectorType"),_.Z("design:type",String),_.Z("design:paramtypes",[])],hX.prototype,"mediaId",null);hX=_.r([_.A({is:"ytd-rich-grid-media",disableElementRegistration:!0})],hX);
var dP_=_.nJ()(hX,"ytd-rich-grid-media",function(){if(l64!==void 0)return l64;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return l64=B},{mode:_.up("kevlar_poly_si_batch_j072")?1:2});var wva;var tX=function(){var B=_.c.apply(this,arguments)||this;B.removeMaxWidth=!0;B.insetMetadata=!1;return B};
_.l(tX,_.c);_.p=tX.prototype;_.p.configureRendererStamper=function(){return{innerMenu:XP,outerMenu:Object.assign({},XP,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.onDataChanged=function(){var B,R=((B=this.data)==null?void 0:B.trackingParams)||"";R&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(R));var V;((V=this.dismissActionToReplayEntity)==null?0:V.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$13881_inlinePreviewHoverListener=CO({mediaRenderer:this,lockupElement:this.JSC$13881_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:JBZ})};
_.p.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$13881_inlinePreviewHoverListener)==null||Y1(B)};
_.p.onRendererTap=function(){var B,R,V=(B=this.data)==null?void 0:(R=B.serviceEndpoints)==null?void 0:R[0];_.D(V,_.Ki)&&this.componentBehavior.resolveCommand(V)};
_.p.onDetailsClick=function(B){var R,V=(R=this.data)==null?void 0:R.navigationEndpoint;V&&(_.g1(_.Az(B),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(V))};
_.p.onShow=function(){var B=this.data;B.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(B.onFirstVisibleCommand),delete B.onFirstVisibleCommand)};
_.mh.Object.defineProperties(tX.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var B;return this.insetMetadata?void 0:(B=this.data)==null?void 0:B.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var B;return this.insetMetadata?(B=this.data)==null?void 0:B.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var B=this.data;if(B!=null&&B.badge&&(B=_.D(B.badge,BvR))){var R,V,e;return[{metadataBadgeRenderer:{label:((R=B.label)==null?void 0:(V=R.runs)==null?void 0:V[0].text)||((e=B.label)==null?void 0:e.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var B=this.data;return Object.assign({},B.headline,{accessibility:B.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return this.isSlimShort?(B=this.computedTitle)==null?void 0:(R=B.accessibility)==null?void 0:(V=R.accessibilityData)==null?void 0:V.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$13881_inlinePreviewHoverListener)==null?0:Da(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tX.prototype.onDataChanged=tX.prototype.onDataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],tX.prototype,"componentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],tX.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.TY),_.Z("design:type",Object)],tX.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],tX.prototype,"ytdReduxBehavior",void 0);_.r([_.Yp("ytd-thumbnail"),_.Z("design:type",HTMLElement)],tX.prototype,"thumbnail",void 0);_.r([_.Yp("#dismissible"),_.Z("design:type",HTMLElement)],tX.prototype,"JSC$13881_dismissibleMedia",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],tX.prototype,"removeMaxWidth",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],tX.prototype,"insetMetadata",void 0);_.r([_.E(),_.Z("design:type",String)],tX.prototype,"dismissedContentId",void 0);_.r([_.E({selectorArgs:["dismissedContentId"],selector:sZo}),_.Z("design:type",Object)],tX.prototype,"dismissActionToReplayEntity",void 0);_.r([_.K("insetMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tX.prototype,"thumbnailObjectFit",null);
_.r([_.K("data","insetMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tX.prototype,"innerMenu",null);_.r([_.K("data","insetMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tX.prototype,"outerMenu",null);_.r([_.E(),_.Z("design:type",Object)],tX.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],tX.prototype,"miniMode",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tX.prototype,"onDataChanged",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tX.prototype,"shortsBadges",null);_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tX.prototype,"isShort",null);
_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tX.prototype,"isSlimShort",null);_.r([_.K("data","isShort"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tX.prototype,"computedTitle",null);_.r([_.K("isSlimShort","computedTitle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tX.prototype,"computedAccessibilityLabel",null);
_.r([_.K("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tX.prototype,"isHovered",null);tX=_.r([_.A({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],tX);
_.F(tX,"ytd-rich-grid-slim-media",function(){if(wva!==void 0)return wva;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wva=B},{mode:_.up("kevlar_poly_si_batch_j063")?1:2});var TZv;var xP5;var Wh=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(Wh,_.c);Wh.prototype.computeIcon=function(B){return B&&B.iconType?"yt-sys-icons:"+B.iconType.toLowerCase():""};
Wh.prototype.onMouseEnter=function(){this.isHovered=!0};
Wh.prototype.onMouseLeave=function(){this.isHovered=!1};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Wh.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Wh.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Wh.prototype,"isHovered",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Wh.prototype,"darkerDarkTheme",void 0);Wh=_.r([_.A({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Wh);
_.F(Wh,"ytd-expand-on-hover-card-renderer",function(){if(xP5!==void 0)return xP5;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return xP5=B},{mode:1});var Ld_,vHG=function(){if(Ld_!==void 0)return Ld_;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Ld_=B};_.aO("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var bO=function(){var B=_.c.apply(this,arguments)||this;B.compactStyle=!1;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(bO,_.c);_.p=bO.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(B){return!(B&&B.subscriberCountText&&B.videoCountText)||this.compactStyle};
_.p.hasDualButtons=function(B){return B&&B.purchaseButton&&B.subscribeButton};
_.p.backgroundColorChanged=function(){if(this.data!==void 0){var B=this.data.backgroundColor;this.isDarkTheme&&(B=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=B!=null?_.li(B):"transparent"}};
_.p.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.p.onTap=function(B){var R,V,e=((R=this.data)==null?void 0:R.navigationEndpoint)||((V=this.data)==null?void 0:V.serviceEndpoint);_.D(e,_.pw)&&(e&&_.Oz().resolve(_.oC).resolveCommand(e,{form:{element:this.hostElement}}),B.preventDefault())};
_.p.computeChannelEndpoint=function(B){return _.D(B,_.pw)?null:B};
_.p.computeHrefEndpoint=function(B){return _.D(B,_.pw)?null:this.componentBehavior.computeHref_(B)};
_.p.computeChannelRendererStyle=function(B){return B};
_.p.computeIconSize=function(B){return B?108:136};
_.mh.Object.defineProperties(bO,{template:{configurable:!0,enumerable:!0,get:function(){return vHG()}}});
bO.prototype.backgroundColorChanged=bO.prototype.backgroundColorChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],bO.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],bO.prototype,"componentBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],bO.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],bO.prototype,"isDarkTheme",void 0);_.r([_.E({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Z("design:type",String)],bO.prototype,"channelRendererStyle",void 0);_.r([_.E({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],bO.prototype,"dualButtons",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],bO.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.V_("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],bO.prototype,"biggerThumbStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bO.prototype,"compactStyle",void 0);_.r([_.XX("data","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bO.prototype,"backgroundColorChanged",null);bO=_.r([_.A({is:"ytd-channel-renderer",disableElementRegistration:!0})],bO);_.F(bO,"ytd-channel-renderer",function(){return vHG()},{mode:1});var Kd5;var I62;_.aO("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var JX=function(){var B=_.c.apply(this,arguments)||this;B.displayItemCount=2;B.collections=_.k("web_modern_collections_v2");B.hasPlaylistThumbnail=!1;B.stackThumbnailSize="large";return B};
_.l(JX,_.c);_.p=JX.prototype;_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.p.computeFirstVideos=function(B,R){return B&&R?B.slice(0,R):[]};
_.p.computeThumbnailWidth=function(B,R){return B?R==="BIG"?500:R==="MASSIVE"?600:R==="MEDIUM"?450:420:360};
_.p.computeThumbnailHeight=function(B,R){return B?R==="BIG"?280:R==="MASSIVE"?337:234:202};
_.p.clearInlinePreviewHoverListeners=function(){var B;(B=this.JSC$13894_inlinePreviewHoverListener)==null||Y1(B)};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13894_inlinePreviewHoverListener=CO({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:kdJ,thumbnailElement:this.thumbnail})};
_.p.computeHasPlaylistThumbnail=function(B){var R,V;if((((R=B.thumbnailRenderer)==null?0:R.playlistVideoThumbnailRenderer)||((V=B.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer))&&B.thumbnailOverlays)for(R=0;R<B.thumbnailOverlays.length;R++)if(V=void 0,(V=B.thumbnailOverlays[R])==null?0:V.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.mh.Object.defineProperties(JX.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.JSC$13894_inlinePreviewHoverListener)==null?0:Da(B))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
JX.prototype.dataChanged=JX.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],JX.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],JX.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],JX.prototype,"displayItemCount",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],JX.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.V_("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],JX.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],JX.prototype,"collections",void 0);_.r([_.E({computed:"computeHasPlaylistThumbnail(data)"}),_.Z("design:type",Object)],JX.prototype,"hasPlaylistThumbnail",void 0);_.r([_.E(),_.Z("design:type",String)],JX.prototype,"stackThumbnailSize",void 0);_.r([_.Yp("ytd-thumbnail"),_.Z("design:type",HTMLElement)],JX.prototype,"thumbnail",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JX.prototype,"dataChanged",null);_.r([_.K("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],JX.prototype,"isHovered",null);JX=_.r([_.A({is:"ytd-radio-renderer",disableElementRegistration:!0})],JX);
_.F(JX,"ytd-radio-renderer",function(){if(I62!==void 0)return I62;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return I62=B},{mode:_.up("kevlar_poly_si_batch_j058")?1:2});var EHa;_.aO("itemSectionRenderer","showRenderer","ytd-show-renderer");var j$=function(){return _.c.apply(this,arguments)||this};
_.l(j$,_.c);j$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
j$.prototype.computeThumbnailWidth=function(B){return B?360:246};
j$.prototype.computeUseProminentThumbs=function(B){return B};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],j$.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],j$.prototype,"isSearch",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Z("design:type",Boolean)],j$.prototype,"useProminentThumbs",void 0);j$=_.r([_.A({is:"ytd-show-renderer",disableElementRegistration:!0})],j$);
_.F(j$,"ytd-show-renderer",function(){if(EHa!==void 0)return EHa;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return EHa=B},{mode:1});_.aO("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Um=function(){var B=_.c.apply(this,arguments)||this;B.isRichGrid=!1;return B};
_.l(Um,_.c);Um.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"}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Um.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Um.prototype,"isRichGrid",void 0);Um=_.r([_.A({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Um);
_.F(Um,"ytd-feed-entry-renderer",function(){if(Kd5!==void 0)return Kd5;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Kd5=B},{mode:1});var Qxl;var N0=function(){return _.c.apply(this,arguments)||this};
_.l(N0,_.c);N0.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.r([_.v(_.dt),_.Z("design:type",Object)],N0.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],N0.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],N0.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.ar,value:3}),_.Z("design:type",Number)],N0.prototype,"itemsPerRow",void 0);
N0=_.r([_.A({is:"ytd-link-card-renderer",disableElementRegistration:!0})],N0);
_.F(N0,"ytd-link-card-renderer",function(){if(Qxl!==void 0)return Qxl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Qxl=B},{mode:1});var q24;var GD=function(){return _.c.apply(this,arguments)||this};
_.l(GD,_.c);_.p=GD.prototype;_.p.configureRendererStamper=function(){return{"data.menu":XP,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.onRendererTap=function(B){if(!this.ytdDismissibleItemBehavior.isDismissed){var R,V=(R=this.data)==null?void 0:R.navigationEndpoint;V&&!_.g1(_.Az(B),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(V)?_.g1(_.Az(B),this.hostElement,["A"])||_.OI(this.hostElement,"yt-navigate",{endpoint:V}):this.ytComponentBehavior.resolveCommand(V,{}))}};
_.p.maybeComputeHref=function(B){return this.ytComponentBehavior.computeHref_(B,!0)};
_.p.getNavigationCommand=function(B){return this.isNavigationCommand(B)?B:null};
_.p.isNavigationCommand=function(B){return B?_.D(B,_.Jz)||_.D(B,_.sI)||_.D(B,_.ie)?!0:!1:!1};
GD.prototype.onRendererTap=GD.prototype.onRendererTap;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],GD.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],GD.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],GD.prototype,"data",void 0);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],GD.prototype,"onRendererTap",null);GD=_.r([_.A({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],GD);
_.F(GD,"ytd-lumiere-promo-item-image-renderer",function(){if(q24!==void 0)return q24;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return q24=B},{mode:1});var cOo;var y4=function(){return _.c.apply(this,arguments)||this};
_.l(y4,_.c);y4.prototype.computeLandscapeThumbnail=function(){var B;return((B=this.data)==null?void 0:B.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],y4.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],y4.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],y4.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.ar}),_.Z("design:type",Number)],y4.prototype,"itemsPerRow",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Z("design:type",Boolean)],y4.prototype,"landscapeThumbnail",void 0);y4=_.r([_.A({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],y4);
_.F(y4,"ytd-lumiere-shelf-details-renderer",function(){if(cOo!==void 0)return cOo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return cOo=B},{mode:_.up("kevlar_poly_si_batch_j076")?1:2});var AOl;var S$=function(){return _.c.apply(this,arguments)||this};
_.l(S$,_.c);S$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],S$.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],S$.prototype,"data",void 0);S$=_.r([_.A({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],S$);
_.F(S$,"ytd-primetime-promo-details-renderer",function(){if(AOl!==void 0)return AOl;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return AOl=B},{mode:1});var iGv;var Hh=function(){return _.c.apply(this,arguments)||this};
_.l(Hh,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Hh.prototype,"data",void 0);Hh=_.r([_.A({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Hh);
_.F(Hh,"ytd-panel-show-style-metadata-renderer",function(){if(iGv!==void 0)return iGv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return iGv=B},{mode:1});var sx4;var M0=function(){return _.c.apply(this,arguments)||this};
_.l(M0,_.c);_.p=M0.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(B){if(B)return B.smallFormFactorBackgroundThumbnail||B.largeFormFactorBackgroundThumbnail};
_.p.maybeComputeHref=function(B){return this.ytComponentBehavior.computeHref_(B,!0)};
_.p.isNavigationCommand=function(B){return B?_.D(B,_.Jz)||_.D(B,_.sI)||_.D(B,_.ie)?!0:!1:!1};
_.p.getNavigationCommand=function(B){return this.isNavigationCommand(B)?B:null};
M0.prototype.onPanelTap=M0.prototype.onPanelTap;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],M0.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],M0.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],M0.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0,value:_.k("web_modern_buttons")}),_.Z("design:type",Boolean)],M0.prototype,"modernButtons",void 0);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],M0.prototype,"onPanelTap",null);M0=_.r([_.A({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],M0);
_.F(M0,"ytd-primetime-promo-panel-renderer",function(){if(sx4!==void 0)return sx4;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return sx4=B},{mode:1});_.mR(_.sx(function(B){B=_.ip(B,{data:{},useFullWidth:!1});var R=B.data,V=B.useFullWidth,e=function(){return R().caption},X=function(){return R().image},Y=function(){return _.dl(R().onTap)};
B={};B=_.XE("ytTeaserCardViewModelHost",(B.ytTeaserCardViewModelUseFullWidth=function(){return V()},B));
return _.N("teaser-card-view-model",{class:B},_.N(_.H,{cond:function(){return Y()},
then:function(){return _.N(XVS,{className:"ytTeaserCardViewModelLink",command:Y,forceNewState:!0,useATagConfig:!0},_.N("div",{class:"ytTeaserCardViewModelImageContainer"},_.N(_.H,{cond:X,then:function(t){return _.N(_.ia,{data:t,className:"ytTeaserCardViewModelImage",alt:""})}})),_.N("p",{class:"ytTeaserCardViewModelCaption"},e))}}))},"Ab"),"teaser-card-view-model",{props:{data:_.qq,
useFullWidth:_.qq}});var Fd2=new _.u0("RICH_GRID_VIDEO_RENDERER_TOKEN");_.mR(_.sx(function(B){var R=B.data;var V=B.showYtInteractionInContent;var e=function(){return!!R().selectableFeedback};
B=_.h(_.WU(!1,void 0,"nblDw"));var X=B.next().value,Y=B.next().value;_.zM(function(){var M=_.D(R().primaryButton,_.xx);(M==null?0:M.isToggled)&&Y(M.isToggled)});
B=_.Wr(function(M){if(!e())return!1;if(X()){var f;var z=(f=R().selectableFeedback)==null?void 0:f.onDeselect}else{var T;z=(T=R().selectableFeedback)==null?void 0:T.onSelect}z&&_.Lc(z,{form:{element:M.target}});Y(!X());if(M=_.D(R().primaryButton,_.xx))M.isToggled=X();return!1});
var t=function(){if(!e()){var M,f=(M=R().loggingDirectives)==null?void 0:M.trackingParams;f&&_.WC(_.Oz().resolve(_.jj),f)}},b=_.K7Y(),J=function(){var M;
return e()?(M=R().selectableFeedback)==null?void 0:M.a11yLabel:void 0},G=function(){return e()?{toggled:X()}:{}},y=_.Oz().resolve(_.uj(Fd2)),S={};
return _.N("yt-feedback-item-renderer",{class:_.XE("ytFeedbackItemRendererHost",(S.ytFeedbackItemRendererSelectableFeedback=e,S)),"on:click":B,"on:keydown":b,title:J,"aria-label":J,"aria-pressed":function(){return e()?X():void 0},
tabindex:function(){return e()?0:void 0},
role:function(){return e()?"button":void 0}},_.N("div",{class:"ytFeedbackItemRendererContentContainer"},_.N(_.wb,{data:function(){return R().content}},{videoRenderer:function(M){return _.N(y,{data:M.data,
showYtInteraction:V})},
lockupViewModel:function(M){return _.N(_.nu,{data:M.data,containerType:2})}})),_.N("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.N(_.wb,{data:function(){return R().primaryButton}},{toggleButtonViewModel:function(M){return _.N(_.LO,{data:M.data,
buttonShapeOverrides:G,disableExplicitClickLogging:!0,onToggle:t})}})))},"Bb"),"yt-feedback-item-renderer",{props:{data:_.qq,
showYtInteractionInContent:_.qq}});var k7=function(){var B=_.c.apply(this,arguments)||this;B.isShortsGrid=!1;B.isCompactGrid=!1;B.isShortsPanelGrid=!1;B.renderedFromRichGrid=!1;B.isInFirstColumn=!1;B.noGutterMargins=!1;B.isInlineGroupItem=!1;B.insetMetadata=!1;B.noBottomMarginInAds=_.k("web_no_bottom_margin_for_home_ad_buttons");B.force16By9ThumbnailAspectRatio=!1;B.useCompactList=!1;B.containerType=2;B.thumbnailTargetWidth=9999;B.isResponsiveGrid=!1;B.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};B.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};B.hoverListener=B.hover.bind(B);B.leaveListener=B.leave.bind(B);B.highlighted=!1;B.JSC$13929_unsubscribeFromInlinePreviewIsActive=function(){};
return B};
_.l(k7,_.c);_.p=k7.prototype;_.p.computeContainerType=function(){return this.useCompactList?3:2};
_.p.computeThumbnailTargetWidth=function(){var B;return(B=this.itemWidth)!=null?B:9999};
_.p.updateIsInFirstColumn=function(){var B;this.isInFirstColumn=((B=this.data)==null?void 0:B.colIndex)===0};
_.p.observerContainerType=function(){if(this.lockup){var B=this.lockup;B.containerType=this.containerType;B.sizing=this.sizing;B.typographyBump=this.typographyBump;B.itemWidth=this.itemWidth}this.richGridMedia&&_.k("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.k("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(B){B=B.relatedTarget;var R=document.querySelector("ytd-video-preview");B&&R&&_.P$(R).contains(B)||this.removeAndCleanupHighlight()};
_.p.hover=function(){var B;if(!this.highlighted&&(!_.k("web_enable_rich_item_on_focus_effect")||(B=this.data)!=null&&B.onFocusEffect)){var R,V;((R=this.data)==null?void 0:(V=R.onFocusEffect)==null?void 0:V.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(B=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:B,boxShadow:"0 0 0 10px "+B}));var e,X;((e=this.data)==null?void 0:(X=e.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 B=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13929_unsubscribeFromInlinePreviewIsActive=_.Ge(_.g6(),_.dfd,function(R){B.highlighted&&!R&&B.removeAndCleanupHighlight()})};
_.p.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13929_unsubscribeFromInlinePreviewIsActive()};
_.p.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.p.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.p.getBackgroundColor=function(){var B,R,V=(B=this.data)==null?void 0:(R=B.onFocusEffect)==null?void 0:R.onFocusColor;if(V){if(document.documentElement.hasAttribute("dark")&&(V==null?0:V.darkTheme))return _.li(V==null?void 0:V.darkTheme);if(V==null?0:V.lightTheme)return _.li(V==null?void 0:V.lightTheme)}};
_.p.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var B=_.TE(),R,V,e;B&&((R=this.data)==null?0:R.trackingParams)&&((V=this.data)==null?void 0:V.colIndex)!=null&&((e=this.data)==null?void 0:e.rowIndex)!=null&&_.FT(B,_.U5(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.p.isSlimMediaRenderer=function(B){return!!_.D(B==null?void 0:B.content,_.LBJ)||!!_.D(B==null?void 0:B.content,xpo)||!!_.D(B==null?void 0:B.content,_.Kt)||!!_.D(B==null?void 0:B.content,uJ4)};
_.p.isPostRenderer=function(){var B,R;return!!_.D((B=this.data)==null?void 0:B.content,co2)||!!_.D((R=this.data)==null?void 0:R.content,AoR)};
_.p.computeIsGameCardShelf=function(){var B;return!!_.D((B=this.data)==null?void 0:B.content,c8b)};
_.p.computeIsMiniGameCardShelf=function(){var B,R;return!!_.D((B=this.data)==null?void 0:B.content,BU4)||!!_.D((R=this.data)==null?void 0:R.content,R5v)};
_.p.computeIsTeaserCard=function(){var B;return!!_.D((B=this.data)==null?void 0:B.content,R5v)};
_.p.computeIsSelectableFeedbackItem=function(){var B,R;return!((R=_.D((B=this.data)==null?void 0:B.content,_.e54))==null||!R.selectableFeedback)};
_.p.computeContainsLumierePosters=function(){var B,R;return((R=_.D((B=this.data)==null?void 0:B.content,P8o))==null?void 0:R.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.p.computeIsExpandOnHoverCardShelf=function(){var B;return!!_.D((B=this.data)==null?void 0:B.content,C8G)};
_.p.computeIsLinkCardShelf=function(){var B;return!!_.D((B=this.data)==null?void 0:B.content,BM2)};
_.p.computeIsReelItemStyleAvatarCircle=function(B){var R;return((R=_.D(B==null?void 0:B.content,_.Kt))==null?void 0:R.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.p.computeIsLinkCardFullWidth=function(B,R){var V;return((V=_.D(B==null?void 0:B.content,BM2))==null?void 0:V.useFullWidth)||R<=2};
_.mh.Object.defineProperties(k7.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&&_.k("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.k("web_enable_rich_item_on_focus_effect")||_.k("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.k("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.k("web_shorts_2_by_3_lockups_study")||_.k("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
k7.prototype.richGridHoverHighlightChanged=k7.prototype.richGridHoverHighlightChanged;k7.prototype.observerContainerType=k7.prototype.observerContainerType;k7.prototype.updateIsInFirstColumn=k7.prototype.updateIsInFirstColumn;_.r([_.v(_.dt),_.Z("design:type",Object)],k7.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],k7.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],k7.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],k7.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],k7.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Z("design:type",Boolean)],k7.prototype,"isPost",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Z("design:type",Boolean)],k7.prototype,"containsLumierePosters",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Z("design:type",Boolean)],k7.prototype,"isSlimMedia",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Z("design:type",Boolean)],k7.prototype,"isGameCardShelf",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Z("design:type",Boolean)],k7.prototype,"isMiniGameCardShelf",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Z("design:type",Boolean)],k7.prototype,"isTeaserCard",void 0);_.r([_.E({computed:"computeIsSelectableFeedbackItem(data)"}),_.Z("design:type",Boolean)],k7.prototype,"isSelectableFeedbackItem",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],k7.prototype,"isShortsGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],k7.prototype,"isSlimGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],k7.prototype,"isCompactGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],k7.prototype,"isShortsPanelGrid",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Z("design:type",Boolean)],k7.prototype,"isExpandOnHoverCardShelf",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Z("design:type",Boolean)],k7.prototype,"isLinkCardShelf",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.ar,value:3}),_.Z("design:type",Number)],k7.prototype,"itemsPerRow",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],k7.prototype,"renderedFromRichGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],k7.prototype,"isInFirstColumn",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],k7.prototype,"noGutterMargins",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],k7.prototype,"isInlineGroupItem",void 0);_.r([_.E(),_.Z("design:type",Object)],k7.prototype,"insetMetadata",void 0);
_.r([_.E(),_.Z("design:type",Object)],k7.prototype,"noBottomMarginInAds",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],k7.prototype,"isShelfItem",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Z("design:type",Boolean)],k7.prototype,"isReelItemStyleAvatarCircle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Z("design:type",Boolean)],k7.prototype,"isLinkCardFullWidth",void 0);
_.r([_.E(),_.Z("design:type",Object)],k7.prototype,"force16By9ThumbnailAspectRatio",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],k7.prototype,"useCompactList",void 0);_.r([_.E(),_.Z("design:type",String)],k7.prototype,"sizing",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],k7.prototype,"typographyBump",void 0);_.r([_.E(),_.Z("design:type",Number)],k7.prototype,"itemWidth",void 0);_.r([_.E(),_.Z("design:type",Boolean)],k7.prototype,"isHomeShelf",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],k7.prototype,"isHomeGrid",void 0);_.r([_.Yp("yt-lockup-view-model"),_.Z("design:type",HTMLElement)],k7.prototype,"lockup",void 0);_.r([_.Yp("ytd-rich-grid-media"),_.Z("design:type",HTMLElement)],k7.prototype,"richGridMedia",void 0);_.r([_.Yp("ytd-ad-slot-renderer"),_.Z("design:type",HTMLElement)],k7.prototype,"adSlotRenderer",void 0);_.r([_.E({computed:"computeContainerType(useCompactList)"}),_.Z("design:type",Object)],k7.prototype,"containerType",void 0);
_.r([_.E({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.Z("design:type",Object)],k7.prototype,"thumbnailTargetWidth",void 0);_.r([_.K("showYtInteractionOnRichItem"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],k7.prototype,"showYtInteractionOnRichGridMedia",null);_.r([_.K("isSelectableFeedbackItem","richGridHoverHighlight"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],k7.prototype,"showYtInteractionOnRichItem",null);
_.r([_.K("typographyBump","isHomeGrid"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],k7.prototype,"richTypographyBump",null);_.r([_.E({reflectToAttribute:!0}),_.K("isShortsGrid","isCompactGrid"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],k7.prototype,"richGridHoverHighlight",null);_.r([_.K("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],k7.prototype,"shortsLockupViewModelAspectRatio",null);
_.r([_.K("isInlineGroupItem"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],k7.prototype,"shortsLockupViewModelScrimStyle",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],k7.prototype,"updateIsInFirstColumn",null);_.r([_.XX("containerType","sizing","typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],k7.prototype,"observerContainerType",null);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],k7.prototype,"isResponsiveGrid",void 0);_.r([_.E(),_.Z("design:type",Object)],k7.prototype,"lockupExperiments",void 0);_.r([_.XX("richGridHoverHighlight"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],k7.prototype,"richGridHoverHighlightChanged",null);k7=_.r([_.A({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],k7);
_.rOa=_.nJ()(k7,"ytd-rich-item-renderer",function(){if(TZv===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);TZv=B}B=TZv;return B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var FSd={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var nCS=_.s$(_.Wz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var gHR;var DD=function(){var B=_.c.apply(this,arguments)||this;B.useResponsiveGrid=!1;B.hidden=!1;B.standardShelfMargins=_.k("web_rich_grid_standard_shelf_margins");B.isShowMoreHidden=!1;B.isExpanded=!1;B.isInnerShelf=!1;B.allVideosCount=0;B.allPlaylistCount=0;B.haveSmartDownloadsCompleted=!1;B.isShowLessHidden=!0;B.restrictContentsOverflow=!1;B.firstShownIndex=0;B.horizontalOffset=0;B.atEnd=!0;B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};B.nextClick=function(){var R;(R=B.data)!=null&&R.contents&&(B.firstShownIndex+=B.currentElementsPerRow,B.updateHorizontalOffset(),B.updateHorizontalItemVisibility())};
B.previousClick=function(){var R;(R=B.data)!=null&&R.contents&&(B.firstShownIndex-=B.currentElementsPerRow,B.updateHorizontalOffset(),B.updateHorizontalItemVisibility())};
return B};
_.l(DD,_.c);_.p=DD.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:_.vE("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 B;if((B=this.data)!=null&&B.contents&&this.containerWidth){var R;((R=this.data.responsiveContainerConfiguration)==null?0:R.responsiveSize)?(B=_.ooo(this.data.responsiveContainerConfiguration,this.containerWidth),B=_.nO(Object.assign({},B,{standardUnitMinWidth:this.standardUnitMinWidth}))):B=_.nO({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=B.typographyBump;if(this.elementsPerRow!==
B.numItems||this.gutter!==B.gutter)this.elementsPerRow=B.numItems,this.gutter=B.gutter,this.itemWidth=B.itemWidth,_.o_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":B.gutter+"px"})}};
_.p.computeSizing=function(){if(!this.isLumiere){var B=_.eRd(this.data);if(B)return B;if(_.k("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(B){var R=_.D(B,_.Ii);B=Object.assign({},_.D(B,_.Ii));return R?(B.text||(B.text={simpleText:B.tooltip}),B.style="STYLE_MONO_OUTLINE",B.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",B):R};
_.p.onRowIndexChange=function(){var B=_.TE(),R,V;((R=this.data)==null?0:R.trackingParams)&&((V=this.data)==null?void 0:V.rowIndex)!=null&&B&&_.FT(B,_.U5(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.p.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var B,R=((B=this.getRichItemRenderers()[0])==null?void 0:B.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*R;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.p.requestElementsPerRow=function(){_.OI(this.hostElement,"yt-request-elements-per-row")};
_.p.onUpdateElementsPerRowAction=function(B,R,V,e,X,Y){if(this.containerWidth!==Y&&(this.containerWidth=Y,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&B&&R&&V&&e&&X&&(this.elementsPerRow!==B||this.postsPerRow!==R||this.slimItemsPerRow!==V||this.gameCardsPerRow!==e||this.miniGameCardsPerRow!==X)&&(this.elementsPerRow=B,this.postsPerRow=R,this.slimItemsPerRow=V,this.gameCardsPerRow=e,this.miniGameCardsPerRow=X,this.updateItemVisibility())};
_.p.getRichItemRenderers=function(){return _.w(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.p.updateItemVisibility=function(){var B=this;if(this.data&&this.data.contents){var R=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(e,X){var Y;((Y=B.data)==null?0:Y.isExpanded)?(e.hidden=X>R-1,e.ytRendererBehavior.markDirty()):e.hidden=X>B.currentElementsPerRow-1||X>R-1});
var V=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||V||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||V||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.p.setHeightToSingleRow=function(){var B=this.getRichItemRenderers(),R=Number.parseInt(getComputedStyle(B[0]).marginBottom,10)||0;B=B.slice(0,this.currentElementsPerRow).reduce(function(V,e){return Math.max(V,e.getBoundingClientRect().height+R)},0);
this.contents.style.height=B+"px"};
_.p.focusNextExpandedItem=function(){var B;((B=this.data)==null?0:B.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.p.focusItem=function(B,R){var V=this.getRichItemRenderers();if(V[B]&&(B=V[B].querySelector(".focus-on-expand"))){if(R){var e;(e=V[this.currentElementsPerRow])==null||e.scrollIntoView({behavior:"smooth",block:"center"})}B.focus({preventScroll:!0})}};
_.p.onDataChange=function(){var B=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.gB(this,function(){B.updateItemVisibility()});
var R;if((R=this.data)==null?0:R.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.o_(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),R=0;R<this.data.contents.length;R++){var V=_.D(this.data.contents[R],_.wf)||{};V.colIndex=R;V.rowIndex=this.data.rowIndex}};
_.p.handleRerenderDownloadsData=function(){_.k("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(B){var R=this,V;return _.W(function(e){(V=R.inlinePreviewIsEnabled)&&R.ytdReduxBehavior.dispatch(_.cQa(!1));return e.return(new Promise(function(X){B(function(){V&&R.ytdReduxBehavior.dispatch(_.cQa(!0));X()})}))})};
_.p.expandShelf=function(){var B=this;if(this.data){var R,V=(R=_.D(this.data.showMoreButton,_.Ii))==null?void 0:R.trackingParams;V&&_.WC(_.WK(),V);this.data.isExpanded=!0;this.blockInlinePreview(function(e){B.setHeightToSingleRow();B.updateItemVisibility();B.contents.style.height=B.contents.scrollHeight+"px";_.dV.addJob(function(){B.contents.style.height="auto";B.focusNextExpandedItem();e()},2,200)})}};
_.p.collapseShelf=function(){var B=this;return _.W(function(R){if(R.nextAddress==1){if(!B.data)return R.return();B.data.isExpanded=!1;return _.U(R,B.blockInlinePreview(function(V){B.contents.style.height=B.contents.scrollHeight+"px";B.setHeightToSingleRow();_.dV.addJob(function(){B.updateItemVisibility();B.contents.style.height="auto";V()},2,200)}),2)}_.OI(B.hostElement,"yt-rich-shelf-renderer-collapse",B.data.trackingParams);
B.focusItem(0,!1);_.b3(R)})};
_.p.updateArrowButtonStatus=function(){var B=this.getRichItemRenderers().length;if(!_.k("web_rich_shelf_renderer_use_data_contents_killswitch")){var R,V;B=((R=this.data)==null?void 0:(V=R.contents)==null?void 0:V.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=B};
_.p.onChildElementFocus=function(B){this.hasChevronButtons&&(B=B.target.closest("#contents > *"),this.contents.contains(B)&&(B.offsetLeft<this.horizontalOffset?this.previousClick():B.offsetLeft+B.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("+(_.vE("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.p.updateHorizontalOffset=function(){var B=this.getRichItemRenderers(),R=B.length;if(!_.k("web_rich_shelf_renderer_use_data_contents_killswitch")){var V,e;R=((V=this.data)==null?void 0:(e=V.contents)==null?void 0:e.length)||0}var X;B=((X=B[0])==null?void 0:X.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>R?this.firstShownIndex=R-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*B};
_.p.isSlimMediaShelfRenderer=function(){var B,R,V,e=(V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],_.wf))==null?void 0:V.content;return!!(_.D(e,_.LBJ)||_.D(e,xpo)||_.D(e,_.Kt)||_.D(e,uJ4))};
_.p.isGameCardShelf=function(){var B,R,V,e=(V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],_.wf))==null?void 0:V.content;return!!_.D(e,c8b)};
_.p.isGnomeShelf=function(){var B,R,V,e=(V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],_.wf))==null?void 0:V.content;return!!_.D(e,_.e54)};
_.p.isMiniGameCardShelf=function(){var B,R,V,e=(V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],_.wf))==null?void 0:V.content;return!!_.D(e,BU4)||!!_.D(e,R5v)};
_.p.hasGameBoxArtAvatarStyle=function(){var B;return((B=this.data)==null?void 0:B.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.p.hasRoundedGameBoxArtAvatarStyle=function(){var B;return((B=this.data)==null?void 0:B.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.p.isShortsShelf=function(){var B,R,V,e=(V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],_.wf))==null?void 0:V.content;return!!_.D(e,_.Kt)||!!_.D(e,uJ4)};
_.p.isPostShelfRenderer=function(){var B,R,V,e=(V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],_.wf))==null?void 0:V.content;return!(!_.D(e,co2)&&!_.D(e,AoR))};
_.p.isLumiereShelf=function(){var B,R,V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],_.wf);return!!_.D(V==null?void 0:V.content,P8o)};
_.p.isLumiereShelfWithPosters=function(){var B,R,V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],_.wf),e;return((e=_.D(V==null?void 0:V.content,P8o))==null?void 0:e.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.p.isExpandOnHoverCardShelf=function(){var B,R,V,e=(V=_.D((B=this.data)==null?void 0:(R=B.contents)==null?void 0:R[0],_.wf))==null?void 0:V.content;return!!_.D(e,C8G)};
_.p.computeHasFeaturedBadge=function(){var B,R,V=_.D((B=this.data)==null?void 0:(R=B.badges)==null?void 0:R[0],_.VIv);return V?V.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.p.computeHasPaygatedFeaturedBadge=function(){var B,R,V=_.D((B=this.data)==null?void 0:(R=B.badges)==null?void 0:R[0],_.VIv);return V?(V==null?void 0:V.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.p.computeHeaderHidden=function(){var B,R,V,e,X,Y;return!((B=this.data)==null?0:B.icon)&&!((R=this.data)==null?0:R.title)&&!((V=this.data)==null?0:V.subtitle)&&!((e=this.data)==null?0:e.thumbnail)&&!((X=this.data)==null?0:X.badges)&&!((Y=this.data)==null?0:Y.menu)};
_.p.showCtaButton=function(){var B;return!((B=this.data)==null||!B.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 B,R;return((B=this.data)==null?void 0:(R=B.responsiveContainerConfiguration)==null?void 0:R.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.p.onSectionReactiveDismissal=function(B,R,V){var e,X;var Y=(e=this.data)==null?void 0:(X=e.targetingContext)==null?void 0:X.targetGroupId;this&&Y&&R.targetGroupId&&Y.includes(R.targetGroupId)?(e=this.rowIndex,B=e===void 0?!1:!(R.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&e<=B)):B=!1;B&&(this.hidden=V)};
_.mh.Object.defineProperties(DD.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var B=this.elementsPerRow;this.isPostShelfRenderer()?B=this.postsPerRow:this.isSlimMediaShelfRenderer()?B=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?B=this.slimItemsPerRow-1:this.isGameCardShelf()?B=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(B=this.miniGameCardsPerRow);return B}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.k("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null||!B.previousButton)&&!((R=this.data)==null||!R.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var B;return((B=_.Oz().resolve(_.$B).getCurrentPage())==null?void 0:B.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e;return!((B=this.data)==null?0:(R=B.thumbnail)==null?0:(V=R.accessibility)==null?0:(e=V.accessibilityData)==null?0:e.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
DD.prototype.onChildElementFocus=DD.prototype.onChildElementFocus;DD.prototype.handleRerenderDownloadsData=DD.prototype.handleRerenderDownloadsData;DD.prototype.onDataChange=DD.prototype.onDataChange;DD.prototype.onRowIndexChange=DD.prototype.onRowIndexChange;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.TY),_.Z("design:type",Object)],DD.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],DD.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],DD.prototype,"ytdReduxBehavior",void 0);_.r([_.E({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Z("design:type",Object)],DD.prototype,"useResponsiveGrid",void 0);_.r([_.E(),_.Z("design:type",Object)],DD.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Number)],DD.prototype,"standardUnitMinWidth",void 0);_.r([_.E({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],DD.prototype,"elementsPerRow",void 0);_.r([_.E({value:3}),_.Z("design:type",Number)],DD.prototype,"postsPerRow",void 0);_.r([_.E({value:6}),_.Z("design:type",Number)],DD.prototype,"slimItemsPerRow",void 0);_.r([_.E({value:6}),_.Z("design:type",Number)],DD.prototype,"gameCardsPerRow",void 0);
_.r([_.E({value:6}),_.Z("design:type",Number)],DD.prototype,"miniGameCardsPerRow",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DD.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DD.prototype,"standardShelfMargins",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DD.prototype,"isShowMoreHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DD.prototype,"isExpanded",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DD.prototype,"isInnerShelf",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Z("design:type",Boolean)],DD.prototype,"isShorts",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Z("design:type",Boolean)],DD.prototype,"isLumiere",void 0);_.r([_.E({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Z("design:type",Boolean)],DD.prototype,"hasBoxArtThumbnailStyle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Z("design:type",Boolean)],DD.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Z("design:type",Boolean)],DD.prototype,"hasFeaturedBadge",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Z("design:type",Boolean)],DD.prototype,"hasPaygatedFeaturedBadge",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Z("design:type",Boolean)],DD.prototype,"isHeaderHidden",void 0);_.r([_.E({selector:_.Iu5}),_.Z("design:type",Object)],DD.prototype,"allVideosCount",void 0);_.r([_.E({selector:O1A}),_.Z("design:type",Object)],DD.prototype,"allPlaylistCount",void 0);_.r([_.E({selector:giZ}),_.Z("design:type",Object)],DD.prototype,"haveSmartDownloadsCompleted",void 0);
_.r([_.E({selectorArgs:["entitySelectorType"],selector:function(B,R){if(_.k("kevlar_modern_downloads_page")&&R&&R!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var V=B.entities;switch(R){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":R=_.kG(V);B=wL(R);var e=_.Gz(R);V=_.lz(V);V=_.n0(gCA(e,V,R.length));return{contents:B,subtitle:V};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return V=_.kG(V),{contents:wL(V)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return V=
_.Dz(V),{contents:wL(V)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return V=_.JGo(V),{contents:wL(V)};default:_.KE(new _.H8("Error: entitySelectorType defined but not matched in selector.",B,R))}}}}),
_.Z("design:type",Object)],DD.prototype,"entityDrivenRichShelfData",void 0);_.r([_.E({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Z("design:type",Boolean)],DD.prototype,"hasTopCtaButton",void 0);_.r([_.E({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Z("design:type",Boolean)],DD.prototype,"hasBottomCtaButton",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Z("design:type",Boolean)],DD.prototype,"force16By9ThumbnailAspectRatio",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DD.prototype,"isShowLessHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DD.prototype,"restrictContentsOverflow",void 0);_.r([_.E({selector:_.wLq}),_.Z("design:type",Boolean)],DD.prototype,"inlinePreviewIsEnabled",void 0);
_.r([_.E({computed:"computeSizing(data)"}),_.Z("design:type",String)],DD.prototype,"sizing",void 0);_.r([_.E(),_.Z("design:type",Boolean)],DD.prototype,"typographyBump",void 0);_.r([_.E(),_.Z("design:type",Number)],DD.prototype,"itemWidth",void 0);_.r([_.E(),_.Z("design:type",Object)],DD.prototype,"firstShownIndex",void 0);_.r([_.E(),_.Z("design:type",Object)],DD.prototype,"horizontalOffset",void 0);_.r([_.E(),_.Z("design:type",Object)],DD.prototype,"atEnd",void 0);
_.r([_.Yp("#contents"),_.Z("design:type",HTMLElement)],DD.prototype,"contents",void 0);_.r([_.XX("data.rowIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DD.prototype,"onRowIndexChange",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DD.prototype,"onDataChange",null);
_.r([_.XX("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DD.prototype,"handleRerenderDownloadsData",null);_.r([_.R_("focusin"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],DD.prototype,"onChildElementFocus",null);_.r([_.E({reflectToAttribute:!0}),_.K("data","isHomePage"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],DD.prototype,"isTruncated",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],DD.prototype,"hideBottomDivider",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],DD.prototype,"hasChevronButtons",null);_.r([_.K("firstShownIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],DD.prototype,"previousButtonOverride",null);
_.r([_.K("atEnd"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],DD.prototype,"nextButtonOverride",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],DD.prototype,"isHomePage",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],DD.prototype,"thumbnailAriaHidden",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],DD.prototype,"initiallyIsExpanded",null);
_.r([_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],DD.prototype,"entitySelectorType",null);DD=_.r([_.A({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],DD);
_.ZG2=_.nJ()(DD,"ytd-rich-shelf-renderer",function(){if(gHR===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);gHR=B}B=gHR;return B},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.up("kevlar_poly_si_batch_j028")?1:2});var mP5;_.mR(fBJ,"yt-slimline-survey-view-model",{props:{data:_.qq}});var fo=function(){var B=_.c.apply(this,arguments)||this;B.tileLottieAnimationRef={};B.backgroundLottieAnimationRef={};B.isOnHoverBehaviorForLottieEnabled=!0;B.useBiggerShowcaseImage=_.k("enable_desktop_search_bigger_thumbs");B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return B};
_.l(fo,_.c);_.p=fo.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.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 B=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);B!==this.hasTile&&this.set("hasTile",B);B=this.hasLogo(this.data)||!!this.data.badgeText;B!==this.hasMetadata&&this.set("hasMetadata",B);B=this.data.overflowButton?!1:B;B!==this.showLogoImage&&this.set("showLogoImage",B);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(B){if(B&&this.data){var R=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var V=_.Cc((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);V&&R.push('background-image: url("'+V+'");')}var e;((e=B.basicColorData)==null?void 0:e.backgroundColor)!==void 0&&R.push("background-color: "+_.zF(B.basicColorData.backgroundColor)+";");return R.join("")}};
_.p.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&this.set("isDarkTheme",B)};
_.p.getCurrentLogo=function(B,R){if(B)return R?B.darkLogoImage:B.lightLogoImage};
_.p.getCurrentStaticTileImage=function(B,R){if(this.hasStaticTile(B))return B.darkTileImage?R?B.darkTileImage:B.tileImage:B.tileImage};
_.p.computeTitleStyle=function(B){if(this.data&&this.data.title&&B&&B.basicColorData&&B.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.li(B.basicColorData.foregroundTitleColor)+";"};
_.p.computeSubtitleStyle=function(B){if(this.data&&this.data.subtitle&&B&&B.basicColorData&&B.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.li(B.basicColorData.foregroundBodyColor)+";"};
_.p.computeSupplementalStyle=function(B){if(this.data&&this.data.supplementalText&&B&&B.supplementalTextColor!==void 0)return B=_.li(B.supplementalTextColor),"color:"+B+";--yt-endpoint-color:"+B+";--yt-endpoint-hover-color:"+B+";--yt-endpoint-visited-color:"+B+";--yt-formatted-string-bold-font-weight:700;"};
_.p.computeBadgeStyle=function(B){if(this.data&&this.data.badgeText&&B&&B.basicColorData&&B.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.li(B.basicColorData.foregroundActivatedColor)+";"};
_.p.computeDismissIconStyle=function(B){var R,V;if((B==null?0:(R=B.dismissButtonColorData)==null?0:R.foregroundTitleColor)&&(B==null?0:(V=B.dismissButtonColorData)==null?0:V.backgroundColor))return"--yt-button-color:"+_.zF(B.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.zF(B.dismissButtonColorData.backgroundColor)+";"};
_.p.computeOverflowIconStyle=function(B){var R,V;if((B==null?0:(R=B.dismissButtonColorData)==null?0:R.foregroundTitleColor)&&(B==null?0:(V=B.dismissButtonColorData)==null?0:V.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.zF(B.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.zF(B.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.zF(B.dismissButtonColorData.foregroundTitleColor)+";"};
_.p.computeBannerStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.p.computeLocation=function(B){switch(B==null?void 0:B.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.p.shouldShowTileSection=function(B,R,V){return!this.shouldExpandLogo(B,R,V)&&R};
_.p.shouldShowExpandedLogoSection=function(B,R,V){return this.shouldExpandLogo(B,R,V)&&B!==void 0&&this.hasLogo(B)};
_.p.shouldExpandLogo=function(B,R,V){return B&&R?!1:V>=2};
_.p.hasStaticTile=function(B){return!(B==null||!B.tileImage)};
_.p.hasTileLottie=function(B){var R;return!!(B==null?0:(R=B.tileLottie)==null?0:R.url)};
_.p.hasLogo=function(B){return this.getCurrentLogo(B,this.isDarkTheme)!==void 0};
_.p.getLogoHeight=function(B){return this.logoWithPadding(B)?"26":"20"};
_.p.getExpandedLogoHeight=function(B){return this.logoWithPadding(B)?"31":"24"};
_.p.getLogoImageId=function(B){return this.logoWithPadding(B)?"logo-image-with-padding":"logo-image"};
_.p.hasBackgroundLottie=function(B){var R;return!!(B==null?0:(R=B.backgroundLottie)==null?0:R.url)};
_.p.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var B,R;(B=this.tileLottieAnimationRef)==null||(R=B.lottieEl)==null||R.play();var V,e;(V=this.backgroundLottieAnimationRef)==null||(e=V.lottieEl)==null||e.play()}};
_.p.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var B,R;(B=this.tileLottieAnimationRef)==null||(R=B.lottieEl)==null||R.pause();var V,e;(V=this.backgroundLottieAnimationRef)==null||(e=V.lottieEl)==null||e.pause()}};
_.p.pauseLottie=function(){var B,R;(B=this.tileLottieAnimationRef)==null||(R=B.lottieEl)==null||R.pause();var V,e;(V=this.backgroundLottieAnimationRef)==null||(e=V.lottieEl)==null||e.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.p.performPrimaryButtonAction=function(){var B,R,V;((B=this.data)==null?0:(R=B.primaryButton)==null?0:(V=R.buttonRenderer)==null?0:V.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.p.requestElementsPerRow=function(){_.OI(this.hostElement,"yt-request-elements-per-row")};
_.p.updateButtonPalette=function(){if(this.data&&this.currentColorData){var B;((B=this.data.dismissButton)==null?0:B.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var R;if((R=this.data.primaryButton)==null?0:R.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var V;if((V=this.data.secondaryButton)==
null?0:V.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 e;((e=this.data.primaryButton)==null?0:e.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 B=this.getTileLottieDataBasedOnTheme(),R,V;if(B.url!==((R=this.tileLottiePlayerProps)==null?void 0:(V=R.animationConfig)==null?void 0:V.path)){var e,X;(e=this.tileLottieAnimationRef)==null||(X=e.lottieEl)==null||X.destroy();var Y;this.isOnHoverBehaviorForLottieEnabled=!((Y=B.settings)==null?0:Y.autoplay);var t,b;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(b=(t=B.settings)==null?void 0:t.autoplay)!=null?b:!1,loop:this.getLottieLoopValue(B.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof B.url==="string"?this.tileLottiePlayerProps.animationConfig.path=B.url:this.tileLottiePlayerProps.animationConfig.animationData=B.url}}};
_.p.getOverflowButton=function(B){return _.D(B.overflowButton,Vob)};
_.p.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var B=this.getBackgroundLottieDataBasedOnTheme(),R,V;if(B.url!==((R=this.backgroundLottiePlayerProps)==null?void 0:(V=R.animationConfig)==null?void 0:V.path)){var e,X;(e=this.backgroundLottieAnimationRef)==null||(X=e.lottieEl)==null||X.destroy();var Y;this.isOnHoverBehaviorForLottieEnabled=!((Y=B.settings)==null?0:Y.autoplay);var t,b;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(b=(t=B.settings)==null?void 0:t.autoplay)!=null?b:!1,loop:this.getLottieLoopValue(B.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof B.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=B.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
B.url}}};
_.p.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var B;((B=this.tileLottieAnimationRef)==null?void 0:B.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var R;((R=this.backgroundLottieAnimationRef)==null?void 0:R.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.p.getTileLottieDataBasedOnTheme=function(){var B;if(this.isDarkTheme&&((B=this.data)==null?0:B.darkThemeTileLottie))return this.data.darkThemeTileLottie;var R;return((R=this.data)==null?0:R.tileLottie)?this.data.tileLottie:{}};
_.p.getBackgroundLottieDataBasedOnTheme=function(){var B;if(this.isDarkTheme&&((B=this.data)==null?0:B.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var R;return((R=this.data)==null?0:R.backgroundLottie)?this.data.backgroundLottie:{}};
_.p.onUpdateElementsPerRowAction=function(B){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B)};
_.p.getLottieLoopValue=function(B){return B?B.loop!==void 0?B.loop:B.loopCount?B.loopCount-1:!0:!0};
_.p.logoWithPadding=function(B){var R,V,e;return(B=(R=this.getCurrentLogo(B,this.isDarkTheme))==null?void 0:(V=R.thumbnails)==null?void 0:(e=V[0])==null?void 0:e.height)&&B%31===0?!0:!1};
fo.prototype.currentColorChanged=fo.prototype.currentColorChanged;fo.prototype.themeChanged=fo.prototype.themeChanged;fo.prototype.dataChanged=fo.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],fo.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],fo.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],fo.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fo.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],fo.prototype,"primaryButton",void 0);_.r([_.E(),_.Z("design:type",Object)],fo.prototype,"secondaryButton",void 0);
_.r([_.E({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],fo.prototype,"elementsPerRow",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],fo.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],fo.prototype,"hasTile",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],fo.prototype,"hasMetadata",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],fo.prototype,"showLogoImage",void 0);_.r([_.E(),_.Z("design:type",Object)],fo.prototype,"currentColorData",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Z("design:type",String)],fo.prototype,"bannerStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Z("design:type",String)],fo.prototype,"location",void 0);
_.r([_.E(),_.Z("design:type",Object)],fo.prototype,"tileLottiePlayerProps",void 0);_.r([_.E(),_.Z("design:type",Object)],fo.prototype,"tileLottieAnimationRef",void 0);_.r([_.E(),_.Z("design:type",Object)],fo.prototype,"backgroundLottiePlayerProps",void 0);_.r([_.E(),_.Z("design:type",Object)],fo.prototype,"backgroundLottieAnimationRef",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],fo.prototype,"useBiggerShowcaseImage",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],fo.prototype,"isHideEnclosingAction",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fo.prototype,"dataChanged",null);_.r([_.bp("isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fo.prototype,"themeChanged",null);
_.r([_.bp("currentColorData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fo.prototype,"currentColorChanged",null);fo=_.r([_.A({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],fo);
_.F(fo,"ytd-statement-banner-renderer",function(){if(mP5!==void 0)return mP5;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return mP5=B},{mode:1});var $P4;var lO=function(){var B=_.c.apply(this,arguments)||this;B.isSearch=!1;B.hideShelfHeader=!1;B.engagementPanel=!1;B.disableMouseScroll=!0;B.useFloorScrolling=!0;B.modernTypography=_.k("web_modern_typography");return B};
_.l(lO,_.c);lO.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Wz("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Wz("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
lO.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
lO.prototype.onDataChanged=lO.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lO.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lO.prototype,"hideShelfHeader",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lO.prototype,"engagementPanel",void 0);_.r([_.E(),_.Z("design:type",Object)],lO.prototype,"disableMouseScroll",void 0);_.r([_.E(),_.Z("design:type",Object)],lO.prototype,"useFloorScrolling",void 0);_.r([_.E(),_.Z("design:type",Object)],lO.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lO.prototype,"modernTypography",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lO.prototype,"onDataChanged",null);lO=_.r([_.A({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],lO);
_.F(lO,"ytd-reel-shelf-renderer",function(){if($P4!==void 0)return $P4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return $P4=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var C12;var P1_=_.sx(function(B){var R=B.data;B=B.useSmallFont;var V={},e={};return _.N("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.N(_.H,{cond:function(){return R().favicon},
then:function(X){return _.N(_.ia,{data:X,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.N("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.N(_.Hr,{text:function(){return R().title},
className:_.XE("yt-channel-external-link-view-model-wiz__title",(V["yt-channel-external-link-view-model-wiz__title--title-small-font"]=B,V)),ellipsisTruncate:!0,userInput:!0}),_.N(_.Hr,{text:function(){return R().link},
className:_.XE("yt-channel-external-link-view-model-wiz__link",(e["yt-channel-external-link-view-model-wiz__link--link-small-font"]=B,e)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Cb");
P1_.idomCompat=!0;_.mR(P1_,"yt-channel-external-link-view-model",{props:{data:_.qq,useSmallFont:_.qq}});_.aO("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var zD=function(){var B=_.c.apply(this,arguments)||this;B.revealButtonClass="button";B.businessEmailDisplayState="HIDE_SECTION";return B};
_.l(zD,_.c);_.p=zD.prototype;_.p.refit=function(){var B=this;_.xp(function(){_.Bz(B.hostElement,"yt-refit-popups-action")});
_.gB(this,function(){_.Bz(B.hostElement,"yt-refit-popups-action")})};
_.p.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.IL("https://www.google.com/recaptcha/api.js?trustedtypes=true"),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(B){return"mailto:"+B};
_.p.computeSafeUrl=function(B){if(B)return _.ym(B)};
_.p.linkEndpoint=function(B){return _.D(B.onTap,_.aT)};
_.p.linkEndpointToHref=function(B){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(B))};
_.p.onYtServiceRequestCompleted=function(B){var R;if((R=B.detail.data)==null?0:R.businessEmail)this.businessEmail=B.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var V;if((V=B.detail.data)==null?0:V.errorMessage)this.businessEmailErrorMessage=B.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.p.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var B=this.JSC$14032_captchaTextarea.value;if(B){B={recaptcha_response_token:B,channel_id:this.metadata.channelId};var R=_.D(this.metadata.onBusinessEmailRevealClickCommand,_.aT);R&&this.ytComponentBehavior.resolveCommand(R,{form:B})}}};
_.p.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.mh.Object.defineProperties(zD.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var B;return _.D((B=this.data)==null?void 0:B.metadata,oPv)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.D(this.metadata.businessEmailRevealButton,_.Tr)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var B=new URL(this.metadata.canonicalChannelUrl);return B.host+B.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 _.D(this.metadata.learnMoreOnTap,_.aT)}}});
zD.prototype.onYtServiceRequestCompleted=zD.prototype.onYtServiceRequestCompleted;zD.prototype.businessEmailMetadataChanged=zD.prototype.businessEmailMetadataChanged;zD.prototype.refit=zD.prototype.refit;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],zD.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Yp("#g-recaptcha-response"),_.Z("design:type",HTMLTextAreaElement)],zD.prototype,"JSC$14032_captchaTextarea",void 0);_.r([_.E(),_.Z("design:type",Object)],zD.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],zD.prototype,"revealButtonClass",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zD.prototype,"metadata",null);
_.r([_.K("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zD.prototype,"revealButton",null);_.r([_.K("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zD.prototype,"channelDisplayUrl",null);_.r([_.bp("metadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zD.prototype,"refit",null);_.r([_.K("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zD.prototype,"formattedDescription",null);
_.r([_.K("metadata","learnMoreCommand"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zD.prototype,"shouldRendereVerifiedPhoneStatus",null);_.r([_.K("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zD.prototype,"learnMoreCommand",null);_.r([_.E(),_.Z("design:type",String)],zD.prototype,"businessEmailDisplayState",void 0);_.r([_.E(),_.Z("design:type",String)],zD.prototype,"businessEmail",void 0);
_.r([_.E(),_.Z("design:type",String)],zD.prototype,"businessEmailErrorMessage",void 0);_.r([_.bp("metadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zD.prototype,"businessEmailMetadataChanged",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],zD.prototype,"onYtServiceRequestCompleted",null);
zD=_.r([_.A({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],zD);
_.F(zD,"ytd-about-channel-renderer",function(){if(C12!==void 0)return C12;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return C12=B},{mode:1});var nH_;var a1=function(){return _.c.apply(this,arguments)||this};
_.l(a1,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],a1.prototype,"data",void 0);a1=_.r([_.A({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],a1);
_.F(a1,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(nH_!==void 0)return nH_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return nH_=B},{mode:1});var ubh;var d_=function(){return _.c.apply(this,arguments)||this};
_.l(d_,_.c);d_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],d_.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],d_.prototype,"aligment",void 0);d_=_.r([_.A({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],d_);
_.F(d_,"ytd-channel-list-sub-menu-renderer",function(){if(ubh!==void 0)return ubh;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return ubh=
B},{mode:1});var OG_;var w_=function(){return _.c.apply(this,arguments)||this};
_.l(w_,_.c);w_.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}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],w_.prototype,"data",void 0);w_=_.r([_.A({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],w_);
_.F(w_,"ytd-channel-sub-menu-renderer",function(){if(OG_!==void 0)return OG_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return OG_=B},{mode:1});var osh;var B5b;var TD=function(){var B=_.c.apply(this,arguments)||this;B.isCompact=!1;return B};
_.l(TD,_.c);_.mh.Object.defineProperties(TD.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var B,R;return((R=_.D((B=this.data)==null?void 0:B.endpoint,_.ie))==null?void 0:R.target)==="TARGET_NEW_WINDOW"}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],TD.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],TD.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],TD.prototype,"isCompact",void 0);_.r([_.K("isCompact"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],TD.prototype,"thumbnailWidth",null);
_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],TD.prototype,"openNewWindow",null);TD=_.r([_.A({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],TD);
_.F(TD,"ytd-media-lockup-renderer",function(){if(B5b!==void 0)return B5b;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return B5b=B},{mode:1});var Rch;var x7=function(){return _.c.apply(this,arguments)||this};
_.l(x7,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],x7.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],x7.prototype,"data",void 0);x7=_.r([_.A({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],x7);
_.F(x7,"ytd-structured-description-channel-lockup-renderer",function(){if(Rch!==void 0)return Rch;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Rch=B},{mode:1});var V3v;var Lo=function(){var B=_.c.apply(this,arguments)||this;B.isCompact=!1;B.collections=_.k("web_modern_collections_v2");B.collectionsStackColor=_.k("modernize_structured_description_playlist_lockups_v2");return B};
_.l(Lo,_.c);Lo.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:_.k("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.mh.Object.defineProperties(Lo.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e,X,Y;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(B=this.data)==null?void 0:(R=B.thumbnail)==null?void 0:R.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(V=this.data)==null?void 0:(e=V.thumbnail)==null?void 0:e.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(X=this.data)==null?void 0:(Y=X.thumbnail)==
null?void 0:Y.vibrantColorPalette:void 0}}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Lo.prototype,"componentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Lo.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Lo.prototype,"showSidePanelThumbnailOverlay",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Lo.prototype,"isCompact",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Lo.prototype,"collections",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Lo.prototype,"collectionsStackColor",void 0);_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lo.prototype,"twoLineTitle",null);
_.r([_.K("data","collections","collectionsStackColor"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lo.prototype,"collectionStack",null);Lo=_.r([_.A({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Lo);
_.F(Lo,"ytd-structured-description-playlist-lockup-renderer",function(){if(V3v!==void 0)return V3v;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return V3v=B},{mode:1});var ecv;var vh=function(){return _.c.apply(this,arguments)||this};
_.l(vh,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],vh.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],vh.prototype,"data",void 0);vh=_.r([_.A({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],vh);
_.F(vh,"ytd-structured-description-video-lockup-renderer",function(){if(ecv!==void 0)return ecv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return ecv=B},{mode:2});var Ko=function(){return _.c.apply(this,arguments)||this};
_.l(Ko,_.c);
Ko.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}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ko.prototype,"data",void 0);Ko=_.r([_.A({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Ko);
_.F(Ko,"ytd-compact-infocard-renderer",function(){if(osh!==void 0)return osh;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return osh=B},{mode:1});var XNh;var I1=function(){var B=_.c.apply(this,arguments)||this;B.useModernCollectionsV2=_.k("web_modern_collections_v2");return B};
_.l(I1,_.c);I1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.mh.Object.defineProperties(I1.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.k("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.k("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.k("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],I1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],I1.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],I1.prototype,"ytdReduxBehavior",void 0);_.r([_.E({selector:_.Av}),_.Z("design:type",Object)],I1.prototype,"isGridViewEnabled",void 0);
_.r([_.K("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],I1.prototype,"watchFeedBigThumbs",null);_.r([_.K("isGridViewEnabled","data"),_.E({reflectToAttribute:!0,value:"168"}),_.Z("design:type",String),_.Z("design:paramtypes",[])],I1.prototype,"thumbnailWidth",null);_.r([_.K("isGridViewEnabled","data"),_.E({reflectToAttribute:!0,value:"94"}),_.Z("design:type",String),_.Z("design:paramtypes",[])],I1.prototype,"customThumbnailSize",null);
_.r([_.E(),_.Z("design:type",Object)],I1.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],I1.prototype,"useModernCollectionsV2",void 0);I1=_.r([_.A({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],I1);
_.F(I1,"ytd-compact-playlist-renderer",function(){if(XNh!==void 0)return XNh;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return XNh=B},{mode:1});var pNR;var Em=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.roundedContainer=!0;B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return B};
_.l(Em,_.c);_.p=Em.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(B){return B.style?B.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.p.onUpdateElementsPerRowAction=function(B){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&B===1};
_.p.requestElementsPerRow=function(){_.OI(this.hostElement,"yt-request-elements-per-row")};
Em.prototype.dataChanged=Em.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Em.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],Em.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Em.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Em.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Em.prototype,"hideThumbnail",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Z("design:type",String)],Em.prototype,"viewStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Em.prototype,"darkerDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Em.prototype,"roundedContainer",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Em.prototype,"dataChanged",null);Em=_.r([_.A({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Em);
_.F(Em,"ytd-compact-promoted-item-renderer",function(){if(pNR!==void 0)return pNR;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return pNR=B},{mode:1});var YKv;var Q4=function(){var B=_.c.apply(this,arguments)||this;B.collections=_.k("web_modern_collections_v2");return B};
_.l(Q4,_.c);Q4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Q4.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Q4.prototype.onYtNavigate=function(B,R){var V=this;if(R.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",R)){var e=this.get("watchEndpoint.videoId",R.endpoint),X=_.Bz(this.hostElement,"yt-get-current-video-id-action")[0];_.k("kevlar_mix_handle_first_endpoint_different")&&e&&X&&e!==X||(B.stopPropagation(),_.nD().getPlayerPromise().then(function(Y){if(Y.getPlayerState()===0&&V.data.secondaryNavigationEndpoint)var t=V.data.secondaryNavigationEndpoint;else{t=
Object.assign({},R.endpoint);var b=_.D(t.commandMetadata,_.$a);b&&(Y=Math.floor(Y.getCurrentTime()),b.url=_.gg(b.url,{t:Y}),!_.k("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(b=_.D(t,_.sI)))&&(b.startTimeSeconds=Y)}_.OI(V.hostElement,"yt-navigate",{endpoint:t})}))}};
_.mh.Object.defineProperties(Q4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.k("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.k("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e,X,Y;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(B=this.data)==null?void 0:(R=B.thumbnail)==null?void 0:R.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(e=V.thumbnail)==null?void 0:e.vibrantColorPalette,darkColorPalette:(X=this.data)==null?void 0:(Y=X.thumbnail)==null?void 0:Y.darkColorPalette,experimentEnabled:this.collections}}}});
Q4.prototype.onYtNavigate=Q4.prototype.onYtNavigate;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.VR.YtEndpointBehavior),_.Z("design:type",Object)],Q4.prototype,"ytEndpointBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Q4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],Q4.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.v(_.Qi),_.Z("design:type",Object)],Q4.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Q4.prototype,"ytdReduxBehavior",void 0);_.r([_.E({selector:_.Av}),_.Z("design:type",Object)],Q4.prototype,"isGridViewEnabled",void 0);_.r([_.K("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Q4.prototype,"watchFeedBigThumbs",null);
_.r([_.K("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],Q4.prototype,"thumbnailWidth",null);_.r([_.E(),_.Z("design:type",Object)],Q4.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Q4.prototype,"collections",void 0);_.r([_.K("data","collections"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Q4.prototype,"collectionStack",null);
_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Q4.prototype,"onYtNavigate",null);Q4=_.r([_.A({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Q4);
_.F(Q4,"ytd-compact-radio-renderer",function(){if(YKv!==void 0)return YKv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return YKv=B},{mode:1});var hcG;var q0=function(){return _.c.apply(this,arguments)||this};
_.l(q0,_.c);q0.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
q0.prototype.computeRendererStyle=function(B){return B.style?B.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.r([_.E(),_.Z("design:type",Object)],q0.prototype,"data",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],q0.prototype,"rendererBehavior",void 0);_.r([_.E({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],q0.prototype,"rendererStyle",void 0);
q0=_.r([_.A({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],q0);
_.F(q0,"ytd-compact-text-promo-renderer",function(){if(hcG!==void 0)return hcG;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return hcG=B},{mode:1});var t34;var ch=function(){var B=_.c.apply(this,arguments)||this;B.isShortsStyle=!1;return B};
_.l(ch,_.c);_.p=ch.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?_.OI(this.hostElement,"yt-disable-lockup-interaction"):_.OI(this.hostElement,"yt-enable-lockup-interaction"))};
_.p.isMetaBlockEmpty=function(B){return!B||!B.longBylineText&&!B.shortBylineText&&!B.shortViewCountText&&!B.viewCountText};
_.p.computeHasOneLineTitle=function(B){return this.forceOneLineTitle||!(B==null||!B.buttons)};
_.p.computeDisableInteraction=function(){var B;return!((B=this.data)==null?0:B.navigationEndpoint)};
_.p.hasSingularTopStandaloneBadge=function(){var B;return!((B=this.data)==null||!B.topStandaloneBadge)};
_.mh.Object.defineProperties(ch.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.k("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.k("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 B;return this.hasSingularTopStandaloneBadge()?[(B=this.data)==null?void 0:B.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var B;return this.shouldShowTopBadges?((B=this.data)==null?void 0:B.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
ch.prototype.disableInteractionChanged=ch.prototype.disableInteractionChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ch.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],ch.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],ch.prototype,"ytdLockupBehavior",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],ch.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Z("design:type",Boolean)],ch.prototype,"metaBlockEmpty",void 0);_.r([_.E({selector:_.Av}),_.Z("design:type",Object)],ch.prototype,"isGridViewEnabled",void 0);_.r([_.K("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ch.prototype,"watchFeedBigThumbs",null);
_.r([_.K("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],ch.prototype,"thumbnailWidth",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ch.prototype,"isShortsStyle",void 0);_.r([_.E(),_.Z("design:type",Object)],ch.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Z("design:type",Boolean)],ch.prototype,"hasOneLineTitle",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],ch.prototype,"hideThumbnail",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ch.prototype,"forceOneLineTitle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Z("design:type",Boolean)],ch.prototype,"disableInteraction",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ch.prototype,"musicMetadataVideoLockup",void 0);
_.r([_.XX("disableInteraction"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ch.prototype,"disableInteractionChanged",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ch.prototype,"shouldShowTopBadges",null);_.r([_.K("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],ch.prototype,"topBadges",null);
_.r([_.K("shouldShowTopBadges","data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],ch.prototype,"inlineMetadataBadges",null);_.r([_.K("shouldShowTopBadges"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ch.prototype,"shouldShowBadgesBelowMetadata",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ch.prototype,"compactTitleClass",null);ch=_.r([_.A({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],ch);
_.F(ch,"ytd-compact-video-renderer",function(){if(t34!==void 0)return t34;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return t34=B},{mode:_.up("kevlar_poly_si_batch_j067")?1:2});var Wra;_.aO("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var AX=function(){return _.c.apply(this,arguments)||this};
_.l(AX,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],AX.prototype,"data",void 0);AX=_.r([_.A({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],AX);
_.F(AX,"ytd-counterfactual-renderer",function(){if(Wra!==void 0)return Wra;var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Wra=B},{mode:1});var bB_;var iO=function(){var B=_.c.apply(this,arguments)||this;B.hidden=!1;return B};
_.l(iO,_.c);iO.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.Oz().resolve(_.oC).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
iO.prototype.computeHidden=function(B){return!!B};
_.mh.Object.defineProperties(iO.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}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],iO.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Z("design:type",Object)],iO.prototype,"hidden",void 0);_.r([_.K("data.label"),_.Z("design:type",String),_.Z("design:paramtypes",[])],iO.prototype,"label",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iO.prototype,"value",null);
iO=_.r([_.A({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],iO);
_.F(iO,"ytd-dropdown-item-renderer",function(){if(bB_!==void 0)return bB_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return bB_=B},{mode:1});var JYG;var jMa;var sm=function(){return _.c.apply(this,arguments)||this};
_.l(sm,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],sm.prototype,"data",void 0);_.r([_.E({computed:"getSimpleString(data.label)"}),_.Z("design:type",String)],sm.prototype,"label",void 0);sm=_.r([_.A({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],sm);
_.F(sm,"ytd-navigation-dropdown-item-renderer",function(){if(jMa!==void 0)return jMa;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return jMa=B},{mode:1});var Fh=function(){var B=_.c.apply(this,arguments)||this;B.disabled=!1;B.value="";B.noLabelFloat=!1;B.noUnderline=!1;B.usePrimaryColor=!1;B.hasBackground=!1;B.verticalAlign="top";B.autosize=!1;B.minAutosizeWidth=100;B.autosizeFont="14px Roboto";return B};
_.l(Fh,_.c);_.p=Fh.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 _.Kj("value-changed",this.value))};
_.p.stopPropagation=function(B){B.stopPropagation()};
_.p.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var B=this.canvas.getContext("2d");B&&(B.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(B.measureText(this.inputEl.value).width)+24)+"px")}};
_.p.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var B=0,R=this.data.entries.length;B<R;B++){var V=this.data.entries[B],e;for(e in V)if(V.hasOwnProperty(e)){var X=V[e];if("isSelected"in X&&X.isSelected)return"stringValue"in X?X.stringValue||"":"int32Value"in X?X.int32Value||0:0}}return null};
_.p.updateValueFromBinding=function(B){this.value=B.detail.value};
_.mh.Object.defineProperties(Fh.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 B=0,R=this.data.entries.length;B<R;B++){var V=this.data.entries[B],e;for(e in V)if(V.hasOwnProperty(e)){var X=V[e];if("isSelected"in X&&X.isSelected&&"label"in X)return this.ytRendererBehavior.getSimpleString(X.label)}}return null}}});
Fh.prototype.autoSizeLabel=Fh.prototype.autoSizeLabel;Fh.prototype.stopPropagation=Fh.prototype.stopPropagation;Fh.prototype.valueChangedForBinding=Fh.prototype.valueChangedForBinding;Fh.prototype.dataChanged=Fh.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Fh.prototype,"ytRendererStamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Fh.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Fh.prototype,"disabled",void 0);_.r([_.E(),_.Z("design:type",Object)],Fh.prototype,"value",void 0);_.r([_.E(),_.Z("design:type",Object)],Fh.prototype,"noLabelFloat",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Fh.prototype,"noUnderline",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],Fh.prototype,"theme",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Fh.prototype,"usePrimaryColor",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Fh.prototype,"hasBackground",void 0);_.r([_.E(),_.Z("design:type",Object)],Fh.prototype,"verticalAlign",void 0);_.r([_.E(),_.Z("design:type",Object)],Fh.prototype,"autosize",void 0);_.r([_.E(),_.Z("design:type",Object)],Fh.prototype,"minAutosizeWidth",void 0);_.r([_.E(),_.Z("design:type",Object)],Fh.prototype,"autosizeFont",void 0);
_.r([_.Yp("#entries"),_.Z("design:type",Object)],Fh.prototype,"entries",void 0);_.r([_.Yp("#input"),_.Z("design:type",Object)],Fh.prototype,"inputEl",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fh.prototype,"dataChanged",null);_.r([_.bp("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fh.prototype,"valueChangedForBinding",null);
_.r([_.R_("iron-overlay-opened"),_.R_("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Fh.prototype,"stopPropagation",null);_.r([_.R_("iron-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fh.prototype,"autoSizeLabel",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Fh.prototype,"label",null);
Fh=_.r([_.A({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Fh);
_.F(Fh,"ytd-dropdown-renderer",function(){if(JYG!==void 0)return JYG;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return JYG=B},{mode:1});var Uz_;var r_=function(){var B=_.c.apply(this,arguments)||this;B.isConstrainedList=!1;return B};
_.l(r_,_.c);r_.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"}}}};
r_.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
r_.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
r_.prototype.computeViewAllHidden=function(B,R){return B||!R.viewAllEndpoint};
r_.prototype.fillRestIfNoShowMore=r_.prototype.fillRestIfNoShowMore;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.CL.YtLazyListBehavior),_.Z("design:type",Object)],r_.prototype,"ytLazyListBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],r_.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],r_.prototype,"isConstrainedList",void 0);_.r([_.bp("data","canShowMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],r_.prototype,"fillRestIfNoShowMore",null);r_=_.r([_.A({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],r_);
_.F(r_,"ytd-expanded-shelf-contents-renderer",function(){if(Uz_!==void 0)return Uz_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Uz_=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var N54;var g_=function(){return _.c.apply(this,arguments)||this};
_.l(g_,_.c);g_.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}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],g_.prototype,"data",void 0);g_=_.r([_.A({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],g_);
_.F(g_,"ytd-feed-channel-filter-header-renderer",function(){if(N54!==void 0)return N54;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return N54=B},{mode:1});var GhT;var yYS;var SK4;var ZD=function(){return _.c.apply(this,arguments)||this};
_.l(ZD,_.c);_.p=ZD.prototype;_.p.onClick=function(B){var R,V=(R=this.data)==null?void 0:R.sectionEndpoint;!_.g1(_.Az(B),this.hostElement,["A".toString()])&&V&&_.OI(this.hostElement,"yt-navigate",{endpoint:V})};
_.p.computeHasSectionEndpoint=function(B){return(B==null?void 0:B.sectionEndpoint)!==void 0};
_.p.computeShowHeaderAsLink=function(B){return(B==null?void 0:B.header)!==void 0&&(B==null?void 0:B.sectionEndpoint)!==void 0};
_.p.computeShowSubheaderAsLink=function(B){return(B==null?void 0:B.subheader)!==void 0&&(B==null?void 0:B.sectionEndpoint)!==void 0&&(B==null?void 0:B.header)===void 0};
_.p.getHeaderAsLinkClass=function(B){var R=[],V;(B==null?0:(V=B.headerIcon)==null?0:V.iconType)&&R.push("header-link-active");return R.join(" ")};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ZD.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ZD.prototype,"data",void 0);
_.r([_.E({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],ZD.prototype,"hasSectionEndpoint",void 0);_.r([_.E({computed:"computeShowHeaderAsLink(data)"}),_.Z("design:type",Boolean)],ZD.prototype,"showHeaderAsLink",void 0);_.r([_.E({computed:"computeShowSubheaderAsLink(data)"}),_.Z("design:type",Boolean)],ZD.prototype,"showSubheaderAsLink",void 0);ZD=_.r([_.A({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],ZD);
_.F(ZD,"ytd-medical-panel-section-renderer",function(){if(SK4!==void 0)return SK4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return SK4=B},{mode:1});var ms=function(){var B=_.c.apply(this,arguments)||this;B.isExpanded=!1;B.roundedContainer=!0;B.skipRoundingTop=!1;B.toggleExpandableSection=function(){B.isExpanded=!B.isExpanded};
return B};
_.l(ms,_.c);
ms.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]]"}}}}}};
ms.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
ms.prototype.dataChanged=ms.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ms.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],ms.prototype,"isExpanded",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ms.prototype,"roundedContainer",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ms.prototype,"skipRoundingTop",void 0);_.r([_.E(),_.Z("design:type",Object)],ms.prototype,"toggleExpandableSection",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ms.prototype,"dataChanged",null);ms=_.r([_.A({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],ms);
_.F(ms,"ytd-medical-panel-content-renderer",function(){if(yYS!==void 0)return yYS;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return yYS=B},{mode:1});_.aO("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var $7=function(){var B=_.c.apply(this,arguments)||this;B.roundedContainer=!0;B.amsterdamEnabled=_.k("enable_desktop_amsterdam_info_panels");B.hasTitle=!1;B.linkIcon="OPEN_IN_NEW";B.isDismissed=!1;return B};
_.l($7,_.c);
$7.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"}}}};
$7.prototype.computeHasTitle=function(B){return!(B==null||!B.title)};
$7.prototype.onClick=function(B){var R,V=(R=this.data)==null?void 0:R.headerEndpoint;!_.g1(_.Az(B),this.hostElement,["BUTTON".toString()])&&V&&this.ytComponentBehavior.resolveCommand(V)};
_.mh.Object.defineProperties($7.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 B;return((B=this.data)==null?void 0:B.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:B.disableBottomDivider)||!((R=this.data)==null?0:R.title)}}});
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],$7.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$7.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],$7.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$7.prototype,"amsterdamEnabled",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Z("design:type",Object)],$7.prototype,"hasTitle",void 0);
_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.background"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$7.prototype,"background",null);_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.titleStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$7.prototype,"titleStyle",null);
_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.K("data.titleStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$7.prototype,"showLinkIcon",null);_.r([_.E(),_.Z("design:type",String)],$7.prototype,"linkIcon",void 0);_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$7.prototype,"hideDivider",null);
_.r([_.E({selectorArgs:["data.dismissStateEntityKey"],selector:function(B,R){B=_.p7(B.entities,"dismissState",R);return(B==null?void 0:B.isDismissed)||(B==null?void 0:B.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(B==null?void 0:B.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.Z("design:type",Object)],$7.prototype,"isDismissed",void 0);$7=_.r([_.A({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],$7);
_.F($7,"ytd-info-panel-container-renderer",function(){if(GhT!==void 0)return GhT;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return GhT=B},{mode:1});var HBo;_.aO("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Co=function(){var B=_.c.apply(this,arguments)||this;B.modernTypography=_.k("web_modern_typography");return B};
_.l(Co,_.c);Co.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Co.prototype.computeStyle=function(B){return B?B:""};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Co.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Co.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Z("design:type",String)],Co.prototype,"titleStyle",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Co.prototype,"modernTypography",void 0);Co=_.r([_.A({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Co);
_.F(Co,"ytd-item-section-header-renderer",function(){if(HBo!==void 0)return HBo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return HBo=B},{mode:1});var M3_;var khb,DzS=function(){return khb!==void 0?khb:khb=document.createElement("template")};
document.head.appendChild(DzS().content);var fi_;_.Ph=new _.u0("VOTING_ANIMATION_CONTROLLER_TOKEN");var zcl=_.sx(function(B){var R=B.data;var V=_.Zh(),e=_.Zh();B=_.h(_.WU("VOTE_STATUS_NONE",void 0,"FVF7mc"));var X=B.next().value,Y=B.next().value,t=_.No(BJZ,function(){var M;return(M=R())==null?void 0:M.entityKey}),b=_.k("web_enable_voting_animation")||_.k("enable_music_web_cairo_voting_animation");
_.zM(function(){var M;((M=R().initialState)==null?0:M.status)&&Y(R().initialState.status)});
var J=function(){var M,f,z=(f=(M=R().initialState)==null?void 0:M.votes)!=null?f:0,T;M=(T=R().initialState)==null?void 0:T.status;return M==="VOTE_STATUS_UPVOTED"?z-1:M==="VOTE_STATUS_DOWNVOTED"?z+1:z},G=function(){return X()==="VOTE_STATUS_UPVOTED"?J()+1:X()==="VOTE_STATUS_DOWNVOTED"?J()-1:J()},y=function(M){var f=M?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
Y(f);var z=G(),T=_.Oz().resolve(_.uj(_.Ph)),L=t();L&&(M&&(L==null?0:L.upvoteDefaultButtonOnTap)?_.Lc(L.upvoteDefaultButtonOnTap,{form:{element:V.value},disableClickTracking:!0}):(L==null?0:L.upvoteToggledButtonOnTap)&&_.Lc(L.upvoteToggledButtonOnTap,{form:{element:V.value},disableClickTracking:!0}));var Q;M=(Q=L==null?void 0:L.enableOptimisticReordering)!=null?Q:R().enableOptimisticReordering;b&&T&&R().itemId&&M&&li2(T,R().itemId,z,f)},S=function(M){var f=M?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
Y(f);var z=G(),T=_.Oz().resolve(_.uj(_.Ph)),L=t();L&&(M&&(L==null?0:L.downvoteDefaultButtonOnTap)?_.Lc(L.downvoteDefaultButtonOnTap,{form:{element:e.value},disableClickTracking:!0}):(L==null?0:L.downvoteToggledButtonOnTap)&&_.Lc(L.downvoteToggledButtonOnTap,{form:{element:e.value},disableClickTracking:!0}));var Q;M=(Q=L==null?void 0:L.enableOptimisticReordering)!=null?Q:R().enableOptimisticReordering;b&&T&&R().itemId&&M&&li2(T,R().itemId,z,f)};
B={};B=_.XE("ytVotingViewModelVoteCount",(B.ytVotingViewModelVoteCountDisabled=function(){return R().isDisabled},B));
return _.N("voting-view-model",{class:"ytVotingViewModelHost"},_.N("div",{el:V},_.N(_.wb,{data:function(){var M=_.D(R().upvoteButton,_.xx);return{toggleButtonViewModel:Object.assign({},M,{isToggled:X()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(M){return _.N(_.LO,{data:M.data,
onToggle:y})}})),_.N("div",{class:B},function(){var M,f,z;
return X()==="VOTE_STATUS_UPVOTED"?(M=R().initialState)==null?void 0:M.compactVotesUpvoted:X()==="VOTE_STATUS_DOWNVOTED"?(f=R().initialState)==null?void 0:f.compactVotesDownvoted:(z=R().initialState)==null?void 0:z.compactVotes}),_.N("div",{el:e},_.N(_.wb,{data:function(){var M=_.D(R().downvoteButton,_.xx);
return{toggleButtonViewModel:Object.assign({},M,{isToggled:X()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(M){return _.N(_.LO,{data:M.data,
onToggle:S})}})))},"Db");_.mR(_.sx(function(B){var R=B.data;return _.N("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.N("div",{class:_.XE("ytEngagementBarViewModelEngagementBarWrapper",B.className)},_.N(_.wb,{data:function(){return R().actions}},{votingViewModel:zcl})))},"Eb"),"engagement-bar-view-model",{props:{data:_.qq,
className:_.qq}});var no=function(){var B=_.c.apply(this,arguments)||this;B.amsterdamPostMvp=_.k("web_amsterdam_post_mvp_playlists");B.cairoCollabPlaylistPostMvp=_.k("web_collab_playlist_thumbnail_size");B.playlistVotingAnimationEnabled=_.k("web_enable_voting_animation");B.downloadProgress=0;B.transferState="TRANSFER_STATE_UNKNOWN";B.downloadState="DOWNLOAD_STATE_UNKNOWN";B.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";B.offlineVideoPolicyExpirationTimestamp=0;return B};
_.l(no,_.c);_.p=no.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=_.k("kevlar_playlist_drag_handles")&&this.canReorder};
_.p.onDrag=function(){if(this.thumbnail){var B=_.w(this.thumbnail).querySelector("yt-image");B&&(B.shouldRenderLazy=!1)}};
_.p.onMenuOverlayChanged=function(B,R){this.menuOpened=R};
_.p.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.p.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.p.onContentsTap=function(B){var R,V=(R=this.data)==null?void 0:R.serviceEndpoints;if(V&&V.length===1&&_.D(V[0],tTS)&&!_.g1(_.Az(B),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(V[0]);else{var e;(R=(e=this.data)==null?void 0:e.navigationEndpoint)&&_.k("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?ail(_.Oz().resolve(_.An),R):(_.Up().playlistSuggestionsShelfActivation=
!0,_.dzh(_.Oz().resolve(_.An),R)):R&&!_.g1(_.Az(B),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.k("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.OI(this.hostElement,"yt-navigate",{endpoint:R}):this.ytComponentBehavior.resolveCommand(R))}};
_.p.computeStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.p.computeThumbnailWidth=function(B){return B==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.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=f0N(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 B,R,V,e=((B=this.downloadRenderData)==null?void 0:B.badges)&&((R=this.downloadRenderData)==null?void 0:R.badges)!==((V=this.data)==null?void 0:V.badges),X,Y,t;B=((X=this.downloadRenderData)==null?void 0:X.thumbnailOverlays)&&((Y=this.downloadRenderData)==null?void 0:Y.thumbnailOverlays)!==((t=this.data)==null?void 0:t.thumbnailOverlays);(!this.downloadRenderData||e||B)&&this.downloadStateChanged()}};
_.p.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var B,R,V=(B=this.data.menu)==null?void 0:(R=B.menuRenderer)==null?void 0:R.items;if(V)for(B=_.h(V),R=B.next();!R.done;R=B.next())if(R=R.value,V=void 0,_.D((V=R.menuServiceItemRenderer)==null?void 0:V.serviceEndpoint,_.Lt)){var e=V=void 0,X=void 0;R=(V=R)==null?void 0:(e=V.menuServiceItemRenderer)==null?void 0:(X=e.serviceEndpoint)==null?void 0:X.playlistEditEndpoint;X=e=void 0;if(V=(e=R)==null?void 0:(X=e.actions)==null?void 0:
X[0])e=void 0,V.setVideoId=(e=this.data)==null?void 0:e.setVideoId;X=e=V=void 0;if(R=(V=R)==null?void 0:(e=V.clientActions)==null?void 0:(X=e[0])==null?void 0:X.playlistRemoveVideosAction)V=void 0,R.setVideoIds=[(V=this.data)==null?void 0:V.setVideoId]}}};
_.mh.Object.defineProperties(no.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
no.prototype.setVideoIdChanged=no.prototype.setVideoIdChanged;no.prototype.dataChanged=no.prototype.dataChanged;no.prototype.downloadStateChanged=no.prototype.downloadStateChanged;no.prototype.onMenuOverlayChanged=no.prototype.onMenuOverlayChanged;no.prototype.canReorderChanged=no.prototype.canReorderChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],no.prototype,"ytdReduxBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],no.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],no.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],no.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],no.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],no.prototype,"amsterdamPostMvp",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],no.prototype,"canReorder",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],no.prototype,"menuOpened",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],no.prototype,"handleIsHovered",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],no.prototype,"persistentDragHandle",void 0);
_.r([_.E(),_.Z("design:type",Object)],no.prototype,"downloadRenderData",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],no.prototype,"styleType",void 0);_.r([_.E({computed:"computeThumbnailWidth(data.style)"}),_.Z("design:type",Number)],no.prototype,"thumbnailWidth",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],no.prototype,"isDownloads",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],no.prototype,"cairoCollabPlaylistPostMvp",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],no.prototype,"playlistVotingAnimationEnabled",void 0);_.r([_.E({selector:L7,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],no.prototype,"downloadProgress",void 0);_.r([_.E(),_.Z("design:type",Number)],no.prototype,"relativeDateReference",void 0);
_.r([_.E({selector:_.Tz,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],no.prototype,"transferState",void 0);_.r([_.E({selector:mfI,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],no.prototype,"downloadState",void 0);_.r([_.E({selector:vix,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],no.prototype,"offlinePolicyAction",void 0);_.r([_.E({selector:K8S,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],no.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.r([_.E({selector:Eid,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],no.prototype,"entityInfo",void 0);_.r([_.E({selector:_.d6}),_.Z("design:type",Boolean)],no.prototype,"miniplayerIsActive",void 0);_.r([_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],no.prototype,"playlistVideoId",null);_.r([_.Yp("#thumbnail"),_.Z("design:type",Object)],no.prototype,"thumbnail",void 0);
_.r([_.bp("canReorder"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],no.prototype,"canReorderChanged",null);_.r([_.R_("yt-menu-overlay-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Boolean]),_.Z("design:returntype")],no.prototype,"onMenuOverlayChanged",null);
_.r([_.bp("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],no.prototype,"downloadStateChanged",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],no.prototype,"dataChanged",null);
_.r([_.bp("data.setVideoId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],no.prototype,"setVideoIdChanged",null);no=_.r([_.A({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],no);
_.F(no,"ytd-playlist-video-renderer",function(){if(fi_!==void 0)return fi_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);B.content.insertBefore(DzS().content.cloneNode(!0),B.content.firstChild);return fi_=B},{mode:1});var wN5;var uO=function(){return _.c.apply(this,arguments)||this};
_.l(uO,_.c);_.r([_.E(),_.Z("design:type",Object)],uO.prototype,"data",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],uO.prototype,"rendererBehavior",void 0);uO=_.r([_.A({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],uO);
_.F(uO,"ytd-premium-browse-footer-renderer",function(){if(wN5!==void 0)return wN5;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wN5=B},{mode:1});var T5v;var Om=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return B};
_.l(Om,_.c);_.p=Om.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.handleDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.p.computeHeaderLogoThumbnail=function(B,R){if(B)return R?B.darkLogo:B.lightLogo};
_.p.computeHeaderLogoHeight=function(B,R){var V,e,X;return(B=(V=this.computeHeaderLogoThumbnail(B,R))==null?void 0:(e=V.thumbnails)==null?void 0:(X=e[0])==null?void 0:X.height)&&B%31===0?"31":"24"};
_.p.computeHeaderLogoMarginBottom=function(B,R){return this.computeHeaderLogoHeight(B,R)==="24"?"0":"-7"};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Om.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Om.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],Om.prototype,"isDarkTheme",void 0);_.r([_.E({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Z("design:type",Object)],Om.prototype,"themeLogo",void 0);
_.r([_.E({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Z("design:type",String)],Om.prototype,"logoHeight",void 0);_.r([_.E({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Z("design:type",String)],Om.prototype,"logoMarginBottom",void 0);Om=_.r([_.A({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Om);
_.F(Om,"ytd-primetime-promo-header-renderer",function(){if(T5v!==void 0)return T5v;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return T5v=B},{mode:1});var xz4;_.oA(evZ);var LrS=_.sx(function(B){var R=B.text;var V=B.className;var e=B.tagLevel;return _.N(_.MN,null,_.N(_.Sv,{when:function(){return(e==null?void 0:e())===0}},function(){return _.N("h2",{class:V},R())}),_.N(_.Sv,{when:function(){return(e==null?void 0:e())===1}},function(){return _.N("h3",{class:V},R())}),_.N(_.Sv,{when:function(){return(e==null?void 0:e())===2}},function(){return _.N("h4",{class:V},R())}),_.N(_.HE,null,function(){return _.N("h2",{class:V},R())}))},"Fb"),vsv=_.sx(function(B){var R=_.Wr(function(X){var Y;
(Y=B.onClick)==null||Y.call(B,X)}),V={},e={};
return _.N("yt-shelf-header-layout",{class:_.XE("shelf-header-layout-wiz",(V["shelf-header-layout-wiz--disable-horizontal-padding"]=B.disableHorizontalPadding,V["shelf-header-layout-wiz--disable-vertical-padding"]=B.disableVerticalPadding,V["shelf-header-layout-wiz--responsive"]=B.useResponsiveLayout,V["shelf-header-layout-wiz--narrow"]=function(){var X,Y;return((X=B.useResponsiveLayout)==null?void 0:X.call(B))&&((Y=B.forceSmallLayout)==null?void 0:Y.call(B))},V["shelf-header-layout-wiz--is-overlay"]=
B.isOverlay,V["shelf-header-layout-wiz--tappable"]=!!B.onClick,V)),
"on:click":R,tabindex:B.onClick?0:void 0},_.N(_.H,{cond:B.leadingIcon,then:function(X){return _.N("div",{class:"shelf-header-layout-wiz__leading-icon"},_.N(_.Us,{icon:X}))},
else:function(){return _.N(_.H,{cond:B.hasLeadingImage,then:function(){var X,Y={};return _.N("div",{class:_.XE("shelf-header-layout-wiz__leading-image",(Y["shelf-header-layout-wiz__leading-image--circular-image"]=B.circularImage,Y))},(X=B.leadingImage)==null?void 0:X.call(B))}})}}),_.N("div",{class:"shelf-header-layout-wiz__label-container"},_.N(_.H,{cond:B.hasSuperlabel,
then:function(){var X;return _.N("div",{class:"shelf-header-layout-wiz__superlabel"},(X=B.superlabel)==null?void 0:X.call(B))}}),_.N("div",{class:"shelf-header-layout-wiz__title-row"},_.N(LrS,{text:B.title,
className:_.XE("shelf-header-layout-wiz__title",(e["shelf-header-layout-wiz__title--small-title"]=B.forceSmallLayout,e)),tagLevel:B.tagLevel}),_.N(_.H,{cond:B.hasDetail,then:function(){var X;return _.N("div",{class:"shelf-header-layout-wiz__detail"},(X=B.detail)==null?void 0:X.call(B))}})),_.N(_.H,{cond:B.hasSublabel,
then:function(){var X;return _.N("div",{class:"shelf-header-layout-wiz__sublabel"},(X=B.sublabel)==null?void 0:X.call(B))}})),_.N(_.H,{cond:B.hasTrailingActions,
then:function(){var X;return _.N("div",{class:"shelf-header-layout-wiz__trailing-actions"},(X=B.trailingActions)==null?void 0:X.call(B))}}))},"Gb"),b9d=_.k("web_enable_sink_section_header")?vsv:evZ,KrG=_.k("web_enable_sink_section_header")?vsv:_.h3(evZ,{callbacks:{title:!0,
detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}});vsv.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};var W$u=_.ll({flexibleActionsViewModel:eSv});_.oA(Jtu);var qKo;qKo=_.sx(function(B){var R=B.data;return _.N("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.jQ({"background-color":function(){return Rvd(R().backgroundColor)?_.zF(Rvd(R().backgroundColor)):void 0}})},_.N(KrG,{hasDetail:!1,
title:function(){return _.N(_.Hr,{text:function(){return R().headline}})},
hasTitle:!0,sublabel:function(){return _.N(IiG,{data:R})},
hasSublabel:function(){return!!R().sublabel||!!R().bottomBadge},
superlabel:function(){return _.N(Es2,{data:R})},
hasSuperlabel:function(){return!!R().superlabel||!!R().topBadge},
leadingImage:function(){return _.N(QMJ,{leadingAccessory:function(){return R().leadingAccessory}})},
hasLeadingImage:function(){return!!R().leadingAccessory},
trailingActions:function(){return _.N(_.wb,{data:function(){return R().trailingActions}},{flexibleActionsViewModel:DC})},
hasTrailingActions:function(){return!!R().trailingActions},
disableHorizontalPadding:B.disableHorizontalPadding,disableVerticalPadding:B.disableVerticalPadding,forceSmallLayout:B.forceSmallLayout,useResponsiveLayout:B.useResponsiveLayout,isOverlay:B.isOverlay,onClick:function(V){if(_.rb(R().rendererContext)){var e=_.Ft(R().rendererContext);e&&_.wl(e,{form:{element:V.target,event:V}})}}}))},"Hb");
_.on=_.k("web_enable_sink_section_header")?qKo:_.h3(Jtu);qKo.idomCompat=!0;var QMJ=_.sx(function(B){var R=B.leadingAccessory;return _.N(_.OZ,null,_.N(_.H,{cond:function(){var V;return(V=R().image)!=null?V:_.OQ(R().themedImage)},
then:function(V){return _.N(_.ia,{data:V,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.N(_.H,{cond:function(){return _.D(R().avatar,_.$x)},
then:function(V){return _.N(_.TP,{data:V})}}))},"Ib"),IiG=_.sx(function(B){var R=B.data;
return _.N(_.OZ,null,_.N(_.H,{cond:function(){return _.D(R().bottomBadge,pFA)},
then:function(V){var e={};return _.N(_.Za,{data:V,class:_.XE((e.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!V()&&!!R().sublabel},e))})}}),_.N(_.H,{cond:function(){return R().sublabel},
then:function(V){return _.N(_.Hr,{text:V})}}))},"Jb"),Es2=_.sx(function(B){var R=B.data;
return _.N(_.OZ,null,_.N(_.H,{cond:function(){return _.D(R().topBadge,pFA)},
then:function(V){var e={};return _.N(_.Za,{data:V,class:_.XE((e.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!V()&&!!R().superlabel},e))})}}),_.N(_.H,{cond:function(){return R().superlabel},
then:function(V){return _.N(_.Hr,{text:V})}}))},"Kb");_.mR(_.on,"yt-section-header-view-model",{props:{data:_.qq,className:_.qq,disableHorizontalPadding:_.qq,disableVerticalPadding:_.qq,forceSmallLayout:_.qq,useResponsiveLayout:_.qq,isOverlay:_.qq}});_.aO("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var BZ=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return B};
_.l(BZ,_.c);_.p=BZ.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 B=this;_.gB(this,function(){B.updateItemVisibility()})};
_.p.onUpdateElementsPerRowAction=function(B){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B,this.updateItemVisibility())};
_.p.updateItemVisibility=function(){var B=this;this.data&&this.data.panels&&_.w(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(R,V){R.hidden=V>B.elementsPerRow-1})};
_.p.requestElementsPerRow=function(){_.OI(this.hostElement,"yt-request-elements-per-row")};
BZ.prototype.onDataChange=BZ.prototype.onDataChange;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],BZ.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],BZ.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],BZ.prototype,"data",void 0);_.r([_.E({value:3}),_.Z("design:type",Number)],BZ.prototype,"elementsPerRow",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BZ.prototype,"onDataChange",null);BZ=_.r([_.A({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],BZ);
_.F(BZ,"ytd-primetime-promo-renderer",function(){if(xz4!==void 0)return xz4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return xz4=B},{mode:1});var cYT;var Rn=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return B};
_.l(Rn,_.c);Rn.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Rn.prototype.handleButtonRefreshAction=function(B){if(B=_.D(B,_.D6_))this.set("data.button",B.membershipButton),this.notifyPath("data.button")};
_.mh.Object.defineProperties(Rn.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:(R=B.avatars)==null?void 0:R.slice(0,8))||[]}}});
_.r([_.E(),_.Z("design:type",Object)],Rn.prototype,"data",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Rn.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Rn.prototype,"rendererBehavior",void 0);_.r([_.K("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],Rn.prototype,"avatars",null);
Rn=_.r([_.A({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Rn);
_.F(Rn,"ytd-recognition-shelf-renderer",function(){if(cYT!==void 0)return cYT;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return cYT=B},{mode:1});var AY_;var iBb;var Vl=function(){var B=_.c.apply(this,arguments)||this;B.modernButtons=_.k("web_modern_buttons");return B};
_.l(Vl,_.c);_.p=Vl.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]]"}},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(B,R){return B!==void 0&&B.items?R?B.items.slice(0,this.data.collapsedItemCount):B.items:[]};
_.p.computeHideShowMore=function(B,R,V){return B>=R||!V};
_.p.computeHideShowAll=function(B,R,V){return!(B&&R)||V};
_.p.onMoreClick=function(){this.collapsed=!1};
_.mh.Object.defineProperties(Vl.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.k("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Vl.prototype.dataChanged=Vl.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Vl.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Vl.prototype,"isSearch",void 0);
_.r([_.E({computed:"computeVisibleItems(data,collapsed)"}),_.Z("design:type",Array)],Vl.prototype,"visibleItems",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],Vl.prototype,"collapsed",void 0);_.r([_.E({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Z("design:type",Boolean)],Vl.prototype,"hideShowMore",void 0);
_.r([_.E({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Z("design:type",Boolean)],Vl.prototype,"hideShowAll",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Vl.prototype,"modernButtons",void 0);_.r([_.K("isSearch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Vl.prototype,"typographyBump",null);
_.r([_.K("isSearch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Vl.prototype,"thumbnailWidth",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vl.prototype,"dataChanged",null);Vl=_.r([_.A({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Vl);
_.F(Vl,"ytd-vertical-list-renderer",function(){if(iBb!==void 0)return iBb;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return iBb=B},{mode:1});var sM5=_.$Q(["#"]);_.aO("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var eN=function(){var B=_.c.apply(this,arguments)||this;B.isConstrainedList=!1;B.modernTypography=_.k("web_modern_typography");return B};
_.l(eN,_.c);_.p=eN.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(B){return B||""};
_.p.computePlaceAnnotationUnderTitle=function(){var B;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((B=this.data)==null?void 0:B.thumbnailStyle)||"")};
_.p.computeHrefWithDefault=function(B){return this.ytComponentBehavior.computeHref_(B)||_.MV(sM5)};
_.p.computeIsPromoShelf=function(B){var R;return(B=B==null?void 0:(R=B[0])==null?void 0:R.metadataBadgeRenderer)?B.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.p.computePlaceBadgeBesideTitle=function(B){var R;return(B==null?0:(R=B[0])==null?0:R.metadataBadgeRenderer)?!this.computeIsPromoShelf(B):!1};
_.p.computeMenuIcon=function(B){return this.computeIsPromoShelf(B)?"yt-icons:more_vert":"yt-icons:more"};
_.p.onDataChange=function(){var B,R;((B=this.data)==null?0:(R=B.content)==null?0:R.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.p.onLockupRequested=function(B){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&B.detail&&B.detail.videoIds){for(var R=this.data.content.gridRenderer.items,V=new Set,e=_.h(B.detail.videoIds),X=e.next();!X.done;X=e.next())V.add(X.value);B.detail.returnValue=R.filter(function(Y){return Y.gridVideoRenderer&&Y.gridVideoRenderer.videoId&&V.has(Y.gridVideoRenderer.videoId)}).map(function(Y){return Y.gridVideoRenderer})}};
_.p.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
eN.prototype.onLockupRequested=eN.prototype.onLockupRequested;eN.prototype.onDataChange=eN.prototype.onDataChange;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],eN.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],eN.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.LC),_.Z("design:type",Object)],eN.prototype,"ironResizableBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],eN.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],eN.prototype,"isSearch",void 0);_.r([_.E(),_.Z("design:type",Object)],eN.prototype,"isConstrainedList",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("kevlar_fluid_dismiss")}}),
_.Z("design:type",Boolean)],eN.prototype,"enableFluidDismiss",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Z("design:type",String)],eN.prototype,"thumbnailStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],eN.prototype,"modernTypography",void 0);_.r([_.E({computed:"computeMenuIcon(data.badges)"}),_.Z("design:type",String)],eN.prototype,"menuIcon",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eN.prototype,"onDataChange",null);_.r([_.R_("yt-lockup-requested"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],eN.prototype,"onLockupRequested",null);eN=_.r([_.A({is:"ytd-shelf-renderer",disableElementRegistration:!0})],eN);
_.F(eN,"ytd-shelf-renderer",function(){if(AY_!==void 0)return AY_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return AY_=B},{mode:1});var Frl;var X4=function(){return _.c.apply(this,arguments)||this};
_.l(X4,_.c);X4.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.mh.Object.defineProperties(X4.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],X4.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],X4.prototype,"isPlaylist",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],X4.prototype,"isClipList",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],X4.prototype,"isPlaylistPageWithFilters",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],X4.prototype,"hasTitle",null);_.r([_.E(),_.K("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],X4.prototype,"isRightAligned",null);
X4=_.r([_.A({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],X4);
_.F(X4,"ytd-sort-filter-header-renderer",function(){if(Frl!==void 0)return Frl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Frl=B},{mode:1});var rY4;var pA=function(){return _.c.apply(this,arguments)||this};
_.l(pA,_.c);
pA.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]]"}}}}}};
pA.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.mh.Object.defineProperties(pA.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.k("enable_creator_details_shelf_m2")){var B=[],R;((R=this.data)==null?0:R.creatorVideosButton)&&B.push(this.data.creatorVideosButton);var V;((V=this.data)==null?0:V.creatorAboutButton)&&B.push(this.data.creatorAboutButton);R=_.h(this.data.creatorCustomUrlButtons||[]);for(V=R.next();!V.done;V=R.next())B.push(V.value);return B}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.k("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],pA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Pu.YtdHorizontalListBehavior),_.Z("design:type",Object)],pA.prototype,"ytdHorizontalListBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],pA.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pA.prototype,"engagementPanel",void 0);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pA.prototype,"creatorCustomUrlButtons",null);_.r([_.E({reflectToAttribute:!0}),_.K("data","creatorCustomUrlButtons"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pA.prototype,"showCreatorCustomUrlButtons",null);_.r([_.K("showCreatorCustomUrlButtons"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],pA.prototype,"channelAvatarSize",null);
pA=_.r([_.A({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],pA);
_.F(pA,"ytd-video-description-infocards-section-renderer",function(){if(rY4!==void 0)return rY4;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return rY4=B},{mode:_.up("kevlar_poly_si_batch_j067")?1:2});var gsb;var Yr=function(){return _.c.apply(this,arguments)||this};
_.l(Yr,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Yr.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.infoIcon)"}),_.Z("design:type",Object)],Yr.prototype,"infoIcon",void 0);Yr=_.r([_.A({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Yr);
_.F(Yr,"ytd-eom-settings-disclaimer-renderer",function(){if(gsb!==void 0)return gsb;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return gsb=B},{mode:1});var ZBv;var he=function(){return _.c.apply(this,arguments)||this};
_.l(he,_.c);_.mh.Object.defineProperties(he.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.suppressPaddingDisclaimer)}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],he.prototype,"componentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],he.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],he.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],he.prototype,"suppressPaddingDisclaimer",null);he=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],he);
_.F(he,"ytd-product-list-header-renderer",function(){if(ZBv!==void 0)return ZBv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ZBv=B},{mode:1});var mzG;var te=function(){return _.c.apply(this,arguments)||this};
_.l(te,_.c);te.prototype.computeThumbnailStyle=function(B){if(B&&(B=_.li(B)))return"background-color:"+B+";"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],te.prototype,"rendererBehaviors",void 0);_.r([_.E(),_.Z("design:type",Object)],te.prototype,"data",void 0);te=_.r([_.A({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],te);
_.F(te,"ytd-hashtag-tile-renderer",function(){if(mzG!==void 0)return mzG;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return mzG=B},{mode:1});var $z5;var WZ=function(){return _.c.apply(this,arguments)||this};
_.l(WZ,_.c);WZ.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}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],WZ.prototype,"data",void 0);WZ=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],WZ);
_.F(WZ,"ytd-sponsorships-alert-renderer",function(){if($z5!==void 0)return $z5;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return $z5=B},{mode:1});var Ctv;var bc=function(){return _.c.apply(this,arguments)||this};
_.l(bc,_.c);bc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.mh.Object.defineProperties(bc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.k("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.k("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.r([_.v(_.TY),_.Z("design:type",Object)],bc.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],bc.prototype,"ytdLockupBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.r([_.E({selector:_.Av}),_.Z("design:type",Object)],bc.prototype,"isGridViewEnabled",void 0);
_.r([_.K("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bc.prototype,"watchFeedBigThumbs",null);_.r([_.K("isGridViewEnabled"),_.E({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],bc.prototype,"thumbnailWidth",null);_.r([_.E(),_.Z("design:type",Object)],bc.prototype,"data",void 0);bc=_.r([_.A({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],bc);
_.F(bc,"ytd-compact-movie-renderer",function(){if(Ctv!==void 0)return Ctv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Ctv=B},{mode:1});var Ptb;var nsG;var u9J=_.vE("HTML_DIR")==="rtl",Je=function(){var B=_.c.apply(this,arguments)||this;B.engagementPanel=!1;B.maxLines=2;B.expandButtonOffset=0;B.showExpandButton=!1;B.isTruncated=!1;B.isExpanded=!1;B.currentSnippetType=2;B.alwaysShowExpandButton=!1;B.JSC$14183_lastWidth=NaN;B.observer=null;B.left=0;B.right=0;B.mid=0;B.longestSnippetLength=0;B.isFinalSnippet=!1;B.isFirstMutation=!1;B.isResetMutation=!1;B.OVERFLOW_THRESHOLD=5;return B};
_.l(Je,_.c);_.p=Je.prototype;_.p.onClick=function(B){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.g1(_.Az(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var R;if((R=window.getSelection())==null||!R.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.p.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.p.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.p.updateTextOnSnippetTypeChange=function(){_.k("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.p.setUpBinarySearch=function(B){B=B*this.maxLines/8;this.left=0;var R,V;this.right=Math.min(B*2,(V=(R=this.simpleText)==null?void 0:R.length)!=null?V: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()&&_.KE(new _.H8("AttributedSnippet is empty when the description is not empty",this.text))};
_.p.mutationCallback=function(){if(this.observer!=null){var B=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var R=Math.floor(B*this.maxLines/8);this.setSnippetText(this.text,R);R!==0||this.attributedTextIsEmpty()||_.KE(new _.H8("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;B=B*this.maxLines/8;this.left=0;var V;this.right=Math.min(B*2,(V=(R=this.simpleText)==null?void 0:R.length)!=null?V: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(B){var R=this;this.observer||(this.observer=new MutationObserver(function(){R.mutationCallback()}));
this.observer.observe(B,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.p.attached=function(){var B=this;_.gB(this,function(){B.resize()})};
_.p.isExpandedChanged=function(){_.OI(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 B="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((u9J?"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",B);this.snippetContainer.style.setProperty("mask-image",
B)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(u9J?"right":"left",this.expandButtonOffset+"px")};
_.p.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.p.setSnippetText=function(B,R){B||(B={});if(_.QM(B)){var V=VNd(B,R);V.attachmentRuns||V.commandRuns||V.decorationRuns||V.styleRuns||V.alignment||V.lineBreakMode?this.attributedSnippetTextEl?(_.k("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=VNd(B,R),this.attributedSnippetTextEl.headerRuns=RLZ(R,this.headerRuns)):this.attributedSnippetText={data:VNd(B,R),headerRuns:RLZ(R,this.headerRuns)},this.currentSnippetType=0):_.KE(new _.H8("Tried to set snippet text when HTML element was null",
B)):(this.plainSnippetText.textContent=Kc(B.content||"",R),this.currentSnippetType=2)}else{a:{V=jy_(B,R);if(V.runs){V=_.h(V.runs);for(var e=V.next();!e.done;e=V.next())if(e=e.value,e.bold||e.deemphasize||e.italics||e.strikethrough||e.textColor||e.navigationEndpoint||_.D(e,la)){V=!0;break a}}V=!1}V?this.formattedSnippetText?(this.formattedSnippetText.text=jy_(B,R),this.currentSnippetType=1):_.KE(new _.H8("Tried to set snippet text when HTML element was null",B)):(this.plainSnippetText.textContent=
Kc(_.FF(B),R),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 B=this.text;if(!_.QM(B))return!0;var R;return((R=B.content)==null?void 0:R.length)===0?!0:!1};
_.p.resize=function(B){if(this.snippetText){if(B===void 0?0:B)this.JSC$14183_lastWidth=NaN;var R=this.hostElement.offsetWidth;if(R!==this.JSC$14183_lastWidth&&!this.isExpanded)if(this.JSC$14183_lastWidth=R,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;B=0;var V,e;R=Math.min(R*this.maxLines/8*2,(e=(V=this.simpleText)==null?void 0:V.length)!=null?e:0)-1;for(V=0;B<=R;)e=Math.floor(B+(R-B)/2),this.setSnippetText(this.text,e),this.isOverflowing()?R=e-1:(B=e+1,V=e);this.setSnippetText(this.text,V);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 B=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.k("inline_expander_reset_focus_killswitch")||_.gB(this,function(){var R;((R=_.Oz().resolve(_.uj(_.DE)))==null?0:R.isKeyBoardInUse())&&_.rV(B.hostElement)});
_.OI(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.p.onCollapseClick=function(){this.collapse();_.OI(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 B=this.expandSizer;return B?u9J?B.offsetParent?B.offsetParent.offsetWidth-B.offsetWidth-B.offsetLeft:0:B.offsetLeft:0};
_.mh.Object.defineProperties(Je.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.QM(this.text)?this.text.content||"":_.FF(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 _.QM(this.text)?!0:this.text&&_.k("web_replace_formatted_with_attributed_string")&&lDo(this.text)?(this.text=_.fc(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}}});
Je.prototype.onTextChanged=Je.prototype.onTextChanged;Je.prototype.updateMaskAndExpandButtonOffset=Je.prototype.updateMaskAndExpandButtonOffset;Je.prototype.updateSnippetContainerMaxHeight=Je.prototype.updateSnippetContainerMaxHeight;Je.prototype.isExpandedChanged=Je.prototype.isExpandedChanged;Je.prototype.updateTextOnSnippetTypeChange=Je.prototype.updateTextOnSnippetTypeChange;Je.prototype.updateIsFormattedExpanded=Je.prototype.updateIsFormattedExpanded;Je.prototype.updateIsAttributedExpanded=Je.prototype.updateIsAttributedExpanded;
Je.prototype.onClick=Je.prototype.onClick;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Je.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Je.prototype,"text",void 0);_.r([_.E(),_.Z("design:type",Array)],Je.prototype,"headerRuns",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Je.prototype,"engagementPanel",void 0);_.r([_.E(),_.Z("design:type",Object)],Je.prototype,"maxLines",void 0);
_.r([_.E(),_.Z("design:type",String)],Je.prototype,"expandLabel",void 0);_.r([_.E(),_.Z("design:type",String)],Je.prototype,"collapseLabel",void 0);_.r([_.E(),_.Z("design:type",Object)],Je.prototype,"expandCommand",void 0);_.r([_.E(),_.Z("design:type",Object)],Je.prototype,"expandButtonOffset",void 0);_.r([_.K("text"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Je.prototype,"simpleText",null);
_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Je.prototype,"onClick",null);_.r([_.K("text","isExpanded"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Je.prototype,"expandedText",null);_.r([_.K("headerRuns","isExpanded"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Je.prototype,"expandedHeaderRuns",null);
_.r([_.K("text"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Je.prototype,"hasAttributedStringText",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Je.prototype,"showExpandButton",void 0);_.r([_.K("collapseLabel","isExpanded"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Je.prototype,"showCollapseButton",null);_.r([_.E(),_.Z("design:type",Object)],Je.prototype,"isTruncated",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Je.prototype,"isExpanded",void 0);_.r([_.E(),_.Z("design:type",Boolean)],Je.prototype,"isAttributedExpanded",void 0);_.r([_.XX("isExpanded","hasAttributedStringText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Je.prototype,"updateIsAttributedExpanded",null);_.r([_.E(),_.Z("design:type",Boolean)],Je.prototype,"isFormattedExpanded",void 0);
_.r([_.XX("isExpanded","hasAttributedStringText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Je.prototype,"updateIsFormattedExpanded",null);_.r([_.E(),_.Z("design:type",Number)],Je.prototype,"currentSnippetType",void 0);_.r([_.K("currentSnippetType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Je.prototype,"useAttributedSnippet",null);
_.r([_.K("currentSnippetType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Je.prototype,"useFormattedSnippet",null);_.r([_.K("currentSnippetType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Je.prototype,"usePlainSnippet",null);_.r([_.E(),_.Z("design:type",Object)],Je.prototype,"alwaysShowExpandButton",void 0);_.r([_.XX("currentSnippetType"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Je.prototype,"updateTextOnSnippetTypeChange",null);
_.r([_.E(),_.Z("design:type",Object)],Je.prototype,"attributedSnippetText",void 0);_.r([_.Yp("#snippet"),_.Z("design:type",HTMLElement)],Je.prototype,"snippetContainer",void 0);_.r([_.Yp("#snippet-text"),_.Z("design:type",HTMLElement)],Je.prototype,"snippetText",void 0);_.r([_.Yp("#plain-snippet-text"),_.Z("design:type",HTMLElement)],Je.prototype,"plainSnippetText",void 0);_.r([_.Yp("#formatted-snippet-text"),_.Z("design:type",Object)],Je.prototype,"formattedSnippetText",void 0);
_.r([_.Yp("#attributed-snippet-text"),_.Z("design:type",Object)],Je.prototype,"attributedSnippetTextEl",void 0);_.r([_.Yp("#expand"),_.Z("design:type",HTMLElement)],Je.prototype,"expandButton",void 0);_.r([_.Yp("#expand-sizer"),_.Z("design:type",HTMLElement)],Je.prototype,"expandSizer",void 0);_.r([_.bp("isExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Je.prototype,"isExpandedChanged",null);
_.r([_.XX("isExpanded","maxLines"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Je.prototype,"updateSnippetContainerMaxHeight",null);_.r([_.XX("isTruncated","showExpandButton","expandButtonOffset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Je.prototype,"updateMaskAndExpandButtonOffset",null);
_.r([_.bp("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Je.prototype,"onTextChanged",null);Je=_.r([_.A({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Je);
_.F(Je,"ytd-text-inline-expander",function(){if(nsG===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);nsG=B}B=nsG;return B},{mode:2});var jN=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return B};
_.l(jN,_.c);jN.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
jN.prototype.handleUpdateDescriptionAction=function(B){if(B=_.D(B,_.a0o))if(B.attributedDescription)this.set("data.attributedDescriptionBodyText",B.attributedDescription);else if(B.description){var R;((R=this.data)==null?0:R.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.fc(B.description)):this.set("data.descriptionBodyText",B.description)}};
_.mh.Object.defineProperties(jN.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null||!B.attributedDescriptionBodyText)||!((R=this.data)==null||!R.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null?0:B.collapsedLineCount){var R;return(R=this.data)==null?void 0:R.collapsedLineCount}B=_.RC("web_watch_description_collapsed_default_lines",12);if(_.k("ww_desc_line_page_size_ks"))return B;R=Math.round(_.N1().height*_.RC("web_watch_description_screen_height_percentage",.5)/20);return Math.max(R,B)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return(V=(B=this.data)==null?void 0:B.descriptionBodyText)!=null?V:(R=this.data)==null?void 0:R.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.sourceAttributions}}});
jN.prototype.panelContentVisibleChanged=jN.prototype.panelContentVisibleChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],jN.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],jN.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],jN.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],jN.prototype,"panelContentVisible",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],jN.prototype,"engagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],jN.prototype,"shortsPanel",void 0);_.r([_.Yp("#inline-expander"),_.Z("design:type",Object)],jN.prototype,"inlineExpander",void 0);
_.r([_.XX("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jN.prototype,"panelContentVisibleChanged",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],jN.prototype,"hasDescriptionText",null);_.r([_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],jN.prototype,"collapsedLines",null);
_.r([_.K("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jN.prototype,"descriptionText",null);_.r([_.K("data","data.headerRuns"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jN.prototype,"headerRuns",null);_.r([_.K("data","data.sourceAttributions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],jN.prototype,"sourceAttributions",null);
jN=_.r([_.A({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],jN);
_.F(jN,"ytd-expandable-video-description-body-renderer",function(){if(Ptb!==void 0)return Ptb;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Ptb=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var OBl;var ohG=_.sx(function(B){var R=B.data;return _.N("factoid-renderer",{class:"ytwFactoidRendererHost"},_.N("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return R().accessibilityText}},_.N("span",{class:"ytwFactoidRendererValue"},_.N(_.Hr,{text:function(){return R().value}})),_.N("span",{class:"ytwFactoidRendererLabel"},_.N(_.Hr,{text:function(){return R().label}}))))},"Lb");_.mR(ohG,"factoid-renderer",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;return _.N("upload-time-factoid-renderer",null,_.N(_.wb,{data:function(){return R().factoid}},{factoidRenderer:ohG}))},"Mb"),"upload-time-factoid-renderer",{props:{data:_.Z9}});_.mR(_.sx(function(B){var R=B.data;return _.N("view-count-factoid-renderer",null,_.N(_.wb,{data:function(){return R().factoid}},{factoidRenderer:ohG}))},"Nb"),"view-count-factoid-renderer",{props:{data:_.Z9}});var Uw=function(){var B=_.c.apply(this,arguments)||this;B.shortsPanel=!1;B.engagementPanel=!1;B.watchWhileSdp=_.k("shorts_desktop_watch_while_sdp");return B};
_.l(Uw,_.c);Uw.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"}}}}};
_.mh.Object.defineProperties(Uw.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var B;return(B=this.data)==null?void 0:B.channel}}});
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Uw.prototype,"componentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Uw.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"shortsPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"engagementPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"watchWhileSdp",void 0);_.r([_.K("shortsPanel","engagementPanel","data.channel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Uw.prototype,"showChannelInfo",null);Uw=_.r([_.A({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Uw);
_.F(Uw,"ytd-video-description-header-renderer",function(){if(OBl!==void 0)return OBl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return OBl=B},{mode:1});var BWv;var N8=function(){return _.c.apply(this,arguments)||this};
_.l(N8,_.c);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],N8.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],N8.prototype,"noPadding",void 0);_.r([_.E(),_.Z("design:type",Object)],N8.prototype,"data",void 0);N8=_.r([_.A({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],N8);
_.F(N8,"ytd-list-item-view-model",function(){if(BWv!==void 0)return BWv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return BWv=B},{mode:1});var Rhl;var VUb;var ehT;var Xpa;var G9=function(){var B=_.c.apply(this,arguments)||this;B.adaptiveFullWidth=!1;B.modernButtons=_.k("web_modern_buttons");B.buttonOverrides={style:"call-to-action",type:"filled"};B.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return B};
_.l(G9,_.c);G9.prototype.handleSetTimestamp_=function(B){this.data&&this.data.shortUrl&&(_.w(this.hostElement).querySelector("#share-url").value=B.isSet?_.i9(this.data.shortUrl,"t",B.timestamp):this.data.shortUrl)};
G9.prototype.handleSignalActionCopyShareUrl_=function(B,R){(_.k("killswitch_copy_link_target_check")||_.w(this.hostElement).querySelector("#copy-button")===R)&&this.copyUrlToClipboard()};
G9.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.w(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
G9.prototype.computeStyle_=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],G9.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],G9.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Z("design:type",String)],G9.prototype,"rendererStyle",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],G9.prototype,"adaptiveFullWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],G9.prototype,"modernButtons",void 0);_.r([_.E(),_.Z("design:type",Object)],G9.prototype,"buttonOverrides",void 0);G9=_.r([_.fJ({is:"yt-copy-link-renderer",disableElementRegistration:!0})],G9);
_.F(G9,"yt-copy-link-renderer",function(){if(Xpa===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;ehT===void 0&&(ehT=document.createElement("template"));var e=ehT;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Xpa=B}B=Xpa;return B},{mode:2});_.aO("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var yl=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return B};
_.l(yl,_.c);_.p=yl.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 B=_.Oz().resolve(_.uj(_.DE));B&&(this.keyboardFocused=B.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 B=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;B&&this.ytComponentBehavior.resolveCommand(B);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.p.handleUpdateToggleAction_=function(B){(B=_.D(B,EP4))&&this.data&&B.targetId==this.data.targetId&&this.set("data.toggled",B.toggled)};
_.p.toBoolean_=function(B){return!!B};
_.p.reset=function(){};
_.p.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("data-changed",this.data))};
_.p.updateDataToggledFromBinding=function(B){this.set("data.toggled",B.detail.value)};
yl.prototype.dataChangedForBinding=yl.prototype.dataChangedForBinding;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],yl.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],yl.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],yl.prototype,"data",void 0);_.r([_.E({computed:"computeDescription_(data.*)"}),_.Z("design:type",Object)],yl.prototype,"description_",void 0);_.r([_.E({value:function(){return!!_.Oz().resolve(_.uj(_.DE))&&_.k("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Z("design:type",Boolean)],yl.prototype,"useKeyboardFocused",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],yl.prototype,"keyboardFocused",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yl.prototype,"dataChangedForBinding",null);yl=_.r([_.fJ({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],yl);
_.F(yl,"yt-toggle-form-field-renderer",function(){if(VUb===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Rhl===void 0&&(Rhl=document.createElement("template"));var e=Rhl;V.call(R,e.content.cloneNode(!0),B.content.firstChild);VUb=B}B=VUb;return B},{mode:2});var ppb;var YRo;var SN=function(){var B=_.c.apply(this,arguments)||this;B.isDarkTheme=!1;B.isSearch=!1;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.noTopMargin=_.k("kevlar_watch_no_top_margin");B.maskFade=_.k("web_watch_chips_mask_fade");B.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 B};
_.l(SN,_.c);_.p=SN.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 B=this.getSelectedIndex();if(B>0)this.selected=B;else{this.selected=0;var R,V;(R=this.ytScrollableChipCloudBehavior)==null||(V=R.reset)==null||V.call(R)}};
_.p.getSelectedIndex=function(){var B;if((B=this.data)==null||!B.chips)return-1;B=-1;for(var R,V=0;V<((R=this.data)==null?void 0:R.chips.length);V++){var e=void 0,X=void 0;if((e=this.data)==null?0:(X=e.chips[V].chipCloudChipRenderer)==null?0:X.isSelected){B=V;break}}return B};
_.p.onResize=function(){var B=this.ytScrollableChipCloudBehavior;_.gB(B,B.setContainerWidthDiff);R1(this.ytScrollableChipCloudBehavior)};
_.p.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.p.handleRelatedChipCommand=function(B,R){B=this.JSC$14210_chipsSelector.indexOf(R);B!==-1&&this.JSC$14210_chipsSelector.selectIndex(B)};
_.p.handleChipCloudChipSelectAction=function(B){B=this.JSC$14210_chipsSelector.indexOf(B);B>-1&&this.JSC$14210_chipsSelector.selectIndex(B)};
_.p.handleChipCloudChipDeselectAction=function(){var B=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14210_chipsSelector&&((B==null?0:B.continuationCommand)?_.VD(this.hostElement,[B]):(B==null?0:B.searchEndpoint)?this.ytComponentBehavior.resolveCommand(B):B&&_.eO(this.hostElement,[B],this.hostElement),this.JSC$14210_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.p.updateSelectedFromBinding=function(B){this.selected=B.detail.value};
SN.prototype.onResize=SN.prototype.onResize;SN.prototype.dataChanged=SN.prototype.dataChanged;SN.prototype.isSearchChanged=SN.prototype.isSearchChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],SN.prototype,"actionHandlerBehavior",void 0);
_.r([_.v(_.LC),_.Z("design:type",Object)],SN.prototype,"ironResizableBehavior",void 0);_.r([_.v(),_.Z("design:type",Bh)],SN.prototype,"ytScrollableChipCloudBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],SN.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],SN.prototype,"data",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],SN.prototype,"selected",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SN.prototype,"isDarkTheme",void 0);_.r([_.E({value:160}),_.Z("design:type",Number)],SN.prototype,"scrollDistance",void 0);_.r([_.E(),_.Z("design:type",Object)],SN.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SN.prototype,"darkerDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SN.prototype,"noTopMargin",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SN.prototype,"maskFade",void 0);_.r([_.Yp("#chips"),_.Z("design:type",Object)],SN.prototype,"JSC$14210_chipsSelector",void 0);_.r([_.XX("isSearch"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SN.prototype,"isSearchChanged",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SN.prototype,"dataChanged",null);
_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SN.prototype,"onResize",null);SN=_.r([_.fJ({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],SN);
_.F(SN,"yt-chip-cloud-renderer",function(){if(YRo===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;ppb===void 0&&(ppb=document.createElement("template"));var e=ppb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);YRo=B}B=YRo;return B},{mode:2});var hhG,tUa=function(){return hhG!==void 0?hhG:hhG=document.createElement("template")};
document.head.appendChild(tUa().content);var WU2;var b5R=document.head,J9G=b5R.appendChild,jlR;if(WU2===void 0){var UFa=document.createElement("template");_.a(UFa,"");UFa.content.insertBefore(tUa().content.cloneNode(!0),UFa.content.firstChild);WU2=UFa}jlR=WU2;J9G.call(b5R,jlR.content);var NWa=_.sx(function(B){var R=B.data;return _.N("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.N("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.N("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.N(_.H,{cond:function(){return _.OQ(R().image)},
then:function(V){return _.N("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.N(_.ia,{data:V,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.N("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.N(_.Hr,{text:function(){return R().title}})),_.N("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.N(_.Hr,{text:function(){return R().subtitle}})))),_.N(_.H,{cond:function(){var V;
return(V=R())==null?void 0:V.hasBottomDivider},
then:function(){return _.N("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ob");var GC5=_.sx(function(B){var R=B.data;return _.N("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.N("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.N(_.wb,{data:function(){var V;return(V=R().offerPlanDetailsItem)!=null?V:[]}},{offerPlanDetailsItemViewModel:function(V){return _.N("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.N(NWa,{data:V.data}))}})),_.N("div",null,_.N(_.H,{cond:function(){return R().hasBottomDivider},
then:function(){return _.N("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.N("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.N("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.N("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.N("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Pb");var y9R=_.sx(function(B){var R=B.data;B=_.h(_.WU(!1,void 0,"SpEGQd"));var V=B.next().value,e=B.next().value,X=_.Wr(function(){e(!V());return!1}),Y=function(){var t;
return(t=R().offerPlanDetailsContainer)!=null?t:[]};
return _.N("lp-complex-offer-card-details-view-model",null,_.N("div",null,_.N(_.H,{cond:function(){return V()},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.N("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":X,"aria-expanded":V},_.N(_.Hr,{text:function(){return R().expandedTitle}})),_.N("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.N(_.wb,{data:Y},{offerPlanDetailsContainerViewModel:function(t){return _.N("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.N(GC5,{data:t.data}))}})),_.N("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.N(_.Hr,{text:function(){return R().legalText}})))},
else:function(){return _.N("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":X,"aria-expanded":V},_.N(_.Hr,{text:function(){return R().collapsedTitle}}),_.N("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.N(_.Us,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Qb");var SRR=_.sx(function(B){var R=B.data;return _.N("lp-complex-offer-card-option-view-model",null,_.N("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.N(_.H,{cond:function(){return R().topDividerText},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.N("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.N("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.N("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.N(_.Hr,{text:function(){return R().topDividerText}}))))}}),_.N(_.H,{cond:function(){return R().planPricingPrimary},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.N(_.Hr,{text:function(){return R().planPricingPrimary}}))}}),_.N(_.H,{cond:function(){return R().planPricingSecondary},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.N(_.Hr,{text:function(){return R().planPricingSecondary}}))}}),_.N(_.H,{cond:function(){return R().primaryButton},
then:function(){return _.N("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.N(_.wb,{data:function(){return R().primaryButton}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Rb");var H5_=_.sx(function(B){var R=B.data;var V=function(){var Y;return((Y=R())==null?void 0:Y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
B={};var e={},X={};return _.N("ytm-lp-complex-offer-card-view-model",null,_.N("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.N("div",{class:_.XE((B.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=V,B),"ytmLpComplexOfferCardViewModelCardContainer")},_.N(_.H,{cond:function(){var Y;return(Y=R())==null?void 0:Y.bannerText},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.N("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.N(_.Hr,{text:function(){return R().bannerText}})))}}),_.N(_.H,{cond:function(){return _.OQ(R().logo)},
then:function(Y){var t={};return _.N("div",{class:_.XE((t.ytmLpComplexOfferCardViewModelLogoAlignLeft=V,t),"ytmLpComplexOfferCardViewModelLogo")},_.N(_.ia,{data:Y,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.N("div",{class:_.XE((e.ytmLpComplexOfferCardViewModelTitleAlignLeft=V,e),"ytmLpComplexOfferCardViewModelTitle")},_.N(_.Hr,{text:function(){return R().title}})),_.N(_.H,{cond:function(){var Y;
return(Y=R())==null?void 0:Y.subtitle},
then:function(){var Y={};return _.N("div",{class:_.XE((Y.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=V,Y),"ytmLpComplexOfferCardViewModelSubtitle")},_.N(_.Hr,{text:function(){return R().subtitle}}))}}),_.N(_.H,{cond:function(){return R().planPricingPrimary},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.N(_.Hr,{text:function(){return R().planPricingPrimary}}))}}),_.N(_.H,{cond:function(){return R().planPricingSecondary},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.N(_.Hr,{text:function(){return R().planPricingSecondary}}))}}),_.N(_.H,{cond:function(){return R().purchaseButton},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.N(_.wb,{data:function(){return R().purchaseButton}},{buttonViewModel:function(Y){return _.N(_.qo,{data:Y.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.N(_.H,{cond:function(){var Y;
return(Y=R())==null?void 0:Y.offerOptions},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.N(_.wb,{data:function(){return R().offerOptions}},{lpComplexOfferCardOptionViewModel:SRR}))}}),_.N("div",{class:_.XE((X.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=V,X),"ytmLpComplexOfferCardViewModelLegalText")},_.N(_.Hr,{text:function(){return R().legalText}})),_.N(_.H,{cond:function(){var Y;
return(Y=R())==null?void 0:Y.offerCardDetails},
then:function(){return _.N("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.N(_.wb,{data:function(){return R().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:y9R}))}}))))},"Sb");var MUT=_.sx(function(B){var R=B.data;var V=function(){var t;return((t=R())==null?void 0:t.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
B={};var e={},X={},Y={};return _.N("ytm-lp-complex-offer-card-section-view-model",null,_.N("div",{class:_.XE("ytmLpComplexOfferCardSectionViewModelHost")},_.N("div",{class:_.XE((B.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=V,B),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.N("div",{class:_.XE((e.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=V,e),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.N("h2",{class:_.XE((X.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
V,X),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.N(_.Hr,{text:function(){return R().title}}))),_.N(_.H,{cond:function(){var t;
return(t=R())==null?void 0:t.subtitle},
then:function(){var t={},b={};return _.N("div",{class:_.XE((t.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=V,t),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.N("div",{class:_.XE((b.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=V,b),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.N(_.Hr,{text:function(){return R().subtitle}})))}}),_.N("div",{class:_.XE((Y.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=V,Y),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.N(_.wb,{data:function(){var t;
return(t=R().offerPlans)!=null?t:[]}},{lpComplexOfferCardViewModel:function(t){return _.N("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.N(H5_,{data:t.data}))}})))))},"Tb");_.HZ=uW4.getInstance();var kC_=_.sx(function(B){return _.N("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":B.shouldAriaHideContent},_.N("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:B.questionId},_.N(_.Hr,{text:B.question})))},"Ub"),DF_=_.sx(function(B){var R=B.data;
var V=B.themeOverride;B=_.h(_.WU(!1,void 0,"ljTVPd"));var e=B.next().value,X=B.next().value;B=_.Wr(function(){X(!e());return!1});
var Y=function(){return e()?"EXPAND_LESS":"EXPAND_MORE"},t=("faq-container"+_.La(_.HZ)).toString(),b="faq-question-and-answers-section-question"+_.La(_.HZ),J={},G={};
return _.N("faq-entry-view-model-c3",null,_.N("div",{class:_.XE("yt-lp-faq-entry-view-model",(J["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return V==null?void 0:V().useDarkTheme},J))},_.N("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":B,role:"button","aria-expanded":e,"aria-labelledby":b.toString(),"tab-index":"0"},_.N(kC_,{question:function(){return R().question},
questionId:b,shouldAriaHideContent:!0}),_.N(_.H,{cond:function(){return e()!==void 0},
then:function(){return _.N("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.N(_.Us,{icon:Y,ariaHidden:!0}),_.N("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.N("div",{class:_.XE("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(G["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!e()},G))},_.N("div",{id:t},_.N(_.yh,{each:function(){return R().answers||[]}},function(y){return _.N("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.N(_.Hr,{text:y}))})))))},"Vb");
DF_.idomCompat=!0;var feG=_.sx(function(B){var R=B.data;var V=B.themeOverride;B={};return _.N("lp-faq-section-view-model-c3",null,_.N("div",{class:_.XE("yt-lp-faq-section-view-model",(B["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return R().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},B["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(V==null||!V().useDarkTheme)},B))},_.N("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.N(_.H,{cond:function(){return R().header},
then:function(e){return _.N("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.N(_.Hr,{text:e}))}}),_.N("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.N(_.wb,{data:function(){return R().faqs}},{faqEntryViewModel:function(e){return _.N(DF_,{data:e.data,
themeOverride:V})}})),_.N("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.N(_.yh,{each:function(){return R().footers||[]}},function(e){return _.N(_.Hr,{text:e})})),_.N(_.H,{cond:function(){return R().legal},
then:function(e){return _.N("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.N(_.Hr,{text:e}))}}))))},"Wb");
feG.idomCompat=!0;var leb=_.sx(function(B){var R=B.data;var V=B.themeOverride;_.zM(function(){var t=R().gtmId;t&&_.Nq(t,_.vE("GL",""))});
var e={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var t,b,J;return(J=(t=R().logo)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label)!=null?J:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},X=_.Oz().resolve(_.uj(_.E5)),Y=function(){return X&&X()||(V==null?void 0:V().useDarkTheme)};
return _.N("lp-header-section-view-model",null,_.N("div",{class:function(){var t=R().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",b=R().marginType==="LP_SECTION_MARGIN_TYPE_TOP",J=V==null?void 0:V().useDarkTheme,G=["lp-header-section-view-model"];t&&G.push("lp-header-section-view-model--ptc-layout-type");b&&G.push("lp-header-section-view-model__lp-header-section-margin");J&&G.push("lp-header-section-view-model--premium-force-dark-mode");return G.join(" ")}},_.N(_.H,{cond:function(){return R().logo},
then:function(){return _.N("div",null,_.N(_.H,{cond:Y,then:function(){return _.N(_.H,{cond:function(){var t;return(t=R().logo)==null?void 0:t.imageDark},
then:function(t){return _.N(_.ia,Object.assign({},{data:t},e))}})},
else:function(){return _.N(_.H,{cond:function(){var t;return(t=R().logo)==null?void 0:t.imageLight},
then:function(t){return _.N(_.ia,Object.assign({},{data:t},e))}})}}))}}),_.N(_.H,{cond:function(){return R().title},
then:function(t){return _.N("div",{class:"lp-header-section-view-model__lp-header-title"},_.N(_.Hr,{text:t}))}}),_.N("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.N(_.H,{cond:function(){return R().subtitles},
then:function(t){return _.N(_.yh,{each:t},function(b){return _.N("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.N(_.Hr,{text:b}))})}})),_.N(_.H,{cond:function(){return R().additionalInfo},
then:function(t){return _.N("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.N(_.Hr,{text:t}))}}),_.N("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.N(_.H,{cond:function(){return R().primaryButton},
then:function(t){return _.N("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.N(_.wb,{data:t},{buttonViewModel:_.qo}))}}),_.N(_.H,{cond:function(){return R().secondaryButton},
then:function(t){return _.N("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.N(_.wb,{data:t},{buttonViewModel:_.qo}))}})),_.N(_.H,{cond:function(){return R().otherOffersInfo},
then:function(t){return _.N("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.N(_.Hr,{text:t}))}}),_.N("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.N(_.H,{cond:function(){return R().billingInfo},
then:function(t){return _.N(_.yh,{each:t},function(b){return _.N("div",null,_.N(_.Hr,{text:b}))})}}))))},"Xb");
leb.idomCompat=!0;var zhh=_.sx(function(B){var R=B.data;var V=_.AM(B.themeOverride,{useDarkTheme:!1});B={};B=_.XE("ytm-lp-headline-section-view-model",(B["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return V().useDarkTheme},B));
return _.N("lp-headline-section-view-model",null,_.N("div",{class:B},_.N("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.N(_.Hr,{text:function(){return R().title}})),_.N(_.H,{cond:function(){return R().subtitle},
then:function(e){return _.N("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.N(_.Hr,{text:e}))}})))},"Yb");var aea=_.sx(function(B){var R=B.data;var V=B.themeOverride;var e=_.Oz().resolve(_.uj(_.E5)),X=function(){return e&&e()||(V==null?void 0:V().useDarkTheme)},Y=function(){var G,y;
var S=X()?(G=R().textBackgroundImage)==null?void 0:G.imageDark:(y=R().textBackgroundImage)==null?void 0:y.imageLight;return zLd((S==null?void 0:S.sources)||[])},t=function(){var G,y;
return X()?(G=R().featureImage)==null?void 0:G.imageDark:(y=R().featureImage)==null?void 0:y.imageLight},b=function(){return R().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},J=function(){var G,y;
return X()?(G=R().logo)==null?void 0:G.imageDark:(y=R().logo)==null?void 0:y.imageLight};
return _.N("ytm-lp-large-feature-section-view-model",null,_.N("div",{class:function(){var G=R().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",y=R().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",S=(R().index||0)%2===1,M=V==null?void 0:V().useDarkTheme,f=["yt-lp-large-feature-section-view-model"];G?f.push("yt-lp-large-feature-section-view-model--music-feature-type"):y?f.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):S||f.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
M&&f.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return f.join(" ")}},_.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.N(_.H,{cond:t,
then:function(){return _.N(_.ia,{data:function(){return t()},
alt:function(){var G,y,S;return(S=(G=R().featureImage)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label)!=null?S:""},
contentMode:b})}})),_.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var G;return((G=Y())==null?0:G.url)?"background-image: url("+_.ym(Y().url)+");":""}},_.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.N(_.H,{cond:J,
then:function(){return _.N(_.ia,{data:function(){return J()},
alt:function(){var G,y,S;return(S=(G=R().logo)==null?void 0:(y=G.accessibilityData)==null?void 0:y.label)!=null?S:""},
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"})}}),_.N(_.H,{cond:function(){return R().eyebrowText},
then:function(){return _.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.N(_.Hr,{text:function(){return R().eyebrowText}}))}}),_.N(_.H,{cond:function(){return R().title},
then:function(){return _.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.N(_.Hr,{text:function(){return R().title}}))}}),_.N(_.H,{cond:function(){return R().subtitles},
then:function(){return _.N("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.N(_.yh,{each:function(){return R().subtitles||[]}},function(G){return _.N(_.Hr,{text:G})}))}})))))},"Zb");
aea.idomCompat=!0;var dFv=_.sx(function(B){return _.N("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.N("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.N(_.Us,{icon:function(){var R;return(R=B.data())==null?void 0:R.iconType},
className:function(){var R;return((R=B.data())==null?void 0:R.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.N("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.N(_.Hr,{text:function(){var R;
return(R=B.data())==null?void 0:R.text}}))))},"$b");var wpS=_.sx(function(B){B=_.ip(B,{config:void 0,themeOverride:void 0});var R=B.data,V=B.config,e=B.themeOverride;B={};B=_.XE("ytm-lp-offer-card-option-view-model",(B["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var J;return(J=e())==null?void 0:J.useDarkTheme},B));
var X=_.Wr(function(){var J,G;(J=V())==null||(G=J.handleRadioButtonClick)==null||G.call(J,R());return!1}),Y=function(){var J;
return(J=V())==null?void 0:J.shouldDisplayRadioButton},t=_.Wr(function(){if(Y()){var J,G;
(J=V())==null||(G=J.handleRadioButtonClick)==null||G.call(J,R())}return!1}),b=function(){var J;
return(J=R().featureListItems)!=null?J:[]};
return _.N("ytm-lp-offer-card-option-view-model",null,_.N("div",{class:B,"on:click":t},_.N(_.H,{cond:Y,then:function(){return _.N("div",null,_.N("input",{type:"radio","on:click":X,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var J;return!((J=V())==null||!J.isOptionSelected)}}))}}),_.N("div",null,_.N("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.N(_.Hr,{text:function(){return R().eyebrowText}})),_.N("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.N(_.Hr,{text:function(){return R().title}})),_.N("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.N(_.Hr,{text:function(){return R().subtitle}})),_.N(_.H,{cond:function(){return b().length>0},
then:function(){return _.N("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.N(_.wb,{data:b},{lpFeatureListItemViewModel:dFv}))}}),_.N("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.N(_.Hr,{text:function(){return R().description}})))))},"ac");
wpS.idomCompat=!0;var TW5=_.sx(function(B){var R=B.data;var V=B.themeOverride;B=_.h(_.J3(function(){var Y,t=(Y=R().offerOptions)==null?void 0:Y[0];return _.D(t,Z8S)||{}}));
var e=B.next().value,X=B.next().value;B={};return _.N("ytm-lp-offer-card-view-model",null,_.N("div",{class:_.XE("ytm-lp-offer-card-view-model",(B["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(V==null||!V().useDarkTheme)},B))},_.N("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.N(_.H,{cond:function(){return R().titleIconType},
then:function(){return _.N("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.N(_.Us,{icon:function(){var Y;return((Y=R().titleIconType)==null?void 0:Y.toString())||""}}))}}),_.N("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.N(_.Hr,{text:function(){return R().title}})),_.N(_.wb,{data:function(){return R().titleBadge}},{badgeViewModel:function(Y){return _.N("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.N(_.Za,{data:Y.data}))}})),_.N("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.N(_.wb,{data:function(){return R().offerOptions}},{lpOfferCardOptionViewModel:function(Y){var t=Y.data;
return _.N(_.OZ,null,_.N("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.N(wpS,{data:t,config:function(){var b;return{shouldDisplayRadioButton:(R().offerOptions||[]).length>1,isOptionSelected:t().id===((b=e())==null?void 0:b.id),handleRadioButtonClick:function(J){return void X(J)}}},
themeOverride:V}))}})),_.N("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.N(_.wb,{data:function(){var Y;
return(Y=e())==null?void 0:Y.purchaseButtonOverride}},{buttonViewModel:_.qo}))))},"bc");
TW5.idomCompat=!0;var xF_=_.sx(function(B){var R=B.data;var V=B.themeOverride;B={};B=_.XE("ytm-lp-offer-card-section-view-model",(B["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var e;return V==null?void 0:(e=V())==null?void 0:e.useDarkTheme},B));
return _.N("ytm-lp-offer-card-section-view-model",null,_.N("div",{class:B},_.N(_.H,{cond:function(){return R().title!==void 0},
then:function(){return _.N("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.N("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.N(_.Hr,{text:function(){return R().title}})),_.N(_.H,{cond:function(){return R().subtitle},
then:function(){return _.N("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.N(_.Hr,{text:function(){return R().subtitle}}))}}))}}),_.N("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.N(_.wb,{data:function(){return R().offerCards}},{lpOfferCardViewModel:function(e){return _.N("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.N(TW5,{data:e.data,
themeOverride:V}))}})),_.N(_.H,{cond:function(){return R().footer},
then:function(){return _.N("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.N(_.Hr,{text:function(){return R().footer}}))}})))},"cc");var LU4=_.sx(function(B){var R=B.data;return _.N("lp-offer-table-cell-content-view-model",null,_.N("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.N(_.MN,null,_.N(_.Sv,{when:function(){return R().title}},function(){return _.N(_.Hr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return R().title}})}),_.N(_.Sv,{when:function(){return R().subTitle}},function(){return _.N(_.Hr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return R().subTitle}})}),_.N(_.Sv,{when:function(){return R().featureDescription}},function(){return _.N(_.Hr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return R().featureDescription}})}),_.N(_.Sv,{when:function(){return R().description}},function(){return _.N(_.Hr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return R().description}})}),_.N(_.Sv,{when:function(){return R().iconType}},function(){return _.N("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.N(_.Us,{icon:function(){return R().iconType.toString()}}))}),_.N(_.Sv,{when:function(){return R().purchaseButton}},function(){return _.N(_.wb,{data:function(){return R().purchaseButton}},{buttonViewModel:function(V){return _.N("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.N(_.qo,{data:V.data}))}})}),_.N(_.Sv,{when:function(){return R().note}},function(){return _.N(_.Hr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return R().note}})}),_.N(_.Sv,{when:function(){return R().featureDetail}},function(){return _.N(_.Hr,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return R().featureDetail}})}),_.N(_.Sv,{when:function(){return R().badge}},function(){return _.N(_.wb,{data:function(){return R().badge}},{badgeViewModel:_.Za})}))))},"dc");
LU4.idomCompat=!0;var vhG=_.sx(function(B){var R=B.data;return _.N("lp-offer-table-cell-view-model",null,_.N("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(R().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.N(_.wb,{data:function(){return R().contents}},{lpOfferTableCellContentViewModel:LU4})))},
"ec");
vhG.idomCompat=!0;var KU4=_.sx(function(B){var R=B.data;var V=B.lpTableIsFirstRow;var e=B.lpTableIsLastRow;var X=function(){return(V==null?0:V())?"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"},Y=function(){return(V==null?0:V())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(e==null?0:e())?"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 _.N("ytm-lp-offer-table-row-view-model",null,_.N("div",{class:"yt-lp-offer-table-row-view-model"},_.N(_.wb,{data:function(){return R().rowHeaderCell}},{lpOfferTableCellViewModel:function(t){return _.N("div",{class:X},_.N(vhG,{data:t.data}))}}),_.N(_.wb,{data:function(){return R().contentCells}},{lpOfferTableCellViewModel:function(t){return _.N("div",{class:Y},_.N(vhG,{data:t.data}))}})))},"fc");
KU4.idomCompat=!0;var Ieo=_.sx(function(B){var R=B.data;var V=B.themeOverride;var e=_.Oz().resolve(_.uj(_.E5)),X=function(){return _.D(R().logo,VSa)||{}};
B={};return _.N("ytm-lp-offer-table-section-view-model",null,_.N("div",{class:"yt-lp-offer-table-view-model"},_.N(_.H,{cond:function(){var Y,t;return e&&e()||(V==null?0:V().useDarkTheme)?(Y=X())==null?void 0:Y.imageDark:(t=X())==null?void 0:t.imageLight},
then:function(Y){return _.N(_.ia,{data:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var t,b,J;return(J=(t=X())==null?void 0:(b=t.accessibilityData)==null?void 0:b.label)!=null?J:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.N("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.N(_.Hr,{text:function(){return R().title}})),_.N("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.N(_.Hr,{text:function(){return R().subtitle}})),_.N(_.H,{cond:function(){return R().disclaimers},
then:function(Y){return _.N("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.N(_.yh,{each:Y},function(t){return _.N("div",null,_.N(_.Hr,{text:t}))}))}}),_.N("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.N(_.wb,{data:function(){return R().rows}},{lpOfferTableRowViewModel:function(Y,t){return _.N(KU4,{data:Y.data,
lpTableIsFirstRow:function(){return t()===0},
lpTableIsLastRow:function(){return t()===R().rows.length-1}})}})),_.N("div",{class:_.XE((B["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return R().hasFooterBackground},B))},_.N(_.H,{cond:function(){return R().footer},
then:function(){return _.N("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.N(_.Hr,{text:function(){return R().footer}}))}}),_.N(_.H,{cond:function(){return R().footerTitle},
then:function(){return _.N("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.N(_.Hr,{text:function(){return R().footerTitle}}))}}),_.N(_.H,{cond:function(){return R().footerDescription},
then:function(){return _.N("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.N(_.Hr,{text:function(){return R().footerDescription}}))}}))))},"gc");
Ieo.idomCompat=!0;var Ehl=_.sx(function(B){var R=B.data;var V=B.themeOverride;var e=_.Oz().resolve(_.uj(_.E5)),X=function(){var b;return V==null?void 0:(b=V())==null?void 0:b.useDarkTheme},Y=function(){var b,J;
return e&&e()||X()?(b=R().image)==null?void 0:b.imageDark:(J=R().image)==null?void 0:J.imageLight};
B={};B=_.XE("ytm-lp-small-feature-section-view-model",(B["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=X,B));var t=function(){var b,J,G;return(G=(b=R().image)==null?void 0:(J=b.accessibilityData)==null?void 0:J.label)!=null?G:""};
return _.N("ytm-lp-small-feature-section-view-model",{class:B},_.N(_.H,{cond:function(){return Y()&&!In5},
then:function(){return _.N("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.N(_.ia,{data:function(){return Y()},
alt:t,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.N("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.N("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.N(_.H,{cond:function(){return R().title},
then:function(b){return _.N(_.Hr,{text:b})}})),_.N("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.N(_.Hr,{text:function(){return R().description}}))))},"hc");
Ehl.idomCompat=!0;var Qlo=_.sx(function(B){var R=B.data;var V=B.themeOverride;B={};return _.N("ytm-lp-small-feature-section-group-view-model",null,_.N("div",{class:_.XE("ytm-lp-small-feature-section-group-view-model",(B["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(V==null||!V().useDarkTheme)},B))},_.N("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.N(_.wb,{data:function(){return R().smallFeatures}},{lpSmallFeatureSectionViewModel:function(e){return _.N("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.N(Ehl,{data:e.data,
themeOverride:V}))}}))))},"ic");
Qlo.idomCompat=!0;_.mR(_.sx(function(B){var R=B.data;var V=function(){return R().forcedTheme==="USER_INTERFACE_THEME_DARK"},e=function(){return R().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},X=function(){var t="",b,J;
var G=_.Oz().resolve(_.uj(_.E5));G=V()||(G==null?0:G())?(b=R().themedImageViewModel)==null?void 0:b.imageDark:(J=R().themedImageViewModel)==null?void 0:J.imageLight;(b=zLd((G==null?void 0:G.sources)||[]))&&b.url&&(t=e()?"background-image: linear-gradient(to bottom, transparent, "+(R().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.ym(b.url)+");":"background-image: url("+_.ym(b.url)+");");return t},Y=function(){return{useDarkTheme:V()}};
B={};return _.N("yt-section-group-view-model",null,_.N("div",{class:_.XE("yt-lp-section-group-view-model",(B["yt-lp-section-group-view-model--premium-force-dark-mode"]=V,B["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return R().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},B))},_.N(_.H,{cond:function(){return X().length},
then:function(){var t={};return _.N("div",{class:_.XE("yt-lp-section-group-view-model__bg-image",(t["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=e,t)),style:X})}}),_.N("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.N(_.wb,{data:function(){return R().sections}},{lpFaqSectionViewModel:function(t){return _.N(feG,{data:t.data,
themeOverride:Y})},
lpHeaderSectionViewModel:function(t){return _.N(leb,{data:t.data,themeOverride:Y})},
lpHeadlineSectionViewModel:function(t){return _.N(zhh,{data:t.data,themeOverride:Y})},
lpLargeFeatureSectionViewModel:function(t){return _.N(aea,{data:t.data,themeOverride:Y})},
lpOfferCardSectionViewModel:function(t){return _.N(xF_,{data:t.data,themeOverride:Y})},
lpComplexOfferCardSectionViewModel:function(t){return _.N(MUT,{data:t.data})},
lpOfferTableSectionViewModel:function(t){return _.N(Ieo,{data:t.data,themeOverride:Y})},
lpSmallFeatureSectionGroupViewModel:function(t){return _.N(Qlo,{data:t.data,themeOverride:Y})}}))))},"jc"),"yt-section-group-view-model",{props:{data:_.qq}});var G7q=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.qR4=_.sx(function(B){function R(){if(G7q.has(B.data().displayType)){var G=!e(),y;if((y=B.disableDeselection)==null||!y.call(B)||G){B.data().selected=G;y=Object.assign({},t(),{selected:G});b(y);var S;(S=B.callback)==null||S.call(B,y,G)}}}
var V=_.Zh(),e=function(){var G,y;return!!(((G=B.selected)==null?void 0:G.call(B))!==void 0?(y=B.selected)==null?0:y.call(B):t().selected)},X=_.h(_.J3(B.data)),Y=X.next().value;
X=X.next().value;var t=Y,b=X,J=_.No(NJA,function(){return B.data().chipEntityKey||""});
return _.N("chip-view-model",{class:"ytChipViewModelHost",el:V},_.N(HGR,{data:function(){var G,y=Object.assign({},t(),{selected:e()}),S=J(),M=(G=B.disableDeselection)==null?void 0:G.call(B);a:switch(y.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":G=1;break a;default:G=0}return{text:(S==null?void 0:S.text)||y.text,state:y.disabled?1:y.selected?0:2,type:G,onTap:ytp(y,V,R,M),accessibilityLabel:y.accessibilityLabel||y.text}}}))},"kc");
_.qR4.idomCompat={callbacks:{callback:!0}};_.c9l=_.sx(function(B){var R=_.No(Uhu,function(){var t;return(t=B.data())==null?void 0:t.chipBarStateEntityKey}),V=function(){return B.data().disableDeselection},e=_.h(_.J3(function(){var t;
if(((t=R())==null?void 0:t.selectedIndex)!=void 0)return R().selectedIndex;var b,J;t=_.h(((b=B.data())==null?void 0:(J=b.chips)==null?void 0:J.entries())||[]);for(b=t.next();!b.done;b=t.next()){b=_.h(b.value);J=b.next().value;b=b.next().value;var G=void 0;if((G=_.D(b,_.cL))==null?0:G.selected)return J}return-1})),X=e.next().value,Y=e.next().value;
return _.N("chip-bar-view-model",{class:_.XE("ytChipBarViewModelHost",B.className),role:"tablist"},_.N(_.wb,{data:function(){return B.data().chips}},{chipViewModel:function(t,b){return _.N("div",{class:"ytChipBarViewModelChipWrapper"},_.N(_.qR4,{data:t.data,
selected:function(){return b()===X()},
callback:function(J,G){J=!!G;G=b();Y(J?G:-1);var y,S=(y=B.data())==null?void 0:y.chipBarStateEntityKey;S&&J&&_.cc(_.SX("chipBarStateEntity",S,{key:S,selectedIndex:G}))},
disableDeselection:B.disableDeselection||V}))}}))},"lc");_.mR(_.c9l,"chip-bar-view-model",{props:{data:_.Z9,className:_.Z9,disableDeselection:_.Z9}});_.A9b=_.sx(function(B){var R=B.data;B={};return _.N("divider-view-model",{class:_.XE("divider-view-model-wiz",(B["divider-view-model-wiz__inset-thin-padding"]=function(){return R().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},B))},_.N("div",{class:_.XE("divider-view-model-wiz__base-divider",function(){return SPN(R().dividerStyle)}),
style:_.jQ({"background-color":function(){return R().backgroundColor?_.li(R().backgroundColor):void 0}})}))},"mc");
_.A9b.idomCompat=!0;_.mR(_.A9b,"divider-view-model",{props:{data:_.qq}});var Lw=new Map,x1=new Map,k7x=0,vI;var wFd=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],L$d={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var i5a,sl5;i5a=function(B){return function(R){return function(){return String(R())+B}}};
_.M8=i5a("px");sl5=i5a("s");var r9b=_.sx(function(B){function R(g){return function(){var Vu=f().numItemsPerGridRow,n=g()*Vu;Vu=n+Vu;var Yd,kd;return(kd=(Yd=e().contents)==null?void 0:Yd.slice(n,Vu))!=null?kd:[]}}
var V=_.ip(B,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),e=V.data,X=V.layoutContainerWidth,Y=V.shouldUseOwnContainerSize,t=V.marginSettings;V=_.h(_.WU(!0,void 0,"qgr2Je"));var b=V.next().value,J=V.next().value,G=function(){var g,Vu=(g=_.D(e().showMoreButton,_.Tr))==null?void 0:g.trackingParams;Vu&&_.WC(_.WK(),Vu);J(!1)},y=function(){var g,Vu=(g=_.D(e().showLessButton,_.Tr))==null?void 0:g.trackingParams;
Vu&&_.WC(_.WK(),Vu);J(!0)};
V=_.Zh();var S=_.K$u(V,{canHaveZeroSize:!1}),M=function(){var g;return(g=e().contentAspectRatio)!=null?g:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},f=_.NW(function(){var g=_.nO({containerWidth:Y()&&S.width()>0?S.width()||X():X(),
sizing:"EXTRA_COMPACT",marginSettings:t(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:g.maxContainerWidth,numItemsPerGridRow:g.numItems,contentPadding:Y()?g.margin:g.contentMargin,itemWidth:g.itemWidth,itemMargin:g.gutter/2}},void 0,"pqVdjc"),z=function(){if(e().enableVerticalExpansion){if(b())return 1;
var g,Vu,n=(Vu=(g=e().contents)==null?void 0:g.length)!=null?Vu:0;return Math.ceil(n/f().numItemsPerGridRow)}return f().numItemsPerGridRow<=2?2:1},T=function(){return e().enableVerticalExpansion&&e().showLessButton&&!b()&&z()>1},L=function(){var g,Vu;
return e().enableVerticalExpansion&&e().showMoreButton&&b()&&((Vu=(g=e().contents)==null?void 0:g.length)!=null?Vu:0)>f().numItemsPerGridRow},Q=function(){return!T()},q=function(){return!L()},m={};
return _.N("grid-shelf-view-model",{class:_.XE("ytGridShelfViewModelHost",B.className,(m.ytGridShelfViewModelHostHasBottomButton=function(){return T()||L()},m)),
el:V,style:_.jQ({"margin-left":(0,_.M8)(function(){return f().contentPadding}),
"margin-right":(0,_.M8)(function(){return f().contentPadding})})},_.N(_.H,{cond:function(){return _.D(e().header,N34)},
then:function(g){return _.N(_.on,{data:g,disableHorizontalPadding:!0})}}),_.N("div",null,_.N(_.yh,{each:function(){return Array(z())}},function(g,Vu){return _.N(FUv,{className:B.className,
items:R(Vu),responsiveGridShelfLayout:f,contentAspectRatio:M})})),_.N("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.N(_.wb,{data:function(){return e().showMoreButton}},{buttonViewModel:function(g){return _.N("div",{hidden:q},_.N(_.qo,{data:g.data,
onClick:G}))}}),_.N(_.wb,{data:function(){return e().showLessButton}},{buttonViewModel:function(g){return _.N("div",{hidden:Q},_.N(_.qo,{data:g.data,
onClick:y}))}})))},"nc");
r9b.idomCompat=!0;var FUv=_.sx(function(B){var R=B.items;var V=B.responsiveGridShelfLayout;var e=B.contentAspectRatio;B=B.className;var X=_.Zh();M0K(X,function(){a:{var t=X.value;for(var b=R(),J=[],G=0;G<b.length;G++){var y=_.D(b[G],uJ4);if(!y||y==null||!y.inlinePlayerData){t=null;break a}var S=t.children.item(G);if(!S){t=null;break a}J.push({thumbnailElement:S,videoData:y})}t={gridVideoPreviewData:{gridItems:J}}}return t});
var Y=(0,_.M8)(function(){return-V().itemMargin});
return _.N("div",{el:X,class:_.XE("ytGridShelfViewModelGridShelfRow",B),style:_.jQ({"margin-left":Y,"margin-right":Y})},_.N(_.wb,{data:R,replacementWrapper:function(t){return _.N(gh2,{responsiveGridShelfLayout:V},t)}},{shortsLockupViewModel:function(t){return _.N(gh2,{responsiveGridShelfLayout:V},_.N(T8a,{data:t.data,
aspectRatio:function(){return e()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"oc"),gh2=_.sx(function(B){return _.N("div",{style:_.jQ({width:(0,_.M8)(function(){return B.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+B.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},B.children)},"pc");
r9b.idomCompat=!0;_.mR(r9b,"grid-shelf-view-model",{props:{data:_.qq,layoutContainerWidth:_.qq,shouldUseOwnContainerSize:_.qq,marginSettings:_.qq,className:_.qq}});_.Z54=_.sx(function(B){var R=_.h(_.WU(!1,void 0,"YYtxR")),V=R.next().value,e=R.next().value;R={};return _.N("yt-alert-banner-view-model",{class:_.XE("ytAlertBannerViewModelHost",B.className,function(){var X;a:switch((X=B.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},(R.ytAlertBannerViewModelDismissed=
V,R.ytAlertBannerViewModelFullbleed=B.fullbleed,R.ytAlertBannerViewModelNarrow=B.narrow,R.ytAlertBannerViewModelIsInRichGrid=B.isInRichGrid,R))},_.N(_.H,{cond:function(){var X;
return!((X=B.data())==null?0:X.hideIcon)},
then:function(){return _.N("div",{class:"ytAlertBannerViewModelIcon"},_.N(_.Us,{icon:function(){return"info_circle"}}))}}),_.N("div",{class:"ytAlertBannerViewModelOuterContainer"},_.N("div",{class:"ytAlertBannerViewModelContainer"},_.N("div",{class:"ytAlertBannerViewModelContent"},_.N("div",{class:"ytAlertBannerViewModelHeading"},_.N(_.Hr,{text:function(){var X;
return(X=B.data())==null?void 0:X.heading}})),_.N("div",{class:"ytAlertBannerViewModelBody"},_.N(_.Hr,{text:function(){var X;
return(X=B.data())==null?void 0:X.body}})))),_.N(_.wb,{data:function(){var X;
return(X=B.data())==null?void 0:X.actionButton}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.N(_.wb,{data:function(){var X;
return(X=B.data())==null?void 0:X.dismissButton}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var Y;((Y=B.data())==null?0:Y.disableLocalDismissBehavior)||e(!0)}})}}))},"qc");_.mR(_.Z54,"yt-alert-banner-view-model",{props:{data:_.qq,fullbleed:_.qq,narrow:_.qq,isInRichGrid:_.qq,className:_.qq}});var IcA;IcA=_.ll({chipViewModel:_.qR4,buttonViewModel:_.qo});_.mF4=_.h3(EoY,{callbacks:{callback:!0}});_.oA(EoY);_.mR(_.mF4,"chips-shelf-view-model",{props:{data:_.qq,callback:_.Z9,enableSingleChipSelection:_.qq,disableChipsScrollAnimation:_.qq}});var $F5=_.sx(function(B){B=_.ip(B,{disabled:!1});var R=B.active,V=B.disabled;B={};B=_.XE("ytSwitchShapeTrack",(B.ytSwitchShapeTrackActive=function(){return R()},B.ytSwitchShapeTrackDisabled=function(){return V()},B));
var e={};e=_.XE("ytSwitchShapeKnob",(e.ytSwitchShapeKnobActive=function(){return R()},e));
return _.N("switch-shape",{class:"ytSwitchShapeHost"},_.N("div",{class:B}),_.N("div",{class:e}))},"rc");var CV2=_.sx(function(B){var R=_.ip(B,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),V=R.data;B=R.className;var e=R.handleOnTapEventInParent,X=R.parentActive;R=_.h(_.J3(function(){var S;return(S=X())!=null?S:V().switchedOnByDefault||!1}));
var Y=R.next().value,t=R.next().value,b=function(){return V().isDisabled},J=_.Zh();
R=_.Wr(function(S){return S.key==="Enter"?(S.preventDefault(),J.value.click(),!1):!0});
var G=_.Wr(function(S){if(V().handleOnTapEventInParent||e())return!0;if(b())return!1;qPY(V(),Y(),S);t(!Y());return!1}),y={};
y=_.XE("ytSwitchButtonViewModelButton",(y.ytSwitchButtonViewModelTappable=function(){return!b()},y));
return _.N("switch-button-view-model",{class:_.XE("ytSwitchButtonViewModelHost",B)},_.N("button",{el:J,class:y,"on:click":G,"on:keydown":R,"aria-label":function(){return Y()?V().a11yLabelSwitchedOn:V().a11yLabelSwitchedOff},
"aria-pressed":Y,"aria-disabled":b},_.N($F5,{active:Y,disabled:b})))},"sc");var nhJ=_.sx(function(B){var R=_.ip(B,{checked:!1});B=R.name;var V=R.onChange,e=R.onClick,X=R.checked,Y=R.labelRenderable,t=R.hasLeadingLabel,b=R.labelClass,J=R.isCompact,G=R.selectElementClass;R=R.disableHorizontalPadding;var y="checkbox"+_.La(_.HZ),S=_.Wr(function(z){e==null||e(z);return!1}),M=_.Wr(function(z){V==null||V(z);
return!1}),f={};
return _.N("checkbox-shape",null,_.N("label",{class:_.XE("checkbox-shape-wiz",b,(f["checkbox-shape-wiz--compact"]=J,f["checkbox-shape-wiz--disable-horizontal-padding"]=R,f))},_.N("input",{class:"checkbox-shape-wiz__input",id:y,checked:X,name:B,type:"checkbox","prop:checked":X,"on:change":M,"on:click":S}),_.N(_.H,{cond:function(){return!(t==null?0:t())},
then:function(){return _.N(PVo,{isLeading:!0,selectElementClass:G})}}),_.N(_.H,{cond:function(){return!!Y},
then:function(){return _.N("div",{class:"checkbox-shape-wiz__label"},Y==null?void 0:Y())}}),_.N(_.H,{cond:t,
then:function(){return _.N(PVo,{isLeading:!1,selectElementClass:G})}})))},"tc");
nhJ.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var PVo=_.sx(function(B){var R=B.selectElementClass;B={};return _.N("div",{class:_.XE("checkbox-shape-wiz__checkbox",R,(B["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(R==null?0:R())},B)),
"aria-hidden":"true"},_.N(_.Us,{icon:_.k("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.N(_.Us,{icon:_.k("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"uc");_.kr=_.sx(function(B){var R=B.name;var V=B.onChange;var e=B.onClick;var X=B.checked;var Y=B.labelRenderable;var t=B.useCheckIcon;var b=B.hasLeadingLabel;var J=B.labelClass;var G=B.isCompact;var y=B.selectElementClass;var S=B.ariaLabel;B=B.className;var M="radio"+_.La(_.HZ),f=_.Wr(function(g){V==null||V(g);return!1}),z=_.Wr(function(g){e==null||e(g);
return!1}),T=_.h(_.WU(!1,void 0,"DEwP5e")),L=T.next().value,Q=T.next().value;
T=_.Wr(function(){var g;((g=_.Oz().resolve(_.uj(_.DE)))==null?0:g.isKeyBoardInUse())&&Q(!0)});
var q=_.Wr(function(){Q(!1)}),m={};
return _.N("radio-shape",{class:_.XE("radio-shape-wiz",B)},_.N("input",{class:"radio-shape-wiz__input",id:M,"prop:checked":X,name:R,type:"radio","on:change":f,"on:click":z,"aria-label":S,"on:focusin":T,"on:focusout":q}),_.N("label",{class:_.XE("radio-shape-wiz__label-container",J,(m["radio-shape-wiz--compact"]=G,m["radio-shape-wiz__label-container--keyboard-focused"]=L,m)),for:M},_.N(_.H,{cond:function(){return!(b==null?0:b())},
then:function(){return _.N(uGG,{checked:X,useCheckIcon:t,isLeading:!0,selectElementClass:y})}}),_.N(_.H,{cond:function(){return!!Y},
then:function(){return _.N("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(S==null?0:S())?"true":"false"}},Y==null?void 0:Y())}}),_.N(_.H,{cond:b,
then:function(){return _.N(uGG,{checked:X,useCheckIcon:t,isLeading:!1,selectElementClass:y})}})))},"vc");
_.kr.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var uGG=_.sx(function(B){var R=B.useCheckIcon;var V=B.selectElementClass;B=function(){return(R==null?0:R())?"CHECK":_.k("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var e={};return _.N("div",{class:_.XE("radio-shape-wiz__radio",V,(e["radio-shape-wiz__radio--check-icon"]=R,e["radio-shape-wiz__radio--radio-default-style"]=function(){return!(V==null?0:V())},e)),
"aria-hidden":"true"},_.N(_.Us,{icon:B}),_.N(_.Us,{icon:B,active:function(){return!(R==null?0:R())}}))},"wc");_.Dw=_.sx(function(B){function R(){var $d;(($d=_.Oz().resolve(_.uj(_.DE)))==null?0:$d.isKeyBoardInUse())&&ES(!0)}
function V(){ES(!1)}
var e=B.data;var X=B.isMenuItem;var Y=B.isCompact;var t=B.onTap;var b=B.trailingAccessory;var J=B.hideSelectionTextChevron;var G=B.disabled;var y=B.inPopup;var S=B.disableHorizontalPadding;B=B.isOverlay;var M=_.k("apply_button_role_to_list_item"),f=_.w1(function($d){a:{var Eo=e();if((Eo==null?0:Eo.entitySelectorType)&&(Eo==null?0:Eo.entityKey))switch(Eo.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":$d=_.NhK($d,Eo.entityKey);$d=$d==null?void 0:
$d.value;Eo=!1;$d==="CAPTIONS_UNAVAILABLE"&&(Eo=!0,$d="");$d=Object.assign({},!!$d&&{selectionText:{content:$d}},{isSelected:!!$d},!!$d&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Eo});break a;default:$d={}}else $d={}}return $d}),z=function(){return _.k("enable_web_shorts_captions_language_command")?Object.assign({},e(),f()):e()},T=function(){return!(z().isSelected===void 0||!z().selectionStyle||z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
L=function(){return(_.rb(z().rendererContext)||t)&&!T()},Q=function(){return _.rb(z().rendererContext)||T()},q={};
B=_.XE("yt-list-item-view-model-wiz",(q["yt-list-item-view-model-wiz--is-overlay"]=B,q["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!M&&cd()},q));
q={};var m=_.XE("yt-list-item-view-model-wiz__label",(q["yt-list-item-view-model-wiz__container"]=function(){return!T()},q["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!z().isDisabled||!(G==null||!G())},q["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!z().subtitle},q["yt-list-item-view-model-wiz__container--compact"]=Y,q["yt-list-item-view-model-wiz__container--tappable"]=L,q["yt-list-item-view-model-wiz__container--in-popup"]=y,q["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return M&&cd()},q));
q={};var g=_.XE("yt-list-item-view-model-wiz__container",(q["yt-list-item-view-model-wiz__container--tappable"]=Q,q["yt-list-item-view-model-wiz__container--compact"]=Y,q["yt-list-item-view-model-wiz__container--in-popup"]=y,q["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=S,q)),Vu=function(){return z().leadingImage||z().leadingAccessory},n=_.XE("yt-list-item-view-model-wiz__image-container",function(){return Vu()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
y=_.Zh();var Yd=_.Zh(),kd=M?Yd:y,a5=_.sx(function(){return _.N(_.H,{cond:function(){return M},
then:function(){return _.N("div",{class:m,el:Yd,role:function(){return Q()||L()?"button":void 0},
tabindex:function(){return t||L()?0:void 0},
"on:keydown":io,"on:click":lo},_.N(O5R,{data:z,hideSelectionTextChevron:J,trailingAccessory:b}))},
else:function(){return _.N("div",{class:m,el:Yd},_.N(O5R,{data:z,hideSelectionTextChevron:J,trailingAccessory:b}))}})},"xc");
a5.idomCompat=!0;_.gb(y,function(){return z().rendererContext});
var lo=_.Wr(function($d){return void(t==null?void 0:t($d))}),io=_.vkS(),vd=_.h(_.WU(!1,void 0,"ARxMZb"));
q=vd.next().value;vd=vd.next().value;var cd=q,ES=vd;_.zM(function(){L()&&(kd.value.addEventListener("focusin",R),kd.value.addEventListener("focusout",V));_.aK(function(){kd.value&&L()&&(kd.value.removeEventListener("focusin",R),kd.value.removeEventListener("focusout",V))})});
q=_.Wr(function(){return!1});
return _.N("yt-list-item-view-model",{el:y,class:B,role:function(){return(X==null?0:X())?"menuitem":"listitem"},
tabindex:function(){var $d=L();$d=M?void 0:t||$d?0:void 0;return $d},
"on:keydown":M?q:io,"on:click":M?q:lo},_.N(_.H,{cond:T,then:function(){return _.N(_.MN,null,_.N(_.Sv,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.N(nhJ,{labelRenderable:function(){return _.N(a5,null)},
isCompact:Y,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Vu()},
labelClass:g,selectElementClass:n,disableHorizontalPadding:S})}),_.N(_.Sv,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.N(_.kr,{labelRenderable:function(){return _.N(a5,null)},
isCompact:Y,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Vu()},
labelClass:g,selectElementClass:n})}),_.N(_.Sv,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.N(_.kr,{labelRenderable:function(){return _.N(a5,null)},
isCompact:Y,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Vu()},
labelClass:g,selectElementClass:n,useCheckIcon:!0})}),_.N(_.HE,null,function(){return _.N(a5,null)}))},
else:function(){return _.N(a5,null)}}))},"yc");
_.Dw.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var O5R=_.sx(function(B){var R=B.data;var V=B.hideSelectionTextChevron;var e=B.trailingAccessory;return _.N(_.OZ,null,_.N(ofb,{data:R,isLeading:!0,hideSelectionTextChevron:function(){return!(V==null||!V())}}),_.N(BsR,{data:R}),_.N(_.H,{cond:function(){return!!e},
then:function(){return _.N("div",{class:"yt-list-item-view-model-wiz__trailing"},e==null?void 0:e())},
else:function(){return _.N(ofb,{data:R,isLeading:!1,hideSelectionTextChevron:function(){return!(V==null||!V())}})}}))},"zc"),ofb=_.sx(function(B){var R=B.data;
var V=B.isLeading;var e=B.hideSelectionTextChevron;var X=_.XE("yt-list-item-view-model-wiz__button-container");B={};var Y=_.XE("yt-list-item-view-model-wiz__image-container",(B["yt-list-item-view-model-wiz__leading"]=V,B["yt-list-item-view-model-wiz__trailing"]=function(){return!V()},B)),t=function(){return V()?R().leadingImage:R().trailingImage},b=_.XE("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
B={};var J=_.XE("yt-list-item-view-model-wiz__accessory",(B["yt-list-item-view-model-wiz__leading"]=V,B["yt-list-item-view-model-wiz__trailing"]=function(){return!V()},B)),G=function(){a:switch(R().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var y="expand_more";
break a;default:y="chevron_right"}return y};
return _.N(_.H,{cond:function(){var y=R(),S=V();return!!(S&&(y.leadingImage||y.leadingAccessory)||!S&&(y.trailingImage||y.trailingButton||y.trailingButtons||y.selectionText))},
then:function(){return _.N(_.OZ,null,_.N(_.H,{cond:t,then:function(y){return _.N("div",{class:Y,"aria-hidden":"true"},_.N(_.ia,{data:y,alt:"",preserveWidth:!0,preserveHeight:!0,className:b}))}}),_.N(_.H,{cond:function(){return V()&&R().leadingAccessory},
then:function(){return _.N("div",{class:Y},_.N(_.wb,{data:function(){return R().leadingAccessory}},{avatarViewModel:function(y){return _.N(_.TP,{data:y.data,
avatarButtonCustomClassName:b})},
collectionThumbnailViewModel:HHG}))}}),_.N(_.H,{cond:function(){return!V()&&R().trailingButton},
then:function(){return _.N("div",{class:X},_.N(_.wb,{data:function(){return R().trailingButton}},{buttonViewModel:function(y){return _.N(_.qo,{data:y.data,
className:J})}}))}}),_.N(_.H,{cond:function(){var y;
return!V()&&((y=R().trailingButtons)==null?void 0:y.buttons)},
then:function(){return _.N("div",{class:X},_.N(_.wb,{data:function(){var y;return(y=R().trailingButtons)==null?void 0:y.buttons}},{buttonViewModel:function(y){return _.N(_.qo,{data:y.data,
className:J})},
accountLinkButtonViewModel:function(y){return _.N(NjZ,{data:y.data,className:function(){return J()||""}})},
switchButtonViewModel:function(y){return _.N(CV2,{data:y.data,className:J})},
subscribeButtonViewModel:function(y){return _.N(oL4,{data:y.data,isOverlay:!1,animateWidth:!1,className:J})},
toggleButtonViewModel:function(y){return _.N(_.LO,{data:y.data,className:J})}}))}}),_.N(_.H,{cond:function(){return!V()&&!!R().selectionText},
then:function(){return _.N(_.OZ,null,_.N(_.Hr,{text:function(){return R().selectionText},
className:_.XE("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.N(_.H,{cond:function(){return!e()},
then:function(){return _.N(_.Us,{icon:G,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Ac"),BsR=_.sx(function(B){var R=B.data;
return _.N(_.H,{cond:function(){return R().title||R().subtitle},
then:function(){return _.N("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.N("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.N(_.H,{cond:function(){return R().title},
then:function(V){return _.N(_.Hr,{text:V,className:"yt-list-item-view-model-wiz__title"})}})),_.N(_.H,{cond:function(){return R().subtitle},
then:function(V){return _.N(_.Hr,{text:V,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Bc");_.R0T=_.sx(function(B){var R=B.data;var V=B.onTap;var e=B.onSwitch;var X=B.overrideDisabled;B=_.h(_.J3(function(){var y;return((y=AtN(G()))==null?void 0:y.switchedOnByDefault)||!1}));
var Y=B.next().value,t=B.next().value;B=_.h(_.WU(!1,void 0,"Ri8Twb"));var b=B.next().value,J=B.next().value,G=function(){var y;if(!(y=R().switchButton)){var S=R();y=X==null?void 0:X();S={switchOnCommand:S.switchOnCommand,switchOffCommand:S.switchOffCommand,switchedOnByDefault:S.switchedOnByDefault,isDisabled:S.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:S.a11yLabelSwitchedOn,a11yLabelSwitchedOff:S.a11yLabelSwitchedOff};y!==void 0&&(S.isDisabled=y);y={switchButtonViewModel:S}}return y};
return _.N("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.N(_.Dw,{data:function(){return{title:R().title,subtitle:R().attributedSubtitle,leadingImage:R().leadingImage,leadingAccessory:R().leadingAccessory,isDisabled:R().isDisabled}},
onTap:function(y){var S=AtN(G());!S||S.isDisabled||R().ignoreTapUntilCommandCompletes&&b()||(V==null||V(y),qPY(S,Y(),y,R().ignoreTapUntilCommandCompletes,J),t(!Y()),e==null||e(Y()))},
trailingAccessory:function(){return _.N(_.wb,{data:G},{switchButtonViewModel:function(y){return _.N(CV2,{data:y.data,parentActive:Y,handleOnTapEventInParent:!!V})}})}}))},"Cc");var ViG=_.Wz("DOWNLOAD",{},"Download"),e04=_.Wz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),X3b=_.Wz("RETRY",{},"Retry"),p3l=_.Wz("PAUSE_DOWNLOADING",{},"Pause downloading"),Y65=_.Wz("RESUME_DOWNLOAD",{},"Resume download"),i9o={text:ViG,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Kw={text:e04,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},rtq={text:X3b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
syx={text:p3l,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},F$o={text:Y65,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var h02=_.sx(function(B){var R=function(){var b=B.data();b=_.Ft(b.rendererContext);var J;return(J=_.D(b,_.Jv))==null?void 0:J.videoId},V=_.w1(function(b){var J=R(),G=mhS(B.data());
return J?_.Tz(b,J):G?_.xG(b,G):"TRANSFER_STATE_UNKNOWN"}),e=_.No(_.Ztd,R),X=_.w1(function(b){return _.AGp(b,R(),mhS(B.data()))}),Y=function(){return Z9I(V(),e(),_.Ft(B.data().rendererContext),!!mhS(B.data()))},t=function(){return X()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.N("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:t},_.N(_.H,{cond:function(){return!t()},
then:function(){return _.N(_.H,{cond:Y,then:function(b){return _.N(_.yh,{each:b},function(J){return _.N(_.Dw,{data:J,isCompact:B.isCompact,isMenuItem:B.isMenuItem,inPopup:B.inPopup})})}})}}))},"Dc");
h02.idomCompat=!0;_.tib=_.sx(function(B){var R=B.data;var V=B.isCompact;var e=B.hideSelectionTextChevron;var X=B.inPopup;var Y=B.isOverlay;var t=function(){return $hp(R())&&(X==null?void 0:X())};
B={};return _.N("yt-list-view-model",{class:_.XE("yt-list-view-model-wiz",(B["yt-list-view-model-wiz--kaios-spat-nav"]=In5&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",B)),role:function(){return t()?"menu":"list"}},_.N(_.wb,{data:function(){return R().listItems}},{listItemViewModel:function(b){return _.N(_.Dw,{data:b.data,
isMenuItem:t,isCompact:V,hideSelectionTextChevron:e,inPopup:X,isOverlay:Y})},
downloadListItemViewModel:function(b){return _.N(h02,{data:b.data,isMenuItem:t,isCompact:V,inPopup:X})},
switchListItemViewModel:_.R0T}))},"Ec");
_.tib.idomCompat=!0;var W0S=_.sx(function(B){var R=B.data;var V=B.isOverlay;B={};return _.N("yt-course-perks-view-model",{class:_.XE("ytwCoursePerksViewModelHost",(B.ytwCoursePerksViewModelHostOverlay=V,B))},_.N("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.N(_.Hr,{text:function(){return R().title}})),_.N("div",null,_.N(_.H,{cond:function(){return R().perks},
then:function(e){return _.N(_.tib,{data:function(){return{listItems:e()}},
isCompact:!0,isOverlay:V})}})))},"Fc");_.mR(W0S,"yt-course-perks-view-model",{props:{data:_.Z9,isOverlay:_.Z9}});_.mR(_.sx(function(B){var R=B.data;return _.N("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.N("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.N(_.Hr,{text:function(){return R().title}})),_.N("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.N(_.Hr,{text:function(){return R().progressSummary}})),_.N("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.N("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.jQ({width:function(){return R().progressPercentage*100+"%"}})})))},"Gc"),"yt-course-progress-view-model",{props:{data:_.qq}});var bl2=_.sx(function(B){var R={};return _.N("yt-progress-view-model",{class:_.XE("ytwProgressViewModelHost",(R.ytwProgressViewModelHostOverlay=_.AM(B.isOverlay,!1),R))},_.N(_.H,{cond:function(){return B.data().progressSummary},
then:function(V){return _.N("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.N(_.Hr,{text:V}))}}),_.N("div",{class:"ytwProgressViewModelHostProgressContainer"},_.N(_.H,{cond:function(){return B.data().leadingLabel},
then:function(V){return _.N("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.N(_.Hr,{text:V}))}}),_.N("div",{class:"ytwProgressViewModelHostProgressBar"},_.N("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(B.data().progressPercentage||0)*100+"%"}}))))},"Hc");var fA=_.sx(function(B){var R=B.starNumber;var V=B.data;var e=function(){var X;return((X=V())==null?void 0:X.rating)||0};
return _.N(_.H,{cond:function(){return R()},
then:function(X){return _.N(_.MN,null,_.N(_.Sv,{when:function(){return e()>=X()-.25}},function(){return _.N("div",{class:"ytStarRatingViewModelHostStar"},_.N(_.Us,{icon:"STAR_FILLED"}))}),_.N(_.Sv,{when:function(){return e()>=X()-.75}},function(){return _.N("div",{class:"ytStarRatingViewModelHostStar"},_.N(_.Us,{icon:"STAR_HALF"}))}),_.N(_.HE,null,function(){return _.N("div",{class:"ytStarRatingViewModelHostStar"},_.N(_.Us,{icon:"STAR_BORDER"}))}))}})},"Ic"),J2o=_.sx(function(B){B=B.data;
return _.N("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.N(fA,{starNumber:1,data:B}),_.N(fA,{starNumber:2,data:B}),_.N(fA,{starNumber:3,data:B}),_.N(fA,{starNumber:4,data:B}),_.N(fA,{starNumber:5,data:B}))},"Jc");_.mR(_.sx(function(B){var R=_.ip(B,{}).data;return _.N("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.N("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.N(_.Hr,{text:function(){var V;return(V=R())==null?void 0:V.title}})),_.N("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.N(_.H,{cond:function(){return R().starProgressViewModels},
then:function(V){return _.N("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.N(_.wb,{data:V},{progressViewModel:bl2}))}}),_.N("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.N("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.N(_.Hr,{text:function(){var V;
return(V=R())==null?void 0:V.averageRatingLabel}})),_.N(_.H,{cond:function(){return R().zeroStateText},
then:function(V){return _.N("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.N(_.Hr,{text:V}))}}),_.N(_.H,{cond:function(){return R().starRatingViewModel},
then:function(V){return _.N("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.N(_.wb,{data:V},{starRatingViewModel:J2o}))}}),_.N("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.N(_.Hr,{text:function(){var V;
return(V=R())==null?void 0:V.totalRatingsCountLabel}})))))},"Kc"),"yt-course-ratings-view-model",{props:{data:_.Z9}});var j94;j94={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.Uio=_.sx(function(B){var R=_.Zh(),V=_.hv();_.fQ(function(){requestAnimationFrame(function(){var X;(X=V.lottieEl)==null||X.addEventListener("DOMLoaded",function(){var Y;(Y=B.onLottieLoaded)==null||Y.call(B)})});
var e=B.data().browseEndpoint;e&&_.Lc(e)});
return _.N("yt-learning-journey-loader-view-model",{class:_.XE("learningJourneyLoaderViewModelHost",B.className),"data-target-id":function(){var e;return((e=B.data)==null?void 0:e.call(B).targetId)||""},
el:R},_.N(_.pD,{className:_.XE("learningJourneyLoaderViewModelLoader",B.className),animationName:function(){return j94.animationConfig.name},
data:j94,animationRef:V}))},"Lc");_.mR(_.Uio,"yt-learning-journey-loader-view-model",{props:{data:_.qq,className:_.Z9,onLottieLoaded:_.Z9}});var NsG=_.sx(function(B){var R=function(){return B.data()},V=_.h(_.WU(-1,void 0,"GvxRR")),e=V.next().value,X=V.next().value,Y=function(G){return e()===G},t=function(G){return R().correctAnswerIndex===G},b=function(){return e()!==-1},J=_.Wr(function(){X(-1);
return!1});
return _.N("learning-journey-quiz-view-model",{class:_.XE("learningJourneyQuizViewModelHost",B.className),style:_.jQ({background:function(){return QN(I7(R())).backgroundColor}})},_.N(_.H,{cond:function(){return!!R().video},
then:function(){return _.N("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.jQ({background:function(){return QN(I7(R())).videoBackgroundColor}})},_.N(_.wb,{data:function(){return R().video}},{lockupViewModel:function(G){return _.N(_.nu,{data:G.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.N("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.N("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.N("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.N("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.N("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.jQ({color:function(){return QN(I7(R())).primaryTextColor}})},_.N(_.Hr,{text:function(){var G=R(),y=b(),S=e()===R().correctAnswerIndex;
return y?S?G.successTitle:G.failureTitle:G.questionHeaderText}})),_.N("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.N(_.H,{cond:b,
then:function(){return _.N("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":J,role:"button","aria-label":"Reset","tab-index":"0"},_.N("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.jQ({fill:function(){return QN(I7(R())).primaryTextColor}})},_.N("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"})))}}),
_.N(_.wb,{data:function(){return R().overflowMenu}},{buttonViewModel:function(G){return _.N(_.qo,{data:G.data})}}))),_.N("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.jQ({color:function(){return QN(I7(R())).secondaryTextColor}})},_.N(_.Hr,{text:function(){var G=R();
return b()?G.explanationText:G.questionSubheaderText}}))),_.N("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.N(_.yh,{each:function(){return R().optionsData||[]}},function(G,y){var S={};
return _.N("div",{class:_.XE("learningJourneyQuizViewModelHostQuizOptions",(S.learningJourneyQuizViewModelHostQuizHover=function(){return!b()},S.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return e()===R().correctAnswerIndex&&Y(y())},S.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return e()!==R().correctAnswerIndex&&Y(y())},S.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return b()&&!Y(y())},S)),
"on:click":_.Wr(function(){if(b())return!1;X(y());return!1}),
style:_.jQ({background:function(){return b()&&Y(y())?"":QN(I7(R())).optionColor}}),
role:"button","aria-disabled":b,"tab-index":"0"},_.N(_.H,{cond:b,then:function(){return _.N("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var M=y();return t(M)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.jQ({fill:function(){return QN(I7(R())).primaryTextColor}})},_.N("path",{d:function(){var M=y();
return t(M)?"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"}}))}}),_.N(_.Hr,{text:G.optionText}))})))))},"Mc");
NsG.idomCompat=!0;_.mR(NsG,"learning-journey-quiz-view-model",{props:{data:_.qq,className:_.qq}});var GOG=_.sx(function(B){var R=_.Zh();_.gb(R,function(){return B.data().rendererContext});
var V=_.ip(B,{palette:void 0,isLastItem:!1}),e=V.palette,X=V.isLastItem,Y=function(){return B.data().isHighlighted},t=function(){var G;
return ChK((G=e())==null?void 0:G.iconDisabledColor)},b=function(){var G;
return ChK((G=e())==null?void 0:G.primaryTitleColor)},J=function(){var G;
return ChK((G=e())==null?void 0:G.secondaryTitleColor)};
V={};return _.N("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:R},_.N(_.wb,{data:function(){return B.data().thumbnail}},{thumbnailViewModel:_.sL}),_.N("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.N("div",{class:_.XE("ytMacroMarkerListItemViewModelTimeDescription",(V.ytMacroMarkerListItemViewModelHighlighted=Y,V)),
style:_.jQ({"background-color":function(){return Y()?b():t()},
color:function(){return Y()?"":J()}})},_.N(_.Hr,{text:function(){return B.data().timestamp}})),_.N("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.jQ({"background-color":function(){return X()?"transparent":t()}})}),_.N("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Y()?b():J())}},_.N(_.Hr,{text:function(){return B.data().title}}))))},"Nc");_.lc=_.sx(function(B){function R(pR){Q("transform:translateX("+(_.vE("HTML_DIR")==="rtl"?"":"-")+pR+"px)")}
function V(pR){return Math.min(Math.max(pR,0),L()-n())}
function e(){var pR=g()+lo();return X()?(Math.round(n()/pR)||1)*pR:0}
var X=function(){return B.data().items||[]},Y=function(){return B.data().previousButton},t=function(){return B.data().nextButton},b=function(){var pR,d4;
return(d4=(pR=B.disableArrows)==null?void 0:pR.call(B))!=null?d4:!1},J=function(){var pR;
return!((pR=B.forceNarrowLayout)==null||!pR.call(B))},G=_.Zh(),y=_.Zh(),S=_.h(_.WU(0,void 0,"yngx7d")),M=S.next().value,f=S.next().value;
S=_.h(_.WU(0,void 0,"rUOyGb"));var z=S.next().value,T=S.next().value,L=z;z=_.h(_.WU("",void 0,"jv2kWc"));S=z.next().value;var Q=z.next().value;z=_.h(_.WU(0,void 0,"Xb0f0d"));var q=z.next().value,m=z.next().value,g=q;z=_.h(_.WU(0,void 0,"pt5wQ"));q=z.next().value;var Vu=z.next().value,n=q;z=_.h(_.WU(!1,void 0,"FfPefe"));var Yd=z.next().value,kd=z.next().value;z=_.h(_.WU(0,void 0,"kB5mhb"));q=z.next().value;var a5=z.next().value,lo=q;z=_.h(_.WU(0,void 0,"dnDmUd"));var io=z.next().value,vd=z.next().value,
cd=function(){var pR,d4=(pR=B.data())==null?void 0:pR.responsiveContainerConfiguration,W2,By;return d4?V7I(d4==null?void 0:d4.responsiveSize):(By=(W2=B.sizing)==null?void 0:W2.call(B))!=null?By:"STANDARD"};
z=_.NW(function(){return!b()&&M()>0},void 0,"ZIGxke");
q=_.NW(function(){return!b()&&M()<L()-n()},void 0,"OJzhRd");
var ES=function(){f(V(M()-e()));R(M())},$d=function(){f(V(M()+e()));
R(M())},Eo=function(){G.value!==null&&eJ()},GG;
_.zM(function(){eJ();window.ResizeObserver?(GG=new ResizeObserver(_.Hx(Eo,0)),GG.observe(G.value)):window.addEventListener("resize",Eo)});
_.aK(function(){if(window.ResizeObserver){var pR;(pR=GG)==null||pR.disconnect()}else window.removeEventListener("resize",Eo)});
var eJ=function(){var pR=G.value.clientWidth,d4=B.includeMargin!==void 0?B.includeMargin():!1,W2;var By=B.hasPeek!==void 0?B.hasPeek():!((W2=B.data())==null||!W2.hasPeek);pR=_.nO({containerWidth:pR,hasPeek:By,sizing:cd(),marginSettings:d4?J()?4:1:0});a5(pR.gutter);vd(pR.margin);m(pR.itemWidth);kd(pR.maxContainerWidth<528||J());Vu(pR.maxContainerWidth);X()&&T((pR.itemWidth+pR.gutter)*X().length-pR.gutter)};
return _.N("horizontal-shelf-view-model",{class:_.XE("ytwHorizontalShelfViewModelHost",B.className),el:G},_.N(_.H,{cond:function(){return B.data().header},
then:function(){return _.N("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.jQ({width:function(){return n()+"px"},
padding:function(){return"0 "+io()+"px"}})},_.N(_.wb,{data:function(){return B.data().header}},{sectionHeaderViewModel:function(pR){return _.N(_.on,{data:pR.data,
disableHorizontalPadding:!0,forceSmallLayout:Yd,useResponsiveLayout:!0})}}))}}),_.N("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.N("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.jQ({width:function(){return n()+"px"},
padding:function(){return"0 "+io()+"px"},
overflow:function(){return b()?"auto":"hidden"}})},_.N("div",{class:"ytwHorizontalShelfViewModelItems",
el:y,style:S},_.N(_.wb,{data:X},{macroMarkerListItemViewModel:function(pR,d4){return _.N("div",{style:_.jQ({width:function(){return g()+"px"},
"margin-right":function(){return(d4()===X().length-1?0:lo())+"px"}})},_.N(GOG,{data:pR.data,
palette:_.AM(B.palette),isLastItem:function(){return d4()===X().length-1}}))},
lockupViewModel:function(pR,d4){var W2=pR.data;return _.N("div",{style:_.jQ({width:function(){return g()+"px"},
"margin-right":function(){return(d4()===X().length-1?0:lo())+"px"}})},_.N(_.nu,{data:W2,
containerType:4,sizing:cd,protectBackground:B.protectBackground,thumbnailFixedWidth:function(){return Phu(W2())+"px"},
thumbnailTargetWidth:function(){return Phu(W2())}}))}}))),_.N(_.H,{cond:z,
then:function(){return _.N("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.N(_.wb,{data:Y},{buttonViewModel:function(pR){return _.N(_.qo,{data:pR.data,onClick:ES})}}))}}),_.N(_.H,{cond:q,
then:function(){return _.N("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.N(_.wb,{data:t},{buttonViewModel:function(pR){return _.N(_.qo,{data:pR.data,onClick:$d})}}))}})))},"Oc");
_.lc.idomCompat=!0;var y2G=_.sx(function(B){var R=function(){return B.data().targetId||""},V=function(){var M;
return((M=B.data())==null?void 0:M.expansionEntityKey)||""},e=_.No(_.NhK,V),X=function(){var M;
return((M=e())==null?void 0:M.value)===R()},Y=function(M){_.cc(_.SX("stringEntity",V(),{key:V(),
value:M?R():""}))};
_.fQ(function(){B.data().isExpanded&&Y(!0)});
var t=function(){if(X()){var M=!0;B.onCollapse!==void 0&&(M=B.onCollapse());M&&Y(!1)}else Y(!0)},b=_.Wr(t),J=function(){var M;
return(((M=B.accordionStyle)==null?void 0:M.call(B))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},G=_.Zh(),y={},S={};
return _.N("yt-accordion-item-view-model",{class:_.XE("ytAccordionItemViewModelHost",B.className,(y.ytAccordionItemViewModelExpanded=function(){return X()},y.ytAccordionItemViewModelHidden=function(){var M;
return(M=B.hideIfNotExpanded)==null?void 0:M.call(B)},y.ytAccordionItemViewModelMini=J,y)),
"data-target-id":R},_.N("div",{class:"ytAccordionItemViewModelContainer"},_.N("div",{class:"ytAccordionItemViewModelLeftSection","on:click":b},_.N(_.Hr,{text:function(){return B.data().title},
className:"ytAccordionItemViewModelLabel"})),_.N("div",{class:"ytAccordionItemViewModelRightSection"},_.N(_.wb,{data:function(){return X()?B.data().expandButton:B.data().collapseButton}},{buttonViewModel:function(M){return _.N(_.qo,{data:M.data,
className:"ytAccordionItemViewModelToggleButton",onClick:t})}}))),_.N("div",{class:"ytAccordionItemViewModelContainer"},_.N("div",{class:_.XE("ytAccordionItemViewModelContent",(S.ytAccordionItemViewModelExpandedSubtitle=function(){return X()},S)),
el:G,style:_.jQ({"max-height":function(){return G.value?X()?G.value.scrollHeight+"px":"0":"auto"}})},_.N(_.H,{cond:function(){return!J()},
then:function(){return _.N(_.Hr,{text:function(){return B.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.N(_.wb,{data:function(){return B.data().content}},{horizontalShelfViewModel:function(M){return _.N(_.lc,{data:M.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Pc");_.S6J=_.sx(function(B){var R=_.h((0,_.mL5)(B.data)).next().value,V=function(){return B.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},e=function(){return V()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},X=_.h(_.WU(!0,void 0,"nJGZI")),Y=X.next().value,t=X.next().value,b=function(){return e()&&Y()},J=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){t(!Y())}}},G=_.Wr(function(){R().onTitleTap&&_.Lc(R().onTitleTap||{})});
X={};return _.N("yt-accordion-view-model",{class:_.XE("ytAccordionViewModelHost",(X.ytAccordionViewModelMinimized=function(){return b()},X)),
"data-target-id":function(){return B.data().targetId||""}},_.N(_.H,{cond:function(){return e()||!!R().title},
then:function(){return _.N("div",{class:"ytAccordionViewModelHeader"},_.N("div",{class:"ytAccordionViewModelTitleSection"},_.N("div",{class:"ytAccordionViewModelTitleWrapper"},_.N(_.H,{cond:function(){return!!B.data().headerIcon},
then:function(){return _.N(_.Us,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var y;return(y=B.data().headerIcon)==null?void 0:y.iconType}})}}),_.N("div",{class:"ytAccordionViewModelTitle",
"on:click":G},_.N(_.Hr,{className:"ytAccordionViewModelTitleText",text:function(){return R().title}})))),_.N("div",{class:"ytAccordionViewModelButtonSection"},_.N(_.H,{cond:e,
then:function(){return _.N(BI,{data:J,iconName:function(){return b()?"chevron_down":"chevron_collapse"}})}})))}}),_.N("div",{class:"ytAccordionViewModelContent"},_.N(_.wb,{data:function(){return R().contents}},{accordionItemViewModel:function(y){return _.N(y2G,{data:y.data,
className:"ytAccordionViewModelRow",accordionStyle:V,hideIfNotExpanded:b,onCollapse:function(){return e()?(t(!0),!1):!0}})}})),_.N("div",null,_.N(_.H,{cond:function(){return!e()},
then:function(){return _.N(_.Hr,{text:function(){return R().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})}})))},"Qc");_.mR(_.S6J,"yt-accordion-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R,V=(R=_.Oz().resolve(_.uj(_.E5)))==null?void 0:R(),e=_.h(_.WU(!1,void 0,"XM2Sxc"));R=e.next().value;var X=e.next().value;e=_.h(_.WU(!0,void 0,"Jgzg2d"));var Y=e.next().value,t=e.next().value,b=_.Zh(),J=function(z){X(!0);z={learningJourneyFormData:{query:z}};_.Lc(B.data().searchEndpoint||{},{form:{formData:z}});return!1},G=_.Wr(function(z){z.target.closest("button-view-model")&&X(!0)});
e=_.Wr(function(){t(b.value.value.length===0)});
var y=_.Wr(function(z){if(z.key==="Enter"&&!z.shiftKey&&!Y()){var T=z.target;z.preventDefault();J(T.value)}}),S={},M={},f={};
return _.N("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.N("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.N(_.ia,{data:function(){return B.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.N("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.N("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.N("div",{class:_.XE("ytLearningJourneyZeroStateSearchBar",(S.ytLearningJourneyZeroStateSearchBarDark=V,S))},_.N("textarea",{class:_.XE("ytLearningJourneyZeroStateTextInput",(M.ytLearningJourneyZeroStateTextInputDark=V,M)),el:b,"on:keyup":e,"on:keydown":y,placeholder:"What do you want to learn?",
rows:1})),_.N("div",{class:_.XE("ytLearningJourneyZeroStateSearchButtonContainer",(f.ytLearningJourneyZeroStateSearchButtonContainerDark=V,f))},_.N(_.qo,{data:function(){return _.D(B.data().searchButton,_.Tr)},
className:"search-button",onClick:function(){return J(b.value.value)},
buttonOverrides:function(){return{disabled:Y(),style:V?"mono-inverse":"mono",size:"XL"}}}))),_.N(_.H,{cond:function(){return!!B.data().errorBanner},
then:function(){return _.N("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.N(_.wb,{data:function(){return B.data().errorBanner}},{alertBannerViewModel:_.Z54}))}})),_.N(_.H,{cond:R,
then:function(){return _.N("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.N(_.wb,{data:function(){return B.data().loader}},{learningJourneyLoaderViewModel:function(z){return _.N(_.Uio,{data:z.data})}}))},
else:function(){return _.N("div",null,_.N(_.H,{cond:function(){return!!B.data().learningJourneyShelf},
then:function(){return _.N("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.N("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return B.data().learningJourneySectionTitle}),_.N(_.wb,{data:function(){return B.data().learningJourneyShelf}},{horizontalShelfViewModel:_.lc}))}}),_.N("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.N("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return B.data().suggestedJourneySectionTitle}),
_.N("div",{"on:click":G},_.N(_.wb,{data:function(){return B.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(z){return _.N(DC,{data:z.data,
layout:1})}}))))}}))},"Rc"),"yt-learning-journey-zero-state",{props:{data:_.qq}});var Hl4=_.sx(function(B){var R=B.data;return _.N("ytvl-live-leaderboard-item-action-content-view-model",{class:_.XE("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.N(_.Hr,{text:function(){var V;return(V=R())==null?void 0:V.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.N(_.wb,{data:function(){return R().actionButton}},{buttonViewModel:function(V){return _.N(_.qo,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:V.data})}}))},"Sc");var MiT=_.sx(function(B){var R=B.data;return _.N("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.XE("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.N(_.Hr,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var V;return(V=R())==null?void 0:V.displayName},
ellipsisTruncate:!0}),_.N(_.wb,{data:function(){return R().badge}},{buttonViewModel:function(V){return _.N(_.qo,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:V.data})}}))},"Tc");_.mR(_.sx(function(B){var R=B.data;return _.N("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.N("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.N(_.Hr,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var V;return(V=R())==null?void 0:V.rank}})),_.N("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.N(_.wb,{data:function(){return R().avatar}},{avatarViewModel:_.TP})),_.N("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.N(_.wb,{data:function(){return R().content}},{liveLeaderboardItemChannelContentViewModel:MiT,
liveLeaderboardItemActionContentViewModel:Hl4})),_.N(_.Hr,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var V;return(V=R())==null?void 0:V.points}}))},"Uc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;return _.N("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.N(_.Hr,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var V,e;return(V=R())==null?void 0:(e=V.ranking)==null?void 0:e.rank}}),_.N("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.N(_.wb,{data:function(){return R().avatar}},{avatarViewModel:_.TP})),_.N(_.Hr,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var V,e;return(V=R())==null?void 0:(e=V.channelContent)==null?void 0:e.channelName}}),_.N(_.Hr,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var V;return(V=R())==null?void 0:V.points}}))},"Vc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.qq}});var kOT=_.sx(function(B){B=_.ip(B,{wrapper:!1}).wrapper;return _.N(_.H,{cond:B,then:function(){return _.N("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.N("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.N("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Wc");
kOT.idomCompat=!0;var Di_=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],fQa=_.sx(function(B){var R=B.data;var V=_.Zh(),e=_.NW(function(){return R().command},void 0,"CGDtVe");
_.lJ(function(){e()&&_.wl(e(),{form:{element:V.value}})});
return _.N("div",{el:V,class:"YtQrCodeRendererHostContainer"},_.N(_.H,{cond:function(){return R().qrCodeImage},
then:function(X){return _.N(_.ia,{data:X,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.N(_.H,{cond:function(){return R().spinner},
then:function(){return _.N(kOT,null)}})}}),_.N(_.H,{cond:function(){return R().label},
then:function(X){return _.N(_.Hr,{text:X,className:"YtQrCodeRendererHostLabel"})}}),_.N(_.H,{cond:function(){return R().labels},
then:function(X){return _.N("div",{class:"YtQrCodeRendererHostLabels"},_.N(_.yh,{each:X},function(Y){return _.N(_.Hr,{text:Y})}))}}))},"Yc");_.mR(_.sx(function(B){var R=B.data;var V=_.NW(function(){return R().qrEntityKey},void 0,"joYCxd"),e=_.NW(function(){return R().deleteEntityOnDismiss},void 0,"x3yAde"),X=_.NW(function(){return R().command},void 0,"dJe1Re"),Y=_.No(rbY,V);
B=_.NW(function(){return R().style&&Di_.includes(R().style)},void 0,"rGILzf");
var t=_.Zh();_.Od(t,{visibilityCallback:function(b){b&&X()&&_.wl(X())},
showOption:{calledOnce:!0,state:"visible"}});_.zM(function(){_.aK(function(){e()&&V()&&_.QL().dispatch(_.SX("qrCodeEntity",V()))})});
return _.N("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:t},_.N(_.H,{cond:B,then:function(){return _.N(_.H,{cond:Y,then:function(b){return _.N(fQa,{data:b})}})}}))},"Xc"),"yt-qr-code-renderer",{props:{data:_.qq}});_.lQa=_.sx(function(B){var R=B.data;var V=B.topbarOffset;var e,X=((e=_.Oz().resolve(_.uj(_.E5)))==null?void 0:e())||!1;return _.N("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var Y=R();var t,b,J=X?(t=Y.config)==null?void 0:t.darkThemeBackgroundColor:(b=Y.config)==null?void 0:b.lightThemeBackgroundColor;Y=J?_.li(J):void 0;Y="background-color: "+Y+";";V!==void 0&&(Y+="top: -"+V()+"px;");return Y},
"aria-hidden":!0},_.N(_.H,{cond:function(){var Y,t,b;return!!((Y=R().backgroundImageConfig)==null?0:(t=Y.image)==null?0:(b=t.sources)==null?0:b.length)},
then:function(){return _.N(_.ia,{data:function(){var Y;return(Y=R().backgroundImageConfig)==null?void 0:Y.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.N("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+nox(X,R().gradientColorConfig)+";"}}))},"Zc");
_.lQa.idomCompat=!0;_.oA(ue5);var z0T=_.sx(function(B){var R=B.className;var V=B.data;var e=B.isOverlay;var X=B.maxLinesOverride;var Y=B.useMediumText;B=_.Zh();var t=function(){return V().alwaysShowTruncationText},b=function(){return V().truncationText},J=function(){return Y!==void 0&&Y()?"medium":"small"},G=function(){return e!==void 0&&e()?"overlay":"default"},y=function(){var T,L;
return(L=(T=_.D(V().rendererContext,_.mJ))==null?void 0:T.label)!=null?L:""},S=_.h(_.WU(!1,void 0,"zp50e")),M=S.next().value,f=S.next().value;
_.gb(B,function(){return V().rendererContext});
S=_.Wr(function(){V().expandOnTap&&f(!M());return!1});
var z={};return _.N("yt-description-preview-view-model",{el:B,class:_.XE("yt-description-preview-view-model-wiz",R,(z["yt-description-preview-view-model-wiz--clickable"]=function(){var T;return!((T=_.D(V().rendererContext,ZE))==null||!T.onTap)},z["yt-description-preview-view-model-wiz--is-overlay"]=e,z)),
"on:click":S},_.N(_.H,{cond:function(){return V().description},
then:function(T){return _.N(_.H,{cond:M,then:function(){var L={};return _.N("div",{class:_.XE("yt-description-preview-view-model-wiz__description",(L["yt-description-preview-view-model-wiz__description--medium-text"]=Y,L))},_.N(_.Hr,{text:T}))},
else:function(){return _.N(mw4,{text:T,alwaysShowTruncationText:t,truncationText:b,maxLines:function(){var L;return(L=X==null?void 0:X())!=null?L:V().maxLines},
textStyle:G,accessibilityLabel:y,textSize:J})}})}}))},"$c"),aQb=_.k("web_enable_sink_yt_description_preview_view_model")?z0T:_.h3(ue5);
z0T.idomCompat=!0;var diJ=_.sx(function(B){var R=B.data;var V=B.isOverlay;return _.N("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.N("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.N(_.wb,{data:function(){return R().header}},{sectionHeaderViewModel:function(e){return _.N(_.on,{data:e.data,
isOverlay:V})}})),_.N("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.N(_.wb,{data:function(){return R().channelInfoButtons}},{flexibleActionsViewModel:DC})),_.N("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.N(_.wb,{data:function(){return R().description}},{descriptionPreviewViewModel:function(e){return _.N(aQb,{data:e.data,
isOverlay:V})}})))},"ad");
diJ.idomCompat=!0;var w3T=_.sx(function(B){var R=B.data;var V={};return _.N("factoid-view-model",{class:_.XE("ytwFactoidViewModelHost",(V.ytwFactoidViewModelHostOverlay=B.isOverlay,V))},_.N(_.Hr,{text:function(){return R().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.N(_.Hr,{text:function(){return R().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bd");
w3T.idomCompat=!0;var TsR=_.sx(function(B){var R=B.data;var V=B.isOverlay;return _.N("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.N(_.wb,{data:function(){return R().factoids}},{factoidViewModel:function(e){return _.N(w3T,{data:e.data,
isOverlay:V})}}))},"cd");
TsR.idomCompat=!0;_.xil=_.sx(function(B){var R=B.data;var V=B.isOverlay;return _.N("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.N(_.wb,{data:function(){return R().items}},{channelInfoViewModel:function(e){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(diJ,{data:e.data,
isOverlay:V}))},
coursePerksViewModel:function(e){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(W0S,{data:e.data,isOverlay:V}))},
descriptionPreviewViewModel:function(e){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(aQb,{data:e.data,isOverlay:V}))},
factoidsRowViewModel:function(e){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(TsR,{data:e.data,isOverlay:V}))},
progressViewModel:function(e){return _.N("div",{class:"ytwCourseMetadataViewModelHostItem"},_.N(bl2,{data:e.data,isOverlay:V}))}}))},"dd");var L0h=_.sx(function(B){return _.N("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.N(_.wb,{data:function(){return B.data().content}},{courseMetadataViewModel:function(R){return _.N(_.xil,{data:R.data,
isOverlay:B.isOverlay})}}))},"ed");var vfR=_.sx(function(B){var R=B.data;B=B.className;var V=_.Zh(),e=function(){var Y;return _.rb((Y=R())==null?void 0:Y.rendererContext)},X={};
X=(X["dynamic-text-view-model-wiz"]=!0,X["dynamic-text-view-model-wiz--tappable"]=function(){return e()},X);
_.gb(V,function(){var Y;return(Y=R())==null?void 0:Y.rendererContext});
return _.N("yt-dynamic-text-view-model",{el:V,role:function(){return e()?"link":void 0},
tabindex:function(){return e()?0:void 0},
class:_.XE(B,X)},_.N("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var Y,t,b;return(b=(t=_.D((Y=R())==null?void 0:Y.rendererContext,_.mJ))==null?void 0:t.label)!=null?b:""}},_.N(_.Hr,{text:function(){return R().text},
userInput:!0})))},"fd");
vfR.idomCompat=!0;_.K04=_.sx(function(B){var R=B.data;var V=B.isPositionRelative;var e=_.mA(),X=_.oHd("(max-width: 527.9px)"),Y=function(){var t,b;return(b=(t=R())==null?void 0:t.style)!=null?b:"IMAGE_BANNER_STYLE_FULL_BLEED"};
B={};B=(B["yt-image-banner-view-model-wiz"]=!0,B["yt-image-banner-view-model-wiz--inset"]=function(){return BZp(Y())},B["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.wA(!0)&&!(V==null?0:V())},B["yt-image-banner-view-model-wiz--small-inset"]=function(){return BZp(Y())&&X()},B["yt-image-banner-view-model-wiz--tappable"]=function(){var t;
return _.wA(e.value)&&_.rb((t=R())==null?void 0:t.rendererContext)},B);
_.gb(e,function(){var t;return(t=R())==null?void 0:t.rendererContext});
return _.N("yt-image-banner-view-model",{el:e,class:_.XE(B)},_.N(_.H,{cond:function(){var t;return(t=R())==null?void 0:t.image},
then:function(){return _.N(_.ia,{data:function(){return R().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.N(_.wb,{data:function(){var t;
return(t=R())==null?void 0:t.overlays}},{thumbnailHoverOverlayViewModel:y1a}))},"gd");
_.K04.idomCompat=!0;var IQS;IQS=_.sx(function(B){var R=B.condition;var V=B.content;return _.N(_.H,{cond:R,then:function(){return _.N("div",{class:"page-header-view-model-wiz__scroll-container"},V())},
else:function(){return V()}})},"hd");
_.Efo=_.sx(function(B){var R=B.data;var V=B.noPadding;var e=B.enableBanner;var X=B.cinematicContainerTopbarOffset;var Y=B.allowCinematicContainerOverflow;var t=B.displayAsSidebar;var b=B.displayAsPanel;var J=Rpq(),G=function(){return!!R().image||!!R().animatedImage},y=function(){return!!R().background},S=function(){return(t==null?0:t())||(b==null?0:b())?1:J()},M=function(){return S()===1},f=function(){return M()||S()===2},z=function(){return S()===4},T=function(){var lo=R();
var io=!!R().heroImage;var vd=S(),cd=VMo(R()),ES=t==null?void 0:t(),$d=!lo.metadata,Eo;if(Eo=io?_.D(lo.heroImage,XCb):_.D(lo.animatedImage||lo.image,XCb)){lo=Eo.style;var GG=Eo.layoutMode;Eo=M7Z(HMZ(Eo));if(io)io=O9u(vd,lo,GG,Eo,ES);else b:if($d)io=vd===1?{size:48}:{size:72};else switch(vd){case 1:io={size:72};break b;case 2:io={size:120};break b;default:io=cd<4?{size:120}:{size:160}}}else io={size:0};return io};
B={};B=_.XE((B["page-header-view-model-wiz"]=!0,B["page-header-view-model-wiz--no-padding"]=function(){return!(V==null||!V())},B["page-header-view-model-wiz--small-top-padding"]=function(){return M()&&!R().actions||S()===2&&!(G()||R().heroImage)},B["page-header-view-model-wiz--small-bottom-padding"]=function(){return f()&&!R().actions},B["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(Y==null?0:Y())},B["page-header-view-model-wiz--display-as-sidebar"]=t,B["page-header-view-model-wiz--display-as-panel"]=
b,B));
var L={},Q=_.XE((L["page-header-view-model-wiz__page-header-headline"]=!0,L["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return T().allowFullWidth},L)),q=function(){return M()&&(!!R().heroImage||G())&&VMo(R())>0},m=function(){return q()&&(b==null?void 0:b())};
L={};var g=_.XE((L["page-header-view-model-wiz__page-header-title"]=!0,L["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!q()},L["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return q()&&!m()},L["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=m,L["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=y,L));
L={};var Vu=_.XE((L["page-header-view-model-wiz__page-header-headline-image"]=!0,L["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!R().heroImage&&f()},L));
L={};var n=_.XE((L["page-header-view-model-wiz__page-header-banner-container"]=e,L["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var lo;return(e==null?void 0:e())&&((lo=_.D(R().banner,_.Ypo))==null?void 0:lo.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},L));
L={};var Yd=_.XE((L["page-header-view-model-wiz__page-header-content-metadata"]=!0,L["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=y,L));L={};var kd=_.XE((L["page-header-view-model-wiz__page-header-flexible-actions"]=!0,L["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!R().metadata||f()},L["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!f()},L));
L={};var a5=_.XE((L["page-header-view-model-wiz__page-header-attribution"]=!0,L["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=y,L));return _.N("yt-page-header-view-model",{class:B},_.N(_.H,{cond:y,then:function(){return _.N("div",{class:"page-header-view-model-wiz__page-header-background"},_.N(_.wb,{data:function(){return R().background}},{cinematicContainerViewModel:function(lo){return _.N(_.lQa,{data:lo.data,
topbarOffset:X})}}))}}),_.N(IQS,{condition:function(){return!(t==null||!t())},
content:function(){return _.N("div",{class:"page-header-view-model-wiz__page-header-content"},_.N(_.H,{cond:function(){return(e==null?void 0:e())&&R().banner},
then:function(){return _.N("div",{class:n},_.N(_.wb,{data:function(){return R().banner}},{imageBannerViewModel:_.K04}))}}),_.N("div",{class:Q},_.N(_.H,{cond:G,
then:function(){return _.N(_.wb,{data:function(){var lo;if(!(lo=R().animatedImage)){lo=R();if(G()){var io=lo=Object.assign({},lo),vd=S(),cd=VMo(R()),ES=io.image,$d=_.D(ES,pCG),Eo=$d==null?void 0:$d.avatar,GG=_.D(Eo,_.$x);if(ES&&Eo&&GG){switch(vd){case 1:GG.avatarImageSize="AVATAR_SIZE_XL";break;case 2:GG.avatarImageSize="AVATAR_SIZE_XXL";break;default:cd<4?GG.avatarImageSize="AVATAR_SIZE_XXL":GG.avatarImageSize="AVATAR_SIZE_XXXL"}_.k("web_enable_sink_page_header_view_model")&&(_.D9(Eo,_.$x,Object.assign({},
GG)),$d.avatar=Object.assign({},Eo),_.D9(ES,pCG,Object.assign({},$d)),io.image=Object.assign({},ES))}}lo=lo.image}return lo}},{contentPreviewImageViewModel:function(lo){return _.N(_.mZ,{data:lo.data,
className:Vu,imageSizeConfig:T})},
decoratedAvatarViewModel:function(lo){return _.N(_.S_,{data:lo.data,className:Vu})}})}}),_.N(_.H,{cond:function(){return!!R().heroImage&&!(f()&&!T().allowFullWidth)},
then:function(){return _.N(_.wb,{data:function(){return R().heroImage}},{contentPreviewImageViewModel:function(lo){return _.N(_.mZ,{data:lo.data,
className:Vu,imageSizeConfig:T})}})}}),_.N("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.N(_.H,{cond:function(){return!!R().heroImage&&f()&&!T().allowFullWidth},
then:function(){return _.N("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.N(_.wb,{data:function(){return R().heroImage}},{contentPreviewImageViewModel:function(lo){return _.N(_.mZ,{data:lo.data,
className:Vu,imageSizeConfig:T})}}))}}),_.N(_.wb,{data:function(){return R().title}},{dynamicTextViewModel:function(lo){return _.N(vfR,{data:lo.data,
className:g})}}),_.N(_.wb,{data:function(){return R().metadata}},{contentMetadataViewModel:function(lo){return _.N(_.IBT,{data:lo.data,
layout:function(){return M()?1:0},
className:Yd,isOverlay:y,useMediumText:z})}}),_.N(_.H,{cond:function(){return R().description&&!M()},
then:function(){return _.N(_.wb,{data:function(){return R().description}},{descriptionPreviewViewModel:function(lo){return _.N(aQb,{data:lo.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:y,maxLinesOverride:function(){return M()?void 0:1},
useMediumText:z})}})}}),_.N(_.H,{cond:function(){return R().attribution&&!f()},
then:function(){return _.N(_.wb,{data:function(){return R().attribution}},{attributionViewModel:function(lo){return _.N($g,{data:lo.data,
className:a5,useMediumText:z})}})}}),_.N(_.H,{cond:function(){return R().actions&&!f()},
then:function(){return _.N(_.wb,{data:function(){return R().actions}},{flexibleActionsViewModel:function(lo){return _.N(DC,{data:lo.data,
layout:function(){return epd(S())},
className:kd})}})}}))),_.N("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.N(_.H,{cond:function(){return R().description&&M()},
then:function(){return _.N(_.wb,{data:function(){return R().description}},{descriptionPreviewViewModel:function(lo){return _.N(aQb,{data:lo.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:y,maxLinesOverride:function(){return M()?void 0:1},
useMediumText:z})}})}}),_.N(_.H,{cond:function(){return R().attribution&&f()},
then:function(){return _.N(_.wb,{data:function(){return R().attribution}},{attributionViewModel:function(lo){return _.N($g,{data:lo.data,
className:a5,useMediumText:z})}})}}),_.N(_.H,{cond:function(){return R().actions&&f()},
then:function(){return _.N(_.wb,{data:function(){return R().actions}},{flexibleActionsViewModel:function(lo){return _.N(DC,{data:lo.data,
layout:function(){return epd(S())},
className:kd})}})}})),_.N("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.N(_.wb,{data:function(){return R().bottomMetadataFlexibleContainer}},{flexibleContainer:function(lo){return _.N(L0h,{data:lo.data,
isOverlay:y})}})))}}))},"id");
_.Efo.idomCompat=!0;_.mR(_.sx(function(B){var R=_.h(_.WU(!1,void 0,"vVRl3b")),V=R.next().value,e=R.next().value;return _.N("yt-official-card-view-model",{class:_.XE("ytOfficialCardViewModelHost",B.className),style:_.jQ({"background-color":function(){var X,Y=Rvd((X=B.data())==null?void 0:X.backgroundColor);return Y?_.zF(Y):void 0}})},_.N(_.wb,{data:function(){return B.data().header}},{pageHeaderViewModel:function(X){return _.N(_.Efo,{data:X.data,
noPadding:!0})}}),_.N("div",{class:"ytOfficialCardViewModelContents"},_.N(_.wb,{data:function(){return B.data().contents}},{horizontalShelfViewModel:_.lc})),_.N(_.H,{cond:V,
then:function(){return _.N("div",{class:"ytOfficialCardViewModelExpandedContent"},_.N(_.wb,{data:function(){return B.data().expandedContents}},{horizontalShelfViewModel:function(X){return _.N(_.lc,{data:X.data,
sizing:"MINI"})}}),_.N("div",{class:"ytOfficialCardViewModelCollapseButton"},_.N(_.wb,{data:function(){return B.data().collapseButton}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
onClick:function(){e(!V())}})}})))},
else:function(){return _.N("div",{class:"ytOfficialCardViewModelExpandButton"},_.N(_.wb,{data:function(){return B.data().expandButton}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
onClick:function(){e(!V())}})}}))}}))},"jd"),"yt-official-card-view-model",{props:{data:_.qq,
className:_.qq}});var XvN=_.ll({buttonViewModel:_.qo});_.oA(pvY);_.Br(pvY,"ytw-search-friction-view-model",{propNames:["data"]});_.z9=_.sx(function(B){var R=_.Zh(),V,e=(V=_.Oz().resolve(_.uj(_.E5)))==null?void 0:V();_.lJ(function(){var X=R.value;var Y=new v5T,t=new Map(Y.JSC$7208_sanitizerTable.globalAttributePolicies);t.set("style",{policyAction:4});Y.JSC$7208_sanitizerTable=new Mm(Y.JSC$7208_sanitizerTable.allowedElements,Y.JSC$7208_sanitizerTable.elementPolicies,Y.JSC$7208_sanitizerTable.allowedGlobalAttributes,t,Y.JSC$7208_sanitizerTable.globallyAllowedAttributePrefixes);var b=["data-time"];if(b===void 0)t=new Set(Y.JSC$7208_sanitizerTable.globallyAllowedAttributePrefixes),
t.add("data-"),Y.JSC$7208_sanitizerTable=new Mm(Y.JSC$7208_sanitizerTable.allowedElements,Y.JSC$7208_sanitizerTable.elementPolicies,Y.JSC$7208_sanitizerTable.allowedGlobalAttributes,Y.JSC$7208_sanitizerTable.globalAttributePolicies,t);else{t=new Set(Y.JSC$7208_sanitizerTable.allowedGlobalAttributes);b=_.h(b);for(var J=b.next();!J.done;J=b.next()){J=J.value;if(J.indexOf("data-")!==0)throw Error("qa`"+J);t.add(J)}Y.JSC$7208_sanitizerTable=new Mm(Y.JSC$7208_sanitizerTable.allowedElements,Y.JSC$7208_sanitizerTable.elementPolicies,
t,Y.JSC$7208_sanitizerTable.globalAttributePolicies,Y.JSC$7208_sanitizerTable.globallyAllowedAttributePrefixes)}t=new Set(Y.JSC$7208_sanitizerTable.allowedGlobalAttributes);t.add("class");Y.JSC$7208_sanitizerTable=new Mm(Y.JSC$7208_sanitizerTable.allowedElements,Y.JSC$7208_sanitizerTable.elementPolicies,t,Y.JSC$7208_sanitizerTable.globalAttributePolicies,Y.JSC$7208_sanitizerTable.globallyAllowedAttributePrefixes);_.qV(X,_.dT_(Y.build(),hpI(B.text())));tMp(R.value)});
V={};return _.N("div",null,_.N("markdown-div",{class:_.XE("ytwMarkdownDivHost",(V.ytwMarkdownDivDark=e,V.ytwMarkdownDivHostSmall=function(){var X;return((X=B.isSmallText)==null?void 0:X.call(B))||!1},V)),
el:R}))},"kd");
_.z9.idomCompat=!0;var Q9G=_.sx(function(B){var R=B.imageData;var V=_.AM(B.isInList,!1),e=function(){return V()?{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 _.N("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.N(_.H,{cond:function(){return R().image},
then:function(X){return _.N(_.ia,{data:X,alt:function(){return e().alt},
contentMode:function(){return e().contentMode},
targetWidth:function(){return e().targetWidth},
targetHeight:function(){return e().targetHeight},
className:function(){return e().className}})}}),_.N("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.N("div",{class:_.XE("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.N(_.Hr,{text:function(){return R().title}})),_.N(_.yh,{each:function(){var X;
return(X=R().description)!=null?X:[]}},function(X){return _.N("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.N(an,{content:X}))})))},"ld"),q6_=_.sx(function(B){var R=B.list;
var V=function(){var e;return(e=R().items)!=null?e:[]};
return _.N("div",{class:"ytwGenAiRichTextViewModelListContent"},_.N(_.H,{cond:function(){return R().title},
then:function(e){return _.N("div",{class:_.XE("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.N(_.Hr,{text:e}))}}),_.N(_.H,{cond:function(){return R().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.N("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.N(_.yh,{each:V},function(e){return _.N("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.N(an,{content:e,isInList:!0}))}))}}),_.N(_.H,{cond:function(){return R().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.N("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.N(_.yh,{each:V},function(e){return _.N("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.N(an,{content:e,isInList:!0}))}))}}),_.N(_.H,{cond:function(){return R().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.N("div",{class:"ytwGenAiRichTextViewModelImageList"},_.N(_.yh,{each:V},function(e){return _.N("div",{class:"ytwGenAiRichTextViewModelListItem"},_.N(an,{content:e,isInList:!0}))}))}}))},"md"),c2J=_.sx(function(B){var R=B.table;
return _.N("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.N("thead",null,_.N("tr",null,_.N(_.yh,{each:function(){var V,e;return(e=(V=R().header)==null?void 0:V.cells)!=null?e:[]}},function(V){return _.N("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.N(_.yh,{each:function(){return V.contents}},function(e){return _.N(an,{content:e})}))}))),_.N("tbody",null,_.N(_.yh,{each:function(){var V;
return(V=R().rows)!=null?V:[]}},function(V){return _.N("tr",null,_.N(_.yh,{each:function(){return V.cells}},function(e){return _.N("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.N(_.yh,{each:function(){return e.contents}},function(X){return _.N(an,{content:X})}))}))})))},"nd"),an=_.sx(function(B){var R=B.content;
var V=_.AM(B.isInList,!1),e=function(){var X,Y;return(Y=(X=R().contentBlock)==null?void 0:X.contents)!=null?Y:[]};
return _.N("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.N(_.H,{cond:function(){return R().text},
then:function(X){return _.N(_.Hr,{className:"ytwGenAiRichTextViewModelText",text:X})}}),_.N(_.H,{cond:function(){return R().image},
then:function(X){return _.N(Q9G,{imageData:X,isInList:V})}}),_.N(_.H,{cond:function(){return R().list},
then:function(X){return _.N(q6_,{list:X})}}),_.N(_.H,{cond:function(){return R().contentBlock},
then:function(){return _.N("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.N(_.yh,{each:e},function(X){return _.N(an,{content:X,isInList:!1})}))}}),_.N(_.H,{cond:function(){return R().table},
then:function(X){return _.N(c2J,{table:X})}}))},"od"),A24=_.sx(function(B){var R={};
R=_.YB("ytwGenAiRichTextViewModelHost",(R.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.V_("search_overview_link_style")),R));return _.N("gen-ai-rich-text-view-model",{class:R},_.N(an,{content:function(){return B.data().content}}))},"pd");_.oA(WdA);_.oA(qs);_.ilh=_.sx(function(B){var R=B.data;var V=function(){var T;return((T=R().loadingUi)!=null?T:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},e=function(){return R().isLoading&&(V()==="UNSPECIFIED"||V()==="GHOST_CARD")},X=function(){return!R().isLoading},Y=function(){return!!R().content&&!R().contents},t=function(){return!!R().contents},b=function(){return!!R().nextQueryButtons},J=function(){return R().isLoading&&V()==="INVISIBLE"},G=function(){var T,L;
return(L=(T=R().headerIcon)==null?void 0:T.iconType)!=null?L:""},y=function(){var T;
return(T=R().content)!=null?T:""},S=function(){return!!R().sourcesSection},M,f=!((M=_.Oz().resolve(_.uj(_.E5)))==null||!M()),z=_.NW(function(){var T=[],L=R().contents;
if(L)for(var Q=0;Q<L.length;Q++){var q=_.D(L&&L[Q],G0v);q&&T.push(q)}return T},void 0,"ycU97e");
_.zM(function(){R().isLoading||_.zp("so_re",void 0,"search_overview_answer")});
return _.N("ytd-overview-answer-view-model",{class:function(){var T={};T=(T.ytdOverviewAnswerViewModelHost=!0,T.ytdOverviewAnswerViewModelDarkBackground=f&&!J(),T.ytdOverviewAnswerViewModelLightBackground=!f&&!J(),T);return _.YB(T)}},_.N(_.H,{cond:function(){return!J()},
then:function(){return _.N(_.OZ,null,_.N("h2",null,_.N("div",{class:"ytdOverviewAnswerViewModelHeader"},_.N(_.H,{cond:G,then:function(T){return _.N("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.N(_.Us,{icon:T}))}}),_.N("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.N("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return R().headerText}),_.N("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.N(_.Hr,{text:function(){return R().headerSubtext}}))))),_.N(_.H,{cond:e,
then:function(){return WdA()}}),_.N(_.H,{cond:X,
then:function(){return _.N(_.OZ,null,_.N(_.H,{cond:Y,then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelText"},_.N(_.z9,{text:y,isSmallText:!0}))}}),_.N(_.H,{cond:t,
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelRichText"},_.N(_.yh,{each:z},function(T){return _.N(A24,{data:T})}))}}),_.N(_.H,{cond:b,
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.N(_.wb,{data:function(){return R().nextQueryButtons}},{buttonViewModel:function(T){return _.N(_.qo,{data:T.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.lc}))}}),_.N("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.N("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.N(_.H,{cond:function(){return!!_.D(R().likeButtonViewModel,KO)&&!!_.D(R().dislikeButtonViewModel,IV)},
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.N(_.l6,{data:function(){return _.D(R().likeButtonViewModel,KO)},
disableIconAnimation:!0}),_.N(_.fI,{data:function(){return _.D(R().dislikeButtonViewModel,IV)}}))}})),_.N(_.H,{cond:function(){var T;
return(T=R().sourcesSection)==null?void 0:T.headerText},
then:function(T){return _.N("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.N(_.Hr,{text:T}))}})),_.N(_.H,{cond:S,
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelSources"},_.N(_.wb,{data:function(){var T;return(T=R().sourcesSection)==null?void 0:T.sourcesShelf}},{buttonViewModel:_.qo,
horizontalShelfViewModel:function(T){return _.N(_.lc,{data:T.data,includeMargin:!0,hasPeek:!0})}}))}}),_.N(_.H,{cond:function(){return R().disclaimerText},
then:function(){return _.N("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.N(_.Hr,{text:function(){return R().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"qd");var s94=_.sx(function(B){var R=B.data;var V=B.active;var e=_.Zh();_.lJ(function(){var X,Y,t,b=((X=_.Oz().resolve(_.uj(_.E5)))==null?0:X())?(Y=R())==null?void 0:Y.darkThemeColorPalette:(t=R())==null?void 0:t.lightThemeColorPalette;b&&(b.additiveBackground&&e.value.style.setProperty("--timestamp-active-background-color",_.zF(b.additiveBackground)),b.textSecondary&&e.value.style.setProperty("--timestamp-active-color",_.li(b.textSecondary)))},"KHcbwb");
B={};return _.N("transcript-segment-view-model",{class:_.XE("ytwTranscriptSegmentViewModelHost",(B.ytwTranscriptSegmentViewModelHostActive=V,B.ytwTranscriptSegmentViewModelHostModern=_.k("enable_timeline_view_modern_transcript")||_.k("enable_timeline_view_modern_transcript_fe"),B)),el:e},_.N(_.H,{cond:function(){var X;return(X=R())==null?void 0:X.timestamp},
then:function(X){var Y={};return _.N("div",{class:_.XE("ytwTranscriptSegmentViewModelTimestamp",(Y.ytwTranscriptSegmentViewModelTimestampActive=V,Y))},X)}}),_.N(_.Hr,{text:function(){var X,Y,t;
return(t=(X=R())==null?void 0:X.attributedText)!=null?t:{content:(Y=R())==null?void 0:Y.simpleText}},
linkInheritColor:!0}))},"rd");var F0l=_.sx(function(B){var R=B.data;return _.N("div",{class:"yt-video-attributes-section-view-model__header"},_.N("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return R().headerTitle}),_.N(_.H,{cond:function(){return R().headerSubtitle},
then:function(){return _.N("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return R().headerSubtitle})}}))},"sd"),r2_=_.sx(function(B){function R(z){return Math.max(Math.min(z,0),G()-b())}
var V=B.data;var e=_.Zh(),X=_.Zh();B=_.h(_.WU(0,void 0,"ucDlDf"));var Y=B.next().value,t=B.next().value,b=Y;B=_.h(_.WU(0,void 0,"lHzSub"));Y=B.next().value;var J=B.next().value,G=Y;B=_.h(_.WU(0,void 0,"Q8fDIe"));var y=B.next().value,S=B.next().value;_.zM(function(){var z=function(){t(X.value.scrollWidth);J(e.value.clientWidth)};
z();if(window.ResizeObserver){var T=new ResizeObserver(z);T.observe(e.value);_.aK(function(){T.disconnect()})}});
var M=function(){S(R(y()+G()))},f=function(){S(R(y()-G()))};
return _.N("yt-video-attributes-section-view-model",null,_.N("div",{class:"yt-video-attributes-section-view-model"},_.N(_.H,{cond:function(){return V().headerTitle},
then:function(){return _.N(F0l,{data:V})}}),_.N("div",{class:_.XE("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:e},_.N("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.jQ({transform:function(){var z=y();_.vE("HTML_DIR")==="rtl"&&(z*=-1);return"translateX("+z+"px)"}}),
el:X},_.N(_.wb,{data:function(){return V().videoAttributeViewModels}},{videoAttributeViewModel:$wv}))),_.N(_.wb,{data:function(){return V().footerButton}},{buttonViewModel:function(z){return _.N(_.qo,{data:z.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.N(_.H,{cond:function(){return y()<0&&V().previousButton},
then:function(){return _.N("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.N(_.wb,{data:function(){return V().previousButton}},{buttonViewModel:function(z){return _.N(_.qo,{data:z.data,
onClick:M})}}))}}),_.N(_.H,{cond:function(){return y()>G()-b()&&V().nextButton},
then:function(){return _.N("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.N(_.wb,{data:function(){return V().nextButton}},{buttonViewModel:function(z){return _.N(_.qo,{data:z.data,
onClick:f})}}))}})))},"td");
r2_.idomCompat=!0;var gf2=_.sx(function(B){var R=B.data;var V=B.active;var e={},X={};return _.N("timeline-item-view-model",{class:_.XE("ytwTimelineItemViewModelHost",(e.ytwTimelineItemViewModelHostChapterChild=B.chapterChild,e.ytwTimelineItemViewModelModern=_.k("enable_timeline_view_modern_transcript")||_.k("enable_timeline_view_modern_transcript_fe"),e))},_.N("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.N("div",{class:_.XE("ytwTimelineItemViewModelTimestamp",(X.ytwTimelineItemViewModelTimestampActive=
V,X))},function(){return R().timestamp})),_.N("div",{class:"ytwTimelineItemViewModelContentItems"},_.N(_.wb,{data:function(){return R().contentItems}},{transcriptSegmentViewModel:function(Y){return _.N(s94,{data:Y.data,
active:V})},
videoAttributesSectionViewModel:r2_})))},"ud");var Zlh=_.sx(function(B){var R=B.data;B={};return _.N("timeline-chapter-view-model",{class:_.XE("ytwTimelineChapterViewModelHost")},_.N("div",{class:_.XE("ytwTimelineChapterViewModelTitle",(B.ytwTimelineChapterViewModelModern=_.k("enable_timeline_view_modern_transcript")||_.k("enable_timeline_view_modern_transcript_fe"),B))},function(){return R().title}),_.N(_.wb,{data:function(){return R().contents}},{timelineItemViewModel:function(V){return _.N(gf2,{data:V.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(V){return _.N(r2_,{data:V.data})}}))},"vd");var miS=_.sx(function(B){var R=B.data;var V=_.Zh(),e=_.No(_.cbd,function(){var Y;return(Y=R().markersEngagementPanelSyncEntityKey)!=null?Y:""}),X=function(){var Y;
return((Y=e())==null?void 0:Y.activeItemIndex)===R().index};
B=_.Wr(function(Y){var t,b,J,G,y;return _.W(function(S){if(S.nextAddress==1)return Y.stopPropagation(),_.I_S(_.sQ(Y),V.value,["A".toString(),"BUTTON".toString()])?S.return():(t=_.dl(R().onTap))?_.U(S,_.pO(),2):S.return();b=S.yieldResult;G=(J=_.D(t,_.sI))==null?void 0:J.startTimeSeconds;G===void 0||(y=b)!=null&&y.seekTo(G,!0);_.b3(S)})});
return _.N("macro-markers-panel-item-view-model",{class:_.XE("ytwMacroMarkersPanelItemViewModelHost",{"is-active":X}),el:V,"on:click":B,tabindex:0},_.N(_.wb,{data:function(){var Y;return(Y=R())==null?void 0:Y.item}},{timelineChapterViewModel:function(Y){return _.N(Zlh,{data:Y.data,
active:X})},
timelineItemViewModel:function(Y){return _.N(gf2,{data:Y.data,active:X})},
videoAttributeViewModel:$wv}))},"wd");
miS.idomCompat=!0;_.mR(miS,"macro-markers-panel-item-view-model",{props:{data:_.qq}});_.mR(r2_,"yt-video-attributes-section-view-model",{props:{data:_.qq}});var $i_=_.sx(function(B){var R=function(){var V,e,X;return(X=(V=B.data().leadingLogoAccessibility)==null?void 0:(e=V.accessibilityData)==null?void 0:e.label)!=null?X:""};
return _.N("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.N(_.H,{cond:function(){return B.data().leadingLogo},
then:function(V){return _.N(_.ia,{className:"ytwFantasySectionHeaderViewModelLogo",data:V,alt:R})}}),_.N("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.N(_.Hr,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return B.data().title}}),_.N(_.Hr,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return B.data().subtitle}})),_.N(_.wb,{data:function(){return B.data().trailingButton}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"xd");var CmT=_.sx(function(B){var R={};R=_.XE("ytwFantasyTeamViewModelHost",(R.ytwFantasyTeamViewModelCompact=function(){var X;return!((X=B.compact)==null||!X.call(B))},R.ytwFantasyTeamViewModelUser=function(){return B.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},R.ytwFantasyTeamViewModelOpponent=function(){return B.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},R));
var V=function(){var X,Y,t;return(t=(X=B.data().teamLogoAccessibility)==null?void 0:(Y=X.accessibilityData)==null?void 0:Y.label)!=null?t:""},e=_.No(ih5,function(){return B.data().teamEntityKey});
return _.N("ytw-fantasy-team-view-model",{class:R},_.N(_.H,{cond:function(){return B.data().teamLogo},
then:function(X){return _.N(_.ia,{className:"ytwFantasyTeamViewModelLogo",data:X,alt:V})}}),_.N("div",{class:"ytwFantasyTeamViewModelMetadata"},_.N("div",{class:"ytwFantasyTeamViewModelHeader"},_.N(_.Hr,{className:"ytwFantasyTeamViewModelScore",
text:function(){var X;return(X=e())==null?void 0:X.score}}),_.N(_.Us,{icon:function(){var X;
return(X=e())==null?void 0:X.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.N(_.Hr,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var X;return(X=e())==null?void 0:X.projectedScore}})),_.N(_.Hr,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return B.data().primaryText}}),_.N(_.Hr,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return B.data().secondaryText}}),_.N(_.Hr,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return B.data().tertiaryText}})),_.N(_.Hr,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var X;return(X=e())==null?void 0:X.score}}))},"yd");_.mR(_.sx(function(B){return _.N("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.N("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.N(_.wb,{data:function(){return B.data().summaryHeader}},{fantasySectionHeaderViewModel:$i_})),_.N(_.wb,{data:function(){return B.data().userTeam}},{fantasyTeamViewModel:CmT}),_.N(_.wb,{data:function(){return B.data().opponentTeam}},{fantasyTeamViewModel:CmT}))},"zd"),"fantasy-league-summary-view-model",{props:{data:_.qq}});var PmJ=_.sx(function(B){var R=_.ip(B,{shape:{},useCustomTabRenderable:!1}),V=R.shape;R=R.useCustomTabRenderable;var e=B.customTabRenderable,X=function(){return V().disabled},Y=function(){return V().selected},t=function(){return V().title},b=function(){return V().icon},J=_.Zh();
B=_.Wr(function(S){var M;if(!X()&&((M=V().aTagConfig)==null?0:M.onclick))V().aTagConfig.onclick(S);return!1});
var G=_.Wr(function(S){if(S.key==="Enter"||S.key==="ArrowUp"||S.key==="ArrowDown")S.preventDefault(),J.value.click();return!1}),y={};
return _.N("yt-tab-shape",{class:_.XE("yt-tab-shape-wiz",function(){return V().className},(y["yt-tab-shape-wiz__tab--last-tab"]=function(){return V().isLastTab},y["yt-tab-shape-wiz--host-disabled"]=X,y["yt-tab-shape-wiz--host-clickable"]=!e,y)),
role:e?void 0:"tab","aria-selected":Y!=null?Y:!1,"aria-disabled":X,tabindex:e?void 0:0,"on:click":B,"on:keydown":G,el:J,"tab-identifier":function(){return V().identifier},
"tab-title":t},_.N(_.H,{cond:R,then:function(){return e()},
else:function(){var S={},M={};return _.N(_.OZ,null,_.N("div",{class:_.XE("yt-tab-shape-wiz__tab",(S["yt-tab-shape-wiz__tab--tab-selected"]=Y,S))},_.N(_.H,{cond:b,then:function(f){return _.N(_.Us,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return f().iconType}})}}),t),_.N("div",{class:_.XE("yt-tab-shape-wiz__tab-bar",(M["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=Y,M))}))}}))},"Ad");
PmJ.idomCompat={callbacks:{customTabRenderable:!0}};_.uuG=_.sx(function(B){var R=B.shape;B=_.h(_.WU(48,void 0,"r9IBlb"));var V=B.next().value,e=B.next().value;B=_.h(_.WU(0,void 0,"Bd7rmd"));var X=B.next().value,Y=B.next().value,t=function(){return R().tabs},b=_.Zh(),J=function(){var G,y;
return(y=(G=t())==null?void 0:G.findIndex(function(S){return S.selected}))!=null?y:-1};
_.zM(function(){var G=b.value.querySelectorAll("yt-tab-shape"),y=J()>-1?G[J()]:void 0;_.dV.addJob(function(){e((y==null?void 0:y.getBoundingClientRect().width)||0)},8,0)});
_.lJ(function(){var G=J(),y=_.dV.addJob(function(){var S,M=((S=b.value)==null?void 0:S.querySelectorAll("yt-tab-shape"))||[],f;e(((f=G>-1?M[G]:void 0)==null?void 0:f.getBoundingClientRect().width)||0);for(f=S=0;f<G;f++)S+=M[f].offsetWidth+24;_.vE("HTML_DIR")==="rtl"&&(S=-S);Y(S)},8,0);
_.aK(function(){_.dV.cancelJob(y)})});
B={};return _.N("yt-tab-group-shape",{class:_.XE("yt-tab-group-shape-wiz",(B["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return R().isOverflowHidden},B)),
el:b},_.N(_.H,{cond:t,then:function(G){return _.N(_.OZ,null,_.N("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.N(_.yh,{each:G},function(y,S){return _.N(PmJ,{shape:function(){return Object.assign({},y,{isLastTab:S()===G().length-1})},
customTabRenderable:y.customTabRenderable,useCustomTabRenderable:!!y.customTabRenderable})})),_.N(nf_,{width:V,
sliderOffset:X}))}}))},"Bd");
_.uuG.idomCompat=!0;var nf_=_.sx(function(B){var R=_.AM(B.sliderOffset,0),V=B.width;return _.N("div",{class:"yt-tab-group-shape-wiz__slider",style:_.jQ({width:function(){return V()+"px"},
transform:function(){return"translateX("+R()+"px)"}})})},"Cd");var Oll=_.sx(function(B){var R=function(){var Y,t,b;return(b=(Y=B.data().playerLogoAccessibility)==null?void 0:(t=Y.accessibilityData)==null?void 0:t.label)!=null?b:""},V=_.No(sEd,function(){return B.data().playerEntityKey}),e={};
e=_.XE("ytwFantasyPlayerViewModelHost",(e.ytwFantasyPlayerViewModelPlaying=function(){var Y;return!((Y=V())==null||!Y.isPlayerPlaying)},e.ytwFantasyPlayerViewModelOnField=function(){var Y;
return((Y=V())==null?void 0:Y.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},e.ytwFantasyPlayerViewModelRedZone=function(){var Y;
return((Y=V())==null?void 0:Y.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},e));
var X=function(){var Y,t,b,J=((Y=_.Oz().resolve(_.uj(_.E5)))==null?0:Y())?(t=B.data().playerLogoBackgroundColor)==null?void 0:t.darkTheme:(b=B.data().playerLogoBackgroundColor)==null?void 0:b.lightTheme;return J===void 0?"":_.zF(J)};
return _.N("ytw-fantasy-player-view-model",{class:e},_.N(_.H,{cond:function(){return B.data().playerLogo},
then:function(Y){return _.N("div",{class:"ytwFantasyPlayerViewModelLogo"},_.N("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.N(_.ia,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.jQ({"background-color":X}),data:Y,alt:R})),_.N("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.N(_.Us,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.N("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.N("div",{class:"ytwFantasyPlayerViewModelHeader"},_.N(_.Hr,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var Y;return(Y=B.data())==null?void 0:Y.playerNameText}}),_.N(_.Hr,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var Y;return(Y=B.data())==null?void 0:Y.playerDescriptionText}})),_.N("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.N(_.Hr,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var Y;return(Y=V())==null?void 0:Y.gamePeriodText}}),_.N(_.Hr,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var Y;return(Y=B.data())==null?void 0:Y.opponentTeamText}}),_.N(_.Hr,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var Y;return(Y=V())==null?void 0:Y.gameStatusText}}),_.N(_.Hr,{className:_.XE("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var Y;return(Y=V())==null?void 0:Y.playerStatusText}})),_.N("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.N(_.Hr,{text:function(){var Y;
return(Y=V())==null?void 0:Y.playerStatsText}}))),_.N(_.Hr,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var Y;return(Y=V())==null?void 0:Y.fantasyScore}}))},"Dd");var oNT=_.sx(function(B){return _.N("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.N(_.H,{cond:function(){return B.data().players},
then:function(R){return _.N(_.wb,{data:R},{fantasyPlayerViewModel:Oll})}}))},"Ed");var BGl=_.sx(function(B){var R=_.h(_.J3(function(){var X;return(X=B.data().selectedTabIdentifierKey)!=null?X:""})),V=R.next().value,e=R.next().value;
_.fQ(function(){var X;(X=B.setSelectedTabSignal)==null||X.call(B,V)});
return _.N("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.N("div",{class:"ytTabbedViewModelTabGroup"},_.N(_.uuG,{shape:function(){var X=B.data(),Y=[],t={tabs:Y};if(!X.tabs)return t;X=_.h(X.tabs);for(var b=X.next(),J={};!b.done;J={tabViewModel:void 0},b=X.next())if(J.tabViewModel=_.D(b.value,f0l),J.tabViewModel){var G=b=void 0;Y.push({aTagConfig:{onclick:function(y){return function(){var S;e((S=y.tabViewModel.tabIdentifier)!=null?S:"")}}(J)},
identifier:J.tabViewModel.tabIdentifier,selected:V()===J.tabViewModel.tabIdentifier,title:(G=(b=J.tabViewModel.title)==null?void 0:b.content)!=null?G:""})}return t}})),_.N(_.wb,{data:function(){var X,Y=_.h((X=B.data().tabs)!=null?X:[]);
for(X=Y.next();!X.done;X=Y.next())if((X=_.D(X.value,f0l))&&X.tabIdentifier===V())return X.content}},{fantasyRosterViewModel:oNT}))},"Fd");_.mR(_.sx(function(B){var R=_.h(bG5()),V=R.next().value,e=R.next().value;return _.N("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.N(_.Hr,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return B.data().title}}),_.N(_.H,{cond:function(){return B.data().tabbedViewModel},
then:function(X){return _.N(_.wb,{data:X},{tabbedViewModel:function(Y){return _.N(BGl,{data:Y.data,setSelectedTabSignal:e})}})}}),_.N(_.H,{cond:function(){var X,Y=(X=_.D(B.data().tabbedViewModel,l0a))==null?void 0:X.tabs;
X=_.D(Y==null?void 0:Y[0],f0l);Y=_.D(Y==null?void 0:Y[1],f0l);var t=X==null?void 0:X.tabIdentifier;if(V()===t){var b,J;if(!((b=_.D(X==null?void 0:X.content,aGS))==null?0:(J=b.players)==null?0:J.length))return B.data().noUserTeamPlayersText}else{var G,y;if(!((G=_.D(Y==null?void 0:Y.content,aGS))==null?0:(y=G.players)==null?0:y.length))return B.data().noOpponentTeamPlayersText}},
then:function(X){return _.N(_.Hr,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:X})}}))},"Gd"),"ytw-fantasy-matchup-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){return _.N("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.N(_.Hr,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return B.data().title}}),_.N(_.H,{cond:function(){return B.data().matchupTeamPairs},
then:function(R){return _.N(_.yh,{each:R,keyBy:"INDEX"},function(V){return _.N("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.N(_.wb,{data:function(){return[V().firstTeam,V().secondTeam]}},{fantasyTeamViewModel:function(e){return _.N(CmT,{data:e.data,
compact:!0})}}))})}}))},"Hd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=function(){var X,Y,t;return(t=(X=B.data().userLogoAccessibility)==null?void 0:(Y=X.accessibilityData)==null?void 0:Y.label)!=null?t:""},V=function(){var X,Y,t;
return(t=(X=B.data().opponentLogoAccessibility)==null?void 0:(Y=X.accessibilityData)==null?void 0:Y.label)!=null?t:""},e=_.No(AbI,function(){return B.data().entityKey});
return _.N("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.N("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.N(_.H,{cond:function(){return B.data().userLogo},
then:function(X){return _.N(_.ia,{className:"ytwFantasyWinProbabilityViewModelLogo",data:X,alt:R})}}),_.N("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.N(_.Hr,{text:function(){return B.data().title}})),_.N(_.H,{cond:function(){return B.data().opponentLogo},
then:function(X){return _.N(_.ia,{className:"ytwFantasyWinProbabilityViewModelLogo",data:X,alt:V})}})),_.N("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.N("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.N(_.Hr,{text:function(){var X;
return(X=e())==null?void 0:X.userWinNumberLabel}})),_.N("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.N("div",{class:_.XE("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.jQ({flex:function(){var X,Y;return(Y=(X=e())==null?void 0:X.userWinNumber)!=null?Y:50}})}),_.N("div",{class:_.XE("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.jQ({flex:function(){var X,Y;return(Y=(X=e())==null?void 0:X.opponentWinNumber)!=null?Y:50}})})),_.N("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.N(_.Hr,{text:function(){var X;
return(X=e())==null?void 0:X.opponentWinNumberLabel}}))))},"Id"),"fantasy-win-probability-view-model",{props:{data:_.qq}});_.aO("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var dI=function(){var B=_.c.apply(this,arguments)||this;B.darkerPanels=_.k("web_watch_darker_panels");B.commentsHidePanelButton=!1;B.isWatchGrid=!1;B.continuationShowButton=!1;B.isSearch=!1;B.isConstrainedList=!1;B.isWatch=!1;B.eligibleToSwitchToGrid=!1;B.epRestyle=!1;B.isCarouselInFeed=!0;B.topSpacingZero=!1;B.continuationIsInitialLoad=!0;B.enableSqueezebackPanels=_.k("web_shorts_enable_squeezeback_panels");B.enableAnchoredPanel=_.k("desktop_shorts_v2_anchored_panel");B.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};B.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return B};
_.l(dI,_.c);_.p=dI.prototype;_.p.updateLockupContainerTypes=function(B){if(this.eligibleToSwitchToGrid){var R;(R=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||R.forEach(function(V){V.containerType=B})}};
_.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]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.k("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.k("kevlar_low_priority_continuation")}}};
_.p.created=function(){this.JSC$14409_cachedViewportHeight=_.vE("initialInnerHeight")||window.innerHeight};
_.p.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var B=_.w(this.hostElement).querySelector("ytd-comments-header-renderer");B&&(B.hidePanelButton=this.commentsHidePanelButton)}};
_.p.onRetrieveLocation=function(B,R){this.containsComments()&&(this.firstCommentsLoaded=R.hasComments=!0)};
_.p.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.p.onLoadReloadContinuation=function(B,R){var V=this;B.stopPropagation();this.isReloading=!0;_.OI(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(e){var X=_.Oz().resolve(_.H$);e=R(e);X.postData(e).then(function(Y){V.onReloadContinuationData(Y)})}})};
_.p.onReloadContinuationData=function(B){if(B=this.get("response.continuationContents.itemSectionContinuation",B)||this.get("response.contents.itemSectionRenderer",B)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",B)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",B))this.set("data.contents",B.contents||B.results),B.header&&this.set("data.header",B.header),this.set("data.continuations",
B.continuations||[]);this.isReloading=!1};
_.p.computeContentsClass=function(B){return B?"reloading":""};
_.p.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.p.computeSectionIdentifier=function(B){return B==null?void 0:B.sectionIdentifier};
_.p.computeFitContainer=function(B){return(B==null?void 0:B.sectionIdentifier)==="youchat-item-section"};
_.p.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.k("kevlar_disable_comments_auto_load")};
_.p.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.p.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.p.computeHasDestinationShelfRenderer=function(B){var R,V;return!!(B==null?0:(R=B.contents)==null?0:(V=R[0])==null?0:V.destinationShelfRenderer)};
_.p.computeHasSectionGroupViewModel=function(B){var R,V;return!!(B==null?0:(R=B.contents)==null?0:(V=R[0])==null?0:V.sectionGroupViewModel)};
_.p.computeStaticCommentsHeader=function(B){return B&&this.containsComments()};
_.p.computeEpRestyle=function(B){return _.k("web_ep_restyling")&&B&&this.containsComments()};
_.p.computeIsContinuationCommentSection=function(B){return(B==null?void 0:B.targetId)==="shorts-engagement-panel-comments-section"||(B==null?void 0:B.targetId)==="comments-section"||(B==null?void 0:B.targetId)==="engagement-panel-comments-section"};
_.p.computeSuppressPaddingDisclaimer=function(){var B,R,V,e;return!!((B=this.data)==null?0:(R=B.contents)==null?0:(V=R[0])==null?0:(e=V.productListHeaderRenderer)==null?0:e.suppressPaddingDisclaimer)};
_.p.computeHeaderStyle=function(B){switch(B==null?void 0:B.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.p.dataChanged=function(){this.firstCommentsLoaded=!1};
_.p.observeDataContentsLength=function(){var B,R;((B=this.data)==null?0:(R=B.contents)==null?0:R.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.p.onYtDismissibleItemDismissedChange=function(B){this._setItemDismissed(B.type==="yt-dismissible-item-dismissed")};
_.p.triggerContinuations=function(){for(var B=_.w(this.hostElement).querySelector("#continuations").children,R=0;R<B.length;R++)B[R].trigger()};
_.p.triggerInitialContinuations=function(){for(var B=_.w(this.hostElement).querySelector("#continuations").children,R=0;R<B.length;R++)B[R].triggerIfNotPreviouslyTriggered()};
_.p.handleYtItemSectionContinuation=function(B,R){var V;R&&((V=this.data)==null?void 0:V.sectionIdentifier)!==R||(this.set("data.continuations",[B]),this.triggerContinuations())};
_.p.handleYtItemSectionReplace=function(B,R){var V;R&&((V=this.data)==null?void 0:V.sectionIdentifier)!==R||(this.set("data.contents",B),this.set("data.continuations",[]))};
_.p.computeUseHeightHack=function(B){return B&&!_.k("kevlar_disable_height_hack")};
_.p.computeTopSpacingZero=function(B){return B};
_.p.continuationShowButtonChanged=function(){var B=_.w(this.hostElement).querySelector("ytd-continuation-item-renderer");B&&(B.showButton=this.continuationShowButton)};
_.p.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("data-changed",this.data))};
_.mh.Object.defineProperties(dI.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.k("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return!!((B=this.data)==null?0:(R=B.contents)==null?0:(V=R[0])==null?0:V.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e,X,Y,t;return!!((B=this.data)==null?0:(R=B.contents)==null?0:(V=R[0])==null?0:(e=V.shelfRenderer)==null?0:(X=e.content)==null?0:(Y=X.gridRenderer)==null?0:(t=Y.targetId)==null?0:t.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return!!((B=this.data)==null?0:(R=B.contents)==null?0:(V=R[0])==null?0:V.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return!!((B=this.data)==null?0:(R=B.contents)==null?0:(V=R[0])==null?0:V.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.V_("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.k("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.k("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14409_cachedViewportHeight-130)/150)},
set:function(){}}});
dI.prototype.dataChangedForBinding=dI.prototype.dataChangedForBinding;dI.prototype.continuationShowButtonChanged=dI.prototype.continuationShowButtonChanged;dI.prototype.onYtDismissibleItemDismissedChange=dI.prototype.onYtDismissibleItemDismissedChange;dI.prototype.observeDataContentsLength=dI.prototype.observeDataContentsLength;dI.prototype.dataChanged=dI.prototype.dataChanged;dI.prototype.onServiceRequestCompleted=dI.prototype.onServiceRequestCompleted;dI.prototype.onLoadReloadContinuation=dI.prototype.onLoadReloadContinuation;
dI.prototype.onRetrieveLocation=dI.prototype.onRetrieveLocation;dI.prototype.commentsHidePanelButtonChanged=dI.prototype.commentsHidePanelButtonChanged;dI.prototype.updateLockupContainerTypes=dI.prototype.updateLockupContainerTypes;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],dI.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.CL.YtLazyListBehavior),_.Z("design:type",Object)],dI.prototype,"ytLazyListBehavior",void 0);_.r([_.v(_.vM.YtNextContinuationBehavior),_.Z("design:type",Object)],dI.prototype,"ytNextContinuationBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],dI.prototype,"ytContinuationHandlerBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],dI.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],dI.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],dI.prototype,"darkerPanels",void 0);_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],dI.prototype,"engagementPanel",void 0);
_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"commentsHidePanelButton",void 0);_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"isWatchGrid",void 0);_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"continuationShowButton",void 0);_.r([_.E({computed:"computeIsContinuationCommentSection(data)"}),_.Z("design:type",Boolean)],dI.prototype,"continuationIsCommentsSection",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],dI.prototype,"autoFill",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],dI.prototype,"continuationDisablePrescanVisibility",void 0);_.r([_.E(),_.Z("design:type",Boolean)],dI.prototype,"isReloading",void 0);_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"isSearch",void 0);_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"isConstrainedList",void 0);_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"isWatch",void 0);_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"eligibleToSwitchToGrid",void 0);
_.r([_.E({selector:_.Av}),_.Z("design:type",Object)],dI.prototype,"isGridViewEnabled",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Z("design:type",Object)],dI.prototype,"epRestyle",void 0);_.r([_.K("isWatch"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],dI.prototype,"hideShortsShelfHeader",null);
_.r([_.K("isSearch","isWatch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],dI.prototype,"thumbnailWidth",null);_.r([_.K("isSearch","isWatch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],dI.prototype,"sizing",null);_.r([_.K("isWatch","isGridViewEnabled","data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],dI.prototype,"lockupContainerType",null);
_.r([_.XX("lockupContainerType","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[Number]),_.Z("design:returntype")],dI.prototype,"updateLockupContainerTypes",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],dI.prototype,"pageSubtype",void 0);_.r([_.E({computed:"computeContainerWidth()"}),_.Z("design:type",Number)],dI.prototype,"containerWidth",void 0);_.r([_.E(),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],dI.prototype,"isPlaylist",null);
_.r([_.E(),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],dI.prototype,"isClipList",null);_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"isCarouselInFeed",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],dI.prototype,"isPlaylistVideoContainer",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],dI.prototype,"isSearchFrictionPage",null);
_.r([_.E({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Z("design:type",Boolean)],dI.prototype,"useHeightHack",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Z("design:type",Object)],dI.prototype,"topSpacingZero",void 0);_.r([_.E({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Z("design:type",Boolean)],dI.prototype,"showButton",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],dI.prototype,"firstCommentsLoaded",void 0);_.r([_.E(),_.Z("design:type",Object)],dI.prototype,"continuationIsInitialLoad",void 0);_.r([_.E(),_.Z("design:type",Boolean)],dI.prototype,"isSearchDova",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0}),_.Z("design:type",Boolean)],dI.prototype,"itemDismissed",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Z("design:type",String)],dI.prototype,"sectionIdentifier",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Z("design:type",String)],dI.prototype,"fitContainer",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Z("design:type",Boolean)],dI.prototype,"hasDestinationShelfRenderer",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Z("design:type",Boolean)],dI.prototype,"staticCommentsHeader",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],dI.prototype,"enableSqueezebackPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],dI.prototype,"enableAnchoredPanel",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Z("design:type",Boolean)],dI.prototype,"hasSectionGroupViewModel",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Z("design:type",Boolean)],dI.prototype,"suppressDisclaimerSeparator",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Z("design:type",String)],dI.prototype,"headerStyle",void 0);_.r([_.K("isSearch"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],dI.prototype,"lockupExperiments",null);
_.r([_.K("isSearch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],dI.prototype,"typographyBump",null);_.r([_.Yp("#header"),_.Z("design:type",HTMLElement)],dI.prototype,"header",void 0);_.r([_.XX("commentsHidePanelButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dI.prototype,"commentsHidePanelButtonChanged",null);
_.r([_.R_("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],dI.prototype,"onRetrieveLocation",null);_.r([_.R_("yt-load-reload-continuation"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Function]),_.Z("design:returntype")],dI.prototype,"onLoadReloadContinuation",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dI.prototype,"onServiceRequestCompleted",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dI.prototype,"dataChanged",null);_.r([_.bp("data.contents.length"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dI.prototype,"observeDataContentsLength",null);
_.r([_.R_("yt-dismissible-item-dismissed"),_.R_("yt-dismissible-item-undismissed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],dI.prototype,"onYtDismissibleItemDismissedChange",null);_.r([_.XX("continuationShowButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dI.prototype,"continuationShowButtonChanged",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dI.prototype,"dataChangedForBinding",null);dI=_.r([_.A({is:"ytd-item-section-renderer",disableElementRegistration:!0})],dI);
_.F(dI,"ytd-item-section-renderer",function(){if(M3_!==void 0)return M3_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return M3_=B},{mode:1});var RUh;var GQ_=_.s$(_.Wz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var JOS={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var VLl={},NZA=(VLl[0]={title:_.n0(_.Wz("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.n0(_.Wz("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:C0("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},VLl[1]={title:_.n0(_.Wz("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:C0("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},VLl);_.aO("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var wI=function(){var B=_.c.apply(this,arguments)||this;B.allVideosCount=0;B.allPlaylistCount=0;B.shouldRenderDownloadsBanner=!1;B.hasOptedIntoSmartDownloads=!1;B.areAllSmartDownloadsDeleted=!1;B.smartDownloadsCompleted=!1;return B};
_.l(wI,_.c);wI.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
wI.prototype.attached=function(){this.downloadsToRenderChanged()};
wI.prototype.detached=function(){this.set("renderableData",{})};
wI.prototype.downloadsToRenderChanged=function(){var B=_.g6().getState().entities,R=_.kG(B),V=_.k("kevlar_playlist_dl_page_killswitch")?kl_(B):_.Dz(B),e=_.GlZ(B),X=_.Gz(R);B=_.lz(B);this.set("renderableData",S2_(V,R,e,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,X,B))};
wI.prototype.downloadsToRenderChanged=wI.prototype.downloadsToRenderChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],wI.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],wI.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],wI.prototype,"renderableData",void 0);_.r([_.E({selector:_.Iu5}),_.Z("design:type",Object)],wI.prototype,"allVideosCount",void 0);_.r([_.E({selector:O1A}),_.Z("design:type",Object)],wI.prototype,"allPlaylistCount",void 0);_.r([_.E({selector:_.six}),_.Z("design:type",Object)],wI.prototype,"shouldRenderDownloadsBanner",void 0);_.r([_.E({selector:_.F8q}),_.Z("design:type",Object)],wI.prototype,"hasOptedIntoSmartDownloads",void 0);
_.r([_.E({selector:_.rGd}),_.Z("design:type",Object)],wI.prototype,"areAllSmartDownloadsDeleted",void 0);_.r([_.E({selector:giZ}),_.Z("design:type",Object)],wI.prototype,"smartDownloadsCompleted",void 0);_.r([_.bp("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wI.prototype,"downloadsToRenderChanged",null);
wI=_.r([_.A({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],wI);
_.F(wI,"ytd-offline-item-section-renderer",function(){if(RUh!==void 0)return RUh;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return RUh=B},
{mode:1});var eUJ;var XtJ;var T9=function(){return _.c.apply(this,arguments)||this};
_.l(T9,_.c);
T9.prototype.onDataChanged=function(){if(this.JSC$14436_lastData){var B=this.getFilterClass(this.JSC$14436_lastData.status);B&&this.hostElement.classList.remove(B)}var R;(B=this.getFilterClass((R=this.data)==null?void 0:R.status))&&this.hostElement.classList.add(B);B==="selected"?_.w(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.w(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");B==="disabled"?_.w(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.w(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14436_lastData=this.data};
T9.prototype.getFilterClass=function(B){switch(B){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
T9.prototype.onDataChanged=T9.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],T9.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T9.prototype,"onDataChanged",null);T9=_.r([_.A({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],T9);
_.F(T9,"ytd-search-filter-renderer",function(){if(XtJ!==void 0)return XtJ;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return XtJ=B},{mode:_.up("kevlar_poly_si_batch_j075")?1:2});var xr=function(){return _.c.apply(this,arguments)||this};
_.l(xr,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],xr.prototype,"data",void 0);xr=_.r([_.A({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],xr);
_.F(xr,"ytd-search-filter-group-renderer",function(){if(eUJ!==void 0)return eUJ;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return eUJ=B},{mode:_.up("kevlar_poly_si_batch_j075")?1:2});var pt5;var LA=function(){return _.c.apply(this,arguments)||this};
_.l(LA,_.c);LA.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.bx());this.isCollapsed=!this.isCollapsed};
LA.prototype.navigateToAboutTheseResultsPage=function(){var B=NV("https://www.youtube.com/howyoutubeworks/product-features/search/");B?_.xq(window,B,"_blank"):_.IP(Error("Qh"))};
LA.prototype.dataChanged=function(){this.isCollapsed=!0};
LA.prototype.computeShowBottomBorder=function(){var B,R,V;return!!((B=this.data)==null?0:(R=B.button)==null?0:R.toggleButtonRenderer)||!((V=this.data)==null||!V.aboutTheseResultsButton)};
LA.prototype.dataChanged=LA.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],LA.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Z("design:type",Boolean)],LA.prototype,"showBottomBorder",void 0);_.r([_.E(),_.Z("design:type",Boolean)],LA.prototype,"renderCollapsibleMenu",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],LA.prototype,"isCollapsed",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LA.prototype,"dataChanged",null);LA=_.r([_.A({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],LA);
_.F(LA,"ytd-search-sub-menu-renderer",function(){if(pt5!==void 0)return pt5;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return pt5=B},{mode:1});var YFJ;var hUT=new _.u0("SECTION_LIST_RENDERER_TOKEN");var tL_;var vZ=function(){return _.c.apply(this,arguments)||this};
_.l(vZ,_.c);vZ.prototype.computeStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],vZ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],vZ.prototype,"headerStyle",void 0);vZ=_.r([_.A({is:"ytd-text-header-renderer",disableElementRegistration:!0})],vZ);
_.F(vZ,"ytd-text-header-renderer",function(){if(tL_!==void 0)return tL_;var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return tL_=B},{mode:1});var WeS;var KA=function(){return _.c.apply(this,arguments)||this};
_.l(KA,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],KA.prototype,"data",void 0);KA=_.r([_.A({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],KA);
_.F(KA,"ytd-minor-moment-header-renderer",function(){if(WeS!==void 0)return WeS;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return WeS=B},{mode:1});var bPb;var In=function(){return _.c.apply(this,arguments)||this};
_.l(In,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],In.prototype,"data",void 0);In=_.r([_.A({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],In);
_.F(In,"ytd-minor-moment-setting-alert-renderer",function(){if(bPb!==void 0)return bPb;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return bPb=B},{mode:1});var JxG;var jwv;var Ew=function(){var B=_.c.apply(this,arguments)||this;B.booleanSettingById=!1;B.smartDownloadsEnabledVE=_.kB(128287);B.smartDownloadsDisabledVE=_.kB(128286);B.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return B};
_.l(Ew,_.c);_.p=Ew.prototype;_.p.attachSmartDownloadsSettingVes=function(){var B;this.activeVeForLogging||((B=this.data)==null?void 0:B.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.YJ(_.WK(),this.smartDownloadsEnabledVE),_.YJ(_.WK(),this.smartDownloadsDisabledVE))};
_.p.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.OI(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(B){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(B=_.ii(B).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.k("kevlar_settings_switch_resolve_command_killswitch")?_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(B)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.p.handleUpdateSettingsSwitch=function(B){(B=_.D(B,mmJ))&&this.data&&this.data.id===B.id&&this.set("data.enabled",!!B.enabled)};
_.p.onToggleSettingsSwitch=function(B,R){this.data&&this.data.id===B&&this.set("data.enabled",R!=null?R:!this.data.enabled)};
_.p.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.PL.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.p.maybeLogSmartDownloadsSettingVisibility=function(){var B=_.TE(),R;B&&((R=this.data)==null?void 0:R.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.cz(B,[this.smartDownloadsEnabledVE]),_.AE(B,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.cz(B,[this.smartDownloadsDisabledVE]),_.AE(B,[this.smartDownloadsEnabledVE])))};
_.p.maybeLogSmartDownloadsSettingClick=function(){var B;((B=this.data)==null?void 0:B.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.ty(_.WK(),this.activeVeForLogging)};
_.p.updateDataEnabledFromBinding=function(B){this.set("data.enabled",B.detail.value)};
_.mh.Object.defineProperties(Ew.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var B=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!B&&(B=this.ytRendererBehavior.getSimpleString(this.data.title));return B}}});
Ew.prototype.dataChanged=Ew.prototype.dataChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],Ew.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ew.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Ew.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Ew.prototype,"data",void 0);_.r([_.E({selector:function(B,R){if(Object.keys(B==null?void 0:B.entities).length)switch(R){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return DfI(B.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Z("design:type",Object)],Ew.prototype,"booleanSettingById",void 0);_.r([_.E(),_.Z("design:type",_.dT)],Ew.prototype,"activeVeForLogging",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ew.prototype,"toggleAriaLabel",null);_.r([_.bp("data"),_.bp("booleanSettingById"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ew.prototype,"dataChanged",null);
Ew=_.r([_.A({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Ew);
_.F(Ew,"ytd-settings-switch-renderer",function(){if(jwv!==void 0)return jwv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return jwv=B},{mode:1});var Ql=function(){return _.c.apply(this,arguments)||this};
_.l(Ql,_.c);Ql.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}}}}};
_.mh.Object.defineProperties(Ql.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var B=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(B+=" remove-left-margin");this.data.extraBottomSpace&&(B+=" extra-bottom-space");return B}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ql.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ql.prototype,"contentsClassName",null);Ql=_.r([_.A({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Ql);
_.F(Ql,"ytd-minor-moment-setting-section-renderer",function(){if(JxG!==void 0)return JxG;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return JxG=B},{mode:1});var UX2;var q8=function(){return _.c.apply(this,arguments)||this};
_.l(q8,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],q8.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],q8.prototype,"data",void 0);q8=_.r([_.A({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],q8);
_.F(q8,"ytd-empty-product-details-renderer",function(){if(UX2!==void 0)return UX2;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return UX2=B},{mode:1});var NGo;var G1b;var cZ=function(){var B=_.c.apply(this,arguments)||this;B.expanded=!0;return B};
_.l(cZ,_.c);cZ.prototype.getBadgeRowClass=function(B,R,V){for(var e=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),X=e.next();!X.done;X=e.next())X.value.onShow();B=B.selected;return V?B!==-1?B===R?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(B!==void 0?B:0)===R?"badge-line":"badge-hidden"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cZ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],cZ.prototype,"expanded",void 0);cZ=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],cZ);
_.F(cZ,"ytd-sponsorships-loyalty-badges-renderer",function(){if(G1b!==void 0)return G1b;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return G1b=B},{mode:1});var yxa;var Ae=function(){var B=_.c.apply(this,arguments)||this;B.expanded=!0;return B};
_.l(Ae,_.c);Ae.prototype.getContainerClasses=function(B,R){B=B?"expanded":"collapsed";R&&(B+=" item");return B};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ae.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Ae.prototype,"expanded",void 0);Ae=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Ae);
_.F(Ae,"ytd-sponsorships-perk-renderer",function(){if(yxa!==void 0)return yxa;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return yxa=B},{mode:1});var SFS;var ic=function(){var B=_.c.apply(this,arguments)||this;B.expanded=!0;return B};
_.l(ic,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ic.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],ic.prototype,"expanded",void 0);ic=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],ic);
_.F(ic,"ytd-sponsorships-perks-renderer",function(){if(SFS!==void 0)return SFS;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return SFS=B},{mode:1});var sw=function(){var B=_.c.apply(this,arguments)||this;B.isCollapsed=!1;return B};
_.l(sw,_.c);sw.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
sw.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
sw.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var B;this.expandCollapseButton=_.D((B=this.data)==null?void 0:B.expandButton,_.Ii)}else{var R;this.expandCollapseButton=_.D((R=this.data)==null?void 0:R.collapseButton,_.Ii)}};
sw.prototype.updateExpandCollapseButton=sw.prototype.updateExpandCollapseButton;sw.prototype.onDataChanged=sw.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],sw.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sw.prototype,"isCollapsed",void 0);_.r([_.E(),_.Z("design:type",Object)],sw.prototype,"expandCollapseButton",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sw.prototype,"onDataChanged",null);_.r([_.bp("data","isCollapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sw.prototype,"updateExpandCollapseButton",null);sw=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],sw);
_.F(sw,"ytd-sponsorships-expandable-perks-renderer",function(){if(NGo!==void 0)return NGo;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return NGo=B},{mode:1});var HPG;var F4=function(){return _.c.apply(this,arguments)||this};
_.l(F4,_.c);F4.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],F4.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],F4.prototype,"data",void 0);F4=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],F4);
_.F(F4,"ytd-sponsorships-actionable-message-renderer",function(){if(HPG!==void 0)return HPG;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return HPG=B},{mode:1});var MLG;var rI=function(){return _.c.apply(this,arguments)||this};
_.l(rI,_.c);_.p=rI.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(B){return B?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.p.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.p.computeMessageContainerStyle=function(B){var R=B.expandableItems?" style-clickable":"";return B.messageContainerStyle?B.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+R:"style-unspecified"+R};
_.p.isSinglePerk=function(B){return!!B.messageContainerStyle&&(B.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||B.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.p.onExpandedChanged=function(){var B=this;if(this.expanded)for(var R=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),V=R.next();!V.done;V=R.next())V.value.onShow();_.gB(this,function(){_.OI(B.hostElement,"yt-refit")})};
_.p.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
rI.prototype.onDataChanged=rI.prototype.onDataChanged;rI.prototype.onExpandedChanged=rI.prototype.onExpandedChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],rI.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],rI.prototype,"expanded",void 0);
_.r([_.XX("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rI.prototype,"onExpandedChanged",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rI.prototype,"onDataChanged",null);rI=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],rI);
_.F(rI,"ytd-sponsorships-expandable-message-renderer",function(){if(MLG!==void 0)return MLG;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return MLG=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var k1h;var gI=function(){return _.c.apply(this,arguments)||this};
_.l(gI,_.c);gI.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"}}}}};
gI.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.D(this.data.endButton,_.Ii).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
gI.prototype.onDataChanged=gI.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],gI.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],gI.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gI.prototype,"onDataChanged",null);
gI=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],gI);
_.F(gI,"ytd-sponsorships-heading-renderer",function(){if(k1h!==void 0)return k1h;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return k1h=B},{mode:1});var DX5;var Zw=function(){return _.c.apply(this,arguments)||this};
_.l(Zw,_.c);_.r([_.E(),_.Z("design:type",Object)],Zw.prototype,"data",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);Zw=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Zw);
_.F(Zw,"ytd-sponsorships-links-renderer",function(){if(DX5!==void 0)return DX5;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return DX5=B},{mode:1});var fHG;var mx=function(){return _.c.apply(this,arguments)||this};
_.l(mx,_.c);_.p=mx.prototype;_.p.onDataChanged=function(){if(this.data&&this.data.expandableItems){var B;(B=_.w(this.hostElement).querySelector("tp-yt-paper-button"))==null||B.setAttribute("role","button")}else{var R;(R=_.w(this.hostElement).querySelector("tp-yt-paper-button"))==null||R.removeAttribute("role")}};
_.p.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.p.getExpansionIcon=function(B){return B?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.p.getTileClasses=function(B){return B?"tile expandable-tile":"tile"};
_.p.getButtonDisabled=function(B){return B?void 0:""};
mx.prototype.onDataChanged=mx.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],mx.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],mx.prototype,"expanded",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mx.prototype,"onDataChanged",null);
mx=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],mx);
_.F(mx,"ytd-sponsorships-list-tile-renderer",function(){if(fHG!==void 0)return fHG;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return fHG=B},{mode:1});var lHa;var zUa;var $r=function(){return _.c.apply(this,arguments)||this};
_.l($r,_.c);$r.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$r.prototype,"data",void 0);$r=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],$r);
_.F($r,"ytd-sponsorships-promotion-renderer",function(){if(zUa!==void 0)return zUa;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return zUa=B},{mode:1});var aHJ;var CA=function(){return _.c.apply(this,arguments)||this};
_.l(CA,_.c);CA.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],CA.prototype,"data",void 0);CA=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],CA);
_.F(CA,"ytd-sponsorships-purchase-option-renderer",function(){if(aHJ!==void 0)return aHJ;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return aHJ=B},{mode:1});var dXl;var wtG;var PZ=function(){return _.c.apply(this,arguments)||this};
_.l(PZ,_.c);_.r([_.E(),_.Z("design:type",Object)],PZ.prototype,"data",void 0);PZ=_.r([_.A({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],PZ);
_.F(PZ,"ytd-ypc-offer-promo-renderer",function(){if(wtG!==void 0)return wtG;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wtG=B},{mode:1});var nA=function(){return _.c.apply(this,arguments)||this};
_.l(nA,_.c);_.p=nA.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(B,R){return B&&(R?B.collapseCallToAction:B.expansionCallToAction)};
_.p.getExpansionIcon=function(B){return B?"arrow_drop_up":"arrow_drop_down"};
_.p.expansionCallToActionTap=function(){var B=this;this.expanded=!this.expanded;_.gB(this,function(){_.OI(B.hostElement,"yt-refit")})};
_.p.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var B,R=(B=this.data)==null?void 0:B.onVisible;R&&this.ytComponentBehavior.resolveCommand(R)};
_.p.computeDisplayTitle=function(B){return!(!B||this.titledisplaystatus!=="show")};
_.p.computeDisplaySeparator=function(){return!1};
_.p.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
nA.prototype.onDataChanged=nA.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],nA.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],nA.prototype,"data",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],nA.prototype,"expanded",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],nA.prototype,"purchaseButtonClicked",void 0);_.r([_.E({reflectToAttribute:!0,value:"show"}),_.Z("design:type",String)],nA.prototype,"titledisplaystatus",void 0);_.r([_.E({computed:"computeDisplayTitle(data.title)"}),_.Z("design:type",Boolean)],nA.prototype,"displayTitle",void 0);
_.r([_.E({computed:"computeDisplaySeparator(data)"}),_.Z("design:type",Boolean)],nA.prototype,"displaySeparator",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nA.prototype,"onDataChanged",null);nA=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],nA);
_.F(nA,"ytd-sponsorships-tier-renderer",function(){if(dXl!==void 0)return dXl;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return dXl=B},{mode:2});var uc=function(){return _.c.apply(this,arguments)||this};
_.l(uc,_.c);
uc.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"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],uc.prototype,"data",void 0);uc=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],uc);
_.F(uc,"ytd-sponsorships-management-renderer",function(){if(lHa!==void 0)return lHa;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return lHa=B},{mode:1});var TGa;var Ow=function(){return _.c.apply(this,arguments)||this};
_.l(Ow,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ow.prototype,"data",void 0);Ow=_.r([_.A({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Ow);
_.F(Ow,"ytd-open-in-native-app-view-model",function(){if(TGa!==void 0)return TGa;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return TGa=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var xX4;var LeJ;var vNR=_.$Q(["top-"]),Ke4=_.$Q(["bottom-"]),IHh=_.$Q(["left-"]),EN_=_.$Q(["right-"]),QwT={},qFT=function(B,R,V){B.removeAttribute("top-"+V);B.removeAttribute("bottom-"+V);B.removeAttribute("left-"+V);B.removeAttribute("right-"+V);R&&(R.top&&_.cB([_.PR(vNR)],B,"top-"+V,R.top),R.bottom&&_.cB([_.PR(Ke4)],B,"bottom-"+V,R.bottom),R.left&&_.cB([_.PR(IHh)],B,"left-"+V,R.left),R.right&&_.cB([_.PR(EN_)],B,"right-"+V,R.right))};
QwT.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(B){var R,V=_.w((R=this.hostElement)!=null?R:this),e;R=this.cardItemBoxBehaviorMarginTargetId&&V?V.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(e=this.hostElement)!=null?e:this;qFT(R,B,"margin")},
cardItemContainerPaddingChanged_:function(B){var R,V=_.w((R=this.hostElement)!=null?R:this),e;R=this.cardItemBoxBehaviorPaddingTargetId&&V?V.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(e=this.hostElement)!=null?e:this;qFT(R,B,"padding")}}];var oE={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 cxl;var AxJ;var Ba=function(){return _.c.apply(this,arguments)||this};
_.l(Ba,_.c);Ba.prototype.textColorChanged_=function(){this.hostElement.style.color=oE[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Ba.prototype.textColorChanged_=Ba.prototype.textColorChanged_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.r([_.v(QwT.YtCardItemBoxBehavior),_.Z("design:type",Object)],Ba.prototype,"ytCardItemBoxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ba.prototype,"data",void 0);_.r([_.XX("data.textColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ba.prototype,"textColorChanged_",null);
Ba=_.r([_.fJ({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Ba);
_.F(Ba,"yt-card-item-text-renderer",function(){if(AxJ===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;cxl===void 0&&(cxl=document.createElement("template"));var e=cxl;V.call(R,e.content.cloneNode(!0),B.content.firstChild);AxJ=B}B=AxJ;return B},{mode:2});var iPb;var swT;var RE=function(){return _.c.apply(this,arguments)||this};
_.l(RE,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],RE.prototype,"data",void 0);RE=_.r([_.fJ({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],RE);
_.F(RE,"yt-card-item-badge-renderer",function(){if(swT===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;iPb===void 0&&(iPb=document.createElement("template"));var e=iPb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);swT=B}B=swT;return B},{mode:2});var Fe_;var rx5;var VH=function(){return _.c.apply(this,arguments)||this};
_.l(VH,_.c);VH.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],VH.prototype,"data",void 0);VH=_.r([_.fJ({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],VH);
_.F(VH,"yt-card-item-text-collection-renderer",function(){if(rx5===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Fe_===void 0&&(Fe_=document.createElement("template"));var e=Fe_;V.call(R,e.content.cloneNode(!0),B.content.firstChild);rx5=B}B=rx5;return B},{mode:2});var gN4;var ZPv;var ee=function(){return _.c.apply(this,arguments)||this};
_.l(ee,_.c);ee.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]]"}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ee.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Number)],ee.prototype,"iconSize",void 0);ee=_.r([_.fJ({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],ee);
_.F(ee,"yt-card-item-text-with-button-renderer",function(){if(ZPv===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;gN4===void 0&&(gN4=document.createElement("template"));var e=gN4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ZPv=B}B=ZPv;return B},{mode:2});var XS=function(){return _.c.apply(this,arguments)||this};
_.l(XS,_.c);XS.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],XS.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],XS.prototype,"data",void 0);XS=_.r([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],XS);
_.F(XS,"ytd-commerce-cart-summary-line-item-renderer",function(){if(LeJ!==void 0)return LeJ;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return LeJ=B},{mode:1});_.aO("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var ph=function(){var B=_.c.apply(this,arguments)||this;B.hidden=!1;return B};
_.l(ph,_.c);_.p=ph.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 B=this.commerceCartCheckoutButtonEntity,R;if(((R=this.data)==null?0:R.cartButton)&&B.checkoutSummaryText){var V,e=cI((V=this.data)==null?void 0:V.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+e+".cardItemTextRenderer.text",Ak(B.checkoutSummaryText));if(B.checkoutDetailText){var X;V=cI((X=this.data)==null?void 0:X.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",Ak(B.checkoutDetailText))}if(B.checkoutAdditionalMetadataText){var Y;
X=cI((Y=this.data)==null?void 0:Y.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+X+".cardItemTextRenderer.text",Ak(B.checkoutAdditionalMetadataText))}}else B.estimatedTotalPrice&&(Y=cI((e=this.data)==null?void 0:e.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+Y+".cardItemTextRenderer.text",Ak(B.estimatedTotalPrice)))};
_.p.updateIsHidden=function(){var B,R=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.isHidden;R!==void 0&&(this.hidden=R)};
_.p.updateCheckoutButton=function(){var B,R=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.isDisabled;R!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",R);var V;B=(V=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:V.innertubeCommand;B!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",B);var e;V=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.checkoutButtonText;V!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:V})};
ph.prototype.entityChanged=ph.prototype.entityChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],ph.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ph.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ph.prototype,"fullWidth",void 0);_.r([_.E(),_.Z("design:type",Object)],ph.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ph.prototype,"compact",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ph.prototype,"hidden",void 0);
_.r([_.E({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AWp}),_.Z("design:type",Object)],ph.prototype,"commerceCartCheckoutButtonEntity",void 0);_.r([_.XX("commerceCartCheckoutButtonEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ph.prototype,"entityChanged",null);ph=_.r([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],ph);
_.F(ph,"ytd-commerce-cart-checkout-button-renderer",function(){if(xX4!==void 0)return xX4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return xX4=B},{mode:2});var mXG;_.$XS={};
_.$XS.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",_.Bc(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Bc(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(B){!this.tappableItemBehaviorTapEnabled||B.keyCode!==13&&B.keyCode!==32||B.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var B=this.data.onTap;B.ypcGetCartEndpoint?(_.VD(this.hostElement,[B]),this.tappableItemBehaviorTapEnabled=!1):B.ypcOffersEndpoint?_.VD(this.hostElement,[B]):_.eO(this.hostElement,[B],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(B){this.tappableItemBehaviorTapEnabled=!!B},
tappableItemBehaviorOnTapEnabledChanged_:function(){var B=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(B.setAttribute("tabIndex",0),B.setAttribute("role","button")):(B.removeAttribute("tabIndex"),B.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(B){B.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var CrG;var Prh;var Ye=function(){return _.c.apply(this,arguments)||this};
_.l(Ye,_.c);Ye.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.d1("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.d1("sharingToggleButtonAndDefaultButton")}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ye.prototype,"data",void 0);Ye=_.r([_.fJ({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Ye);
_.F(Ye,"yt-card-item-actions-renderer",function(){if(Prh===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;CrG===void 0&&(CrG=document.createElement("template"));var e=CrG;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Prh=B}B=Prh;return B},{mode:2});var nN5;var uZG;var OP5;var oO_;var BDv;var Rmv;var hb=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return B};
_.l(hb,_.c);hb.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
hb.prototype.handleDarkModeToggledAction_=function(B){this.isDarkTheme_=B};
hb.prototype.computeThemeImage_=function(B,R){if(!B||!B.imageLight)return!1;this.isCircular_=B.isCircular;B.imageWidth&&(this.hostElement.style.width=B.imageWidth+"px");B.imageHeight&&(this.hostElement.style.height=B.imageHeight+"px");B.borderWidth&&(this.image.style.borderWidth=B.borderWidth+"px",this.image.style.borderStyle="solid");B.borderColor&&(this.image.style.borderColor=_.zF(B.borderColor));return R&&B.imageDark?B.imageDark:B.imageLight};
hb.prototype.computeThemeIcon_=function(B){var R,V;if(!(B==null?0:(R=B.themedIcon)==null?0:(V=R.icon)==null?0:V.iconType))return!1;this.icon.style.color=oE[B.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(B.imageWidth||18)+"px";this.icon.style.height=(B.imageHeight||18)+"px";return _.RT(B.themedIcon.icon.iconType)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(QwT.YtCardItemBoxBehavior),_.Z("design:type",Object)],hb.prototype,"ytCardItemBoxBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],hb.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],hb.prototype,"data",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],hb.prototype,"fit",void 0);_.r([_.E(),_.Z("design:type",Boolean)],hb.prototype,"isDarkTheme_",void 0);_.r([_.E({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Z("design:type",Object)],hb.prototype,"themeImage_",void 0);_.r([_.E({computed:"computeThemeIcon_(data)"}),_.Z("design:type",Object)],hb.prototype,"themeIcon_",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Object)],hb.prototype,"isCircular_",void 0);
_.r([_.Yp("#image"),_.Z("design:type",Object)],hb.prototype,"image",void 0);_.r([_.Yp("#icon"),_.Z("design:type",Object)],hb.prototype,"icon",void 0);hb=_.r([_.fJ({is:"yt-themed-image-renderer",disableElementRegistration:!0})],hb);
_.F(hb,"yt-themed-image-renderer",function(){if(Rmv===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;BDv===void 0&&(BDv=document.createElement("template"));var e=BDv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Rmv=B}B=Rmv;return B},{mode:2});var tb=function(){return _.c.apply(this,arguments)||this};
_.l(tb,_.c);tb.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"}}}}};
tb.prototype.computeImagePlacement_=function(B){return B||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],tb.prototype,"data",void 0);_.r([_.E({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Z("design:type",String)],tb.prototype,"imagePlacement",void 0);
tb=_.r([_.fJ({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],tb);
_.F(tb,"yt-card-item-text-with-image-renderer",function(){if(oO_===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;OP5===void 0&&(OP5=document.createElement("template"));var e=OP5;V.call(R,e.content.cloneNode(!0),B.content.firstChild);oO_=B}B=oO_;return B},{mode:2});var Wa=function(){return _.c.apply(this,arguments)||this};
_.l(Wa,_.c);Wa.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"}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Wa.prototype,"data",void 0);Wa=_.r([_.fJ({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Wa);
_.F(Wa,"yt-card-item-error-renderer",function(){if(uZG===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;nN5===void 0&&(nN5=document.createElement("template"));var e=nN5;V.call(R,e.content.cloneNode(!0),B.content.firstChild);uZG=B}B=uZG;return B},{mode:2});var VxG;var emb;_.aO("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var bq=function(){return _.c.apply(this,arguments)||this};
_.l(bq,_.c);_.p=bq.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 B,R=(B=this.data)==null?void 0:B.backgroundColor;B=oE[R||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.w(this.hostElement).querySelector("#main-content").style.backgroundColor=B};
_.p.headerPromoBackgroundColorChanged_=function(){var B,R=(B=this.data)==null?void 0:B.headerPromoBackgroundColor;B=oE[R||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.w(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=B};
_.p.errorRendererVisibilityChanged_=function(){var B=this.isExpanded_,R;this.isErrorRendererVisible_=!((R=this.data)==null||!R.errorRenderer)&&!B};
_.p.onYtToggleButton_=function(B,R){this.isExpanded_=R.toggled};
bq.prototype.onYtToggleButton_=bq.prototype.onYtToggleButton_;bq.prototype.errorRendererVisibilityChanged_=bq.prototype.errorRendererVisibilityChanged_;bq.prototype.headerPromoBackgroundColorChanged_=bq.prototype.headerPromoBackgroundColorChanged_;bq.prototype.backgroundColorChanged_=bq.prototype.backgroundColorChanged_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(QwT.YtCardItemBoxBehavior),_.Z("design:type",Object)],bq.prototype,"ytCardItemBoxBehavior",void 0);_.r([_.v(_.$XS.YtTappableItemBehavior),_.Z("design:type",Object)],bq.prototype,"ytTappableItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bq.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],bq.prototype,"isExpanded_",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],bq.prototype,"isErrorRendererVisible_",void 0);_.r([_.XX("data.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bq.prototype,"backgroundColorChanged_",null);_.r([_.XX("data.headerPromoBackgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bq.prototype,"headerPromoBackgroundColorChanged_",null);
_.r([_.XX("data.errorRenderer","isExpanded_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bq.prototype,"errorRendererVisibilityChanged_",null);_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Object]),_.Z("design:returntype")],bq.prototype,"onYtToggleButton_",null);bq=_.r([_.fJ({is:"yt-card-item-renderer",disableElementRegistration:!0})],bq);
_.F(bq,"yt-card-item-renderer",function(){if(emb===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;VxG===void 0&&(VxG=document.createElement("template"));var e=VxG;V.call(R,e.content.cloneNode(!0),B.content.firstChild);emb=B}B=emb;return B},{mode:2});_.aO("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Jb=function(){var B=_.c.apply(this,arguments)||this;B.hidden=!1;return B};
_.l(Jb,_.c);_.p=Jb.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 B,R=(B=this.commerceCartHeaderEntity)==null?void 0:B.isHidden;R!==void 0&&(this.hidden=R)}};
_.p.updateTitle=function(){var B=this.commerceCartHeaderEntity.isDisabled,R,V,e=(V=_.D((R=this.data)==null?void 0:R.item,u14))==null?void 0:V.headingRenderer;e&&(R=cI(e,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+R+".0.cardItemTextRenderer.textColor",B?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.p.updateSummaryText=function(){var B=this.commerceCartHeaderEntity;if(this.compact){var R,V,e=(V=_.D((R=this.data)==null?void 0:R.item,u14))==null?void 0:V.headingRenderer;e&&(R=cI(e,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+R+".1.cardItemTextRenderer.text",B.shortHeaderSummaryText?Ak(B.shortHeaderSummaryText):B.headerSummaryText?Ak(B.headerSummaryText):""))}else{var X;if(R=(X=_.D((e=this.data)==null?void 0:e.item,u14))==null?void 0:X.additionalInfoRenderer)R=cI(R,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+R+".text",B.headerSummaryText?Ak(B.headerSummaryText):"")}};
_.p.updateCheckoutButton=function(){var B=this.commerceCartHeaderEntity,R,V,e=(V=_.D((R=this.data)==null?void 0:R.item,u14))==null?void 0:V.additionalInfoRenderer;R=cI(e,"buttonRenderer");var X;V=(X=this.commerceCartHeaderEntity)==null?void 0:X.isButtonDisabled;var Y;X=(Y=this.commerceCartHeaderEntity)==null?void 0:Y.isButtonHidden;V!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+R+".buttonRenderer.isDisabled",V);X!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
X);var t;B=(t=B.checkoutButtonCommand)==null?void 0:t.innertubeCommand;B!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+R+".buttonRenderer.command",B)};
Jb.prototype.entityChanged=Jb.prototype.entityChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],Jb.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Jb.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Jb.prototype,"compact",void 0);_.r([_.E({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(B,R){return _.p7(B.entities,"commerceCartHeaderEntity",R)}}),
_.Z("design:type",Object)],Jb.prototype,"commerceCartHeaderEntity",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Jb.prototype,"hidden",void 0);_.r([_.XX("commerceCartHeaderEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jb.prototype,"entityChanged",null);Jb=_.r([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Jb);
_.F(Jb,"ytd-commerce-cart-header-renderer",function(){if(mXG!==void 0)return mXG;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return mXG=B},{mode:1});var XQ_;var pQv=_.Hx(function(B,R){var V;return(V=B.onChangeCallback)==null?void 0:V.call(B,R)},1E3),YEv=_.sx(function(B){var R=B.data;
var V=B.iconMinus;B=B.iconPlus;var e=function(){return!!R().disabled},X=_.h(_.WU(0,void 0,"r56zNb")),Y=X.next().value,t=X.next().value;
X={};X=_.XE("yt-spec-quantity-incrementer-shape__icon",(X["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return e()||Y()===(R().onRemoveCommand?0:1)},X));
var b={};b=_.XE("yt-spec-quantity-incrementer-shape__icon",(b["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return Y()>=R().maxValue||e()},b));
var J={};J=_.XE("yt-spec-quantity-incrementer-shape__text",(J["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return Y()>R().maxValue},J["yt-spec-quantity-incrementer-shape__text--text-disabled"]=e,J));
var G=_.Wr(function(){if(Y()===1){var S,M;(M=(S=R()).onRemoveCommand)==null||M.call(S)}S=Y()>R().maxValue?R().maxValue:Y()-1;t(S);pQv(R(),S);return!1}),y=_.Wr(function(){if(Y()===R().maxValue)return!1;
var S=Y()+1;t(S);pQv(R(),S);return!1});
_.fQ(function(){t(R().value)});
return _.N("quantity-incrementer-shape",null,_.N("div",{class:"yt-spec-quantity-incrementer-shape"},_.N("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return Y()===(R().onRemoveCommand?0:1)||e()},
"aria-label":function(){return Y()!==1?R().minusLabel:R().minimumReachedLabel},
"on:click":G},_.N(_.yK,{model:{circular:!0}}),_.N("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.N("div",{class:X},V()))),_.N("div",{class:J},Y),_.N("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return Y()>=R().maxValue||e()},
"aria-label":function(){return Y()!==R().maxValue?R().plusLabel:R().maximumReachedLabel},
"on:click":y},_.N(_.yK,{model:{circular:!0}}),_.N("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.N("div",{class:b},B())))))},"Jd");_.mR(_.sx(function(B){function R(){V().onRemoveCommand&&_.Lc(V().onRemoveCommand)}
var V=B.data;var e=_.No(W7q,function(){return V().quantityIncrementerEntityKey});
return _.N("yt-quantity-incrementer-view-model",null,_.N(YEv,{data:function(){var X=V(),Y;var t=e()?!((Y=e())==null||!Y.disabled):!1;var b;Y=e()?(b=e())==null?void 0:b.quantity:V().quantity;return kQS(X,t,R,Y)},
iconMinus:function(){return _.N(_.Us,{icon:"BAR_HORIZONTAL",className:_.YB("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.N(_.Us,{icon:"ADD",className:_.YB("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Kd"),"yt-quantity-incrementer-view-model",{props:{data:_.qq}});var je=function(){var B=_.c.apply(this,arguments)||this;B.compact=!1;B.hasQuantityIncrementer=!1;return B};
_.l(je,_.c);je.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"}}}};
je.prototype.computeHasQuantityIncrementer=function(){var B;return!!_.D((B=this.data)==null?void 0:B.picker,RiJ)};
je.prototype.onLabelClick=function(){var B;(B=this.dropdownEl)==null||B.open()};
_.r([_.Yp("ytd-dropdown-renderer"),_.Z("design:type",Object)],je.prototype,"dropdownEl",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],je.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],je.prototype,"quantityColor",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],je.prototype,"compact",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Z("design:type",Object)],je.prototype,"hasQuantityIncrementer",void 0);je=_.r([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],je);
_.F(je,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(XQ_!==void 0)return XQ_;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return XQ_=B},{mode:1});var hmb;var txv;var Ul=function(){return _.c.apply(this,arguments)||this};
_.l(Ul,_.c);Ul.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ul.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Ul.prototype.updateTitle=function(){var B=this.disabledCartItemEntity;B.disableActionName&&this.set("data.title",Ak(B.disableActionName))};
Ul.prototype.updateButton=function(){var B,R=(B=this.disabledCartItemEntity.undoCommand)==null?void 0:B.innertubeCommand;R!==void 0&&(this.set("data.actionButton.buttonRenderer.command",R),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Ul.prototype.entityChanged=Ul.prototype.entityChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],Ul.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ul.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(B,R){return _.p7(B.entities,"disabledCartItemEntity",R)}}),
_.Z("design:type",Object)],Ul.prototype,"disabledCartItemEntity",void 0);_.r([_.E(),_.Z("design:type",Object)],Ul.prototype,"data",void 0);_.r([_.XX("disabledCartItemEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ul.prototype,"entityChanged",null);Ul=_.r([_.A({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Ul);
_.F(Ul,"ytd-disabled-cart-item-renderer",function(){if(txv!==void 0)return txv;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return txv=B},{mode:1});_.aO("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Ng=function(){var B=_.c.apply(this,arguments)||this;B.compact=!1;B.hidden=!1;B.errorHidden=!1;B.noOnTap=!1;return B};
_.l(Ng,_.c);_.p=Ng.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 B=this.firstButtonElement;B.alignByText=!0;B.iconAlignByText=!0}};
_.p.computeNoOnTap=function(B){return!B};
_.p.updateQuantityColor=function(){if(this.pickerElement){var B,R=(B=this.commerceCartItemEntity)==null?void 0:B.quantityColor;this.pickerElement.quantityColor=R}};
_.p.updateTotalPriceColor=function(){var B,R=(B=this.commerceCartItemEntity)==null?void 0:B.totalPriceColor;if(R){var V;B=_.D((V=this.data)==null?void 0:V.quantityPicker,oZa);if(V=_.D(B==null?void 0:B.price,Oy2))V.textColor=R}};
_.p.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var B,R=(B=this.commerceCartItemEntity)==null?void 0:B.isHidden;R!==void 0&&(this.hidden=R)}};
_.p.updateHideErrorMessage=function(){var B,R=(B=this.commerceCartItemEntity)==null?void 0:B.hideErrorMessage;R!==void 0&&(this.errorHidden=R)};
_.p.updateQuantity=function(){var B=this,R,V=(R=this.commerceCartItemEntity)==null?void 0:R.quantity,e;R=(e=this.commerceCartItemEntity)==null?void 0:e.totalPrice;if(V){this.updateTotalPriceColor();this.updateQuantityColor();var X;e=_.D((X=this.data)==null?void 0:X.quantityPicker,oZa);if(X=_.D(e==null?void 0:e.price,Oy2))X.text=R?{simpleText:R.content}:void 0;if(R=_.D(e==null?void 0:e.picker,RiJ))R.quantity=V;var Y;if(X=(Y=_.D(e==null?void 0:e.picker,to2))==null?void 0:Y.entries){Y=!1;R=void 0;X=
_.h(X);for(e=X.next();!e.done;e=X.next())e=e.value,e.dropdownItemRenderer&&(R||(R=e.dropdownItemRenderer),e.dropdownItemRenderer.isSelected=!1,V===e.dropdownItemRenderer.int32Value&&(Y=!0,e.dropdownItemRenderer.isSelected=!0));!Y&&R&&(R.isSelected=!0)}_.gB(this,function(){var t;B.set("data.quantityPicker",_.M_.unsafeClone((t=B.data)==null?void 0:t.quantityPicker))})}};
Ng.prototype.onYtRendererstamperFinished=Ng.prototype.onYtRendererstamperFinished;Ng.prototype.entityChanged=Ng.prototype.entityChanged;_.r([_.E(),_.Z("design:type",Object)],Ng.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ng.prototype,"compact",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Ng.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Ng.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ng.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(B,R){return _.p7(B.entities,"commerceCartItemEntity",R)}}),
_.Z("design:type",Object)],Ng.prototype,"commerceCartItemEntity",void 0);_.r([_.E(),_.Z("design:type",Object)],Ng.prototype,"quantityPicker",void 0);_.r([_.E(),_.Z("design:type",Object)],Ng.prototype,"compactQuantityPicker",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ng.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ng.prototype,"errorHidden",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Z("design:type",Object)],Ng.prototype,"noOnTap",void 0);_.r([_.Yp("ytd-commerce-cart-item-quantity-picker-renderer"),_.Z("design:type",Object)],Ng.prototype,"pickerElement",void 0);_.r([_.Yp("yt-button-renderer"),_.Z("design:type",Element)],Ng.prototype,"firstButtonElement",void 0);
_.r([_.XX("commerceCartItemEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ng.prototype,"entityChanged",null);_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ng.prototype,"onYtRendererstamperFinished",null);Ng=_.r([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Ng);
_.F(Ng,"ytd-commerce-cart-item-renderer",function(){if(hmb!==void 0)return hmb;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return hmb=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var Wv4;var bVT;var G6=function(){return _.c.apply(this,arguments)||this};
_.l(G6,_.c);G6.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}}}}}};
G6.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
G6.prototype.updateCheckoutLineItems=function(){var B,R=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.checkoutLineItems;R&&(B=R.map(function(V){a:{var e=V.price,X=V.description;switch(V.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":V={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Ak(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:Ak(e),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:V={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Ak(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:Ak(e),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 V}),this.set("data.summaryLineItems",B))};
G6.prototype.updateIsHidden=function(){var B,R=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.isHidden;R!==void 0&&(this.hostElement.hidden=R)};
G6.prototype.entityChanged=G6.prototype.entityChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],G6.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],G6.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],G6.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AWp}),_.Z("design:type",Object)],G6.prototype,"commerceCartCheckoutButtonEntity",void 0);_.r([_.XX("commerceCartCheckoutButtonEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],G6.prototype,"entityChanged",null);G6=_.r([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],G6);
_.F(G6,"ytd-commerce-cart-summary-renderer",function(){if(bVT!==void 0)return bVT;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return bVT=B},{mode:1});var JPl={};JPl.InjectBehavior=[UDd.InjectBehavior];var jUJ;var Uv5;var yH=function(){return _.c.apply(this,arguments)||this};
_.l(yH,_.c);
yH.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:_.d1("menuRenderer")}}};
yH.prototype.onMenuTap=function(B){B.stopPropagation()};
_.mh.Object.defineProperties(yH.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 B,R;return!(((B=this.data)==null||!B.sectionHeading)&&((R=this.data)==null?void 0:R.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var B,R;return!(((B=this.data)==null||!B.image)&&((R=this.data)==null?void 0:R.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var B,R;return!(((B=this.data)==null||!B.menu)&&((R=this.data)==null?void 0:R.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$XS.YtTappableItemBehavior),_.Z("design:type",Object)],yH.prototype,"ytTappableItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yH.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data.accessibilityData"),_.Z("design:type",String),_.Z("design:paramtypes",[])],yH.prototype,"ariaLabel",null);_.r([_.K("data.sectionHeading","data.layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yH.prototype,"sectionHeadingVisible",null);_.r([_.K("data.image","data.layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yH.prototype,"imageVisible",null);
_.r([_.K("data.menu","data.layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yH.prototype,"menuVisible",null);yH=_.r([_.fJ({is:"yt-activity-item-renderer",disableElementRegistration:!0})],yH);
_.F(yH,"yt-activity-item-renderer",function(){if(Uv5===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;jUJ===void 0&&(jUJ=document.createElement("template"));var e=jUJ;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Uv5=B}B=Uv5;return B},{mode:2});var NDb;var GSo;var yPv;var SEo;var Se=function(){return _.c.apply(this,arguments)||this};
_.l(Se,_.c);
Se.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"}}}}};
Se.prototype.backgroundColorChanged_=function(){var B,R=(B=this.data)==null?void 0:B.backgroundColor;this.hostElement.style.backgroundColor=oE[R||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Se.prototype.backgroundColorChanged_=Se.prototype.backgroundColorChanged_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Se.prototype,"data",void 0);
_.r([_.XX("data.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Se.prototype,"backgroundColorChanged_",null);Se=_.r([_.fJ({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Se);
_.F(Se,"yt-offer-item-upsell-renderer",function(){if(SEo===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;yPv===void 0&&(yPv=document.createElement("template"));var e=yPv;V.call(R,e.content.cloneNode(!0),B.content.firstChild);SEo=B}B=SEo;return B},{mode:2});_.aO("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Ha=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};B.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return B};
_.l(Ha,_.c);_.p=Ha.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:_.d1("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(B){return B};
_.p.computeContainerIsHidden_=function(B){return B&&!!B.isHidden};
_.p.computeShowSpinner_=function(B,R){return B&&R==="in-progress"};
_.p.computeShowMoreContentsButton_=function(B,R,V,e,X){return!(!(e&&e.length||X&&X.length&&V)||!B||R)};
_.p.onToggleButton_=function(B){var R=this;B.stopPropagation();this.isExpanded_=B.detail&&B.detail.toggled;var V,e;this.isExpanded_&&!this.data.continuationSection.length&&((V=this.data)==null?0:(e=V.continuation)==null?0:e.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.OI(this.hostElement,"yt-load-next-continuation",function(X){return R.getContinuationUrl_(R.data.continuation.onClickContinuationData,X)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.VD(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.p.onShowMoreContentsButtonClicked_=function(B){var R=this;B.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.OI(this.hostElement,"yt-load-next-continuation",function(V){return R.getContinuationUrl_(R.data.continuations[0].nextContinuationData,V)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.VD(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.p.getContinuationUrl_=function(B,R){var V=B.continuation;B=B.clickTrackingParams;var e=_.TE();B&&e&&_.iF(e,_.U5(B));return _.gg(R,{continuation:V})};
_.p.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var B=_.w(this.hostElement).querySelector("#continuation-section");B&&(B=B.querySelectorAll("ytmusic-item-section-renderer"))&&B.forEach(function(R){return R.classList.add("memberships-and-purchases")})};
_.p.dataChanged_=function(){var B;this.isExpanded_=!((B=this.data)==null||!B.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.p.updateCardOnClickCommand_=function(B){B=_.D(B,ry4);var R,V;this.data&&((R=this.data)==null?0:R.targetId)&&B&&B.targetId===((V=this.data)==null?void 0:V.targetId)&&B.onClickCommand&&(this.data.onClickCommand=B.onClickCommand,this.isOnClickCommand_=!0)};
_.p.backgroundColorChanged_=function(){var B,R=(B=this.data)==null?void 0:B.backgroundColor;this.hostElement.style.backgroundColor=oE[R||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Ha.prototype.backgroundColorChanged_=Ha.prototype.backgroundColorChanged_;Ha.prototype.dataChanged_=Ha.prototype.dataChanged_;Ha.prototype.nextContinuationDataUpdated_=Ha.prototype.nextContinuationDataUpdated_;Ha.prototype.onToggleButton_=Ha.prototype.onToggleButton_;_.r([_.v(_.L_),_.Z("design:type",Object)],Ha.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ha.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ha.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.vM.YtNextContinuationBehavior),_.Z("design:type",Object)],Ha.prototype,"ytNextContinuationBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.r([_.v(JPl.InjectBehavior),_.Z("design:type",Object)],Ha.prototype,"injectBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ha.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ha.prototype,"compact",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ha.prototype,"isExpanded_",void 0);_.r([_.E({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Z("design:type",String)],Ha.prototype,"containerStyle_",void 0);_.r([_.E({value:"not-started"}),_.Z("design:type",String)],Ha.prototype,"continuationStatus_",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Z("design:type",Boolean)],Ha.prototype,"showSpinner_",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Ha.prototype,"isOnClickCommand_",void 0);_.r([_.E({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Z("design:type",Boolean)],Ha.prototype,"showMoreContentsButton_",void 0);
_.r([_.E({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(B,R){return!R||B.entities?null:_.p7(B.entities,"cardItemContainerEntity",R)}}),
_.Z("design:type",Object)],Ha.prototype,"cardItemContainerEntity_",void 0);_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ha.prototype,"onToggleButton_",null);_.r([_.R_("yt-next-continuation-data-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ha.prototype,"nextContinuationDataUpdated_",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ha.prototype,"dataChanged_",null);_.r([_.XX("data.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ha.prototype,"backgroundColorChanged_",null);Ha=_.r([_.fJ({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Ha);
_.F(Ha,"yt-card-item-container-renderer",function(){if(GSo===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;NDb===void 0&&(NDb=document.createElement("template"));var e=NDb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);GSo=B}B=GSo;return B},{mode:2});var Mg=function(){return _.c.apply(this,arguments)||this};
_.l(Mg,_.c);Mg.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"}}}};
Mg.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Mg.prototype.computeLoadingHidden=function(){var B;return!((B=this.commerceCartPageStateEntity)==null?0:B.cartActionInProgress)};
Mg.prototype.updateNotification=function(){var B,R=(B=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:B.summaryText;R&&this.set("data.cartNotification",Ak(R))};
Mg.prototype.notificationEntityChanged=Mg.prototype.notificationEntityChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],Mg.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Mg.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Mg.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(B,R){return _.p7(B.entities,"commerceCartExpandableNotificationEntity",R)}}),
_.Z("design:type",Object)],Mg.prototype,"commerceCartExpandableNotificationEntity",void 0);_.r([_.E({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(B,R){return _.p7(B.entities,"commerceCartPageStateEntity",R)}}),
_.Z("design:type",Object)],Mg.prototype,"commerceCartPageStateEntity",void 0);_.r([_.Yp("#spinner"),_.Z("design:type",HTMLElement)],Mg.prototype,"spinner",void 0);_.r([_.XX("commerceCartExpandableNotificationEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mg.prototype,"notificationEntityChanged",null);Mg=_.r([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Mg);
_.F(Mg,"ytd-commerce-cart-renderer",function(){if(Wv4!==void 0)return Wv4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Wv4=B},{mode:1});var HV_;var ke=function(){var B=_.c.apply(this,arguments)||this;B.bigImage=!1;return B};
_.l(ke,_.c);_.mh.Object.defineProperties(ke.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.placeholderImageUrl}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ke.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ke.prototype,"bigImage",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ke.prototype,"placeholderImageUrl",null);ke=_.r([_.A({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],ke);
_.F(ke,"ytd-empty-product-shelf-renderer",function(){if(HV_!==void 0)return HV_;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return HV_=B},{mode:1});var Mxb;var Dy=function(){var B=_.c.apply(this,arguments)||this;B.itemStyle="link-item";B.watchMetadataRefresh=!1;B.skinnyMode=!1;B.metaPanel=!1;B.inStructuredDescription=!1;B.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};B.updateOnResizeDebouncer=null;return B};
_.l(Dy,_.c);_.p=Dy.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(B){B.trackingParams&&_.WK().graftServerVe(B.trackingParams)};
_.p.handleUpdateMerchShelfAction=function(B){var R=this,V=_.D(B.updateMerchandiseShelfAction.merchandiseShelf,_.TOo);V&&(V.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){R.attachVEs(V);R.data=V},Number(V.renderDelayMs))):(this.attachVEs(V),this.data=V))};
_.p.updateOnResize=function(){if(this.JSC$14604_scrollContainer!==void 0&&this.JSC$14604_scrollContainer.clientWidth!==0&&this.items!==void 0){var B=this.JSC$14604_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-B));this.ytdHorizontalListBehavior.reposition_();var R;switch((R=this.data)==null?void 0:R.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var V,
e;((V=this.data)==null?void 0:(e=V.items)==null?void 0:e.length)===1?this.itemStyle="cta-item":this.itemStyle=B>=740?"large-item":"small-item"}}};
_.p.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.p8(this.updateOnResizeDebouncer,_.mB.after(100),this.updateOnResize)};
Dy.prototype.debouncedUpdateOnResize=Dy.prototype.debouncedUpdateOnResize;Dy.prototype.dataChanged=Dy.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Pu.YtdHorizontalListBehavior),_.Z("design:type",Object)],Dy.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Dy.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Dy.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Dy.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Dy.prototype,"itemStyle",void 0);_.r([_.E({value:6}),_.Z("design:type",Number)],Dy.prototype,"initialCount",void 0);
_.r([_.E({value:"data.items"}),_.Z("design:type",String)],Dy.prototype,"itemsPath",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Dy.prototype,"watchMetadataRefresh",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Dy.prototype,"skinnyMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Dy.prototype,"metaPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Dy.prototype,"inStructuredDescription",void 0);
_.r([_.Yp("#items"),_.Z("design:type",HTMLDivElement)],Dy.prototype,"items",void 0);_.r([_.Yp("#scroll-container"),_.Z("design:type",HTMLDivElement)],Dy.prototype,"JSC$14604_scrollContainer",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Dy.prototype,"dataChanged",null);_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Dy.prototype,"debouncedUpdateOnResize",null);
Dy=_.r([_.A({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Dy);
_.F(Dy,"ytd-merch-shelf-renderer",function(){if(Mxb!==void 0)return Mxb;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Mxb=B},{mode:2});var kSv;var fh=function(){var B=_.c.apply(this,arguments)||this;B.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 B};
_.l(fh,_.c);_.p=fh.prototype;
_.p.addBackstagePostAction=function(B){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(B=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",B))&&(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:B}):this.set("data.contents",[{backstagePostThreadRenderer:B}]))};
_.p.addBackstageCommentAction=function(B){var R=this.get("addBackstageCommentAction.parentId",B);B=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",B);if(R&&B){R=this.postIdToIndices(R);for(var V=0;V<R.length;V++){var e=R[V];if(e<0)break;e="data.contents."+e+".backstagePostThreadRenderer.comments";this.get(e)&&(this.get(e+".backstageCommentsRenderer.contents")&&this.push(e+".backstageCommentsRenderer.contents",{commentThreadRenderer:B}),this.get(e+".backstageCommentsRenderer.teaserContents")?
this.push(e+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:B}):this.set(e+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:B}]))}}};
_.p.addBackstageReplyAction=function(B){var R=this.get("addBackstageReplyAction.parentId",B);B=this.get("addBackstageReplyAction.renderer.commentRenderer",B);R&&B&&this.setCreatorReply(R,B)};
_.p.banAuthorAction=function(B){var R=this.get("banAuthorAction.commentId",B);R&&(B=this.get("banAuthorAction.parentCommentId",B)||this.getParentPostId(R),this.removeFromStream(R,B))};
_.p.hideReportedCommentAction=function(B){var R=this.get("hideReportedCommentAction.commentId",B);R&&((B=this.get("hideReportedCommentAction.parentCommentId",B))||(B=this.getParentPostId(R)),this.removeFromStream(R,B))};
_.p.replaceBackstageCommentAction=function(B){var R=this.get("replaceBackstageCommentAction.commentId",B),V=this.get("replaceBackstageCommentAction.parentId",B);B=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",B);if(R&&V&&B){V=this.postIdToIndices(V);for(var e=0;e<V.length;e++){var X=V[e];if(X<0)break;var Y=this.commentIdToIndex(R,X,!1);if(Y>=0){var t=this.get("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+Y+".commentThreadRenderer.replies.commentRepliesRenderer");
t&&(B.replies={commentRepliesRenderer:t});this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Y,1,{commentThreadRenderer:B})}Y=this.commentIdToIndex(R,X,!0);if(Y>=0){if(t=this.get("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(Y+".commentThreadRenderer.replies.commentRepliesRenderer")))B.replies={commentRepliesRenderer:t};this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
Y,1,{commentThreadRenderer:B})}}}};
_.p.replaceBackstagePostAction=function(B){var R=this.get("replaceBackstagePostAction.itemId",B);if(R){R=this.postIdToIndices(R);for(var V=0;V<R.length;V++){var e=R[V];if(e<0)break;var X=this.getPostRendererType(e),Y=this.get("replaceBackstagePostAction.renderer."+X,B);if(!Y&&X!=="sharedPostRenderer")break;var t=!1;Y||(t=!0,Y=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",B));if(!Y)break;var b={};t?(_.D9(b,qDb,Y),this.set("data.contents."+e+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
b)):(_.D9(b,new _.P(X),Y),this.set("data.contents."+e+".backstagePostThreadRenderer.post",b))}}};
_.p.replaceBackstageReplyAction=function(B){var R=this.get("replaceBackstageReplyAction.replyId",B),V=this.get("replaceBackstageReplyAction.parentId",B);B=this.get("replaceBackstageReplyAction.renderer.commentRenderer",B);R&&B&&V&&this.setCreatorReply(V,B)};
_.p.removeCommentAction=function(B){var R=this.get("removeCommentAction.commentId",B);if(R){var V=this.get("removeCommentAction.parentCommentId",B);V&&this.get("removeCommentAction.isCreatorReply",B)?this.setCreatorReply(V,void 0):(V||(V=this.getParentPostId(R)),this.removeFromStream(R,V))}};
_.p.setCreatorReply=function(B,R){var V=this.getParentPostId(B);if(V){V=this.postIdToIndices(V);for(var e=0;e<V.length;e++){var X=V[e];if(X<0)break;var Y=this.commentIdToIndex(B,X,!1);if(Y>=0){var t="data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+Y;Y=t+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";t+=".commentThreadRenderer.replies";R==void 0?(this.set(t,{}),this.set(Y,!1)):(this.set(t,{commentRepliesRenderer:{teaserContents:[{commentRenderer:R}]}}),
this.set(t+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(Y,!0))}Y=this.commentIdToIndex(B,X,!0);Y>=0&&(Y="data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+Y,X=Y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",Y+=".commentThreadRenderer.replies",R==void 0?(this.set(Y,{}),this.set(X,!1)):(this.set(Y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:R}]}}),this.set(X,!0)))}}};
_.p.removeFromStream=function(B,R){if(R){R=this.postIdToIndices(R);for(var V=0;V<R.length;V++){var e=R[V];if(e<0)break;var X=this.commentIdToIndex(B,e,!1);X>=0&&this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",X,1);X=this.commentIdToIndex(B,e,!0);X>=0&&this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",X,1);e="data.contents."+e+".backstagePostThreadRenderer.post.backstagePostRenderer";
X=e+".backstageAttachment.pollRenderer.votedCommentId";this.get(X)===B&&(this.set(X,null),this.set(e+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(R=this.postIdToIndices(B).reverse(),V=0;V<R.length;V++){e=R[V];if(e<0)break;X=this.getPostRendererType(e);var Y=this.get("backstagePostThreadRenderer.post."+X,this.data.contents[e]);Y.postId===B?this.splice("data.contents",e,1):X==="sharedPostRenderer"&&this.set("data.contents."+e+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);Y.scheduledPublishTimeSec&&_.oF(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.p.postIdToIndices=function(B){for(var R=[],V=0;V<this.data.contents.length;V++){var e=this.getPostRendererType(V);this.get("backstagePostThreadRenderer.post."+e+".postId",this.data.contents[V])===B&&R.push(V);if(e==="sharedPostRenderer"){var X=this.get("backstagePostThreadRenderer.post."+e+".originalPost.backstagePostRenderer.postId",this.data.contents[V]);e=this.get("backstagePostThreadRenderer.post."+e+".originalPost.postRenderer.postId",this.data.contents[V]);X!==B&&e!==B||R.push(V)}}return R};
_.p.commentIdToIndex=function(B,R,V){if(R<0)return-1;var e,X,Y,t,b=_.D((e=this.data)==null?void 0:(X=e.contents)==null?void 0:(Y=X[R])==null?void 0:(t=Y.backstagePostThreadRenderer)==null?void 0:t.comments,EUb);return(R=V?b==null?void 0:b.teaserContents:b==null?void 0:b.contents)&&R.length?R.findIndex(function(J){return _.D(J,WKo).comment.commentRenderer.commentId===B}):-1};
_.p.getParentPostId=function(B){B=B.split(".");if(B[1])return B[0]};
_.p.getPostRendererType=function(B){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[B])?"sharedPostRenderer":"backstagePostRenderer"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],fh.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fh.prototype,"data",void 0);fh=_.r([_.A({disableElementRegistration:!0,is:"ytd-backstage-items"})],fh);
_.F(fh,"ytd-backstage-items",function(){if(kSv!==void 0)return kSv;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return kSv=
B},{mode:1});var Dvh;_.Sm({is:"ytd-comments",_template:function(){if(Dvh!==void 0)return Dvh;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Dvh=B},
behaviors:[_.y5Z.YtHostElementBehavior,_.cu.YtPlayerListenerBehavior,_.O.YtRendererBehavior,_.$Z.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(B){B&&B.value&&B.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(B){B&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.lF("wn_comments");var B=_.TE();B&&_.f0({clientScreenNonce:B},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(B){B=DPK(B);var R,V,e;if(B=(R=B)==null?void 0:(V=R.createCommentAction)==null?void 0:(e=V.contents)==null?void 0:e.commentThreadRenderer){var X,Y,t,b,J,G;!this.isBackstage&&((X=this.data)==null?0:(Y=X.header)==null?0:(t=Y.commentsHeaderRenderer)==null?0:(b=t.createRenderer)==null?0:(J=b.commentSimpleboxRenderer)==null?0:(G=J.zeroStep)==null?0:G.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var y,S,M,f;this.isBackstage&&((y=this.data)==null?0:(S=y.header)==null?0:(M=S.commentsHeaderRenderer)==null?0:(f=M.zeroStateMessage)==null?0:f.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(B)}},
doReplyInsert_:function(B,R,V,e){e?this.splice(B,e,0,R):this.push(B,R)},
getRepliesPath_:function(B){return"data.contents."+B+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(B,R){B=this.getRepliesPath_(B);return R?B+".commentRepliesRenderer.teaserContents":B+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(B){B=DPK(B);var R,V,e=(R=B)==null?void 0:(V=R.createCommentReplyAction)==null?void 0:V.parentCommentId,X,Y;if(R=(X=B)==null?void 0:(Y=X.createCommentReplyAction)==null?void 0:Y.contents)if(e=this.commentIdToIndex_(e),!(e<0))if(X=this.getRepliesPath_(e),this.get(X)){var t,b;B=(t=B)==null?void 0:(b=t.createCommentReplyAction)==null?void 0:b.replyToCommentId;t=this.getRepliesContentsPath_(e,!1);this.get(t)&&(b=this.get(t).length,X=t+"."+(b-1)+".continuationItemRenderer",
this.get(X+".button")?(X=this.replyIdToIndex_(B,e,!1),this.doReplyInsert_(t,R,X,b-1)):this.get(X)||(b=this.replyIdToIndex_(B,e,!1),this.doReplyInsert_(t,R,b,null)));t=this.getRepliesContentsPath_(e,!0);this.get(t)?(e=this.replyIdToIndex_(B,e,!0),(!B||e>=0)&&this.doReplyInsert_(t,R,e,null)):this.set(t,[R])}else this.set(X,{commentRepliesRenderer:{teaserContents:[R]}})},
hideReportedCommentAction_:function(B){var R,V=B==null?void 0:(R=B.hideReportedCommentAction)==null?void 0:R.commentId;if(V){var e;B=B==null?void 0:(e=B.hideReportedCommentAction)==null?void 0:e.parentCommentId;V=V.replace("#",".");B||(B=this.getParentCommentId_(V));this.remove_(V,B)}},
getParentCommentId_:function(B){B=B.split(".");if(B[1])return B[0]},
removeCommentAction_:function(B){var R,V=B==null?void 0:(R=B.removeCommentAction)==null?void 0:R.commentId;if(V){var e;B=B==null?void 0:(e=B.removeCommentAction)==null?void 0:e.parentCommentId;V=V.replace("#",".");B||(B=this.getParentCommentId_(V));this.remove_(V,B)}},
pinCommentAction_:function(B){B=DPK(B);var R,V,e=(R=B)==null?void 0:(V=R.pinCommentAction)==null?void 0:V.commentId;e&&(B=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",B))&&(this.remove_(e),this.insert_(B,!0))},
unpinCommentAction_:function(B){B=DPK(B);var R,V,e=(R=B)==null?void 0:(V=R.unpinCommentAction)==null?void 0:V.commentId;if(e){var X,Y,t;if(B=(X=B.unpinCommentAction)==null?void 0:(Y=X.actionResult)==null?void 0:(t=Y.update)==null?void 0:t.commentThreadRenderer)this.remove_(e),this.insert_(B)}},
banAuthorAction_:function(B){var R,V=B==null?void 0:(R=B.banAuthorAction)==null?void 0:R.commentId;if(V){var e;B=B==null?void 0:(e=B.banAuthorAction)==null?void 0:e.parentCommentId;V=V.replace("#",".");B||(B=this.getParentCommentId_(V));this.remove_(V,B)}},
commentIdToIndex_:function(B){var R;return B&&(R=this.data)!=null&&R.contents?this.data.contents.findIndex(function(V){var e,X;return B===((V==null?void 0:(e=V.commentThreadRenderer)==null?void 0:e.commentViewModel)&&((X=_.D(V.commentThreadRenderer.commentViewModel,Um_))==null?void 0:X.commentId))}):-1},
insert_:function(B,R){var V,e;if((V=this.data)==null?0:(e=V.contents)==null?0:e.some(function(Y){return!(Y==null||!Y.commentThreadRenderer)}))for(V=0,e=this.data.contents.length;V<e;V++){var X=this.data.contents[V].commentThreadRenderer;
if(this.RenderingPriority[B.renderingPriority]>=this.RenderingPriority[X.renderingPriority]){R&&this.RenderingPriority[B.renderingPriority]==this.RenderingPriority[X.renderingPriority]?this.splice("data.contents",V,1,{commentThreadRenderer:B}):this.splice("data.contents",V,0,{commentThreadRenderer:B});break}}else this.set("data.contents",[{commentThreadRenderer:B}])},
doReplyRemove_:function(B,R,V){B=this.replyIdToIndex_(B,R,V);B<0||(R=this.getRepliesContentsPath_(R,V),this.splice(R,B,1))},
remove_:function(B,R){R=this.commentIdToIndex_(R);R<0?(R=this.commentIdToIndex_(B),R<0||this.splice("data.contents",R,1)):(this.doReplyRemove_(B,R,!1),this.doReplyRemove_(B,R,!0))},
replyIdToIndex_:function(B,R,V){if(R<0)return-1;R=this.getRepliesContentsPath_(R,V);R=this.get(R);if(!R||!R.length)return-1;V=0;for(var e=R.length;V<e;V++){var X=void 0,Y=void 0;if(((X=R[V])==null?void 0:(Y=X.commentViewModel)==null?void 0:Y.commentId)===B)return V}return-1},
computeIsBackstage_:function(B){return!!B},
tickForCommentsTimer_:function(B){_.aF(B,void 0,"wn_comments")},
reloadComments_:function(B){B&&B.reloadCommentsCommand&&B.reloadCommentsCommand.command&&B.reloadCommentsCommand.command.continuationCommand&&_.VD(this,[B.reloadCommentsCommand.command])}});var lq=function(){return _.tM.apply(this,arguments)||this};
_.l(lq,_.tM);_.p=lq.prototype;_.p.bindIf=function(B,R,V){return B?R:V};
_.p.bindIfDefined=function(B,R){return B!==void 0?B:R};
_.p.booleanString=function(B){return(!!B).toString()};
_.p.equals=function(){for(var B=_.HB.apply(0,arguments),R=B[0],V=1;V<B.length;V++)if(R!=B[V])return!1;return!0};
_.p.isGreaterThan=function(B,R){return B>R};
_.p.isLessThan=function(B,R){return B<R};
_.p.logicalAND=function(){for(var B=_.HB.apply(0,arguments),R=!!B[0],V=1;V<B.length;V++)R=R&&!!B[V];return R};
_.p.logicalOR=function(){for(var B=_.HB.apply(0,arguments),R=!!B[0],V=1;V<B.length;V++)R=R||!!B[V];return R};
_.p.toBool=function(B){return!!B};
lq.prototype.toBool=lq.prototype.toBool;lq.prototype.logicalOR=lq.prototype.logicalOR;lq.prototype.logicalAND=lq.prototype.logicalAND;lq.prototype.isLessThan=lq.prototype.isLessThan;lq.prototype.isGreaterThan=lq.prototype.isGreaterThan;lq.prototype.equals=lq.prototype.equals;lq.prototype.booleanString=lq.prototype.booleanString;lq.prototype.bindIfDefined=lq.prototype.bindIfDefined;lq.prototype.bindIf=lq.prototype.bindIf;lq=_.r([_.Wc()],lq);_.fR5=[lq.prototype];var lR4;var zm4;var z6=function(){return _.c.apply(this,arguments)||this};
_.l(z6,_.c);z6.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
z6.prototype.onBackIconTap_=function(){window.history.back()};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],z6.prototype,"data",void 0);z6=_.r([_.fJ({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],z6);
_.F(z6,"yt-header-with-back-renderer",function(){if(zm4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;lR4===void 0&&(lR4=document.createElement("template"));var e=lR4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);zm4=B}B=zm4;return B},{mode:2});var aRb;var dvT;var aE=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(aE,_.c);_.p=aE.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.p.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&(this.isDarkTheme=B,this.setUrl())};
_.p.dataChanged=function(){var B=this;if(this.data){var R=this.setUrl();R&&_.OD({destination:window,iframe:this.iframe,origin:_.q44(R.toString()),channelName:"yt-iframe",onMessage:function(V){(V=B.getCommunicationCommand(V.data))&&B.ytComponentBehavior.resolveCommand(V)},
onEstablished:function(){}})}};
_.p.setUrl=function(){if(this.data&&this.data.iframeUrl){var B=_.wV(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(B)return _.wc(this.iframe,B),B}};
_.p.getCommunicationCommand=function(B){var R;if((R=this.data)!=null&&R.onCommunicationCommandsMap){R=this.data.onCommunicationCommandsMap.find(function(X){return X.key===B});
if(R==null?0:R.value)return R==null?void 0:R.value;try{var V=I0J(_.Uo(B)),e=this.data.onCommunicationCommandsMap.find(function(X){return X.key===(V==null?void 0:_.xU(V,1))});
if(e==null?0:e.value)return e==null?void 0:e.value}catch(X){}}};
aE.prototype.dataChanged=aE.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],aE.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],aE.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],aE.prototype,"data",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],aE.prototype,"isDarkTheme",void 0);_.r([_.Yp("#iframe"),_.Z("design:type",HTMLIFrameElement)],aE.prototype,"iframe",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aE.prototype,"dataChanged",null);aE=_.r([_.fJ({is:"yt-iframe-renderer",disableElementRegistration:!0})],aE);
_.F(aE,"yt-iframe-renderer",function(){if(dvT===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;aRb===void 0&&(aRb=document.createElement("template"));var e=aRb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);dvT=B}B=dvT;return B},{mode:2});_.dQ=function(B){_.Hn.call(this);this.callback=B;this.bezier=new yMb(0,0,.4,0,.2,1,1,1);this.delay=new _.Pw(this.next,window,this);this.JSC$14635_animating=!1;_.t4(this,this.delay)};
_.l(_.dQ,_.Hn);_.dQ.prototype.isAnimating=function(){return this.JSC$14635_animating};
_.dQ.prototype.start=function(B,R,V){this.config={from:B,to:R,duration:V,startTime:(0,_.P8)()};this.JSC$14635_animating=!0;this.next()};
_.dQ.prototype.stop=function(){this.delay.stop();this.JSC$14635_animating=!1;this.config=void 0};
_.dQ.prototype.next=function(){if(this.config){var B=this.config,R=B.from,V=B.to,e=B.duration;B=B.startTime;var X=(0,_.P8)()-B;B=this.bezier;e=HJ2(B,X/e);if(e==0)B=B.y0;else if(e==1)B=B.y3;else{X=kP(B.y0,B.y1,e);var Y=kP(B.y1,B.y2,e);B=kP(B.y2,B.y3,e);X=kP(X,Y,e);Y=kP(Y,B,e);B=kP(X,Y,e)}B=_.IH(B,0,1);this.callback(R+(V-R)*B);B<1?this.delay.start():this.JSC$14635_animating=!1}};_.wQ=new _.u0("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var wQ4={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},xvJ=function(B,R,V,e){_.Hn.call(this);this.JSC$14643_miniAppId=B;this.localReleaseId=R;this.derivedDeviceInterface=V;this.isForeground=e;this.JSC$14643_playNonceResolver=new _.Xs;this.playPingTimerId=NaN;this.playPingIntervalMs=_.RC("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.RC("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.k("enable_displaying_ppn");this.JSC$14643_miniAppClientDataProvider=_.Oz().resolve(_.wQ);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;TDS(this);var X=setTimeout(function(){_.KE(new _.H8("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14643_playNonceResolver.promise.then(function(){clearTimeout(X)})};
_.l(xvJ,_.Hn);var vO5=function(B,R){B.JSC$14643_playNonceResolver.resolve(R!=null?R:aL(8));B.enableDisplayingPpn&&Lvl(B).then(function(V){B.JSC$14643_miniAppClientDataProvider.clientData.set("post_play_nonce",V)})},Lvl=function(B){return _.W(function(R){return R.nextAddress==1?_.U(R,B.JSC$14643_playNonceResolver.promise,2):R.return(R.yieldResult)})},TDS=function(B){var R,V;
_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$14643_playNonceResolver.promise,2);R=e.yieldResult;V={miniAppInfo:{externalPostId:B.JSC$14643_miniAppId,localReleaseId:B.localReleaseId,postPlayNonce:R,derivedDeviceInterface:B.derivedDeviceInterface}};_.f0(V);_.b3(e)})},IRS=function(B){B.state!==0?_.KE(new _.H8("[MiniAppPlayLogger] recordPlayStart failed with state "+wQ4[B.state])):(B.state=1,T6(B,"ma_cl"),xe(B,"PLAY_EVENT_TYPE_PLAY_START"),Kv_(B))},EOa=function(B){B.isForeground=!1;
xe(B,"PLAY_EVENT_TYPE_PLAY_PAUSE")},QU2=function(B){B.state!==1&&B.state!==2?_.KE(new _.H8("[MiniAppPlayLogger] recordPlayEnd failed with state "+wQ4[B.state])):(B.state=3,window.clearInterval(B.playPingTimerId),B.playPingTimerId=NaN,jkp(),xe(B,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},qE_=function(B,R){B.state===2&&B.gameReady&&(B.firstClickRecorded?Date.now()-B.clickRecordedMs<B.playClickIntervalMs||(B.clickRecordedMs=Date.now(),xe(B,"PLAY_EVENT_TYPE_PLAY_CLICK")):R&&(T6(B,"ma_fua"),xe(B,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),B.firstClickRecorded=!0,B.clickRecordedMs=Date.now()))};
xvJ.prototype.logError=function(B){var R=this,V;_.W(function(e){if(e.nextAddress==1)return B.metadata.externalPostId=R.JSC$14643_miniAppId,V=B.metadata,_.U(e,Promise.race([R.JSC$14643_playNonceResolver.promise,new Promise(function(X){setTimeout(function(){X("")},3E4)})]),2);
V.postPlayNonce=e.yieldResult;B.metadata.localReleaseId=R.localReleaseId;B.loggingError.level="WARNING";_.Tn(B.loggingError,B.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:B.metadata});_.b3(e)})};
var cPG=function(B,R,V,e){var X,Y,t,b,J,G;_.W(function(y){if(y.nextAddress==1)return _.U(y,B.JSC$14643_playNonceResolver.promise,2);X=y.yieldResult;Y={externalPostId:B.JSC$14643_miniAppId,localReleaseId:B.localReleaseId,postPlayNonce:X,sdkVersion:V,api:R};e!==void 0&&(Y.networkRequestsMeasurement={networkRequests:_.Bn(e,1),cachedRequests:_.Bn(e,2),transferredBytes:_.Bn(e,3)},(t=e)==null?0:_.SY(t,uv,6))&&(Y.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((b=_.OB(e,
uv,6))==null?void 0:vb(b,1))||"0",cacheHits:((J=_.OB(e,uv,6))==null?void 0:vb(J,2))||"0",cachedBytes:((G=_.OB(e,uv,6))==null?void 0:vb(G,3))||"0"});_.dn("miniAppSdkUsage",Y);_.b3(y)})},iV5=function(B,R,V){var e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q;
_.W(function(m){if(m.nextAddress==1)return _.U(m,B.JSC$14643_playNonceResolver.promise,2);e=m.yieldResult;X={externalPostId:B.JSC$14643_miniAppId,localReleaseId:B.localReleaseId,postPlayNonce:e,sdkVersion:V,measurementWindow:{startTimestampMs:String(wX(R,1)),endTimestampMs:String(wX(R,2))},frameRate:{averageFrameTimeDeltaMs:To(R,3),averageFrameIdleTimeMs:To(R,4)}};_.SY(R,Or,5)&&(X.networkRequests={networkRequests:(Y=pt(R))==null?void 0:_.Bn(Y,1),cachedRequests:(t=pt(R))==null?void 0:_.Bn(t,2),transferredBytes:(b=
pt(R))==null?void 0:_.Bn(b,3),sameOriginStatusCodeToCounts:AP5((J=pt(R))==null?void 0:BeI(J,4)),crossOriginStatusCodeToCounts:AP5((G=pt(R))==null?void 0:BeI(G,5))},(y=pt(R))==null?0:_.SY(y,uv,6))&&(X.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((S=pt(R))==null?void 0:(M=_.OB(S,uv,6))==null?void 0:vb(M,1))||"0",cacheHits:((f=pt(R))==null?void 0:(z=_.OB(f,uv,6))==null?void 0:vb(z,2))||"0",cachedBytes:((T=pt(R))==null?void 0:(L=_.OB(T,uv,6))==null?void 0:vb(L,3))||"0"});_.SY(R,
LN4,7)&&(X.gameCapture={averageFrameTimeDeltaMs:(Q=_.OB(R,LN4,7))==null?void 0:To(Q,1),averageFrameIdleTimeMs:(q=_.OB(R,LN4,7))==null?void 0:To(q,2)});_.dn("miniAppPerformanceMetrics",X);_.b3(m)})},sUb=function(B,R,V){var e,X;
return _.W(function(Y){if(Y.nextAddress==1)return _.U(Y,B.JSC$14643_playNonceResolver.promise,2);e=Y.yieldResult;X={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:B.JSC$14643_miniAppId,postPlayNonce:e,miniAppReleaseId:B.localReleaseId},derivedDeviceInterface:B.derivedDeviceInterface,adTriggerType:R};X.rejectedReason=V||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.dn("miniAppAdEvent",X);_.b3(Y)})};
xvJ.prototype.disposeInternal=function(){_.Hn.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var xe=function(B,R,V,e){V=V===void 0?{}:V;e=e===void 0?!1:e;var X,Y,t,b;_.W(function(J){if(J.nextAddress==1)return X=B.isForeground,Y=B.beforeReady,_.U(J,B.JSC$14643_playNonceResolver.promise,2);t=J.yieldResult;b={externalPostId:B.JSC$14643_miniAppId,localReleaseId:B.localReleaseId,derivedDeviceInterface:B.derivedDeviceInterface,postPlayNonce:t,type:R};V.sequenceGroup=t;b.playState=Y?"PLAY_STATE_NOT_READY":X?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.dn("miniAppPlayEvent",b,V);
e&&_.wn();_.b3(J)})},T6=function(B,R){var V;
_.W(function(e){if(e.nextAddress==1)return V=(0,_.P8)(),_.U(e,B.JSC$14643_playNonceResolver.promise,2);_.zp(R,V);_.b3(e)})},Kv_=function(B){isNaN(B.playPingTimerId)&&(B.playPingTimerId=_.Yz(function(){B.state!==1&&B.state!==2?_.KE(new _.H8("[MiniAppPlayLogger] reportPlayPing failed with state "+wQ4[B.state])):xe(B,"PLAY_EVENT_TYPE_PLAY_PING")},B.playPingIntervalMs))},AP5=function(B){return Array.from(B.entries()).map(function(R){var V=_.h(R);
R=V.next().value;V=V.next().value;return{key:R,value:V}})};var Fv_=_.RC("show_mini_app_ad_frequency_cap_ms",0),rPa=function(){this.showAdIntervalMs=Fv_;this.isRateLimited=!0},gO4=function(B,R){setTimeout(function(){return B.isRateLimited=!1},B.showAdIntervalMs);
B.showMiniAppAdCommand=R.showMiniAppAdCommand;B.isEmbeddedInWebview=R.isEmbeddedInWebview;B.playLogger=R.playLogger},mvv=function(B,R){var V;
return _.W(function(e){if(e.nextAddress==1){if(!B.showMiniAppAdCommand||!B.isEmbeddedInWebview)return e.return(ZVh(B,R,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(B.isRateLimited)return e.return(ZVh(B,R,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));B.adResolver=new _.Xs;V=ud2(new n35,R);sy(B.showMiniAppAdCommand,OTG(V));B.isRateLimited=!0;setTimeout(function(){return B.isRateLimited=!1},B.showAdIntervalMs);
return _.U(e,B.adResolver.promise,2)}return e.return(e.yieldResult)})};
rPa.prototype.onAdFinished=function(B){B=tVl(B);var R;(R=this.adResolver)==null||R.resolve(B)};
var ZVh=function(B,R,V){var e;return _.W(function(X){if(X.nextAddress==1)X=_.U(X,(e=B.playLogger)==null?void 0:sUb(e,wvp(R),V),2);else{var Y=X.return;var t=new hxo;t=_.ou(t,1,2);X=Y.call(X,t)}return X})};var $vS=new _.u0("INNERTUBE_MANAGER_TOKEN");var CnT=function(){this.callbacks={}};
CnT.prototype.initialize=function(B){var R=this;this.callbacks=B;window.youtubewebview?window.youtubewebview.onmessage=function(V){PnS(R,V)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(V){PnS(R,V)})};
var PnS=function(B,R){if(R.data)try{var V=I0J(R.data);if(_.co(_.yG(V,1))!=null){var e=g3J(_.xU(V,2));switch(_.xU(V,1)){case "yt-mini-app-load-audio-state":var X,Y;(Y=(X=B.callbacks).onAudioStateLoaded)==null||Y.call(X,_.dX(e,yU(e,Tl,1)));break;case "yt-mute-mini-app":var t,b;(b=(t=B.callbacks).onMuteMiniApp)==null||b.call(t);break;case "yt-unmute-mini-app":var J,G;(G=(J=B.callbacks).onUnmuteMiniApp)==null||G.call(J);break;case "yt-playable-exit":var y,S;(S=(y=B.callbacks).onExit)==null||S.call(y);
break;case "yt-post-play-nonce":var M,f;(f=(M=B.callbacks).onPostPlayNonceReceived)==null||f.call(M,KU(e,2,Tl));break;case "yt-confirm-exit-mini-app":var z,T;(T=(z=B.callbacks).confirmExitMiniApp)==null||T.call(z);break;case "yt-confirm-exit-mini-app-edu":var L,Q;(Q=(L=B.callbacks).confirmExitMiniAppEdu)==null||Q.call(L);break;case "yt-benchmarking-response":var q,m;(m=(q=B.callbacks).onNativeBenchmarkingMessageReceived)==null||m.call(q,KU(e,2,Tl));break;case "yt-mini-app-load-3p-consent-state":var g,
Vu;(Vu=(g=B.callbacks).multiplayer3pAckStateLoaded)==null||Vu.call(g,_.dX(e,yU(e,Tl,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var n,Yd;(Yd=(n=B.callbacks).exitMiniAppSeenStateLoaded)==null||Yd.call(n,_.dX(e,yU(e,Tl,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var kd,a5;(a5=(kd=B.callbacks).onNavigateToNewMiniApp)==null||a5.call(kd);break;case "yt-game-data-available":var lo,io;(io=(lo=B.callbacks).onGameDataAvailable)==null||io.call(lo,KU(e,2,Tl));break;case "yt-pause-mini-app":var vd,
cd;(cd=(vd=B.callbacks).onPauseMiniApp)==null||cd.call(vd);break;case "yt-resume-mini-app":var ES,$d;($d=(ES=B.callbacks).onResumeMiniApp)==null||$d.call(ES);break;case "yt-playable-ad-finished":var Eo,GG;(GG=(Eo=B.callbacks).onAdFinished)==null||GG.call(Eo,KU(e,2,Tl))}}else _.KE(Error("Rh"))}catch(eJ){_.Tn(Error("Sh"))}else _.KE(Error("Th"))};var xPd=function(B){this.rpcErrorCode=B};var Lh=function(B,R,V){this.intervalMs=B;this.apiFunc=R;this.type=V;this.schedulerReady=!0};
Lh.prototype.call=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1){if(R.type!==1&&B===R.cachedValue)return e.return();R.pendingApiRequestResolver||(R.pendingApiRequestResolver=new _.Xs);V=R.pendingApiRequestResolver.promise;R.cachedValue=B;return _.U(e,nOl(R),2)}return e.return(V)})};
Lh.prototype.flush=function(B){B=B===void 0?!1:B;var R=this;return _.W(function(V){return R.cachedValue===void 0?V.return():_.U(V,R.apiFunc(R.cachedValue,B),0)})};
var nOl=function(B){var R,V,e;return _.W(function(X){switch(X.nextAddress){case 1:if(!B.schedulerReady||!B.pendingApiRequestResolver)return X.return();B.schedulerReady=!1;R=B.pendingApiRequestResolver;B.pendingApiRequestResolver=void 0;_.en(X,2);if(B.cachedValue===void 0){X.jumpTo(4);break}return _.U(X,B.apiFunc(B.cachedValue),5);case 5:V=X.yieldResult,R.resolve(V);case 4:_.c8(X,3);break;case 2:e=_.WR(X),R.reject(e);case 3:setTimeout(function(){return _.W(function(Y){B.schedulerReady=!0;return _.U(Y,
nOl(B),0)})},B.intervalMs),_.b3(X)}})};var Kdd=window.location.origin+"/miniapp_cloudsaves",Ldo=[400,401],uQa=_.RC("cloud_save_game_data_rate_limit_ms",3E3),Buv=function(B){var R=this;this.JSC$14687_miniAppId=B;this.loadAttempts=0;this.cloudSaveIntervalMs=uQa;this.initialDownloadDataSucceeded=!1;this.JSC$14687_playNonceResolver=new _.Xs;this.scottyUploadRateLimiter=new Lh(this.cloudSaveIntervalMs,function(V,e){return OV_(R,V,e)},2);
this.downloadDataPromise=oYl(this);this.downloadDataPromise.then(function(){R.initialDownloadDataSucceeded=!0}).catch(function(){})},RGJ=function(B,R){R.then(function(V){return B.JSC$14687_playNonceResolver.resolve(V)})},VhJ=function(B){return _.W(function(R){return B.cachedData===void 0?R.return(B.downloadDataPromise):R.return(B.cachedData)})},eG_=function(B,R){return _.W(function(V){B.cachedData=R;
if(!B.initialDownloadDataSucceeded)throw Error("Uh");return _.U(V,B.scottyUploadRateLimiter.call(R),0)})},XYa=function(){return new Promise(function(B){setTimeout(B,1E3,"")})},pY2=function(B,R){var V,e;
return _.W(function(X){if(X.nextAddress==1)return V=B.JSC$14687_miniAppId,_.U(X,Promise.race([B.JSC$14687_playNonceResolver.promise,XYa()]),2);e={"X-YouTube-MiniAppId":V,"X-YouTube-PostPlayNonce":X.yieldResult};"DELEGATED_SESSION_ID"in _.xj&&sAK(R,e);return X.return(e)})},OV_=function(B,R,V){V=V===void 0?!1:V;
return _.W(function(e){return TZu()?_.k("enable_cloud_save_error_popup_after_retry")?e.return(new Promise(function(X,Y){var t,b,J,G,y;return _.W(function(S){switch(S.nextAddress){case 1:t=0,b=!0,G=J=null;case 2:if(!(b&&t++<2)){S.jumpTo(4);break}_.en(S,5);return _.U(S,YaJ(B,R,V),7);case 7:J=S.yieldResult;b=J.ok?!1:!Ldo.includes(J.status);_.c8(S,2);break;case 5:G=y=_.WR(S);b=vH_(G);S.jumpTo(2);break;case 4:J?J.ok?(va(B,uQa),X()):(va(B,B.cloudSaveIntervalMs*2),Y(Error("Vh`"+String(J.status),{cause:{rpcErrorCode:J.status}}))):
(va(B,B.cloudSaveIntervalMs*2),Y(G||Error("Wh"))),_.b3(S)}})})):e.return(new Promise(function(X,Y){var t,b;
return _.W(function(J){if(J.nextAddress==1){if(B.JSC$14687_miniAppId==="")return Y(Error("Xh")),J.return();_.en(J,2);return _.U(J,YaJ(B,R,V),4)}if(J.nextAddress!=2)return t=J.yieldResult,t.ok?(va(B,uQa),X()):(va(B,B.cloudSaveIntervalMs*2),Y(Error("Vh`"+String(t.status),{cause:{rpcErrorCode:t.status}}))),_.c8(J,0);b=_.WR(J);va(B,B.cloudSaveIntervalMs*2);Y(b);_.b3(J)})})):e.return()})},YaJ=function(B,R,V){V=V===void 0?!1:V;
var e,X,Y;return _.W(function(t){if(t.nextAddress==1)return e=_.O4((new TextEncoder).encode(R)),X=I6d(),_.U(t,pY2(B,X),2);Y=t.yieldResult;return t.return(fetch(X,{method:"POST",body:new Blob([e]),headers:Y,keepalive:V}))})},oYl=function(B){var R,V;
return _.W(function(e){if(e.nextAddress==1){if(!TZu())return e.return("");if(B.JSC$14687_miniAppId==="")throw Error("Xh");if(B.loadAttempts>2)return e.return(B.downloadDataPromise);_.en(e,2);return _.U(e,hGo(B),4)}if(e.nextAddress!=2)return R=e.yieldResult,e.return(R);V=_.WR(e);if(vH_(V)&&++B.loadAttempts<2)return e.return(oYl(B));throw V;})},hGo=function(B){var R,V,e,X,Y;
return _.W(function(t){switch(t.nextAddress){case 1:return _.en(t,2),R=I6d(),_.U(t,pY2(B,R),4);case 4:return V=t.yieldResult,_.U(t,fetch(R,{method:"GET",headers:V}),5);case 5:return e=t.yieldResult,e.ok?_.U(t,e.text(),6):t.return(Promise.reject(Error("Yh`"+String(e.status),{cause:new xPd(e.status)})));case 6:return X=t.yieldResult,t.return((new TextDecoder).decode(_.Uo(X)));case 2:return Y=_.WR(t),t.return(Promise.reject(Y))}})},va=function(B,R){B.cloudSaveIntervalMs=R;
B.scottyUploadRateLimiter.intervalMs=B.cloudSaveIntervalMs};
Buv.prototype.flush=function(){var B=this;return _.W(function(R){return B.initialDownloadDataSucceeded?_.U(R,B.scottyUploadRateLimiter.flush(!0),0):R.return()})};var thl=eE(Vy(1),BL(1)),WTa=eE(Vy(1),BL(3)),Kh=function(B){this.callbacks=B};
_.p=Kh.prototype;_.p.onAudioToggled=function(B,R){(R===void 0||R)&&_.hp("yt-mini-app-is-audio-enabled",B,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 EHp=function(B,R,V){this.callbacks=B;var e=this;this.sdkVersion=new _.Xs;this.channel=new $Qo(_.OD({destination:window,iframe:R,origin:(new URL(V.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var X=IE;var Y=Vy(5);var t=new ST4;t=_.ED(t,1,1E4);Y=_.Vm(Y,4,aoJ,t);X(e,Y);e.onAudioToggled(e.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){e.sdkVersion.resolve("")},1E4)};
_.l(EHp,Kh);_.p=EHp.prototype;_.p.onAudioToggled=function(B,R){Kh.prototype.onAudioToggled.call(this,B,R===void 0?!0:R);R=IE;var V=Vy(2),e=new GTb;B=_.Xn(e,1,B);B=_.Vm(V,3,aoJ,B);R(this,B)};
_.p.onPause=function(){Kh.prototype.onPause.call(this);IE(this,Vy(3))};
_.p.onResume=function(){Kh.prototype.onResume.call(this);IE(this,Vy(4))};
_.p.returnNativeBenchmarkingMessage=function(B){var R=IE,V=Vy(6);var e=BL(_.SY(B,Z1,1)?1:2);B=_.SY(B,Z1,1)?B:null;e=_.Vm(e,5,Ri,B);R(this,eE(V,e))};
_.p.sendGameData=function(B){var R=IE,V=Vy(7);B=_.Vm(V,5,aoJ,B);R(this,B)};
_.p.sendStartGameFrameCapture=function(){IE(this,Vy(9))};
var El=function(B,R,V){var e,X,Y;return _.W(function(t){if(t.nextAddress==1)return e=B.callbacks,X=e.onSdkCalled,Y=R,_.U(t,B.sdkVersion.promise,2);X.call(e,Y,t.yieldResult,V);_.b3(t)})};
EHp.prototype.onMessage=function(){var B=this;return nVx(Yi,function(R){var V,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu,n,Yd,kd,a5,lo,io,vd,cd,ES,$d,Eo,GG,eJ,pR,d4,W2,By,DY,hA,fR,Qv,i4,TG,ZS,$b,DS;return _.W(function(CZ){switch(CZ.nextAddress){case 1:if(!EQl(R.data))return _.KE(Error("Zh")),CZ.return();V=_.LU(R.data,1);_.k("enable_iframe_message_get_type_via_fields")&&(e=R.data,V=X=_.LU(e,1));switch(V){case 8:if(R.data.hasMetadata()){var k5=B.sdkVersion,tr=k5.resolve;var l_=R.data.getMetadata();l_=_.xU(l_,
1);tr.call(k5,l_);clearTimeout(B.sdkVersionTimeoutId)}break;case 6:return CZ.jumpTo(2);case 16:if(!_.Hb(R.data,T24,14,hG))return CZ.return();Y=_.I6(R.data,T24,14,hG);(b=(t=B.callbacks).onGameFrameReceived)==null||b.call(t,Y);return CZ.return();case 17:if(!_.Hb(R.data,wSJ,15,hG))return CZ.return();(G=(J=B.callbacks).onGameAudioReceived)==null||G.call(J,_.I6(R.data,wSJ,15,hG));return CZ.return();case 1:if(k5=_.I6(R.data,kTG,2,hG))switch(_.LU(k5,1)){case 1:B.callbacks.onFirstFrameReady();if(_.k("enable_network_request_logging_on_game_events")&&
_.SY(k5,Or,4)){El(B,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.OB(k5,Or,4));break}El(B,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(l_=(tr=B.callbacks).onGameReady)==null||l_.call(tr);if(_.k("enable_network_request_logging_on_game_events")&&_.SY(k5,Or,4)){El(B,"MINI_APP_SDK_API_GAME_READY",_.OB(k5,Or,4));break}El(B,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Hb(k5,oi,3,DlJ))B.callbacks.onResourceLoaded(_.I6(k5,oi,3,DlJ))}return CZ.return();case 3:return CZ.jumpTo(3);case 4:return CZ.jumpTo(4);
case 2:return CZ.jumpTo(5);case 9:return CZ.jumpTo(6);case 10:return B.callbacks.onClick(),CZ.return();case 5:return CZ.jumpTo(7);case 11:if(!_.Hb(R.data,P6,9,hG))return CZ.return();y=_.I6(R.data,P6,9,hG);(M=(S=B.callbacks).onBenchmarkingMessageReceived)==null||M.call(S,y);k5=R.reply;tr=Vy(1);l_=BL(1);var S2=new P6;var tD=new Uint8Array(yiZ(y,yU(y,biJ,6))|0);S2=JK(S2,5,biJ,_.Fa(tD,!1));l_=_.Vm(l_,5,Ri,S2);k5.call(R,eE(tr,l_));return CZ.return();case 12:return CZ.jumpTo(8);case 13:return CZ.jumpTo(9);
case 15:if(!_.k("enable_open_yt_content"))return R.reply(WTa),CZ.return();if(!_.Hb(R.data,dl2,12,hG))return R.reply(eE(Vy(1),BL(2))),CZ.return();k5=_.I6(R.data,dl2,12,hG);f=_.xU(k5,1);B.callbacks.onOpenYTContent(f);R.reply(thl);return CZ.return();case 14:return CZ.jumpTo(10);default:return CZ.return()}CZ.jumpTo(0);break;case 2:if(!_.Hb(R.data,Xm,5,hG))return CZ.return();tr=R.data;k5=yU(tr,hG,5);tr=tr.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(k5=wq(tr,tr[_.w4]|0,Xm,k5))||(k5=Xm[re])||
(k5=new Xm,v2(k5.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),k5=Xm[re]=k5);z=k5;k5=_.Oh(z,nC,1,_.oI());T=_.h(k5);L=T.next();case 12:if(L.done){CZ.jumpTo(14);break}Q=L.value;q=new _.H8;q.level=_.LU(Q,2)===1?"WARNING":"ERROR";m=q25(Q.getSource());return _.U(CZ,B.sdkVersion.promise,15);case 15:g={source:m,sdkVersion:CZ.yieldResult};_.km(_.yG(Q,6))!=null?(q.message=Q.getMessage(),q.stack=_.xU(Q,5),g.sdkErrorType=cOS(_.LU(Q,6)),_.km(_.yG(Q,7))!=null&&(g.sdkApi=AON(_.LU(Q,7)))):q.stack=void 0;
n=Vu=void 0;(n=(Vu=B.callbacks).onError)==null||n.call(Vu,{loggingError:q,metadata:g});L=T.next();CZ.jumpTo(12);break;case 14:return CZ.return();case 3:return _.en(CZ,16),k5=B.callbacks,tr=k5.onSave,l_=_.I6(R.data,yn4,4,hG),l_=_.xU(l_,1),_.U(CZ,tr.call(k5,l_),18);case 18:R.reply(thl);_.c8(CZ,17);break;case 16:return Yd=_.WR(CZ),kd=FH,a5=Yd,lo=B.callbacks,io="MINI_APP_SDK_API_SAVE_DATA",_.U(CZ,B.sdkVersion.promise,19);case 19:kd(a5,lo,io,CZ.yieldResult),R.reply(WTa);case 17:return _.U(CZ,El(B,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return CZ.return();case 4:return _.en(CZ,21),_.U(CZ,B.callbacks.onLoad(),23);case 23:vd=CZ.yieldResult;k5=R.reply;tr=Vy(1);l_=BL(1);S2=new yn4;S2=_.bg(S2,1,vd);l_=_.Vm(l_,3,Ri,S2);k5.call(R,eE(tr,l_));_.c8(CZ,22);break;case 21:return cd=_.WR(CZ),ES=FH,$d=cd,Eo=B.callbacks,GG="MINI_APP_SDK_API_LOAD_DATA",_.U(CZ,B.sdkVersion.promise,24);case 24:ES($d,Eo,GG,CZ.yieldResult),R.reply(WTa);case 22:return _.U(CZ,El(B,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return CZ.return();case 5:_.en(CZ,
26);B.callbacks.onSendHighScore(T$(_.I6(R.data,KNR,3,hG).getValue()));R.reply(eE(Vy(1),BL(1)));_.c8(CZ,27);break;case 26:return eJ=_.WR(CZ),pR=FH,d4=eJ,W2=B.callbacks,By="MINI_APP_SDK_API_SEND_SCORE",_.U(CZ,B.sdkVersion.promise,28);case 28:pR(d4,W2,By,CZ.yieldResult),R.reply(WTa);case 27:return _.U(CZ,El(B,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return CZ.return();case 6:if(!_.Hb(R.data,IoG,8,hG)){CZ.jumpTo(30);break}k5=_.I6(R.data,IoG,8,hG);k5=_.LU(k5,1);return _.U(CZ,El(B,AON(k5)),30);case 30:return CZ.return();
case 7:return k5=R.reply,tr=Vy(1),l_=BL(1),S2=B.callbacks.getLanguage(),l_=JK(l_,4,Ri,qj(S2)),k5.call(R,eE(tr,l_)),_.U(CZ,El(B,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return CZ.return();case 8:if(!_.Hb(R.data,vQ4,10,hG))return CZ.return();DY=_.I6(R.data,vQ4,10,hG);hA=B.callbacks;fR=hA.onSdkPerformanceUpdate;return _.U(CZ,B.sdkVersion.promise,33);case 33:return fR.call(hA,DY,CZ.yieldResult),CZ.return();case 9:k5=R.data;tr=yU(k5,hG,11);if(_.co(_.yG(k5,tr))==null)return R.reply(eE(Vy(1),BL(2))),
CZ.return();Qv=KU(R.data,11,hG);B.callbacks.onShareInviteCode(Qv);R.reply(thl);return _.U(CZ,El(B,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return CZ.return();case 10:if(_.Hb(R.data,N2b,13,hG)){CZ.jumpTo(35);break}return _.U(CZ,B.callbacks.onShowMiniAppAd(2),36);case 36:return i4=CZ.yieldResult,R.reply(eE(Vy(1),lov(i4))),_.U(CZ,El(B,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return CZ.return();case 35:k5=_.I6(R.data,N2b,13,hG);a:switch(_.LU(k5,1)){case 1:k5={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:k5={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:k5={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}TG=k5;ZS=TG.adType;$b=TG.sdkApi;k5=B.callbacks;tr=k5.onShowMiniAppAd;l_=_.I6(R.data,N2b,13,hG);l_=_.xU(l_,2);return _.U(CZ,tr.call(k5,ZS,l_||void 0),38);case 38:return DS=CZ.yieldResult,R.reply(eE(Vy(1),lov(DS))),_.U(CZ,El(B,$b),39);case 39:return CZ.return()}})})};
var IE=function(B,R){_.W(function(V){B.channel.send(R);_.b3(V)})},rL=function(B,R,V){this.callbacks=B;
var e=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;B=YYx(R,(new URL(V.toString())).origin);this.gameSnacks=new WIl(B);this.gameSnacks.page.onReady(function(){e.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){e.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var X,Y;(Y=(X=e.callbacks).onGameReady)==null||Y.call(X)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(X,Y){try{e.callbacks.onSendHighScore(Y)}catch(t){FH(t,e.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(X,Y){var t;return _.W(function(b){if(b.nextAddress==1)return _.en(b,2),_.U(b,e.callbacks.onSave(e.decoder.decode(Y)),4);if(b.nextAddress!=2)return _.c8(b,0);t=_.WR(b);FH(t,e.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return b.return()})});
this.gameSnacks.storage.onLoad(function(){var X,Y;return _.W(function(t){if(t.nextAddress==1)return _.en(t,2),_.U(t,e.callbacks.onLoad(),4);if(t.nextAddress!=2)return X=t.yieldResult,t.return(e.encoder.encode(X));Y=_.WR(t);FH(Y,e.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return t.return(e.encoder.encode(""))})});
this.gameSnacks.init()};
_.l(rL,Kh);rL.prototype.onAudioToggled=function(B,R){Kh.prototype.onAudioToggled.call(this,B,R===void 0?!0:R);var V;(V=this.gameSnacks)==null||V.audio.update(B)};
rL.prototype.onPause=function(){Kh.prototype.onPause.call(this);var B;(B=this.gameSnacks)==null||B.game.pause()};
rL.prototype.onResume=function(){Kh.prototype.onResume.call(this);var B;(B=this.gameSnacks)==null||B.game.resume()};var bma=iGu,Jah=_.sx(function(B){var R=B.data;var V=B.loadingProgress;B=_.h(_.WU("",void 0,"LYYTdd"));var e=B.next().value,X=B.next().value;B=_.h(_.WU(!1,void 0,"K0waae"));var Y=B.next().value,t=B.next().value,b=[],J=function(){return"transform: scaleX("+(_.wA(V)||0)+")"},G=null,y=function(){var z;
return(z=R()&&G)!=null?z:G=R().showAnniversaryAnimation?6:bma()};
_.lJ(function(){var z;if(R().timeOutMessages&&((z=R().timeOutMessages)==null?0:z.length)){G=null;z=_.h(b);for(var T=z.next();!T.done;T=z.next())clearTimeout(T.value);b.length=0;sxx(R().timeOutMessages,b,X,t)}});
var S=function(){return!!R().persistentErrorMessageTitle},M=function(){return V!==void 0},f=function(){return R().title};
return _.N("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.N("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.N("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.N("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var z,T=(z=R().backgroundImage)==null?void 0:z.sources,L;return(T==null?0:T.length)?"background-image: url("+((L=T[0])==null?void 0:L.url)+")":
""}}),_.N("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.N(_.H,{cond:function(){return!S()},
then:function(){var z={};return _.N("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.N("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.N(_.pD,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+y()},
data:function(){var T="loading_animation_"+y();return{animationConfig:{name:T,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+T+".json",loop:!0,autoplay:!0}}}})),_.N("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.N(_.H,{cond:f,
then:function(){return _.N("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},f)}}),_.N("p",{class:_.XE("mini-app-splash-screen-view-model-wiz__timeout-message",(z["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return Y()},z)),
"aria-live":"polite"},e),_.N(_.H,{cond:M,then:function(){return _.N("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.N("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:J}))}})))}}),_.N(_.H,{cond:S,
then:function(){return _.N("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.N("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return R().persistentErrorMessageTitle}),_.N(_.H,{cond:function(){return!!R().persistentErrorMessageDescription},
then:function(){return _.N("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return R().persistentErrorMessageDescription})}}))}})))},"Ld");var j22=new _.u0("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var UAa=gA;gA=function(B){function R(V){if(V){var e,X;(e=V.__spec)==null||(X=e.didUnmount)==null||X.call(e);for(e=0;e<V.childNodes.length;e++)R(V.childNodes[e])}}
UAa==null||UAa(B);HK(function(){for(var V=0;V<B.length;V++)R(B[V])})};var Nu4=_.sx(function(B){var R=B.data;var V=B.score;var e=B.formattedScore;var X=B.onScoreChanged;var Y=B.isEmbeddedInWebview;var t=_.mA(),b=function(){var f;return _.D(R==null?void 0:(f=R())==null?void 0:f.buttonViewModel,_.Tr)},J=function(){var f;
return(V==null?void 0:V())||Number(R==null?void 0:(f=R())==null?void 0:f.lastScore)||0},G=function(){var f;
return(e==null?void 0:e())||((f=b())==null?void 0:f.title)||""},y,S=1;
if(B=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))B=Number(B),S=isNaN(B)?1:B/100;_.lJ(function(){X==null||X(J());var f;var z=_.dl((f=b())==null?void 0:f.onTap);if(z){f=_.D(z,B3_);var T,L,Q;f=_.D(f==null?void 0:(T=f.panelLoadingStrategy)==null?void 0:(L=T.inlineContent)==null?void 0:(Q=L.dialogViewModel)==null?void 0:Q.customContent,o$J)}else f=void 0;if(T=f)T.score=G()});
B=_.Wr(function(){var f,z,T=R==null?void 0:(f=R())==null?void 0:(z=f.loggingDirectives)==null?void 0:z.trackingParams;T&&_.WC(_.Oz().resolve(_.jj),T);return!1});
_.zM(function(){if(t.value){var f=t.value.querySelector("button"),z=b();f&&z&&Fdd(f,z);nE("yt-share-playable-with-high-score",function(){var T=J().toString(),L=R==null?void 0:R().onShareHighScoreCommand,Q=R==null?void 0:R().highScoreShareClientParamIdentifier,q=Y==null?void 0:Y();L&&(q?(Q=new rG5,T=_.bg(Q,2,T),sy(L,T.JSC$10182_serializeBinary())):Q&&(_.Oz().resolve(j22).clientParams.set(Q,{miniAppClientParams:{highScore:T}}),zpA(L,!1)))})}});
var M=function(){var f=b();f&&(V==null?0:V())&&f.accessibilityText&&(f.accessibilityText=f.accessibilityText.replace(y,G()));y=G();return{numberValue:J(),numberText:G(),heightPx:36,fontSizeMultiplier:S,shouldAnimate:!(V==null||!V())&&!0}};
return _.N("yt-mini-app-score-button-view-model",{class:function(){var f={};return _.YB("mini-app-score-button-view-model-wiz",(f["mini-app-score-button-view-model-wiz--is-visible"]=J()!==0,f))},
el:t,"on:click":B},gz(!1,function(){return _.N("span",{style:"display:none;"},J)}),_.N(_.wb,{data:function(){var f;
return R==null?void 0:(f=R())==null?void 0:f.buttonViewModel}},{buttonViewModel:function(f){return _.N(_.qo,{data:f.data,
animatedTextProps:M})}}))},"Md");var Mh4=_.sx(function(B){var R,V=(R=_.tp("yt-mini-app-is-theater-mode-enabled"))!=null?R:!1,e=_.k("enable_playable_container_save_button"),X=_.k("enable_play_next_destination_page_in_toolbar");R={};return _.N("ytm-mini-app-top-bar-view-model",null,_.N("div",{class:_.XE("yt-mini-app-top-bar-view-model",(R["yt-mini-app-top-bar-view-model--mobile"]=!1,R["yt-mini-app-top-bar-view-model--desktop"]=!0,R))},_.N("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.N(_.H,{cond:function(){var Y;
return!!B.data().backButtonEdu&&!((Y=B.isExitMiniAppSeen)==null?0:Y.call(B))},
then:function(){return _.N(_.wb,{data:function(){return B.data().backButtonEdu}},{buttonViewModel:_.qo})},
else:function(){return _.N(_.wb,{data:function(){return B.data().backButton}},{buttonViewModel:_.qo})}}),_.N(_.H,{cond:function(){return B.data().viewAllButton&&!0},
then:function(){return _.N(_.wb,{data:function(){return B.data().viewAllButton}},{buttonViewModel:_.qo})}}),_.N(_.H,{cond:function(){return B.data().title&&!0},
then:function(){return _.N("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return B.data().title})}})),_.N("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.N(_.H,{cond:function(){var Y;
return(Y=B.isDesktopPlayPage)==null?void 0:Y.call(B)},
then:function(){return _.N(_.OZ,null,_.N(GWG,{highScoreButton:function(){return B.data().highScoreButton},
score:B.score,formattedScore:B.formattedScore,onScoreChanged:B.onScoreChanged,isEmbeddedInWebview:B.isEmbeddedInWebview}),_.N(yav,{enableSaveButton:function(){return _.wA(e)},
saveButton:function(){return B.data().saveButton},
isSaved:B.isSaved,onSaveToggled:function(){return B.onSaveToggled}}),_.N(Sal,{menuButton:function(){return B.data().menuButton}}))},
else:function(){return _.N(_.H,{cond:function(){return!1},
then:function(){return _.N(_.wb,{data:function(){return B.data().playPageButton}},{buttonViewModel:function(Y){return _.N(_.qo,{data:Y.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.N(GWG,{highScoreButton:function(){return B.data().highScoreButton},
score:B.score,formattedScore:B.formattedScore,onScoreChanged:B.onScoreChanged,isEmbeddedInWebview:B.isEmbeddedInWebview})}})}})),_.N("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.N(_.wb,{data:function(){return B.data().muteButton}},{toggleButtonViewModel:function(Y){var t=Y.data;
return _.N(_.LO,{data:function(){var b,J;return Object.assign({},t(),{isToggled:(J=(b=B.isAudioEnabled)==null?void 0:b.call(B))!=null?J:!0})},
onToggle:B.onAudioToggled,useOutlinedIcon:!0})}}),_.N(_.wb,{data:function(){return B.data().theatreModeButton}},{toggleButtonViewModel:function(Y){var t=Y.data;
return _.N("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.N(_.LO,{data:function(){return Object.assign({},t(),{isToggled:V})},
useOutlinedIcon:!0}))}}),_.N(Hmb,{fullscreenButton:function(){return B.data().fullscreenButton}}),_.N(_.H,{cond:function(){return _.wA(X)&&B.data().viewAllButton&&!1},
then:function(){return _.N(_.wb,{data:function(){return B.data().viewAllButton}},{buttonViewModel:_.qo})}}),_.N(_.H,{cond:function(){var Y;
return!((Y=B.isDesktopPlayPage)==null?0:Y.call(B))},
then:function(){return _.N(_.OZ,null,_.N(yav,{enableSaveButton:function(){return _.wA(e)},
saveButton:function(){return B.data().saveButton},
isSaved:B.isSaved,onSaveToggled:function(){return B.onSaveToggled}}),_.N(Sal,{menuButton:function(){return B.data().menuButton}}))}}))))},"Nd");
Mh4.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Sal=_.sx(function(B){return _.N(_.wb,{data:B.menuButton},{buttonViewModel:_.qo})},"Od"),yav=_.sx(function(B){var R=B.enableSaveButton;
var V=B.saveButton;var e=B.isSaved;var X=B.onSaveToggled;return _.N(_.H,{cond:function(){return R()&&!(V==null||!V())},
then:function(){return _.N(_.wb,{data:function(){var Y=_.D(V==null?void 0:V(),_.xx),t;return{toggleButtonViewModel:Object.assign({},Y,{isToggled:(t=e==null?void 0:e())!=null?t:!(Y==null||!Y.isToggled)})}}},{toggleButtonViewModel:function(Y){return _.N(_.LO,{data:Y.data,
onToggle:X})}})}})},"Pd"),GWG=_.sx(function(B){var R=B.highScoreButton;
var V=B.score;var e=B.formattedScore;var X=B.onScoreChanged;var Y=B.isEmbeddedInWebview;return _.N(_.wb,{data:R},{miniAppScoreButtonViewModel:function(t){return _.N(Nu4,{data:t.data,score:V,formattedScore:e,onScoreChanged:X,isEmbeddedInWebview:Y})}})},"Qd"),Hmb=_.sx(function(B){B=B.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.N(_.OZ,null):_.N(_.wb,{data:B},{buttonViewModel:_.qo})},"Rd");_.kWS=new _.u0("DESKTOP_CURRENT_PAGE");var dAa=_.sx(function(B){var R=B.data;var V=_.k("force_active_time_logging_webview"),e=_.k("skip_logs_after_end_event"),X=!1,Y=new CnT,t=void 0,b=void 0,J=_.Oz().resolve($vS),G=new rPa,y=void 0,S=void 0,M=[],f=void 0,z=void 0,T=!1,L=!1,Q=!1,q=!1,m=new _.Xs,g=_.Oz().resolve(j22),Vu=_.Oz().resolve(_.wQ),n=_.Oz().resolve(_.uj(tQ)),Yd,kd=(Yd=_.Oz().resolve(_.uj(_.kWS)))==null?void 0:Yd.getCurrentPage(),a5=!1,lo=0,io=function(nZ){nZ.preventDefault();return nZ.returnValue=""},vd;
B=_.h(_.WU(!((vd=_.tp("yt-mini-app-is-audio-enabled"))!=null&&!vd),void 0,"HPBZTb"));var cd=B.next().value,ES=B.next().value,$d;vd=_.h(_.WU(!(($d=_.tp("exit-mini-app-seen-state"))==null||!$d),void 0,"kLuFyc"));var Eo=vd.next().value,GG=vd.next().value;$d=_.h(_.WU(!1,void 0,"o1PbLc"));var eJ=$d.next().value,pR=$d.next().value;$d=_.h(_.WU(void 0,void 0,"YlqNme"));var d4=$d.next().value,W2=$d.next().value;$d=_.h(_.WU(void 0,void 0,"AeYJne"));var By=$d.next().value,DY=$d.next().value;$d=_.h(_.WU(!0,void 0,
"aEz9qb"));var hA=$d.next().value,fR=$d.next().value;$d=_.h(_.WU(!1,void 0,"bcquyc"));var Qv=$d.next().value,i4=$d.next().value;$d=_.h(_.WU(void 0,void 0,"FMAC5b"));var TG=$d.next().value,ZS=$d.next().value;$d=_.h(_.WU(0,void 0,"HUGJEb"));var $b=$d.next().value,DS=$d.next().value,CZ=_.Zh(),k5=function(){return R().isEmbeddedInWebview},tr=function(){return R().hasPlayNextShelf};
nE("yt-page-type-changed",function(nZ){if(_.k("enable_is_mini_app_page_active_bugfix"))nZ.detail.newPageSubtype!=="mini_app"&&hA()&&tD();else if(nZ=_.Wid()==="mini_app",nZ!==hA())if(fR(nZ),nZ){var Nj;nZ=(Nj=R().playableId)==null?void 0:Nj.toString();nZ!==void 0&&window.location.href.includes(nZ)&&!L&&(q=!0,l_(),hh(Jr.value))}else nZ||tD()});
nE("yt-action",function(nZ){nZ.detail.actionName==="yt-engagement-panel-visible-changed"&&nZ.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&nZ.detail.args[2]==="PAmini_app_panel"&&tD();_.k("enable_is_mini_app_page_active_bugfix")?nZ.detail.actionName==="yt-history-load"&&!hA()&&(kd==null?0:kd.active)?(fR(!0),l_(),hh(Jr.value)):nZ.detail.actionName==="yt-history-load"&&hA()&&!R().isEmbeddedInWebview&&Dh():hA()&&nZ.detail.actionName==="yt-history-load"&&(q?q=!1:R().isEmbeddedInWebview||Dh())});
_.aK(function(){S2()});
_.lJ(function(){l_()});
var l_=function(){var nZ=R().playableId,Nj=R().localReleaseId,fe=R().derivedDeviceInterface;if(L)_.KE(new _.H8("[MiniAppContainerViewModel] onEnter was called more than once"));else{L=!0;t=new xvJ(nZ,Nj,fe,document.visibilityState==="visible");IRS(t);b=new Buv(nZ);DAS(J,nZ);gO4(G,{showMiniAppAdCommand:R().showMiniAppAdCommand,isEmbeddedInWebview:R().isEmbeddedInWebview,playLogger:t});drN()&&(z=document.body.style.backgroundColor,_.Ip(document.body,"background-color","black"));Q5();SJ();m=new _.Xs;
if(R().isEmbeddedInWebview){if(nZ=(new URLSearchParams(window.location.search)).get("postPlayNonce"))vO5(t,nZ),a5=!0;Y.initialize({onAudioStateLoaded:function(Kf){kb(Kf)},
onMuteMiniApp:function(){kb(!1)},
onUnmuteMiniApp:function(){kb(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Kf){a5||(vO5(t,Kf),a5=!0)},
confirmExitMiniApp:function(){var Kf,Xf,Xx;return _.W(function(sZ){if(sZ.nextAddress==1)return R().confirmExitMiniAppCommand?_.U(sZ,Promise.race([m.promise,Promise.resolve(!1)]),2):sZ.return();(Kf=sZ.yieldResult)?!R().confirmExitMiniAppCommandEdu||(Xx=(Xf=Eo)==null?void 0:Xf())!=null&&Xx?q_(R().confirmExitMiniAppCommand):(q_(R().confirmExitMiniAppCommandEdu),_.hp("exit-mini-app-seen-state","true",2592E6)):q_(R().closeMiniAppCommand);_.b3(sZ)})},
onNativeBenchmarkingMessageReceived:function(Kf){Kf=jHh(_.lid(Kf));if(_.Hb(Kf,_.iH,3,WNJ)){var Xf=_.I6(Kf,_.iH,3,WNJ),Xx=a6S();var sZ=T$(Xx.getSeconds())-T$(Xf.getSeconds());Xf=_.Bn(Xx,2)-_.Bn(Xf,2);sZ<0&&Xf>0?(sZ+=1,Xf-=1E9):sZ>0&&Xf<0&&(--sZ,Xf+=1E9);sZ=(new Z1).setSeconds(sZ);sZ=_.lI(sZ,2,_.D7(Xf),0);_.Ra(Kf,1,sZ)}var kU;(kU=S)==null||kU.returnNativeBenchmarkingMessage(Kf)},
multiplayer3pAckStateLoaded:function(Kf){Dh(Kf)},
exitMiniAppSeenStateLoaded:function(Kf){R().confirmExitMiniAppCommandEdu&&GG(Kf)},
onNavigateToNewMiniApp:function(){q_(R().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Kf){Kf=new URLSearchParams(Kf);var Xf=void 0;Kf.has("invite_code")&&(Xf=new MVa,Kf=Kf.get("invite_code"),Xf=_.bg(Xf,1,Kf));if(Kf=Xf){var Xx;(Xx=S)==null||Xx.sendGameData(Kf)}},
onPauseMiniApp:function(){X=!0;J$()},
onResumeMiniApp:function(){X=!0;s4()},
onAdFinished:function(Kf){G.onAdFinished(Kf)}});
R().showMultiplayer3pConsentDialogCommand||m.resolve(!0);q_(R().onContainerReadyCommand)}else vO5(t),m.resolve(!0);RGJ(b,Lvl(t));Lvl(t).then(function(Kf){Kf={miniAppPlayData:{postPlayNonce:Kf}};var Xf,Xx=(Xf=R().loggingDirectives)==null?void 0:Xf.trackingParams;Xx&&_.WK().stateChanged(Xx,Kf)});
nZ=R().showSignInDialogCommand;!TZu()&&nZ&&(_.hp("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),q_(nZ));R().confirmExitMiniAppCommand&&n&&(nZ=f6p(R().confirmExitMiniAppCommand))&&(n.customConfirmationCommand=nZ)}},S2=function(){if(!e||L)z&&_.Ip(document.body,"background-color",z),T=!1,f&&f.release(),b.flush().catch(function(nZ){_.KE(nZ)}),J.flush().catch(function(nZ){_.KE(nZ)}),QU2(t),Pn(),S=void 0,e&&(L=!1),f84(g)},tD=function(){fR(!1);
S2();pR(!1);ZS(void 0);W2(void 0);DY(void 0);lo=0;DS(0);e||(L=!1)},J$=function(){var nZ;
(nZ=S)==null||nZ.onPause();f&&f.release();b.flush().catch(function(Nj){_.KE(Nj)});
J.flush().catch(function(Nj){_.KE(Nj)});
EOa(t)},s4=function(){var nZ;
(nZ=S)==null||nZ.onResume();SJ();nZ=t;nZ.isForeground=!0;xe(nZ,"PLAY_EVENT_TYPE_PLAY_RESUME")},kb=function(nZ){var Nj;
(Nj=S)==null||Nj.onAudioToggled(nZ);ES(nZ)},Dh=function(nZ){R().showMultiplayer3pConsentDialogCommand&&(R().isEmbeddedInWebview&&nZ!==void 0&&m.resolve(nZ),!nZ&&_.Wid()==="mini_app"&&q_(R().showMultiplayer3pConsentDialogCommand))},so=function(){var nZ,Nj,fe,Kf;
return _.W(function(Xf){if(Xf.nextAddress==1){if(e&&!L)return Xf.return();!R().isLivestream||R().disableVideoCapture||(nZ=S)!=null&&nZ.sendStartGameFrameCapture();Nj=(new URL(window.location.href)).searchParams;if(Nj.has("invite_code")){var Xx=new MVa,sZ=Nj.get("invite_code");fe=_.bg(Xx,1,sZ);(Kf=S)==null||Kf.sendGameData(fe)}eJ()||(pR(!0),Xx=t,Xx.state!==1?_.KE(new _.H8("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+wQ4[Xx.state])):(_.eC("mini_app_ids_without_game_ready").includes(Xx.JSC$14643_miniAppId)&&
(Xx.gameReady=!0),Xx.state=2,Xx.beforeReady=!1,T6(Xx,"ma_ffr"),xe(Xx,"PLAY_EVENT_TYPE_PLAY_READY")));return _.U(Xf,m.promise,2)}q_(R().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();R().isEmbeddedInWebview||Dh();_.b3(Xf)})},we=function(){var nZ=t;
nZ.gameReady=!0;T6(nZ,"ma_gr")},Z7=function(nZ){var Nj;
return _.W(function(fe){if(fe.nextAddress==1)return _.en(fe,2),_.U(fe,eG_(b,nZ),4);if(fe.nextAddress!=2)return _.c8(fe,0);Nj=_.WR(fe);q_(R().showSavingErrorPopupCommand);throw Nj;})},Po=function(){var nZ,Nj;
return _.W(function(fe){if(fe.nextAddress==1)return _.en(fe,2),_.U(fe,VhJ(b),4);if(fe.nextAddress!=2)return nZ=fe.yieldResult,fe.return(nZ);Nj=_.WR(fe);q_(R().showLoadingErrorDialogCommand);throw Nj;})},dz=function(nZ){t.logError(nZ)},dk=function(nZ,Nj,fe){cPG(t,nZ,Nj,fe)},gV=function(nZ,Nj){iV5(t,nZ,Nj)},Ez=function(){!V&&R().isEmbeddedInWebview||_.oq();
qE_(t,!0);T||(window.addEventListener("beforeunload",io,{capture:!0}),T=!0)},rc=function(nZ){var Nj,fe,Kf,Xf,Xx,sZ,kU;
return _.W(function(ss){if(ss.nextAddress==1)return J&&(!y||y<nZ)&&nZ>0?_.U(ss,l8R(J,nZ),3):ss.jumpTo(0);Nj=ss.yieldResult;fe=_.h(Nj);Kf=fe.next().value;Xf=fe.next().value;Xx=Kf;sZ=Xf;((kU=Xx)==null?0:kU.displayString)&&sZ&&(W2(sZ),DY(Xx.displayString));_.b3(ss)})},jO=function(nZ){var Nj=R().onBenchmarkingMessageReceivedCommand;
if(Nj){var fe=a6S();_.Vm(nZ,3,WNJ,fe);sy(Nj,Ul4(nZ))}},MY=function(nZ){var Nj=R().onGameFrameReceivedCommand;
if(Nj){var fe=new n35;var Kf=new mu4;var Xf=wX(nZ,1);Kf=_.H5(Kf,1,Xf);nZ=_.xU(nZ,2);nZ=_.bg(Kf,2,nZ);fe=_.Ra(fe,2,nZ);sy(Nj,OTG(fe))}},Qu=function(nZ){var Nj=R().onGameAudioDataReceivedCommand;
if(Nj){var fe=new n35;var Kf=new CKJ;nZ=_.xU(nZ,1);Kf=_.bg(Kf,1,nZ);fe=_.Ra(fe,4,Kf);sy(Nj,OTG(fe))}},Fp=function(){var nZ=new URLSearchParams(window.location.search);
if(R().isEmbeddedInWebview&&nZ&&nZ.get("override_hl")==="true"&&nZ.get("hl"))return nZ.get("hl");nZ=document.documentElement.lang;return nZ!==""?nZ:_.K7},NT=function(nZ){var Nj=R().onShareInviteCodeCommand;
if(Nj)if(R().isEmbeddedInWebview){var fe=new rG5;nZ=_.bg(fe,1,nZ);sy(Nj,Zt2(nZ))}else fe=R().inviteCodeShareClientParamIdentifier,g.clientParams.set(fe,{miniAppClientParams:{inviteCode:nZ}}),q_(Nj)},e2=function(nZ){var Nj,fe,Kf;
return _.W(function(Xf){if(Xf.nextAddress==1)return Nj=R().onMiniAppOpenYtContentRequested,J&&_.k("enable_open_yt_content")&&Nj?_.U(Xf,zG2(J,nZ),3):Xf.jumpTo(0);fe=Xf.yieldResult;if(fe==="OK")if(R().isEmbeddedInWebview){var Xx=new Fta;Kf=JK(Xx,2,Tl,qj(nZ));sy(Nj,ZTJ(Kf))}else Vu.clientData.set("video_id",nZ),q_(Nj);_.b3(Xf)})},Lf=function(nZ){lo+=_.Bn(nZ,3);
nZ=Math.min(Math.log(1+lo/15E6*9)/Math.log(10),.99);DS(nZ);b4(nZ)},b4=_.Hx(function(nZ){var Nj=R().updateLoadingProgressCommand;
if(Nj){var fe=new Fta;nZ=JK(fe,3,Tl,_.hr(nZ));sy(Nj,ZTJ(nZ))}},100),H2=function(nZ){return mvv(G,nZ)},SJ=function(){var nZ,Nj;
((nZ=_.uG_())==null?void 0:(Nj=nZ.wakeLock)==null?void 0:Nj.request)!=null&&_.uG_().wakeLock.request("screen").then(function(fe){f=fe}).catch(function(){})},Jr=_.Zh();
_.lJ(function(){R().isSupportedCountry&&(TZu()||_.k("enable_sign_in_promo")||!R().showSignInDialogCommand?hh(Jr.value):q_(R().onMiniAppReadyCommand))});
var zX=function(){return _.N("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return eJ()?0:-1},
el:Jr})},hh=function(nZ,Nj){Nj=Nj===void 0?!1:Nj;
var fe=DM();fe&&(Nj||fe.toString()!==nZ.getAttribute("src"))&&(S=QxN(R().source,{isAudioEnabled:cd,onFirstFrameReady:so,onGameReady:we,onSave:Z7,onLoad:Po,onError:dz,onSdkCalled:dk,onSdkPerformanceUpdate:gV,onClick:Ez,onSendHighScore:rc,onBenchmarkingMessageReceived:jO,getLanguage:Fp,onShareInviteCode:NT,onResourceLoaded:Lf,onOpenYTContent:e2,onShowMiniAppAd:H2,onGameFrameReceived:MY,onGameAudioReceived:Qu},nZ,fe),JJ(nZ,"load",function(){T6(t,"ma_il");JJ(nZ,"load",function(){hh(nZ,!0)})}),_.wc(nZ,
fe))},DM=function(){var nZ=R().url;
if(nZ&&(nZ=_.wV(nZ),nZ!==null)){if(R().source&&R().source==="MINI_APP_SOURCE_GAMESNACKS")nZ=_.O0(nZ,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.k("enable_origin_query_parameter_bugfix")){var Nj=_.w2(_.MKu(nZ.toString()));Nj=new URLSearchParams(Nj||"");Nj.set("origin",window.location.origin);Nj=Nj.toString();nZ=_.hR(nZ).toString();nZ=_.Yq(Kbo.exec(nZ)[0]+(Nj.trim()?"#"+Nj:""))}return nZ}},Cd=function(){var nZ={};
nZ=_.XE("yt-mini-app-container-view-model__loading-screen",(nZ["yt-mini-app-container-view-model__loading-screen--fade-out"]=eJ,nZ));var Nj=function(){return eJ()?1:$b()};
return _.N("div",{class:nZ},_.N(_.wb,{data:function(){return R().splashScreen}},{miniAppSplashScreenViewModel:function(fe){return _.N(Jah,{data:fe.data,
loadingProgress:Nj})}}))},Q5=function(){M=[];
M.push(_.G2(window,"visibilitychange",function(){Q||X&&k5()||(document.visibilityState==="visible"?s4():J$())}));
M.push(_.G2(window,"pagehide",function(){S2()}));
M.push(_.G2(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&CZ.value.dispatchEvent(new Event("tap"))},0)}));
M.push(_.G2(CZ.value,"pointerdown",function(){qE_(t,!1)},!0));
M.push(_.G2(CZ.value,"pause",function(){Q=!0;J$()}));
M.push(_.G2(CZ.value,"play",function(){Q=!1;s4()}));
M.push(_.G2(CZ.value,"exit",function(){S2()}));
var nZ=navigator.keyboard,Nj=nZ&&nZ.lock;M.push(_.G2(window,EG4,function(){i4(q$5());q$5()?(R().hasPlayNextShelf&&nx("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),f7("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Nj&&nZ.lock(["Escape"])):(R().hasPlayNextShelf&&f7("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),nx("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Nj&&nZ.unlock())}));
R().showMultiplayer3pConsentDialogCommand&&M.push(_.G2(window,"yt-playables-ack-3p-data-usage",function(){a85(J)}));
R().confirmExitMiniAppCommandEdu&&M.push(_.G2(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.hp("exit-mini-app-seen-state","true",2592E6)}))},Pn=function(){M.forEach(function(nZ){jR(nZ)});
window.removeEventListener("beforeunload",io,{capture:!0})},q_=function(nZ){nZ&&zpA(nZ,R().isEmbeddedInWebview||!1)},f7=function(nZ,Nj){nZ=_.h(CZ.value.getElementsByClassName(nZ));
for(var fe=nZ.next();!fe.done;fe=nZ.next())fe.value.classList.add(Nj)},nx=function(nZ,Nj){nZ=_.h(CZ.value.getElementsByClassName(nZ));
for(var fe=nZ.next();!fe.done;fe=nZ.next())fe.value.classList.remove(Nj)};
return function(){var nZ={};nZ=_.XE("yt-mini-app-container-view-model",(nZ["yt-mini-app-container-view-model--desktop"]=!0,nZ["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return R().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},nZ["yt-mini-app-container-view-model--ios-web-view"]=drN(),nZ["yt-mini-app-container-view-model--no-top-bar"]=function(){return!R().topBar},nZ["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return R().hasPlayNextShelf},nZ["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return R().hasPlayNextShelf},nZ["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Qv()&&R().hasPlayNextShelf},nZ));
var Nj={};Nj=_.XE("yt-mini-app-container-view-model__content",(Nj["yt-mini-app-container-view-model__content--desktop-content"]=!0,Nj["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return R().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Nj["yt-mini-app-container-view-model--desktop-play-page"]=function(){return R().hasPlayNextShelf},Nj));
return _.N("mini-app-container-view-model",{el:CZ},_.N("div",{class:nZ},_.N(_.H,{cond:function(){return R().topBar&&!Qv()},
then:function(){return _.N(_.wb,{data:function(){return R().topBar}},{miniAppTopBarViewModel:function(fe){return _.N(Mh4,{data:fe.data,
isAudioEnabled:cd,onAudioToggled:function(Kf){kb(Kf)},
score:d4,formattedScore:By,onScoreChanged:function(Kf){y=Kf},
isEmbeddedInWebview:k5,isSaved:TG,onSaveToggled:function(Kf){ZS(Kf)},
isExitMiniAppSeen:Eo,isDesktopPlayPage:tr})}})}}),_.N("div",{class:Nj},_.N(_.H,{cond:hA,
then:function(){return zX()}}),_.N(_.H,{cond:function(){return!R().isEmbeddedInWebview},
then:function(){return Cd()}}))))}()},"Sd");
dAa.idomCompat=!0;_.mR(dAa,"mini-app-container-view-model",{props:{data:_.qq}});var wY2=_.sx(function(B){var R=B.data;return _.N("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.N("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Wr(function(){var V=R().onTap;V&&_.Lc(V)})},_.N(_.H,{cond:function(){return R().icon},
then:function(V){return _.N(_.Us,{icon:function(){return V().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.N("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return R().title})))},"Td");
wY2.idomCompat=!0;var TuS=_.sx(function(B){var R=_.Zh(),V=_.h(_.WU(void 0,void 0,"kFCJ0c")),e=V.next().value,X=V.next().value;V=_.h(_.WU(void 0,void 0,"PIPgWd"));var Y=V.next().value,t=V.next().value;V=_.h(_.WU(void 0,void 0,"rV66ob"));var b=V.next().value,J=V.next().value,G=function(){var Q=e();return Q!==void 0?Math.abs(Q):void 0},y=function(){var Q=G();
return Q===void 0||Q<=3},S=function(){var Q=G();
var q=Y(),m=b();Q=Q!==void 0&&q!==void 0&&m!==void 0?q-m-Q:void 0;return Q===void 0||Q<=3},M=function(Q){R.value&&R.value.scrollBy({top:0,
left:(_.vE("HTML_DIR")==="rtl"?-1:1)*Q*R.value.clientWidth,behavior:"smooth"})},f=function(){var Q;
X((Q=R.value)==null?void 0:Q.scrollLeft);var q;t((q=R.value)==null?void 0:q.scrollWidth);var m;J((m=R.value)==null?void 0:m.clientWidth)},z=function(){M(-.5)},T=function(){M(.5)};
V=_.Wr(function(){f()});
_.fQ(function(){f();if(R.value){var Q=new ResizeObserver(f);Q.observe(R.value);_.aK(function(){Q.disconnect()})}});
var L={};return _.N("yt-sponsorships-scrollable-shelf",{class:_.XE("ytdSponsorshipsScrollableShelfHost",B.className)},_.N("div",{class:_.XE("ytdSponsorshipsScrollableShelfContent",(L.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return B.data().previousButton&&B.data().nextButton&&!y()&&!S()},L.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return B.data().previousButton&&!y()&&S()},L.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return B.data().nextButton&&
y()&&!S()},L)),
el:R,"on:scroll":V},B.children),_.N(_.H,{cond:function(){return!y()},
then:function(){return _.N(_.wb,{data:function(){return B.data().previousButton}},{buttonViewModel:function(Q){return _.N(_.qo,{data:Q.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:z})}})}}),_.N(_.H,{cond:function(){return!S()},
then:function(){return _.N(_.wb,{data:function(){return B.data().nextButton}},{buttonViewModel:function(Q){return _.N(_.qo,{data:Q.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:T})}})}}))},"Ud");
TuS.idomCompat=!0;var LTG=_.sx(function(B){var R=B.data;B={};return _.N("yt-sponsorships-hub",{class:_.XE("ytdSponsorshipsHubHost",(B.ytdSponsorshipsHubHostIndented=function(){return R().indented},B))},_.N("div",{class:"ytdSponsorshipsHubHeader"},_.N("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.N("div",{class:"ytdSponsorshipsHubAvatar"},_.N(_.wb,{data:function(){return R().avatar}},{avatarViewModel:_.TP})),_.N(_.H,{cond:function(){return R().badgeImage},
then:function(V){return _.N("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.N("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.N("div",{class:"ytdSponsorshipsHubBadge"},_.N(_.ia,{data:V,targetWidth:24,targetHeight:24,alt:""}))))}})),_.N("div",{class:"ytdSponsorshipsHubDetails"},_.N("div",{class:"ytdSponsorshipsHubTierName"},function(){return R().tierName}),_.N("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return R().membershipType}),_.N("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return R().membershipDurationOrExpiry})),_.N("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.N(_.wb,{data:function(){return R().manageButton}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.N(_.wb,{data:function(){return R().actionMenuButton}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.N("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return R().perksTitle}),_.N(TuS,{data:function(){return{previousButton:R().previousPerkButton,
nextButton:R().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.N("div",{class:"ytdSponsorshipsHubPerkCards"},_.N(_.wb,{data:function(){return R().perkCards}},{sponsorshipsHubPerkCardViewModel:wY2}),_.N(_.H,{cond:function(){return R().viewAllPerksButton},
then:function(V){return _.N(xAh,{data:V})}}))))},"Vd");
LTG.idomCompat=!0;var xAh=_.sx(function(B){var R=B.data;return _.N("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.N(_.wb,{data:function(){return R().button}},{buttonViewModel:_.qo}),_.N("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.N("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return R().title}),_.N("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return R().subtitle})))},"Wd");
xAh.idomCompat=!0;_.mR(LTG,"yt-sponsorships-hub",{props:{data:_.qq}});_.vYv=_.sx(function(B){var R=B.data;return _.N("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.jQ({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var V;return((V=R().badgeCutoutRadius)!=null?V:14)+"px"}})},_.N("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.N(_.wb,{data:function(){return R().startAvatar}},{avatarViewModel:_.TP}),_.N(_.wb,{data:function(){return R().endAvatar}},{avatarViewModel:_.TP})),_.N(_.wb,{data:function(){return R().badge}},{contentPreviewImageViewModel:function(V){return _.N("div",
{class:"ytDualAvatarViewModelBadge"},_.N(_.mZ,{data:V.data}))}}))},"Xd");
_.vYv.idomCompat=!0;var I8v=_.sx(function(B){var R=B.data;var V,e=!((V=_.Oz().resolve(_.uj(_.E5)))==null||!V());B=_.NW(function(){var y,S,M=e?(y=R().header)==null?void 0:y.backgroundColorDarkMode:(S=R().header)==null?void 0:S.backgroundColorLightMode;if(M!==void 0)return _.zF(M)},void 0,"UX2G6c");
V=_.NW(function(){var y,S;return e?(y=R().header)==null?void 0:y.backgroundImagePart1Dark:(S=R().header)==null?void 0:S.backgroundImagePart1Light},void 0,"GPAi1d");
var X=_.NW(function(){var y,S;return e?(y=R().header)==null?void 0:y.backgroundImagePart2Dark:(S=R().header)==null?void 0:S.backgroundImagePart2Light},void 0,"nboJld"),Y=_.NW(function(){return _.vE("HTML_DIR")==="rtl"},void 0,"LGJceb"),t=_.Zh(),b=!1,J=function(){var y=t.value;
if(y&&!b){var S,M=(S=y.parentElement)==null?void 0:S.parentElement;if(M)for(y=y.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),S=0;S<y.length;++S){var f=y[S];if(f instanceof HTMLElement){M.scrollTo({top:f.offsetTop+f.clientHeight/2-M.clientHeight/2,behavior:"smooth"});b=!0;break}}}};
_.zM(function(){var y=t.value;if(y){var S=new ResizeObserver(J);S.observe(y);_.aK(function(){S.disconnect()})}});
var G={};return _.N("yt-sponsorships-perks-list",{el:t,class:_.XE("ytdSponsorshipsPerksListHost",(G.ytdSponsorshipsPerksListHorizontalPadding=function(){return R().horizontalPaddingEnabled},G))},_.N("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.N("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.jQ({"background-color":B})},_.N("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.N(_.H,{cond:V,then:function(y){var S={};return _.N("div",{class:_.XE((S.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=e,S.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!e,S.ytdSponsorshipsPerksListFlipped=Y,S))},_.N(_.ia,{data:y,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.N("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.N(_.H,{cond:X,
then:function(y){var S={};return _.N("div",{class:_.XE((S.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=e,S.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!e,S.ytdSponsorshipsPerksListFlipped=Y,S))},_.N(_.ia,{data:y,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.N("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.N(_.wb,{data:function(){var y;
return(y=R().header)==null?void 0:y.dualAvatar}},{dualAvatarViewModel:_.vYv})))),_.N("div",{class:"ytdSponsorshipsPerksListBody"},_.N("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return R().title}),_.N(_.H,{cond:function(){return R().perks},
then:function(y){return _.N(_.yh,{each:y},function(S,M){var f={};return _.N("div",{class:_.XE("ytdSponsorshipsPerksListPerkContainer",(f.ytdSponsorshipsPerksListSelectedPerk=function(){var z=M(),T=R().selectedPerkIndex;return z===T},f))},_.N(_.H,{cond:function(){return M()>0},
then:function(){return _.N("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.N("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.N(_.H,{cond:function(){return S.icon},
then:function(z){return _.N(_.Us,{icon:function(){return z().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.N("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.N("div",{class:"ytdSponsorshipsPerksListPerkTitle"},S.title),_.N("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.N(_.Hr,{text:S.description})),_.N(_.H,{cond:function(){return S.instructions},
then:function(){var z,T;return _.N("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.N("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(z=S.instructions)==null?void 0:z.title),_.N("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.N(_.Hr,{text:(T=S.instructions)==null?void 0:T.text})))}}))),_.N(_.H,{cond:function(){return S.emoji},
then:function(z){return _.N("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.N(_.yh,{each:function(){return z()}},function(T){return _.N(_.ia,{data:T,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.N(KTT,{data:S}))})}})))},"Yd");
I8v.idomCompat=!0;var KTT=_.sx(function(B){var R=B.data;var V=function(t,b){return t===b},e=function(){var t=R();
t=_.D(t==null?void 0:t.badgesShelf,PWS);return t!==void 0&&t!==null?t:{previousButton:{},nextButton:{}}},X=_.mA(),Y=function(){var t=X.value;
if(t){var b=t.parentElement;if(b){t=t.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var J=0;J<t.length;++J){var G=t[J];if(G instanceof HTMLElement){b.scrollTo({left:G.offsetLeft+G.clientWidth/2-b.clientWidth/2,behavior:"instant"});break}}}}};
_.zM(function(){var t=X.value;if(t){var b=new ResizeObserver(Y);b.observe(t);_.aK(function(){b.disconnect()})}});
return _.N("div",null,_.N(_.H,{cond:function(){return R().badges},
then:function(t){return _.N(TuS,{data:e},_.N("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:X},_.N(_.yh,{each:function(){return t()}},function(b,J){var G={},y={},S={};
return _.N("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.N(_.H,{cond:function(){return J()>0},
then:function(){return _.N("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.N("div",{class:_.XE("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(G.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return V(J(),R().currentBadgeIndex)},G.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!V(J(),R().currentBadgeIndex)},G))},_.N("div",{class:_.XE("ytdSponsorshipsPerksListLoyaltyBadge",(y.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return V(J(),
R().currentBadgeIndex)},y.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!V(J(),R().currentBadgeIndex)},y))},_.N(_.H,{cond:function(){return b.image},
then:function(M){var f={};return _.N("div",{class:_.XE((f.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return V(J(),R().currentBadgeIndex)},f.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!V(J(),R().currentBadgeIndex)},f))},_.N(_.ia,{data:M,
alt:""}))}})),_.N("div",{class:_.XE("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(S.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return V(J(),R().currentBadgeIndex)},S))},b.title)))})))}}))},"Zd");
KTT.idomCompat=!0;_.mR(I8v,"yt-sponsorships-perks-list",{props:{data:_.qq}});_.mR(_.sx(function(B){return _.N("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.N(_.H,{cond:function(){return B.data().image},
then:function(R){return _.N(_.ia,{className:"ytwFantasyEmptyStateViewModelImage",data:R,ariaHidden:!0,alt:""})}}),_.N(_.Hr,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return B.data().title}}),_.N(_.Hr,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return B.data().subtitle}}),_.N(_.wb,{data:function(){return B.data().primaryButton}},{buttonViewModel:function(R){return _.N(_.qo,{data:R.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"$d"),"ytw-fantasy-empty-state-view-model",{props:{data:_.qq}});var EYS;var rOp=_.ll({buttonRenderer:_.IW});_.oA(gHZ);_.Br(gHZ,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var QH=function(){var B=_.c.apply(this,arguments)||this;B.hideJoinButtonBeforeSubscribed=_.k("hide_join_button_before_subscribed");B.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return B};
_.l(QH,_.c);_.p=QH.prototype;
_.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 B,R;(B=_.w(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(R=B.polymerController)==null||R.set("overrides",this.joinButtonOverrides);if(B=_.w(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))B.overrides=this.joinButtonOverrides};
_.p.handleButtonRefreshAction=function(B){if(B=_.D(B,_.D6_))this.set("data.membershipButton",B.membershipButton),this.notifyPath("data.membershipButton")};
_.p.onYtServiceRequestError=function(B){_.VN(this.hostElement,B.detail.error.message)};
_.p.handleUnsubscribeAction=function(){var B,R,V;((B=this.data)==null?void 0:(R=B.membershipButton)==null?void 0:(V=R.buttonRenderer)==null?void 0:V.style)==="STYLE_PRIMARY"&&_.w(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.mh.Object.defineProperties(QH.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.subscriptionStateEntity)==null||!B.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var B,R=(B=this.data)==null?void 0:B.membershipButton,V;B=(R==null?void 0:R.buttonRenderer)||_.D(R==null?void 0:(V=R.timedAnimationButtonRenderer)==null?void 0:V.buttonRenderer,_.Ii);return(B==null?void 0:B.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(B==null?void 0:B.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(B==null?void 0:B.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
QH.prototype.onYtServiceRequestError=QH.prototype.onYtServiceRequestError;QH.prototype.updateJoinButtonOverrides=QH.prototype.updateJoinButtonOverrides;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],QH.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],QH.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],QH.prototype,"data",void 0);_.r([_.K("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QH.prototype,"hideJoin",null);_.r([_.E(),_.Z("design:type",String)],QH.prototype,"subscribeKey",void 0);_.r([_.E({selectorArgs:["subscribeKey"],selector:_.Xt}),_.Z("design:type",Object)],QH.prototype,"subscriptionStateEntity",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],QH.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.r([_.K("subscriptionStateEntity"),_.E({reflectToAttribute:!0}),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QH.prototype,"subscribed",null);_.r([_.K("subscribed","data.membershipButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QH.prototype,"joinButtonOverrides",null);
_.r([_.XX("joinButtonOverrides"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QH.prototype,"updateJoinButtonOverrides",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],QH.prototype,"onYtServiceRequestError",null);QH=_.r([_.A({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],QH);
var Q2h=_.nJ()(QH,"ytd-video-owner-renderer",function(){if(EYS===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);EYS=B}B=EYS;return B},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.mR(_.sx(function(B){var R=B.data;var V;B=_.h(_.WU(!((V=_.tp("yt-mini-app-is-theater-mode-enabled"))==null||!V),void 0,"cIRDmb"));var e=B.next().value,X=B.next().value,Y;V=(Y=_.Oz().resolve(_.uj(hUT)))!=null?Y:function(){return _.N("div",null)};
_.gn("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){X(!0);_.hp("yt-mini-app-is-theater-mode-enabled",!0)});
_.gn("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){X(!1);_.hp("yt-mini-app-is-theater-mode-enabled",!1)});
Y={};B={};var t={};return _.N("mini-app-play-page-renderer",{class:_.XE("miniAppPlayPageRendererHost",(Y.miniAppPlayPageRendererHostDetailsView=function(){return!e()},Y))},_.N("div",{class:_.XE("miniAppPlayPageRendererGameContainer",(B.miniAppPlayPageRendererGameContainerDetailsView=function(){return!e()},B))},_.N(_.wb,{data:function(){return R().containerViewModel}},{miniAppContainerViewModel:dAa}),_.N(_.wb,{data:function(){return R().channel}},{videoOwnerRenderer:function(b){return _.N("div",{class:"miniAppPlayPageRendererVideoOwnerRenderer"},
_.N(Q2h,{data:b.data}))}}),_.N(_.H,{cond:function(){return!e()&&R().description},
then:function(){return _.N("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.N("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return R().description}))}})),_.N("div",{class:_.XE("miniAppPlayPageRendererPlayNextContainer",(t.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!e()},t))},_.N(_.wb,{data:function(){return R().sectionList}},{sectionListRenderer:V})))},"ae"),"mini-app-play-page-renderer",{props:{data:_.qq}});var qg=function(){var B=_.c.apply(this,arguments)||this;B.isSearch=!1;B.isConstrainedList=!1;B.hasChipsBar=!1;B.inReplyPanel=!1;B.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"}};B.monitorScroll=!0;B.SCROLL_ANIMATION_DURATION_MS=300;B.nextContinuation={continuationType:"sectionListContinuation"};return B};
_.l(qg,_.c);_.p=qg.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(B){switch(B.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.k("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.k("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.p.created=function(){var B=this;this.JSC$14780_scrollAnimation=new _.dQ(function(R){B.hostElement.scrollTop=R})};
_.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(B){this.set("data.contents",B)};
_.p.computeHasSortFilter=function(B){return!!B&&!!B.sortFilterSubMenuRenderer};
_.p.computeShouldScrollInPanel=function(B){var R;return!!(B==null?0:(R=B.scrollPaneStyle)==null?0:R.scrollable)};
_.p.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.nk(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.p.scrollToTop=function(){this.hostElement.scrollTop=0};
_.p.scrollToItemSection=function(B){if(B=this.getItemByIdentifier(B))B=this.getScrollPositionForItem(B),this.hostElement.scrollTop!==B&&this.JSC$14780_scrollAnimation.start(this.hostElement.scrollTop,B,this.SCROLL_ANIMATION_DURATION_MS)};
_.p.getItemByIdentifier=function(B){var R=this.contents.querySelectorAll("ytd-item-section-renderer");if(R&&R.length!==0){var V=Array.from(R).findIndex(function(e){return e.sectionIdentifier===B});
return R[V===-1?0:V]}};
_.p.getScrollPositionForItem=function(B){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===B)return 0;B=_.wk(B).y+this.hostElement.scrollTop-_.wk(this.hostElement).y;return Math.min(B,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.mh.Object.defineProperties(qg.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.targetId)==="browse-feedFEclips"}}});
qg.prototype.onScroll=qg.prototype.onScroll;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],qg.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.CL.YtLazyListBehavior),_.Z("design:type",Object)],qg.prototype,"ytLazyListBehavior",void 0);_.r([_.v(_.vM.YtNextContinuationBehavior),_.Z("design:type",Object)],qg.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.v(_.fR5),_.Z("design:type",Object)],qg.prototype,"ytBooleanLogicBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],qg.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qg.prototype,"data",void 0);_.r([_.E({value:2}),_.Z("design:type",Number)],qg.prototype,"initialCount",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],qg.prototype,"autoFill",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Z("design:type",Boolean)],qg.prototype,"hasSortFilter",void 0);_.r([_.E({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Z("design:type",Boolean)],qg.prototype,"hideBottomSeparator",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Z("design:type",Boolean)],qg.prototype,"shouldScrollInPanel",void 0);
_.r([_.E(),_.Z("design:type",Object)],qg.prototype,"isSearch",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qg.prototype,"isConstrainedList",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],qg.prototype,"responsiveSizing",void 0);_.r([_.E(),_.Z("design:type",Object)],qg.prototype,"hasChipsBar",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],qg.prototype,"pageSubtype",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qg.prototype,"engagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qg.prototype,"liveChatEngagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qg.prototype,"inReplyPanel",void 0);_.r([_.Yp("#action-button"),_.Z("design:type",HTMLElement)],qg.prototype,"actionButton",void 0);_.r([_.E(),_.Z("design:type",Object)],qg.prototype,"scrollUpButtonData",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qg.prototype,"engagementPanelDropdown",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qg.prototype,"engagementPanelDialog",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qg.prototype,"isClipList",null);_.r([_.Yp("#contents"),_.Z("design:type",HTMLElement)],qg.prototype,"monitorScrollElement",void 0);_.r([_.Yp("#contents"),_.Z("design:type",HTMLElement)],qg.prototype,"contents",void 0);
_.r([_.R_("scroll"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qg.prototype,"onScroll",null);qg=_.r([_.A({is:"ytd-section-list-renderer",disableElementRegistration:!0})],qg);
var qaJ=_.nJ()(qg,"ytd-section-list-renderer",function(){if(YFJ===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);YFJ=B}B=YFJ;return B},{mode:1});var caR;var Aa5;var im4;var s2o;var ca=function(){return _.c.apply(this,arguments)||this};
_.l(ca,_.c);ca.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
ca.prototype.onLikeButtonClick=function(B){B.stopPropagation();B.preventDefault()};
_.mh.Object.defineProperties(ca.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)!=null&&B.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)})}}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ca.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],ca.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ca.prototype,"ytRendererStamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ca.prototype,"data",void 0);
_.r([_.E({selectorArgs:["data.likeStatusEntityKey"],selector:Tj}),_.Z("design:type",Object)],ca.prototype,"likeStatusEntity",void 0);_.r([_.K("data","likeStatusEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ca.prototype,"likeButtonRenderer",null);ca=_.r([_.A({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],ca);
_.F(ca,"ytd-slim-metadata-toggle-button-renderer",function(){if(s2o!==void 0)return s2o;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return s2o=B},{mode:1});var Ab=function(){var B=_.c.apply(this,arguments)||this;B.minimizePipBreakages=_.k("web_pip_minimize_breakages");B.showEqualizer=_.k("web_enable_playlist_video_lockup_equalizer");B.watchColorUpdate=_.k("kevlar_watch_color_update");B.actionMap={};return B};
_.l(Ab,_.c);_.p=Ab.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(B){return B&&B.menu?"editable":""};
_.p.computeSelected=function(B){return!(B==null||!B.selected)};
_.p.computeUseColorPalette=function(B){return!!((B==null?0:B.lightColorPalette)&&(B==null?0:B.darkColorPalette))};
_.p.computeLargerPlaylistThumbs=function(B,R){return _.k("web_enable_playlist_bigger_thumbnails")&&!R};
_.p.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.p.onYtServiceRequestSent=function(B,R){R.endpoint&&this.isHideEnclosingAction(R.endpoint)&&!this.selected&&y5R(_.cC(),this.data.videoId)};
_.p.isHideEnclosingAction=function(B){var R=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",B);B=this.get("likeEndpoint.status",B)==="INDIFFERENT";return R||B};
_.p.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.p.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.mh.Object.defineProperties(Ab.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.k("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 B;return!!(this.withinMiniplayer&&((B=this.data)==null?0:B.actionButtons))}}});
Ab.prototype.onYtServiceRequestSent=Ab.prototype.onYtServiceRequestSent;Ab.prototype.canReorderChanged=Ab.prototype.canReorderChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ab.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.Qi),_.Z("design:type",Object)],Ab.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ab.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ab.prototype,"withinMiniplayer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ab.prototype,"minimizePipBreakages",void 0);_.r([_.E({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ab.prototype,"selected",void 0);
_.r([_.E({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ab.prototype,"useColorPalette",void 0);_.r([_.E({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ab.prototype,"largerPlaylistThumbs",void 0);_.r([_.E(),_.Z("design:type",Object)],Ab.prototype,"showEqualizer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ab.prototype,"canReorder",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ab.prototype,"touchPersistentDragHandle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ab.prototype,"handleIsHovered",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ab.prototype,"watchColorUpdate",void 0);_.r([_.E(),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ab.prototype,"reorderIcon",null);
_.r([_.K("largerPlaylistThumbs"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Ab.prototype,"thumbnailWidth",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ab.prototype,"showActionButtons",null);_.r([_.bp("canReorder"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ab.prototype,"canReorderChanged",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],Ab.prototype,"onYtServiceRequestSent",null);Ab=_.r([_.A({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Ab);
_.F(Ab,"ytd-playlist-panel-video-renderer",function(){if(im4!==void 0)return im4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return im4=B},{mode:2});var iq=function(){return _.c.apply(this,arguments)||this};
_.l(iq,_.c);iq.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],iq.prototype,"data",void 0);iq=_.r([_.A({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],iq);
_.F(iq,"ytd-playlist-panel-supported-items",function(){if(Aa5!==void 0)return Aa5;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Aa5=
B},{mode:1});QG2=!0;OD_("\\P{N}");var ZGd;var FTR=_.Wz("END_OF_PLAYLIST",void 0,"End of playlist"),raJ=_.Wz("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),sl=function(){var B=_.c.apply(this,arguments)||this;B.minimizePipBreakages=_.k("web_pip_minimize_breakages");B.updatedCoursePanel=_.k("move_three_dot_menu_to_playlist_panel_header_for_courses");B.reducedPlaylistHeight=_.k("web_playlist_mini_playlist_height");B.hideHeaderText=!1;B.useColorPalette=!1;B.collapsed=!1;B.collapsedPreServerOverride="not_tracked";
B.isHovered=!1;B.modernPanels=_.k("kevlar_watch_modern_panels");B.expandLabel=_.Wz("MINIPLAYER_EXPAND_LABEL");B.collapseLabel=_.Wz("MINIPLAYER_COLLAPSE_LABEL");B.isFloating=!1;B.metaPanel=!1;B.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};B.currentIndex=void 0;return B};
_.l(sl,_.c);_.p=sl.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 _.o7(this.onThrottledScroll,1E3,this)};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
_.p.computeOverflowMenuData=function(B){return B&&B.menu?B.menu:null};
_.p.computeCollapsible=function(B){return!B};
_.p.computeHasPlaylistButtons=function(B){return!(!B||!B.playlistButtons)};
_.p.computeHasSeparateSaveButton=function(B){return!(!B||!B.saveButton)};
_.p.computeHasToolbarButton=function(B,R){return!(!B||!(R||B.saveButton||B.menu))};
_.p.computePlaylistType=function(B){if(B&&B.playlistId)return B.playlistId.substring(0,4)};
_.p.computeCanReorder=function(B){return B?B.playlistId&&B.playlistId.startsWith("TLPQ")?!0:!!B.isEditable&&!B.isInfinite:!1};
_.p.attached=function(){var B=this;try{_.Oz().resolve(_.Ky).setPlaylistComponent(this.hostElement)}catch(R){if(_.k("kevlar_park_on_playlist_token_killswitch"))throw R;_.Ep().parkOrScheduleJob(function(){_.Oz().resolve(_.Ky).setPlaylistComponent(B.hostElement)},2,"ci")}_.np(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.p.detached=function(){_.us(this.hostElement)};
_.p.computeTrailingIcon=function(B,R,V){return V?R?"yt-icons:collapse":"yt-icons:close":R?"yt-icons:expand":_.k("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.p.computeIndexMessage=function(B,R){return C1d(B+1)+" / "+C1d(R)};
_.p.onRenderStamperFinished=function(){if(this.scrollForStampDom){var B=!0;this.isHovered&&(B=!1);if(this.collapsed||this.hidden)B=!1;B&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.p.collapseChanged=function(){var B=this;this.collapsed||(_.db(this.ytTaskEmitterBehavior.getTaskManager(),function(){B.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.p.hiddenChanged=function(){var B=this;this.hidden||_.db(this.ytTaskEmitterBehavior.getTaskManager(),function(){B.scrollToCurrentVideo()})};
_.p.setupReordering=function(){var B=_.w(this.hostElement).querySelector("#items");c74?_.zBR(this.ytReorderableBehavior,B,B,"playlist-drag-handle"):_.zBR(this.ytReorderableBehavior,B,B)};
_.p.scrollToCurrentVideo=function(){var B=this;_.dV.addJob(function(){var R=_.w(B.hostElement).querySelector("#items");if(R){R.style.setProperty("padding-bottom","");var V=_.w(B.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(V){R=V.parentElement||_.l9(document);var e=R||_.l9(document);var X=_.wk(V),Y=_.wk(e),t=_.l74(e);if(e==_.l9(document)){var b=X.x-e.scrollLeft;X=X.y-e.scrollTop}else b=X.x-Y.x-t.left,X=X.y-Y.y-t.top;V=M2b(V);Y=e.clientHeight-
V.height;t=e.scrollLeft;var J=e.scrollTop;t+=b-(e.clientWidth-V.width)/2;e=new _.fx(t,J+(X-Y/2));R.scrollLeft=e.x;R.scrollTop=e.y}}},8)};
_.p.dataChanged=function(){var B=this;_.lWR(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.gB(this,function(){_.kD(B.ytTaskEmitterBehavior.getTaskManager(),function(){B.ytRendererBehavior.markDirty();B.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.p.updateNowPlayingOverlay=function(){_.k("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.p.onPlaylistLockupNowPlaying=function(B,R){R&&(this.activeNowPlayingRenderer=R);this.updateNowPlayingOverlay()};
_.p.onScroll=function(){this.scrollThrottle.fire()};
_.p.onThrottledScroll=function(){var B=this;_.kD(this.ytTaskEmitterBehavior.getTaskManager(),function(){B.ytRendererBehavior.markDirty()})};
_.p.onToggleExpanded=function(B){this.collapsible&&_.ii(B).tagName!=="A"&&!_.g1(_.Az(B),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.p.setCollapsed=function(B){this.collapsible&&(this.collapsed=B,_.Bz(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.p.handleCollapsedFromData=function(B){if(B){var R=B.playlistPanelCollapseState;R==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||R==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),R=R==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==R&&this.setCollapsed(R)):this.currentPlaylistId!==B.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(R=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==R&&this.setCollapsed(R),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=B.playlistId}};
_.p.handleDrop=function(B){var R=B.currDragItem;B=R.data.playlistSetVideoId;var V=_.rx(R.parentNode.childNodes,R),e=void 0;V>0&&(e=R.parentNode.childNodes[V-1].data.playlistSetVideoId);R=_.cC();if(R.responsePlaylistData&&R.responsePlaylistData.contents){var X=tSd(B,R.responsePlaylistData);R.responsePlaylistData=(0,_.M_.unsafeClone)(R.responsePlaylistData);fKY(R.responsePlaylistData.contents,X,V);R.queueProxy?m3o(R.queueProxy,X,V,B,e):R.playlistProxy&&m3o(R.playlistProxy,X,V,B,e);_.Ay(R,_.iR(R,R.response?
R.response.autoplayRenderer:void 0))}};
_.p.handleDarkModeChange=function(B){B!==this.isDarkTheme&&(this.isDarkTheme=B)};
_.p.colorPaletteChanged=function(){var B,R=((B=this.data)==null?void 0:B.contents)||[],V;B=_.h(R);for(R=B.next();!R.done;R=B.next()){R=R.value;var e=void 0;if((e=R.playlistPanelVideoRenderer)==null?0:e.selected){B=R.playlistPanelVideoRenderer;e=R=void 0;(V=this.isDarkTheme?(R=B)==null?void 0:R.darkColorPalette:(e=B)==null?void 0:e.lightColorPalette)&&_.lP(this.hostElement,V);break}}this.useColorPalette=!!V};
_.mh.Object.defineProperties(sl.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null||!B.playlistId)&&!((R=this.data)==null||!R.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var B=_.Oz().resolve(_.uj(_.Ky)),R;if(((R=this.data)==null?0:R.contents)&&(B==null?0:B.hasAutoplayData())){var V;if(((V=this.playlistLoopStateEntity)==null?void 0:V.state)==="PLAYLIST_LOOP_STATE_ONE"){if(B=this.data.currentIndex,B!==void 0){var e,X;var Y=(e=this.data.contents[B])==null?void 0:(X=e.playlistPanelVideoRenderer)==null?void 0:X.title}}else{var t,b=(t=_.D(B.getAutoplayEndpoint(),_.sI))==null?void 0:t.videoId,J,G;Y=(J=this.data.contents.find(function(y){var S;
return((S=y.playlistPanelVideoRenderer)==null?void 0:S.videoId)===b}))==null?void 0:(G=J.playlistPanelVideoRenderer)==null?void 0:G.title}return Y}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)!=null&&B.nextVideoLabel?this.nextVideoTitle?_.FF(this.data.nextVideoLabel)+":":FTR:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var B;if(((B=this.data)==null?0:B.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.s$(raJ);var R;return(R=this.data)==null?void 0:R.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e=(B=this.data)==null?void 0:(R=B.playlistButtons)==null?void 0:(V=R.menuRenderer)==null?void 0:V.topLevelButtons;if(e)for(B=_.h(e),R=B.next();!R.done;R=B.next())if(R=R.value,R.playlistLoopButtonRenderer)return R.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var B;return!!(this.collapsed&&((B=this.data)==null?0:B.nextVideoLabel))}}});
sl.prototype.colorPaletteChanged=sl.prototype.colorPaletteChanged;sl.prototype.onPlaylistLockupNowPlaying=sl.prototype.onPlaylistLockupNowPlaying;sl.prototype.updateNowPlayingOverlay=sl.prototype.updateNowPlayingOverlay;sl.prototype.dataChanged=sl.prototype.dataChanged;sl.prototype.hiddenChanged=sl.prototype.hiddenChanged;sl.prototype.collapseChanged=sl.prototype.collapseChanged;sl.prototype.onRenderStamperFinished=sl.prototype.onRenderStamperFinished;sl.prototype.onMouseLeave=sl.prototype.onMouseLeave;
sl.prototype.onMouseEnter=sl.prototype.onMouseEnter;_.r([_.v(_.LC),_.Z("design:type",Object)],sl.prototype,"ironResizableBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(DOT.YtPlaylistPanelBehavior),_.Z("design:type",Object)],sl.prototype,"ytPlaylistPanelBehavior",void 0);
_.r([_.v(_.Fk.YtTaskEmitterBehavior),_.Z("design:type",Object)],sl.prototype,"ytTaskEmitterBehavior",void 0);_.r([_.v(_.aW4),_.Z("design:type",Object)],sl.prototype,"ytReorderableBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],sl.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],sl.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],sl.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],sl.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],sl.prototype,"autoplayData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],sl.prototype,"withinMiniplayer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sl.prototype,"minimizePipBreakages",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sl.prototype,"updatedCoursePanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sl.prototype,"reducedPlaylistHeight",void 0);_.r([_.E({computed:"setMenuData_(data)"}),_.Z("design:type",Object)],sl.prototype,"menuRendererData",void 0);_.r([_.E({computed:"computeOverflowMenuData(data)"}),_.Z("design:type",Object)],sl.prototype,"overflowMenuDataTopRow",void 0);_.r([_.E({computed:"computeOverflowMenuData(data)"}),_.Z("design:type",Object)],sl.prototype,"overflowMenuData",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sl.prototype,"hideHeaderText",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sl.prototype,"useColorPalette",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Z("design:type",Boolean)],sl.prototype,"collapsible",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sl.prototype,"collapsed",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],sl.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Z("design:type",Boolean)],sl.prototype,"hasPlaylistButtons",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Z("design:type",Boolean)],sl.prototype,"hasSeparateSaveButton",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Z("design:type",Boolean)],sl.prototype,"hasToolbar",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Z("design:type",String)],sl.prototype,"playlistType",void 0);_.r([_.E(),_.Z("design:type",Object)],sl.prototype,"isHovered",void 0);_.r([_.E({selectorArgs:["playlistLoopStateEntityKey"],selector:_.iNo}),_.Z("design:type",Object)],sl.prototype,"playlistLoopStateEntity",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sl.prototype,"modernPanels",void 0);_.r([_.E({value:56}),_.Z("design:type",Number)],sl.prototype,"scrollMargin",void 0);_.r([_.E({computed:"computeCanReorder(data)"}),_.Z("design:type",Boolean)],sl.prototype,"canReorder",void 0);_.r([_.E(),_.Z("design:type",Object)],sl.prototype,"expandLabel",void 0);_.r([_.E(),_.Z("design:type",Object)],sl.prototype,"collapseLabel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sl.prototype,"isFloating",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sl.prototype,"metaPanel",void 0);_.r([_.E({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Z("design:type",String)],sl.prototype,"trailingIcon",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],sl.prototype,"isDarkTheme",void 0);
_.r([_.E({selector:_.d6}),_.Z("design:type",Boolean)],sl.prototype,"miniplayerIsActive",void 0);_.r([_.E({selector:function(B){return B.watch.playerState}}),
_.Z("design:type",Number)],sl.prototype,"playerState",void 0);_.r([_.E(),_.Z("design:type",Object)],sl.prototype,"activeNowPlayingRenderer",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],sl.prototype,"moveThreeDotMenuToTopRow",null);_.r([_.K("data","autoplayData","playlistLoopStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sl.prototype,"nextVideoTitle",null);
_.r([_.K("data","nextVideoTitle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],sl.prototype,"nextVideoLabel",null);_.r([_.K("collapsed"),_.Z("design:type",String),_.Z("design:paramtypes",[])],sl.prototype,"buttonAriaLabel",null);_.r([_.K("data","playlistId","longBylineText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sl.prototype,"mixLongByLine",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sl.prototype,"playlistLoopStateEntityKey",null);
_.r([_.R_("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sl.prototype,"onMouseEnter",null);_.r([_.R_("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sl.prototype,"onMouseLeave",null);_.r([_.E({reflectToAttribute:!0}),_.K("data","collapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],sl.prototype,"showNextVideoHeader",null);
_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sl.prototype,"onRenderStamperFinished",null);_.r([_.XX("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sl.prototype,"collapseChanged",null);_.r([_.XX("hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sl.prototype,"hiddenChanged",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sl.prototype,"dataChanged",null);_.r([_.XX("playerState","miniplayerIsActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sl.prototype,"updateNowPlayingOverlay",null);_.r([_.R_("yt-playlist-lockup-now-playing-active"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],sl.prototype,"onPlaylistLockupNowPlaying",null);
_.r([_.XX("data","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sl.prototype,"colorPaletteChanged",null);sl=_.r([_.A({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],sl);
_.gY2=_.nJ()(sl,"ytd-playlist-panel-renderer",function(){if(caR===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);caR=B}B=caR;return B},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var Zma;var FS=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("web_button_rework");return B};
_.l(FS,_.c);FS.prototype.computeShouldButtonBeVertical=function(B,R){return B||R};
FS.prototype.onYtServiceRequestSent=function(B,R){(B=_.D(R.endpoint,_.$1))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.SX("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:B.status})):this.handleLikeEndpoint(B))};
FS.prototype.computelikeStatusEntityKey=function(B){return B==null?void 0:B.likeStatusEntityKey};
FS.prototype.handleLikeEndpoint=function(B){B.status==="LIKE"?this.JSC$14805_ytdDislikeToggleButtonRenderer.toggle(!1):B.status==="DISLIKE"?this.JSC$14805_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14805_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14805_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.mh.Object.defineProperties(FS.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var B;return OGo(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(B=this.likeStatusEntity)==null?void 0:B.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var B;if(this.data&&((B=this.data)==null||!B.hideDislikeButton)){var R;return OGo(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(R=this.likeStatusEntity)==null?void 0:R.likeStatus)}}}});
FS.prototype.onYtServiceRequestSent=FS.prototype.onYtServiceRequestSent;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],FS.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],FS.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FS.prototype,"vertical",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],FS.prototype,"textTransform",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FS.prototype,"useShortsIcon",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FS.prototype,"underIconLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],FS.prototype,"modern",void 0);_.r([_.E({value:"left"}),_.Z("design:type",String)],FS.prototype,"buttonTooltipPosition",void 0);
_.r([_.E(),_.Z("design:type",Object)],FS.prototype,"overrides",void 0);_.r([_.Yp("#like-button"),_.Z("design:type",Object)],FS.prototype,"JSC$14805_ytdLikeToggleButtonRenderer",void 0);_.r([_.Yp("#dislike-button"),_.Z("design:type",Object)],FS.prototype,"JSC$14805_ytdDislikeToggleButtonRenderer",void 0);_.r([_.K("data","likeStatusEntity.likeStatus"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],FS.prototype,"likeButton",null);
_.r([_.K("data","likeStatusEntity.likeStatus"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],FS.prototype,"dislikeButton",null);_.r([_.E({computed:"computelikeStatusEntityKey(data)"}),_.Z("design:type",String)],FS.prototype,"likeStatusEntityKey",void 0);_.r([_.E({selectorArgs:["likeStatusEntityKey"],selector:Tj}),_.Z("design:type",Object)],FS.prototype,"likeStatusEntity",void 0);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],FS.prototype,"onYtServiceRequestSent",null);FS=_.r([_.A({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],FS);
var mAb=_.nJ()(FS,"ytd-like-button-renderer",function(){if(Zma===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);Zma=B}B=Zma;return B},{mode:1});_.$AR={};
_.$AR.YtConditionalRendererBehavior=[_.O.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(B,R){var V=this,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:if(!R)return V.hidden=!0,V.showSpinner=!1,Y.return();if((e=B)==null?0:(X=e.visibilityCondition)==null?0:X.mode)switch(B.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return Y.jumpTo(5);default:return Y.jumpTo(6)}V.showSpinner=
!1;V.hidden=!0;return _.U(Y,V.shouldShow_(B),4);case 4:V.hidden=!Y.yieldResult;Y.jumpTo(0);break;case 5:return _.U(Y,V.shouldShow_(B),8);case 8:V.showSpinner=Y.yieldResult;V.hidden=!1;Y.jumpTo(0);break;case 6:return V.showSpinner=!1,_.U(Y,V.shouldShow_(B),9);case 9:V.hidden=!Y.yieldResult,_.b3(Y)}})},
shouldShow_:function(B){return B&&B.supportedDatas&&B.supportedDatas.rendererVisibilityConditionData&&B.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(B.supportedDatas.rendererVisibilityConditionData.showIf):B&&B.visibilityCondition&&B.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(B.visibilityCondition.showIf):B&&B.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(B.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(B){switch(B){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(B){switch(B){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var B=_.oF(this.hostElement,"yt-get-mdx-status");return B.length==1&&B[0].connected},
isLocationPermissionGranted_:function(){var B;return _.W(function(R){return R.nextAddress==1?navigator.permissions?_.U(R,navigator.permissions.query({name:"geolocation"}),3):R.jumpTo(2):R.nextAddress!=2?(B=R.yieldResult,R.return(Promise.resolve(B.state==="granted"))):R.return(Promise.resolve(!1))})}}];var CbR=function(B,R){R=R===void 0?{}:R;return function(V){var e=document.createElement(B),X;var Y=(X=e.polymerController)!=null?X:e;eD_(e,Y,V,R);return e}}("yt-icon");var PbJ=function(B){var R=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Okq();_.mk("ytglobal.ytUtilActivityCallback_",function(){_.Bz(B,"yt-user-activity")});
new O7(function(){return R.JSC$14817_onMouseMove});
document.addEventListener("scroll",function(){return R.onScroll});
window.addEventListener("resize",function(){return R.onResize})},nY4=function(B,R,V){R in B.eventJobIds||(V=_.TT().addLowPriorityJob(function(){_.oq();
delete B.eventJobIds[R]},V),B.eventJobIds[R]=V)};
PbJ.prototype.onScroll=function(B){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):B.target===document&&nY4(this,"scroll",200)};
PbJ.prototype.onResize=function(){nY4(this,"resize",200)};
PbJ.prototype.JSC$14817_onMouseMove=function(){nY4(this,"mousemove",100)};
_.ZF=function(B){B.scrollEventsToIgnore+=1;B.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){B.scrollEventsToIgnore--},500))};var ugl=function(B){this.element=B;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
ugl.prototype.showFeedbackDialog=function(B,R,V,e){var X=Om5();if(!X)return!1;var Y=bBo();Y.productId=X;R&&(Y.flow="submit",Y.report={description:R});V&&(Om5()==="59"?Y.callback=_.Qh(function(){_.dn("userFeedbackEvent",{});V()}):Y.callback=_.Qh(V));
Y.bucket=e||_.vE("GOOGLE_FEEDBACK_BUCKET","Other");owv(Y);B=BCS(this,"GFEEDBACK",B);try{_.Wg5(Y,B)}catch(t){return _.IP(t),!1}return!0};
ugl.prototype.showHelpDialog=function(B,R,V){var e=this,X=Om5();if(!X)return!1;var Y={helpCenterPath:"/youtube",productData:BCS(this,"GUIDED_HELP",V)};owv(Y);var t=bBo();t.context=B||Y.productData.context||"default";t.defaultHelpArticleId=R;t.enableSendFeedback=!0;(_.qN("gapi.load")||function(b,J){return J()})("client",function(){try{var b=nlS(X,Y);
if(_.k("web_always_load_chat_support")&&!e.chatSupportLoaded)try{b.JSC$7882_loadChatSupport(t),e.chatSupportLoaded=!0}catch(J){}b.startHelp(t)}catch(J){_.IP(J)}})};
var Om5=function(){var B=_.vE("GOOGLE_FEEDBACK_PRODUCT_ID");B||_.IP(Error("ci"));return B},owv=function(B){B&&(B.locale=_.k("kevlar_help_use_locale")?_.vE("INNERTUBE_CONTEXT_HL","en"):_.vE("HTML_LANG","en"))},BCS=function(B,R,V){var e=B.productData;
delete e.origin;e.device=_.G_();var X;a:{if(X=document.createElement("canvas")){var Y=X.getContext("experimental-webgl",{stencil:!0});if(Y){var t=Y.getExtension("WEBGL_debug_renderer_info");if(t){X=Y.getParameter(t.UNMASKED_RENDERER_WEBGL);break a}}if(Y=X.getContext("webgl")){X=Y.getParameter(Y.RENDERER);break a}}X=null}e.gpu=X;e.isSDC=!!_.vE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(X=_.vE("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.M_.extend(e,X);_.t35(R,e);_.Wrp(e);(B=_.Bz(B.element,"yt-get-autonav-pause-debug-state"))&&
B.length&&(e.autonav_pause_state=B[0]);B=_.hF();e.browser_resolution=B.width+"\u00d7"+B.height+"@"+(window.devicePixelRatio||1)+"x";V&&_.M_.extend(e,V);return e};
ugl.prototype.resetProductData=function(){this.productData={}};var RjJ=function(B){this.feedbackManager=new ugl(B)};
RjJ.prototype.showFeedbackDialog=function(B,R,V,e){return this.feedbackManager.showFeedbackDialog(B,R,V,e)};
RjJ.prototype.showHelpDialog=function(B,R,V){return this.feedbackManager.showHelpDialog(B,R,V)};var Vs4=function(){this.baseUrl="";this.aTag=document.createElement("a")},K94=function(B,R,V){V=V===void 0?{}:V;
V.pbj||(V.pbj=1);V=_.q5K(R,V);B.baseUrl&&V&&!_.Zk(V)[1]&&!_.mn(V)&&(R=B.baseUrl,tA(R,"/")&&(R=R.slice(0,-1)),_.pZ(V,"/")&&(V=V.slice(1)),V=R+"/"+V);f$(B.aTag,NV(V||""));return B.aTag.href};
Vs4.prototype.fetchData=function(B){return _.V3u(B)};
Vs4.prototype.postData=function(B,R){var V={method:"POST"};if(R){for(var e=_.h(Object.keys(R)),X=e.next();!X.done;X=e.next()){X=X.value;var Y=R[X];_.Xa(Y)&&(R[X]=JSON.stringify(Y))}V.postParams=R}return _.V3u(B,V)};
_.Iyo=function(B,R,V,e,X){B=K94(B,R,V);if(!B)throw e=Error("di"),Object.assign(e,{params:R}),e;return _.V3u(B,X,e)};
Vs4.prototype.requestDataForServiceEndpoint=function(B,R){if(_.D(B,_.L1_))return this.fetchData("/getAccountSwitcherEndpoint");R=R||{};var V=_.D(B,Mol);V?R.se=V.base64EncodedServiceEndpoint:R.sej=JSON.stringify(B);(V=_.TE())&&_.k("enable_service_ajax_csn")&&(R.csn=V);R.theme=_.Lk();_.D(B,ThA)&&_.vE("DELEGATION_CONTEXT")&&(R.delegation_context=JSON.stringify(_.vE("DELEGATION_CONTEXT")));V=null;for(var e in B)if(tA(e,"Endpoint")||tA(e,"Command")){V=e;break}if(!V){var X=Error("ei");Object.assign(X,{params:B});
_.I9d(X,"WARNING");return new _.be(function(t,b){b(X)})}e={name:V};
var Y;(V=(Y=_.D(B,_.hE))==null?void 0:Y.signal)&&(e.signal=V);(Y=_.FW(window.location.href))&&Y.internalcountrycode&&(e.internalcountrycode=Y.internalcountrycode);Y="/service_ajax";_.k("debug_forward_web_query_parameters")&&(Y=_.ZnY(Y,window.location.search));Y=_.gg(Y,e);B.clickTrackingParams&&_.Zg(Y,{itct:B.clickTrackingParams});return this.postData(Y,R)};_.ejo=new _.u0("GFEEDBACK_TOKEN");var Xj_;var pj2;var Ykb;var hjR;var rQ=function(){var B=_.c.apply(this,arguments)||this;B.compact=!1;return B};
_.l(rQ,_.c);rQ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
rQ.prototype.computeHasIcon_=function(B){return!!B};
rQ.prototype.isSignInIcon_=function(B){return B=="yt-icons:prompted_sign_in"};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$AR.YtConditionalRendererBehavior),_.Z("design:type",Object)],rQ.prototype,"ytConditionalRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],rQ.prototype,"data",void 0);
_.r([_.E({computed:"computeIcon_(data.icon)"}),_.Z("design:type",Object)],rQ.prototype,"icon_",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Z("design:type",Boolean)],rQ.prototype,"hasIcon_",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Z("design:type",Boolean)],rQ.prototype,"signInIcon_",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],rQ.prototype,"compact",void 0);
rQ=_.r([_.fJ({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],rQ);
_.F(rQ,"yt-player-error-message-renderer",function(){if(hjR===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Ykb===void 0&&(Ykb=document.createElement("template"));var e=Ykb;V.call(R,e.content.cloneNode(!0),B.content.firstChild);hjR=B}B=hjR;return B},{mode:2});var tsl;var WQS;var gQ=function(){return _.c.apply(this,arguments)||this};
_.l(gQ,_.c);gQ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gQ.prototype.computeIcon_=function(B){return B?"yt-icons:"+B.iconType.toLowerCase():"error_outline"};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],gQ.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.Z("design:type",Object)],gQ.prototype,"icon_",void 0);gQ=_.r([_.fJ({is:"yt-player-kav-renderer",disableElementRegistration:!0})],gQ);
_.F(gQ,"yt-player-kav-renderer",function(){if(WQS===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;tsl===void 0&&(tsl=document.createElement("template"));var e=tsl;V.call(R,e.content.cloneNode(!0),B.content.firstChild);WQS=B}B=WQS;return B},{mode:2});_.mR(_.sx(function(B){var R=_.Zh(),V=_.h(_.WU(0,void 0,"gCmSbf")),e=V.next().value,X=V.next().value;V=_.h(_.WU(null,void 0,"Rj9zMe"));var Y=V.next().value,t=V.next().value;_.zM(function(){Uzo(R.value,X,t);R.value.scrollIntoView()});
V=N55.bind(null,B.data,e);nE("resize",function(){var b=Y();if(e()===1&&b!==null){var J;(J=window.grecaptcha)==null||J.reset(b)}});
return _.N("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.N("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.N("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var b,J;return(b=B.data().accessibility)==null?void 0:(J=b.accessibilityData)==null?void 0:J.label}),_.N(_.Hr,{text:V,
className:_.XE("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.N("div",{el:R,class:"ytwPlayerCaptchaViewModelGridItem"})))},"be"),"yt-player-captcha-view-model",{props:{data:_.Z9}});var GhY=!1;_.bzR=_.sx(function(B){var R=B.data;return _.N("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.N(_.H,{cond:function(){return R().icon},
then:function(V){return _.N("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.N(_.ia,{data:V,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.N(_.H,{cond:function(){return R().title},
then:function(V){return _.N("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.N(_.Hr,{text:V}))}}),_.N(_.H,{cond:function(){return R().description},
then:function(V){return _.N("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.N(_.Hr,{text:V}))}}),_.N(_.wb,{data:function(){return R().primaryButton}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.N(_.wb,{data:function(){return R().secondaryButton}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ce");
_.bzR.idomCompat=!0;var Ji2=_.sx(function(B){var R=B.data;_.uH();return _.N("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.N("div",{class:"player-interstitial-renderer-wiz__scrim"},_.N(_.wb,{data:function(){return R().content}},{interstitialViewModel:_.bzR})))},"de");
Ji2.idomCompat=!0;_.mR(Ji2,"yt-player-interstitial-renderer",{props:{data:_.qq}});var Zy=function(){var B=_.c.apply(this,arguments)||this;B.noBackground=!1;B.compact=!1;B.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return B};
_.l(Zy,_.c);Zy.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"}}}};
Zy.prototype.onUpdatePlayerErrorMessageCommand_=function(B){if(_.D(B,E6h)){var R;if(B=(R=_.D(B,E6h))==null?void 0:R.newPlayerErrorMessageRenderer)this.data=B}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Zy.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Zy.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Zy.prototype,"status",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Zy.prototype,"noBackground",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Zy.prototype,"compact",void 0);Zy=_.r([_.fJ({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Zy);
var jga=_.nJ()(Zy,"yt-playability-error-supported-renderers",function(){if(pj2===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Xj_===void 0&&(Xj_=document.createElement("template"));var e=Xj_;V.call(R,e.content.cloneNode(!0),B.content.firstChild);pj2=B}B=pj2;return B},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var yYK=void 0,HBS=void 0;var DzK=new Elh;var Jn=new _.u0("ENTITY_STATE_TOKEN"),m9=new _.u0("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var UHl=function(B){this.store=B;this.ph0=new _.cF2},dvY=function(B,R,V){var e,X;
if(!(X=((e=R.playabilityStatus)==null?void 0:e.status)!=="OK")){B=B.store;var Y;X=R.offlineState&&((Y=R.videoDetails)==null?0:Y.videoId)?_.k("enable_pl_r_c_cd")?tod(B.getState().entities,R.videoDetails.videoId):!!jiq(B.getState().entities,R.videoDetails.videoId):!1}if(X)return!0;X=dzA(R);if(X===1){if(_.k("ab_v_vid_sig")){var t,b=(t=R.videoDetails)==null?void 0:t.videoId;if(!b||!V||b!==V){var J;R=new _.H8("282054944_vid",{gUE:V,baY:(J=R.videoDetails)==null?void 0:J.videoId});_.Tn(R)}}return!0}gZx=
0;var G,y;J=(b=R.auxiliaryUi)==null?void 0:(G=b.messageRenderers)==null?void 0:(y=G.bkaEnforcementMessageViewModel)==null?void 0:y.displayType;if(X!==3&&(J==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||J==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;J={reason:_.n0(_.Wz("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.k("ks_something_wrong_learn_more")?cVx("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.n0(_.Wz("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:_.n0("282054944")};NCR(R,{playerErrorMessageRenderer:J});return!1},wQx=function(B,R){if(YHY(R)){_.tz(1,!0);
var V=(V=YHY(R))&&_.SK5()?V:void 0;V?(NCR(R,{enforcementMessageViewModel:V}),B.ph0.increment("IN_PLAYER"),_.tz(5)):(B.ph0.increment("SKIP_DISPLAY"),_.tz(2))}},NCR=function(B,R){B.playabilityStatus=Object.assign({},B.playabilityStatus,{status:"ERROR",
errorScreen:R});B.videoDetails=void 0};
UHl.prototype.handleResponse=function(B,R){if(B.playabilityStatus){var V,e,X,Y=(R==null?void 0:(V=R.innerTubeRequest)==null?void 0:V.videoId)||(R==null?void 0:(e=R.innerTubeRequest)==null?void 0:(X=e.playerRequest)==null?void 0:X.videoId);dvY(this,B,Y)&&wQx(this,B)}};
UHl[na]=[Jn];var zmx=new _.u0("ADBLOCK_DETECTION_SERVICE_TOKEN");var RH=function(B){this.oFJ=B};
RH.prototype.bindInnertubeChallengeFetcher=function(B){this.oFJ.bicf(B)};
RH.prototype.registerChallengeFetchedCallback=function(B){this.oFJ.bcr(B)};
RH.prototype.getLatestChallengeResponse=function(){return this.oFJ.blc()};var Hzh;_.$e=function(B,R,V){var e=this;this.network=B;this.options=R;this.networkStatusManager=V;this.tw=null;if(R.useBotguardEverywhere){var X=new _.Xs;this.tw=X.promise;_.R5.ytAtRC&&_.kx(_.dV,function(){var Y,t;return _.W(function(b){if(b.nextAddress==1){if(!_.R5.ytAtRC)return b.return();Y=GVT(null);return _.U(b,e.uz(Y),2)}t=b.yieldResult;_.R5.ytAtRC&&_.R5.ytAtRC(JSON.stringify(t));_.b3(b)})});
vsu().then(function(Y){var t,b,J,G;return _.W(function(y){if(y.nextAddress==1)return Y.bindInnertubeChallengeFetcher(function(S){return e.uz(GVT(S))}),_.U(y,Lq5(),2);
t=y.yieldResult;b=Y.getLatestChallengeResponse();J=b.challenge;if(!J)throw Error("fi");G={challenge:J,kr:BS(J),t3:t,bgChallenge:new Oy};X.resolve(G);Y.registerChallengeFetchedCallback(function(S){S=S.challenge;if(!S)throw Error("gi");S={challenge:S,kr:BS(S),t3:t,bgChallenge:new Oy};e.tw=Promise.resolve(S)});
_.b3(y)})})}else R.preload&&yiR(this,new Promise(function(Y){_.kD(_.dV,function(){Y(SkR(e))},0)}))};
Hzh=function(B){var R={preload:!0,useBotguardEverywhere:_.k("attmusi")},V=!1;if(typeof R==="boolean")var e={preload:R};else typeof R==="undefined"?e={preload:!0}:(e=R,V=!!R.mjU);R=V?void 0:new _.A$;_.$e.instance=new _.$e(B,e,R);return _.$e.instance};
_.$e.prototype.rDU=function(){var B=this;return _.W(function(R){return R.nextAddress==1?_.U(R,Promise.race([B.tw,null]),2):R.return(!!R.yieldResult)})};
_.$e.prototype.nwj=function(B,R,V){var e=this,X,Y,t;return _.W(function(b){e.tw===null&&yiR(e,SkR(e));X=!1;Y={};t=function(){var J,G,y;return _.W(function(S){switch(S.nextAddress){case 1:return _.U(S,e.tw,2);case 2:J=S.yieldResult;Y.challenge=J.challenge;if(!J.t3){"c1a"in J.kr&&(Y.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");S.jumpTo(3);break}G=Object.assign({},{c:J.challenge,e:B},R);_.en(S,4);X=!0;if(_.k("attbs")&&!_.k("attmusi")){y=_.Qbo(J.t3,{m6:G});S.jumpTo(6);break}return _.U(S,J.t3.snapshot({m6:G}),
7);case 7:y=S.yieldResult;case 6:y?Y.webResponse=y:Y.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.c8(S,3);break;case 4:_.WR(S),Y.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(B==="ENGAGEMENT_TYPE_PLAYBACK"){var M=J.kr,f={};if(M.c6a){var z=Number(_.vE("DCLKSTAT",0));f.reportingStatus=String(Number(M.c)^(isNaN(z)?0:z))}M.c6b&&(f.broadSpectrumDetectionResult=String(Number(M.c)^Number(_.vE("CATSTAT",0))));Y.adblockReporting=f}return S.return(Y)}})};
return b.return(Promise.race([t(),Ms4(V,function(){var J=Object.assign({},Y);X&&(J.error="ATTESTATION_ERROR_VM_TIMEOUT");return J})]))})};
var GVT=function(B){var R={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};B&&(R.interpreterHash=B);return R},SkR=function(B,R){R=R===void 0?0:R;
var V,e,X,Y,t,b,J,G,y,S,M,f;return _.W(function(z){switch(z.nextAddress){case 1:V=GVT(cq_().ogP);if(_.k("att_fet_ks"))return _.en(z,7),_.U(z,B.uz(V),9);_.en(z,4);return _.U(z,kVa(B,V),6);case 6:t=z.yieldResult;X=t.mo3;Y=t.tv3;e=t;_.c8(z,3);break;case 4:return _.WR(z),_.KE(Error("hi`"+R)),DHR(B,864E5),z.return({challenge:"",kr:{},t3:void 0,bgChallenge:void 0});case 9:e=z.yieldResult;if(!e)throw Error("ii");if(!e.challenge)throw Error("ji");X=e.challenge;Y=BS(X);if("c1a"in Y&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("ki");
_.c8(z,3);break;case 7:b=_.WR(z);_.KE(b);R++;if(R>=5)return _.KE(Error("hi`"+R)),DHR(B,864E5),z.return({challenge:"",kr:{},t3:void 0,bgChallenge:void 0});J=1E3*Math.pow(2,R-1)+Math.random()*1E3;return z.return(new Promise(function(T){_.kD(_.dV,function(){T(SkR(B,R))},J)}));
case 3:G=LrK(Y);DHR(B,G*1E3);y=void 0;if(!("c1a"in Y&&e.bgChallenge)){z.jumpTo(10);break}S=xzx(e.bgChallenge);_.en(z,11);return _.U(z,irJ(cq_(),S),13);case 13:_.c8(z,12);break;case 11:return M=_.WR(z),_.KE(M),z.return({challenge:X,kr:Y,t3:y,bgChallenge:S});case 12:return _.en(z,14),y=new _.LT({challenge:S,kK:{kq:"aGIf"}}),_.U(z,y.j3j,16);case 16:_.c8(z,10);break;case 14:f=_.WR(z),_.KE(f),y=void 0;case 10:return z.return({challenge:X,kr:Y,t3:y,bgChallenge:S})}})};
_.$e.prototype.uz=function(B){var R=this,V;return _.W(function(e){V=R.networkStatusManager;if(!V||V.isNetworkAvailable())return e.return(R.network.uz(B));_.di("att_pna",void 0,"attestation_challenge_fetch");return e.return(new Promise(function(X){V.listenOnce("publicytnetworkstatus-online",function(){R.network.uz(B).then(X)})}))})};
var fTR=function(B){if(!B)throw Error("ii");if(!B.challenge)throw Error("ji");var R=B.challenge,V=BS(R);if("c1a"in V&&(!B.bgChallenge||!B.bgChallenge.program))throw Error("ki");return Object.assign({},B,{mo3:R,tv3:V})},kVa=function(B,R){var V,e,X,Y,t;
return _.W(function(b){switch(b.nextAddress){case 1:V=void 0,e=0,X={};case 2:if(!(e<5)){b.jumpTo(4);break}if(!(e>0)){b.jumpTo(5);break}X.bNk=1E3*Math.pow(2,e-1)+Math.random()*1E3;return _.U(b,new Promise(function(J){return function(G){_.kD(_.dV,function(){G(void 0)},J.bNk)}}(X)),5);
case 5:return _.en(b,7),_.U(b,B.uz(R),9);case 9:return Y=b.yieldResult,b.return(fTR(Y));case 7:V=t=_.WR(b),t instanceof Error&&_.KE(t);case 8:e++;X={bNk:void 0};b.jumpTo(2);break;case 4:throw V;}})},yiR=function(B,R){B.tw=R},lTv=function(B){var R,V,e;
return _.W(function(X){if(X.nextAddress==1)return _.U(X,Promise.race([B.tw,null]),2);R=X.yieldResult;var Y=SkR(B);B.tw=Y;(V=R)==null||(e=V.t3)==null||e.dispose();_.b3(X)})},DHR=function(B,R){var V=Date.now()+R,e=function(){var X;
return _.W(function(Y){X=V-Date.now();return X<1E3?_.U(Y,lTv(B),0):(_.kD(_.dV,e,Math.min(X,6E4)),Y.jumpTo(0))})};
e()},Ms4=function(B,R){return new Promise(function(V){_.kD(_.dV,function(){V(R())},B)})};var zjS=function(){};
zjS.prototype.processContext=function(B){var R=_.$e.instance;if(!R)return _.rf();var V=qKS(B);return V?new Fm(R.nwj(V,Esd(B),500).then(function(e){var X;(B==null?0:(X=B.innerTubeRequest)==null?0:X.context)||(B.innerTubeRequest.context={});X=B.innerTubeRequest.context;X.request||(X.request={});X.request.attestationResponseData=e})):_.rf()};var aT5=function(B){this.innertubeTransportService=B};
aT5.prototype.uz=function(B){_.di("att_fsr",void 0,"attestation_challenge_fetch");return _.vC(this.innertubeTransportService,B,_.Zz(_.LD2)).then(function(R){_.di("att_frr",void 0,"attestation_challenge_fetch");return R})};_.dHv=function(B){this.innertubeTransportService=B};var wjl=new _.u0("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var TC4=function(){},LQ5=function(B,R,V,e,X){var Y=_.vE("YPC_MB_URL");
_.y9Z(Y).then(function(){xHl(Y,B,R,V,e,X)})},xHl=function(B,R,V,e,X,Y){try{var t=payments.business.integration,b=payments.business.integration.Style.create().withMaterialDesignStyle(),J=t.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.k("enable_window_constrained_buy_flow_dialog")&&(J=J.usingPopupStyle("windowConstrained"));Y&&(J=J.usingCloseCallback(Y));var G=V?V:_.vE("YPC_GB_LANGUAGE"),y=_.vE("SESSION_INDEX");t.bootstrap.fromPaymentsUrl(B);t.bootstrap.asMashupMode(J).usingGaiaIndex(y).usingLocale(G).usingStyle(b).usingDefaultActivityStatusChangeHandler().inStandaloneContext(t.standaloneContextAuthId.forGaia()).purchaseManager(R,function(S){e&&e(S)}).load(void 0,X)}catch(S){throw X&&X(S),_.Tn(S),S;
}};var vwl=new _.u0("PURCHASE_MANAGER_TOKEN");var KQ5=function(){var B=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return B.videos},
getContinuationsPresent:function(){return B.continuationsPresent},
setVideos:function(R){B.videos=R},
getRecommendedVideos:function(){return B.recommendedVideos},
setRecommendedVideos:function(R){B.recommendedVideos=R}}};
KQ5.prototype.addVideos=function(B){B&&(this.videos=B.filter(function(R){return!!_.AYo(R)}).map(function(R){var V=_.AYo(R);
a:{var e;if(R.playlistVideoRenderer&&((e=R.playlistVideoRenderer)==null?0:e.voteSortTiebreaker))var X=R.playlistVideoRenderer.voteSortTiebreaker;else{if(_.D(R,eV)){var Y;if(e=(X=_.D(R,eV))==null?void 0:(Y=X.playlistItemData)==null?void 0:Y.voteSortTiebreaker){X=e;break a}}X=""}}return{itemId:V,videoId:_.FrN(R),voteCount:_.rYx(R),voteSortTiebreaker:X}}),this.continuationsPresent=!!_.D(B[B.length-1],_.YQ))};
var ITR=function(B,R){return B.videos.findIndex(function(V){return V.itemId===R})},EwG=function(B,R){return B.recommendedVideos.findIndex(function(V){return V.itemId===R})},QgT=function(B){B={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:B}}}}};_.Oz().resolve(_.oC).resolveCommand(B)};var qk4=function(){KQ5.apply(this,arguments)};
_.l(qk4,KQ5);
var li2=function(B,R,V,e){if(!B.parentElem)throw Error("pi");var X=ITR(B,R);X===-1&&(X=EwG(B,R),X=X!==-1?X+B.videos.length:-1);if(X===-1)throw Error("qi");var Y=X>=B.videos.length?B.recommendedVideos[X-B.videos.length]:B.videos[X];Y.voteCount=V;Y.voteSortTiebreaker=Date.now().toString();X>=B.videos.length?B.recommendedVideos.splice(X-B.videos.length,1):B.videos.splice(X,1);var t=B.videos;for(var b=0,J=t.length-1;b<=J;){var G=Math.floor((b+J)/2);if(t[G].voteCount<Y.voteCount)J=G-1;else if(t[G].voteCount>Y.voteCount)b=
G+1;else{a:{var y=Y.voteSortTiebreaker;var S=t[G].voteSortTiebreaker;if(y.length!==S.length)y=y.length>S.length;else{for(var M=0;M<y.length;M++){var f=y.charCodeAt(M),z=S.charCodeAt(M);if(f>z){y=!0;break a}if(f<z)break}y=!1}}y?J=G-1:b=G+1}}t=b;if(t===-1)throw Error("ri");B.videos.splice(t,0,Y);X!==t&&ciJ(B,X,t,R,V,e)},ciJ=function(B,R,V,e,X,Y){var t,b=(t=B.parentElem)==null?void 0:t.children,J=Math.min(R,V),G=Math.max(R,V);
if(b)for(t=J;t<=G;t++)b[t].style.viewTransitionName="item-"+String(t);document.startViewTransition(function(){if(B.parentElem){var y=B.parentElem.children;if(!(!y||R<0||R>=y.length||V<0||V>=y.length)){var S=y[R];if(S){S.remove();B.showRefreshPill=V>=B.videos.length-1&&B.continuationsPresent;if(!B.showRefreshPill){y=y[V]||null;var M;(M=B.parentElem)==null||M.insertBefore(S,y)}_.OI(B.parentElem,"yt-update-video-data-voting-animation",{toIdx:V,itemId:e,newVoteCount:X,voteStatus:Y,hideItem:B.showRefreshPill})}}}}).finished.then(function(){if(b)for(var y=
J;y<=G;y++)b[y].style.viewTransitionName="";
if(B.showRefreshPill)QgT(_.Wz("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var S;if(S=y=(S=B.parentElem)==null?void 0:S.children[V])S=y.getBoundingClientRect(),y=S.bottom,S=!(S.top>=0&&y<=B.clientHeight);S&&(S=_.bF(R>V?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(R-V)),QgT(S))}})};var sgo=function(B,R){var V=this;B?this.innertubeTransportServicePromise=Promise.resolve(B):R&&(this.innertubeTransportServicePromise=R(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Lh(3E3,function(e){return Ai4(V,e)},0);
this.validateMiniAppVideoIdRateLimiter=new Lh(3E3,function(e){return izb(V,e)},1)},DAS=function(B,R){B.JSC$14931_miniAppId=R;
B.reportMiniAppValueRateLimiter=new Lh(3E3,function(V){return Ai4(B,V)},0);
B.validateMiniAppVideoIdRateLimiter=new Lh(3E3,function(V){return izb(B,V)},1)},l8R=function(B,R){var V;
return _.W(function(e){if(e.nextAddress==1)return _.U(e,B.reportMiniAppValueRateLimiter.call(R),2);V=e.yieldResult;return e.return([V,R])})},Ai4=function(B,R){var V,e,X,Y,t,b,J;
return _.W(function(G){switch(G.nextAddress){case 1:return _.U(G,B.innertubeTransportServicePromise,2);case 2:return V=G.yieldResult,e=_.Zz(cd_),X=Date.now(),Y={externalPostId:B.JSC$14931_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(X/1E3),nanos:Math.round(X%1E3*1E6)},intValue:""+R}},_.en(G,3),_.U(G,_.vC(V,Y,e),5);case 5:t=G.yieldResult;_.c8(G,4);break;case 3:throw b=_.WR(G),b;case 4:if(t){if("error"in t&&t.error)throw t.error;if(t.errorMetadata)throw Error("si`"+
t.errorMetadata.status);if(J=t.userStatResult)return G.return(J);throw Error("ti");}throw Error("ui");}})},a85=function(B){var R,V,e,X,Y;
_.W(function(t){switch(t.nextAddress){case 1:return _.U(t,B.innertubeTransportServicePromise,2);case 2:return R=t.yieldResult,V=_.Zz(cd_),e={externalPostId:B.JSC$14931_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.en(t,3),_.U(t,_.vC(R,e,V),5);case 5:X=t.yieldResult;_.c8(t,4);break;case 3:throw Y=_.WR(t),Y;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);_.b3(t)}})};
sgo.prototype.flush=function(){var B=this;return _.W(function(R){return R.nextAddress==1?_.U(R,B.reportMiniAppValueRateLimiter.flush(),2):_.U(R,B.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var zG2=function(B,R){return _.W(function(V){return V.nextAddress==1?_.U(V,B.validateMiniAppVideoIdRateLimiter.call(R),2):V.return(V.yieldResult)})},izb=function(B,R){var V,e,X,Y,t,b;
return _.W(function(J){switch(J.nextAddress){case 1:return _.U(J,B.innertubeTransportServicePromise,2);case 2:return V=J.yieldResult,e=_.Zz(xGv),X={videoId:R},_.en(J,3),_.U(J,_.vC(V,X,e),5);case 5:Y=J.yieldResult;_.c8(J,4);break;case 3:throw t=_.WR(J),t;case 4:if(Y){if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("si`"+Y.errorMetadata.status);if(b=Y.playabilityStatus)return J.return(b.status);throw Error("vi");}throw Error("ui");}})};
sgo[na]=[_.uj(_.M1),_.uj(hdS)];var FQG=function(){this.clientData=new Map};
FQG.prototype.getData=function(B){return this.clientData.get(B)};var riG=function(B){this.store=B};
riG.prototype.handleResponse=function(B){(B=_.D(B.frameworkUpdates,FE))&&_.bz(B,this.store)};
riG[na]=[_.zk];var gwJ=new _.u0("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var ZzT={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var mHS=new _.u0("ICON_SET_TOKEN"),$HR=new _.u0("ICON_URL_PROVIDER_TOKEN"),CBb=new _.u0("PREFETCH_ICONS_TOKEN"),PBb=new _.u0("ICON_MAP_FN_TOKEN");var Ch={},nw4=(Ch.ACCESS_TIME="clock",Ch.ACCOUNT_BOX="person_account",Ch.ACCOUNT_BOX_CAIRO="person_account_cairo",Ch.ACCOUNT_CIRCLE="person_circle",Ch.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Ch.ACCOUNT_LINKED="account_link_success",Ch.ACCOUNT_UNLINKED="account_link",Ch.ADD_FRIEND="people",Ch.ADD_TO_LIBRARY=pi("add"),Ch.ADD_TO_PLAYLIST="add",Ch.ADD_TO_QUEUE_TAIL="list_queue",Ch.ADD_TO_REMOTE_QUEUE="list_music",Ch.ADD_TO_WATCH_LATER="clock",Ch.ADD_VIDEO_LINK="film_strip_add",Ch.ALERT_WARN_RED="alert_triangle",
Ch.ARROW_BACK="arrow_left",Ch.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Ch.ARROW_DROP_DOWN="chevron_down",Ch.ARROW_DROP_UP="chevron_up",Ch.ARROW_FORWARD="arrow_right",Ch.AUDIOTRACK="audio",Ch.AUTO_AWESOME="sparkle",Ch.AVATAR_ANONYMOUS="person_circle",Ch.AVATAR_LOGGED_OUT="person_circle",Ch.BACK="arrow_left",Ch.BAR_CHART="bar_graph",Ch.BLOCK="slash_circle_left",Ch.BLOCK_USER="slash_circle_left",Ch.BOOKMARK_BORDER="bookmark",Ch.BREAKING_NEWS_ALT_1="article_alert",Ch.BROADCAST_CAIRO="podcast_cairo",
Ch.BUG_REPORT="bug",Ch.CAMERA_ALT="camera",Ch.CAMPAIGN="megaphone",Ch.CANCEL="x_circle",Ch.CAPTIONS="closed_caption",Ch.CAST_OUTLINE="chromecast",Ch.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Ch.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Ch.CHAT="message_bubble_left",Ch.CHAT_BUBBLE="message_bubble_empty",Ch.CHECK_BOX_OUTLINE_BLANK="box_empty",Ch.CHECK_CIRCLE_OUTLINE="check_circle",Ch.CHECK_CIRCLE_THICK="check_circle",Ch.CLARIFY="article_clarify",Ch.CLOSED_CAPTION_SELECTED="closed_caption",Ch.CLOSE=
"x_mark",Ch.CLOUD_UPLOAD="cloud_arrow_up",Ch.COLLAPSE="chevron_up",Ch.COLLAPSE_CAIRO="chevron_up_cairo",Ch.COLLECTION="layers",Ch.COLOR_LENS="palette",Ch.COMMENT="message_bubble_right",Ch.CONSENT_SHIELD="person_shield",Ch.CONTENT_CUT="scissors",Ch.CONTENT_CUT_CAIRO="scissors_cairo",Ch.COURSE=_.k("web_enable_course_icon_update")?"creator_academy":"lightbulb",Ch.COURSE_CAIRO=_.k("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",Ch.CREATION_LIVE="radar_live",Ch.CREATION_UPLOAD=
"my_videos",Ch.CREATION_UPLOAD_RED="upload",Ch.CREATOR_STUDIO="youtube_studio",Ch.DELETE="trash_can",Ch.DELETE_SWEEP="trash_can",Ch.DESKTOP="laptop",Ch.DISLIKE="thumb_down",Ch.DISLIKE_SELECTED="thumb_down",Ch.DISMISSAL="x_mark",Ch.DISMISS_QUEUE="list_remove",Ch.DOWN_ARROW="arrow_down",Ch.DO_NOT_DISTURB="slash_circle_left",Ch.DRAFT="paper_corner_folded",Ch.DRAG_HANDLE="bars_2",Ch.EDIT="pencil",Ch.EMOJI="face_very_happy",Ch.EMOJI_FLAGS="flag",Ch.EMOJI_OBJECTS="lightbulb",Ch.EMOJI_PEOPLE="face_very_happy",
Ch.EMOJI_RECENT="clock",Ch.EMPTY_HEART="heart",Ch.EMPTY_LIKE="thumb_up",Ch.ERROR_BLACK="alert_circle",Ch.ERROR_OUTLINE="alert_circle",Ch.EXIT_APP="arrow_in",Ch.EXIT_TO_APP="arrow_in",Ch.EXPAND="chevron_down",Ch.EXPAND_ALL="chevron_expand",Ch.EXPAND_CAIRO="chevron_down_cairo",Ch.EXPAND_LESS="chevron_up",Ch.EXPAND_MORE="chevron_down",Ch.EXPLORE="compass",Ch.EXPLORE_DESTINATION="compass",Ch.EXTERNAL_LINK="open_new",Ch.FAB_UPLOAD="upload",Ch.FACE_HAPPY_OUTLINE="face_happy",Ch.FACT_CHECK="article_check",
Ch.FASHION_LOGO="fashion",Ch.FASHION_LOGO_CAIRO="fashion_cairo",Ch.FAVORITE="heart",Ch.FEEDBACK="message_bubble_alert",Ch.FEEDBACK_CAIRO="message_bubble_alert_cairo",Ch.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Ch.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Ch.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Ch.FLAG="flag",Ch.FULL_HEART="heart",Ch.GAME_CONSOLE_DPAD="game_console_dpad",Ch.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Ch.GAMING_LOGO="gaming",Ch.GAMING_LOGO_CAIRO="gaming_cairo",Ch.GO_TO_PAGE=
"arrow_right",Ch.GROUPS="people_group",Ch.HAPPY="face_happy",Ch.HEALTH_AND_SAFETY="shield_plus",Ch.HELP="question_circle",Ch.HELP_CAIRO="question_circle_cairo",Ch.HELP_OUTLINE="question_circle",Ch.HIDE="slash_circle_left",Ch.IMAGE="image",Ch.INFINITY_ICON="infinity",Ch.INFO="info_circle",Ch.INFO_OUTLINE="info_circle",Ch.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Ch.INSERT_PHOTO="image",Ch.KEEP="pin",Ch.KEEP_OFF="pin_off",Ch.KEYBOARD="keyboard",Ch.KEYBOARD_ARROW_DOWN="chevron_down",Ch.KEYBOARD_ARROW_UP=
"chevron_up",Ch.KIDS_BLOCK="slash_circle_left",Ch.LANGUAGE="globe",Ch.LAUNCH="open_new",Ch.LEARNING="lightbulb",Ch.LEARNING_CAIRO="lightbulb_cairo",Ch.LIBRARY_ADD=pi("library_add"),Ch.LIBRARY_OUTLINE="library",Ch.LIBRARY_REMOVE=pi(),Ch.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Ch.LIKES_PLAYLIST="thumb_up",Ch.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Ch.LIKE="thumb_up",Ch.LIKE_SELECTED="thumb_up",Ch.LIVE="radar_live",Ch.LIVE_CAIRO="radar_live_cairo",Ch.LIVE_UNLISTED="link",Ch.LOCATION_ON="location_point",
Ch.LOCATION_PIN="location_point",Ch.LOOP="arrow_repeat",Ch.LOOP_ACTIVE="arrow_repeat",Ch.LOOP_ONE="arrow_repeat_1",Ch.LOOP_ONE_ACTIVE="arrow_repeat_1",Ch.MEH="face_meh",Ch.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Ch.MESSAGE="message_bubble_left",Ch.MICROPHONE_ON="mic",Ch.MIX="youtube_mix",Ch.MONETIZATION_ON="dollar_sign_circle",Ch.MONEY_FILL="dollar_sign_container",Ch.MONEY_FILL_JPY="yen_sign_container",Ch.MONEY_HEART="dollar_sign_heart",Ch.MORE_HORIZ="overflow_horizontal",Ch.MORE_VERT="overflow_vertical",
Ch.MUSIC="audio",Ch.MUSIC_CAIRO="audio_cairo",Ch.MUSIC_NOTE_SYMBOL="music",Ch.MUSIC_SHUFFLE="arrow_shuffle",Ch.MY_CHANNEL="person_circle",Ch.MY_LOCATION="location_point",Ch.NEWS_STORY="news",Ch.NEXT="chevron_right",Ch.NOTIFICATIONS="bell",Ch.NOTIFICATIONS_ACTIVE="bell_on",Ch.NOTIFICATIONS_CAIRO="bell_cairo",Ch.NOTIFICATIONS_DONE_CHECKMARK="check",Ch.NOTIFICATIONS_INBOX="bell",Ch.NOTIFICATIONS_NONE="bell",Ch.NOTIFICATIONS_OFF="bell_off",Ch.NOT_INTERESTED="slash_circle_left",Ch.OFFICIAL_ARTIST_BADGE=
"audio",Ch.OFFLINE_CLOUD="cloud_off",Ch.OFFLINE_DOWNLOAD="download",Ch.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Ch.OFFLINE_PAUSE="pause",Ch.OPEN_IN_NEW="open_new",Ch.OUTLINE_ADJUST="adjust",Ch.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Ch.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Ch.OUTLINE_BAG="bag",Ch.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Ch.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Ch.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Ch.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
Ch.PAID="dollar_sign",Ch.PAUSE_OUTLINED="pause",Ch.PAYMENT="credit_card",Ch.PERSON_RADAR_FILLED="person_radar",Ch.PHONE_DOWNLOAD="mobile_download",Ch.PLAYABLES_LOGO="tic_tac_toe",Ch.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Ch.PLAYLISTS="list_play_arrow",Ch.PLAYLISTS_CAIRO="list_play_arrow_cairo",Ch.PLAYLIST_ADD=pi("list_add"),Ch.PLAYLIST_ADD_CHECK=pi("list_check"),Ch.PLAY_ALL="play_arrow",Ch.PLAY_CIRCLE="play_arrow_circle",Ch.PLAY_OUTLINED="play_arrow_circle",Ch.PRIVACY_INFO="shield",Ch.PRIVACY_PRIVATE=
"lock",Ch.PRIVACY_PUBLIC="earth",Ch.PRIVACY_UNLISTED="link",Ch.PROMOTE="megaphone",Ch.PURCHASES="price_tag",Ch.PURCHASE_SUPER_CHAT="super_chat",Ch.PURCHASE_SUPER_STICKER="super_sticker",Ch.QUESTION_ANSWER="message_bubble_question",Ch.QUEUE_PLAY_LAST="list_queue_last",Ch.QUEUE_PLAY_NEXT="list_play_arrow",Ch.REMIX_FILLED="youtube_shorts_remix",Ch.REMOVE="bar_circle",Ch.REMOVE_CIRCLE="bar_circle",Ch.REMOVE_CIRCLE_OUTLINE="bar_circle",Ch.REMOVE_FROM_HISTORY="bar_circle",Ch.REMOVE_FROM_PLAYLIST="bar_circle",
Ch.REPLAY="arrow_circle",Ch.REPORT_PROBLEM="alert_triangle",Ch.SAD="face_sad",Ch.SAVE_PLAYLIST=pi("library_add"),Ch.SCHEDULE="clock",Ch.SCHOOL="creator_academy",Ch.SCREEN_FULLSCREEN="screen_full",Ch.SEARCH_HISTORY="arrow_time",Ch.SELL="price_tag",Ch.SETTINGS="gear",Ch.SETTINGS_CAIRO="gear_cairo",Ch.SETTINGS_LIGHT="gear",Ch.SETTINGS_MATERIAL="gear",Ch.SHARE_ARROW="share",Ch.SHIELD_WITH_AVATAR="person_shield",Ch.SHOPPING_BAG="bag",Ch.SHOPPING_BAG_CAIRO="bag_cairo",Ch.SHOPPING_CART="cart",Ch.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",Ch.SHORTS_DISLIKE="youtube_shorts_thumb_down",Ch.SHORTS_LIKE="youtube_shorts_thumb_up",Ch.SHORTS_SHARE="youtube_shorts_share",Ch.SHUFFLE="arrow_shuffle",Ch.SLOW_MODE_OFF="message_bubble_left",Ch.SOCIAL="people",Ch.SORT="menu_sort",Ch.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Ch.SPEED_1X="1x",Ch.SPEED_1_POINT_2X="1_point_2x",Ch.SPEED_1_POINT_5X="1_point_5x",Ch.SPEED_1_POINT_8X="1_point_8x",Ch.SPEED_2X="2x",Ch.SPEED_POINT_2X="point_2x",Ch.SPEED_POINT_8X="point_8x",
Ch.SPONSORSHIP_STAR=_.k("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",Ch.STAFF_PICK="spotlight",Ch.START_DVR="add",Ch.STAR_BORDER="star",Ch.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Ch.STICKER_EMOTICON="face_happy",Ch.STOP_DVR="stop",Ch.SUBSCRIBE="youtube_logo_icon",Ch.SUBSCRIBE_PLUS="add_cairo",Ch.SUBSCRIPTION_MANAGER="gear",Ch.SUPERVISOR_ACCOUNT="people",Ch.SWAP_HORIZ="arrow_swap_horizontal",Ch.SWITCH_ACCOUNTS="person_account",Ch.TAB_ACCOUNT="person",Ch.TAB_ACTIVITY=
"bell",Ch.TAB_EXPLORE="compass",Ch.TAB_HOME="home",Ch.TAB_HOME_CAIRO="home_cairo",Ch.TAB_INBOX="mail",Ch.TAB_LIKED="thumb_up",Ch.TAB_MUSIC_PREMIUM="youtube_music",Ch.TAB_SHORTS="youtube_shorts",Ch.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Ch.TAB_SUBSCRIPTIONS="subscriptions",Ch.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Ch.TAB_TRENDING="fire",Ch.TIMER="stopwatch",Ch.TRENDING="fire",Ch.TRENDING_CAIRO="fire_cairo",Ch.TRENDING_UP="rating_up",Ch.TROPHY="trophy",Ch.TROPHY_CELEBRATIONS="fireworks",Ch.TUNE=
"adjust",Ch.UNBLOCK_USER="bar_circle",Ch.UNLIMITED="youtube_logo_icon",Ch.UNPLUGGED_LIVE_GUIDE="radar_live",Ch.UNPLUGGED_SPORTS="eye_off",Ch.UPLOADS="library",Ch.UP_ARROW="arrow_up",Ch.VERTICAL_ALIGN_BOTTOM="download",Ch.VERY_HAPPY="face_very_happy",Ch.VERY_SAD="face_very_sad",Ch.VIDEOS="play_arrow_circle",Ch.VIDEO_CALL="video_camera_add",Ch.VIDEO_LIBRARY_WHITE="library",Ch.VIDEO_YOUTUBE="youtube_logo_icon",Ch.VIEW_LIST="list_view",Ch.VIEW_LIST_CAIRO="list_view_cairo",Ch.VISIBILITY="eye",Ch.VISIBILITY_OFF=
"eye_off",Ch.VOLUME_MUTE="volume_off",Ch.VOLUME_UP="volume_on",Ch.WALLPAPER="image",Ch.WARNING="alert_triangle",Ch.WATCH_HISTORY="arrow_time",Ch.WATCH_HISTORY_CAIRO="arrow_time_cairo",Ch.WATCH_LATER="clock",Ch.WATCH_LATER_CAIRO="clock_cairo",Ch.WATCH_RELATED_MIX="youtube_mix",Ch.WHAT_TO_WATCH="home",Ch.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Ch.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",Ch.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",Ch.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",Ch.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Ch.YT_OUTLINE_MUSIC_24="music",Ch);var Pa={},uL5=(Pa.ACCESS_TIME="clock",Pa.ACCOUNT_BOX="person2_rectangle",Pa.ACCOUNT_BOX_CAIRO="person_square_stack",Pa.ACCOUNT_CIRCLE="person_circle",Pa.ACCOUNT_CIRCLE_CAIRO="person_circle",Pa.ACCOUNT_UNLINKED="account_link",Pa.ADD_CIRCLE="add_circle",Pa.ADD_FRIEND="person_child",Pa.ADD_TO_LIBRARY="bookmark",Pa.ADD_TO_PLAYLIST="add",Pa.ADD_TO_QUEUE_TAIL="queue",Pa.ADD_TO_REMOTE_QUEUE="playlist_audio",Pa.ADD_TO_WATCH_LATER="clock",Pa.ADD_VIDEO_LINK="film_strip_add",Pa.ADMIN_PANEL_SETTINGS="gear",Pa.ALERT_WARN_RED=
"alert_triangle",Pa.ALIGN_LEFT="text_align_left",Pa.ARROWS_ALERT="arrow_split_alert",Pa.ARROW_BACK="arrow_left",Pa.ARROW_CIRCLE="arrow_counterclockwise",Pa.ARROW_CIRCLE_PLAY="replay",Pa.ARROW_CIRCLE_RIGHT="arrow_clockwise",Pa.ARROW_DIAGONAL="arrow_up_left",Pa.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Pa.ARROW_DROP_DOWN="chevron_down",Pa.ARROW_DROP_UP="chevron_up",Pa.ARROW_FORWARD="arrow_right",Pa.ARROW_PAUSE="pause_history",Pa.ARROW_UNDO="undo",Pa.ARTICLE="text_page",Pa.ARTICLE_ALERT="text_page_alert",
Pa.ARTICLE_CHECK="text_page_check",Pa.ARTICLE_CLARIFY="text_page_info",Pa.AUDIOTRACK="audio",Pa.AUDIO_BADGE="audio_badge",Pa.AUDIO_SURROUND="surround_sound",Pa.AVATAR_ANONYMOUS="person_circle",Pa.AVATAR_LOGGED_OUT="person_circle",Pa.BACK="arrow_left",Pa.BAR_CHART="chart_bar",Pa.BAR_CIRCLE="minus_circle",Pa.BAR_HORIZONTAL="minus",Pa.BLOCK="circle_slash",Pa.BLOCK_USER="circle_slash",Pa.BOOKMARK_BORDER="bookmark",Pa.BOX_OPEN_CHECK="quiz",Pa.BOX_PENCIL="square_pencil",Pa.BREAKING_NEWS_ALT_1="text_page_alert",
Pa.BROADCAST="podcast",Pa.BROADCAST_CAIRO="podcast",Pa.BUG_REPORT="bug",Pa.CAMERA_ALT="camera",Pa.CAMPAIGN="megaphone",Pa.CANCEL="x_circle",Pa.CAPTIONS="closed_captions",Pa.CAST_OUTLINE="chromecast",Pa.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Pa.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Pa.CHAT="text_bubble",Pa.CHAT_BUBBLE="bubble",Pa.CHECK_CIRCLE_OUTLINE="check_circle",Pa.CHECK_CIRCLE_THICK="check_circle",Pa.CHECK_DOUBLE="check_done",Pa.CHECK_DOUBLE_OFF="check_done_slash",Pa.CHEVRON_RIGHT_CAIRO=
"chevron_right",Pa.CIRCLES_OVERLAP="account_link",Pa.CLAPPERBOARD_CAIRO="clapperboard",Pa.CLARIFY="text_page_info",Pa.CLOCK_ARROWS="clock_split",Pa.CLOCK_ARROWS_ALERT="clock_split_alert",Pa.CLOSED_CAPTION="closed_captions",Pa.CLOSED_CAPTION_SELECTED="closed_captions",Pa.CLOSE="x",Pa.CLOUD_UPLOAD="cloud_arrow_up",Pa.COLLAPSE="chevron_up",Pa.COLLAPSE_CAIRO="chevron_up",Pa.COLLECTION="square3d_stack",Pa.COLOR_LENS="paint_palette",Pa.COMMENT="text_bubble",Pa.CONSENT_SHIELD="person_shield",Pa.CONTENT_CUT=
"scissors",Pa.CONTENT_CUT_CAIRO="scissors",Pa.COURSE="graduation_cap",Pa.COURSE_CAIRO="graduation_cap",Pa.CREATION_LIVE="live",Pa.CREATION_POST="square_pencil",Pa.CREATION_UPLOAD="video",Pa.CREATION_UPLOAD_RED="upload",Pa.CREATOR_ACADEMY="graduation_cap",Pa.CREATOR_STUDIO="youtube_studio",Pa.DARK_THEME="theme",Pa.DELETE="trash_can",Pa.DELETE_SWEEP="trash_can",Pa.DESKTOP="laptop",Pa.DISLIKE="thumb_down",Pa.DISLIKE_SELECTED="thumb_down",Pa.DISMISSAL="x",Pa.DOGFOOD="pawprint",Pa.DOLLAR_SIGN="dollar_sign_circle",
Pa.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Pa.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Pa.DOWN_ARROW="arrow_down",Pa.DO_NOT_DISTURB="circle_slash",Pa.DRAFT="document",Pa.EARTH="globe",Pa.EDIT="pencil",Pa.EMOJI="face_very_happy",Pa.EMOJI_FLAGS="flag",Pa.EMOJI_OBJECTS="lightbulb",Pa.EMOJI_PEOPLE="face_very_happy",Pa.EMOJI_RECENT="clock",Pa.EMPTY_HEART="heart",Pa.EMPTY_LIKE="thumb_up",Pa.ERROR_BLACK="alert_circle",Pa.ERROR_OUTLINE="alert_circle",Pa.EXIT_APP="arrow_in",Pa.EXIT_TO_APP="arrow_in",
Pa.EXPAND="chevron_down",Pa.EXPAND_ALL="chevron_expand",Pa.EXPAND_CAIRO="chevron_down",Pa.EXPAND_LESS="chevron_up",Pa.EXPAND_MORE="chevron_down",Pa.EXPLORE="compass",Pa.EXPLORE_DESTINATION="compass",Pa.EXTERNAL_LINK="arrow_up_right",Pa.EYE_OFF="eye_slash",Pa.FAB_UPLOAD="upload",Pa.FACE_HAPPY_OUTLINE="face_happy",Pa.FACE_MEH="face_neutral",Pa.FACT_CHECK="text_page_check",Pa.FASHION_LOGO="fashion",Pa.FASHION_LOGO_CAIRO="fashion",Pa.FEEDBACK="alert_bubble",Pa.FEEDBACK_CAIRO="alert_bubble",Pa.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Pa.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Pa.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Pa.FLAG_CAIRO="flag",Pa.FLASH_OFF="flash_slash",Pa.FLASH_ON="flash",Pa.FULL_HEART="heart",Pa.GAMING_LOGO="gaming",Pa.GAMING_LOGO_CAIRO="gaming",Pa.GO_TO_PAGE="arrow_right",Pa.GROUPS="person3",Pa.HAND_SWIPE_LEFT="gesture_swipe_left",Pa.HAND_SWIPE_RIGHT="gesture_swipe_right",Pa.HAPPY="face_happy",Pa.HEALTH_AND_SAFETY="shield_health",Pa.HEART_BOX="heart_cube",Pa.HELP="help_circle",Pa.HELP_CAIRO=
"help_circle",Pa.HELP_OUTLINE="help_circle",Pa.HIDE="circle_slash",Pa.INCOGNITO_CAIRO="incognito",Pa.INFINITY_ICON="infinity",Pa.INFO="info_circle",Pa.INFO_OUTLINE="info_circle",Pa.INSERT_PHOTO="image",Pa.KEEP="pin",Pa.KEEP_OFF="pin_slash",Pa.KEYBOARD="keyboard",Pa.KEYBOARD_ARROW_DOWN="chevron_down",Pa.KEYBOARD_ARROW_UP="chevron_up",Pa.KIDS_BLOCK="circle_slash",Pa.LANGUAGE="globe",Pa.LAUNCH="arrow_up_right",Pa.LEARNING="lightbulb",Pa.LEARNING_CAIRO="lightbulb",Pa.LIBRARY_ADD="bookmark",Pa.LIBRARY_IMAGE=
"image_stack",Pa.LIBRARY_MUSIC="audio_square_stack",Pa.LIBRARY_OUTLINE="play_square_stack",Pa.LIBRARY_REMOVE="bookmark",Pa.LIKES_PLAYLIST="thumb_up",Pa.LIKES_PLAYLIST_CAIRO="thumb_up",Pa.LIKE="thumb_up",Pa.LIKE_SELECTED="thumb_up",Pa.LIST_QUEUE="queue",Pa.LIVE_CAIRO="live",Pa.LIVE_UNLISTED="link",Pa.LOCATION_ON="location_pin",Pa.LOCATION_PIN="location_pin",Pa.LOCATION_POINT="location_pin",Pa.LOOP="repeat",Pa.LOOP_ACTIVE="repeat",Pa.LOOP_ONE="repeat1",Pa.LOOP_ONE_ACTIVE="repeat1",Pa.MEET="google_meet",
Pa.MEH="face_neutral",Pa.MEMBERSHIPS="memberships",Pa.MEMBERS_ONLY_MODE_OFF="text_bubble",Pa.MENU_FILTER="filter",Pa.MESSAGE="text_bubble",Pa.MESSAGE_BUBBLE_GEAR="bubble_gear",Pa.MESSAGE_BUBBLE_LEFT="text_bubble",Pa.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Pa.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Pa.MESSAGE_BUBBLE_QUESTION="help_bubble",Pa.MICROPHONE_ON="mic",Pa.MONETIZATION_ON="dollar_sign_circle",Pa.MONEY_FILL="dollar_sign_rectangle",Pa.MONEY_FILL_JPY="yen_sign_rectangle",Pa.MONEY_HAND="dollar_sign_circle_hand",
Pa.MONEY_HEART="dollar_sign_heart",Pa.MOON_Z="sleep_timer",Pa.MORE_HORIZ="overflow_horizontal",Pa.MORE_VERT="overflow_vertical",Pa.MUSIC="audio",Pa.MUSIC_CAIRO="audio",Pa.MUSIC_NOTE_SYMBOL="audio",Pa.MUSIC_SCISSORS="audio_scissors",Pa.MUSIC_SHUFFLE="shuffle",Pa.MY_CHANNEL="person_circle",Pa.MY_LOCATION="location_pin",Pa.MY_VIDEOS="video",Pa.MY_VIDEOS_CAIRO="video",Pa.NEWS_CAIRO="news",Pa.NEWS_STORY="news",Pa.NEXT="chevron_right",Pa.NOTE_ADD="bubble_pencil",Pa.NOTIFICATIONS="bell",Pa.NOTIFICATIONS_ACTIVE=
"bell_waves",Pa.NOTIFICATIONS_CAIRO="bell",Pa.NOTIFICATIONS_DONE_CHECKMARK="check",Pa.NOTIFICATIONS_INBOX="bell",Pa.NOTIFICATIONS_NONE="bell",Pa.NOTIFICATIONS_OFF="bell_slash",Pa.NOT_INTERESTED="circle_slash",Pa.OFFICIAL_ARTIST_BADGE="audio",Pa.OFFLINE_CLOUD="cloud_slash",Pa.OFFLINE_DOWNLOAD="download",Pa.OFFLINE_DOWNLOAD_CAIRO="download",Pa.OFFLINE_PAUSE="pause",Pa.OPEN_IN_NEW="arrow_up_right",Pa.OUTLINE_ADJUST="adjust",Pa.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Pa.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",Pa.OUTLINE_BAG="bag",Pa.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Pa.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Pa.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Pa.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Pa.PAID="dollar_sign_circle",Pa.PAUSE_OUTLINED="pause",Pa.PAYMENT="credit_card",Pa.PEOPLE="person_child",Pa.PEOPLE_2="person2_rectangle",Pa.PEOPLE_GROUP="person3",Pa.PEOPLE_NOTE="bubble_asterisk",Pa.PERSON_2="person2",Pa.PERSON_ACCOUNT="person_square_stack",Pa.PERSON_MINUS=
"person_x",Pa.PERSON_MUSIC="person_audio",Pa.PERSON_RADAR="person_waves",Pa.PERSON_RADAR_FILLED="person_waves",Pa.PERSON_SETTING="person_gear",Pa.PHONE="phone",Pa.PHONE_DOWNLOAD="mobile_arrow_down",Pa.PICTURE_IN_PICTURE="picture_in_picture",Pa.PLAYABLES_LOGO="playables",Pa.PLAYABLES_LOGO_CAIRO="playables",Pa.PLAYLISTS="playlist",Pa.PLAYLISTS_CAIRO="playlist",Pa.PLAYLIST_ADD="bookmark",Pa.PLAYLIST_ADD_CHECK="bookmark",Pa.PLAY_ALL="play",Pa.PLAY_ARROW="play",Pa.PLAY_ARROW_CIRCLE="play_circle",Pa.PLAY_ARROW_HALF_CIRCLE=
"play_circle_half_dashed",Pa.PLAY_CIRCLE="play_circle",Pa.PLAY_OUTLINED="play_circle",Pa.PODCAST_ADD="podcast_add",Pa.PODCAST_CHECK="podcast_check",Pa.PRIVACY_PRIVATE="lock",Pa.PRIVACY_PUBLIC="globe",Pa.PRIVACY_UNLISTED="link",Pa.PROMOTE="megaphone",Pa.PURCHASES="price_tag",Pa.PURCHASE_SUPER_CHAT="super_chat",Pa.PURCHASE_SUPER_STICKER="super_sticker",Pa.QUESTION_ANSWER="help_bubble",Pa.QUESTION_CIRCLE="help_circle",Pa.QUEUE_PLAY_LAST="queue_last",Pa.QUOTATION_MARK="quote",Pa.RADAR_LIVE="live",Pa.REMOVE=
"minus_circle",Pa.REMOVE_CIRCLE="minus_circle",Pa.REMOVE_CIRCLE_OUTLINE="minus_circle",Pa.REMOVE_FROM_HISTORY="minus_circle",Pa.REMOVE_FROM_PLAYLIST="minus_circle",Pa.REPLAY="arrow_counterclockwise",Pa.REPLAY_ARROW="replay",Pa.REPORT_PROBLEM="alert_triangle",Pa.RSS_OFF="rss_slash",Pa.SAD="face_sad",Pa.SAVE_PLAYLIST="bookmark",Pa.SCHEDULE="clock",Pa.SCHOOL="graduation_cap",Pa.SCREEN_DEFAULT="player_default",Pa.SCREEN_FULLSCREEN="player_full_enter",Pa.SCREEN_LIGHT="ambient_mode",Pa.SCREEN_SWITCH="player_switch",
Pa.SEARCH_CAIRO="search",Pa.SEARCH_HISTORY="history",Pa.SELL="price_tag",Pa.SETTINGS="gear",Pa.SETTINGS_CAIRO="gear",Pa.SETTINGS_LIGHT="gear",Pa.SETTINGS_MATERIAL="gear",Pa.SETTINGS_REMOTE="remote_waves",Pa.SHARE="share",Pa.SHARE_ARROW="share",Pa.SHARE_CAIRO="share",Pa.SHIELD="shield_x",Pa.SHIELD_OFF="shield_slash",Pa.SHIELD_WITH_AVATAR="person_shield",Pa.SHOPPING_BAG="bag",Pa.SHOPPING_BAG_CAIRO="bag",Pa.SHOPPING_CART="cart",Pa.SHORTS_COMMENT="text_bubble",Pa.SHORTS_DISLIKE="thumb_down",Pa.SHORTS_LIKE=
"thumb_up",Pa.SHORTS_SHARE="share",Pa.SLASH_CIRCLE_RIGHT="circle_slash",Pa.SLOW_MODE_OFF="text_bubble",Pa.SOCIAL="person_child",Pa.SPARKLE="sparkles",Pa.SPARK_IMAGE="image_spark",Pa.SPARK_RADAR="spark_waves",Pa.SPARK_VIDEO="video_spark",Pa.SPEAKER_GROUP="speaker_stack",Pa.SPEAKER_OFF="speaker_slash",Pa.SPEED_1X="n1x",Pa.SPEED_1_POINT_2X="n1point2x",Pa.SPEED_1_POINT_5X="n1point5x",Pa.SPEED_1_POINT_8X="n1point8x",Pa.SPEED_2X="n2x",Pa.SPONSORSHIP_STAR="memberships",Pa.SPORTS="basketball",Pa.SPOTLIGHT=
"spotlight",Pa.STAFF_PICK="spotlight",Pa.START_DVR="add",Pa.STAR_BORDER="star",Pa.STAR_HALF="star_half_filled",Pa.STAR_SHOOTING="hype",Pa.STICKER="sticker",Pa.STICKER_EMOTICON="face_happy",Pa.STOP_DVR="stop",Pa.SUBSCRIBE="youtube",Pa.SUBSCRIBE_PLUS="add",Pa.SUBSCRIPTION_MANAGER="gear",Pa.SUPERSTAR="super_star",Pa.SUPERVISOR_ACCOUNT="person_child",Pa.SWAP_HORIZ="arrow_swap_horizontal",Pa.SWITCH_ACCOUNTS="person_square_stack",Pa.TAB_ACCOUNT="person",Pa.TAB_ACTIVITY="bell",Pa.TAB_EXPLORE="compass",Pa.TAB_HOME=
"home",Pa.TAB_HOME_CAIRO="home",Pa.TAB_INBOX="mail",Pa.TAB_LIKED="thumb_up",Pa.TAB_MUSIC_PREMIUM="youtube_music",Pa.TAB_SHORTS="shorts",Pa.TAB_SHORTS_CAIRO="shorts",Pa.TAB_SUBSCRIPTIONS="subscriptions",Pa.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Pa.TAB_TRENDING="trending",Pa.TARGET="target",Pa.TARGET_ADD="target_add",Pa.TEMPLATE_ADD="template_add",Pa.TEXT="font",Pa.TIMER="stopwatch",Pa.TRENDING_CAIRO="trending",Pa.TRENDING_UP="arrow_trend_up",Pa.TROPHY_CAIRO="trophy",Pa.TROPHY_CELEBRATIONS="fireworks",
Pa.TROPHY_STAR="star_trophy",Pa.TUNE="adjust",Pa.UNBLOCK_USER="minus_circle",Pa.UNLIMITED="youtube",Pa.UNPLUGGED_LIVE_GUIDE="live",Pa.UNPLUGGED_SPORTS="eye_slash",Pa.UPLOADS="play_square_stack",Pa.UP_ARROW="arrow_up",Pa.VERTICAL_ALIGN_BOTTOM="download",Pa.VERY_HAPPY="face_very_happy",Pa.VERY_SAD="face_very_sad",Pa.VIDEOS="play_circle",Pa.VIDEO_CALL="video_camera_add",Pa.VIDEO_LIBRARY_WHITE="play_square_stack",Pa.VIDEO_QUALITY_4K="n4k",Pa.VIDEO_QUALITY_8K="n8k",Pa.VIDEO_YOUTUBE="youtube",Pa.VIEW_LIST_CAIRO=
"view_list",Pa.VIEW_MODULE="view_column3_row2",Pa.VISIBILITY="eye",Pa.VISIBILITY_OFF="eye_slash",Pa.VOLUME_DOWN="volume_min",Pa.VOLUME_MUTE="volume_mute",Pa.VOLUME_OFF="volume_mute",Pa.VOLUME_STABLE="stable_volume",Pa.VOLUME_UP="volume_max",Pa.WALLPAPER="image",Pa.WARNING="alert_triangle",Pa.WATCH_HISTORY="history",Pa.WATCH_HISTORY_CAIRO="history",Pa.WATCH_LATER="clock",Pa.WATCH_LATER_CAIRO="clock",Pa.WATCH_RELATED_MIX="mix",Pa.WHAT_TO_WATCH="home",Pa.YOUTUBE_LINKED_TV="tv_mobile",Pa.YOUTUBE_MUSIC_MONOCHROME=
"youtube_music",Pa.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Pa.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Pa.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Pa.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Pa.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Pa.YOUTUBE_SHORTS_OUTLINE_24="shorts",Pa);var Ozh={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,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,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,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,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,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,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,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,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,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,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,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,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,1,24]],bell:[[0,8,24],[1,8,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,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,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]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,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,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,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,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,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,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,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,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,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,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,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,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,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,1,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,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,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,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,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,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,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,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,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_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,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,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,1,24]],move:[[1,1,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,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,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,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,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,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,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,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[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,1,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,3,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,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,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,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,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,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,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,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,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]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,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,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,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,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,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,5,24],[1,5,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,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var oV5={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var nh=function(B){this.iconUrlProvider=B};
nh.prototype.resolveIcon=function(B,R){var V=B.iconName;V=V.replace(/-/g,"_");B=Object.assign({},B,{iconName:this.mapIconTypeToStandardName(V)||V.toLowerCase()});if(_.k("enable_web_delhi_icons")){var e;return ZBu(oV5,B,((e=this.iconUrlProvider)==null?void 0:e.getYtStandardUrl)||Ctu,R)}var X;return ZBu(Ozh,B,((X=this.iconUrlProvider)==null?void 0:X.getYtStandardUrl)||$zd,R)};
nh.prototype.mapIconTypeToStandardName=function(B){return _.k("enable_web_delhi_icons")?uL5[B.toUpperCase()]:nw4[B.toUpperCase()]};
nh[na]=[_.uj($HR)];var Byh=function(B){this.urlProvider=this.iconUrlProvider=B};
_.l(Byh,nh);
Byh.prototype.resolveIcon=function(B,R){B.iconName==="youtube_logo"&&(B.iconName="yt-logo-updated");if(B.iconName==="youtube_premium_logo"||B.iconName==="youtube_red_logo")B.iconName="yt-logo-red-updated";var V=Object.assign({},B);B.iconName==="menu"&&(_.k("enable_web_delhi_icons")||(V.iconName="bars_3"),V.iconStyle="youtube_outline");B.iconName==="youtube_music"&&(V.iconStyle="youtube_fill");B.iconName==="mail"&&B.iconSetName==="socialNetworksRound"&&(V.iconName="email");B.iconName==="more"&&(V.iconName=
"overflow_horizontal");B.iconName==="fullscreen"&&(V.iconName="screen_full");if(B.iconName==="play_all"||B.iconName==="play_arrow")V.iconStyle="youtube_fill";B.iconName==="premium_standalone"&&(V.iconName="premium_standalone_cairo");_.k("enable_connect_icon_update_web")&&B.iconName==="account_linked"&&(V.iconName="circles_overlap_check",V.iconStyle="youtube_fill");_.k("enable_connect_icon_update_web")&&B.iconName==="account_unlinked"&&(V.iconName="circles_overlap",V.iconStyle="youtube_outline");B=
Object.assign({},V,{iconName:(nh.prototype.mapIconTypeToStandardName.call(this,V.iconName)||V.iconName).toLowerCase()});var e;return(B=ZBu(ZzT,B,((e=this.urlProvider)==null?void 0:e.getUrl)||PtI,R))?B:nh.prototype.resolveIcon.call(this,V,R)};
Byh[na]=[_.uj($HR)];_.R_l=1;var uq=function(){};
_.l(uq,d$);uq.prototype.resolveCommand=function(B){var R,V;return _.W(function(e){R=_.D(B,f45);if(!R)return e.return();V=Number(R.enableDelayedPacfLoggingTvMs);if(isNaN(V)){var X=o3();LiJ(X,R,0)}else LiJ(o3(),R,V);_.b3(e)})};_.Ol=function(){};
_.l(_.Ol,d$);
_.Ol.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G;return _.W(function(y){e=_.D(B,l4v);Y=(X=R.form)==null?void 0:X.element;b=(t=Y)==null?void 0:t.closest("ytd-enforcement-message-view-model");if(!e||!b)return y.return();V.allowAdsAction||(J=e.fundingChoiceInstructionPageUrl,V.allowAdsAction=new OdS(window,_.wV(J)));var S=V.allowAdsAction;S.wallElement=b;S.allowAdsPopup.style.setProperty("display","flex","important");var M=S.scrollManager;M.originalBodyOverflow=M.JSC$7908_domHelper.JSC$7233_document_.body.style.overflow;M.JSC$7908_domHelper.JSC$7233_document_.body.style.overflow=
"hidden";S.wallElement.style.setProperty("display","none","important");bdv(S.accessibilityManager,S.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((G=V.allowAdsAction.allowAdsPopup)&&G instanceof HTMLElement)for(S=_.h(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),M=S.next();!M.done;M=S.next()){var f=_.h(M.value);M=f.next().value;f=f.next().value;G.style.setProperty(M,f)}_.b3(y)})};
_.Ol.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var oR=function(){};
_.l(oR,d$);oR.prototype.resolveCommand=function(B){var R;return _.W(function(V){R=_.D(B,K8o);if(!R)return V.return();s1x(B);_.b3(V)})};var Be=function(B){this.JSC$14971_commandHandler=B};
_.l(Be,d$);
Be.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t,b,J,G;return _.W(function(y){if(y.nextAddress==1){V=_.D(B,p9_);if((e=V)==null||!e.text||!navigator.clipboard)return y.return();_.en(y,2);return _.U(y,navigator.clipboard.writeText(V.text),4)}if(y.nextAddress!=2){if(!V.successActions||V.successActions.length===0)return y.return();X=_.h(V.successActions);for(Y=X.next();!Y.done;Y=X.next())t=Y.value,R.JSC$14971_commandHandler.resolveCommand(t);return _.c8(y,0)}_.WR(y);if(!V.failureActions||V.failureActions.length===
0)return y.return();b=_.h(V.failureActions);for(J=b.next();!J.done;J=b.next())G=J.value,R.JSC$14971_commandHandler.resolveCommand(G);_.b3(y)})};
Be[na]=[_.oC];var RR=function(B){this.JSC$14975_commandHandler=B};
_.l(RR,d$);
RR.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S,M;return _.W(function(f){switch(f.nextAddress){case 1:e=_.D(B,it_);if(!e)return f.return();_.en(f,2);if(!e.imageBytes&&!e.imageUrl)throw Error("wi");if(!e.imageUrl){if(e.imageBytes){Y=e.imageBytes;t=Y.replace(/-/g,"+").replace(/_/g,"/");var z=u9q(t);X=_.S4(z)}f.jumpTo(4);break}return _.U(f,fetch(e.imageUrl),5);case 5:return b=f.yieldResult,_.U(f,b.blob(),6);case 6:J=f.yieldResult,X=_.S4(J);case 4:S=(G=R)==null?void 0:(y=G.form)==
null?void 0:y.element;M=document.createElement("a");f$(M,X);S.appendChild(M);M.download="";M.click();S.removeChild(M);URL.revokeObjectURL(_.j4(X));e.successCommand&&V.JSC$14975_commandHandler.resolveCommand(e.successCommand);_.c8(f,0);break;case 2:_.WR(f),e.errorCommand&&V.JSC$14975_commandHandler.resolveCommand(e.errorCommand),_.b3(f)}})};
RR[na]=[_.oC];var VS=function(B){this.store=B};
_.l(VS,d$);VS.prototype.resolveCommand=function(B){var R=this,V,e,X;return _.W(function(Y){e=(V=_.D(B,_.HT2))==null?void 0:V.entityBatchUpdate;if(!e)return Y.jumpTo(0);X=Object.assign({},e,{mutations:[].concat(_.MI(e.mutations||[]))});return _.U(Y,_.bz(X,R.store),0)})};var VtT=function(B){this.JSC$14982_commandHandler=B;this.feedbackDialogMap=new Map};
VtT.prototype.openDialog=function(B,R){(B=this.feedbackDialogMap.get(B))&&this.JSC$14982_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:B}},R)};
VtT[na]=[_.oC];var ey=new _.u0("FEEDBACK_CONTROLLER_TOKEN");var p2=new _.u0("APP_STORE_TOKEN");var Y9=function(B,R){this.store=B;this.controller=R};
_.l(Y9,d$);Y9.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m;return _.W(function(g){if(g.nextAddress==1){e=_.D(B,_.Ki);if(Y=(X=e)==null?void 0:X.contentId)for(b=_.h(((t=e)==null?void 0:t.actions)||[]),J=b.next();!J.done;J=b.next())G=J.value,e_o(V,G,Y);M=(y=R)==null?void 0:(S=y.form)==null?void 0:S.element;return _.U(g,_.VD(M,[B]).catch(function(){}),2)}f=g.yieldResult;
((z=f)==null?0:(T=z.data)==null?0:(L=T.feedbackResponses)==null?0:L.length)&&(q=(Q=f.data.feedbackResponses[0])==null?void 0:Q.followUpDialog)&&Y&&(m=V.controller)!=null&&m.feedbackDialogMap.set(Y,q);_.b3(g)})};
var e_o=function(B,R,V){var e=_.D(R,_.p0);if(e){e=_.h(e.commands||[]);for(var X=e.next();!X.done;X=e.next())e_o(B,X.value,V)}_.D(R,_.ki)&&B.store.dispatch(_.SX("commandEntity",qv5(V),{key:V,command:R}));_.D(R,ko4)&&B.store.dispatch(_.SX("commandEntity",qv5(V),{key:V,command:R}))};
Y9[na]=[p2,ey];var hN=function(B){this.controller=B};
_.l(hN,d$);hN.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t;return _.W(function(b){e=_.D(B,_.c5);Y=(X=e)==null?void 0:X.targetId;if(((t=e)==null?void 0:t.signal)!=="TELL_US_WHY"||!Y)return b.return();V.controller.openDialog(Y,R);_.b3(b)})};
hN[na]=[ey];var tN=function(B){this.store=B};
_.l(tN,d$);tN.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G;return _.W(function(y){e=_.D(B,tLo);Y=(X=e)==null?void 0:X.contentId;J=(t=R)==null?void 0:(b=t.form)==null?void 0:b.element;G=_.VD(J,[B]);Y&&V.undo(Y);return _.U(y,G,0)})};
tN.prototype.undo=function(B){this.store.dispatch(_.SX("commandEntity",qv5(B),{key:B,command:void 0}))};
tN[na]=[p2];var We=function(B){this.JSC$14997_commandHandler=B};
_.l(We,d$);We.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t,b,J,G;return _.W(function(y){V=_.D(B,E3R);e=V.flowStateKey;X=V.validationFailureCommand;Y=V.submitValidFormCommand;t=qU(_.XM,[e||""]);b=_.D(t,qnh);((J=b)==null?0:J.isValid)&&Y&&R.JSC$14997_commandHandler.resolveCommand(Y);((G=b)==null?0:G.isValid)||!X||R.JSC$14997_commandHandler.resolveCommand(X);_.b3(y)})};
We[na]=[_.oC];var bw=function(B){this.innertubeTransportService=B};
_.l(bw,d$);bw.prototype.resolveCommand=function(B,R){var V=this,e;return _.W(function(X){return _.U(X,_.cr(V.innertubeTransportService,B,(e=R)==null?void 0:e.form).then(function(Y){var t,b;R==null||(t=R.commandController)==null||(b=t.onSuccess)==null||b.call(t,B,Y)},function(Y){var t,b;
R==null||(t=R.commandController)==null||(b=t.onServerError)==null||b.call(t,B,Y)}),0)})};
bw[na]=[_.M1];var JN=function(){};
_.l(JN,d$);JN.prototype.resolveCommand=function(B){var R,V,e,X;return _.W(function(Y){if(R=_.D(B,_.Ff4)){if(V=R.gtmId)e=_.vE("GL",""),_.Nq(V,e);(X=R.gtmData)&&_.Gk(X)}_.b3(Y)})};var jy=function(B,R){this.innertubeTransportService=B;this.JSC$15008_actionRouter=R};
_.l(jy,d$);jy.prototype.resolveCommand=function(B){var R=this,V,e;return _.W(function(X){V=_.D(B,gU4);if(!V)return X.return();e=V.command;if(!e)return X.return();R.JSC$15008_actionRouter.triggerAction("yt-insert-rich-section-action",V);return _.U(X,_.cr(R.innertubeTransportService,e,{disableCache:!0}),0)})};
jy[na]=[_.M1,Ct];oh_.bind(null,w$);var Xih=oh_.bind(null,CZa);RhN.bind(null,w$);var pi2=RhN.bind(null,CZa);Xpp.bind(null,w$);var YUv=Xpp.bind(null,CZa);var U1=function(){};
_.l(U1,d$);
U1.prototype.resolveCommand=function(B){var R,V,e,X,Y,t,b,J,G,y;return _.W(function(S){R=_.D(B,M9G);if(!R)return S.return();e=((V=R.operations)==null?void 0:V.operations)||[];X=_.h(e);for(Y=X.next();!Y.done;Y=X.next())if(t=Y.value,t.insertItemSectionContent){var M=t.insertItemSectionContent,f=M.contents||[];M.insertByPositionInSection?Xih(M.insertByPositionInSection.sectionTargetId,f,M.insertByPositionInSection.position):M.insertByRelativePositionInSection&&M.insertByRelativePositionInSection.sectionTargetId&&M.insertByRelativePositionInSection.itemTargetId&&
pi2(M.insertByRelativePositionInSection.sectionTargetId,M.insertByRelativePositionInSection.itemTargetId,f,M.insertByRelativePositionInSection.relativePosition)}else t.replaceSection?(M=t.replaceSection,f={},M.replaceByTargetId?f=M.replaceByTargetId:M.replaceByGroupId&&(f={targetId:M.replaceByGroupId.groupId,newContent:M.replaceByGroupId.newContent,undoKey:""}),f.newContent&&u$4(f.targetId,{continuationItems:[f.newContent]})):t.removeItem?(M=t.removeItem,M.removeByTargetId&&M.sectionTargetId&&YUv(M.sectionTargetId,
M.removeByTargetId.targetIds||[])):t.removeSection&&(t.removeSection.removeByTargetId?(b=void 0,h__(((b=t.removeSection)==null?void 0:b.removeByTargetId.targetIds)||[])):t.removeSection.removeByGroupId&&(J=void 0,h__(((J=t.removeSection)==null?void 0:J.removeByGroupId.groupIds)||[])));y=((G=R.operations)==null?void 0:G.scrollConfig)||{};tto(y);_.b3(S)})};
var h__=function(B){B=_.h(B);for(var R=B.next();!R.done;R=B.next())u$4(R.value,{continuationItems:[]})},tto=function(B){if(B.scrollToItem){var R=B.scrollToItem.item||{},V=R.itemTargetId;
R=R.sectionTargetId;if(V&&R){var e=document.querySelector("[data-target-id="+R+"]"),X=e==null?void 0:e.querySelector("[data-target-id="+V+"]");e&&X&&setTimeout(function(){var Y=X.offsetTop-e.offsetTop,t;if(((t=B.scrollToItem)==null?void 0:t.scrollPosition)==="SCROLL_POSITION_CENTER")Y-=e.offsetHeight/2,Y+=X.offsetHeight/2;else{var b;((b=B.scrollToItem)==null?void 0:b.scrollPosition)==="SCROLL_POSITION_END"&&(Y-=e.offsetHeight,Y+=X.offsetHeight)}e.scroll({top:Y,behavior:"smooth"})},100)}}};var Nc=new _.u0("CLIENT_NAME_TOKEN");var WXa=new _.u0("DEFAULT_STORE_EXPIRATION_TOKEN");var aRI=new _.u0("CLIENT_LOCATION_SERVICE_TOKEN");var Gu=function(B,R,V){this.clientName=B||_.vE("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=R||_.IG.getInstance();this.JSC$15036_commandHandler=V||_.eR.instance};
_.l(Gu,d$);Gu.prototype.resolveCommand=function(B){var R=this,V,e;return _.W(function(X){e=(V=_.D(B,TUJ))==null?void 0:V.onComplete;R.clientLocationService.clearLocationPlayabilityToken(R.clientName);e&&R.JSC$15036_commandHandler.resolveCommand(e);_.b3(X)})};
Gu[na]=[Nc,aRI,_.oC];var yS=function(B){this.innertubeTransportService=B};
_.l(yS,d$);yS.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t;return _.W(function(b){Y=(e=R)==null?void 0:(X=e.form)==null?void 0:X.element;return _.U(b,_.cr(V.innertubeTransportService,B,(t=R)==null?void 0:t.form).then(function(J){$co(Y,new CustomEvent("yt-service-request-completed"),{data:J},_.vE("openPopupConfig"))}),0)})};
yS[na]=[_.M1];var Sy=function(){};
_.l(Sy,d$);Sy.prototype.resolveCommand=function(B){var R,V;return _.W(function(e){R=_.D(B,sB_);V=document.querySelector("mini-app-container-view-model");if(!R||!V)return e.return();R.isPlaying?V.dispatchEvent(new Event("play")):V.dispatchEvent(new Event("pause"));_.b3(e)})};var He=function(){};
_.l(He,d$);He.prototype.resolveCommand=function(B){var R,V,e,X,Y,t,b;return _.W(function(J){R=_.D(B,Q8_);if((V=R)==null||!V.paramKeys)return J.return();e=R.paramKeys;X=_.q2(window.location.href);Y=_.h(e);for(t=Y.next();!t.done;t=Y.next())b=t.value,X.JSC$7940_queryData_.remove(b);window.history.replaceState(window.history.state,document.title,X.toString());_.b3(J)})};var bK2=function(){this.dropdownMap=new Map};_.J64=new _.u0("DROPDOWN_CONTROLLER_TOKEN");var Mc=function(B){this.controller=B};
_.l(Mc,d$);Mc.prototype.resolveCommand=function(B){var R=this,V,e,X,Y;return _.W(function(t){V=_.D(B,Ge5);if(!V)return t.return();e=V;X=e.dropdownId;Y=e.selectedOptionIndex;if(X===void 0||Y===void 0)return t.return();var b=R.controller.dropdownMap.get(X);b&&b(Y);_.b3(t)})};
Mc[na]=[_.J64];var k9=function(B){this.controller=B};
_.l(k9,d$);k9.prototype.resolveCommand=function(B){var R=this,V;return _.W(function(e){return(V=_.D(B,qeT))?_.U(e,R.controller.closeDialog(),0):e.return()})};
k9[na]=[_.M3];var Dl=function(B){this.controller=B};
_.l(Dl,d$);Dl.prototype.resolveCommand=function(B){var R=this,V,e;return _.W(function(X){V=_.D(B,ScR);if(!V)return X.return();var Y,t=V.panelIdentifier||((Y=V.identifier)==null?void 0:Y.tag);if(!t)throw Error("xi");return(e=t)?_.U(X,R.controller.hidePanel(e),0):X.jumpTo(0)})};
Dl[na]=[_.Sf];var f2=function(B,R){this.innertubeTransportService=B;this.controller=R};
_.l(f2,d$);f2.prototype.resolveCommand=function(B){var R=this,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return V=_.D(B,Hg2),(e=V)!=null&&e.panelId?_.U(t,R.controller.getReloadContinuation(V.panelId),2):t.return();if(t.nextAddress!=3)return(X=t.yieldResult)?_.U(t,_.cr(R.innertubeTransportService,B,{continuation:X}),3):t.return();Y=t.yieldResult;return _.U(t,R.controller.updatePanel(V.panelId,Y.content,!1),0)})};
f2[na]=[_.M1,_.Sf];var lw=function(B,R,V){this.innertubeTransportService=B;this.JSC$15072_screenManager=R;this.JSC$15072_commandHandler=V};
_.l(lw,d$);
lw.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t,b;return _.W(function(J){if(J.nextAddress==1){V=_.D(B,_.tHa);if(!V)return J.return();if(V.commands)for(e=_.h(V.commands),X=e.next();!X.done;X=e.next())Y=X.value,R.JSC$15072_commandHandler.resolveCommand(Y,{disableClickTracking:!0});t=_.U5(B.clickTrackingParams);_.py(R.JSC$15072_screenManager,21760,t,{layer:7,parentLayer:0});return _.U(J,_.cr(R.innertubeTransportService,B),2)}b=J.yieldResult;if(!b)return J.return();R.JSC$15072_screenManager.graftServerVe(b.trackingParams,t,
7);_.b3(J)})};
lw[na]=[_.M1,_.jj,_.oC];var zu=new _.u0("PANEL_LOADING_STRATEGY_TOKEN");var aR=function(B,R){this.controller=B;this.panelLoadingStrategy=R};
_.l(aR,d$);
aR.prototype.resolveCommand=function(B,R){var V=this,e,X,Y;return _.W(function(t){e=_.D(B,B3_);if((X=e)==null||!X.panelLoadingStrategy)return t.return();Y=function(b){var J,G,y,S,M,f,z,T,L;return _.W(function(Q){G=_.D((J=b.dialogViewModel)==null?void 0:J.header,yy_);y={viewModel:b.dialogViewModel};S={};if(z=_.k("web_enable_dialog_header_label")?(M=G)==null?void 0:(f=M.headline)==null?void 0:f.content:void 0)S.ariaLabel=z;e.dismissOnBackgroundTap===!1&&(S.isModal=!0);return b.dialogViewModel?_.U(Q,
V.controller.openDialog(y,(T=R)==null?void 0:(L=T.form)==null?void 0:L.element,S),0):Q.return()})};
return _.U(t,V.panelLoadingStrategy.execute({command:B,data:e.panelLoadingStrategy,renderFn:Y,createScreenConfig:{layer:4}}),0)})};
aR[na]=[_.M3,zu];var dd=function(B,R,V){this.innertubeTransportService=B;this.controller=R;this.JSC$15092_screenManager=V};
_.l(dd,d$);
dd.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S,M,f,z;return _.W(function(T){switch(T.nextAddress){case 1:e=_.D(B,_.vS);if(!e)return T.return();var L,Q=e.panelIdentifier||((L=e.identifier)==null?void 0:L.tag);if(!Q)throw Error("xi");X=Q;return _.U(T,V.controller.isVisible(X,!0),2);case 2:if((Y=T.yieldResult)&&e.blockIfPanelOpen)return T.return();J=(b=(t=V.controller).getPanelContent)==null?void 0:b.call(t,X);if(!(L=J))if(e){var q;L=((q=e.globalConfiguration)==null?void 0:q.initialState)||
e.engagementPanel;if(q=!L)q=!!(e==null?0:(Q=e.engagementPanelPresentationConfigs)==null?0:Q.engagementPanelPopupPresentationConfig);q&&(L=_.ppI(e.panelIdentifier,e.identifier))}else L=void 0;G=L;y=e.engagementPanelPresentationConfigs;S=e.engagementPanelExtras;return _.U(T,V.controller.showPanel(X,G,y,S,(M=R)==null?void 0:(f=M.form)==null?void 0:f.element),3);case 3:if(!e.globalConfiguration){T.jumpTo(0);break}_.py(V.JSC$15092_screenManager,32633);return _.U(T,_.cr(V.innertubeTransportService,B),5);
case 5:return z=T.yieldResult,V.JSC$15092_screenManager.graftServerVe(z.trackingParams),_.U(T,V.controller.updatePanel(X,z.content,!0,S,void 0,z.updatePanelContinuationData),0)}})};
dd[na]=[_.M1,_.Sf,_.jj];var wd=function(B,R){this.controller=B;this.panelLoadingStrategy=R};
_.l(wd,d$);wd.prototype.resolveCommand=function(B,R){var V=this,e,X,Y;return _.W(function(t){e=_.D(B,_.H7);if((X=e)==null||!X.panelLoadingStrategy)return t.return();Y=function(b){var J,G;return _.W(function(y){return b.sheetViewModel?_.U(y,V.controller.openSheet({viewModel:b.sheetViewModel},(J=R)==null?void 0:(G=J.form)==null?void 0:G.element),0):y.return()})};
return _.U(t,V.panelLoadingStrategy.execute({command:B,data:e.panelLoadingStrategy,renderFn:Y,createScreenConfig:{layer:0}}),0)})};
wd[na]=[_.HO,zu];var Tu=function(B,R){this.controller=B;this.JSC$15100_commandHandler=R};
_.l(Tu,d$);Tu.prototype.resolveCommand=function(B,R){var V=this,e,X,Y;return _.W(function(t){if(t.nextAddress==1){e=_.D(B,fAR);var b=_.D(e.showCommand,_.vS),J,G,y=(G=b==null?void 0:b.panelIdentifier)!=null?G:b==null?void 0:(J=b.identifier)==null?void 0:J.tag;if(!y)throw Error("yi");X=y;return _.U(t,V.controller.isVisible(X),2)}return(Y=t.yieldResult)?_.U(t,V.controller.hidePanel(X),0):_.U(t,V.JSC$15100_commandHandler.resolveCommand(e.showCommand,R),0)})};
Tu[na]=[_.Sf,_.oC];var x9=function(B,R,V){this.innertubeTransportService=B;this.controller=R;this.JSC$15103_screenManager=V};
_.l(x9,d$);
x9.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu,n,Yd;return _.W(function(kd){switch(kd.nextAddress){case 1:return e=V=_.D(B,lr5),X=e.targetPanelIdentifier,Y=e.contentSourcePanelIdentifier,t=e.globalConfiguration,((b=X)==null?0:b.tag)&&((J=Y)==null?0:J.tag)?t?_.U(kd,R.controller.showPanel(X.tag,_.ppI(X.tag,X),void 0,void 0,void 0),5):_.U(kd,(M=(S=R.controller).getPanel)==null?void 0:M.call(S,Y.tag),4):kd.return();case 4:f=kd.yieldResult;G=(z=f)==null?void 0:
(L=(T=z).getPanelContent)==null?void 0:L.call(T);kd.jumpTo(3);break;case 5:return _.U(kd,_.cr(R.innertubeTransportService,B),6);case 6:Q=kd.yieldResult,((q=Q)==null?0:q.trackingParams)&&R.JSC$15103_screenManager.graftServerVe(Q.trackingParams),G=(m=Q)==null?void 0:m.content,y=(g=Q)==null?void 0:g.updatePanelContinuationData;case 3:if(n=(Vu=G)==null?void 0:Vu.engagementPanelSectionListRenderer)return _.U(kd,R.controller.showPanel(X.tag,void 0,void 0,void 0,void 0,{content:n.content,secondaryHeaderContent:(Yd=
n.header)!=null?Yd:{},targetId:n.targetId},y),0);kd.jumpTo(0)}})};
x9[na]=[_.M1,_.Sf,_.jj];var L2=function(B,R){this.JSC$15111_commandHandler=B;this.store=R};
_.l(L2,d$);L2.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t;return _.W(function(b){if(b.nextAddress==1)return(V=_.D(B,E$l))?_.U(b,_.pO(),2):b.return();e=b.yieldResult;if(!e)return b.return();tUp(e,R.store,(X=V)==null?void 0:X.languageCode);Y=e.isSubtitlesOn()?_.Wz("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.Wz("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");t=_.$G(Y);R.JSC$15111_commandHandler.resolveCommand(t);_.b3(b)})};
L2[na]=[_.oC,Jn];var ve=function(B,R){this.shortsPlayerPromise=B;this.JSC$15115_commandHandler=R};
_.l(ve,d$);
ve.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t,b,J,G;return _.W(function(y){if(y.nextAddress==1)return(V=_.D(B,nX4))?_.U(y,R.shortsPlayerPromise,2):y.return();e=y.yieldResult;var S=WUd(e);S!=null&&S.length||(e.loadModule("captions"),S=WUd(e));X=S;if((Y=X)==null||!Y.length)return t=_.Wz("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),b=_.$G(t),R.JSC$15115_commandHandler.resolveCommand(b),y.return();e.toggleSubtitles();J=e.isSubtitlesOn()?_.Wz("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Wz("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");G=_.$G(J);R.JSC$15115_commandHandler.resolveCommand(G);_.b3(y)})};
ve[na]=[_.v24,_.oC];var K2=function(B){this.JSC$15118_playerPromise=B};
_.l(K2,d$);K2.prototype.resolveCommand=function(B){var R=this,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return(V=_.D(B,kA4))?_.U(t,R.JSC$15118_playerPromise,2):t.return();e=t.yieldResult;X=e.getVideoData().video_id;V.videoId===X&&(Y=Number(V.offsetFromVideoStartMilliseconds),Y>=0&&e.seekTo(Y/1E3));_.b3(t)})};
K2[na]=[_.B7];var jz2=_.XF("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),IR=function(B){this.store=B};
_.l(IR,d$);
var UQT=function(B){var R,V,e,X;return _.W(function(Y){if(Y.nextAddress==1)return R=_.vE("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,V=_.vE("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,e=R||V,B.mainAppPlayer=new iT(e),_.U(Y,B.mainAppPlayer.api,2);X=Y.yieldResult;X.addEventListener("onStateChange",B.JSC$15122_playerStateChangeListener.bind(B));document.addEventListener("yt-page-data-updated",B.pauseOnNavigation.bind(B));window.addEventListener("state-navigatestart",
B.pauseOnNavigation.bind(B));_.b3(Y)})};
IR.prototype.JSC$15122_playerStateChangeListener=function(B){switch(B){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"}NyS(this)};
var NyS=function(B){B.store.dispatch(_.SX("sfvAudioItemCurrentlyPlayingEntity",jz2,{key:jz2,externalVideoId:B.externalVideoId,sfvAudioItemPlaybackState:B.playbackState,nowPlayingEntityValue:B.nowPlayingEntityValue}))};
IR.prototype.pauseOnNavigation=function(){var B=this,R,V,e,X;return _.W(function(Y){if(Y.nextAddress==1){if(!B.mainAppPlayer){var t=new _.H8("Error: mainAppPlayer is unavailable",B.mainAppPlayer);_.Tn(t);return Y.return()}return _.U(Y,B.mainAppPlayer.api,2)}R=Y.yieldResult;e=(V=R)==null?void 0:V.getPlayerState();e!==1||(X=R)!=null&&X.pauseVideo();_.b3(Y)})};
IR.prototype.playVideo=function(B,R,V){var e=this,X,Y;return _.W(function(t){if(t.nextAddress==1)return _.U(t,(X=e.mainAppPlayer)==null?void 0:X.api,2);Y=t.yieldResult;if(!e.mainAppPlayer||!Y){var b=new _.H8("Error: mainAppPlayer is unavailable",e.mainAppPlayer);_.Tn(b);return t.return()}return _.U(t,e.mainAppPlayer.loadVideoWithPlayerVars({videoId:e.externalVideoId,audio_only:"1",start:B/1E3,end:B/1E3+R,player_params:V}),0)})};
IR.prototype.pauseVideo=function(){var B=this,R,V;return _.W(function(e){if(e.nextAddress==1){if(!B.mainAppPlayer){var X=new _.H8("Error: mainAppPlayer is unavailable",B.mainAppPlayer);_.Tn(X);return e.return()}return _.U(e,B.mainAppPlayer.api,2)}R=e.yieldResult;(V=R)==null||V.pauseVideo();_.b3(e)})};
IR.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g;return _.W(function(Vu){if(Vu.nextAddress==1)return V=_.D(B,m74),X=(e=V)==null?void 0:e.nowPlayingEntityValue,t=(Y=V)==null?void 0:Y.externalVideoId,S=Number((y=(b=V)==null?void 0:(J=b.defaultStartPoints)==null?void 0:(G=J[0])==null?void 0:G.offsetMs)!=null?y:"0"),Q=Number((L=(M=V)==null?void 0:(f=M.defaultStartPoints)==null?void 0:(z=f[0])==null?void 0:(T=z.duration)==null?void 0:T.seconds)!=null?L:"15"),g=(m=
(q=V)==null?void 0:q.playerParams)!=null?m:"",X&&t?R.mainAppPlayer?Vu.jumpTo(2):_.U(Vu,UQT(R),2):Vu.return();if(Vu.nextAddress!=6){if(R.nowPlayingEntityValue&&X===R.nowPlayingEntityValue)return R.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.U(Vu,R.pauseVideo(),0):_.U(Vu,R.playVideo(S,Q,g),0);R.externalVideoId=t;R.nowPlayingEntityValue=X;R.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.U(Vu,R.playVideo(S,Q,g),6)}NyS(R);return Vu.jumpTo(0)})};
IR[na]=[Jn];var E1=function(B){this.JSC$15139_commandHandler=B};
_.l(E1,d$);E1.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b;return _.W(function(J){if(J.nextAddress==1)return(e=_.D(B,Qj2))?_.U(J,_.pO(),2):J.return();X=J.yieldResult;if(!X)return J.return();(Y=UFp(X))?V.JSC$15139_commandHandler.resolveCommand(Y,R):(t=_.Wz("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),b=_.$G(t),V.JSC$15139_commandHandler.resolveCommand(b));_.b3(J)})};
E1[na]=[_.oC];var QS=function(B){this.JSC$15142_playerPromise=B};
_.l(QS,d$);QS.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t;return _.W(function(b){if(b.nextAddress==1){V=_.D(B,DpG);if(!V)return b.return();e=V.overlayRenderer;return e?(X=_.D(e,Lf_))?_.U(b,R.JSC$15142_playerPromise,3):b.jumpTo(0):b.return()}Y=b.yieldResult;Y.renderChapterSeekingAnimation(1,_.FF(X.text),(t=X.icon)==null?void 0:t.iconType);_.b3(b)})};
QS[na]=[_.B7];var qc=function(B){this.store=B};
_.l(qc,d$);
qc.prototype.resolveCommand=function(B){var R=this,V,e,X;return _.W(function(Y){if(Y.nextAddress==1){V=_.D(B,qOT);if(!V)return Y.return();e="";(X=R.store.getState().collabInviteLink)&&V.id===X.playlistId?e=X.inviteLinkURL:V.shortUrl&&(e=V.shortUrl);return e?_.U(Y,navigator.clipboard.writeText(e),3):Y.jumpTo(0)}var t={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Wz("COPY_LINK_SUCCESS_TOAST")}}}}};_.Oz().resolve(_.oC).resolveCommand(t);_.b3(Y)})};
qc[na]=[p2];var ce=function(B,R){this.innertubeTransportService=B;this.JSC$15152_commandHandler=R};
_.l(ce,d$);ce.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S,M;return _.W(function(f){if(f.nextAddress==1)return(e=_.D(B,_.qf))?_.U(f,_.cr(V.innertubeTransportService,B,(X=R)==null?void 0:X.form),2):f.return();(Y=f.yieldResult)&&Y.errorMetadata&&(t=Y,b=_.$G(t.error.message),V.JSC$15152_commandHandler.resolveCommand(b));J=Y;if((G=J)==null?0:G.actions)for(y=_.h(J.actions),S=y.next();!S.done;S=y.next())M=S.value,V.JSC$15152_commandHandler.resolveCommand(M);_.b3(f)})};
ce[na]=[_.M1,_.oC];var AN=function(){};
_.l(AN,d$);AN.prototype.resolveCommand=function(B){var R;return _.W(function(V){R=_.D(B,TE5);if(!R)return V.return();(new D4h(R)).show();_.b3(V)})};_.iw=new _.u0("PLAYLIST_EDIT_CONTROLLER_TOKEN");var s1=function(B,R,V,e){this.store=B;this.innertubeTransportService=R;this.controller=V;this.JSC$15160_commandHandler=e};
_.l(s1,d$);
s1.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu,n,Yd,kd,a5,lo,io,vd;return _.W(function(cd){if(cd.nextAddress==1){e=_.D(B,_.Lt);if(!e)return cd.return();if(e.clientActions){X=_.h(e.clientActions);for(Y=X.next();!Y.done;Y=X.next())t=Y.value,V.JSC$15160_commandHandler.resolveCommand(t);var ES,$d=R==null?void 0:(ES=R.form)==null?void 0:ES.element;$d&&_.OI($d,"yt-dismissible-item-action",e.clientActions)}return _.U(cd,_.cr(V.innertubeTransportService,B,(b=R)==
null?void 0:b.form),2)}if(J=cd.yieldResult)J.errorMetadata?(G=J,y=_.$G(G.error.message),V.JSC$15160_commandHandler.resolveCommand(y),"error"in J&&((S=R)==null?0:(M=S.commandController)==null?0:M.onServerError)&&((f=R)==null||(z=f.commandController)==null||z.onServerError(B,J))):(T=R)==null||(L=T.commandController)==null||(q=(Q=L).onSuccess)==null||q.call(Q,B,J);m=J;((g=m)==null?0:g.collaborationInviteLink)&&e.playlistId&&(_.k("web_enable_invite_collaborators_link")||_.k("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
V.store.dispatch(_.or({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:e.playlistId,inviteLinkUrl:m.collaborationInviteLink}}));((Vu=m)==null?0:Vu.redirectEndpoint)&&V.JSC$15160_commandHandler.resolveCommand(m.redirectEndpoint);((n=m)==null?0:(Yd=n.newHeader)==null?0:Yd.playlistHeaderRenderer)?GtT(V.controller,m.newHeader.playlistHeaderRenderer):((kd=m)==null?0:(a5=kd.newHeader)==null?0:a5.musicEditablePlaylistDetailHeaderRenderer)&&GtT(V.controller,m.newHeader.musicEditablePlaylistDetailHeaderRenderer);
V.controller.playlistVideoListElement&&((lo=m)==null?0:(io=lo.playlistEditResults)==null?0:(vd=io[0])==null?0:vd.playlistEditVideoAddedResultData)&&(($d=V.controller.playlistVideoListElement)==null||$d.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:m.playlistEditResults[0].playlistEditVideoAddedResultData})));_.b3(cd)})};
s1[na]=[p2,_.M1,_.iw,_.oC];var FR=function(B,R){this.controller=B;this.JSC$15170_commandHandler=R};
_.l(FR,d$);FR.prototype.resolveCommand=function(B,R){var V=this,e,X,Y;return _.W(function(t){e=_.D(B,c_2);V.controller.showRefreshPill&&((X=e)==null?0:X.command)&&(V.JSC$15170_commandHandler.resolveCommand((Y=e)==null?void 0:Y.command,R),V.controller.showRefreshPill=!1);_.b3(t)})};
FR[na]=[_.Ph,_.oC];var rd=function(B,R){this.store=B;this.JSC$15174_commandHandler=R||_.eR.instance};
_.l(rd,d$);rd.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S,M;return _.W(function(f){e=_.D(B,uKh);X=V.store.getState().radioButtonGroup;if((Y=e)==null?0:Y.command)V.JSC$15174_commandHandler.resolveCommand((t=e)==null?void 0:t.command,R);else if(((b=e)==null?void 0:b.formId)===X.currentFormId)for(J=Object.values(X.commandsMap),G=_.h(J),y=G.next();!y.done;y=G.next()){S=y.value;M=_.dl(S);if(!M)return f.return();V.JSC$15174_commandHandler.resolveCommand(M,R)}_.b3(f)})};
rd[na]=[p2];var gd=new _.u0("USER_PREFS");var Zl=function(B){this.JSC$15178_prefCookie=B};
_.l(Zl,d$);Zl.prototype.resolveCommand=function(B){var R=this,V;return _.W(function(e){(V=_.D(B,kwo))&&typeof V.useListView==="boolean"&&(_.Nd(0,155,V.useListView),R.JSC$15178_prefCookie.save());_.b3(e)})};
Zl[na]=[gd];var mY=function(B){this.JSC$15182_prefCookie=B};
_.l(mY,d$);mY.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t;return _.W(function(b){V=_.D(B,LKJ);if((e=V)==null||!e.gl)return b.return();X=V.gl;Y={persist_gl:"1",gl:X};R.JSC$15182_prefCookie.set("gl",X);R.JSC$15182_prefCookie.save();t=mjR(Y);_.TF(t);_.b3(b)})};
mY[na]=[gd];var $9=function(B){this.JSC$15186_prefCookie=B};
_.l($9,d$);$9.prototype.resolveCommand=function(B){var R=this,V,e;return _.W(function(X){V=_.D(B,iY2);if(!V)return X.return();e=!1;V.flagNum&&typeof V.value==="boolean"?(_.Nd(0,V.flagNum,V.value),e=!0):V.key&&typeof V.stringValue==="string"&&(R.JSC$15186_prefCookie.set(V.key,V.stringValue),e=!0);e&&R.JSC$15186_prefCookie.save();_.b3(X)})};
$9[na]=[gd];var C2=new _.u0("PREF_STORAGE_PROMISE_TOKEN");var Pe=function(B){this.JSC$15190_prefStoragePromise=B};
_.l(Pe,d$);Pe.prototype.resolveCommand=function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1)return(V=_.D(B,FK4))?_.U(X,R.JSC$15190_prefStoragePromise,2):X.return();e=X.yieldResult;return e===void 0||V.key===void 0||V.value===void 0?X.return():_.U(X,e.set(V.key,V.value),0)})};
Pe[na]=[C2];var y62=function(B){this.innertubeTransportService=B};
_.l(y62,d$);y62.prototype.resolveCommand=function(B,R){var V=this,e,X;return _.W(function(Y){(e=_.D(B,_.NvS))&&e&&e.isFirstRequest&&(_.lF("search_overview_answer"),_.zp("so_rq",void 0,"search_overview_answer"));return _.U(Y,_.cr(V.innertubeTransportService,B,(X=R)==null?void 0:X.form),0)})};
y62[na]=[_.M1];var SU4=function(){};
_.l(SU4,d$);
SU4.prototype.resolveCommand=function(B){var R,V,e,X,Y,t,b,J,G;return _.W(function(y){R=_.D(B,MPo);if((V=R)==null?0:V.sectionIdentifier){if(R.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(X=(e=document.getElementsByTagName(R.sectionIdentifier))==null?void 0:e.item(0))X.scrollIntoView({behavior:"smooth"}),(Y=gAY(X))&&Y.focus({preventScroll:!0});return y.return()}t=document.querySelector("[section-identifier="+R.sectionIdentifier+"]");b=document.querySelector("[section-identifier="+R.referenceSectionIdentifier+
"]");if(!t)return y.return();J=R.verticalScrollOffsetDp?R.verticalScrollOffsetDp:0;b&&(J-=b.offsetTop);window.scrollTo({top:t.offsetTop+J,behavior:"smooth"});(G=gAY(t))&&G.focus({preventScroll:!0})}_.b3(y)})};var n2=function(){};
_.l(n2,d$);
n2.prototype.resolveCommand=function(B){var R,V,e,X,Y,t,b;return _.W(function(J){if(J.nextAddress==1){R=_.D(B,si4);if(!R||!R.imageBytes||!navigator.clipboard)return J.return();if(R.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Tn(Error("zi")),J.return();_.en(J,2);e=(V=R)==null?void 0:V.imageBytes;X=e.replace(/-/g,"+").replace(/_/g,"/");Y=u9q(X);t={};b=[new ClipboardItem((t[Y.type]=Y,t))];return _.U(J,navigator.clipboard.write(b),4)}if(J.nextAddress!=2)return _.c8(J,0);
_.WR(J);_.b3(J)})};var uw=function(B,R){this.innertubeTransportService=B;this.JSC$15205_commandHandler=R};
_.l(uw,d$);uw.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b;return _.W(function(J){if(J.nextAddress==1)return(e=_.D(B,F8J))?_.U(J,_.cr(V.innertubeTransportService,B,(X=R)==null?void 0:X.form),2):J.return();(Y=J.yieldResult)&&Y.errorMetadata&&e.onFailureCommand&&V.JSC$15205_commandHandler.resolveCommand(e.onFailureCommand);t=Y;((b=t)==null?0:b.shareCommand)&&V.JSC$15205_commandHandler.resolveCommand(t.shareCommand,R);_.b3(J)})};
uw[na]=[_.M1,_.oC];var O1=function(){};
_.l(O1,d$);O1.prototype.resolveCommand=function(B){var R,V;return _.W(function(e){R=_.D(B,QpJ);if(!R||!navigator.share)return e.return();V={url:R.url};try{return e.return(navigator.share(V))}catch(X){}_.b3(e)})};var oY=function(){};
_.l(oY,d$);oY.prototype.resolveCommand=function(){return _.W(function(B){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.b3(B)})};var Bq=function(B){this.JSC$15215_navigationConfirmationService=B};
_.l(Bq,d$);Bq.prototype.resolveCommand=function(){var B=this;return _.W(function(R){B.JSC$15215_navigationConfirmationService.cancelPendingNavigation();_.b3(R)})};
Bq[na]=[tQ];var RY=function(B){this.JSC$15218_screenManager=B};
_.l(RY,d$);RY.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G;return _.W(function(y){X=(e=R.form)==null?void 0:e.event;t=(Y=R.form)==null?void 0:Y.element;if(!X)throw new _.H8("Event not passed in when resolving command");b=_.h(X.composedPath());for(J=b.next();!J.done;J=b.next())if(G=J.value,G.tagName==="YT-COPY-LINK-RENDERER")return G.copyUrlToClipboard(),t&&_.Es(V.JSC$15218_screenManager,t),y.return();_.b3(y)})};
RY[na]=[_.jj];var Vx=function(){this.JSC$15222_miniAppClientDataProvider=_.Oz().resolve(_.wQ)};
_.l(Vx,d$);Vx.prototype.resolveCommand=function(){var B=this,R,V;return _.W(function(e){if(B.JSC$15222_miniAppClientDataProvider.clientData.has("video_id")){var X=B.JSC$15222_miniAppClientDataProvider,Y=X.clientData.get("video_id");Y&&X.clientData.delete("video_id");R="https://youtube.com/watch?v="+Y;V=NV(R);if(V===void 0)throw Error("Ai`"+R);_.xq(window,V)}_.b3(e)})};var eg=function(){};
_.l(eg,d$);eg.prototype.resolveCommand=function(){return _.W(function(B){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.b3(B)})};var Xj=function(){};
_.l(Xj,d$);Xj.prototype.resolveCommand=function(){var B;return _.W(function(R){if(R.nextAddress==1)return _.U(R,_.SeK(window.document.documentElement),2);(B=document.querySelector("mini-app-container-view-model iframe"))&&B.focus();_.b3(R)})};var pS=function(B){this.JSC$15229_navigationConfirmationService=B};
_.l(pS,d$);
pS.prototype.resolveCommand=function(){var B=this;return _.W(function(R){var V=B.JSC$15229_navigationConfirmationService,e=_.Oz().resolve(_.Xk),X;if(((X=V.navigateParams)==null?void 0:X.data)!==void 0){var Y;_.HX5(e,V.navigateParams.endpoint,V.navigateParams.data,(Y=V.navigateParams.navigationType)!=null?Y:1,V.navigateParams.tempData,V.navigateParams.isMiniplayer,void 0,!0);V.navigateParams=void 0;V.customConfirmationCommand=void 0}else V.navigateParams&&(e.navigate(V.navigateParams.endpoint,V.navigateParams.reload,
V.navigateParams.params,V.navigateParams.tempData,V.navigateParams.requestType,V.navigateParams.createScreenConfig,!0),V.navigateParams=void 0,V.customConfirmationCommand=void 0);_.b3(R)})};
pS[na]=[tQ];var YF=function(){};
_.l(YF,d$);YF.prototype.resolveCommand=function(){return _.W(function(B){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.b3(B)})};var hj=function(B){this.JSC$15234_prefStorage=B};
_.l(hj,d$);hj.prototype.resolveCommand=function(){var B=this,R,V;return _.W(function(e){switch(e.nextAddress){case 1:return _.U(e,B.JSC$15234_prefStorage,2);case 2:return(R=e.yieldResult)?_.U(e,R.set("sfvle",!1),3):e.return();case 3:return _.U(e,R.set("sfvles",!0),4);case 4:V=_.UV(),_.Nd(0,203,!1),_.Nd(0,204,!0),V.save(),_.b3(e)}})};
hj[na]=[C2];var tj=function(B){this.JSC$15237_prefStorage=B};
_.l(tj,d$);tj.prototype.resolveCommand=function(){var B=this,R,V;return _.W(function(e){switch(e.nextAddress){case 1:return _.U(e,B.JSC$15237_prefStorage,2);case 2:return(R=e.yieldResult)?_.U(e,R.set("sfvle",!0),3):e.return();case 3:return _.U(e,R.set("sfvles",!0),4);case 4:V=_.UV(),_.Nd(0,203,!0),_.Nd(0,204,!0),V.save(),_.b3(e)}})};
tj[na]=[C2];var HKh=new _.u0("SNACKBAR_CONTROLLER_TOKEN");var Wq=function(B){this.controller=B};
_.l(Wq,d$);Wq.prototype.resolveCommand=function(B){var R=this,V,e,X;return _.W(function(Y){V=_.D(B,RVb);if(!V)return Y.return();e=_.D(V.content,j85);if(!e)return Y.return();var t=R.controller,b=e,J=(X=V.animationStyle)!=null?X:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(t.showSnackbarFn)t.showSnackbarFn({snackbarViewModel:b,animationStyle:J,durationMs:V.durationSeconds*1E3});else throw Error("ij");_.b3(Y)})};
Wq[na]=[HKh];var bL=function(){};
_.l(bL,d$);bL.prototype.resolveCommand=function(B){var R;return _.W(function(V){R=_.D(B,spJ);if(!R||typeof R.key!=="string"||typeof R.value!=="string")return V.return();window.localStorage.setItem(R.key,R.value);_.b3(V)})};var Jj=function(B){this.store=B};
_.l(Jj,d$);Jj.prototype.resolveCommand=function(B){var R=this,V;return _.W(function(e){V=_.D(B,hUY);if(!V||!V.stepId||!V.token)return e.return();R.store.dispatch(ICa({stepId:V.stepId,token:V.token,isSelected:!1}));_.b3(e)})};
Jj[na]=[p2];var jg=function(B,R,V){this.innertubeTransportService=B;this.store=R;this.JSC$15253_screenManager=V};
_.l(jg,d$);
jg.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu,n,Yd,kd;return _.W(function(a5){V=_.D(B,ZU4);if(!V||(e=V.stepIds)==null||!e.length)return a5.return();X=R.store.getState().talkToRecs;Y=[];t=[];b=_.h(V.stepIds);for(J=b.next();!J.done;J=b.next())for(G=J.value,y=void 0,(S=(y=X.stepStates[G])==null?void 0:y.userQuery)&&t.push({userQuery:S.userQuery,userQueryToken:S.token}),M=void 0,f=(M=X.stepStates[G])==null?void 0:M.selectionStates,z=_.h(Object.entries(f)),T=
z.next();!T.done;T=z.next())L=T.value,Q=_.h(L),q=Q.next().value,m=Q.next().value,g=q,Vu=m,Vu.isSelected&&Y.push(g);n={selectedChipTokens:Y,userQueries:t,submittedStepIds:V.stepIds};Yd={browseTalk2recsFormData:n};V.browseEndpoint?(kd=B,_.D9(kd,_.Jz,V.browseEndpoint)):V.command&&(kd=V.command);return kd?_.U(a5,_.cr(R.innertubeTransportService,kd,{formData:Yd,disableCache:!0}).then(function(lo){(lo==null?0:lo.trackingParams)&&R.JSC$15253_screenManager.graftServerVe(lo==null?void 0:lo.trackingParams)}),
0):a5.return()})};
jg[na]=[_.M1,p2,_.jj];var Ui=function(B){this.store=B};
_.l(Ui,d$);Ui.prototype.resolveCommand=function(B){var R=this,V;return _.W(function(e){V=_.D(B,YFq);if(!V||!V.stepId||!V.token)return e.return();R.store.dispatch(ICa({stepId:V.stepId,token:V.token,isSelected:!0}));_.b3(e)})};
Ui[na]=[p2];var Nb=function(B){this.store=B};
_.l(Nb,d$);Nb.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b;return _.W(function(J){e=_.D(B,m6o);if(!e||!e.stepId||!e.userQueryToken)return J.return();b=(t=(X=R)==null?void 0:(Y=X.form)==null?void 0:Y.userQuery)!=null?t:"";V.store.dispatch(_.or({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:e.stepId,userQueryToken:e.userQueryToken,userQuery:b}}));_.b3(J)})};
Nb[na]=[p2];_.MtS=new _.u0("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Gy=function(B){this.controller=B};
_.l(Gy,d$);Gy.prototype.resolveCommand=function(B){var R=this,V,e,X,Y;return _.W(function(t){V=_.D(B,ywb);if(!V)return t.return();e=V;X=e.id;Y=e.isVisible;if(X===void 0||Y===void 0)return t.return();var b;(b=R.controller.timelyActionsMap.get(X))==null||b(X,Y);_.b3(t)})};
Gy[na]=[_.MtS];var ktJ=function(){this.timelyActionsMap=new Map};var yx=function(B){this.JSC$15280_commandHandler=B};
_.l(yx,d$);yx.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t;return _.W(function(b){V=_.D(B,_.MYl);if(!V)return b.return();Y=(e=V.item)==null?void 0:(X=e.notificationTextRenderer)==null?void 0:X.successResponseText;if(!Y)return b.return();t=_.mP(Y);R.JSC$15280_commandHandler.resolveCommand(t);_.b3(b)})};
yx[na]=[_.oC];var Sg=function(B,R){this.innertubeTransportService=B;this.JSC$15285_playerApiPromise=R};
_.l(Sg,d$);
Sg.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t,b,J,G,y;return _.W(function(S){if(S.nextAddress==1)return _.U(S,R.JSC$15285_playerApiPromise,2);V=S.yieldResult;e=V.getOption("captions","track");X=Object.assign({},_.D(B,_.tIR));(t=(Y=V.getVideoData())==null?void 0:Y.video_id)?X.externalVideoId=t:_.cE(Error("Bi"));if((b=e)==null?0:b.languageCode)X.languageCode=e.languageCode;if((J=e)==null?0:J.kind)X.kind=e.kind;if((G=e)==null?0:G.name)X.name=e.name;y=Object.assign({},B,{getTranscriptEndpoint:X});return _.U(S,
_.cr(R.innertubeTransportService,y),0)})};
Sg[na]=[_.M1,_.B7];var Hq=function(){};
_.l(Hq,d$);Hq.prototype.resolveCommand=function(B){var R,V,e,X,Y,t,b,J;return _.W(function(G){R=_.D(B,nPJ);if((V=R)==null||!V.paramKeyValuePairs)return G.return();e=window.location.href;X=_.h(R.paramKeyValuePairs);for(Y=X.next();!Y.done;Y=X.next())t=Y.value,t.key&&t.value&&(b={},e=_.rg(e,(b[t.key]=t.value,b)));J=_.Oz().resolve(_.pI);_.Xq(J,e);_.b3(G)})};var Mb=function(B,R){this.JSC$15292_commandHandler=B;this.innertubeTransportService=R};
_.l(Mb,d$);
Mb.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m;return _.W(function(g){switch(g.nextAddress){case 1:return(Y=(e=R)==null?void 0:(X=e.form)==null?void 0:X.element)&&_.PI(Y),t=_.UV().get("hl"),b="",_.en(g,2),_.U(g,SRZ(t),4);case 4:b=g.yieldResult;_.c8(g,3);break;case 2:return _.WR(g),Y&&_.nw(Y),_.Tn(Error("Di"),"ERROR"),g.return();case 3:J=_.D(B,Ay2);if(!J)return Y&&_.nw(Y),g.return();(S=(G=J.commerceActionConfig)==null?void 0:(y=G.commandLifeCycleConfig)==null?
void 0:y.onStartCommand)&&V.JSC$15292_commandHandler.resolveCommand(S);return _.U(g,_.cr(V.innertubeTransportService,B,{client_data:{paymentsClientToken:{token:b}}}),5);case 5:(M=g.yieldResult)?(Y&&_.nw(Y),((L=M)==null?0:L.command)&&V.JSC$15292_commandHandler.resolveCommand(M.command),(m=(Q=J.commerceActionConfig)==null?void 0:(q=Q.commandLifeCycleConfig)==null?void 0:q.onSuccessCommand)&&V.JSC$15292_commandHandler.resolveCommand(m)):(Y&&_.nw(Y),_.Tn(Error("Ei")),(T=(f=J.commerceActionConfig)==null?
void 0:(z=f.commandLifeCycleConfig)==null?void 0:z.onFailureCommand)&&V.JSC$15292_commandHandler.resolveCommand(T)),_.b3(g)}})};
Mb[na]=[_.oC,_.M1];var kF=function(B,R,V){this.store=B;this.JSC$15308_commandHandler=R;this.innertubeTransportService=V};
_.l(kF,d$);
kF.prototype.resolveCommand=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S;return _.W(function(M){e=_.D(B,iyT);X=e.googlePaymentPayload;e.onStartCommand&&V.JSC$15308_commandHandler.resolveCommand(e.onStartCommand);Y=X.encryptedPurchaseParams;t=X.ypcLogWalletAnalyticDataEndpoint;b=e.serializedTransactionFlowLoggingParams;J=X.serializedPaymentsClientParams;G=e.ypcCujContext;S=kCo(V.innertubeTransportService,(y=R)==null?void 0:y.form,Y,t,b,J,G);return M.return(S.then(function(f){H5o(R==null?void 0:R.form,
!1);var z=V.store,T=V.JSC$15308_commandHandler,L=f.integratorData;L==null||L===""||f.error!=null?(String(f.error)==="-1"&&e.onDismissCommand?T.resolveCommand(e.onDismissCommand):String(f.error)!=="-1"&&e.onFailureCommand&&T.resolveCommand(e.onFailureCommand),String(f.error)!=="-1"&&String(f.error)!=="132"&&_.Tn(Error("Fi"),"ERROR")):(e.googlePaymentEntityKey&&z.dispatch(_.SX("commerceAcquisitionClientPayloadEntity",e.googlePaymentEntityKey,{key:e.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:L,
fundsGuaranteeCallbackClientData:f.integratorClientCallbackData}}})),e.onSuccessCommand&&T.resolveCommand(e.onSuccessCommand));_.XT()},function(f){H5o(R==null?void 0:R.form,!1);
_.Tn(f,"ERROR");e.onFailureCommand&&V.JSC$15308_commandHandler.resolveCommand(e.onFailureCommand)}))})};
kF[na]=[Jn,_.oC,_.M1];var Dj=function(B,R){this.JSC$15312_commandHandler=B;this.purchaseManager=R};
_.l(Dj,d$);
Dj.prototype.resolveCommand=function(B){var R=this,V,e,X,Y,t,b,J,G,y;return _.W(function(S){V=_.D(B,s84);((e=V)==null?0:(X=e.commandLifeCycleConfig)==null?0:X.onStartCommand)&&R.JSC$15312_commandHandler.resolveCommand(V.commandLifeCycleConfig.onStartCommand);if(!((Y=V)==null?0:(t=Y.googlePaymentPurchaseManagerPayload)==null?0:t.securePayloadBytes))return _.Tn(Error("Gi"),"ERROR"),S.return();b=WP4(_.Uo(V.googlePaymentPurchaseManagerPayload.securePayloadBytes));J=_.UV().get("hl");G=_.A3();LQ5(b.serialize(),
J,function(M){G.resolve(M)},function(M){G.reject(M)},G.resolve);
y=G.promise;return S.return(y.then(function(M){if(M)if(M==null?0:M.errorCode){_.Tn(Error("Hi`"+M.errorCode),"ERROR");var f,z;((f=V)==null?0:(z=f.commandLifeCycleConfig)==null?0:z.onFailureCommand)&&R.JSC$15312_commandHandler.resolveCommand(V.commandLifeCycleConfig.onFailureCommand)}else if(M==null?0:M.isCancelled){var T,L;((T=V)==null?0:(L=T.commandLifeCycleConfig)==null?0:L.onCancelCommand)&&R.JSC$15312_commandHandler.resolveCommand(V.commandLifeCycleConfig.onCancelCommand)}else{var Q,q;((Q=V)==
null?0:(q=Q.commandLifeCycleConfig)==null?0:q.onSuccessCommand)&&R.JSC$15312_commandHandler.resolveCommand(V.commandLifeCycleConfig.onSuccessCommand)}},function(M){_.Tn(M,"ERROR");
var f,z;((f=V)==null?0:(z=f.commandLifeCycleConfig)==null?0:z.onFailureCommand)&&R.JSC$15312_commandHandler.resolveCommand(V.commandLifeCycleConfig.onFailureCommand)}))})};
Dj[na]=[_.oC,vwl];var DQl=function(B,R){this.JSC$15320_commandHandler=B;this.commandAllowlistOverride=R;var V;this.commandAllowlist=(V=this.commandAllowlistOverride)!=null?V:iP};
DQl.prototype.handleResponse=function(B,R,V){var e,X=R==null?void 0:(e=R.config)==null?void 0:e.command;if(!X||this.commandAllowlist.some(function(Y){return!!_.D(X,Y)})){R=void 0;
V!==void 0&&(R={form:{element:V}});B.onResponseReceivedCommand&&this.JSC$15320_commandHandler.resolveCommand(B.onResponseReceivedCommand,R);B.onResponseReceivedAction&&this.JSC$15320_commandHandler.resolveCommand(B.onResponseReceivedAction,R);B.onResponseReceivedEndpoint&&this.JSC$15320_commandHandler.resolveCommand(B.onResponseReceivedEndpoint,R);B.command&&this.JSC$15320_commandHandler.resolveCommand(B.command,R);if(B.onResponseReceivedCommands)for(V=_.h(B.onResponseReceivedCommands),e=V.next();!e.done;e=
V.next())this.JSC$15320_commandHandler.resolveCommand(e.value,R);if(B.onResponseReceivedActions)for(V=_.h(B.onResponseReceivedActions),e=V.next();!e.done;e=V.next())this.JSC$15320_commandHandler.resolveCommand(e.value,R);if(B.onResponseReceivedEndpoints)for(V=_.h(B.onResponseReceivedEndpoints),e=V.next();!e.done;e=V.next())this.JSC$15320_commandHandler.resolveCommand(e.value,R);if(B.actions)for(B=_.h(B.actions),V=B.next();!V.done;V=B.next())this.JSC$15320_commandHandler.resolveCommand(V.value,R)}};
DQl[na]=[_.oC,_.uj(EF_)];var f5_=new _.u0("INNERTUBE_TOKEN_SERVICE");var l5J=new _.u0("SCHEDULER_TOKEN");var z_R=function(B){this.scheduler=B;B={};this.tokenMap=(B.app={},B.user={},B)};
z_R.prototype.handleResponse=function(B,R){if(!R)throw Error("Ii");var V;if(B=(V=B.responseContext)==null?void 0:V.innertubeTokenJar){if(B.appTokens){var e,X,Y;V=(e=R.innerTubeRequest.context)==null?void 0:(X=e.request)==null?void 0:(Y=X.innertubeTokenJar)==null?void 0:Y.appTokens;a54(this,B.appTokens,this.tokenMap.app,V)}if(B.userTokens){var t,b,J;R=(t=R.innerTubeRequest.context)==null?void 0:(b=t.request)==null?void 0:(J=b.innertubeTokenJar)==null?void 0:J.userTokens;a54(this,B.userTokens,this.tokenMap.user,
R)}}};
z_R.prototype.processContext=function(B){B.request||(B.request={});var R=Object.keys(this.tokenMap.app).length,V=Object.keys(this.tokenMap.user).length;if(R||V)B.request.innertubeTokenJar={},R&&(B.request.innertubeTokenJar.appTokens=[].concat(_.MI(Object.values(this.tokenMap.app).flat()))),V&&(B.request.innertubeTokenJar.userTokens=[].concat(_.MI(Object.values(this.tokenMap.user).flat())))};
var a54=function(B,R,V,e){R=_.h(R);for(var X=R.next(),Y={};!X.done;Y={token$jscomp$137:void 0},X=R.next()){Y.token$jscomp$137=X.value;if(Y.token$jscomp$137.type===void 0)throw new _.H8("InnerTube token has no type",Y.token$jscomp$137);if(Y.token$jscomp$137.clearTokens)V[Y.token$jscomp$137.type]=[];else if(Y.token$jscomp$137.value!==void 0){V[Y.token$jscomp$137.type]||(V[Y.token$jscomp$137.type]=[]);if(e!==void 0&&e.length){X=_.h(e);for(var t=X.next(),b={};!t.done;b={requestToken:void 0},t=X.next())b.requestToken=
t.value,t=V[Y.token$jscomp$137.type].findIndex(function(J){return function(G){return G===J.requestToken||(0,_.M_.equals)(G,J.requestToken)}}(b)),t>-1&&V[Y.token$jscomp$137.type].splice(t,1)}V[Y.token$jscomp$137.type].push(Y.token$jscomp$137);
Y.token$jscomp$137.maxAgeSeconds&&Number(Y.token$jscomp$137.maxAgeSeconds)>0&&B.scheduler.addLowPriorityJob(function(J){return function(){var G=V[J.token$jscomp$137.type].indexOf(J.token$jscomp$137);G>-1&&V[J.token$jscomp$137.type].splice(G,1)}}(Y),Number(Y.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.H8("InnerTube token has no value",Y.token$jscomp$137);
}};
z_R[na]=[l5J];var dQ2=new _.u0("LOCAL_INNERTUBE_ROUTER_TOKEN"),wi5=new _.u0("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var fS=function(B){this.serviceMap=B};
fS.prototype.shouldPreferLocalResponse=function(B,R){return(B=Tyo(this,B))?B.shouldPreferLocalResponse(R):!1};
fS.prototype.localInnertubeResponse=function(B,R){var V=this,e;return _.W(function(X){return(e=Tyo(V,B))?X.return(e.localInnertubeResponse(R)):X.return(Promise.reject(Error("Ji")))})};
fS.prototype.canProvideFallbackResponse=function(B,R){return(B=Tyo(this,B))?B.canProvideFallbackResponse(R):!1};
fS.prototype.localFallbackInnertubeResponse=function(B,R){var V=this,e;return _.W(function(X){return(e=Tyo(V,B))?X.return(e.localFallbackInnertubeResponse(R)):X.return(Promise.reject(Error("Ji")))})};
var Tyo=function(B,R){R=_.tu(R);return R?(B=B.serviceMap[R])?B:null:null};
fS[na]=[wi5];var l5=function(){};
l5.prototype.shouldPreferLocalResponse=function(){return!1};
l5.prototype.localInnertubeResponse=function(){return _.W(function(B){return B.return(Promise.reject(Error("Ki")))})};
l5.prototype.canProvideFallbackResponse=function(){return!0};
l5.prototype.localFallbackInnertubeResponse=function(){var B,R,V;return _.W(function(e){B=dL("CLOSE_POPUP");R={openPopupAction:fe_()};V={actions:[B,R]};return e.return(V)})};var uu_=function(B,R){this.JSC$15370_upliftPromise=B;this.store=R};
_.p=uu_.prototype;_.p.shouldPreferLocalResponse=function(B){var R=B.videoId,V;if(V=R)V=tod(this.store.getState().entities,B.videoId);return V&&Wpo(this.store.getState().entities,R)?zhA(this.store.getState().entities,B.playlistId):!1};
_.p.localInnertubeResponse=function(B){var R=this,V;return _.W(function(e){return(V=R.getPlayerResponse(B))?e.return(Promise.resolve(V)):e.return(Promise.reject(Error("Li")))})};
_.p.canProvideFallbackResponse=function(B){return!!B.videoId};
_.p.localFallbackInnertubeResponse=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,R.JSC$15370_upliftPromise,2);V=R.getPlayerResponse(B);var X;V?X=e.return(Promise.resolve(V)):X=Su(R.store.getState().entities,B.videoId)?e.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.n0(_.Wz("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:AV_()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
e.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.n0(_.Wz("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:cVx()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return X})};
_.p.getPlayerResponse=function(B){return jiq(this.store.getState().entities,B.videoId)};var fi=function(B,R){this.localPlayerService=B;this.localWatchNextService=R};
fi.prototype.shouldPreferLocalResponse=function(B){var R=B.playerRequest;B=B.watchNextRequest;return!!(R&&this.localPlayerService.shouldPreferLocalResponse(R)&&B&&this.localWatchNextService.shouldPreferLocalResponse(B))};
fi.prototype.localInnertubeResponse=function(B){var R=this,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1){V=B.playerRequest;e=B.watchNextRequest;if(!V||!e)throw new _.H8("Missing streaming request",B);return _.U(t,R.localPlayerService.localInnertubeResponse(V),2)}if(t.nextAddress!=3)return X=t.yieldResult,_.U(t,R.localWatchNextService.localInnertubeResponse(e),3);Y=t.yieldResult;return t.return({playerResponse:X,watchNextResponse:Y})})};
fi.prototype.canProvideFallbackResponse=function(B){var R=B.playerRequest;B=B.watchNextRequest;return!!(R&&this.localPlayerService.canProvideFallbackResponse(R)&&B&&this.localWatchNextService.canProvideFallbackResponse(B))};
fi.prototype.localFallbackInnertubeResponse=function(B){var R=this,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return V=B.playerRequest,e=B.watchNextRequest,V&&e?_.U(t,R.localPlayerService.localFallbackInnertubeResponse(V),2):t.return(Promise.reject(new _.H8("Missing streaming request",B)));if(t.nextAddress!=3)return X=t.yieldResult,_.U(t,R.localWatchNextService.localFallbackInnertubeResponse(e),3);Y=t.yieldResult;return t.return({playerResponse:X,watchNextResponse:Y})})};var Ml=function(B){this.JSC$15380_persistentStorePromiseAccessor=B};
Ml.prototype.shouldPreferLocalResponse=function(){return!1};
Ml.prototype.localInnertubeResponse=function(){return _.W(function(B){return B.return(Promise.reject(Error("Mi")))})};
Ml.prototype.canProvideFallbackResponse=function(){return!0};
Ml.prototype.localFallbackInnertubeResponse=function(){var B=this,R,V;return _.W(function(e){return e.nextAddress==1?_.U(e,B.JSC$15380_persistentStorePromiseAccessor(),2):e.nextAddress!=3?(R=e.yieldResult)?_.U(e,R.get("service:guide:fallback"),3):e.return(Promise.reject(Error("Ni"))):(V=e.yieldResult)&&_.WS(V)?e.return(aep(_.WS(V))):e.return(Promise.reject(Error("Oi")))})};var zT=function(){};
zT.prototype.shouldPreferLocalResponse=function(){return!1};
zT.prototype.localInnertubeResponse=function(){return _.W(function(B){return B.return(Promise.reject(Error("Pi")))})};
zT.prototype.canProvideFallbackResponse=function(){return!0};
zT.prototype.localFallbackInnertubeResponse=function(){var B,R,V;return _.W(function(e){B=dL("CLOSE_POPUP");R={openPopupAction:fe_()};V={actions:[B,R]};return e.return(V)})};var HS=function(){this.urlMap=xQo;this.fallbackCommand=_.Ny};
HS.prototype.shouldPreferLocalResponse=function(B){return(B=B.url)?!!LX4(this,B):!1};
HS.prototype.localInnertubeResponse=function(B){var R=this,V;return _.W(function(e){return(V=B.url)?e.return(vV5(B,LX4(R,V))):e.return(Promise.reject(Error("Qi")))})};
HS.prototype.canProvideFallbackResponse=function(){return!0};
HS.prototype.localFallbackInnertubeResponse=function(B){var R=this,V,e,X,Y,t,b,J;return _.W(function(G){V=B.url;if(!V)return G.return(vV5(B,R.fallbackCommand));if(e=LX4(R,V))return G.return(vV5(B,e));X=void 0;Y=_.tu(V);Y==="/watch"&&(t=_.EJ(V,"v"))&&(J=(b=_.EJ(V,"list"))!=null?b:void 0,X=_.Pz(t,J));X||(X=R.fallbackCommand);return G.return(vV5(B,X))})};
var LX4=function(B,R){if(R)return B.urlMap[_.QT(R)]},vV5=function(B,R){R&&B.parentTrackingParams&&(R.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:B.parentTrackingParams}},R.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:R})};var kQ=function(B,R,V){this.JSC$15390_upliftPromise=B;this.store=R;this.JSC$15390_persistentStorePromiseAccessor=V};
kQ.prototype.shouldPreferLocalResponse=function(){return!1};
kQ.prototype.localInnertubeResponse=function(){return _.W(function(B){return B.return(Promise.reject(Error("Ri")))})};
kQ.prototype.canProvideFallbackResponse=function(){return!0};
kQ.prototype.localFallbackInnertubeResponse=function(){var B=this;return _.W(function(R){return R.return(KX2(B))})};
var KX2=function(B){var R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,tn(B.JSC$15390_upliftPromise,B.store),2);R=e.yieldResult;V={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[leI(R)]}}}};return e.return(I55(B,V))})},I55=function(B,R){var V,e;
return _.W(function(X){if(X.nextAddress==1)return _.U(X,B.JSC$15390_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return V=X.yieldResult,_.U(X,b5(V),3);e=X.yieldResult;return X.return({responseContext:{},contents:R,topbar:e})})};var yA=function(B,R,V){this.JSC$15397_upliftPromise=B;this.store=R;this.JSC$15397_persistentStorePromiseAccessor=V};
yA.prototype.shouldPreferLocalResponse=function(B){var R=B.videoId;return R&&tod(this.store.getState().entities,R)&&Wpo(this.store.getState().entities,R)?zhA(this.store.getState().entities,B.playlistId):!1};
yA.prototype.localInnertubeResponse=function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1)return(V=B.videoId)?_.U(X,R.JSC$15397_upliftPromise,2):X.return(Promise.reject(Error("Si")));if(X.nextAddress!=3)return _.U(X,EVG(R,B,V),3);e=X.yieldResult;return X.return(QzS(R,e,V))})};
yA.prototype.canProvideFallbackResponse=function(B){return B.videoId?!0:!1};
yA.prototype.localFallbackInnertubeResponse=function(B){var R=this,V,e,X,Y;return _.W(function(t){switch(t.nextAddress){case 1:return(V=B.videoId)?_.U(t,R.JSC$15397_upliftPromise,2):t.return(Promise.reject(Error("Si")));case 2:return _.U(t,EVG(R,B,V),3);case 3:e=t.yieldResult;if(Su(R.store.getState().entities,V)){t.jumpTo(4);break}return _.U(t,tn(R.JSC$15397_upliftPromise,R.store),5);case 5:return X=t.yieldResult,t.return(qU_(e,X));case 4:return tod(R.store.getState().entities,V)&&Wpo(R.store.getState().entities,
V)?t.return(QzS(R,e,V)):(Y={title:_.n0(_.Wz("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:AV_()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},t.return(qU_(e,Y)))}})};
var EVG=function(B,R,V){var e,X,Y,t,b;return _.W(function(J){if(J.nextAddress==1)return e=R.playlistId,X=_.Pz(V,e),_.U(J,B.JSC$15397_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return Y=J.yieldResult,_.U(J,b5(Y),3);t=J.yieldResult;b={responseContext:{},currentVideoEndpoint:X,topbar:t};return J.return(b)})},QzS=function(B,R,V){if(B=Su(B.store.getState().entities,V)){var e;
V=B.videoEntity;var X,Y={title:uF(V.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.OV((e=V.localizedStrings)==null?void 0:e.viewCount),viewCount:_.OV((X=V.localizedStrings)==null?void 0:X.viewCount)}}};V.publishedTimestampMillis&&(Y.dateText=_.OV(B3o(new Date(Number(V.publishedTimestampMillis)))));e={videoPrimaryInfoRenderer:Y};X=B.videoEntity;B=B.channelEntity;B={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:uF(_.Wz("SHOW_MORE",void 0,"Show more")),
showLessText:uF(_.Wz("SHOW_LESS",void 0,"Show less")),description:X.formattedDescription,owner:{videoOwnerRenderer:{title:uF(B.title),thumbnail:B.avatar}}}};R.contents={twoColumnWatchNextResults:{results:{results:{contents:[e,B]}}}}}return R},qU_=function(B,R){B.contents={singleColumnWatchNextResults:{results:{results:{contents:[leI(R)]}}}};
return B};var Do=function(B,R,V){this.JSC$15403_upliftPromise=B;this.store=R;this.JSC$15403_persistentStorePromiseAccessor=V};
Do.prototype.shouldPreferLocalResponse=function(){return!1};
Do.prototype.localInnertubeResponse=function(){return _.W(function(B){return B.return(Promise.reject(Error("Ti")))})};
Do.prototype.canProvideFallbackResponse=function(){return!0};
Do.prototype.localFallbackInnertubeResponse=function(){var B=this,R,V,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:return _.U(Y,B.JSC$15403_persistentStorePromiseAccessor(),2);case 2:return R=Y.yieldResult,_.U(Y,b5(R),3);case 3:return V=Y.yieldResult,e={responseContext:{},topbar:V},_.U(Y,B.JSC$15403_upliftPromise,4);case 4:return _.U(Y,tn(B.JSC$15403_upliftPromise,B.store),5);case 5:return X=Y.yieldResult,e.watchStatus={backgroundPromoRenderer:X},Y.return(e)}})};var c62=new _.u0("ENDPOINT_MAP");var A6v=function(){var B=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return B.sequenceMap}}},Hho=function(B,R,V){var e,X=(e=R.config)==null?void 0:e.sequenceStrategy;
if(!X)return V();B.sequenceMap.has(X.sequenceKey)||B.sequenceMap.set(X.sequenceKey,[]);B=B.sequenceMap.get(X.sequenceKey);switch(X.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return iKJ(B,R,V);case "REQUEST_SEQUENCE_TYPE_REPLACE":return szb(B,R,V);default:throw new _.H8("Request could not be sequenced",R);}},iKJ=function(B,R,V){var e,X,Y;
return _.W(function(t){B.length>0?(X=B[B.length-1],e=X.responsePromise.then(function(){return V()})):e=V();
Y={request:R,responsePromise:e};B.push(Y);FX5(B,Y);return t.return(Y.responsePromise)})},szb=function(B,R,V){V=V();
if(B.length>0)for(var e=_.h(B),X=e.next();!X.done;X=e.next())X.value.responsePromise=V;var Y={request:R,responsePromise:V};B.push(Y);FX5(B,Y);return Promise.resolve().then(function(){return B.indexOf(Y)>0?Y.responsePromise.then(function(t){return Object.assign({},t,{sequenceMetaData:{skipProcessing:!0}})}):Y.responsePromise})},FX5=function(B,R){R.responsePromise.then(function(){var V=B.indexOf(R);
V>-1&&B.splice(V,1)})};var r6o=new _.u0("REQUEST_SEQUENCING");var lL=function(){};
_.l(lL,fj);lL.prototype.getApiPaths=function(){return[]};
lL.prototype.getExtension=function(B){return _.D(B,JoS)};
lL.prototype.JSC$11817_buildRequest=function(B,R){B.recaptchaToken=R.recaptchaToken};
lL.prototype.getApiUrl=function(){return"/das_captcha"};var zy=function(){};
_.l(zy,fj);zy.prototype.getApiPaths=function(){return cpR};
zy.prototype.getExtension=function(B){return _.D(B,iUR)};
zy.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.createBackstagePostParams&&(B.createBackstagePostParams=R.createBackstagePostParams);V.comment_text&&(B.commentText=V.comment_text);if(V.attached_video_id)B.videoAttachment={videoId:V.attached_video_id};else if(V.image_poll_options)B.pollAttachmentData={options:V.image_poll_options};else if(V.poll_options)B.pollAttachment={choices:V.poll_options};else if(V.quiz_options)B.quizAttachmentData={options:V.quiz_options};else if(V.image_blob_id)B.imageAttachment=
{encryptedBlobId:V.image_blob_id},V.source_video_id&&(B.imageAttachment.sourceExternalVideoId=V.source_video_id),V.image_preview_coordinates&&(B.imageAttachment.previewCoordinates=JSON.parse(V.image_preview_coordinates));else if(V.images_data)B.imagesAttachment={imagesData:V.images_data};else if(V.clip_external_video_id!==void 0||V.clip_offset_ms!==void 0||V.clip_duration_ms!==void 0){var e,X,Y,t,b;B.clipAttachment={externalVideoId:(Y=V.clip_external_video_id)!=null?Y:"",offsetMs:(t=(e=V.clip_offset_ms)==
null?void 0:e.toString())!=null?t:"",durationMs:(b=(X=V.clip_duration_ms)==null?void 0:X.toString())!=null?b:""}}else V.shared_post_id&&(B.sharedPostAttachment={postId:V.shared_post_id});V.tagged_video_id&&(B.postCreationData={taggedVideoId:V.tagged_video_id});V.access_restrictions&&(typeof V.access_restrictions==="number"&&(R=V.access_restrictions,B.accessRestrictions={restriction:R!==1&&R===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof V.access_restrictions==="string"&&
(B.accessRestrictionsParams=V.access_restrictions));V.scheduled_publish_time_sec&&(B.scheduledPublishTimeSec=V.scheduled_publish_time_sec.toString())};var aY=function(){};
_.l(aY,fj);aY.prototype.getApiPaths=function(){return ZFR};
aY.prototype.getExtension=function(B){return _.D(B,g6J)};
aY.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.decorateMessageParams&&(B.params=R.decorateMessageParams);V.text&&(B.text=V.text)};var dh=function(){};
_.l(dh,fj);dh.prototype.getApiPaths=function(){return JdG};
dh.prototype.getExtension=function(B){return _.D(B,s65)};
dh.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;V.video_id&&(B.videoId=V.video_id)};var wh=function(){};
_.l(wh,fj);wh.prototype.getApiPaths=function(){return SHT};
wh.prototype.getExtension=function(B){return _.D(B,_.hE)};
wh.prototype.JSC$11817_buildRequest=function(B,R,V){V.suggestions_query&&(B.input=V.suggestions_query)};var Ty=function(){};
_.l(Ty,fj);Ty.prototype.getApiPaths=function(){return nEo};
Ty.prototype.getExtension=function(B){return _.D(B,FgG)};
Ty.prototype.JSC$11817_buildRequest=function(B,R,V){V.comment_text!==void 0&&(B.commentText=V.comment_text);V.scheduled_publish_time_sec&&(B.scheduledPublishTimeSec=V.scheduled_publish_time_sec.toString());B.updateBackstagePostParams=R.updateBackstagePostParams};var xF=function(){};
_.l(xF,fj);xF.prototype.getApiPaths=function(){return VA};
xF.prototype.getExtension=function(B){return _.D(B,_.xB)};
xF.prototype.JSC$11817_buildRequest=function(B,R,V){V.formData&&(B.formData=V.formData);R.token?B.continuation=R.token:R.continuationTokenKey&&(V=_.g6().getState(),R=_.p7(V.entities,"continuationTokenEntity",R.continuationTokenKey))&&(B.continuation=String(R.continuationToken))};
var gVa=function(){};
_.l(gVa,fj);_.p=gVa.prototype;_.p.getApiPaths=function(){return VA};
_.p.getExtension=function(B){return _.D(B,_.Jz)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$11824_getStoreKey=function(B){if((B=this.getExtension(B))&&B.browseId){var R={browseId:B.browseId};B.browseEndpointContextSupportedConfigs&&(R.browseEndpointContextSupportedConfigs=JSON.stringify(B.browseEndpointContextSupportedConfigs));B.params&&(R.params=B.params);B.query&&(R.query=B.query);return _.is("browse",R)}};
_.p.JSC$11817_buildRequest=function(B,R,V){R.browseId&&(B.browseId=R.browseId);R.params&&(B.params=R.params);R.query&&(B.query=R.query);V.formData?B.formData=V.formData:R.formData&&(B.formData=R.formData);R.browseId==="FEsubscriptions"&&_.UV().getFlag(155)&&(B.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");R.browseId==="SPaccount_playback"&&(V=_.UV(),B.formData||(B.formData={}),B.formData.accountSettingsFormData={flagCaptionsDefaultOff:V.getFlag(65),flagAutoCaptionsDefaultOn:V.getFlag(66),
flagDisableInlinePreview:V.getFlag(186),flagAudioDescriptionDefaultOn:V.getFlag(198)});if(R.browseId==="FEwhat_to_watch"){V=_.UV();var e=V.getFlag(196);V.getFlag(197)&&(B.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:e}}})}R.browseId==="FEwhat_to_watch"&&(R=_.UV().getFlag(186),B.inlineSettingStatus=R?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.p.getRequestConfig=function(B,R){R=R===void 0?{}:R;var V={};if(B=this.JSC$11824_getStoreKey(B,R))V.storeStrategy={storeKey:B,disableCache:R.disableCache};_.k("web_log_browse_ticks_ks")||(V.requestTick="br_s",V.responseTick="br_r");return V};var LS=function(){};
_.l(LS,fj);LS.prototype.getApiPaths=function(){return vZl};
LS.prototype.getExtension=function(B){return _.D(B,p_4)};
LS.prototype.JSC$11817_buildRequest=function(B,R,V){B.legacyYoutubeChannelUsername=V.legacyYouTubeChannelUsername||"";B.legacyYoutubeChannelPassword=V.legacyYouTubeChannelPassword||""};var vq=function(){};
_.l(vq,fj);vq.prototype.getApiPaths=function(){return ij4};
vq.prototype.getExtension=function(B){return _.D(B,nUo)};
vq.prototype.JSC$11817_buildRequest=function(B,R,V){V.recaptcha_response_token&&(B.recaptchaResponseToken=V.recaptcha_response_token);V.channel_id&&(B.channelId=V.channel_id)};var KS=function(){};
_.l(KS,fj);KS.prototype.getApiPaths=function(){return uwl};
KS.prototype.getExtension=function(B){return _.D(B,V9h)};
KS.prototype.JSC$11817_buildRequest=function(B,R,V){R.externalChannelId&&(B.externalChannelId=R.externalChannelId);V.handle&&(B.handleUpdate={handle:V.handle},R.handleEditSource&&(B.handleUpdate.handleEditSource=R.handleEditSource))};var IY=function(){};
_.l(IY,fj);IY.prototype.getApiPaths=function(){return Rnh};
IY.prototype.getExtension=function(B){return _.D(B,y_4)};
IY.prototype.JSC$11817_buildRequest=function(B,R,V){R.request&&(B.channelId=R.request.channelId);var e;if(V==null?0:(e=V.uploadDefaults)==null?0:e.emojiReactionSet)B.uploadDefaultsRequest||(B.uploadDefaultsRequest={}),B.uploadDefaultsRequest.emojiReactionSet=V.uploadDefaults.emojiReactionSet};var Ei=function(){};
_.l(Ei,fj);Ei.prototype.getApiPaths=function(){return Xuv};
Ei.prototype.getExtension=function(B){return _.D(B,u6b)};
Ei.prototype.JSC$11817_buildRequest=function(B,R,V){R.externalChannelId&&(B.externalChannelId=R.externalChannelId);R.channelHandleEntityKey&&(B.channelHandleEntityKey=R.channelHandleEntityKey);R.handleEditSource&&(B.handleEditSource=R.handleEditSource);V.handle?B.handle=V.handle:V.name&&(B.name=V.name)};var Qx=function(){};
_.l(Qx,fj);Qx.prototype.getApiPaths=function(){return EZv};
Qx.prototype.getExtension=function(B){return _.D(B,df5)};
Qx.prototype.JSC$11817_buildRequest=function(B,R){R.actions?B.actions=R.actions:R.action&&(B.actions=[R.action])};var qb=function(){};
_.l(qb,fj);qb.prototype.getApiPaths=function(){return QDb};
qb.prototype.getExtension=function(B){return _.D(B,_.xB)};
qb.prototype.JSC$11817_buildRequest=function(B,R){R.token&&(B.continuation=R.token)};var cq=function(){};
_.l(cq,fj);cq.prototype.getApiPaths=function(){return WzG};
cq.prototype.getExtension=function(B){return _.D(B,_.xB)};
cq.prototype.JSC$11817_buildRequest=function(B,R){B.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";R.token&&(B.fetchCommentsParams={continuation:R.token})};var Aj=function(){};
_.l(Aj,fj);Aj.prototype.getApiPaths=function(){return sDh};
Aj.prototype.getExtension=function(B){return _.D(B,auJ)};
Aj.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.createReplyParams&&(B.createReplyParams=R.createReplyParams);R.commentText&&(B.commentText=_.FF(R.commentText));V.comment_text&&(B.commentText=V.comment_text);V.image_blob_id&&(B.imageAttachment={encryptedBlobId:V.image_blob_id});V.botguard_response&&(B.botguardResponse=V.botguard_response)};
_.mh.Object.defineProperties(Aj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iL=function(){};
_.l(iL,fj);iL.prototype.getApiPaths=function(){return FDG};
iL.prototype.getExtension=function(B){return _.D(B,_.zra)};
iL.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.createCommentParams&&(B.createCommentParams=R.createCommentParams);R.commentText&&(B.commentText=_.FF(R.commentText));R.videoPositionMention&&(B.videoPositionMention=R.videoPositionMention);R.sources&&(B.sources=R.sources);V.comment_text&&(B.commentText=V.comment_text);V.attached_video_id?B.videoAttachment={videoId:V.attached_video_id}:V.poll_options?B.pollAttachment={choices:V.poll_options}:V.image_blob_id?B.imageAttachment=
{encryptedBlobId:V.image_blob_id}:V.shared_post_id&&(B.sharedPostAttachment={postId:V.shared_post_id});V.access_restrictions&&typeof V.access_restrictions==="number"&&(R=V.access_restrictions,B.accessRestrictions={restriction:R!==1&&R===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});V.botguard_response&&(B.botguardResponse=V.botguard_response)};
_.mh.Object.defineProperties(iL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var si=function(){};
_.l(si,fj);si.prototype.getApiPaths=function(){return Ojh};
si.prototype.getExtension=function(B){return _.D(B,Tf4)};
si.prototype.JSC$11817_buildRequest=function(B,R,V){R.commentText&&(B.replyText=_.FF(R.commentText));V.comment_text&&(B.replyText=V.comment_text);B.updateReplyParams=R.updateReplyParams};
_.mh.Object.defineProperties(si.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fj=function(){};
_.l(Fj,fj);Fj.prototype.getApiPaths=function(){return ocJ};
Fj.prototype.getExtension=function(B){return _.D(B,wLJ)};
Fj.prototype.JSC$11817_buildRequest=function(B,R,V){R.commentText&&(B.commentText=_.FF(R.commentText));V.comment_text&&(B.commentText=V.comment_text);B.updateCommentParams=R.updateCommentParams};
_.mh.Object.defineProperties(Fj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rh=function(){};
_.l(rh,fj);rh.prototype.getApiPaths=function(){return BtT};
rh.prototype.getExtension=function(B){return _.D(B,jph)};
rh.prototype.JSC$11817_buildRequest=function(B,R){R.settings&&(B.settings=R.settings)};var gh=function(){};
_.l(gh,fj);gh.prototype.getApiPaths=function(){return VjR};
gh.prototype.getExtension=function(B){return _.D(B,OUa)};
gh.prototype.JSC$11817_buildRequest=function(B,R){R.channelCreationToken&&(B.channelCreationToken=R.channelCreationToken);R.source&&(B.source=R.source)};var Zj=function(){};
_.l(Zj,fj);Zj.prototype.getApiPaths=function(){return iFJ};
Zj.prototype.getExtension=function(B){return _.D(B,Rob)};
Zj.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;if(V.name&&(V.given_name||V.family_name))B=new _.H8("channel creation cannot set both GAIA and YouTube names",R),_.Tn(B);else{if(R.zeroStepChannelCreationParams){if(!V.comment_text){B=new _.H8("zero_step_create_comment_params but no zero_step_texts",R);_.Tn(B);return}B.zeroStepChannelCreationParams=R.zeroStepChannelCreationParams;B.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(B.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
V.comment_text,V.botguard_response&&(B.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=V.botguard_response))}B.channelCreationToken=R.channelCreationToken;V.given_name&&(B.givenName=V.given_name);V.family_name&&(B.familyName=V.family_name);R.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(B.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(V.name||V.handle||V.avatar_url||V.encryptedBlobId||V.isNameChanged!==void 0||V.isHandleChanged!==void 0||V.isDefaultProfilePhoto!==
void 0||V.obakeImageSource)B.overrideChannelCreationParams={},V.name&&(B.overrideChannelCreationParams.name=V.name),V.handle&&(B.overrideChannelCreationParams.handle=V.handle),V.avatar_url&&(B.overrideChannelCreationParams.avatarUrl=V.avatar_url),V.encryptedBlobId&&(B.overrideChannelCreationParams.blobEncryptionId=V.encryptedBlobId),V.enableIdentityForAllChannelCreationDialog&&(V.encryptedBlobId?B.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
V.isDefaultProfilePhoto!==void 0&&(B.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=V.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),V.isNameChanged!==void 0&&(B.overrideChannelCreationParams.identityForAllChannelCreationNameTag=V.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),V.isHandleChanged!==
void 0&&(B.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=V.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),V.obakeImageSource&&(B.overrideChannelCreationParams.obakeImageSourceType=V.obakeImageSource))}};var m1=function(){};
_.l(m1,fj);m1.prototype.getApiPaths=function(B){return(B=this.getExtension(B))&&B.status==="DISLIKE"?PG_:B&&B.status==="INDIFFERENT"?EE2:fbo};
m1.prototype.getExtension=function(B){return _.D(B,_.$1)};
m1.prototype.JSC$11817_buildRequest=function(B,R){R.target&&(B.target=R.target);if(R=this.getParams(R))B.params=R};
m1.prototype.getParams=function(B){switch(B==null?void 0:B.status){case "DISLIKE":return B.dislikeParams;case "INDIFFERENT":return B.removeLikeParams;default:return B==null?void 0:B.likeParams}};var $F=function(){};
_.l($F,fj);$F.prototype.getApiPaths=function(){return Zja};
$F.prototype.getExtension=function(B){return _.D(B,Ei2)};
$F.prototype.JSC$11817_buildRequest=function(B,R){R.settingItemId&&(B.settingItemId=R.settingItemId);R.stringValue!=null&&R.stringValue!==void 0?B.newValue={stringValue:R.stringValue}:R.intValue?B.newValue={intValue:R.intValue}:R.boolValue!==null&&R.boolValue!==void 0?B.newValue={boolValue:R.boolValue}:(B=new _.H8("Unknown value type for SetSettingEndpoint.",R),_.Tn(B))};var CS=function(){};
_.l(CS,fj);CS.prototype.getApiPaths=function(){return $GS};
CS.prototype.getExtension=function(B){return _.D(B,OtT)||void 0};
CS.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.channelIds&&(B.channelIds=R.channelIds);R.siloName&&(B.siloName=R.siloName);R.params&&(B.params=R.params);V.botguardResponse&&(B.botguardResponse=V.botguardResponse);V.feature&&(B.clientFeature=V.feature)};
_.mh.Object.defineProperties(CS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Pq=function(){};
_.l(Pq,fj);Pq.prototype.getApiPaths=function(){return P$4};
Pq.prototype.getExtension=function(B){return _.D(B,Qi5)||void 0};
Pq.prototype.JSC$11817_buildRequest=function(B,R){R.channelIds&&(B.channelIds=R.channelIds);R.siloName&&(B.siloName=R.siloName);R.params&&(B.params=R.params)};
_.mh.Object.defineProperties(Pq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nS=function(B){this.shareClientParamsProvider=B};
_.l(nS,fj);nS.prototype.getApiPaths=function(){return UG4};
nS.prototype.getExtension=function(B){return _.D(B,hPv)||_.D(B,_.tHa)||_.D(B,Yj2)};
nS.prototype.JSC$11817_buildRequest=function(B,R){R.serializedShareEntity&&(B.serializedSharedEntity=R.serializedShareEntity);if(R.clientParamIdentifier){var V;if((V=this.shareClientParamsProvider)==null?0:V.clientParams.has(R.clientParamIdentifier)){V=this.shareClientParamsProvider;R=R.clientParamIdentifier;var e=V.clientParams.get(R);e&&V.clientParams.delete(R);B.clientParams=e}}};
nS[na]=[j22];var uL=function(){};
_.l(uL,fj);uL.prototype.getApiPaths=function(){return TM4};
uL.prototype.getExtension=function(B){return _.D(B,GHR)};
uL.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var Oi=function(){};
_.l(Oi,fj);Oi.prototype.getApiPaths=function(){return nZa};
Oi.prototype.getExtension=function(B){return _.D(B,jBh)};
Oi.prototype.JSC$11817_buildRequest=function(B,R){R.dismissal&&(B.items=[R.dismissal])};
_.mh.Object.defineProperties(Oi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oZ=function(){};
_.l(oZ,fj);oZ.prototype.getApiPaths=function(){return kxa};
oZ.prototype.getExtension=function(B){return _.D(B,_.Ki)||void 0};
oZ.prototype.JSC$11817_buildRequest=function(B,R,V){B.feedbackTokens=[];R.feedbackToken&&B.feedbackTokens.push(R.feedbackToken);if(R=R.cpn||V.cpn)B.feedbackContext={cpn:R};B.isFeedbackTokenUnencrypted=!!V.is_feedback_token_unencrypted;B.shouldMerge=!1;V.extra_feedback_tokens&&(B.shouldMerge=!0,B.feedbackTokens=B.feedbackTokens.concat(V.extra_feedback_tokens))};
_.mh.Object.defineProperties(oZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var B1=function(){};
_.l(B1,fj);B1.prototype.getApiPaths=function(){return kxa};
B1.prototype.getExtension=function(B){return _.D(B,_.hE)};
B1.prototype.JSC$11817_buildRequest=function(B,R,V){V.feedback_tokens&&(B.feedbackTokens=V.feedback_tokens,B.shouldMerge=!0)};
_.mh.Object.defineProperties(B1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RZ=function(){};
_.l(RZ,fj);RZ.prototype.getApiPaths=function(){return kxa};
RZ.prototype.getExtension=function(B){return _.D(B,tLo)};
RZ.prototype.JSC$11817_buildRequest=function(B,R){R.undoToken&&(B.feedbackTokens=[R.undoToken]);R.isUndoTokenUnencrypted&&(B.isFeedbackTokenUnencrypted=R.isUndoTokenUnencrypted)};
_.mh.Object.defineProperties(RZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vq=function(){};
_.l(Vq,fj);Vq.prototype.getApiPaths=function(){return puv};
Vq.prototype.getExtension=function(B){return _.D(B,Wt4)};
Vq.prototype.JSC$11817_buildRequest=function(B,R){R.nextEndpoint&&_.D(R.nextEndpoint,_.ie)?B.nextEndpoint={urlEndpoint:_.D(R.nextEndpoint,_.ie)}:R.nextEndpoint&&_.D(R.nextEndpoint,_.sI)&&(B.nextEndpoint={watchEndpoint:_.D(R.nextEndpoint,_.sI)});R.setRacy&&(B.setRacy=R.setRacy);R.setControvercy&&(B.setControvercy=R.setControvercy)};var eK=function(B){this.JSC$15585_storeWithEntities=B};
_.l(eK,fj);eK.prototype.getApiPaths=function(){return OF4};
eK.prototype.getExtension=function(B){return _.D(B,IGo)};
eK.prototype.JSC$11817_buildRequest=function(B,R){R.flowId&&(B.flowId=R.flowId);R.targetId&&(B.targetId=R.targetId);R.continuation&&(B.continuation=R.continuation);var V=R.flowStateEntityKey;if(R.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&V&&this.JSC$15585_storeWithEntities){var e;if(R=(e=this.JSC$15585_storeWithEntities.getState())==null?void 0:e.entities)if(e=_.Rr(V).entityType,e=_.p7(R,e,V))B.flowState=e,B.flowStateEntityKey=V}};
_.mh.Object.defineProperties(eK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
eK[na]=[Jn];var ZK2=function(){};
_.l(ZK2,fj);_.p=ZK2.prototype;_.p.getApiPaths=function(){return Mj2};
_.p.JSC$11824_getStoreKey=function(){return _.is("guide")};
_.p.getRequestConfig=function(){var B=this.JSC$11824_getStoreKey(),R;B&&(R={storeStrategy:{storeKey:B}});return R};
_.p.isNavigationCommand=function(){return!0};
_.p.getExtension=function(B){return _.D(B,_.hE)};
_.p.JSC$11817_buildRequest=function(B){B.fetchLiveState=!0};var XY=function(){};
_.l(XY,fj);XY.prototype.getApiPaths=function(){return KDS};
XY.prototype.getExtension=function(B){return _.D(B,Srb)};
XY.prototype.JSC$11817_buildRequest=function(){};var pN=function(){};
_.l(pN,fj);pN.prototype.getApiPaths=function(){return I22};
pN.prototype.getExtension=function(B){return _.D(B,HC5)};
pN.prototype.JSC$11817_buildRequest=function(){};var Yt=function(){};
_.l(Yt,fj);Yt.prototype.getApiPaths=function(){return wDT};
Yt.prototype.getExtension=function(B){return _.D(B,_.xB)};
Yt.prototype.JSC$11817_buildRequest=function(B,R){R.token&&(B.continuation=R.token);var V,e;B==null||(V=B.context)==null||(e=V.user)==null||delete e.onBehalfOfUser};
Yt.prototype.getRequestConfig=function(B){var R={},V;if(((V=this.getExtension(B))==null?void 0:V.sessionIndex)!==void 0){var e;R={authStrategy:{sessionIndex:(e=this.getExtension(B))==null?void 0:e.sessionIndex}}}return R};var NO=function(){};
_.l(NO,fj);NO.prototype.JSC$11817_getRequest=function(B){var R=this.getExtension(B),V=B="";if(R==null?0:R.popup)B="true";if(R==null?0:R.disableSignout)V="true";R={};return{input:"/getAccountSwitcherEndpoint",requestShell:AZ("/getAccountSwitcherEndpoint","GET",(R["X-YouTube-Delegation-Context"]=_.vE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),R["X-YouTube-Account-Switcher-Popup"]=B,R["X-YouTube-Account-Switcher-Disable-Signout"]=V,R)),innerTubeRequest:{}}};
NO.prototype.getApiPaths=function(){return[]};
NO.prototype.getExtension=function(B){return _.D(B,_.L1_)};
NO.prototype.JSC$11817_buildRequest=function(){};var Gc=function(){};
_.l(Gc,fj);Gc.prototype.JSC$11817_getRequest=function(B){var R="/cross_account_channel_transfer";(B=this.getExtension(B))&&(R=fpA(R,{target_session:B.targetSessionIndex,source_rapt:B.sourceRapt,rapt:B.targetRapt}));return{input:R,requestShell:AZ(R,"GET"),innerTubeRequest:{}}};
Gc.prototype.getApiPaths=function(){return[]};
Gc.prototype.getExtension=function(B){return _.D(B,SDb)};
Gc.prototype.JSC$11817_buildRequest=function(){};var yq=function(){};
_.l(yq,fj);yq.prototype.getApiPaths=function(){return oEh};
yq.prototype.isNavigationCommand=function(){return!0};
yq.prototype.getExtension=function(B){return _.D(B,_.hE)};
yq.prototype.JSC$11817_buildRequest=function(B){var R=_.UV().get("gsml","");R&&(B.safetyModeLockerObfuscatedGaiaId=R);B.userInterfaceTheme=_.Lk(!0);_.v$()?B.deviceTheme="DEVICE_THEME_SELECTED":_.lFu()?B.deviceTheme="DEVICE_THEME_SUPPORTED":B.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var SK=function(){};
_.l(SK,fj);SK.prototype.getApiPaths=function(){return wDT};
SK.prototype.getExtension=function(B){return _.D(B,HUh)};
SK.prototype.JSC$11817_buildRequest=function(B,R){if(R&&R.requestType&&(B.requestType=R.requestType,R.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||R.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var V=R.nextUrl;V&&(_.zWK(V)||PE(V))&&(B.nextNavendpoint={urlEndpoint:{url:V}})}R&&R.channelSwitcherQuery&&(B.channelSwitcherQuery=R.channelSwitcherQuery);R&&R.triggerChannelCreation&&(B.triggerChannelCreation=R.triggerChannelCreation);var e;if(R==null?0:(e=R.contentOwnerConfig)==
null?0:e.externalContentOwnerId)B.contentOwnerConfig=R.contentOwnerConfig;B.callCircumstance=R&&R.requestType&&R.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var X,Y;R=B==null?void 0:(X=B.context)==null?void 0:(Y=X.user)==null?void 0:Y.onBehalfOfUser;if(R!==void 0){B.obfuscatedSelectedGaiaId=R;var t,b;B==null||(t=B.context)==null||(b=t.user)==null||delete b.onBehalfOfUser}var J,G;if(X=B==null?void 0:(J=B.context)==null?void 0:(G=J.user)==null?
void 0:G.serializedDelegationContext)B.selectedSerializedDelegationContext=X};var H1=function(){};
_.l(H1,fj);H1.prototype.getApiPaths=function(){return joh};
H1.prototype.getExtension=function(B){return _.D(B,U64)};
H1.prototype.JSC$11817_buildRequest=function(B,R){R.profileOwnerExternalChannelId&&(B.profileOwnerExternalChannelId=R.profileOwnerExternalChannelId);R.profileCardContext&&(B.profileCardContext=R.profileCardContext)};var MO=function(){};
_.l(MO,fj);MO.prototype.getApiPaths=function(){return xqh};
MO.prototype.getExtension=function(B){return _.D(B,WGh)};
MO.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var kt=function(){};
_.l(kt,fj);kt.prototype.getApiPaths=function(){return Apv};
kt.prototype.getExtension=function(B){return _.D(B,_.lAR)};
kt.prototype.JSC$11817_buildRequest=function(B,R){if(R=R.createBroadcastRequest)B.useMasks=R.useMasks,B.broadcastType=R.broadcastType,B.broadcastSource=R.broadcastSource,B.broadcastMetadata=R.broadcastMetadata,B.broadcastMetadataMask=R.broadcastMetadataMask,B.videoMetadata=R.videoMetadata,B.videoMetadataMask=R.videoMetadataMask,B.liveChatSettingsUpdate=R.liveChatSettingsUpdate,B.liveChatSettingsUpdateMask=R.liveChatSettingsUpdateMask,B.cloneVideoId=R.cloneVideoId,B.cloneWithOverrides=R.cloneWithOverrides,
B.targetEntity=R.targetEntity,B.scheduledRedirectMetadata=R.scheduledRedirectMetadata};var DW=function(){};
_.l(DW,fj);DW.prototype.getApiPaths=function(){return rpR};
DW.prototype.getExtension=function(B){return _.D(B,l$J)};
DW.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.params&&(B.params=R.params);V.questionText&&(B.questionText=V.questionText);V.optionText&&V.optionText.length>0&&(B.optionText=V.optionText)};var fN=function(){};
_.l(fN,fj);fN.prototype.getApiPaths=function(){return mq5};
fN.prototype.getExtension=function(B){return _.D(B,DE_)};
fN.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var l7=function(){};
_.l(l7,fj);l7.prototype.getApiPaths=function(){return XPh};
l7.prototype.getExtension=function(B){return _.D(B,SeS)};
l7.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var zc=function(){};
_.l(zc,fj);zc.prototype.getApiPaths=function(){return YHT};
zc.prototype.getExtension=function(B){return _.D(B,Ha_)};
zc.prototype.JSC$11817_buildRequest=function(B,R,V){R.params&&(B.params=R.params);R.continuation&&(B.continuation=R.continuation);V.currentPlayerState&&V.currentPlayerState.playerOffsetMs&&(B.currentPlayerState={playerOffsetMs:V.currentPlayerState.playerOffsetMs.toString()})};var aZ=function(){};
_.l(aZ,fj);aZ.prototype.getApiPaths=function(){return h$b};
aZ.prototype.getExtension=function(B){return _.D(B,yH4)};
aZ.prototype.JSC$11817_buildRequest=function(B,R,V){R.params&&(B.params=R.params);V.continuation&&(B.continuation=V.continuation);"hidden"in V&&(B.webClientInfo={isDocumentHidden:V.hidden});V.isInvalidationTimeoutRequest&&(B.isInvalidationTimeoutRequest=V.isInvalidationTimeoutRequest);V.invalidationPayload&&(R=G34(_.Uo(nQ(V.invalidationPayload))),B.invalidationPayloadLastPublishAtUsec=vb(R,2));V.reloadActionPanel&&(B.reloadActionPanel=V.reloadActionPanel);V.fullReload&&(B.fullReload=V.fullReload);
V.currentPlayerState&&(B.currentPlayerState=V.currentPlayerState)};var d7=function(){};
_.l(d7,fj);d7.prototype.getApiPaths=function(){return lbb};
d7.prototype.getExtension=function(B){return _.D(B,f$4)};
d7.prototype.JSC$11817_buildRequest=function(B,R){B.params=R.params};var w7=function(){};
_.l(w7,fj);w7.prototype.getApiPaths=function(){return pPv};
w7.prototype.getExtension=function(B){return _.D(B,ar_)};
w7.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var Tc=function(){};
_.l(Tc,fj);Tc.prototype.getApiPaths=function(){return tjJ};
Tc.prototype.getExtension=function(B){return _.D(B,d7_)};
Tc.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var xt=function(){};
_.l(xt,fj);xt.prototype.getApiPaths=function(){return z$b};
xt.prototype.getExtension=function(B){return _.D(B,z55)};
xt.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var LN=function(){};
_.l(LN,fj);LN.prototype.getApiPaths=function(){return dGR};
LN.prototype.getExtension=function(B){return _.D(B,a$T)};
LN.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var v1=function(){};
_.l(v1,fj);v1.prototype.getApiPaths=function(){return Qol};
v1.prototype.getExtension=function(B){return _.D(B,jch)};
v1.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var KN=function(){};
_.l(KN,fj);KN.prototype.getApiPaths=function(){return rd4};
KN.prototype.getExtension=function(B){return _.D(B,_.dE5)};
KN.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.params&&(B.params=R.params);V.client_message_id&&(B.clientMessageId=V.client_message_id);V.recaptcha_token&&(B.recaptchaToken=V.recaptcha_token);V.rich_message&&V.rich_message.text_segments?(R=V.rich_message.text_segments.map(function(e){var X={};e.text&&(X.text=e.text);e.emoji_id&&(X.emojiId=e.emoji_id);return X}),B.richMessage={textSegments:R}):V.message&&(B.message=V.message);
V.currentPlayerState&&(B.currentPlayerState=V.currentPlayerState)};var IZ=function(){};
_.l(IZ,fj);IZ.prototype.getApiPaths=function(){return gEo};
IZ.prototype.getExtension=function(B){return _.D(B,wT_)};
IZ.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var E9=function(){};
_.l(E9,fj);E9.prototype.getApiPaths=function(){return C$o};
E9.prototype.getExtension=function(B){return _.D(B,xEo)};
E9.prototype.JSC$11817_buildRequest=function(B,R,V){R.isUserInitiated&&(B.isUserInitiated=R.isUserInitiated);R.initiationSource&&(B.initiationSource=R.initiationSource);V.locationInfo&&(B.context.client.locationInfo=V.locationInfo)};var Qq=function(){};
_.l(Qq,fj);Qq.prototype.getApiPaths=function(){return abb};
Qq.prototype.getExtension=function(B){return _.D(B,zM5)};
Qq.prototype.JSC$11817_buildRequest=function(B,R,V){R.metadataUpdateRequest&&(R=R.metadataUpdateRequest,B.encryptedVideoId=R.encryptedVideoId,R.liveChat&&(R=R.liveChat,B.liveChat||(B.liveChat={}),R.performAsExternalChannelId&&(B.liveChat.performAsExternalChannelId=R.performAsExternalChannelId),R.source&&(B.liveChat.source=R.source)));var e;if(V==null?0:(e=V.liveChat)==null?0:e.liveChatSettings)B.liveChat||(B.liveChat={}),V=V.liveChat.liveChatSettings,B.liveChat.newLiveChatSettings=V,B.liveChat.newLiveChatSettingsMask||
(B.liveChat.newLiveChatSettingsMask={}),V.emojiReactionSet&&(B.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var qO=function(){};
_.l(qO,fj);qO.prototype.getApiPaths=function(){return enh};
qO.prototype.getExtension=function(B){return _.D(B,_.qN2)};
qO.prototype.JSC$11817_buildRequest=function(B,R,V){V.continuation?B.continuation=V.continuation:R.videoId&&(B.videoId=R.videoId);V.clientParams&&(B.clientParams=V.clientParams)};var c1=function(){};
_.l(c1,fj);c1.prototype.getApiPaths=function(){return WzG};
c1.prototype.getExtension=function(B){return _.D(B,_.xi)};
c1.prototype.JSC$11817_buildRequest=function(B,R){B.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";B.fetchCommentsParams={};R.videoId&&(B.fetchCommentsParams.encryptedVideoId=R.videoId);R.postId&&(B.fetchCommentsParams.postId=R.postId);R.externalChannelId&&(B.fetchCommentsParams.externalChannelId=R.externalChannelId);R.linkedCommentId&&(B.fetchCommentsParams.linkedCommentId=R.linkedCommentId);(0,_.M_.isEmpty)(B.fetchCommentsParams)&&delete B.fetchCommentsParams};var AW=function(){};
_.l(AW,fj);AW.prototype.getApiPaths=function(){return VA};
AW.prototype.JSC$11817_buildRequest=function(B){B.browseId="FEnotifications_inbox"};
AW.prototype.getExtension=function(B){return _.D(B,_.hE)};var i7=function(){};
_.l(i7,fj);i7.prototype.getApiPaths=function(){return WzG};
i7.prototype.JSC$11817_buildRequest=function(B,R){R.signal==="GET_NOTIFICATIONS_MENU"&&(B.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");R.ctoken&&(B.ctoken=R.ctoken)};
var mQb=function(){};
_.l(mQb,i7);mQb.prototype.getExtension=function(B){return _.D(B,_.hE)};
var $Q_=function(){};
_.l($Q_,i7);$Q_.prototype.getExtension=function(B){return _.D(B,Ynl)};var s9=function(){};
_.l(s9,fj);s9.prototype.getApiPaths=function(){return ydG};
s9.prototype.getExtension=function(B){return _.D(B,_.hE)};
s9.prototype.JSC$11817_buildRequest=function(){};var FY=function(){};
_.l(FY,fj);FY.prototype.getApiPaths=function(){return wPS};
FY.prototype.getExtension=function(B){return _.D(B,vi4)||void 0};
FY.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params);R.secondaryParams&&(B.secondaryParams=R.secondaryParams)};var r7=function(){};
_.l(r7,fj);r7.prototype.getApiPaths=function(){return TYh};
r7.prototype.getExtension=function(B){return _.D(B,b8G)};
r7.prototype.JSC$11817_buildRequest=function(B,R){R.undo&&(B.undo=R.undo);R.serializedOptOut&&(B.serializedOptOut=R.serializedOptOut);R.serializedRecordInteractionsRequest&&(B.serializedRecordInteractionsRequest=R.serializedRecordInteractionsRequest)};var g7=function(){};
_.l(g7,fj);g7.prototype.getApiPaths=function(){return vEa};
g7.prototype.getExtension=function(B){return _.D(B,JfG)};
g7.prototype.JSC$11817_buildRequest=function(B,R){R.serializedInteractionsRequest&&(B.serializedRecordNotificationInteractionsRequest=R.serializedInteractionsRequest)};var ZW=function(){};
_.l(ZW,fj);ZW.prototype.getApiPaths=function(){return QMq};
ZW.prototype.getExtension=function(B){return _.D(B,AjN)};
ZW.prototype.JSC$11817_buildRequest=function(B,R,V){R=R===void 0?{}:R;V=V===void 0?{}:V;R.videoId?B.videoId=R.videoId:R.playlistId&&(B.playlistId=R.playlistId);var e,X=(e=R.offlineWebClientEligibility)!=null?e:V.offlineWebClientEligibility;X&&(B.offlineWebClientEligibility=X);var Y;if(e=(Y=R.preferredFormatType)!=null?Y:V.preferredFormatType)B.preferredFormatType=e;var t;if(Y=(t=R.lastOfflineQualitySettingsSavedMs)!=null?t:V.lastOfflineQualitySettingsSavedMs)B.lastOfflineQualitySettingsSavedMs=Y;
R.params&&(B.params=R.params)};var m_=function(){};
_.l(m_,fj);m_.prototype.getApiPaths=function(){return $i};
m_.prototype.getExtension=function(B){return _.D(B,_.xB)};
m_.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.token&&(B.continuation=R.token);V.formData&&(B.formData=V.formData)};var $t=function(){};
_.l($t,fj);$t.prototype.getApiPaths=function(){return $i};
$t.prototype.getExtension=function(B){return _.D(B,Hg2)};
$t.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;B.continuation=V.continuation};var CN=function(){};
_.l(CN,fj);CN.prototype.getApiPaths=function(){return $i};
CN.prototype.getExtension=function(B){return _.D(B,_.vS)};
CN.prototype.JSC$11817_buildRequest=function(B,R){var V,e=R.panelIdentifier||((V=R.identifier)==null?void 0:V.tag);e&&(B.panelId=e);var X;if((X=R.globalConfiguration)==null?0:X.params){var Y;B.params=(Y=R.globalConfiguration)==null?void 0:Y.params}};
_.mh.Object.defineProperties(CN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P1=function(){};
_.l(P1,fj);P1.prototype.getApiPaths=function(){return $i};
P1.prototype.getExtension=function(B){return _.D(B,B3_)};
P1.prototype.JSC$11817_buildRequest=function(B,R){R.panelLoadingStrategy&&xFo(B,R.panelLoadingStrategy)};var nN=function(){};
_.l(nN,fj);nN.prototype.getApiPaths=function(){return $i};
nN.prototype.getExtension=function(B){return _.D(B,fr4)};
nN.prototype.JSC$11817_buildRequest=function(B,R){R.loadingStrategy&&xFo(B,R.loadingStrategy)};var u7=function(){};
_.l(u7,fj);u7.prototype.getApiPaths=function(){return $i};
u7.prototype.getExtension=function(B){return _.D(B,_.H7)};
u7.prototype.JSC$11817_buildRequest=function(B,R){R.panelLoadingStrategy&&xFo(B,R.panelLoadingStrategy)};var O9=function(){};
_.l(O9,fj);O9.prototype.getApiPaths=function(){return $i};
O9.prototype.getExtension=function(B){return _.D(B,lr5)};
O9.prototype.JSC$11817_buildRequest=function(B,R){var V,e=(V=R.contentSourcePanelIdentifier)==null?void 0:V.tag;e&&(B.panelId=e);var X;if((X=R.globalConfiguration)==null?0:X.params){var Y;B.params=(Y=R.globalConfiguration)==null?void 0:Y.params}};var oQ=function(){};
_.l(oQ,fj);oQ.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
oQ.prototype.getExtension=function(B){return _.D(B,zPJ)};
oQ.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var BG=function(){};
_.l(BG,fj);BG.prototype.getApiPaths=function(){return V5a};
BG.prototype.getExtension=function(B){return _.D(B,w9v)};
BG.prototype.JSC$11817_buildRequest=function(B,R){R.externalChannelId&&(B.externalChannelId=R.externalChannelId);R.superChatAction&&(B.superChatAction=R.superChatAction);R.superStickersAction&&(B.superStickersAction=R.superStickersAction)};var RQ=function(){};
_.l(RQ,fj);RQ.prototype.getApiPaths=function(){return BYT};
RQ.prototype.getExtension=function(B){return _.D(B,yT5)||_.D(B,sYq)};
RQ.prototype.JSC$11817_buildRequest=function(B,R){R.videoIds?B.videoIds=R.videoIds:R.videoId&&(B.videoIds=[R.videoId]);R.playlistId&&(B.playlistId=R.playlistId);R.params&&(B.params=R.params);B.excludeWatchLater=!1};var V0=function(){};
_.l(V0,fj);V0.prototype.getApiPaths=function(){return gZ4};
V0.prototype.getExtension=function(B){return _.D(B,_.qf)};
V0.prototype.JSC$11817_buildRequest=function(B,R,V){V.create_playlist_title?B.title=V.create_playlist_title:R.title&&(B.title=R.title);if(V.create_playlist_privacy_status&&typeof V.create_playlist_privacy_status==="number"){a:{var e=V.create_playlist_privacy_status;if(e!==0){if(e===1){e="PUBLIC";break a}if(e===2){e="UNLISTED";break a}}e="PRIVATE"}B.privacyStatus=e}else R.privacyStatus&&(B.privacyStatus=R.privacyStatus);V.create_playlist_description&&(B.description=V.create_playlist_description);R.videoIds&&
(B.videoIds=R.videoIds);R.params&&(B.params=R.params);R.sourcePlaylistId&&(B.sourcePlaylistId=R.sourcePlaylistId)};var e1=function(){};
_.l(e1,fj);e1.prototype.getApiPaths=function(){return $qJ};
e1.prototype.getExtension=function(B){return _.D(B,xfb)};
e1.prototype.JSC$11817_buildRequest=function(B,R){B.playlistId=R.playlistId};var Xz=function(){};
_.l(Xz,fj);Xz.prototype.getApiPaths=function(){return bj4};
Xz.prototype.getExtension=function(B){return _.D(B,X9J)};
Xz.prototype.JSC$11817_buildRequest=function(B,R){R.playlistId&&(B.playlistId=R.playlistId);R.params&&(B.params=R.params)};var pX=function(){};
_.l(pX,fj);pX.prototype.getApiPaths=function(){return LzT};
pX.prototype.getExtension=function(B){return _.D(B,_.Lt)||void 0};
pX.prototype.JSC$11817_buildRequest=function(B,R){R.actions&&(B.actions=R.actions);R.params&&(B.params=R.params);R.playlistId&&(B.playlistId=R.playlistId)};var YS=function(){};
_.l(YS,fj);_.p=YS.prototype;_.p.getApiPaths=function(){return Kz4};
_.p.getExtension=function(B){return _.D(B,_.GF)};
_.p.JSC$11817_buildRequest=function(B,R){R.videoId&&(B.playerRequest={videoId:R.videoId},R.playerParams&&(B.playerRequest.params=R.playerParams),R.racyCheckOk&&(B.playerRequest.racyCheckOk=!!R.racyCheckOk),R.contentCheckOk&&(B.playerRequest.contentCheckOk=!!R.contentCheckOk));R.params&&(B.params=R.params);R.inputType&&(B.inputType=R.inputType);B.disablePlayerResponse=!0};
_.p.getRequestConfig=function(B){var R;(B=this.JSC$11824_getStoreKey(B))&&(R={storeStrategy:{storeKey:B}});_.k("web_log_reels_ticks")&&(R=R||{},R.requestTick="r_wrs",R.responseTick="r_wrr");return R};
_.p.JSC$11824_getStoreKey=function(B){B=this.getExtension(B);if(_.k("shorts_controller_retrieve_seedless_sequence_v2")){if((B==null?void 0:B.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.is("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.k("web_prefetch_riw_for_next_video")||_.k("web_shorts_prefetch_service_enabled"))&&B!=null&&B.videoId){var R={videoId:B.videoId};B.params&&(R.params=B.params);return _.is("reel_item_watch",R)}};var hl=function(){};
_.l(hl,fj);_.p=hl.prototype;_.p.getApiPaths=function(){return IbR};
_.p.getExtension=function(B){return _.D(B,_.GF)};
_.p.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;B.sequenceParams=R.sequenceParams;var e;((e=V)==null?0:e.contentPlaybackContext)&&_.k("web_shorts_prefetch_service_enabled")&&(B.playbackContext={contentPlaybackContext:V.contentPlaybackContext})};
_.p.JSC$11824_getStoreKey=function(B){if(_.k("shorts_controller_retrieve_seedless_sequence_v2")&&(B=this.getExtension(B),B==null?0:B.sequenceParams))return _.is("reel_watch_sequence",{sequenceParams:B.sequenceParams})};
_.p.getRequestConfig=function(B){B=this.JSC$11824_getStoreKey(B);var R;B&&(R={storeStrategy:{storeKey:B}});_.k("reel_watch_sequence_request_log_ticks")&&(R=R||{},R.requestTick="r_wsrs",R.responseTick="r_wsrr",R.processorTick="r_wsrp");return R};
var tl=function(){};
_.l(tl,fj);tl.prototype.getApiPaths=function(){return IbR};
tl.prototype.getExtension=function(B){return _.D(B,_.xB)};
tl.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.token&&(B.continuation=R.token);var e;((e=V)==null?0:e.contentPlaybackContext)&&_.k("web_shorts_prefetch_service_enabled")&&(B.playbackContext={contentPlaybackContext:V.contentPlaybackContext})};
tl.prototype.getRequestConfig=function(B){B=this.JSC$11824_getStoreKey(B);var R;B&&(R={storeStrategy:{storeKey:B}});_.k("reel_watch_sequence_request_log_ticks")&&(R=R||{},R.requestTick="r_wsrs",R.responseTick="r_wsrr",R.processorTick="r_wsrp");return R};var WG=function(){};
_.l(WG,fj);WG.prototype.getApiPaths=function(){return uka};
WG.prototype.getExtension=function(B){return _.D(B,_.Kt_)};
WG.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.flagAction&&(B.action=R.flagAction);R.flagRequestType&&(B.flagRequestType=R.flagRequestType);R.additionalDetailCheckboxChecked&&(B.additionalDetailCheckboxChecked=R.additionalDetailCheckboxChecked);R.legalCheckboxChecked&&(B.legalCheckboxChecked=R.legalCheckboxChecked);R={};V.flag_issue_type!==void 0&&(R.issue=V.flag_issue_type);V.flag_affiliation!==void 0&&(R.affiliation=V.flag_affiliation);V.flag_full_name&&(R.fullName=V.flag_full_name);
Object.keys(R).length&&(B.legalReportDetails=R);if(V.flag_description||V.text)B.userComments=V.flag_description||V.text;R={};V.minutes!==void 0&&V.seconds!==void 0&&(R.minutes=V.minutes,R.seconds=V.seconds);V.vss_id&&(R.vssId=V.vss_id);Object.keys(R).length&&(B.videoReportDetails=R);R={};V.video_ids&&(R.videoIds=V.video_ids);V.impersonated_channel_url&&(R.impersonatedChannelUrl=V.impersonated_channel_url);Object.keys(R).length&&(B.channelAbuseReportDetails=R)};
_.mh.Object.defineProperties(WG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bY=function(){};
_.l(bY,fj);bY.prototype.getApiPaths=function(){return e$_};
bY.prototype.getExtension=function(B){return _.D(B,h5v)};
bY.prototype.JSC$11817_buildRequest=function(B,R){R.blockedForKidsContent&&(B.blockedForKidsContent=R.blockedForKidsContent)};var Jl=function(){};
_.l(Jl,fj);Jl.prototype.getApiPaths=function(){return qHS};
Jl.prototype.getExtension=function(B){return _.D(B,iSA)};
Jl.prototype.JSC$11817_buildRequest=function(B,R,V){B.params=R.params;V.impersonated_channel_url&&(B.impersonatedChannelUrl=V.impersonated_channel_url)};var j1=function(){};
_.l(j1,fj);j1.prototype.getApiPaths=function(){return DGb};
j1.prototype.getExtension=function(B){return _.D(B,_.tpG)};
j1.prototype.JSC$11817_buildRequest=function(B,R){R.items&&(B.items=R.items);R.kidGaiaId&&(B.kidGaiaId=R.kidGaiaId)};var UM=function(){};
_.l(UM,fj);UM.prototype.getApiPaths=function(){return R$4};
UM.prototype.getExtension=function(B){return _.D(B,_.NvS)};
UM.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params);R.targetId&&(B.targetId=R.targetId)};var N5=function(){};
_.l(N5,fj);N5.prototype.getApiPaths=function(){return soG};
N5.prototype.getExtension=function(B){return _.D(B,hEb)};
N5.prototype.JSC$11817_buildRequest=function(B,R){R.externalVideoId&&(B.externalVideoId=R.externalVideoId);R.query&&(B.query=R.query);R.sourceTimelines&&(B.sourceTimelines=R.sourceTimelines)};var Gq=function(){};
_.l(Gq,fj);Gq.prototype.getApiPaths=function(){return Fz4};
Gq.prototype.getExtension=function(B){return _.D(B,_.xB)||void 0};
Gq.prototype.JSC$11817_buildRequest=function(B,R){R.token&&(B.continuation=R.token)};
_.CQ4=function(){};
_.l(_.CQ4,fj);_.p=_.CQ4.prototype;_.p.getApiPaths=function(){return Fz4};
_.p.getExtension=function(B){return _.D(B,_.jc)||void 0};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$11824_getStoreKey=function(B,R){R=R===void 0?{}:R;if(!R.disableCache&&(B=this.getExtension(B))&&B.query)return R={query:B.query},B.params&&(R.params=B.params),_.is("search",R)};
_.p.JSC$11817_buildRequest=function(B,R,V){R.query&&(B.query=R.query);R.params&&(B.params=R.params);if(!_.k("web_forward_suggest_stats_killswitch")){var e=_.D(R,uCb);e&&(B.suggestStats=e)}var X;!_.k("kevlar_searchbox_stats_killswitch")&&((X=V.tempData)==null?0:X.gs_l)&&!_.D(R,uCb)&&(B.webSearchboxStatsUrl="/search?oq="+(V.tempData.oq||"")+"&gs_l="+V.tempData.gs_l);var Y;if((Y=V.tempData)==null?0:Y.entityMid)R=B.suggestionSearchParams||{},R.entityMid=V.tempData.entityMid,B.suggestionSearchParams=R};
_.p.getRequestConfig=function(B,R){R=R===void 0?{}:R;B=this.JSC$11824_getStoreKey(B,R);var V;B&&(V={storeStrategy:{storeKey:B}});_.k("web_log_search_ticks_ks")||(V=V||{},V.requestTick="sr_s",V.responseTick="sr_r");return V};var y0=function(){};
_.l(y0,fj);y0.prototype.getApiPaths=function(){return NY5};
y0.prototype.getExtension=function(B){return _.D(B,F8J)};
y0.prototype.JSC$11817_buildRequest=function(B,R){R.serializedGetSharingProviderDataParams&&(B.serializedGetSharingProviderDataParams=R.serializedGetSharingProviderDataParams)};var S1=function(){};
_.l(S1,fj);S1.prototype.getApiPaths=function(){return GxR};
S1.prototype.getExtension=function(B){return _.D(B,w_l)};
S1.prototype.JSC$11817_buildRequest=function(B,R){R.endpoint&&(B.endpoint=R.endpoint);R.action&&(B.action=R.action)};var HG=function(){};
_.l(HG,fj);HG.prototype.getApiPaths=function(){return CGG};
HG.prototype.getExtension=function(B){return _.D(B,L85)};
HG.prototype.JSC$11817_buildRequest=function(B,R){B.videoId=R.videoId;R.scheduledRedirectMetadataSourceVideoId&&(B.scheduledRedirectMetadata={sourceVideoId:R.scheduledRedirectMetadataSourceVideoId})};var PQ4=XMLHttpRequest.prototype.fetch,nV4=PQ4&&PQ4.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!gS?!0:!1;var M5=function(B){this.JSC$15853_storeWithEntities=B};
_.l(M5,fj);_.p=M5.prototype;_.p.getApiPaths=function(){return xGv};
_.p.getExtension=function(B){return _.D(B,_.sI)||_.D(B,_.GF)||_.D(B,IrG)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$11824_getStoreKey=function(B){if((_.k("kevlar_cache_on_ttl_player")||_.k("mweb_enable_shorts_innertube_player_prefetch")||_.k("mweb_use_new_history_manager")||_.k("web_shorts_prefetch_service_enabled"))&&(B=this.getExtension(B))&&B.videoId){var R={videoId:B.videoId};B.playlistId&&(R.playlistId=B.playlistId);B.playerParams&&(R.params=B.playerParams);return _.is("player",R)}};
_.p.JSC$11817_getClientScreen=function(B){var R;return((R=B.contentPlaybackContext)==null?void 0:R.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.p.JSC$11817_buildRequest=function(B,R,V){if(_.k("enable_interstitial_entity_check")){var e=this.JSC$15853_storeWithEntities;if(R.videoId)for(var X=_.h(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),Y=X.next();!Y.done;Y=X.next()){Y=Y.value;var t;var b=void 0,J=void 0,G=R.videoId,y=Y;(t=e)?(G=_.XF(G+y,"interstitialInteractionStateEntity"),t=(b=(J=_.p7(t.getState().entities,"interstitialInteractionStateEntity",G))==null?void 0:J.primaryButtonClicked)!=null?b:!1):t=!1;if(t)switch(Y){case "CONTENT_CHECK_REQUIRED":R.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":R.racyCheckOk=!0}}}R.videoId&&(B.videoId=R.videoId);R.playlistId&&(B.playlistId=R.playlistId);R.index!==void 0&&(B.playlistIndex=R.index+1);R.playerParams&&(B.params=R.playerParams);"startTimeSeconds"in R&&R.startTimeSeconds&&(_.k("enable_player_request_builder_start_time_floor")?B.startTimeSecs=Math.floor(R.startTimeSeconds):B.startTimeSecs=R.startTimeSeconds);V.contentPlaybackContext&&(B.playbackContext={contentPlaybackContext:V.contentPlaybackContext});V.prefetchPlaybackContext&&
(B.playbackContext=Object.assign({},B.playbackContext,{prefetchPlaybackContext:V.prefetchPlaybackContext}),B.context.request||(B.context.request={}),B.context.request.isPrefetch=!0);B.playbackContext||(B.playbackContext={});e=R2o();B.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!e,supportXhr:nV4};V.overrideMutedAtStart&&(B.overrideMutedAtStart=V.overrideMutedAtStart);B.racyCheckOk=!!R.racyCheckOk;B.contentCheckOk=!!R.contentCheckOk;!_.k("captions_prefs_killswitch")&&(V=(V=_.tp("yt-player-caption-language-preferences"))?
V:[],V==null?0:V.length)&&(B.captionParams={viewerSelectedCaptionLangs:V})};
_.p.getRequestConfig=function(B){B=this.JSC$11824_getStoreKey(B);var R;B&&(R={storeStrategy:{storeKey:B}});_.k("web_log_player_watch_next_ticks")&&(R=R||{},R.requestTick="ps_s",R.responseTick="ps_r");return R};
M5[na]=[Jn];var kS=function(){};
_.l(kS,fj);kS.prototype.getApiPaths=function(){return mG2};
kS.prototype.getExtension=function(B){return _.D(B,_.ke_)};
kS.prototype.JSC$11817_buildRequest=function(B,R){B.params=R.params;B.correctionText=R.correctionText};var DU=function(){};
_.l(DU,fj);DU.prototype.getApiPaths=function(){return Ii_};
DU.prototype.getExtension=function(B){return _.D(B,_.tIR)};
DU.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params);B.searchQuery=R.searchQuery;B.languageCode=R.languageCode;B.kind=R.kind;B.name=R.name;B.externalVideoId=R.externalVideoId};var fX=function(){};
_.l(fX,fj);_.p=fX.prototype;_.p.getApiPaths=function(){return Y_4};
_.p.getExtension=function(B){return _.D(B,_.sI)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$11824_getStoreKey=function(B){if((B=this.getExtension(B))&&B.videoId){var R={videoId:B.videoId};B.playlistId&&(R.playlistId=B.playlistId);B.index&&(R.index=B.index);B.params&&(R.params=B.params);return _.is("next",R)}};
_.p.JSC$11817_getClientScreen=function(B){var R;return((R=B.contentPlaybackContext)==null?void 0:R.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.p.JSC$11817_buildRequest=function(B,R,V){R.videoId&&(B.videoId=R.videoId);R.playlistId&&(B.playlistId=R.playlistId);R.params&&(B.params=R.params);R.index!==void 0&&(B.playlistIndex=R.index);B.racyCheckOk=!(!V.racyCheckOk&&!R.racyCheckOk);B.contentCheckOk=!!R.contentCheckOk;V.contentPlaybackContext&&(B.autonavState=V.contentPlaybackContext.autonavState,B.playbackContext={vis:V.contentPlaybackContext.vis,lactMilliseconds:V.contentPlaybackContext.lactMilliseconds});V.prefetchPlaybackContext&&(B.context.request||
(B.context.request={}),B.context.request.isPrefetch=!0);_.k("captions_hats_killswitch")||(R=_.UV().getFlag(65),R=R!=null?!R:!1,V=!!_.tp("yt-player-sticky-caption"),B.captionsRequested=R&&V)};
_.p.getRequestConfig=function(B){B=this.JSC$11824_getStoreKey(B);var R;B&&(R={storeStrategy:{storeKey:B}});_.k("web_log_player_watch_next_ticks")&&(R=R||{},R.requestTick="wn_s",R.responseTick="wn_r");return R};
var lY=function(){};
_.l(lY,fj);lY.prototype.getApiPaths=function(){return Y_4};
lY.prototype.getExtension=function(B){return _.D(B,_.xB)};
lY.prototype.JSC$11817_buildRequest=function(B,R){R.token&&(B.continuation=R.token)};var zq=function(B,R){this.playerRequestBuilder=B;this.watchNextRequestBuilder=R};
_.l(zq,fj);zq.prototype.getApiPaths=function(){return Hjh};
zq.prototype.getExtension=function(B){return _.D(B,_.sI)};
zq.prototype.isNavigationCommand=function(){return!0};
zq.prototype.JSC$11817_buildRequest=function(B,R,V){B.playerRequest={};this.playerRequestBuilder.JSC$11817_buildRequest(B.playerRequest,R,V);_.k("web_streaming_watch")&&(B.watchNextRequest={},this.watchNextRequestBuilder.JSC$11817_buildRequest(B.watchNextRequest,R,V))};
zq[na]=[M5,fX];var aQ=function(){};
_.l(aQ,fj);aQ.prototype.getApiPaths=function(){return hnJ};
aQ.prototype.getExtension=function(B){return _.D(B,EJl)};
aQ.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.params=R.params)};var dm=function(B){this.JSC$15880_storeWithEntities=B};
_.l(dm,fj);dm.prototype.getApiPaths=function(){return qb4};
dm.prototype.getExtension=function(B){return _.D(B,qp4)||_.D(B,Ay2)};
dm.prototype.JSC$11817_buildRequest=function(B,R,V){V.client_data&&(B.clientData=V.client_data);if(R.commerceActionConfig){var e=R.commerceActionConfig;R=e.actionId;e=e.commerceActionParams;R&&(B.actionId=R);e&&(B.commerceActionParams=e)}else{var X=R.actionId,Y=R.commerceActionParams;V=R.entityKeys;X&&(B.actionId=X);Y&&(B.commerceActionParams=Y);var t;R=(e=this.JSC$15880_storeWithEntities)==null?void 0:(t=e.getState())==null?void 0:t.entities;if(V&&R){e=[];t=_.h(V);for(V=t.next();!V.done;V=t.next())if(X=
V.value,V=_.Rr(X).entityType,X=_.p7(R,V,X))Y={},e.push((Y[V]=X,Y));B.entityMutationPayloads=e}}};
dm.prototype.getRequestConfig=function(B){var R,V=(R=_.D(B,qp4))==null?void 0:R.requestSequenceType;if(V&&B.clickTrackingParams&&V!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:B.clickTrackingParams,sequenceType:V}}};
dm[na]=[Jn];var wm=function(){};
_.l(wm,fj);wm.prototype.getApiPaths=function(){return t5T};
wm.prototype.getExtension=function(B){return _.D(B,_.eiR)};
wm.prototype.JSC$11817_buildRequest=function(B,R){R.feedbackData&&(B.feedbackData=R.feedbackData);R.params&&(B.itemParams=R.params)};
_.mh.Object.defineProperties(wm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Tq=function(){};
_.l(Tq,fj);Tq.prototype.getApiPaths=function(){return WV4};
Tq.prototype.getExtension=function(B){return _.D(B,XDT)};
Tq.prototype.JSC$11817_buildRequest=function(B,R,V){V.payments_payload&&(B.paymentsPayload=V.payments_payload);V.offer_params&&(B.offerParams=V.offer_params);R.transactionParams&&(B.transactionParams=R.transactionParams)};var xS=function(){};
_.l(xS,fj);xS.prototype.getApiPaths=function(){return bLb};
xS.prototype.getExtension=function(B){return _.D(B,_.pDv)};
xS.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.buybucketParams&&(B.buybucketData={params:R.buybucketParams},R.stickerParams?B.buybucketData.stickerParams=R.stickerParams:(V.rich_chat_message?B.buybucketData.richChatMessage=V.rich_chat_message:V.chat_message_text&&(B.buybucketData.chatMessageText=V.chat_message_text),V.purchase_price_micros&&(B.buybucketData.purchasePriceMicros=V.purchase_price_micros.toString())));R.donationAmountMicros&&(B.tipAmountMicros=R.donationAmountMicros,
R.tipParams&&(B.tipParams=R.tipParams));R.offerParams&&(B.offerParams=R.offerParams);R.productData&&(B.productData=R.productData);R.transactionParams&&(B.transactionParams=R.transactionParams)};var LX=function(){};
_.l(LX,fj);LX.prototype.getApiPaths=function(){return JUl};
LX.prototype.getExtension=function(B){return _.D(B,tS5)};
LX.prototype.JSC$11817_buildRequest=function(B,R){R.updateFopParams&&(B.updateFopParams=R.updateFopParams)};var vG=function(){};
_.l(vG,fj);vG.prototype.getApiPaths=function(){return j$_};
vG.prototype.getExtension=function(B){return _.D(B,_.pw)};
vG.prototype.JSC$11817_buildRequest=function(B,R){R.couponCode&&(B.couponCode=R.couponCode);R.params&&(B.itemParams=R.params)};var KX=function(){};
_.l(KX,fj);KX.prototype.getApiPaths=function(){return Uaa};
KX.prototype.getExtension=function(B){return _.D(B,_.cy2)};
KX.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;R.params&&(B.params=R.params);V.ctk&&(B.clientToken=V.ctk)};var IQ=function(B){this.JSC$15915_storeWithEntities=B};
_.l(IQ,fj);IQ.prototype.getApiPaths=function(){return Ntl};
IQ.prototype.getExtension=function(B){return _.D(B,_.AG)};
IQ.prototype.JSC$11817_buildRequest=function(B,R,V){V.purchase_price_micros&&(B.productData={pdgData:{purchasePriceMicros:V.purchase_price_micros.toString()}},V.rich_chat_message&&(B.productData.pdgData.richChatMessage=V.rich_chat_message),V.currency_code&&(B.productData.pdgData.currencyCode=V.currency_code));R.transactionParams&&(B.transactionParams=R.transactionParams);R.clientLocationContext&&(B.clientLocationContext=R.clientLocationContext);V.payments_payload&&(B.paymentsPayload=V.payments_payload);
V.funds_guarantee_callback_client_data&&(B.fundsGuaranteeCallbackClientData=V.funds_guarantee_callback_client_data);var e,X;V=(e=this.JSC$15915_storeWithEntities)==null?void 0:(X=e.getState())==null?void 0:X.entities;if(R.entityKeys&&V){e=[];R=_.h(R.entityKeys);for(X=R.next();!X.done;X=R.next()){var Y=X.value;X=_.Rr(Y).entityType;if(Y=_.p7(V,X,Y)){var t={};e.push((t[X]=Y,t))}}B.entityMutationPayloads=e}};
IQ[na]=[Jn];var EM=function(){};
_.l(EM,fj);EM.prototype.getApiPaths=function(){return GYS};
EM.prototype.getExtension=function(B){return _.D(B,Yb5)};
EM.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;V.backend_analytics&&(B.serializedBackendAnalyticsEvent=V.backend_analytics);R.offerParams&&(B.offerParams=R.offerParams)};var Q0=function(){};
_.l(Q0,fj);Q0.prototype.getApiPaths=function(){return j$_};
Q0.prototype.getExtension=function(B){return _.D(B,tTS)};
Q0.prototype.JSC$11817_buildRequest=function(B,R){R.params&&(B.itemParams=R.params)};var q5=function(){};
_.l(q5,fj);q5.prototype.getApiPaths=function(){return yUG};
q5.prototype.getExtension=function(B){return _.D(B,_.gJS)};
q5.prototype.JSC$11817_buildRequest=function(B,R,V){V.resume_time_ms&&(B.resumeTimeMs=V.resume_time_ms);R.pauseParams&&(B.pauseParams=R.pauseParams)};var cG=function(){};
_.l(cG,fj);cG.prototype.getApiPaths=function(){return S_2};
cG.prototype.getExtension=function(B){return _.D(B,_.hi4)};
cG.prototype.JSC$11817_buildRequest=function(B,R,V){V=V===void 0?{}:V;V.c&&(B.redeemCode=V.c);V.rd&&(B.riskData=V.rd);V.ctk&&(B.clientToken=V.ctk)};var Al=function(){};
_.l(Al,fj);Al.prototype.getApiPaths=function(){return HLo};
Al.prototype.getExtension=function(B){return _.D(B,_.Zyb)};
Al.prototype.JSC$11817_buildRequest=function(B,R){R.resumeParams&&(B.resumeParams=R.resumeParams)};var iY=function(B,R){this.clientName=B;this.defaultExpirationDelayMs=R};
iY.prototype.put=function(B,R){var V=this,e;return _.W(function(X){e=Object.assign({},R.data);e.key=B;e.clientName=V.clientName;e.expireTimestampMs===void 0&&(e.expireTimestampMs=(Math.round((0,_.P8)())+V.defaultExpirationDelayMs).toString());return X.return(V.putInternal(B,e))})};
iY[na]=[Nc,WXa];var u_R=function(){iY.apply(this,arguments);this.JSC$15945_responseStore=new Map};
_.l(u_R,iY);_.p=u_R.prototype;_.p.get=function(B){var R=this;return _.W(function(V){return V.return(Ve(R,B))})};
_.p.putInternal=function(B,R){var V=this,e,X,Y;return _.W(function(t){e=V.defaultExpirationDelayMs;R.expireTimestampMs&&(e=Number(R.expireTimestampMs)-Math.round((0,_.P8)()),X=_.RC("mweb_override_response_store_expiration_ms"),X>0&&X<e&&(e=X));Y=setTimeout(function(){V.remove(B)},e);
V.JSC$15945_responseStore.set(B,{entryData:R,timer:Y});_.b3(t)})};
_.p.remove=function(B){var R=this;return _.W(function(V){OKR(R,B);_.b3(V)})};
_.p.removeAll=function(){var B=this;return _.W(function(R){B.JSC$15945_responseStore.forEach(function(V){clearTimeout(V.timer)});
B.JSC$15945_responseStore.clear();_.b3(R)})};
_.p.has=function(B){return!!this.JSC$15945_responseStore.get(B)};
_.p.getKeys=function(){return this.JSC$15945_responseStore.keys()};
var Ve=function(B,R){if(B=B.JSC$15945_responseStore.get(R))return new _.Rf(B.entryData)},OKR=function(B,R){var V=B.JSC$15945_responseStore.get(R);
V&&(clearTimeout(V.timer),B.JSC$15945_responseStore.delete(R))};var LUx;var IeS=function(B,R,V){iY.call(this,B,R);this.token=V};
_.l(IeS,iY);_.p=IeS.prototype;_.p.get=function(B){var R=this,V,e;return _.W(function(X){return X.nextAddress==1?_.U(X,KU5(R.token),2):X.nextAddress!=3?(V=X.yieldResult,_.U(X,V.get("ResponseStore",[B,R.clientName]),3)):(e=X.yieldResult)?X.return(new _.Rf(e)):X.return(void 0)})};
_.p.putInternal=function(B,R){var V=this,e;return _.W(function(X){if(X.nextAddress==1)return _.U(X,KU5(V.token),2);e=X.yieldResult;return _.U(X,e.put("ResponseStore",R),0)})};
_.p.remove=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,KU5(R.token),2);V=e.yieldResult;return e.return(V.delete("ResponseStore",[B,R.clientName]))})};
_.p.removeAll=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,KU5(B.token),2);R=V.yieldResult;return _.U(V,bES(R,IDBKeyRange.only(B.clientName)),0)})};
_.p.has=function(){throw Error("Ui");};_.sM=new _.u0("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var odo=function(B){var R;this.stateTagsData=(R=B.responseContext)==null?void 0:R.stateTags},Bx2=function(B){var R;
return((R=B.stateTagsData)==null?void 0:R.stateTagsModified)||[]};var RNi;RNi=function(B){this.JSC$15958_responseStore=B};
_.r2=function(B,R,V){if(!_.k("state_tags_killswitch")){var e=new odo(R);if(Bx2(e).length>0){var X=B.JSC$15958_responseStore.getKeys();X=_.h(X);for(var Y=X.next();!Y.done;Y=X.next()){Y=Y.value;var t=Ve(B.JSC$15958_responseStore,Y);if(t){var b=_.WS(t);a:{var J=void 0;t=Bx2(e);b=((J=(new odo(b)).stateTagsData)==null?void 0:J.relevantStateTags)||[];J=_.h(b);for(b=J.next();!b.done;b=J.next())if(b=b.value,b.stateTag!=null&&t.includes(b.stateTag)&&b.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){t=
!0;break a}t=!1}t&&OKR(B.JSC$15958_responseStore,Y)}}}}var G;e=(G=R.responseContext)==null?void 0:G.maxAgeSeconds;_.k("web_prefetch_riw_for_next_video")&&!e&&R.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(e=3600);V&&e&&Number(e)>0&&(R=V1(R,e),B.JSC$15958_responseStore.put(V,new _.Rf(R)))};
RNi.prototype.handleResponse=function(B,R){if(!R)throw Error("Vi");var V,e;R=(V=R.config)==null?void 0:(e=V.storeStrategy)==null?void 0:e.storeKey;_.r2(this,B,R)};
RNi[na]=[_.BO];_.DvA=new _.u0("STORE_RESPONSE_PROCESSOR_TOKEN");var Vqz=function(B){this.JSC$15961_responseStore=B};
Vqz.prototype.handleResponse=function(B,R){if(R.input.match(_.Zz(IbR))){var V;if(B==null?0:(V=B.entries)==null?0:V.length)for(B=_.h(B.entries),R=B.next();!R.done;R=B.next()){V=R.value.command;var e=void 0;R=(e=_.D(V,_.GF))==null?void 0:e.unserializedPrefetchData;if(!V||!R)break;e=(new YS).JSC$11824_getStoreKey(V);var X=_.D(R,oI_),Y=void 0,t=void 0,b=void 0,J=_.RC("web_shorts_prefetch_service_ttl_seconds")>0?_.RC("web_shorts_prefetch_service_ttl_seconds"):Number((b=(Y=X)==null?void 0:(t=Y.responseContext)==
null?void 0:t.maxAgeSeconds)!=null?b:3600);e&&J>0&&(X=V1(X,J),this.JSC$15961_responseStore.put(e,new _.Rf(X)));V=(new M5).JSC$11824_getStoreKey(V);R=_.D(R,qja);Y=X=e=void 0;t=_.RC("web_shorts_prefetch_service_ttl_seconds")>0?_.RC("web_shorts_prefetch_service_ttl_seconds"):Number((Y=(e=R)==null?void 0:(X=e.responseContext)==null?void 0:X.maxAgeSeconds)!=null?Y:3600);V&&t>0&&(R=V1(R,t),this.JSC$15961_responseStore.put(V,new _.Rf(R)))}}};
Vqz[na]=[_.BO];var Fz=function(){this.scheduler=_.TT()},eNe;
Fz.prototype.pause=function(){throw Error("Wi");};
Fz.prototype.resume=function(){throw Error("Wi");};
Fz.prototype.queue=function(B){var R=this,V=_.A3(),e=_.kD(this.scheduler,function(){try{var X;if(_.eR.instance)var Y=_.eR.instance;else{var t=new _.H8("Error: Unexpected uninitialized CommandHandler.");_.Tn(t);Y=void 0}(X=Y)==null||X.resolveCommand(B.command);V.resolve()}catch(b){V.reject(b)}});
V.promise.thenCatch(function(X){X instanceof _.Cw&&R.scheduler.cancelJob(e)});
return V.promise};
Fz.prototype.queueAll=function(B){var R=new Map;B=_.h(B);for(var V=B.next();!V.done;V=B.next())V=V.value,R.set(V.id,this.queue(V));return R};var pd4=function(B,R){var V=this;this.taskModel=B;this.onTaskCancelledCallback=R;this.resolver=_.A3();B=B.proto.prefetchConfig;if(!B)throw Error("Xi");if(!B.prefetchAction)throw Error("Yi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(e){e instanceof _.Cw&&(Xdm(V,V.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),V.onTaskCancelledCallback(V.taskModel.id,V.jobId),V.tick("pcc"));
throw e;});
this.timerName=this.taskModel.id;_.lF(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},YSi=function(B){switch(B.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},Xdm=function(B,R){_.f0({prefetchInfo:{cancellationReason:R}},B.timerName)};
pd4.prototype.tick=function(B){_.zp(B,void 0,this.timerName)};var gm=function(){var B=this;this.scheduler=_.TT();this.maxInflightTasks=_.RC("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.RC("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Ka5;this.onTaskCancelled=function(R,V){V&&B.scheduler.cancelJob(V);hNe(B,R);rm(B,3)}},tqe=function(){gm.instance||(gm.instance=new gm);
return gm.instance};
gm.prototype.pause=function(){this.prefetchCoordinatorState=0};
gm.prototype.resume=function(){rm(this,0)};
gm.prototype.queue=function(B){B=WIz(this,B);rm(this,1);return B};
gm.prototype.queueAll=function(B){var R=new Map;B=_.h(B);for(var V=B.next();!V.done;V=B.next())V=V.value,R.set(V.id,WIz(this,V));rm(this,1);return R};
var WIz=function(B,R){var V=B.allPrefetchTasks.get(R.id);if(V)return V.cancellablePromise;try{var e=new pd4(R,B.onTaskCancelled)}catch(Y){return _.SR(Y)}V=e;V.tick("pcq");var X={prefetchInfo:{taskId:V.taskModel.id,isPrefetch:!0,fetchAction:V.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:V.taskModel.command.clickTrackingParams}};V.taskModel.csn&&(X.clientScreenNonce=V.taskModel.csn);_.f0(X,V.timerName);B.allPrefetchTasks.set(R.id,e);B.drainingHeap.insert(-YSi(e),e);return e.cancellablePromise},
rm=function(B,R){B.prefetchCoordinatorState===R&&(B.prefetchCoordinatorState=2,bZ4(B))},bZ4=function(B){for(var R={};B.prefetchCoordinatorState!==0;R={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(B.inflightPrefetchTasks.size>=B.maxInflightTasks){B.prefetchCoordinatorState=3;break}R.prefetchTask$jscomp$1=B.drainingHeap.remove();if(!R.prefetchTask$jscomp$1){B.prefetchCoordinatorState=1;break}R.taskId$jscomp$3=R.prefetchTask$jscomp$1.taskModel.id;if(B.allPrefetchTasks.has(R.taskId$jscomp$3)){var V=-1;B.coordinatorTimeoutMs>0&&(V=_.kD(B.scheduler,function(e){return function(){ZU(B,e.taskId$jscomp$3,Error("Zi"))}}(R),B.coordinatorTimeoutMs));
B.inflightPrefetchTasks.set(R.taskId$jscomp$3,V);if(!B.JSC$15977_commandHandler){if(!_.eR.instance){ZU(B,R.taskId$jscomp$3,Error("$i"));continue}B.JSC$15977_commandHandler=_.eR.instance}a:switch(R.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":V=1;break a;default:V=0}R.prefetchTask$jscomp$1.jobId=B.scheduler.addJob(function(e){return function(){e.prefetchTask$jscomp$1.tick("pcr");try{B.JSC$15977_commandHandler.resolveCommand(e.prefetchTask$jscomp$1.taskModel.command)||
ZU(B,e.taskId$jscomp$3,Error("aj"))}catch(X){ZU(B,e.taskId$jscomp$3,X)}}}(R),V,0)}}},JA4=function(B,R){(R=hNe(B,R))!=null&&(R.resolver.resolve(),R.tick("pce"));
rm(B,3)},ZU=function(B,R,V){(R=hNe(B,R,V))!=null&&(R.resolver.reject(V),R.tick("pcc"),Xdm(R,"CANCELLATION_REASON_ERROR"),Math.random()<=_.RC("prefetch_coordinator_error_logging_sampling_rate")&&(V=new _.H8("Prefetch Command failed.",R.taskModel.id,V.message),_.Tn(V)));
rm(B,3)},hNe=function(B,R,V){var e=B.allPrefetchTasks.get(R);
e?((V=B.inflightPrefetchTasks.get(R))&&V!==-1&&B.scheduler.cancelJob(V),B.inflightPrefetchTasks.delete(R),B.allPrefetchTasks.delete(R)):_.KE(new _.H8("Unexpected missing prefetch task when deleting task.",R,V==null?void 0:V.message));return e};var j5j=function(B,R,V,e,X){this.id=B;this.triggerOn=R;this.cancelOn=V;this.command=e;this.proto=X};
_.mh.Object.defineProperties(j5j.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var UYU=function(){this.JSC$15982_prefetchCoordinator=tqe();eNe||(eNe=new Fz);this.defaultCoordinator=eNe},Nx4;
UYU.getInstance=function(){Nx4||(Nx4=new UYU);return Nx4};
UYU.prototype.get=function(B){switch(B){case 0:return this.JSC$15982_prefetchCoordinator;default:return this.defaultCoordinator}};var mW=function(){this.coordinatorSupplier=UYU.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},SSU=function(B){var R=_.TE()||void 0,V=Object.keys(G_e)[0];
if(V){var e=B.taskIdByTriggerId.get(V);if(e!=null){B.taskIdByTriggerId.delete(V);V=[];e=_.h(e);for(var X=e.next();!X.done;X=e.next())if(X=B.tasks.get(X.value))R!=="UNDEFINED_CSN"&&(X.csn=R),V.push(X);V=qRx(V);R=[];V=_.h(V);for(e=V.next();!e.done;e=V.next()){X=_.h(e.value);e=X.next().value;X=X.next().value;e=B.coordinatorSupplier.get(e).queueAll(X);e=_.h(e);var Y=e.next();for(X={};!Y.done;X={taskId$jscomp$9:void 0},Y=e.next()){var t=_.h(Y.value);Y=t.next().value;t=t.next().value;X.taskId$jscomp$9=
Y;Y=t;R.push(X.taskId$jscomp$9);B.queuedPromisesByTask.set(X.taskId$jscomp$9,_.fT(Y,function(b){return function(){yA7(B,b.taskId$jscomp$9)}}(X)))}}}}else _.KE(new _.H8("Unexpected malformed TriggerEvent."))};
mW.prototype.trigger=function(B,R){var V=this,e=this.tasks.get(B);if(!e||this.queuedPromisesByTask.has(B))return!1;HZU(this,B,e.triggerOn);R!=="UNDEFINED_CSN"&&(e.csn=R);R=this.coordinatorSupplier.get(e.taskType).queue(e);this.queuedPromisesByTask.set(B,_.fT(R,function(){yA7(V,B)}));
return!0};
mW.prototype.cancel=function(B){var R=this.queuedPromisesByTask.get(B);if(R)R.cancel();else return yA7(this,B)};
var yA7=function(B,R){B.queuedPromisesByTask.delete(R);var V=B.tasks.get(R);if(!V)return!1;B.tasks.delete(R);HZU(B,R,V.triggerOn);(V=QlS(V.cancelOn))&&(B=B.taskIdByCancelId.get(V))&&B.delete(R);return!0},HZU=function(B,R,V){(V=Object.keys(V)[0])&&(B=B.taskIdByTriggerId.get(V))&&B.delete(R)};var G_e={taskRegistered:{}},$S=function(){mW.instance||(mW.instance=new mW);this.JSC$15991_taskManager=mW.instance};
_.l($S,d$);
$S.prototype.resolveCommand=function(B){var R=this,V,e;return _.W(function(X){V=_.D(B,oJJ);if((e=V)==null||!e.tasks){var Y=new _.H8("RegisterTasksCommand is missing tasks.");_.Tn(Y);return X.return()}Y=R.JSC$15991_taskManager;for(var t=_.h(V.tasks),b=t.next();!b.done;b=t.next())if(b=b.value,b=b.id&&b.triggerOn&&b.cancelOn&&b.command?new j5j(b.id,b.triggerOn,b.cancelOn,b.command,b):void 0,b){var J=Object.keys(b.triggerOn)[0];if(J){var G=QlS(b.cancelOn);G?(Y.tasks.set(b.id,b),Y.taskIdByTriggerId.has(J)||Y.taskIdByTriggerId.set(J,
new Set),Y.taskIdByTriggerId.get(J).add(b.id),Y.taskIdByCancelId.has(G)||Y.taskIdByCancelId.set(G,new Set),Y.taskIdByCancelId.get(G).add(b.id)):_.KE(new _.H8("Unexpected malformed cancelOn field."))}else _.KE(new _.H8("Unexpected malformed triggerOn field."))}else _.KE(new _.H8("Unexpected malformed Task proto."));SSU(R.JSC$15991_taskManager);_.b3(X)})};var Mqz={},k_r=(Mqz.rendered={priority:0,callback:function(){var B={};B.numCpu=navigator.hardwareConcurrency;var R={};R.ramGb=_.R5.navigator.deviceMemory;var V={staticContext:{}};R.ramGb&&c9N(R.ramGb)&&(V.staticContext.memoryTotalKbytes=(R.ramGb*1048576).toString());B.numCpu&&c9N(B.numCpu)&&(V.staticContext.cpuCores=B.numCpu);if(_.k("web_enable_adaptive_appl_signal")){B={};R=_.x8("rses_dpj");var e=_.x8("rsef_dpj");R&&R>0&&e&&e>0&&(R=Math.ceil(e-R),R>0&&(B.loadLatency=R));B.loadLatency&&c9N(B.loadLatency)&&
(V.appL=B.loadLatency.toString())}_.dn("applicationStarted",V)}},Mqz);var DYe=new _.u0("WINDOW_ON_ERROR"),fKj=new _.u0("ERROR_WEIGHT_MAPS"),lKe=new _.u0("INIT_ERROR");var zNi={},aK2=(zNi.initialized={priority:10,callback:function(B){B.injector.resolve(lKe)()}},zNi);var dYz=function(){},wd7=function(){var B=_.qN("meta_logger_impl");
B||(B=new dYz,_.mk("meta_logger_impl",B));return B},Txe=function(){wd7().csiSubscriptionKey=S$p("meta_logging_csi_event",function(B){var R=B.timerName;
if(B=B.timelineData){_.lF(R,{startTime:B.startTime},R);B.infos&&_.f0(B.infos,R);for(var V=_.h(Object.keys(B.ticks)),e=V.next();!e.done;e=V.next())e=e.value,_.zp(e,B.ticks[e],R)}})};
dYz.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&kzA(this.csiSubscriptionKey)};var xYi={},LIN=(xYi.initialized={priority:10,callback:function(){Txe()}},xYi);var vdi=function(B,R){this.innertubeClientName=B;this.JSC$16007_prefCookie=R};
vdi.prototype.record=function(){if(_.k("web_li_record_binary_eval_tick")){var B=_.x8("rsef_dpj");var R=_.x8("rses_dpj");B=B!==void 0&&R!==void 0?Math.round(B-R):void 0;if(B!==void 0&&B>0){R=_.tp(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var V=this.poolSize;if(!(R.valuesSeen>=1E9)){if(R.valuesSample.length<V)R.valuesSample.push(B);else{var e=Math.floor(Math.random()*(R.valuesSeen+1));e<V&&(R.valuesSample[e]=B)}R.valuesSeen+=1}_.hp(this.storagePrefix+"-"+this.innertubeClientName,
R,2592E3);B=R.valuesSample;R=A9I(B);B=B.length<5?void 0:R<400?1:R<1700?2:3;B!==void 0&&(this.JSC$16007_prefCookie.set(this.cookiePrefix+this.innertubeClientName,B),this.JSC$16007_prefCookie.save())}}else _.WD(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16007_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16007_prefCookie.save()};
vdi[na]=[Nc,gd];var KI7=function(){vdi.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.l(KI7,vdi);var IKm=new _.u0("PAGE_LOAD_TIME_TOKEN");var Edr=new _.u0("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var CX=function(B,R){this.JSC$16028_storeWithEntities=B;this.JSC$16028_commandHandler=R;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
CX.prototype.start=function(){this.JSC$16028_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
CX.prototype.observeDownloadingEntities=function(){var B=_.eXd(this.JSC$16028_storeWithEntities.getState().entities).map(function(e){return X6N(e)});
if(B.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var R={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:i1A()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.n0(_.Wz("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16028_commandHandler.resolveCommand(R)}this.downloadingEntities=B}else if(this.downloadingEntities.length){var V=VoI(this.JSC$16028_storeWithEntities.getState().entities).map(function(e){return X6N(e)});
this.downloadingEntities.filter(function(e){return V.includes(e)}).length&&(B={openPopupAction:DFo()},this.JSC$16028_commandHandler.resolveCommand(B));
this.downloadingEntities=[]}};
CX[na]=[Jn,_.oC];var Q5e;_.PG=function(B,R,V,e,X,Y,t,b){this.JSC$16031_playerApiPromise=B;this.JSC$16031_commandHandler=R;this.JSC$16031_screenManager=V;this.offlineWebClientEligibility=e;this.JSC$16031_prefStorage=X;this.JSC$16031_actionRouter=Y;this.entityTypeMap=t;this.JSC$16031_persistentStorePromiseAccessor=b;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Q5e=function(){var B=_.Oz().resolve(_.PG),R;_.W(function(V){if(V.nextAddress==1)return B.downloadFailureListenerBound?V.return():_.U(V,B.JSC$16031_playerApiPromise,2);R=V.yieldResult;R.addEventListener("onOfflineOperationFailure",function(e){if(e.failureReason&&e.entityKey&&e.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(e.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var X=_.Rr(e.entityKey).entityId;X&&B.JSC$16031_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
X)}else if(_.k("kevlar_woffle")){X=B.JSC$16031_commandHandler;var Y=X.resolveCommand;e=e.failureReason;var t=_.Wz("TRANSFER_FAILED",void 0,"Download failed");e==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(t=_.Wz("STORAGE_FULL",void 0,"Storage full"));Y.call(X,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.n0(t),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
B.downloadFailureListenerBound=!0;_.b3(V)})};
_.PG.prototype.deleteVideo=function(B,R){var V=this,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return _.U(t,V.JSC$16031_playerApiPromise,2);e=t.yieldResult;Y={offlineLoggingData:{offlineDeleteReason:(X=R)!=null?X:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.U(t,e.queueOfflineAction(B,V.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",Y),0)})};
_.PG.prototype.pauseVideoDownload=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,R.JSC$16031_playerApiPromise,2);V=e.yieldResult;V.pauseVideoDownload(B);_.b3(e)})};
_.PG.prototype.resumeVideoDownload=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,R.JSC$16031_playerApiPromise,2);V=e.yieldResult;return _.U(e,V.resumeVideoDownload(B),0)})};
_.PG[na]=[_.B7,_.oC,_.jj,Edr,C2,Ct,fCo,m9];var qS4=new _.u0("DOWNLOAD_STATE_STORE_TOKEN");var cA2=function(B,R){this.JSC$16050_persistentStorePromiseAccessor=B;this.store=R;this.upliftCompletionResolver=new _.Xs},s52=function(){var B=_.Oz().resolve(AA6),R;
_.W(function(V){switch(V.nextAddress){case 1:if(B.upliftImplPromise)return V.return(B.upliftImplPromise);_.en(V,2);B.upliftImplPromise=iZ4(B);return _.U(V,B.upliftImplPromise,4);case 4:B.upliftCompletionResolver.resolve();_.c8(V,3);break;case 2:throw R=_.WR(V),B.upliftCompletionResolver.reject(R),R;case 3:return V.return(B.upliftImplPromise)}})},iZ4=function(B){var R,V,e;
return _.W(function(X){switch(X.nextAddress){case 1:return _.KQ("LOGGED_IN")?_.U(X,B.JSC$16050_persistentStorePromiseAccessor(),2):X.return();case 2:R=X.yieldResult;if(!R)return _.zp("vdeur"),X.return();_.zp("vdeus");_.en(X,3);return _.U(X,FI7(R),5);case 5:V=X.yieldResult;B.store.dispatch(FGo(V));R.observe(function(Y){rfo(B.store,Y)});
_.c8(X,4);break;case 3:throw e=_.WR(X),_.zp("vdeur"),e;case 4:_.zp("vdeuc"),_.b3(X)}})},FI7=function(B){var R;
return _.W(function(V){if(V.nextAddress==1)return _.U(V,mFx(B),2);R=V.yieldResult;return V.return(R.reduce(function(e,X){if(!X.data||!X.key||!X.entityType)return e;e[X.entityType]||(e[X.entityType]={});e[X.entityType][X.key]=X.data;return e},{}))})};
cA2[na]=[m9,_.zk];var AA6;AA6=new _.u0("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.nX=new _.u0("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var uY=function(B,R){this.JSC$16053_persistentStorePromiseAccessor=B;this.transportService=R};
uY.prototype.refresh=function(){var B=this,R,V,e,X;return _.W(function(Y){if(Y.nextAddress==1)return _.KQ("LOGGED_IN")?_.U(Y,B.JSC$16053_persistentStorePromiseAccessor(),2):Y.return();if(Y.nextAddress!=3)return(R=Y.yieldResult)?_.U(Y,wpK(R),3):Y.return();if((V=Y.yieldResult)&&!(Number(V.data.refreshTimestampMs||0)<(0,_.P8)()))return Y.return();e={browseId:"SPaccount_downloads"};X=_.Zz(VA);_.vC(B.transportService,e,X).then(function(t){var b;if(R&&(t==null?void 0:(b=t.responseContext)==null?void 0:
b.maxAgeSeconds)!==0){var J;b=(t==null?void 0:(J=t.responseContext)==null?void 0:J.maxAgeSeconds)||604800;J=String(Math.floor((0,_.P8)())+b*1E3);R.put("service:downloads_settings:fallback",new _.Rf({innertubeResponse:t,refreshTimestampMs:J}))}});
_.b3(Y)})};
uY[na]=[_.sM,_.M1];var OM=function(B,R){this.JSC$16057_playerPromise=B;this.store=R;this.started=!1};
OM.prototype.start=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return B.started?V.return():_.U(V,B.JSC$16057_playerPromise,2);R=V.yieldResult;R.addEventListener("onOrchestrationBecameLeader",B.updateIsLeader.bind(B,!0));R.addEventListener("onOrchestrationLostLeader",B.updateIsLeader.bind(B,!1));if(R.isOrchestrationLeader)B.updateIsLeader(R.isOrchestrationLeader());else{var e=new _.H8("Function isOrchestrationLeader is undefined",{"player.isReady":R.isReady(),"player.playVideo":R.playVideo?
"defined":"undefined"});_.Tn(e);B.updateIsLeader(!1)}B.started=!0;_.b3(V)})};
OM.prototype.updateIsLeader=function(B){this.store.dispatch(_.or({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:B}}))};
OM[na]=[_.B7,_.zk];var rAi=function(B,R){this.networkStatusManager=B;this.JSC$16060_prefStoragePromise=R;this.redirectsToPreload=["https://youtube.com"]},gde=function(){var B=_.Oz().resolve(rAi),R,V,e,X,Y,t;
_.W(function(b){switch(b.nextAddress){case 1:return _.U(b,B.JSC$16060_prefStoragePromise,2);case 2:R=b.yieldResult;if(!(V=R)){b.jumpTo(3);break}return _.U(b,R.get("yt-redirect-prefetch-id"),4);case 4:V=b.yieldResult;case 3:if(V||!B.networkStatusManager.isNetworkAvailable())return b.return();e={cache:"reload",redirect:"manual"};X=_.h(B.redirectsToPreload);Y=X.next();case 5:if(Y.done){if(!R){b.jumpTo(0);break}return _.U(b,R.set("yt-redirect-prefetch-id",!0,86400),0)}t=Y.value;_.en(b,8);return _.U(b,
_.R5.fetch(t,e),10);case 10:_.c8(b,6);break;case 8:_.WR(b);case 6:Y=X.next(),b.jumpTo(5)}})};var os=function(B){B?(this.container=B,this.containerWasInjected=!0):this.containerWasInjected=!1};
os.prototype.openDialog=function(B,R,V){var e=this,X;return _.W(function(Y){(X=e.container)==null||X.openDialog(B,R,V);_.b3(Y)})};
os.prototype.closeDialog=function(){var B=this,R;return _.W(function(V){(R=B.container)==null||R.closeDialog();_.b3(V)})};
os.prototype.isDialogOpen=function(){var B=this,R,V;return _.W(function(e){return e.return((V=(R=B.container)==null?void 0:R.isDialogOpen())!=null?V:!1)})};
os[na]=[_.uj(FW2)];_.ZZe=new _.u0("POPUP_CONTROLLER_TOKEN");var mY4=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
mY4.prototype.registerPanel=function(B,R){if(B){this.panelMap.set(B,R);var V=this.pendingPanelResolvers.get(B);V&&(V.resolve(R),this.pendingPanelResolvers.delete(B))}};
mY4.prototype.getPanel=function(B){var R=this,V;return _.W(function(e){return(V=R.panelMap.get(B))?e.return(V):e.return($Yn(R,B))})};
var $Yn=function(B,R){var V,e;return _.W(function(X){if(V=B.pendingPanelResolvers.get(R))return X.return(V.promise);e=new _.Xs;B.pendingPanelResolvers.set(R,e);return X.return(e.promise)})},Cor=function(B){mY4.call(this);
var R=this;this.popupController=B;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return R.panelMap.size}}};
_.l(Cor,mY4);_.p=Cor.prototype;_.p.getReloadContinuation=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,R.getPanel(B),2);V=e.yieldResult;return e.return(V.getReloadContinuation())})};
_.p.showPanel=function(B,R,V,e,X,Y,t){var b=this,J,G,y,S;return _.W(function(M){if(M.nextAddress==1){t&&b.updatePanelContinuationDatas.set(B,t);if((J=V)==null?0:(G=J.engagementPanelPopupPresentationConfig)==null?0:G.popupType){y=V.engagementPanelPopupPresentationConfig.popupType;X===void 0&&(X=document.body);var f=M.return,z=b.popupController,T=z.openPopup;a:switch(y){case "PANEL_POPUP_TYPE_DIALOG":var L="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":L="DROPDOWN";break a;default:throw Error("cj`"+
y);}return f.call(M,T.call(z,B,R,L,X))}return _.U(M,b.getPanel(B),2)}S=M.yieldResult;(R||Y)&&S.updatePanel(R,!1,e,Y);S.showPanel(e);_.b3(M)})};
_.p.hidePanel=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,R.getPanel(B),2);V=e.yieldResult;V.hidePanel();R.popupController.closePopup(B);_.b3(e)})};
_.p.isVisible=function(B,R){var V=this,e;return _.W(function(X){if(X.nextAddress==1)return R&&!V.panelMap.has(B)?X.return(!1):_.U(X,V.getPanel(B),2);e=X.yieldResult;return X.return(e.isVisible())})};
_.p.updatePanel=function(B,R,V,e,X,Y){V=V===void 0?!1:V;var t=this,b;return _.W(function(J){if(J.nextAddress==1){if(!R&&!X)return J.return();Y&&t.updatePanelContinuationDatas.set(B,Y);return _.U(J,t.getPanel(B),2)}b=J.yieldResult;b.updatePanel(R,V,e,X);_.b3(J)})};
_.p.registerPanelContent=function(B,R){B&&this.panelContentMap.set(B,R)};
_.p.getPanelContent=function(B){return this.panelContentMap.get(B)};
_.p.getUpdatePanelContinuationData=function(B){return this.updatePanelContinuationDatas.get(B)};
Cor[na]=[_.ZZe];var BA=function(B,R){this.innertubeTransportService=B;this.JSC$16076_screenManager=R},PoU=function(B){var R;
return!((R=B.panelLoadingStrategy)==null||!R.requestTemplate)};
BA.prototype.makeRequest=function(B){var R=this,V,e;return _.W(function(X){switch(X.nextAddress){case 1:if(!PoU(R)){X.jumpTo(2);break}_.en(X,3);return _.U(X,_.cr(R.innertubeTransportService,B),5);case 5:return V=X.yieldResult,V?X.return(V.content):(_.Tn(Error("dj")),X.return(void 0));case 3:e=_.WR(X),_.Tn(e);case 2:return X.return(void 0)}})};
BA.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
BA.prototype.execute=function(B){var R=this,V,e,X,Y,t,b,J,G,y,S;return _.W(function(M){if(M.nextAddress==1){V=B;e=V.data;X=V.fallbackVe;Y=V.parentVe;t=V.createScreenConfig;b=V.renderFn;J=V.command;R.panelLoadingStrategy=e;var f,z,T=((f=R.panelLoadingStrategy)==null?0:f.screenVe)?(z=R.panelLoadingStrategy)==null?void 0:z.screenVe:X;T&&_.py(R.JSC$16076_screenManager,T,Y,t);return(G=R.getContent())?_.U(M,b(G),2):M.jumpTo(2)}return M.nextAddress!=4?PoU(R)?_.U(M,R.makeRequest(J),4):M.return():(S=y=M.yieldResult)?
_.U(M,b(S),0):M.return()})};
BA[na]=[_.M1,_.jj];var Rs=function(){};
Rs.prototype.getContainer=function(){return _.Cp()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Rs.prototype.openSheet=function(B,R){var V=this,e,X,Y,t,b,J;return _.W(function(G){switch(G.nextAddress){case 1:return e={stack:[],error:void 0,hasError:!1},_.en(G,2,3),X=Zv,_.U(G,V.isSheetOpen(),5);case 5:Y=G.yieldResult;MZK(e,KnZ(X));if(Y&&!_.k("delay_sheet_open_killswitch")){if(R&&V.currentTarget===R)return(t=V.getContainer())==null||t.closeSheet(),G.return();V.pendingData={data:B,target:R};return G.return()}B.viewModel&&(B={viewModel:B.viewModel});(b=V.getContainer())==null||b.openSheet(B,R);
V.currentTarget=R;case 3:_.pr(G);lZA(e);_.tq(G,0);break;case 2:J=_.WR(G),e.error=J,e.hasError=!0,G.jumpTo(3)}})};
Rs.prototype.closeSheet=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,(R=B.getContainer())==null?void 0:R.closeSheet(),2);if(V.nextAddress!=4)return B.currentTarget=void 0,!B.pendingData||_.k("delay_sheet_open_killswitch")?V.jumpTo(0):_.U(V,B.openSheet(B.pendingData.data,B.pendingData.target),4);B.pendingData=void 0;_.b3(V)})};
Rs.prototype.isSheetOpen=function(){var B=this,R,V;return _.W(function(e){return e.return((V=(R=B.getContainer())==null?void 0:R.isSheetOpen())!=null?V:!1)})};var jV=window.documentPictureInPicture;var X3I=_.$Q(["dark"]),p3N=_.$Q(["system-icons"]),Y6d=_.$Q(["typography"]),h0d=_.$Q(["lang"]),tiI=_.$Q(["style"]),BsZ=_.$Q(["dir"]),R0Y=_.$Q(["rounded-container"]),Vi_=_.$Q(["style"]),bld=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],VO=function(B){this.JSC$16088_clientRoot=B;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
VO.prototype.openWindow=function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1)return window.documentPictureInPicture&&_.xd()&&!R.currentPipWindow?_.U(X,(V=jV?jV:null)==null?void 0:V.requestWindow(B),2):X.return(!1);if(X.nextAddress!=3){e=X.yieldResult;if(!e)return X.return(!1);e.addEventListener("pagehide",function(){ndz(R)});
e.addEventListener("resize",R.handlePipWindowResize);R.pipWindowResizeDelay=new _.Pw(function(){R.currentPipWindow&&_.oF(R.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Yl(R.currentPipWindow.innerWidth,R.currentPipWindow.innerHeight)])},e);
W0K(e);j95(e);return _.U(X,ofI(e),3)}if(!nhq())return X.return(!1);R.currentPipWindow=e;R.JSC$16088_eventForwarder=J2S(e,R.JSC$16088_clientRoot);R.pipWindowResizeDelay.start();return X.return(!0)})};
VO.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var ndz=function(B){if(B.currentPipWindow){var R,V;(R=jV?jV:null)==null||(V=R.window)==null||V.close();B.currentPipWindow.removeEventListener("resize",B.handlePipWindowResize);var e;(e=B.pipWindowResizeDelay)==null||e.dispose();B.pipWindowResizeDelay=void 0;var X;(X=B.JSC$16088_eventForwarder)==null||X.stop();B.JSC$16088_eventForwarder=void 0;R=_.h(B.onCloseCallbacks);for(V=R.next();!V.done;V=R.next())V=V.value,V();B.onCloseCallbacks=[];B.currentPipWindow=null}};
VO.prototype.getWindow=function(){return this.currentPipWindow};
var upm=function(B,R){var V;(V=B.onCloseCallbacks)==null||V.push(R)};
VO.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.xd()};
_.mh.Object.defineProperties(VO.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
VO[na]=[hyh];var OZn=new _.u0("PICTURE_IN_PICTURE_CONTROLLER");var UiS=function(B,R){this.lengthY=this.lengthX=0;this.lengthX=R.x-B.x;this.lengthY=R.y-B.y};var o54=function(){},GtT=function(B,R){var V;
(V=B.headerElement)==null||V.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:R}))};var B42=function(){};
B42.prototype.openPopup=function(B,R,V,e){var X=this,Y;return _.W(function(t){if(!X.container)return t.return();Y={openPopupAction:{popup:R,popupType:V,uniqueId:B}};return t.return(X.container.handleOpenPopupAction(Y,e))})};
B42.prototype.closePopup=function(B){this.container&&this.container.closePopup(B)};var Rlr=function(){this.openTunnels=new Map},aWx=function(B,R,V){if(S6q(V)){V={handleEvent:function(t){R&&!R.closed&&typeof R.postMessage==="function"&&t&&t.origin&&t.source===R&&t.data&&t.data.action==="gcl_setup"&&R.postMessage({action:"gcl_transfer",
gadSource:2},t.origin)}};
for(var e=_.h(B.openTunnels),X=e.next();!X.done;X=e.next()){var Y=_.h(X.value);X=Y.next().value;Y=Y.next().value;if(X.closed)try{window.removeEventListener("message",Y),B.openTunnels.delete(X)}catch(t){_.Tn(t)}}R&&B.openTunnels.size<15&&(B.openTunnels.set(R,V),window.addEventListener("message",V))}};var VJj=function(){this.clientParams=new Map},f84=function(B){for(var R=_.h(B.clientParams.keys()),V=R.next();!V.done;V=R.next())V=V.value,V.startsWith("yt-mini-app-share")&&B.clientParams.delete(V)};var eln=function(B,R){_.Hn.call(this);var V=this;this.shortsController=B;this.storeWithShorts=R;B=_.Ge(this.storeWithShorts,_.cBY,function(e){if(e){var X,Y=(X=V.shortsController.getRoot())==null?void 0:X.getPlayer(),t;(X=(t=V.shortsController.alternativePlayerContainerElement)==null?void 0:t.getPlayerContainer())&&(Y==null||Y.appendTo(X))}else{var b;t=(b=V.shortsController.alternativePlayerContainerElement)==null?void 0:b.getPlayerContainer().querySelector("#player");X=V.shortsController.activeIndex;
(b=(Y=V.shortsController.getRoot())==null?void 0:Y.querySelector('ytd-reel-video-renderer[id="'+X+'"] #player-container'))&&(t==null||t.appendTo(b,void 0,!0))}});
this.addOnDisposeCallback(B)};
_.l(eln,_.Hn);var ea=function(B,R,V,e,X){var Y=this;this.storeWithShorts=B;this.ephemeralResponseStore=R;this.store=V;this.innertubeTransportService=e;this.innertubeTransportLoader=X;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.w1(_.GP);this.isShortsPipActive=_.w1(_.yN);this.nextReelVe=_.kB(56921);this.prevReelVe=_.kB(56922);this.backButtonVe=_.kB(22156);this.TEST_ONLY={getActiveModules:function(){return Y.activeModules}}},Su_,H_J,X2e;
ea.prototype.initOrDisposeActiveModules=function(B){B?this.activeModules.push(new eln(this,this.storeWithShorts)):(_.PH(this.activeModules),this.activeModules.length=0)};
ea.prototype.getRoot=function(){return this.rootElement};
ea.prototype.setActiveIndex=function(B){this.activeIndex=B};
_.J7T=function(B,R){var V,e,X,Y,t,b;return _.W(function(J){switch(J.nextAddress){case 1:return V=new YS,(e=V.JSC$11824_getStoreKey(R))&&B.ephemeralResponseStore.has(e)?_.U(J,B.ephemeralResponseStore.get(e),7):_.U(J,X2e(B,R),4);case 4:X=J.yieldResult;if(!e){J.jumpTo(3);break}Y=V1(X,3600);return _.U(J,B.ephemeralResponseStore.put(e,new _.Rf(Y)),3);case 7:X=(t=J.yieldResult)==null?void 0:_.WS(t);case 3:return X.replacementEndpoint&&(b=_.D(X.replacementEndpoint,_.GF))&&X.sequenceContinuation&&(b.sequenceParams=
X.sequenceContinuation),J.return(X)}})};
Su_=function(B,R){R=(new hl).JSC$11824_getStoreKey(R);return!!R&&B.ephemeralResponseStore.has(R)};
H_J=function(B,R,V){var e,X,Y,t,b;_.W(function(J){if(J.nextAddress==1){e=new hl;X=e.JSC$11824_getStoreKey(R);if(!X)return J.return();if(V.reelWatchSequenceResponse)return Y=V1(V.reelWatchSequenceResponse,3600),B.ephemeralResponseStore.put(X,new _.Rf(Y)),J.jumpTo(0);if(!B.ephemeralResponseStore.has(X))return J.jumpTo(0);b=V;return _.U(J,B.ephemeralResponseStore.get(X),4)}b.reelWatchSequenceResponse=(t=J.yieldResult)==null?void 0:_.WS(t);_.b3(J)})};
X2e=function(B,R){var V=V===void 0?{}:V;var e,X,Y;return _.W(function(t){switch(t.nextAddress){case 1:if(B.innertubeTransportService){e=B.innertubeTransportService;t.jumpTo(2);break}if(!B.innertubeTransportLoader){_.IP(Error("fj"));t.jumpTo(2);break}return _.U(t,B.innertubeTransportLoader(),4);case 4:e=t.yieldResult;case 2:return _.U(t,(X=e)==null?void 0:_.cr(X,R,V),5);case 5:return Y=t.yieldResult,t.return(Y)}})};
_.mh.Object.defineProperties(ea.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
ea[na]=[VFb,_.BO,Jn,_.uj(_.M1),_.uj(hdS)];_.p2n=new _.u0("STORAGE_MANAGER_TOKEN");var lQp=new Set(["touchmove","scroll"]);var YoN=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},hlr;
YoN.prototype.enqueue=function(B,R){R===1?this.currentPersistentToast=B:this.queue.push(B);this.openToast()};
YoN.prototype.openToast=function(){var B;(B=this.currentToast)!=null&&B.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.tJ6=new _.u0("TOAST_MANAGER_TOKEN");var Wbz;_.bR4=_.sx(function(B){return _.N("basic-content-view-model",{class:_.XE("ytBasicContentViewModelHost",_.AM(B.className))},_.N(_.H,{cond:function(){return B.data().headline},
then:function(R){return _.N("div",{class:"ytBasicContentViewModelHeadline"},_.N(_.Hr,{text:R}))}}),_.N(_.yh,{each:function(){return B.data().paragraphs||[]},
keyBy:"INDEX"},function(R){return _.N("div",{class:"ytBasicContentViewModelParagraph"},_.N(_.H,{cond:function(){var V=R();return!!(V.header||V.customHeader||V.headline)},
then:function(){return _.N(Wbz,{paragraph:R})}}),_.N(_.H,{cond:function(){return R().asset||R().text},
then:function(){return _.N("div",{class:"ytBasicContentViewModelParagraphContent"},_.N(_.H,{cond:function(){return R().asset},
then:function(V){return _.N("div",{class:"ytBasicContentViewModelParagraphAsset"},_.N(_.wb,{data:V},{contentPreviewImageViewModel:_.mZ}))}}),_.N(_.H,{cond:function(){return R().text},
then:function(V){return _.N("div",{class:"ytBasicContentViewModelParagraphText"},_.N(_.Hr,{text:V}))}}))}}))}))},"ee");
Wbz=_.sx(function(B){var R=B.paragraph;return _.N(_.OZ,null,_.N(_.H,{cond:function(){return R().headline},
then:function(V){return _.N(_.Hr,{text:V,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.N(_.wb,{data:function(){return R().header||R().customHeader}},{sectionHeaderViewModel:function(V){return _.N(_.on,{data:V.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"fe");var j4o=_.sx(function(B){return _.N("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.N(_.H,{cond:function(){return B.expanded()},
then:function(){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.N("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.N(_.H,{cond:function(){return B.data().expandedTitleImage},
then:function(R){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.N(_.ia,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:R}))}}),_.N("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.N("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.N(_.Hr,{text:function(){return B.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.N(_.Hr,{text:function(){return B.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.N(_.Hr,{text:function(){return B.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.N("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.N(_.wb,{data:function(){return B.data().infoButton}},{buttonViewModel:_.qo}),_.N(_.wb,{data:function(){return B.data().collapseButton}},{buttonViewModel:function(R){return _.N(_.qo,{data:R.data,
onClick:function(){var V;(V=B.expandedCallback)==null||V.call(B,!1)}})}})))},
else:function(){return _.N(Jhe,Object.assign({},B))}}))},"ge"),UT4=_.sx(function(B){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.N(_.H,{cond:function(){return B.data().collapsedLabelImage},
then:function(R){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.N(_.ia,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:R,alt:""}))}}),_.N(_.Hr,{text:function(){return B.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"he"),Jhe=_.sx(function(B){var R=_.Wr(function(){var V;
return void((V=B.expandedCallback)==null?void 0:V.call(B,!0))});
return _.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":R},_.N("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.N(_.H,{cond:function(){return B.data().collapsedImage},
then:function(V){return _.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.N(_.ia,{width:16,height:16,data:V,alt:""}))}}),_.N(_.H,{cond:function(){return B.data().showLeadingCollapsedLabel},
then:function(){return _.N(UT4,Object.assign({},B))}}),_.N("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.N(_.Hr,{text:function(){return B.data().collapsedTitle}}))),_.N("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.N(_.H,{cond:function(){return!B.data().showLeadingCollapsedLabel},
then:function(){return _.N(UT4,Object.assign({},B))}}),_.N(_.wb,{data:function(){return B.data().infoButton}},{buttonViewModel:_.qo}),_.N(_.wb,{data:function(){return B.data().expandButton}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
onClick:function(){var e;(e=B.expandedCallback)==null||e.call(B,!0)}})}})))},"ie");var N4U=_.sx(function(B){var R=_.h(_.J3(function(){return B.data().initiallyExpanded})),V=R.next().value,e=R.next().value,X,Y=(X=_.Oz().resolve(_.uj(_.E5)))==null?void 0:X(),t=function(){var b=B.data().colorData;
if(b)return Y?b==null?void 0:b.darkColorPalette:b==null?void 0:b.lightColorPalette};
return _.N("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.jQ({"background-color":function(){var b=t();return(b==null?0:b.section2Color)?_.zF(b.section2Color):""}})},_.N(_.wb,{data:function(){return B.data().header}},{expandableMetadataHeaderViewModel:function(b){return _.N(j4o,{data:b.data,
expanded:function(){return!!V()},
expandedCallback:function(J){e(J)}})}}),_.N(_.H,{cond:function(){return V()},
then:function(){return _.N("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.N(_.wb,{data:function(){return B.data().expandedContent}},{horizontalShelfViewModel:function(b){return _.N(_.lc,{data:b.data,
includeMargin:!0,forceNarrowLayout:!0,palette:t})},
videoSummaryContentViewModel:function(b){return _.N(nuS,{data:b.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(b){return _.N(_.nu,{data:b.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(b){return _.N(_.bR4,{data:b.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.N(_.wb,{data:function(){return B.data().expandedBottomButtons}},{buttonViewModel:function(b){return _.N("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.N(_.qo,{data:b.data}))}}))}}))},"je");var GG4=_.sx(function(B){var R=B.text;var V=B.marqueeSpacing;var e=B.scrollDelay;var X=B.scrollDuration;var Y=B.enableMarqueeScroll;B=B.large;var t=_.h(_.WU(!1,void 0,"kfNqfd")),b=t.next().value,J=t.next().value,G=_.h(_.WU(0,void 0,"bYgZbf"));t=G.next().value;var y=G.next().value,S=_.Zh();G=_.Zh();var M=_.Zh(),f=_.Oz().resolve(_.q9);_.lJ(function(){if(Y()){var L=M.value.getBoundingClientRect().width,Q=S.value.getBoundingClientRect().width;if(L>Q){var q=(f==="ltr"?-1:1)*(L+(V?V():16));Promise.resolve().then(function(){J(!0);
y(q)})}}});
var z={},T={};return _.N("marquee-scroll",{class:_.XE("ytMarqueeScrollHost",(z.ytMarqueeScrollHostLarge=B,z)),el:S},_.N("div",{id:"marquee-scroll-inner-container",class:_.XE("ytMarqueeScrollInnerContainer",(T.ytMarqueeScrollAnimationEnabled=function(){return b()},T)),
el:G,style:_.jQ({gap:V?(0,_.M8)(V):"16px","animation-duration":X?sl5(X):"16s","animation-delay":e?sl5(e):"3s","--marquee-translate":(0,_.M8)(t)})},_.N("span",{el:M,dir:"auto"},_.N(_.Hr,{text:R,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.N(_.H,{cond:b,then:function(){return _.N("span",{"aria-hidden":"true",dir:"auto"},_.N(_.Hr,{text:R,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ke");_.yhr=_.sx(function(B){var R=B.data;var V=B.overlayDensity;B=_.Wr(function(){R().onTapCommand&&_.Lc(R().onTapCommand);return!1});
var e=_.vkS(),X={};return _.N("reel-sound-metadata-view-model",{class:_.XE("ytReelSoundMetadataViewModelHost",(X.ytReelSoundMetadataViewModelHostLarge=function(){return(V==null?void 0:V())===1},X)),
"on:click":B,tabindex:0,role:"button","on:keydown":e},_.N("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.N(_.H,{cond:function(){return R().musicIcon},
then:function(Y){return _.N(_.ia,{data:Y,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.N("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.N(GG4,{text:function(){return R().soundMetadata},
enableMarqueeScroll:function(){return!!R().enableMarqueeScroll},
large:function(){return(V==null?void 0:V())===1}}))))},"le");var So6,HRe,Xr,fS7,zle,DTm,w2m,dT4;So6=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];HRe=_.RC("wil_icon_max_concurrent_fetches",Infinity);
Xr=function(B,R,V){var e=this;this.iconSet=B;this.appDirection=R;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.R5.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.k("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.k("wil_icon_network_first");this.renderWhenIdle=_.k("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.k("wil_icon_load_immediately");this.isPurging=!1;B=function(){e.cacheStorageAvailable&&(e.cacheStorageAsync=_.R5.caches.open("yt-icons").then(function(Y){return e.cacheStorageSync=Y}).catch(function(){e.cacheStorageAvailable=!1}))};
V=(V==null?void 0:V())||{};V=_.h(Object.entries(V));for(R=V.next();!R.done;R=V.next()){var X=_.h(R.value);R=X.next().value;X=X.next().value;X=WE(X);MJj(X);this.iconCache[R]=X.cloneNode(!0)}this.isPurging=kGU(this);this.isPurging instanceof Promise?this.isPurging.then(B):B()};
_.Vyq=function(B,R){var V=B.resolveIcon(R);return V?B.renderingMode===1?DTm(B,V,B.renderingMode):(R=B.iconCache[V.url])?(R=R.cloneNode(!0),fS7(B,R),DTm(B,V,B.renderingMode,R)):_.lSr(B,V).then(function(e){var X=e?0:1;fS7(B,e);return DTm(B,V,X,e)}):(_.v5(new _.H8("Icon not found",{iconShape:R})),function(){})};
fS7=function(B,R){if(R){B.counter+=1;B="_yt"+B.counter;R=[R].concat(_.MI(R.getElementsByTagName("*")));R=_.h(R);for(var V=R.next();!V.done;V=R.next())if(V=V.value,V.tagName==="style"&&V.textContent)V.textContent=zle(V.textContent,B,!0);else for(var e=_.h(V.attributes),X=e.next();!X.done;X=e.next()){X=X.value;X.name==="id"&&(X.value+=B);["mask","fill","clip-path"].includes(X.name)&&(X.value=zle(X.value,B));if(X.name==="style"){var Y=V.style;try{Y.cssText=zle(Y.cssText,B,!0)}catch(y){var t=void 0,b=
void 0,J=void 0,G=void 0;ps({error:((t=y)==null?void 0:(J=(b=t).toString)==null?void 0:J.call(b))||"",el:V.outerHTML,style:!!Y,cssText:(G=Y)==null?void 0:G.cssText})}}X.name==="xlink:href"&&(X.value=X.value.replace(/#(.*)/,"#$1"+B))}}};
zle=function(B,R,V){var e=/url\(["']?#(.*?)["']?\)/;(V===void 0?0:V)&&(e=/url\(["']?#(.*?)["']?\)/g);return B.replace(e,"url(#$1"+R+")")};
DTm=function(B,R,V,e){return function(X,Y){var t=Object.assign({},{iconColor:"currentcolor",iconWidth:R.size+"px",iconHeight:R.size+"px",iconDisplay:"block"},Y);Y=_.jr("DIV");var b=t.iconColor,J=t.iconFilter;t="width: "+t.iconWidth+"; height: "+t.iconHeight+"; display: "+t.iconDisplay+";";J&&(t+=" filter: "+J+";");V===0&&(t+=" fill: "+b+";");V===1&&(J=R.url,t+=" -webkit-mask: url("+J+") no-repeat center / cover; mask: url("+(J+") no-repeat center / cover; background-color: ")+b);R.allowMirroring&&
B.appDirection==="rtl"&&(t+=" transform: scale(-1, 1); transform-origin: center center;");Y.setAttribute("style",t);V===0&&e&&Y.appendChild(e);X.appendChild(Y)}};
_.lSr=function(B,R){var V,e,X;return _.W(function(Y){V=function(t){return aa(t)};
e=R.url;if(!aSz(e))throw Error("gj");X=dT4(B,e);return Y.return(X.then(function(t){return t.clone().text()}).then(function(t){var b=V(t);
t=R.size;var J=_.jr("DIV");_.qV(J,b);b=_.UJ(J.firstElementChild!==void 0?J.firstElementChild:_.oml(J.firstChild,!0));t=MJj(b,t);B.iconCache[e]=t.cloneNode(!0);delete B.responsePromises[e];return t}).catch(function(){}))})};
w2m=function(B){var R,V=(R=B.requestAninmationFrameResolver)==null?void 0:R.promise;V||(B.requestAninmationFrameResolver=new _.Xs,V=B.requestAninmationFrameResolver.promise,_.R5.requestAnimationFrame(function(){var e;(e=B.requestAninmationFrameResolver)==null||e.resolve();B.requestAninmationFrameResolver=null}));
return V};
dT4=function(B,R){var V,e;return _.W(function(X){if(X.nextAddress==1)return B.waitForAnimationFrame?_.U(X,w2m(B),2):X.jumpTo(2);V=B.responsePromises[R];V||(e=function(){var Y,t,b;return _.W(function(J){switch(J.nextAddress){case 1:if(!B.cacheStorageAvailable){Y=void 0;J.jumpTo(2);break}if(t=B.cacheStorageSync){J.jumpTo(3);break}return _.U(J,B.cacheStorageAsync,4);case 4:t=J.yieldResult;case 3:Y=t;case 2:return b=Y,B.isNetworkFirstStrategy?J.return(B.fetchAndUpdateCache(R,b).catch(B.getCacheStorageResponse.bind(B,
R,b))):J.return(B.getCacheStorageResponse(R,b).catch(B.fetchAndUpdateCache.bind(B,R,b)))}})},V=B.renderWhenIdle?new Promise(function(Y,t){_.kD(_.dV,function(){e().then(Y).catch(t)},10)}):e(),B.responsePromises[R]=V);
return X.return(V.catch(function(Y){delete B.responsePromises[R];ps({error:(Y==null?0:Y.toString)?Y.toString():"",url:R});throw Y;}))})};
Xr.prototype.fetchAndUpdateCache=function(B,R){var V=this;return _.W(function(e){return e.return(T4m(V,B).then(function(X){xTe(V,B,X,R);return X}))})};
var T4m=function(B,R){var V;return _.W(function(e){if(B.numFetches<HRe)return B.numFetches+=1,e.return(Lb4(B,R).finally(function(){--B.numFetches;if(Object.keys(B.queuedResponseResolvers).length){var X=Object.keys(B.queuedResponseResolvers)[0],Y=B.queuedResponseResolvers[X];delete B.queuedResponseResolvers[X];Y.resolve(T4m(B,X))}}));
V=new _.Xs;B.queuedResponseResolvers[R]=V;return e.return(V.promise)})},Lb4=function(B,R,V){V=V===void 0?2:V;
var e;return _.W(function(X){e={credentials:"same-origin",priority:"low"};return X.return(_.R5.fetch(R,e).then(function(Y){return Y.ok?Y:Promise.reject(Error("hj`"+Y.status+"`"+Y.statusText))}).catch(function(Y){if(V>0)return Lb4(B,R,V-1);
throw Y;}))})},xTe=function(B,R,V,e){_.W(function(X){return e?X.return(new Promise(function(Y){_.kD(_.dV,function(){var t,b;
return _.W(function(J){switch(J.nextAddress){case 1:if(!B.isNetworkFirstStrategy){t=void 0;J.jumpTo(2);break}return _.U(J,e.match(R).catch(function(){}),3);
case 3:t=J.yieldResult;case 2:if(b=t){J.jumpTo(4);break}return _.U(J,e.put(R,V.clone()).catch(function(G){ps({error:(G==null?0:G.toString)?G.toString():"",url:R})}),4);
case 4:Y(),_.b3(J)}})},50)})):X.return()})};
Xr.prototype.getCacheStorageResponse=function(B,R){return _.W(function(V){return R?V.return(R.match(B).then(function(e){return e&&e.ok?e:Promise.reject()})):V.return(Promise.reject())})};
var MJj=function(B,R){R===void 0||B.getAttribute("viewBox")||B.setAttribute("viewBox","0 0 "+R+" "+R);B.setAttribute("focusable","false");B.setAttribute("aria-hidden","true");try{B.style.pointerEvents="none",B.style.display="inherit",B.style.width="100%",B.style.height="100%"}catch(X){var V;ps({error:((V=X)==null?0:V.toString)?X.toString():""});try{B.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(Y){var e;ps({error:((e=Y)==null?0:e.toString)?Y.toString():
""})}}return B},aSz=function(B){for(var R=_.h(So6),V=R.next();!V.done;V=R.next())if(B.startsWith(V.value)&&B.endsWith(".svg"))return!0;
return!1};
Xr.prototype.resolveIcon=function(B){return this.iconSet.resolveIcon(B)};
var ps=function(B){_.KE(new _.H8("Error in IconManager",B))},kGU=function(B){if(_.k("wil_icons_cache_purge_killswitch"))return!1;
try{var R=_.R5.localStorage}catch(Y){return!1}if(!R||!B.cacheStorageAvailable)return!1;var V=function(Y){try{var t;(t=R)==null||t.setItem("yt-icons-last-purged",Y.toString())}catch(J){var b;ps({error:((b=J)==null?0:b.toString)?J.toString():""})}},e=Number(R.getItem("yt-icons-last-purged"));
if(!e)return e=new Date,e=e.setDate(e.getDate()-Math.floor(Math.random()*90+1)),V(e),!1;if(function(Y,t){Y=new Date(Y);t=new Date(t);return t.getMonth()-Y.getMonth()+12*(t.getFullYear()-Y.getFullYear())}(e,Date.now())<3)return!1;
try{return _.R5.caches.delete("yt-icons").then(function(Y){Y&&V(Date.now());return Y}).catch(function(){return!1}).finally(function(){B.isPurging=!1})}catch(Y){var X;
ps({error:((X=Y)==null?0:X.toString)?Y.toString():""});return!1}};
Xr[na]=[mHS,_.q9,_.uj(PBb)];_.YL=function(B,R){this.iconManager=B;this.iconsToFetch=R};
_.YL[na]=[_.VM,_.uj(CBb)];var v5j=function(){};var Kb4=function(B,R,V){this.requestKey=B;this.hSD=R;this.jJs=V;this.cNx=function(){return new XMLHttpRequest};
this.zO2=void 0;this.r9W=[]};
Kb4.prototype.getLatestChallengeResponse=function(){return this.jJs};
var olo=function(B,R,V){var e,X,Y,t;return _.W(function(b){if(b.nextAddress==1){_.lF("attestation_challenge_fetch");_.zp("att_fs",void 0,"attestation_challenge_fetch");if(!B.zO2)throw new _.zH(9,"Missing fetcher");return _.U(b,B.zO2(R,V),2)}e=b.yieldResult;Y=(X=e)==null?void 0:X.bgChallenge;if(!Y)throw new _.zH(15,"Missing field");B.jJs=e;B.r9W.forEach(function(J){J(e)});
t=xzx(Y);_.zp("att_fc",void 0,"attestation_challenge_fetch");JwY("attestation_challenge_fetch");return b.return(t)})},fO5=function(B,R){var V,e,X,Y,t;
return _.W(function(b){switch(b.nextAddress){case 1:V=new pd(100,3E5,.25,2),e=void 0;case 2:if(!(V.currBackoffCount_<10)){b.jumpTo(4);break}_.en(b,5);if(!(V.currBackoffCount_>0)){b.jumpTo(7);break}return _.U(b,z0Y(V.getValue()),7);case 7:return _.U(b,ISm(B,R),9);case 9:return X=b.yieldResult,b.return(X);case 5:Y=_.WR(b);Y instanceof _.zH?e=Y:(t=Y instanceof Error?Y.message:"Unknown",e=new _.zH(9,t));WL4(V);b.jumpTo(2);break;case 4:if(e)throw e;throw new _.zH(9,"Unknown error");}})},ISm=function(B,
R){R=FCT(rq2(new sb4,R),B.requestKey);
var V=new _.Xs,e=B.cNx();e.open("POST",B.hSD);e.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");e.setRequestHeader("Content-Type","application/json+protobuf");e.onload=function(){if(_.qqd(e)){var X=OxG(e.responseText);V.resolve(X)}else V.reject(new _.zH(_.unq(_.X0(e)),e.statusText))};
e.onerror=function(){V.reject(new _.zH(_.unq(_.X0(e)),e.statusText))};
e.send(R.serialize());return V.promise};var Q4e=function(B){this.networkStatusManager=B;this.isDownloaded=TWd===void 0?function(){return!1}:TWd;
this.isReady=!1;this.hm3=E52(this)},E52=function(B){var R;
return _.W(function(V){if(V.nextAddress==1)return _.U(V,Lq5(),2);if(V.nextAddress!=3)return R=V.yieldResult,_.U(V,Hf_(R),3);B.sy=V.yieldResult;diq(B.sy).then(function(){B.isReady=!0});
return V.return(B.sy)})},qom=function(B,R,V){B.sy?(B=B.sy.qO({m6:V,
pR0:!0,rTq:!0}),R.serviceIntegrityDimensions={poToken:B}):_.Tn(Error("jj"))};
Q4e.prototype.processContext=function(B){var R=this;if(!B.input.match(_.Zz(xGv)))return _.rf();var V=B.innerTubeRequest,e=V.videoId;return!e||this.isDownloaded(V)||this.networkStatusManager&&!this.sy&&!this.networkStatusManager.isNetworkAvailable()?_.rf():this.sy?this.isReady?(qom(this,V,e),_.rf()):new Fm(diq(this.sy).then(function(){qom(R,V,e)})):new Fm(this.hm3.then(function(X){return _.W(function(Y){if(Y.nextAddress==1)return _.U(Y,diq(X),2);
qom(R,V,e);_.b3(Y)})}))};var chr=new _.u0("WEB_PO_CONTEXT_PROCESSOR");var Ahn=function(B,R){var V=this;this.enX=0;var e;this.v1e=(e=R==null?void 0:R.v1e)!=null?e:window;this.networkStatusManagerPromise=R==null?void 0:R.networkStatusManagerPromise;var X;this.requestKey=(X=R==null?void 0:R.requestKey)!=null?X:_.V_("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var Y;this.yQD=(Y=R==null?void 0:R.yQD)!=null?Y:function(J){return new v_(J)};
var t;e=(t=R==null?void 0:R.yrs)!=null?t:function(J,G,y){return new Kb4(J,G,y)};
this.bgChallenge=xzx(B.bgChallenge);this.ttlSeconds=LrK(BS(B.challenge||""));this.tI=e(this.requestKey,_.k("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.R5.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",B);aQI(this.tI);var b;this.sAF=(b=R==null?void 0:R.sAF)!=null?b:function(J){_.G2(V.v1e.document,"visibilitychange",function(){V.v1e.document.visibilityState===
"visible"&&J()})}},s4e=function(B){if(!B.t3){var R={maxAttempts:5,
roM:B.ttlSeconds*1E3};w3Y(B.v1e);B.t3=B.yQD({tI:B.tI,kK:{disable:_.k("html5_web_po_disable_remote_logging"),kq:"aGIf",k2p:v_K("html5_web_po_experiment_ids"),sG3:_.k("wpo_dis_lfdms")?0:1E3,cP:_.k("wpo_gel_strz")?function(e){var X=w0G.get(e);X||(X=new dDG(e),X=new Wn(X),w0G.set(e,X));return X}:void 0},
tnj:R,aVO:B.bgChallenge,mRl:TsZ});B.enX=Date.now();C34(B.t3,function(){B.enX=Date.now()});
E0p(B.t3,function(){return _.W(function(e){return e.return(iRo(B))})});
var V=B.mP9.bind(B);B.networkStatusManagerPromise&&B.ttlSeconds>0&&B.networkStatusManagerPromise.then(function(e){e.listen("publicytnetworkstatus-online",V)});
B.sAF(V)}};
Ahn.prototype.mP9=function(){if(Date.now()>this.enX+this.ttlSeconds*1E3){var B;(B=this.t3)==null||$Il(B)}};
var iRo=function(B){if(B.lXM)return B.lXM;if(!B.t3)throw Error("kj");B.lXM=new Qg({t3:B.t3,tI:B.tI,uos:!0,onError:TsZ});return B.lXM},L0A=function(B,R){B=new Ahn(B,R);
s4e(B);iRo(B)};var hc=function(B,R){this.store=B;this.queue=[];this.supportsFocus=_.k("web_ephemeral_actions_focus");R==null||R.addEventListener("yt-navigate-start",this.reset.bind(this))};
hc.prototype.enqueue=function(B){var R=B.command,V=B.durationMs,e=B.elementToFocus;var X=B.label;var Y=B.elementToFocus;B.command?X=_.Wz("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:X,shortcut:_.Wz("SHIFT_PLUS_ENTER")}):Y&&this.supportsFocus&&(B=X+". "+_.Wz("SHIFT_PLUS_ENTER")+" for more information.",X=_.Wz("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:X,shortcut:_.Wz("SHIFT_PLUS_ENTER")},B));V={announcement:X,durationMs:V!=null?V:this.supportsFocus?8E3:void 0};R?V.command=R:e&&this.supportsFocus&&(e.classList.add("ephemeral-action-focusable-element"),
V.selector=e.tagName+".ephemeral-action-focusable-element");this.queue.push(V);Fbi(this)};
hc.prototype.activate=function(B){var R=_.r9I(this.store.getState());if(R){if(R==null?0:R.command)_.wl(R.command),this.store.dispatch(zsS(null));(R==null?0:R.selector)&&this.supportsFocus&&(R=document.querySelector(R.selector),_.XE_(R));B.preventDefault()}};
var Fbi=function(B){if(!_.r9I(B.store.getState())&&B.queue.length){var R=B.queue.shift();R&&(B.previousAnnouncement===R.announcement&&(R.announcement+="\u00a0"),B.store.dispatch(zsS(R)),B.previousAnnouncement=R.announcement,B.timeoutId=setTimeout(function(){if(R.selector&&B.supportsFocus){var V;(V=document.querySelector(R.selector))==null||V.classList.remove("ephemeral-action-focusable-element")}B.store.dispatch(zsS(null));Fbi(B)},R.durationMs))}};
hc.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(zsS(null));this.queue.length=0;this.timeoutId=void 0};
hc[na]=[_.zk,_.Xk];_.tc=new _.u0("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var rhz=new _.u0("AUTH_SERVICE_TOKEN");var IQK=_.$Q(["about:blank"]),K0x;var g5U=new _.u0("API_IFRAME_TOKEN"),ZR4=new _.u0("FETCH_FN_TOKEN"),mTN=new _.u0("PARSE_FN_TOKEN"),$Ti=new _.u0("WINDOW_REQUEST_TOKEN");var Bzh;Bzh=new _.u0("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.C_7=new _.u0("MISC_UI_SHARED_FLAGS_TOKEN");var P_r=function(){};
P_r.prototype.getFlag=function(B){if(B.configType!==2)throw Error("lj");return n5n(B)};
var n5n=function(B){switch(B.flagType){case "bool":return _.k(B.flagName);case "int":return _.nR(_.RC(B.flagName));case "double":return _.RC(B.flagName);case "string":return _.V_(B.flagName);case "int32_list":return v_K(B.flagName);case "int64_list":return v_K(B.flagName).map(function(R){return _.nR(R)});
case "string_list":return _.eC(B.flagName);default:throw Error("mj");}};var WA=function(B,R,V){R=R===void 0?{}:R;xX.call(this,V===void 0?"uninitialized":V);this.env=B;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];R.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=R.shouldWaitOnAsyncImmediate)};
_.l(WA,xX);WA.prototype.init=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return R.processPluginOptions.shouldWaitOnAsyncImmediate?_.U(e,B(R.env),2):(B(R.env),e.jumpTo(2));if(e.nextAddress!=4)return R.jobSet?_.U(e,R.jobSet.completedResolver.promise,4):e.jumpTo(4);V=_.Ep();V.parkOrScheduleJob(function(){R.transition("rendering")},10,"ci");
_.b3(e)})};
WA.prototype.initialRender=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return R.processPluginOptions.shouldWaitOnAsyncImmediate?_.U(e,B(R.env),2):(B(R.env),e.jumpTo(2));if(e.nextAddress!=4)return R.jobSet?_.U(e,R.jobSet.completedResolver.promise,4):e.jumpTo(4);V=_.Ep();V.parkOrScheduleJob(function(){R.transition("rendered")},10,"cr");
_.b3(e)})};
WA.prototype.afterRenderImmediate=function(B){var R=this,V;return _.W(function(e){if(e.nextAddress==1)return R.processPluginOptions.shouldWaitOnAsyncImmediate?_.U(e,B(R.env),2):(B(R.env),e.jumpTo(2));if(e.nextAddress!=4)return R.jobSet?_.U(e,R.jobSet.completedResolver.promise,4):e.jumpTo(4);V=_.Ep();V.parkOrScheduleJob(function(){R.transition("after-render-deferred")},10,"carml");
_.b3(e)})};
WA.prototype.afterRenderDeferred=function(B){var R=this;return _.W(function(V){B(R.env);_.b3(V)})};var ua2={},OR2=(ua2.rendered={priority:0,callback:function(B){LA2(B.injector.resolve(fE))}},ua2);var omz=!1,r2o=0,A2x=null,F0N=null;var Be6=new _.u0("NETWORK_SLI_TOKEN");var Rz4=function(B,R,V,e){this.networkSli=B;this.fetchFn=R;this.parseFn=V;this.requestFn=e};
Rz4.prototype.fetch=function(B,R,V){var e=this,X,Y,t;return _.W(function(b){X=V24(e,B,R);t=(Y=e.fetchFn)!=null?Y:fetch;return b.return(t(X).then(function(J){return e.handleResponse(J,V)}).catch(function(J){_.KE(J);
if((V==null?0:V.expectJsonStrict)&&J instanceof RD&&J.errorType===1)return Promise.reject(J)}))})};
var Sll=function(B,R,V,e){var X,Y,t,b,J,G;return _.W(function(y){switch(y.nextAddress){case 1:return X=V24(B,R,V),_.en(y,2),_.U(y,fetch(X),4);case 4:Y=y.yieldResult;_.c8(y,3);break;case 2:throw _.WR(y),new RD(2,"Failed to parse streaming response",X.url);case 3:if(!Y.redirected&&!Y.ok)throw(t=B.networkSli)==null||t.failure(),new _.H8("Streaming fetch request not ok",X.url);if(!Y.body)throw new _.H8("No response body in streaming response",X.url);b=Y.body.pipeThrough(new TextDecoderStream).getReader();
J=new _.eo;G={};return y.return(ez4(B,b,J,MgN,G,e))}})},V24=function(B,R,V){if(B.networkSli){var e=_.tu(_.mc(R,"key"))||"/UNKNOWN_PATH";
B.networkSli.start(e)}e=V;_.k("wug_networking_gzip_request")&&(e=Z7q(V));var X;return new ((X=B.requestFn)!=null?X:window.Request)(R,e)},ez4=function(B,R,V,e,X,Y){var t,b,J,G,y,S,M,f,z;
return _.W(function(T){if(T.nextAddress==1)return _.U(T,R.read(),2);t=T.yieldResult;b=t.value;if(J=t.done)return(G=B.networkSli)==null||G.success(),T.return(X);try{y=V.parse(b)}catch(L){throw new RD(1,"Failed to parse streaming response",b);}if(y!=null)for(S=_.h(y),M=S.next();!M.done;M=S.next())f=M.value,e(X,f),z=void 0,(z=Y)==null||z(X,f);return T.return(ez4(B,R,V,e,X,Y))})};
Rz4.prototype.handleResponse=function(B,R){var V,e=(V=this.parseFn)!=null?V:JSON.parse;V=B.text().then(function(X){if((R==null?0:R.jspbResponseCtor)&&B.ok)return VzI(R.jspbResponseCtor,X);X=X.replace(")]}'","");if((R==null?0:R.expectJsonStrict)&&X)try{var Y=e(X)}catch(b){throw new RD(1,"JSON parsing failed after fetch");}var t;return(t=Y)!=null?t:e(X)});
B.redirected||B.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),V=V.then(function(X){_.KE(new _.H8("Error: API fetch failed",B.status,B.url,X));return Object.assign({},X,{errorMetadata:{status:B.status}})}));
return V};
Rz4[na]=[_.uj(Be6),_.uj(ZR4),_.uj(mTN),_.uj($Ti)];var Xoi=new _.u0("NETWORK_MANAGER_TOKEN");var poj=[1,2,4,8,16,30],hzn=function(B){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=B.maxTimeMs;this.maxFrameCount=B.maxFrameCount===void 0?Math.ceil(60*B.maxTimeMs/1E3):B.maxFrameCount;B=_.h(poj);for(var R=B.next();!R.done;R=B.next())this.brokenFrameSummarizers.push(new Y4N(R.value/60*1E3))},t2U=function(B){var R=B.frameCountInternal>=B.maxFrameCount;
return B.elapsedTimeMs>=B.maxTimeMs||R},W6e=function(B){for(var R=[],V=_.h(B.brokenFrameSummarizers),e=V.next();!e.done;e=V.next())e=e.value,e=e.brokenFrameCount!==0?{severityMs:Math.round(e.targetFrameTimeMs),
eventCount:e.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(e.averageDurationBetweenEventsMs)}:void 0,e&&R.push(e);return{summaries:R,monitoringDurationMs:Math.round(B.elapsedTimeMs)}};
_.mh.Object.defineProperties(hzn.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 Y4N=function(B){this.targetFrameTimeMs=B;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.mh.Object.defineProperties(Y4N.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var bee=function(){};
bee.prototype.start=function(B,R){var V=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var e=new hzn({maxTimeMs:B});this.monitor=e;this.lastSummaryInternal=void 0;this.metadataToLog=R;return new Promise(function(X){var Y=function(t){if(t===void 0)V.stop(),X(void 0);else if(V.monitor!==e)t=Object.assign({},W6e(e),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),X(t);else{var b=V.monitor;if(!t2U(b)){b.frameCountInternal++;if(b.prevTime===void 0)b.startTime=
t;else for(var J=t-b.prevTime,G=_.h(b.brokenFrameSummarizers),y=G.next();!y.done;y=G.next()){y=y.value;var S=y.currTimeMs;y.currTimeMs+=J;J>y.targetFrameTimeMs+2&&(y.brokenFrameCount++,y.timeOfFirstBrokenFrameMs===void 0&&(y.timeOfFirstBrokenFrameMs=S),y.timeOfLastBrokenFrameMs=S)}b.prevTime=t}t2U(V.monitor)?X(V.stop()):_.dV.addJob(Y,5,0)}};
_.dV.addJob(Y,5,0)})};
bee.prototype.stop=function(B){if(!this.monitor)return this.lastSummaryInternal;var R=Object.assign({},W6e(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(R.monitoringDurationMs){B=B!=null?B:this.metadataToLog;var V={droppedFramesSummary:R,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};B&&(V[B.type]=B.data);_.dn("manualSmoothnessMeasurement",V)}this.monitor=void 0;this.lastSummaryInternal=R;this.metadataToLog=void 0;return R};_.Jr4=new _.u0("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var jNn;jNn=function(B){this.JSC$16212_expiringStorage=new kz(B)};
_.Uj4=function(B){if(_.gfd()&&(B=_.kEA(_.y_()+"::"+B)))return new jNn(B)};
jNn.prototype.set=function(B,R,V){V=V!==void 0?Date.now()+V:void 0;this.JSC$16212_expiringStorage.set(B,R,V)};
jNn.prototype.get=function(B){return this.JSC$16212_expiringStorage.get(B)};
jNn.prototype.remove=function(B){this.JSC$16212_expiringStorage.remove(B)};var Nem=new _.u0("SESSION_STORAGE");_.bu=function(){};
_.bu.getInstance=function(){var B=_.qN("ytglobal.storage_");B||(B=new _.bu,_.mk("ytglobal.storage_",B));return B};
_.bu.prototype.estimate=function(){var B,R,V;return _.W(function(e){B=navigator;return((R=B.storage)==null?0:R.estimate)?e.return(B.storage.estimate()):((V=B.webkitTemporaryStorage)==null?0:V.queryUsageAndQuota)?e.return(ZlA()):e.return()})};
_.mk("ytglobal.storageClass_",_.bu);var Giz=!1;var yrU=_.$Q(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),S4N=_.$Q(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var xQo={"/":_.Ny,"/?feature=ytca":_.Ny,"/feed/downloads":_.QXI};var SV=function(B,R,V){this.JSC$16225_upliftPromise=B;this.store=R;this.JSC$16225_persistentStorePromiseAccessor=V};
SV.prototype.shouldPreferLocalResponse=function(B){return B.browseId==="FEdownloads"||B.browseId==="FEsmart_downloads"&&_.k("kevlar_modern_downloads_page")?!0:!1};
SV.prototype.localInnertubeResponse=function(B){var R=this;return _.W(function(V){return B.browseId==="FEdownloads"?_.k("kevlar_modern_downloads_page")?V.return(He2(R)):V.return(M26(R)):B.browseId==="FEsmart_downloads"&&_.k("kevlar_modern_downloads_page")?V.return(ki4(R)):V.return(Promise.reject(Error("oj")))})};
SV.prototype.canProvideFallbackResponse=function(){return!0};
SV.prototype.localFallbackInnertubeResponse=function(B){var R=this,V,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:return _.U(Y,R.JSC$16225_persistentStorePromiseAccessor(),2);case 2:V=Y.yieldResult;if(B.browseId!=="SPaccount_downloads"||!V){Y.jumpTo(3);break}return _.U(Y,wpK(V),4);case 4:if(e=Y.yieldResult)return Y.return(_.WS(e));case 3:return B.browseId==="FEwhat_to_watch"?Y.return(Djm(R)):(X=_.k("web_offline_continuation_automatic_retry")||_.k("web_offline_continuation_retry_button"))&&
B.continuation?Y.return(f74(R)):Y.return(l7e(R))}})};
var Djm=function(B){var R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,B.JSC$16225_upliftPromise,2);R=_.JGo(B.store.getState().entities);return R.length?V.return(zzr(B,R)):V.return(l7e(B))})},M26=function(B){var R,V;
return _.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$16225_upliftPromise,2);if(e.nextAddress!=3)return R=a7e([{offlineItemSectionRenderer:{}}]),_.U(e,dje(B,R),3);V=e.yieldResult;V.onResponseReceivedActions=[dL("REFRESH_DOWNLOADS")];return e.return(V)})},He2=function(B){var R,V,e,X,Y,t,b,J,G,y,S,M,f;
return _.W(function(z){if(z.nextAddress==1)return _.U(z,B.JSC$16225_upliftPromise,2);if(z.nextAddress!=3)return R=B.store.getState(),V=R.entities,e=_.kG(V),X=_.Dz(V),Y=_.F8q(R),t=_.six(R),b=_.rGd(R),J=_.GlZ(V),G=_.Gz(e),y=_.lz(V),S={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.mto(e,X,J,Y,t,G,y,b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},M=_.Wz("DOWNLOADS",void 0,"Downloads"),_.U(z,woe(B,S,M),3);f=z.yieldResult;
f.onResponseReceivedActions=[dL("REFRESH_DOWNLOADS")];return z.return(f)})},ki4=function(B){var R,V,e,X,Y,t,b,J,G;
return _.W(function(y){if(y.nextAddress==1)return _.U(y,B.JSC$16225_upliftPromise,2);if(y.nextAddress!=3)return R=B.store.getState(),V=R.entities,e=_.kG(V),X=_.Gz(e),Y=_.lz(V),t={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.CSu(e),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},b=_.Wz("SMART_DOWNLOADS",void 0,"Smart downloads"),J=gCA(X,Y),_.U(y,woe(B,t,b,J),3);G=y.yieldResult;G.onResponseReceivedActions=[dL("REFRESH_DOWNLOADS")];
return y.return(G)})},l7e=function(B){var R,V;
return _.W(function(e){if(e.nextAddress==1)return _.U(e,tn(B.JSC$16225_upliftPromise,B.store),2);R=e.yieldResult;V=a7e([leI(R)]);return e.return(dje(B,V))})},f74=function(B){var R,V,e,X;
return _.W(function(Y){if(Y.nextAddress==1)return R={},V=B.store.getState().continuation.continuationCommand,_.D9(R,_.xB,V),_.U(Y,tn(B.JSC$16225_upliftPromise,B.store,R,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);e=Y.yieldResult;X={};_.D9(X,_.SO5,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:e}}}],targetId:"browse-feedFEwhat_to_watch"});return Y.return({responseContext:{},onResponseReceivedActions:[X]})})},a7e=function(B){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:B}}}}]}}},zzr=function(B,R){var V,e;
return _.W(function(X){var Y={contents:wL(R)};V=Y&&Y.contents?Y:{};_.k("kevlar_modern_downloads_page")&&(V=Object.assign({},_.PSd(R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));e={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:V}}}]}};return X.return(dje(B,e))})},dje=function(B,R){var V,e;
return _.W(function(X){if(X.nextAddress==1)return _.U(X,B.JSC$16225_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return V=X.yieldResult,_.U(X,b5(V),3);e=X.yieldResult;return X.return({responseContext:{},contents:R,topbar:e})})},woe=function(B,R,V,e){var X,Y;
return _.W(function(t){if(t.nextAddress==1)return _.U(t,B.JSC$16225_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return X=t.yieldResult,_.U(t,b5(X),3);Y=t.yieldResult;var b=t.return;var J=e;J=J===void 0?"":J;J={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:V}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Wz("SETTINGS",void 0,"Settings"),accessibilityText:_.Wz("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:C0("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:J}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:V};
return b.call(t,{responseContext:{},contents:R,topbar:Y,header:{pageHeaderRenderer:J}})})};var Tei=function(){this.moduleRegistry={};this.fetchCount=0};
Tei.prototype.isFetching=function(){return this.fetchCount>0};
var i5=function(B,R){B.moduleRegistry[R.toString()]={asyncId:R,isFetching:!1};return B};
Tei.prototype.JSC$16236_loadModules=function(){for(var B=this,R=new Map,V=[],e=_.h(_.HB.apply(0,arguments)),X=e.next();!X.done;X=e.next()){X=X.value;var Y=this.moduleRegistry[X];Y?Y.resolver?R.set(X,Y.resolver):(Y.resolver=new _.Xs,R.set(X,Y.resolver),V.push(Y.asyncId),Y.isFetching=!0):(Y=new _.Xs,R.set(X,Y),Y.resolve(void 0))}V.length&&(this.fetchCount+=1,_.fT(_.Db.getMultipleAsync.apply(_.Db,_.MI(V)).then(function(t){for(var b=0;b<V.length;b++){var J=t[b],G=B.moduleRegistry[V[b].toString()];G.isFetching=
!1;G.resolver.resolve(J)}}).catch(function(t){for(var b=_.h(V),J=b.next();!J.done;J=b.next()){J=J.value;
var G=B.moduleRegistry[J.toString()];G.resolver=void 0;G.isFetching=!1;R.get(J.toString()).reject(t)}}),function(){--B.fetchCount}));
return Promise.all([].concat(_.MI(R.values())).map(function(t){return t.promise}))};_.sT=new _.u0("MODULE_REGISTRY_TOKEN");var xjn={},L6z=(xjn.rendered={priority:0,callback:function(B){a:{var R=void 0;try{var V;b:{if(_.puu()){var e=_.MkN(_.y_()+"::pom");if(e){var X=new bG(e);break b}}X=void 0}var Y=(V=X)==null?void 0:V.get("role_text");if(!Y)break a;R={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:Y}]}}}}}}catch(J){}R&&B.injector.resolve(_.oC).resolveCommand(R)}try{var t=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(t){var b=JSON.parse(t);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
b&&B.injector.resolve(_.oC).resolveCommand(b)}}catch(J){}}},xjn);var vmr,K6U={},I7m=(K6U.initialized={priority:10,callback:function(){vmr=d2()}},K6U.rendering={callback:function(B){var R;
return _.W(function(V){if(V.nextAddress==1)return _.U(V,vmr,2);R=V.yieldResult;if(!R.endpoint)throw Error("qj`"+_.R5.location.href);Li(B,R);_.b3(V)})}},K6U);var Em4={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(_.MI(_.k("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(B){var R=B.stack;if(R.includes("chrome://")||R.includes("chrome-extension://")||B.message.includes("chrome-extension://")||R.includes("moz-extension://")||R.includes("local.adguard.org")||R.includes("auctioneer3.50million.club")||R.includes("youtubedownloader")||R.includes("youtube_home_page")||R.includes("is_youtube_video_no_longer_available")||
R.includes("switchScreenSizeHack")||R.includes("yt_main_big_banner.js")||R.includes("YouTubeCenter.js")||R.includes("/mytube.js")||R.includes("JSON.parseWrapper")||R.includes("/inj_js/common.js")||R.includes("firebug-lite")||R.includes(".repl.co/")||R.includes("linkfix")||R.includes("playAfterAd")||B.message.includes("Access is denied for this document")&&R.includes("<anonymous>")||B.fileName==="user-script"||B.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
R.includes("<anonymous>"))return!0;if(R.includes("https://www.youtube.com"))return!1;B=R.split("\n");if(!B.length)return!1;if(B.length<=3&&R.includes("s.onloadeddata"))return!0;R=0;for(var V=_.h(B),e=V.next();!e.done;e=V.next())e=e.value,(e.includes("https://")||e.includes("http://"))&&R++;return R/B.length>.95},
weight:0},{callback:function(B){return B.message==="Unknown Error"&&B.name.indexOf("NS_")===0},
weight:100},{callback:function(B){if(!_.ho)return!1;var R=B.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||B.message.includes("available to complete this operation"),V=B.stack.includes("webcomponents")&&B.message==="Object doesn't support this action";B=B.message.includes("object that does not implement interface Element");return R||V||B},
weight:0},{callback:function(B){return B.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(B){return B.message==="Operation is not supported"&&(B.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(B){return B.stack.includes("eval code (eval (code:1:1)")||B.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(B){return B.message.includes("Permission denied")&&B.stack.includes("this.domHandler")?!0:B.name.includes("TypeError")&&B.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(B){if(!B.stack)return!1;var R=B.stack.trim().split("\n");R.length&&R[0].endsWith("Error: "+B.message)&&R.shift();R.length&&R[R.length-1].includes("at window.onerror (")&&R.pop();if(!R.length)return!0;if(B.message==="Script error.")return R[0].includes("www.youtube.com")||R.length>=2&&R[0].startsWith("at new")&&R[1].startsWith("at window.onerror");if(B.message==="Unexpected token")return!0;B=_.h(R);for(R=B.next();!R.done;R=B.next())if(R=R.value,!(R.includes("<anonymous>")||
R.startsWith("load@")||R.startsWith("global code@")||R.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(B){return B.message==="Cannot read property 'experiments'"&&B.stack.includes("/s/player/")},
weight:500},{callback:function(B){return B.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(B){return B.stack.includes("/embed.js")?(B.params&&B.params&&(B.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.k("use_error_suppression"))var B=_.vE("SUPPRESS_CLIENT_ERRORS",!1);else{if(B=_.jY)B=/Chrome\/(\d+)/.exec(_.G_()),B=(B?parseFloat(B[1]):NaN)>=66;B=!(B||_.Jo&&_.b8(65)||_.v8&&_.b8(12.1)||gS&&_.b8(79))}return B},
weight:500}]};var QNN={},q4e=(QNN.initialized={priority:10,callback:function(B){B.injector.addProvider({provide:hyh,useValue:B.root});B.injector.addProvider({provide:DYe,useValue:MRZ});B.injector.addProvider({provide:fKj,useValue:Em4});var R={};B.injector.addProvider((R.provide=lKe,R.useFactory=function(V,e){return function(){FUu(V,e)}},R[na]=[DYe,
fKj],R));B.injector.addProvider({provide:Y2,useClass:Y2})}},QNN);var crU={},Ari=(crU.initialized={priority:3,callback:function(){var B;if(B=jLu()){B=B.replace("/",".");var R=_.UV();R.set("tz",B);R.save();B=!0}else B=!1;B||(B=_.UV(),B.set("utco",-Math.floor((new Date).getTimezoneOffset())),B.save())}},crU);var iej={},sNo=(iej.initialized={priority:10,callback:function(B){B.injector.resolve(Y2).start();B=_.EX();var R=_.KQ("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.KQ("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.KQ("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.KQ("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Nl(_.r8Z(),{mainAppWeb:Object.assign({},B,{pageType:R})});_.Nl(ZTq(),{mainAppWeb:Object.assign({},B,{pageType:R})});
_.Nl(mu5(),{mainAppWeb:B});_.Nl($up(),{mainAppWeb:B});r$_(function(){_.GT(mu5(),"FAILURE");_.GT($up(),"FAILURE")});
Xtq();ptd();P$5()}},iej);var F6U={},rro=(F6U.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.zp("dl"),_.Ep().processSignal("pcl");else{var B=function(){_.zp("dl");_.Ep().processSignal("pcl");window.removeEventListener("load",B)};
window.addEventListener("load",B)}}},F6U);var gmm={},Ze4=(gmm.rendering={priority:0,callback:function(){var B=_.Ep();B.parkOrScheduleJob(function(){B.processSignal("eocs")},10,"eor",5E3)}},gmm);var mje=function(){};
_.l(mje,d$);
mje.prototype.resolveCommand=function(B,R){var V,e,X,Y,t,b,J,G;return _.W(function(y){X=(V=_.D(B,_.BpR))==null?void 0:(e=V.dialog)==null?void 0:e.commentReplyDialogRenderer;if(!X)throw new _.H8("No dialog in createCommentReplyDialogEndpoint");t=(Y=R.form)==null?void 0:Y.event;if(!t)throw new _.H8("Event not passed in when resolving command");b=_.h(t.composedPath());for(J=b.next();!J.done;J=b.next())if(G=J.value,G.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||G.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return G.showReplyDialog(X),y.return();
_.b3(y)})};var Jc=function(B){this.pageRequestService=B;this.JSC$16251_prefetchCoordinator=tqe()};
_.l(Jc,d$);Jc.prototype.resolveCommand=function(B){var R=this,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1){V=_.D(B,IrG);if((e=V)==null||!e.taskId)throw Error("rj");X=V.taskId;_.en(t,2);return _.U(t,_.GfJ(R.pageRequestService,B,{},"").then(function(b){if(!b)throw Error("sj");},function(b){throw Error("tj`"+b);
}),4)}if(t.nextAddress!=2)return JA4(R.JSC$16251_prefetchCoordinator,X),_.c8(t,0);
Y=_.WR(t);ZU(R.JSC$16251_prefetchCoordinator,X,Y);_.b3(t)})};
Jc[na]=[aH];var ja=function(B){this.innertubeTransportService=B};
_.l(ja,d$);ja.prototype.resolveCommand=function(B){var R=this,V,e;return _.W(function(X){V=_.D(B,Ei2);if(V.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||V.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")e=V.boolValue?2:1,_.PL.getInstance().setState(e,!0,!0);return _.U(X,_.cr(R.innertubeTransportService,B),0)})};
ja[na]=[_.M1];var Uf={},$jo=(Uf.addToPlaylistEndpoint=$8(yS),Uf.addToToastAction=$8(yx),Uf.adsControlFlowOpportunityReceivedCommand=$8(uq),Uf.captionLanguageSelectActionCommand=$8(L2),Uf.captionPickerEndpoint=$8(ve),Uf.changeMiniAppPlayStateCommand=$8(Sy),Uf.changeTimelyActionVisibilityCommand=$8(Gy),Uf.channelCreationFormEndpoint=$8(bw),Uf.clearLocationCommand=$8(Gu),Uf.clearUrlParamCommand=$8(He),Uf.copyLinkCommand=$8(qc),Uf.copyTextEndpoint=$8(Be),Uf.createCommentReplyDialogEndpoint=nX5(mje),Uf.createPlaylistServiceEndpoint=
$8(ce),Uf.dismissDialogEndpoint=$8(k9),Uf.entityUpdateCommand=$8(VS),Uf.feedbackEndpoint=$8(Y9),Uf.getAnswerCommand=$8(y62),Uf.getPaymentsClientTokenCommand=$8(Mb),Uf.getTranscriptEndpoint=$8(Sg),Uf.googlePaymentBillingCommand=$8(kF),Uf.googlePaymentPurchaseManagerCommand=$8(Dj),Uf.hideEngagementPanelEndpoint=$8(Dl),Uf.insertRichSectionCommand=$8(jy),Uf.listMutationCommand=$8(U1),Uf.logGtmCommand=$8(JN),Uf.notifyDropdownOptionSelectedCommand=$8(Mc),Uf.openAdAllowlistInstructionCommand=$8(_.Ol),Uf.openOnePickAddVideoModalCommand=
$8(AN),Uf.persistSubscriptionsDisplayPreferencesCommand=$8(Zl),Uf.pingingEndpoint=$8(oR),Uf.playlistEditEndpoint=$8(s1),Uf.playlistVotingRefreshPopupCommand=$8(FR),Uf.refreshPanelEndpoint=$8(f2),Uf.saveImageToDeviceEndpoint=$8(RR),Uf.scrollToSectionEndpoint=nX5(SU4),Uf.seekToVideoTimestampCommand=$8(K2),Uf.selectCountryCommand=$8(mY),Uf.setCookieCommand=$8($9),Uf.setLocalStorageCommand=$8(bL),Uf.setPrefStorageEntryCommand=$8(Pe),Uf.setSettingEndpoint=$8(ja),Uf.sfvAudioItemPlaybackCommand=$8(IR),Uf.shareImageCommand=
$8(n2),Uf.sharingProviderDataCommand=$8(uw),Uf.showCaptionLanguageSelectActionCommand=$8(E1),Uf.showDialogCommand=$8(aR),Uf.showEngagementPanelEndpoint=$8(dd),Uf.showSheetCommand=$8(wd),Uf.showSnackbarCommand=$8(Wq),Uf.showTransientPlayerScrimOverlayCommand=$8(QS),Uf.submitFormWithValidationFlowCommand=$8(We),Uf.talkToRecsDeselectCommand=$8(Jj),Uf.talkToRecsNextCommand=$8(jg),Uf.talkToRecsSelectCommand=$8(Ui),Uf.talkToRecsUpdateTextCommand=$8(Nb),Uf.toggleEngagementPanelCommand=$8(Tu),Uf.undoFeedbackEndpoint=
$8(tN),Uf.updateEngagementPanelContentCommand=$8(x9),Uf.updateUrlParamCommand=$8(Hq),Uf.verifyCommand=$8(bw),Uf.webNativeShareCommand=$8(O1),Uf.webSubmitFormCommand=$8(rd),Uf.ACK_PLAYABLES_3P_DATA_CONSENT=$8(oY),Uf.CANCEL_NAVIGATION=$8(Bq),Uf.COPY_SHARE_URL=$8(RY),Uf.MINI_APP_EXIT_DIALOG_SEEN=$8(eg),Uf.MINI_APP_OPEN_URL=$8(Vx),Uf.REQUEST_MINI_APP_FULLSCREEN=$8(Xj),Uf.RESUME_NAVIGATION=$8(pS),Uf.SHARE_PLAYABLE_WITH_HIGH_SCORE=$8(YF),Uf.TELL_US_WHY=$8(hN),Uf);
_.k("web_enable_prefetching_videos_on_home")&&($jo.prefetchWatchCommand=$8(Jc),$jo.registerTasksCommand=$8($S));_.k("enable_share_panel_navigation_logging_fix_on_web")&&($jo.shareEntityServiceEndpoint=$8(lw));var KVv=Object.assign({},$jo);var C44={},P4z=(C44.initialized={priority:10,callback:bPI},C44);var nmU={},uUj=(nmU.initialized={callback:function(B){var R={},V={};JWY().install((R.document_disposed={callback:function(){_.k("finalize_all_timelines")?jkp():DI();ilA("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.fWN();var e=B.injector.resolve(Y2);e.intervalId!==void 0&&(e.intervalId&&_.dV.cancelJob(e.intervalId),e.intervalId=void 0,--e.currentPartitionIndex,e=P7o(e),e>0&&MSl({mainAppWeb:_.EX(),survivalSli:{partitionMinute:e,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));bFv(iW);sN!=null&&
sN.flush();oG&&oG.snapshotAndFlush();e=_.h(w0G.values());for(var X=e.next();!X.done;X=e.next())X.value.snapshotAndFlush()}},R),(V.flush_logs={callback:function(){_.wn()}},V))}},nmU);var Oej={},ove=(Oej.rendered={priority:0,callback:function(){var B=new KO2;B.increment("STARTED");if(_.vE("LOGGED_IN")&&_.vE("SERVER_VERSION")!=="test"&&_.vE("SERVER_VERSION")!=="dev"&&!GG_()&&!N4a()){B.increment("EXECUTING");var R=document.createElement("iframe");R.style.display="none";_.Hfo(R,2,_.ym("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.vE("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(R);B.increment("DONE")}}},Oej);var Bqe={},Rko=(Bqe.rendered={callback:function(){tqe().resume()}},Bqe);var Vz6={acknowledgeChannelTouStrikeCommand:LD(uL),addToPlaylistServiceEndpoint:LD(RQ),addToPlaylistEndpoint:LD(RQ),addUpcomingEventReminderEndpoint:LD(MO),browseEndpoint:LD(gVa),channelCreationFormEndpoint:LD(gh),channelCreationServiceEndpoint:LD(Zj),claimLegacyYoutubeChannelEndpoint:LD(LS),clearSearchHistoryEndpoint:LD(XY),clearWatchHistoryEndpoint:LD(pN),commerceActionCommand:vr(dm),createBackstagePostEndpoint:LD(zy),createBroadcastCommand:LD(kt),createCommentEndpoint:LD(iL),createCommentReplyEndpoint:LD(Aj),
createLiveChatPollEndpoint:LD(DW),createPlaylistServiceEndpoint:LD(V0),crossAccountChannelTransferEndpoint:LD(Gc),deleteLiveChatMessageCommand:LD(fN),deletePlaylistEndpoint:LD(e1),deleteVideoEndpoint:LD(HG),dismissalEndpoint:LD(Oi),feedbackEndpoint:LD(oZ),flagEndpoint:LD(WG),getAccountSwitcherEndpoint:LD(NO),verifyCommand:LD(lL),getAccountsListInnertubeEndpoint:LD(SK),getCommentsFromInboxCommand:LD(c1),getDownloadActionCommand:LD(ZW),getFlowCommand:vr(eK),getKidsBlocklistPickerCommand:LD(bY),getNotificationMenuEndpoint:LD($Q_),
getPaymentInstrumentsParamsCommand:LD(KX),getPaymentsClientTokenCommand:vr(dm),getPdgBuyFlowCommand:LD(oQ),getReportFormEndpoint:LD(Jl),getSearchInVideoCommand:LD(N5),getAnswerCommand:LD(UM),getSurveyCommand:LD(S1),getTranscriptEndpoint:LD(DU),getPostVideoPreviewEndpoint:LD(dh),decorateMessageEndpoint:LD(aY),likeEndpoint:LD(m1),liveChatActionEndpoint:LD(d7),liveChatEndpoint:LD(aZ),liveChatItemContextMenuEndpoint:LD(l7),liveChatPurchaseMessageEndpoint:LD(w7),liveChatReplayEndpoint:LD(zc),manageLiveChatUserEndpoint:LD(xt),
metadataUpdateCommand:LD(Qq),moderateLiveChatEndpoint:LD(LN),modifyChannelNotificationPreferenceEndpoint:LD(FY),notificationOptOutEndpoint:LD(r7),openSuperStickerBuyFlowCommand:LD(Tc),performCommentActionEndpoint:LD(Qx),playlistEditEndpoint:LD(pX),playlistEditorEndpoint:LD(Xz),profileCardCommand:LD(H1),recordNotificationInteractionsEndpoint:LD(g7),reelWatchEndpoint:LD(YS),refreshPanelEndpoint:LD($t),removeUpcomingEventReminderEndpoint:LD(v1),resolveLocationCommand:LD(E9),revealBusinessEmailCommand:LD(vq),
searchEndpoint:LD(_.CQ4),sendLiveChatMessageEndpoint:LD(KN),sendLiveChatVoteEndpoint:LD(IZ),setSettingEndpoint:LD($F),shareEntityServiceEndpoint:vr(nS),sharingProviderDataCommand:LD(y0),showEngagementPanelEndpoint:LD(CN),showMoreDrawerCommand:LD(nN),showSheetCommand:LD(u7),showDialogCommand:LD(P1),subscribeEndpoint:LD(CS),transcriptSubmitCaptionCorrectionCommand:LD(kS),undoFeedbackEndpoint:LD(RZ),unsubscribeEndpoint:LD(Pq),updateBackstagePostEndpoint:LD(Ty),updateCommentEndpoint:LD(Fj),updateCommentReplyEndpoint:LD(si),
updateCommentsSettingsEndpoint:LD(rh),updateCreatorChannelInnertubeCommand:LD(IY),updateKidsBlacklistEndpoint:LD(j1),updateEngagementPanelContentCommand:LD(O9),updatePdgFeatureEnablementCommand:LD(BG),updatedMetadataEndpoint:LD(qO),validateChannelHandleCommand:LD(Ei),updateChannelPageSettingsEndpoint:LD(KS),verifyAgeEndpoint:LD(Vq),watchEndpoint:vr(M5),whitelistEditEndpoint:LD(aQ),ypcCancelRecurrenceEndpoint:LD(wm),ypcCompleteTransactionEndpoint:LD(Tq),ypcFixInstrumentEndpoint:LD(LX),ypcGetCartEndpoint:LD(xS),
ypcGetOffersEndpoint:LD(vG),ypcHandleTransactionEndpoint:vr(IQ),ypcLogWalletAnalyticDataEndpoint:LD(EM),ypcOffersEndpoint:LD(Q0),ypcPauseSubscriptionCommand:LD(q5),ypcRedeemCodeEndpoint:LD(cG),ypcResumeSubscriptionCommand:LD(Al),ypcUpdateFopEndpoint:LD(LX)},NJ={},eke=(NJ.GET_ACCOUNT_MENU=LD(yq),NJ.GET_NOTIFICATIONS_MENU=LD(mQb),NJ.GET_NOTIFICATIONS_INBOX=LD(AW),NJ.GET_UNSEEN_NOTIFICATION_COUNT=LD(s9),NJ.GET_USER_MENTION_SUGGESTIONS=LD(wh),NJ.LOAD_GUIDE=LD(ZK2),NJ.SUBMIT_FEEDBACK=LD(B1),NJ),GJ={},
Xy2=(GJ.CONTINUATION_REQUEST_TYPE_BROWSE=LD(xF),GJ.CONTINUATION_REQUEST_TYPE_SEARCH=LD(Gq),GJ.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=LD(lY),GJ.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=LD(Yt),GJ.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=LD(cq),GJ.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=LD(qb),GJ.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=LD(tl),GJ.CONTINUATION_REQUEST_TYPE_GET_PANEL=LD(m_),GJ),pye={player:_.k("web_streaming_player")?vr(zq):vr(M5),watchNext:LD(fX)},YYe={player:vr(M5),reelItemWatch:LD(YS),
reelWatchSequence:LD(hl)},hkm={watchEndpoint:vr(zq)},tze={commandEndpointMap:Vz6,signalEndpointMap:eke,continuationEndpointMap:Xy2,watchEndpointMap:pye,reelWatchEndpointMap:YYe,streamingEndpointMap:hkm};var Wle,bf4,JD2,jmU={disableAllTransitions:(bf4=(Wle=window).matchMedia)==null?void 0:(JD2=bf4.call(Wle,"(prefers-reduced-motion: reduce)"))==null?void 0:JD2.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var USU=new _.u0("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.yO=new _.u0("VIEW_TRANSITION_MANAGER_TOKEN");var NqN=function(B){this.config=B;this.transitionTasksMap=new Map;B=_.h(B.transitionConfigs);for(var R=B.next();!R.done;R=B.next())R=_.h(R.value).next().value,this.transitionTasksMap.set(R,[])};
NqN[na]=[USU];var Jx_={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 UXd=["videoPrimaryInfoRenderer","title"],NGS=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var GX2;GX2=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.yDe=_.sx(function(B){B=_.ip(B,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var R=B.data,V=B.playlistData,e=B.expanded,X=B.onExpandClick,Y=B.isReadyToResume,t=function(){var y;return!((y=V())==null||!y.contents)},b=function(){var y=V();
return y&&y.totalVideos&&y.currentIndex!==void 0?y.currentIndex+1+" / "+y.totalVideos:""};
B=_.Wr(function(){_.Sa(_.Oz().resolve(_.An))});
var J=_.Wr(function(){t()&&X&&X()}),G={};
return _.N("ytd-miniplayer-info-bar",{class:_.XE("ytdMiniplayerInfoBarHost",(G.ytdMiniplayerInfoBarHasPlaylistData=t,G)),"on:click":J},_.N("div",{class:"ytdMiniplayerInfoBarContent"},_.N("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":B},_.N(_.Hr,{text:function(){var y=R();var S=V();if(S==null?0:S.contents){var M;y=(M=_.Jpq(S))==null?void 0:M.title}else y=y==null?void 0:y.miniplayerTitle;return yxp(y)},
noEndpoints:!0,ellipsisTruncate:!0})),_.N("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.N("h1",null,_.N(_.Hr,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var y=R();var S=V();y=Y()?{simpleText:_.Wz("CONTINUE_WATCHING",void 0,"Continue watching")}:(S==null?0:S.contents)?S.titleText:y==null?void 0:y.miniplayerSubtitle;return yxp(y)},
noEndpoints:!0,ellipsisTruncate:!0})),_.N(_.H,{cond:function(){return!!b()&&!Y()},
then:function(){return _.N("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.N("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.N("span",null,b))}}),_.N(_.H,{cond:Y,
then:function(){return _.N(js2,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:GX2})}}))),_.N(_.H,{cond:t,
then:function(){return _.N("div",{class:"ytdMiniplayerInfoBarExpand"},_.N(BI,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(y){X&&(X(),y.stopPropagation())}}},
iconName:function(){return e()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"me");var SY4;SY4=_.sx(function(B){return _.N("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.N(BI,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:B.onTap}},
iconName:"yt-icons:close"}))},"ne");
_.Hf4=_.sx(function(B){B=_.ip(B,{playabilityStatus:void 0,isDisabled:!1});var R=B.size,V=B.playabilityStatus,e=B.isDisabled,X=_.Zh();B=_.h(_.WU(void 0,void 0,"bJr0Se"));var Y=B.next().value,t=B.next().value;B=_.w1(_.yN);var b=!1,J=function(){return R().height<=0};
_.lJ(function(){var M=R(),f=J(),z=Y();z&&!f&&z.setInternalSize(M.width,M.height)});
_.fQ(function(){var M,f,z;return _.W(function(T){if(T.nextAddress==1){M=_.Oz().resolve(_.An);f=M.getPlayerElement();if(!M.isMiniplayerActive()||!f||!X.value)return T.return();f.appendTo(X.value);return _.U(T,f.getPlayerPromise(),2)}z=T.yieldResult;z.setSizeStyle(!1,!0);t(z);_.b3(T)})});
_.aK(function(){G()});
_.lJ(function(){var M=Y();if(M)if(e()){var f=M.getPlayerState();(b=f===-1||f===1||f===3)&&M.pauseVideo()}else G()});
var G=function(){if(b){b=!1;var M;(M=Y())==null||M.playVideo()}},y=_.Wr(function(){_.Sa(_.Oz().resolve(_.An))}),S={};
return _.N("ytd-miniplayer-player-container",{class:_.XE("ytdMiniplayerPlayerContainerHost",(S.ytdMiniplayerPlayerContainerHidden=J,S.ytdMiniplayerPlayerContainerHostShortsPip=B,S)),style:_.jQ({width:function(){return R().width+"px"},
height:function(){return R().height+"px"}})},_.N("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:X}),_.N(_.H,{cond:function(){return!!V()&&!_.y2_(V())},
then:function(){return _.N(jga,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var M;return((M=V())==null?void 0:M.errorScreen)||null},
status:function(){var M;return((M=V())==null?void 0:M.status)||null}})}}),_.N(_.H,{cond:e,
then:function(){return _.N("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":y},_.N(SY4,{onTap:function(){_.Oz().resolve(_.An).close()}}))}}))},"oe");_.Mzr=_.sx(function(B){var R=B.toastData;var V=_.Zh();B=_.h(_.J3(function(){return!!R()}));
var e=B.next().value,X=B.next().value;B=_.h(_.WU(!1,void 0,"xkrBze"));var Y=B.next().value,t=B.next().value,b=function(){var y;return _.FF((y=R())==null?void 0:y.data.title)};
_.zM(function(){_.iv.requestAvailability();R()&&X(!1)});
var J,G;_.lJ(function(){e()&&(_.OI(V.value,"iron-announce",{text:R().label+" "+b()}),J&&_.dV.cancelJob(J),J=_.dV.addLowPriorityJob(function(){t(!0)},2500))});
_.lJ(function(){Y()&&(G&&_.dV.cancelJob(G),G=_.dV.addLowPriorityJob(function(){X(!1);t(!1)},300))});
B={};return _.N("ytd-miniplayer-toast",{el:V,class:_.XE("ytdMiniplayerToastHost",(B.ytdMiniplayerToastOpening=function(){return e()},B.ytdMiniplayerToastClosing=function(){return Y()},B))},_.N(_.H,{cond:function(){var y;
return(y=R())==null?void 0:y.data},
then:function(y){return _.N(z9a,{className:"ytdMiniplayerToastThumbnail",data:y,width:78})}}),_.N("div",{class:"ytdMiniplayerToastInfo"},_.N("div",{class:"ytdMiniplayerToastLabel"},function(){var y;
return(y=R())==null?void 0:y.label}),_.N("div",{class:"ytdMiniplayerToastTitle"},b)))},"pe");var dXN;var Leq=new Set,xX5=null;var Ke5=null;var DSj=_.sx(function(B){var R=B.progressState;var V=B.multiMarkersPlayerBarRenderer;var e=B.progressBarWidth;var X=function(){return qFY(V())},Y=function(){return iPI(R())},t=function(){return e()*(R().playedTime/R().videoDuration)};
return _.N("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.N(_.yh,{each:X},function(b,J){return _.N(kXo,{modifiedProps:Y,chapters:X,index:J,playedProgressWidth:t,backgroundGradientPosition:function(){var G=Y(),y=X(),S=J(),M=t();return(G.playedTime-ql(_.D(y[S],QA)))/G.playedTime*M}})}))},"qe"),kXo=_.sx(function(B){var R=B.modifiedProps;
var V=B.chapters;var e=B.index;var X=B.playedProgressWidth;var Y=B.backgroundGradientPosition;B={};B=_.XE("ytChapteredProgressBarChapteredPlayerBarChapter",(B.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return t().isScrubbing},B.ytChapteredProgressBarHoveredMacroMarker=function(){return t().scrubberHovering},B.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return t().videoPosition==="seen"},B));
var t=function(){return swY(R(),V(),e())},b=function(){var J=R();
var G=V(),y=e();if(swY(J,G,y).videoPosition!=="active")J=0;else{var S=ql(_.D(G[y],QA));J=(J.playedTime-S)/((ql(_.D(G[y+1],QA))||J.videoDuration)-S)}return J};
return _.N("div",{class:B,style:_.jQ({width:function(){var J=R(),G=V(),y=e(),S=_.D(G[y],QA);G=_.D(G[y+1],QA);return(G?ql(G)-ql(S):J.videoDuration-ql(S))/J.videoDuration*100+"%"},
"background-color":function(){a:{var J=t();switch(J.videoPosition){case "pending":J=J.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":J=J.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:J=""}}return J},
"background-size":function(){return(Feo(t())?X():"")+"px"},
"background-position-x":function(){return(Feo(t())?Y():"")+"px"}})},_.N("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var J=R(),G=V(),y=e();if(swY(J,G,y).videoPosition==="seen")var S=0;else S=ql(_.D(G[y],QA)),G=ql(_.D(G[y+1],QA))||J.videoDuration,J=J.videoDuration*J.percentLoaded,S=G<=J?1:S>=J?0:(J-S)/(G-S);return"width: "+S*100+"%"}}),_.N("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.jQ({width:function(){return b()*100+"%"},
"background-size":function(){return(Feo(t(),b())?X():"")+"px"},
"background-position-x":function(){return(Feo(t(),b())?Y():"")+"px"}})}))},"re");var fYU=function(B,R){R=R===void 0?uc4:R;var V,e=[],X,Y=!1;return function(){var t=_.HB.apply(0,arguments);if(Y&&V===this&&R(t,e))return X;X=B.apply(this,t);Y=!0;V=this;e=t;return X}}(function(B){var R=B.heatMarkers,V=B.minHeightDp===void 0?0:B.minHeightDp,e=B.maxHeightDp===void 0?60:B.maxHeightDp;
var X=X===void 0?!1:X;var Y=1E3/R.length;B=[];B.push({x:0,y:100});for(var t=0;t<R.length;t++){var b=void 0,J=((b=_.D(R[t],xy4))==null?void 0:b.heatMarkerIntensityScoreNormalized)||0;b=(t+.5)*Y;J=100-_.IH(J*100,V/321*100,e/321*100);t!==0||X||B.push({x:0,y:J});B.push({x:b,y:J});t===R.length-1&&B.push({x:1E3,y:J})}B.push({x:1E3,y:100});R="";for(V=0;V<B.length;V++)X=B[V],V===0?X="M "+X.x.toFixed(1)+","+X.y.toFixed(1):(e=Ns_(B[V-1],B[V-2],X),Y=Ns_(X,B[V-1],B[V+1],!0),X=" C "+(e.x.toFixed(1)+","+e.y.toFixed(1)+
" "+Y.x.toFixed(1)+","+Y.y.toFixed(1)+" "+X.x.toFixed(1)+","+X.y.toFixed(1))),R+=X;return R});var lYU=_.sx(function(B){var R=B.progressBarProps;var V=B.config;var e={};B=_.XE("ytHeatSeekerHost",(e.ytHeatSeekerHighContrast=B.highContrast,e));var X=function(){return DXd(V().chapterData)};
return _.N("yt-progress-bar-heatseeker",{class:B,style:function(){var Y;return"height: 320px; display: "+(R().isDragging&&((Y=X())==null?0:Y.heatMarkers)?"block":"none")}},_.N(_.H,{cond:X,
then:function(Y){return _.N(_.H,{cond:function(){return Y().heatMarkers},
then:function(){return _.N("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.N("path",{d:function(){return fYU(Y())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"se");var zk2=_.sx(function(B){var R=B.progressBarProps;var V=B.config;B={};B=_.XE("ytProgressBarLineProgressBarLine",(B.ytProgressBarLineProgressBarLineRounded=function(){return V().rounded},B.ytProgressBarLineProgressBarLineBottomInset=function(){return V().position===2},B));
return _.N("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.N("div",{class:B},_.N("div",{class:"ytProgressBarLineProgressBarBackground"}),_.N("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+R().percentLoaded*100+"%"}}),_.N("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var e=R();return"width: "+(e.videoDuration?_.IH(e.hoveredTime/e.videoDuration,0,1):0)*100+"%"}}),_.N("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+HP_(R())*100+"%"}})))},"te");
zk2.idomCompat=!0;var aY4=_.sx(function(B){var R=B.progressBarProps;var V=B.playheadData;var e=B.interpolateDotPosition;var X=B.hidePlayhead;B={};var Y=_.XE("ytProgressBarPlayheadProgressBarPlayheadDot",(B.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return R().isDragging},B.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!R().isDragging&&X()},B));
return _.N("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.jQ({"margin-left":function(){return ML_(R())*100+"%"},
transform:function(){return"translateX(-"+(e()?ML_(R())*12:6)+"px)"}})},_.N(_.H,{cond:function(){var t;
return(t=_.AM(V)())==null?void 0:t.playheadImage},
then:function(t){var b={};return _.N("div",{class:_.XE("ytProgressBarPlayheadProgressBarPlayheadCustom",(b.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return R().isDragging},b.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!R().isDragging&&X()},b)),
style:_.jQ({"transform-origin":function(){return(e()?ML_(R())*20:10)+"px center"}})},_.N(_.ia,{data:t,
alt:"","aria-hidden":"true"}))},
else:function(){return _.N("div",{class:Y,style:_.jQ({"transform-origin":function(){return(e()?ML_(R())*12:6)+"px center"}})})}}))},"ue");
aY4.idomCompat=!0;var HA=function(B,R,V,e,X,Y){this.getProgressBarRect=B;this.updateProgressBarRect=R;this.getFilmstripYPosition=V;this.setFineScrubbingDraggedTime=e;this.updateFilmStripDraggedYDistance=X;this.resetFilmStripYOffset=Y;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.o7(this.onThrottledSeek,100,this)},dSe=function(B,R,V){return function(e){B.handleClick(e,R(),V())}},xS2=function(B,R){return function(V){wyU(B,
V,Tqo(V),R())}},Llm=function(B,R){return function(V){wyU(B,V,{x:V.clientX,
y:V.clientY},R())}},Klr=function(B,R,V){return function(e){var X=R(),Y=V();
vvr(B,e,Tqo(e),X,Y,!0);if(Y.onTouchMove)Y.onTouchMove(X)}},EvN=function(B,R,V){return function(e){IYr(B,e,R(),V())}},Qmz=function(B,R){return function(){B.handleMouseLeave(R())}},qY6=function(B,R,V){return function(){var e=R(),X=V();
MJ(B,e,X);if(X.onTouchEnd)X.onTouchEnd(e)}},cD4=function(B,R,V){return function(){var e=R(),X=V();
MJ(B,e,X);if(X.onTouchEnd)X.onTouchEnd(e)}},ADN=function(B,R,V){return function(){MJ(B,R(),V())}},ifN=function(B){return function(R){if(R.keyCode===39){var V,e;
(V=B())==null||(e=V.playerApi)==null||e.seekBy(5,void 0,void 0,72)}else if(R.keyCode===37){var X,Y;(X=B())==null||(Y=X.playerApi)==null||Y.seekBy(-5,void 0,void 0,71)}}},sm4=function(B,R,V){return function(e){!V().disableScrubbing&&B.startPosition&&IYr(B,e,R(),V())}},Fl4=function(B,R,V){return function(){if(!V().disableScrubbing)if(B.startPosition){var e=R(),X=V();
MJ(B,R(),V());if(X.onTouchEnd)X.onTouchEnd(e)}else R().setState({isDragging:!1})}},Tqo=function(B){B=B.touches[0];
return{x:B.clientX,y:B.clientY}},IYr=function(B,R,V,e){if(R.buttons!==1){if(R.movementX||R.movementY)R.preventDefault(),R.stopPropagation(),B=rDo(B,V,R.clientX),V.setState({isHovering:!0,
hoveredTime:B*V.videoDuration})}else gv4(V),vvr(B,R,{x:R.clientX,y:R.clientY},V,e,!1)};
HA.prototype.handleMouseLeave=function(B){gv4(B)};
var gv4=function(B){B.isHovering&&B.setState({isHovering:!1,hoveredTime:0})},wyU=function(B,R,V,e){B.startPosition||(B.startPosition=V,B.updateProgressBarRect(),B.controlsWereVisibleBeforeDragging=e.controlsVisible,R.stopPropagation(),_.k("medium_progress_bar_modification")||R.preventDefault())},vvr=function(B,R,V,e,X,Y){if(B.startPosition)if(Y&&X.isInlinePlayback&&B.startPosition&&!B.hasDraggedTheMinimumDistance&&Math.abs(V.y-B.startPosition.y)>Math.abs(V.x-B.startPosition.x))MJ(B,e,X);
else if(R.preventDefault(),R.stopPropagation(),e.videoDuration&&(B.startPosition&&!B.hasDraggedTheMinimumDistance&&(B.hasDraggedTheMinimumDistance=Math.abs(V.x-B.startPosition.x)>=1),X.enableFineScrubbing&&(B.startPosition&&(B.isDraggedForFineScrubbing=-(V.y-B.startPosition.y)>=60),!B.startPosition||V.y>=B.startPosition.y||(e.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:rxd(e.draggedTime,e,X.chapterData)}),B.setFineScrubbingDraggedTime(e.draggedTime),B.updateFilmStripDraggedYDistance(B.startPosition.y,
V.y,e))),B.hasDraggedTheMinimumDistance)){R=rDo(B,e,V.x);if(B.isDraggedForFineScrubbing){var t;(t=e.playerApi)==null||t.pauseVideo();e.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:e.draggedTime,filmStripXDistance:rxd(R*e.videoDuration,e,X.chapterData)})}X.enableFineScrubbing&&(!X.enableFineScrubbing||B.getFilmstripYPosition(e)<68)||e.setState({draggedTime:R*e.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:B.controlsWereVisibleBeforeDragging});var b;(b=
X.cancelAutohideControlsFn)==null||b.call(X)}},MJ=function(B,R,V){var e=V.enableFineScrubbing&&R.fineScrubbingActiveState!=="off";
if(R.isDragging||e){e={isDragging:!1,playedTime:R.draggedTime,controlsVisible:B.controlsWereVisibleBeforeDragging};V.enableFineScrubbing&&R.fineScrubbingActiveState!=="on"&&(B.resetFilmStripYOffset(),e.fineScrubbingActiveState="off");var X=X===void 0?Ke5:X;var Y=_.TE(0);Y&&X&&_.sV(Y,X,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(R.playedTime*1E3),endMediaTimeMs:Math.round(R.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});R.setState(e);
B.seekThrottle.fire(R.draggedTime,R,7);_.k("mweb_new_progress_bar_play_on_seek")&&B.resumeVideo(R);V.unmuteOnSeek&&(V=R.playerApi,R.volumeMuted&&(V==null||V.unMute()))}else R.setState({controlsVisible:!R.controlsVisible}),(Y=V.triggerAutohideControlsAfterDelayFn)==null||Y.call(V);B.startPosition=null;B.hasDraggedTheMinimumDistance=!1;B.isDraggedForFineScrubbing=!1;B.controlsWereVisibleBeforeDragging=!1};
HA.prototype.handleClick=function(B,R,V){this.updateProgressBarRect();B.stopPropagation();B=rDo(this,R,B.clientX)*R.videoDuration;R.setState({playedTime:B});if(R.playerState!==2){var e;(e=V.triggerAutohideControlsAfterDelayFn)==null||e.call(V)}this.seekThrottle.fire(B,R,7)};
var rDo=function(B,R,V){B=B.getProgressBarRect(R);return _.IH(0,(V-B.left)/B.width,1)};
HA.prototype.resumeVideo=function(B){if(B.draggedTime<B.videoDuration){var R;(R=B.playerApi)==null||R.playVideo()}};
HA.prototype.onThrottledSeek=function(B,R,V){if(R=R.playerApi){var e;if((e=R.getVideoData())==null?0:e.isLive)e=this.getProgressState(R),B+=(e==null?void 0:e.seekableStart)||0;R.seekTo(B,void 0,void 0,void 0,V)}};
HA.prototype.getProgressState=function(B){var R=B==null?void 0:B.getPresentingPlayerType();return B==null?void 0:B.getProgressState(R)};var $SN,mSj,CIo,nvm,Zf4,uxN,Ofe,oq7,Bc7;$SN=_.sx(function(B){var R=B.progressBarProps;var V=B.config;var e=B.progressBarWidthPx;var X=B.chapterData;var Y=Cr_(R,function(){return V().isShortsPage}),t=function(){return!R().isHovering&&!V().isShortsPage};
B={};var b=_.XE("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(B.ytPlayerStoryboardHostMwebShorts=function(){return V().isShortsPage&&!1},B));
return _.N("yt-player-storyboard",null,_.N(_.H,{cond:function(){return R().isDragging||R().isHovering},
then:function(){return _.N(_.H,{cond:Y,then:function(J){return _.N(_.H,{cond:t,then:function(){return _.N("div",{class:b,"aria-hidden":"true"},_.N(Zf4,{props:R,config:V,isBigboard:!0,chapterData:X}))},
else:function(){return _.N(mSj,{props:R,frame:J,config:V,progressBarWidthPx:e,chapterData:X})}})}})}}))},"ve");
_.PIN=_.sx(function(B){var R=B.progressBarProps;var V=Cr_(R,B.isShortsPage);return _.N("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.N(_.H,{cond:function(){return R().isDragging||R().isHovering},
then:function(){return _.N(_.H,{cond:V,then:function(e){return _.N(CIo,{frame:e,props:R,isBigboard:!0})}})}}))},"we");
mSj=_.sx(function(B){var R=B.props;var V=B.frame;var e=B.config;var X=B.progressBarWidthPx;B=B.chapterData;var Y={};Y=_.XE("ytPlayerStoryboardHost",(Y.ytPlayerStoryboardHostMwebShorts=function(){return e().isShortsPage&&!1},Y.ytPlayerStoryboardHostInlinePlayer=function(){return e().isInlinePlayer},Y.ytPlayerStoryboardHostFadeIn=function(){return e().useFadeInAnimation},Y));
return _.N("div",{class:Y,"aria-hidden":"true",style:function(){var t=R(),b=gNx(V()),J=X();t=ZPu(t)/t.videoDuration;var G=J*t,y=b/2+6;b=J-(b/2+6);return"left: "+(G<=y?y/J*100:G>=b?b/J*100:t*100)+"%"}},_.N(_.H,{cond:function(){var t=R();
return!(e().isShortsPage&&t.videoDuration<15)},
then:function(){return _.N(CIo,{frame:V,props:R,isBigboard:!1})}}),_.N(Zf4,{props:R,
config:e,isBigboard:!1,chapterData:B}))},"xe");
CIo=_.sx(function(B){var R=B.frame;var V=B.props;var e=B.isBigboard;var X=function(){var b,J;return(J=(b=V().playerApi)==null?void 0:b.getVideoContentRect())!=null?J:{width:0,height:0}},Y=function(){return gNx(R())},t=function(){var b=R();
return b?b.height/b.rows:0};
B={};B=_.XE((B.ytPlayerStoryboardBigboardImageWrapper=e,B.ytPlayerStoryboardStoryboardImageWrapper=function(){return!e()},B));
return _.N("div",{class:B,style:function(){return"width: "+(e()?X().width:Y())+"px; height: "+(e()?X().height:t())+"px;"}},_.N(nvm,{frame:R,
storyboardWidth:Y,storyboardHeight:t,storyboardScale:function(){return(e()?X().width:Y())/Y()}}))},"ye");
nvm=_.sx(function(B){var R=B.frame;var V=B.storyboardWidth;var e=B.storyboardHeight;var X=B.storyboardScale;var Y=function(){var t=R().row,b=R().column,J=V(),G=e(),y=X();return{left:-b*J*y,top:-t*G*y}};
return _.N("img",{src:function(){return R().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+Y().left+"px; top: "+Y().top+"px; width: "+R().width*X()+"px; height: "+R().height*X()+"px;"}})},"ze");
Zf4=_.sx(function(B){var R=B.props;var V=B.config;var e=B.isBigboard;var X=B.chapterData;B={};B=_.XE("ytPlayerStoryboardMetadata",(B.ytPlayerStoryboardMetadataBigboard=e,B));return _.N("div",{class:B},_.N(_.H,{cond:e,then:function(){return _.N(_.OZ,null,_.N(uxN,{props:R,config:V}),_.N(_.H,{cond:function(){a:{var Y=R();var t=V(),b=X(),J;if((t==null?0:t.activeChapter)&&((J=_.D(t==null?void 0:t.activeChapter,QA))==null?0:J.title))Y=!0;else{t=_.h(fH_(b));for(t=t.next();!t.done;t=t.next()){Y=(t=_.D(t.value,
vJ4))&&mX_(Y,t);break a}Y=!1}}return Y},
then:function(){return _.N(Ofe,{props:R,config:V,isBigboard:!0,chapterData:X})}}))},
else:function(){return _.N(_.OZ,null,_.N(Ofe,{props:R,config:V,isBigboard:!0,chapterData:X}),_.N(uxN,{props:R,config:V}))}}))},"Ae");
uxN=_.sx(function(B){var R=B.props;var V=B.config;B={};B=_.XE("ytPlayerStoryboardTimestamp",(B.ytPlayerStoryboardTimestampShorts=function(){return V().isShortsPage},B.ytPlayerStoryboardTimestampIsHovering=function(){return R().isHovering||V().isShortsPage&&!0},B));
return _.N("div",{class:B},_.N(_.OZ,null,function(){return _.$XK(ZPu(R()))}))},"Be");
Ofe=_.sx(function(B){var R=B.props;var V=B.config;var e=B.isBigboard;var X=B.chapterData;B={};e=_.XE("ytPlayerStoryboardTitle",(B.ytPlayerStoryboardTitleBigboard=e,B));return _.N("div",{class:e},_.N(_.H,{cond:function(){return!V().isShortsPage},
then:function(){return _.N(oq7,{props:R,activeChapter:function(){return V().activeChapter},
chapterData:X})}}))},"Ce");
oq7=_.sx(function(B){var R=B.props;var V=B.activeChapter;var e=B.chapterData;return _.N(_.OZ,null,_.N(_.yh,{each:function(){return fH_(e())},
keyBy:"INDEX"},function(X){return _.N(_.OZ,null,_.N(_.H,{cond:function(){return _.D(X(),vJ4)&&mX_(R(),_.D(X(),vJ4))},
then:function(){return _.N(Bc7,{timedMarker:function(){return _.D(X(),vJ4)}})}}))}),_.N(_.H,{cond:function(){var X;
return V()&&((X=_.D(V(),QA))==null?void 0:X.title)},
then:function(X){return _.N(_.Hr,{text:X,noPreWrap:!0})}}))},"De");
Bc7=_.sx(function(B){var R=B.timedMarker;return _.N(_.OZ,null,_.N("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.N(_.Us,{icon:function(){return R().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.N(_.Hr,{text:function(){return R().label},
noPreWrap:!0}))},"Ee");_.RJN=_.sx(function(B){var R=B.progressBarProps;var V=B.playheadData;var e=B.config;B=_.Zh();var X=_.Zh(),Y=_.Zh(),t=_.h(_.WU({width:0,left:0},void 0,"NcXsUb")),b=t.next().value,J=t.next().value,G=function(){Y.value&&J(Y.value.getBoundingClientRect())},y=function(){b().width<=0&&G();
return b()};
nE("resize",G);var S=new HA(y,function(){},function(){return 0},function(){},function(){},function(){}),M=function(){return R()};
t=_.h(_.WU(!1,void 0,"ZsF6Xc"));var f=t.next().value,z=t.next().value;t=_.Wr(function(){z(!0);e().position===2?setTimeout(function(){G()},100):G()});
var T=_.Wr(function(){z(!1);Qmz(S,M)()}),L=_.Wr(function(ES){e().doSeekOnClick&&dSe(S,M,e)(ES);
return!1}),Q=_.Wr(function(ES){xS2(S,M)(ES);
return!1}),q=_.Wr(function(ES){Llm(S,M)(ES);
return!1}),m=_.Wr(function(ES){Klr(S,M,e)(ES);
return!1}),g=_.Wr(function(ES){EvN(S,M,e)(ES);
return!1}),Vu=_.Wr(function(){qY6(S,M,e)();
return!1}),n=_.Wr(function(){cD4(S,M,e)();
return!1}),Yd=_.Wr(function(){ADN(S,M,e)();
return!1}),kd=_.Wr(function(ES){ifN(M)(ES);
return!1});
nE("mousemove",sm4(S,M,e));nE("mouseup",Fl4(S,M,e));_.zM(function(){IHA(X.value);z(!1);G();Fl4(S,M,e)()});
var a5={};a5=_.XE("ytPlayerProgressBarHost",function(){return e().className},(a5.ytPlayerProgressBarHostReadOnly=function(){return e().disableScrubbing},a5.ytPlayerProgressBarHostHidden=function(){return e().hideProgressBar&&!f()},a5.ytPlayerProgressBarHostLowerPlayer=function(){return e().position===0},a5.ytPlayerProgressBarHostBottomEdge=function(){return e().position===1},a5.ytPlayerProgressBarHostBottomInset=function(){return e().position===2},a5.ytPlayerProgressBarHostCustom=function(){return e().position===
3},a5));
var lo={},io=_.XE("ytPlayerProgressBarBackground",(lo.ytPlayerProgressBarBackgroundHide=function(){return e().position===2&&!f()&&!R().isDragging},lo));
lo={};lo=_.XE("ytPlayerProgressBarDragContainer",(lo.ytPlayerProgressBarDragContainerBottomEdge=function(){return e().position===1},lo));
var vd={};vd=_.XE("ytPlayerProgressBarProgressBar",(vd.ytPlayerProgressBarProgressBarInset=function(){return e().position===2},vd.ytPlayerProgressBarProgressBarInsetMinimized=function(){return e().position===2&&!f()&&!R().isDragging},vd));
var cd=function(){return Math.floor(HP_(R())*100)};
return _.N("yt-progress-bar",{el:B,class:a5},_.N(_.H,{cond:function(){return e().position===2},
then:function(){return _.N("div",{class:io})}}),_.N("div",{el:X,
"on:click":L,"on:touchstart":Q,"on:touchmove":m,"on:mouseenter":t,"on:mousedown":q,"on:mouseleave":T,"on:mousemove":g,"on:mouseup":n,"on:touchend":Vu,"on:touchcancel":Yd,"on:keydown":kd,class:lo,role:"slider","aria-valuenow":cd,"aria-valuetext":function(){return cd()+"%"},
tabindex:0,"aria-label":_.Wz("SEEK_SLIDER")},_.N("div",{el:Y,class:vd},_.N(lYU,{progressBarProps:R,config:e,highContrast:function(){return!!e().isInlinePlayback}}),_.N(_.H,{cond:function(){return e().chapterData&&lHp(e().chapterData)},
then:function(){return _.N(DSj,{progressState:R,multiMarkersPlayerBarRenderer:function(){return e().chapterData},
progressBarWidth:function(){return b().width}})},
else:function(){return _.N(zk2,{progressBarProps:R,config:e})}}),_.N(aY4,{progressBarProps:R,
playheadData:V,interpolateDotPosition:function(){return e().position!==2},
hidePlayhead:function(){return e().playheadDotBehavior===1&&!f()}}))),_.N($SN,{progressBarProps:R,
config:function(){return{activeChapter:Axq(R(),e().chapterData),getProgressBarWidthPx:function(){return y().width},
isShortsPage:!!e().isShortsPage,isInlinePlayer:!!e().isInlinePlayback,useFadeInAnimation:!!e().isInlinePlayback}},
progressBarWidthPx:function(){return b().width},
chapterData:function(){return e().chapterData}}))},"Fe");
_.RJN.idomCompat=!0;Object.assign({},_.zUp(),{setState:function(){},
domMeasurements:{},appApi:_.SFK(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var V4j;
_.eJU=_.sx(function(){var B,R=(B=_.cS(PrA().playerApi))!=null?B:void 0;B=_.h(_.WU(!1,void 0,"HLFBmb"));var V=B.next().value,e=B.next().value;B=_.h(_.WU(!1,void 0,"lHH9bc"));var X=B.next().value,Y=B.next().value;B=_.h(_.WU(!1,void 0,"zsY7yd"));var t=B.next().value,b=B.next().value;B=_.h(_.WU(!1,void 0,"KeHQgc"));var J=B.next().value,G=B.next().value;B=_.h(_.WU(0,void 0,"gLLCj"));var y=B.next().value,S=B.next().value;B=_.h(_.WU(0,void 0,"s3RYkf"));var M=B.next().value,f=B.next().value;B=_.h(_.WU(!1,void 0,
"Dn608e"));var z=B.next().value,T=B.next().value;B=_.h(_.WU(0,void 0,"AnkH1b"));var L=B.next().value,Q=B.next().value;B=_.h(_.WU(0,void 0,"QYNL0b"));var q=B.next().value,m=B.next().value;B=_.h(_.WU("",void 0,"Yzw45d"));var g=B.next().value,Vu=B.next().value;B=_.h(_.WU(-1,void 0,"iiVI0c"));var n=B.next().value,Yd=B.next().value,kd=_.NW(function(){var a5={controlsVisible:V(),isOverlayHidden:X(),shouldWaitToHideControls:t(),isDragging:J(),isHovering:z(),videoDuration:L(),playedTime:q(),videoId:g(),draggedTime:M(),
hoveredTime:y(),playerState:n()};return Object.assign({},_.zUp(),a5,{domMeasurements:{},setState:function(lo){lo.controlsVisible!==void 0&&e(lo.controlsVisible);lo.isOverlayHidden!==void 0&&Y(lo.isOverlayHidden);lo.shouldWaitToHideControls!==void 0&&b(lo.shouldWaitToHideControls);lo.isDragging!==void 0&&G(lo.isDragging);lo.isHovering!==void 0&&T(lo.isHovering);lo.draggedTime!==void 0&&f(lo.draggedTime);lo.hoveredTime!==void 0&&S(lo.hoveredTime);lo.videoDuration!==void 0&&Q(lo.videoDuration);lo.playedTime!==
void 0&&m(lo.playedTime);lo.videoId!==void 0&&Vu(lo.videoId);lo.playerState!==void 0&&Yd(lo.playerState)},
appApi:_.SFK(),playerApi:R})},void 0,"ZW7y9");
_.fQ(function(){R==null||R.addEventListener("onVideoProgress",TGp(kd));R==null||R.addEventListener("onVideoDataChange",wt_(kd));R==null||R.addEventListener("onStateChange",aHq(kd))});
_.aK(function(){if(R==null?0:R.isReady())R==null||R.removeEventListener("onVideoProgress",TGp(kd)),R==null||R.removeEventListener("onVideoDataChange",wt_(kd)),R==null||R.removeEventListener("onStateChange",aHq(kd))});
return _.N("desktop-shorts-player-controls",null,_.N(V4j,{playerControlsProps:kd}))},"Ge");
V4j=_.sx(function(B){var R=B.playerControlsProps;return _.N("div",{class:"desktopShortsPlayerControlsWizHost"},_.N(_.RJN,{progressBarProps:R,config:function(){return{isShortsPage:!0,hideProgressBar:R().videoDuration<30&&R().playerState!==2&&!R().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"He");_.oA(_.BDu);_.XB4=_.sx(function(B){var R=B.data;return _.N("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.N(_.SQ,{command:function(){return R().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.N(_.H,{cond:function(){return R().iconName},
then:function(V){return _.N(_.Us,{icon:V})}}),_.N("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return R().text}),_.N(_.H,{cond:function(){return R().showEndChevron},
then:function(){return _.N(_.Us,{icon:"CHEVRON_RIGHT"})}})))},"Ie");var pB4=_.sx(function(B){var R=B.data;var V=B.overlayDensity;B={};return _.N("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.N(_.wb,{data:function(){return R().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(e){var X=e.data;
return _.N(_.S_,{data:function(){return(V==null?void 0:V())===1?Object.assign({},X(),{avatar:{avatarViewModel:Object.assign({},_.D(X().avatar,_.$x),{avatarImageSize:"AVATAR_SIZE_48"})}}):X()}})}}),_.N(_.wb,{data:function(){return R().avatarStackViewModel}},{avatarStackViewModel:function(e){return _.N(_.H0,{data:e.data})}}),_.N(_.Hr,{className:_.XE("ytReelChannelBarViewModelChannelName",(B.ytReelChannelBarViewModelChannelNameLarge=function(){return(V==null?void 0:V())===1},B)),
text:function(){return R().channelName},
linkInheritColor:!0,userInput:!0}),_.N("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.N(_.wb,{data:function(){return R().subscribeButtonViewModel}},{subscribeButtonViewModel:function(e){var X=e.data;
return _.N(oL4,{data:function(){return(V==null?void 0:V())===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:_.qo})),_.N("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.N(_.wb,{data:function(){var e,X;return(X=_.D((e=R())==null?void 0:e.sponsorButtonViewModel,O8l))==null?void 0:X.sponsorButton}},{buttonViewModel:function(e){return _.N(_.qo,{data:e.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Je");var Y8m=_.sx(function(B){var R={};return _.N("yt-reel-multi-format-link-view-model",{class:_.XE("ytReelMultiFormatLinkViewModelHost",(R.ytReelMultiFormatLinkViewModelHostTall=!0,R.ytReelMultiFormatLinkViewModelHostLarge=function(){var V;return((V=B.overlayDensity)==null?void 0:V.call(B))===1},R))},_.N(_.SQ,{ariaLabel:function(){return B.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.dl(B.data().command)},
dangerousStopPropagation:!1},_.N("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.N(_.H,{cond:function(){return B.data().icon},
then:function(V){return _.N(_.ia,{data:V,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.N(_.Hr,{text:function(){return B.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ke");
Y8m.idomCompat=!0;var hJe=_.sx(function(B){var R=B.data;var V=B.overlayDensity;var e=_.Zh();B=_.h(_.WU(!1,void 0,"xDqzhe"));var X=B.next().value,Y=B.next().value;B=_.h(_.WU(!1,void 0,"LI9CFd"));var t=B.next().value,b=B.next().value,J=function(){return R().isMultiLineSa},G=_.No(F9q,function(){var m,g;
return(g=(m=R().toggleableContent)==null?void 0:m.entityKey)!=null?g:""}),y=function(){var m,g,Vu;
return(Vu=R().toggleableContent)!=null&&Vu.entityKey?(g=(m=G())==null?void 0:m.value)!=null?g:!1:!1},S=function(){var m,g,Vu,n,Yd,kd,a5,lo,io,vd,cd;
return R().toggleableContent?y()?(m=R().toggleableContent)==null?void 0:m.toggledData:(g=R().toggleableContent)==null?void 0:g.untoggledData:{primaryText:(lo=(Vu=R().defaultContent)==null?void 0:Vu.primaryText)!=null?lo:R().text,secondaryText:(n=R().defaultContent)==null?void 0:n.secondaryText,onTapCommand:(io=(Yd=R().defaultContent)==null?void 0:Yd.onTapCommand)!=null?io:R().onTapCommand,icon:(vd=(kd=R().defaultContent)==null?void 0:kd.icon)!=null?vd:R().icon,image:(cd=(a5=R().defaultContent)==null?
void 0:a5.image)!=null?cd:R().image}},M=function(){return J()?R().trailingTapTarget:void 0};
B=function(m,g){return function(){return X()?g:m}};
var f={leadingSection:B("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:B("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:B("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:B("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};B={};B=_.XE((B.ytShortsSuggestedActionViewModelStaticHost=function(){return!J()},B.ytShortsSuggestedActionViewModelDynamicHost=J,B.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return J()&&t()},B.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return J()&&!t()},B));
_.zM(function(){if(J()){var m=0,g;if((g=R().animationParams)==null?0:g.shouldExpand){var Vu,n;m=((n=(Vu=R().animationParams)==null?void 0:Vu.expansionDelaySecs)!=null?n:0)*1E3}var Yd,kd=((Yd=R().animationParams)==null?0:Yd.shouldExpand)?setTimeout(function(){Y(!0)},m):void 0,a5,lo;
m=((a5=R().animationParams)==null?0:a5.visibilityDelaySecs)?((lo=R().animationParams)==null?NaN:lo.visibilityDelaySecs)*1E3:0;var io=setTimeout(function(){b(!0)},m);
_.aK(function(){kd&&clearTimeout(kd);clearTimeout(io)})}});
var z=function(m){_.Lc(m,Object.assign({},{form:{element:e.value}}))},T=_.Wr(function(){var m,g=(m=S())==null?void 0:m.onTapCommand;
g&&z(g)}),L=_.Wr(function(){var m,g;
if(m=(g=M())==null?void 0:g.onTapCommand)return z(m),!1}),Q=_.jQ({"vertical-align":"bottom",
"border-radius":function(){var m;return J()?((m=R().defaultContent)==null?0:m.isCircleImage)?"50%":"4px":"0px"},
width:function(){var m,g,Vu;return J()&&((m=R().defaultContent)==null?0:m.imageSize)?((Vu=(g=R().defaultContent)==null?void 0:g.imageSize)!=null?Vu:24)+"px":null},
height:function(){var m,g,Vu;return J()&&((m=R().defaultContent)==null?0:m.imageSize)?((Vu=(g=R().defaultContent)==null?void 0:g.imageSize)!=null?Vu:24)+"px":null}}),q={};
return _.N("yt-shorts-suggested-action-view-model",{class:B,el:e},_.N("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.N("button",{class:_.XE(function(){return J()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var m;
return(m=R().useFullRoundedBorder)!=null&&m?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!M()&&J()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":J()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var m;
return(m=R().disableFixedHeight)!=null&&m?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(q.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(V==null?void 0:V())===1},q)),
"on:click":T},_.N(_.yK,{model:{color:4}}),_.N("div",{class:_.XE(function(){return J()?f.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.N(_.H,{cond:function(){var m;
return(m=S())==null?void 0:m.image},
then:function(m){return _.N(_.ia,{data:m,alt:"",className:function(){return J()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:Q})}}),_.N(_.H,{cond:function(){var m,g;
return(m=S())==null?void 0:(g=m.icon)==null?void 0:g.iconType},
then:function(m){return _.N(_.Us,{icon:m,active:y,className:function(){return J()?X()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.N("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.N(_.H,{cond:function(){var m;
return(m=S())==null?void 0:m.primaryText},
then:function(m){return _.N("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.N(_.Hr,{text:m}))}}),_.N(_.H,{cond:function(){var m;
return(m=S())==null?void 0:m.secondaryText},
then:function(m){return _.N("div",{class:f.secondaryText},_.N(_.Hr,{text:m}))}}))),_.N(_.H,{cond:M,
then:function(m){return _.N("div",{class:f.trailingSection,"aria-label":function(){var g;return(g=m().a11yLabel)!=null?g:""},
"on:click":L,role:"button",tabindex:0},_.N(_.yK,{model:{color:4}}),_.N(_.Us,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Le");var t4z=_.sx(function(B){var R=B.data;var V=B.overlayDensity;var e=_.Zh();B=_.Wr(function(t){if(_.I_S(_.sQ(t),e.value,["A".toString()]))return!1;(t=R().truncatedTextOnTapCommand)&&_.Lc(t);return!1});
var X={},Y={};return _.N("yt-shorts-video-title-view-model",{el:e,class:_.XE("ytShortsVideoTitleViewModelHost",(X.ytShortsVideoTitleViewModelHostClickable=function(){return!!R().truncatedTextOnTapCommand},X)),
"on:click":B},_.N("h2",{class:_.XE("ytShortsVideoTitleViewModelShortsVideoTitle",(Y.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(V==null?void 0:V())===1},Y))},_.N(_.Hr,{text:function(){return R().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Me");_.WLe=_.sx(function(B){var R=B.data;var V=B.overlayDensity;return _.N("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.N(_.wb,{data:function(){return R().metadataItems}},{badgeViewModel:function(e){return _.N("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.N(_.Za,{data:e.data}))},
playerDisclosureViewModel:function(e){return _.N("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.N(_.XB4,{data:e.data}))},
shortsSuggestedActionViewModel:function(e){return _.N("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.N(hJe,{data:e.data,overlayDensity:V}))},
reelChannelBarViewModel:function(e){return _.N("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.N(pB4,{data:e.data,overlayDensity:V}))},
reelMultiFormatLinkViewModel:function(e){return _.N("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.N(Y8m,{data:e.data,overlayDensity:V}))},
shortsVideoTitleViewModel:function(e){return _.N("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.N(t4z,{data:e.data,overlayDensity:V}))},
reelSoundMetadataViewModel:function(e){return _.N("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.N(_.yhr,{data:e.data,overlayDensity:V}))}}))},"Ne");var b$N=_.sx(function(B){var R=_.ip(B,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),V=R.size,e=R.onTap,X=R.disabled,Y=R.tooltipText;return _.N("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.N(BI,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:V(),disabled:X(),tooltipText:Y(),onTap:e}},
iconName:B.iconType}))},"Oe"),JR7=_.sx(function(B){function R(y){y.stopPropagation();
y.code==="ArrowUp"?(y.preventDefault(),XQo(b.value)):y.code==="ArrowDown"?(y.preventDefault(),pQu(b.value)):y.code==="KeyM"?Vx_():(y.code==="KeyK"||y.code==="Space")&&emI(J())}
var V=_.ip(B,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});B=V.previousButtonDisabled;var e=V.nextButtonDisabled,X=V.data,Y=V.playabilityStatus,t=V.previewThumbnail,b=_.Zh(),J=_.w1(_.Tf5),G;_.fQ(function(){(G=_.zg(b.value))&&G.addEventListener("keydown",R)});
_.aK(function(){var y;(y=G)==null||y.removeEventListener("keydown",R)});
V=function(){var y,S,M;return(y=X())==null?void 0:(S=y.reelPlayerOverlayRenderer)==null?void 0:(M=S.likeButton)==null?void 0:M.likeButtonRenderer};
return _.N("ytd-shorts-miniplayer-overlay",{el:b,class:"ytdShortsMiniplayerOverlayHost"},_.N("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.jQ({"background-image":function(){var y=t();return y?'url("'+_.Cc(y.thumbnails)+'")':""}})}),_.N("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.N("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.N(b$N,{iconType:function(){var y=J();
return y===2||y===-1||y===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){emI(J())},
tooltipText:function(){var y=J();return y===1||y===3?_.Wz("PLAYER_LABEL_PAUSE"):_.Wz("PLAYER_LABEL_PLAY")}}),_.N(_.BDu,null)),_.N("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.N(b$N,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:B,onTap:function(){XQo(b.value)},
tooltipText:_.Wz("PREVIOUS_VIDEO_LABEL")}),_.N(b$N,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:e,onTap:function(){pQu(b.value)},
tooltipText:_.Wz("NEXT_VIDEO_LABEL")}),_.k("web_shorts_pip_like_button")?_.N("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.N(mAb,{buttonTooltipPosition:"left",data:V,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.N("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.N(_.H,{cond:function(){var y,S;return _.D((y=X())==null?void 0:(S=y.reelPlayerOverlayRenderer)==null?void 0:S.metapanel,
_.Cxl)},
then:function(y){return _.N("div",{class:_.XE("ytdShortsMiniplayerOverlayInteractive")},_.N(_.WLe,{data:y}))}})),_.N("div",{class:_.XE("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var y;return!((y=X())==null||!y.adsOverlay)||Y()&&!GO_(Y())}},_.N("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.N(_.eJU,null)))),_.N(_.H,{cond:function(){var y=X(),S,M;
y=_.D(y==null?void 0:(S=y.adsOverlay)==null?void 0:(M=S.fulfillmentContent)==null?void 0:M.fulfilledLayout,wbb);return _.D(y==null?void 0:y.renderingContent,Kg_)},
then:function(y){return _.N("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.N($Bh,{data:y}))}}))},"Pe");var YEu=_.sx(function(){var B=_.h(_.WU(new _.Yl(NaN,NaN),void 0,"HSMFk")),R=B.next().value,V=B.next().value;B=_.h(_.WU(!1,void 0,"uaAxwf"));var e=B.next().value,X=B.next().value,Y=_.h(_.WU(!1,void 0,"nVSwef"));B=Y.next().value;var t=Y.next().value,b=_.Oz().resolve(_.An).miniplayerPropSignalMap[0],J=b.data,G=b.shortsData,y=b.nextButtonDisabled,S=b.shortsPreviewThumbnail,M=b.previousButtonDisabled,f=b.externalPlaylistData;Y=b.toastData;var z=b.playabilityStatus,T=b.isDisabled,L=b.playerVe,Q=b.closeVe;
b=_.w1(_.yN);_.gn("yt-pip-window-resized",function(Vu){V(Vu)});
_.gn("yt-activate-pip-miniplayer",function(){return _.W(function(Vu){t(!0);_.b3(Vu)})});
var q=function(){var Vu;return!((Vu=f())==null||!Vu.contents)&&e()},m=function(){var Vu=R(),n=!!J(),Yd=q();
Vu=Vu.clone();n&&(Vu.height-=76);Yd&&(Vu.height-=285);return Vu},g=function(){X(!e())};
_.lJ(function(){var Vu=L(),n=_.TE(11),Yd=_.wT(11);n&&Yd&&Vu&&(_.EV(n,Yd,Vu),Yd=Q())&&(_.QD(n,Vu,[Yd]),_.cz(n,[Yd]))});
return _.N("ytd-pip-container",{class:"ytdPipContainerHost"},_.N(_.H,{cond:B,then:function(){return _.N(_.Hf4,{isDisabled:T,playabilityStatus:z,size:m})}}),_.N(_.H,{cond:J,
then:function(){return _.N(_.yDe,{data:J,expanded:e,onExpandClick:g,playlistData:f})}}),_.N(_.H,{cond:q,
then:function(){return _.N("div",{class:"ytdPipContainerPlaylistPanel"},_.N(_.gY2,{data:f,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.N(_.H,{cond:b,
then:function(){return _.N(JR7,{data:G,nextButtonDisabled:y,previousButtonDisabled:M,playabilityStatus:z,previewThumbnail:S})}}),_.N("div",{class:"ytdPipContainerToast"},_.N(_.Mzr,{toastData:Y})))},"Qe");var kL=function(B,R){var V=this;this.pipController=B;this.JSC$16395_clientRoot=R;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=jwu();this.watchPipEnabled=_.k("web_watch_pip");this.shortsPipEnabled=_.k("web_shorts_pip");this.JSC$16395_watchWhileEnabled=_.k("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(_.g6(),_.zrp,function(e){V.isSingleOptionSurveyActive=e});
this.JSC$16395_onPlayerPlayVideo=this.JSC$16395_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);_.Fo(_.sd.getInstance(),this.miniplayerServiceActionMap,this.JSC$16395_clientRoot);B.pictureInPictureSupported()&&_.dn("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},bXR,DVj,S8j,fM7,lM2,ail;
kL.prototype.handleMediaSessionPipActivation=function(){var B=this,R;return _.W(function(V){_.Up().mediaSessionPipActivation=!0;R=_.Oz().resolve(_.$B);return R.isOnWatch()&&B.watchPipEnabled?(_.Up().watchPipActivation=!0,_.ja7(B,R.data),V.jumpTo(0)):R.isOnShorts()&&B.shortsPipEnabled?(_.Up().shortsPipActivation=!0,_.UVN(B),V.jumpTo(0)):B.isMiniplayerActive()&&B.watchPipEnabled&&!B.watchWhileMode?_.U(V,Ncz(B),0):V.jumpTo(0)})};
var Ncz=function(B){var R,V,e,X;return _.W(function(Y){if(Y.nextAddress==1)return R=!B.miniplayerToPipMode,V=B.playerElement,e=B.miniplayerData,X=B.watchResponse,_.U(Y,B.deactivate(),2);if(Y.nextAddress!=3)return R?(_.Up().mediaSessionPipActivation=!0,_.Up().watchPipActivation=!0):_.Up().miniplayerButtonActivation=!0,_.U(Y,B.activate(V,e,X),3);B.miniplayerToPipMode=R;_.b3(Y)})};
kL.prototype.onDownloadedVideoDeleted=function(B){var R,V=_.D((R=this.miniplayerData)==null?void 0:R.watchEndpoint,_.sI),e,X;V&&((e=this.watchResponse)==null?void 0:(X=e.playerResponse)==null?void 0:X.offlineState)!==void 0&&(R=V.videoId)&&B&&R===B&&this.close()};
kL.prototype.onShowMiniplayerCommand=function(B){var R=this,V,e,X,Y,t,b,J,G,y,S,M,f,z;return _.W(function(T){switch(T.nextAddress){case 1:return V=_.D(B,AHb),X=(e=V)==null?void 0:e.miniplayerCommand,Y=_.D(X,_.sI),X&&Y&&!R.active?_.U(T,_.fy.getInstance(),2):T.return();case 2:return t=T.yieldResult,_.U(T,(b=t)==null?void 0:b.get("yt-miniplayer-shown-video-id"),3);case 3:J=T.yieldResult;G=Y.videoId;if(!G||J===G)return T.return();y=_.Oz().resolve(_.$B);if(y.isOnWatch())return _.KE(Error("Cj")),T.return();
S={channelItem:{externalId:btoa(G)}};R.readyToResumeVe=_.kB(121253,void 0,void 0,S);_.Up().showMiniplayerCommandActivation=!0;return _.U(T,_.dzh(R,X,!0),4);case 4:return R.active?(_.D3(R,{readyToResumeVe:R.readyToResumeVe,continueWatching:!0,premiumBranding:!((M=V)==null||!M.showPremiumBranding)}),R.isReadyToResume=!0):_.D3(R,{continueWatching:!0,premiumBranding:!((f=V)==null||!f.showPremiumBranding)}),_.k("ytd_miniplayer_to_wiz")&&_.D3(R,{isReadyToResume:!0}),_.U(T,(z=t)==null?void 0:z.set("yt-miniplayer-shown-video-id",
Y.videoId),5);case 5:R.readyToResumeVe=void 0,_.b3(T)}})};
kL.prototype.init=function(B){this.miniplayerEl?_.KE(new _.H8("MiniplayerService already initialized.")):this.miniplayerEl=B};
kL.prototype.isInitialized=function(){var B=!!this.miniplayerEl;B||_.KE(new _.H8("MiniplayerService used before initialized."));return B};
_.ja7=function(B,R){if(B.isInitialized()){var V=_.G1I(R.response,R.playerResponse),e=_.Oz().resolve(_.$B).getPlayerFromWatch();_.Up().currentEndpoint=V.watchEndpoint||null;B.activate(e,V,R)}};
_.UVN=function(B){if(B.isInitialized()){var R=_.Oz().resolve(_.$B).getPlayerFromShorts();B.activate(R)}};
bXR=function(B,R){var V;(V=!B.isInitialized())||(V=_.Oz().resolve(_.$B).isOnWatch()&&B.watchPipMode,V=!(B.isMiniplayerActive()&&(_.Up().userActivation||_.Up().lockupActivation||V)));if(V)return!1;Gmn(B,R)?_.Sa(B):ail(B,R);return B.watchPipMode?!_.Oz().resolve(_.$B).isOnWatch():!0};
kL.prototype.isMiniplayerActive=function(){return this.active};
var Gmn=function(B,R){var V;R=(V=_.D(R,_.sI))==null?void 0:V.videoId;var e,X;B=(X=_.D((e=B.miniplayerData)==null?void 0:e.watchEndpoint,_.sI))==null?void 0:X.videoId;return R!=null&&R===B};
kL.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.OI(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.oF(this.miniplayerEl,"yt-navigate-home-action"))};
_.dzh=function(B,R,V,e){V=V===void 0?!1:V;var X,Y,t;return _.W(function(b){switch(b.nextAddress){case 1:if(B.active){b.jumpTo(2);break}X=_.Oz().resolve(_.$B);if(t=(Y=B.playerElement)!=null?Y:X.getPlayerFromWatch()){b.jumpTo(3);break}return _.U(b,_.Oz().resolve(_.B7),4);case 4:t=X.getPlayerFromWatch();case 3:if(!t){_.KE(Error("Ej"));b.jumpTo(2);break}return _.U(b,B.activate(t,e),2);case 2:return B.active?_.U(b,ail(B,R,V),0):b.return()}})};
kL.prototype.activate=function(B,R,V){var e=this,X,Y,t,b,J,G,y,S,M;return _.W(function(f){switch(f.nextAddress){case 1:if(!e.isInitialized())return f.return();if(!B)return _.KE(Error("Ej")),f.return();if(_.FVJ()||e.isMiniplayerActive())var z=!0;else z=_.Up().watchPipActivation||_.Up().watchWhileActivation,_.Oz().resolve(_.$B).isOnWatch()&&!z?(_.KE(new _.H8("miniplayer activated on watch page")),z=!0):z=_.Up().watchWhileActivation?e.userDeactivatedWatchWhile||!!document.pictureInPictureElement||nhq():
!1;if(z)return s$5(),f.return();X=_.Up().mediaSessionPipActivation;Y=_.Up().shortsPipActivation;t=_.Up().watchPipActivation;J=(b=_.Up().watchWhileActivation)||t;G=t||Y;if(!e.pictureInPictureEnabled()||!G){f.jumpTo(2);break}return _.U(f,yR7(e,X),3);case 3:if(!f.yieldResult)return _.KE(Error("Dj")),s$5(),f.return();case 2:return e.setActive(!0),e.watchResponse=V,e.playerElement=B,e.updateMiniplayerData(R),_.U(f,S8j(e,B),4);case 4:if(!e.active)return _.KE(new _.H8("miniplayer deactivated during activation")),
e.removePlayerListeners(),f.return();z=_.Oz().resolve(_.Ky);z.addEventListener("yt-navigate",_.Bc(e,e.onPlaylistNavigate));z.addEventListener("yt-playlist-data-updated",_.Bc(e,e.JSC$16395_onPlaylistDataUpdated));e.JSC$16395_onPlaylistDataUpdated();s$5();e.JSC$16395_watchWhileEnabled&&_.H$U(e,b);e.pictureInPictureEnabled()&&e.shortsPipEnabled&&(e.shortsPipMode=Y,_.g6().dispatch(wO2(e.shortsPipMode)));e.pictureInPictureEnabled()&&e.watchPipEnabled&&(e.watchPipMode=t,_.O5Z(e.handleMediaSessionPipActivation));
e.player&&(y=e.player.getPlayerState(),S=y===1,_.g6().dispatch(qWJ(y)),_.Bz(e.miniplayerEl,"yt-miniplayer-play-state-changed",[S]),_.Up().isVideoPlaying=S);_.Bz(e.miniplayerEl,"yt-miniplayer-endpoint-changed");M46(e);_.kmn(e);return e.shortsPipMode||e.watchPipMode?_.U(f,_.RF(e.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.k("ytd_miniplayer_to_wiz")?_.U(f,_.RF(e.miniplayerEl,"yt-activate-miniplayer",[J]),6):_.U(f,_.RF(e.miniplayerEl,"yt-activate-miniplayer-action",[B,J]),6);case 6:DVj(e),fM7(e,!0),
(M=e.getPlayerElement())==null||M.focusOnPlayer(),_.b3(f)}})};
kL.prototype.updateMiniplayerData=function(B){this.miniplayerData=B;_.D3(this,{data:B})};
_.kmn=function(B){var R,V,e=((R=B.miniplayerData)==null?void 0:(V=R.miniplayerRenderer)==null?void 0:V.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";R=B.watchWhileMode||B.watchPipMode?e&&!_.Oz().resolve(_.$B).isOnWatch():e;_.D3(B,{isDisabled:R});var X,Y;V=_.D((X=B.miniplayerData)==null?void 0:(Y=X.miniplayerRenderer)==null?void 0:Y.minimizedEndpoint,_.ai);R&&V&&_.Oz().resolve(_.HO).openSheet({openPopupActionCommand:{openPopupAction:V}},B.miniplayerEl)};
DVj=function(B){if(B.watchResponse&&!lM2(B)){var R,V=(R=B.watchResponse.playerResponse)==null?void 0:R.trackingParams;V&&(_.D3(B,{expandVe:_.kB(35989),closeVe:_.kB(34699),readyToResumeCloseVe:_.kB(131070),repositionVe:_.kB(226204),resizeVe:_.kB(226205)}),_.D3(B,{playerVe:_.U5(V)}))}};
S8j=function(B,R){return _.W(function(V){if(V.nextAddress==1)return R.preparePlayer(),_.U(V,R.getPlayerPromise(),2);B.player=V.yieldResult;B.player&&(B.player.addEventListener("onPlayVideo",B.JSC$16395_onPlayerPlayVideo),B.player.addEventListener("onCloseMiniplayer",B.onPlayerCloseMiniplayer),B.player.addEventListener("onExpandMiniplayer",B.onPlayerExpandMiniplayer),B.player.addEventListener("onStateChange",B.onPlayerStateChange));_.b3(V)})};
_.p=kL.prototype;_.p.JSC$16395_onPlayerPlayVideo=function(B){var R=B.sessionData&&"autonav"in B.sessionData,V;B.sessionData&&B.sessionData.itct&&(V=B.sessionData.itct);var e=B.watchEndpoint;R=e&&R?_.PLx(e,V):_.Pz(B.videoId,B.listId||void 0,V);B.sessionData&&_.Zg(_.D(R.commandMetadata,_.$a).url,B.sessionData);ail(this,R)};
_.p.onPlayerExpandMiniplayer=function(){_.Sa(this)};
_.p.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.p.onPlayerStateChange=function(){if(this.player){var B=this.player.getPlayerState(),R=B===1;_.g6().dispatch(qWJ(B));_.g6().dispatch(_.AQh(B));_.Bz(this.miniplayerEl,"yt-miniplayer-play-state-changed",[R]);_.Up().isVideoPlaying=R;if(B===0){R=!_.PL.getInstance().isAutoplaySetExplicitly();var V,e,X,Y,t,b,J=(V=this.watchResponse.response)==null?void 0:(e=V.contents)==null?void 0:(X=e.twoColumnWatchNextResults)==null?void 0:(Y=X.autoplay)==null?void 0:(t=Y.autoplay)==null?void 0:(b=t.autoplayExplicitChoiceDialogRenderer)==
null?void 0:b.confirmDialogRenderer;R&&J&&this.player.setAutonavState(1)}B===0&&this.watchWhileMode&&this.deactivate()}};
_.p.onPlaylistNavigate=function(B,R){var V=this,e,X,Y,t,b,J,G;return _.W(function(y){if(y.nextAddress==1){if(!_.D(R.endpoint,_.sI))return y.return();_.Up().currentEndpoint=R.endpoint;_.Bz(V.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.Oz().resolve(_.$B).isOnWatch()&&(V.watchWhileMode||V.watchPipMode))return y.return();B.stopPropagation();(Y=(X=_.D((e=R.endpoint)==null?void 0:e.commandMetadata,_.$a))==null?void 0:X.url)&&R.tempData&&!_.M_.isEmpty(R.tempData)&&_.Zg(Y,R.tempData);t={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};b=new sWG(function(){return V.getPlayerElement()},t,{layer:V.getScreenLayer()});
J=function(S){b.processChunk({endpoint:R.endpoint,data:S})};
zJi(V);V.miniplayerFetchRequest=aM2(V,R.endpoint,J);_.en(y,2);return _.U(y,V.miniplayerFetchRequest,4)}if(y.nextAddress!=2)return G=y.yieldResult,dV6(V,G),_.c8(y,0);_.WR(y);_.b3(y)})};
_.p.JSC$16395_onPlaylistDataUpdated=function(){var B=_.Oz().resolve(_.Ky).getPlaylistData();this.hasPlaylistData=!!B;_.D3(this,{externalPlaylistData:B||{}})};
_.p.close=function(B){if(this.isInitialized())if(B){if(!((this.watchWhileMode||this.watchPipMode)&&_.Oz().resolve(_.$B).isOnWatch()||this.shortsPipMode)){var R;(R=this.getPlayerElement())==null||R.stop()}this.deactivate()}else _.cC().closeMiniplayer(this.miniplayerEl)};
_.p.deactivate=function(B){var R=this,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1){if(!R.isInitialized()||!R.active)return t.return();R.setActive(!1);zJi(R);(V=!!B&&Gmn(R,B))&&R.isSingleOptionSurveyActive&&_.oF(R.miniplayerEl,"yt-show-watch-page-survey",[R.isSingleOptionSurveyActive]);return _.U(t,wB4(R),2)}if(t.nextAddress!=3){fM7(R,!1);R.isReadyToResume=!1;R.watchResponse=void 0;R.updateMiniplayerData(void 0);R.shortsPipMode&&(R.shortsPipMode=!1,_.g6().dispatch(wO2(R.shortsPipMode)),ndz(R.pipController),
(e=R.player)==null||e.setInternalSize(NaN,NaN));R.watchPipMode&&(R.watchPipMode=!1,ndz(R.pipController));(X=R.watchWhileMode)&&_.H$U(R,!1);R.removePlayerListeners();var b=_.Oz().resolve(_.Ky);b.removeEventListener("yt-navigate",_.Bc(R,R.onPlaylistNavigate));b.removeEventListener("yt-playlist-data-updated",_.Bc(R,R.JSC$16395_onPlaylistDataUpdated));_.Up().currentEndpoint=null;_.Bz(R.miniplayerEl,"yt-miniplayer-endpoint-changed");R.playerElement=null;s$5();return R.shortsPipMode||R.watchPipMode?t.jumpTo(3):
_.U(t,_.RF(R.miniplayerEl,_.k("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[V,X]),3)}(Y=R.player)==null||Y.setInternalSize(NaN,NaN);R.player=null;_.b3(t)})};
var wB4=function(B){var R;return _.W(function(V){R=_.Oz().resolve(_.$B);return B.shortsPipMode?_.U(V,R.movePlayerToShorts(B.playerElement),0):_.U(V,R.movePlayerToWatch(B.playerElement),0)})};
kL.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16395_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
kL.prototype.setActive=function(B){this.active=B;this.isSingleOptionSurveyActive?_.oF(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.oF(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.g6().dispatch(_.or({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.H$U=function(B,R){B.watchWhileMode=R;_.D3(B,{watchWhile:R})};
fM7=function(B,R){if(!lM2(B))if(B.shortsPipMode||B.watchPipMode){var V;(V=B.player)==null||V.setDocumentPictureInPicture(R)}else{var e;(e=B.player)==null||e.setMinimized(R)}};
lM2=function(B){return B.watchWhileMode&&_.k("kevlar_watch_while_counterfactual")};
_.Sa=function(B){var R;return _.W(function(V){switch(V.nextAddress){case 1:if(!B.isInitialized())return V.return();_.en(V,2);return _.U(V,B.miniplayerFetchRequest,4);case 4:_.c8(V,3);break;case 2:_.WR(V);case 3:B.watchResponse&&B.miniplayerData&&B.miniplayerData.watchEndpoint?(R={url:B.watchResponse.url,endpoint:B.miniplayerData.watchEndpoint,data:B.watchResponse,miniplayer:!0},_.OI(B.miniplayerEl,"yt-navigate-cache",R)):B.miniplayerData&&B.miniplayerData.watchEndpoint&&_.OI(B.miniplayerEl,"yt-navigate",
{endpoint:B.miniplayerData.watchEndpoint}),_.b3(V)}})};
ail=function(B,R,V){var e,X,Y,t;return _.W(function(b){if(b.nextAddress==1){if(Gmn(B,R))return b.return();_.Up().currentEndpoint=R;_.Bz(B.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Bz(B.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Up().isVideoPlaying=!1;e={clientParams:{miniplayer:!0,autoSaveToQueue:!V}};X=new sWG(function(){return B.getPlayerElement()},e,{layer:B.getScreenLayer(),
parentLayer:0},void 0,B.readyToResumeVe);Y=function(J){var G,y,S=Object.assign({},(G=J.playerResponse)==null?void 0:(y=G.playerConfig)==null?void 0:y.playbackStartConfig,{startPaused:!0}),M;V&&((M=J.playerResponse)==null?0:M.playerConfig)&&(J.playerResponse.playerConfig.playbackStartConfig=S);X.processChunk({endpoint:R,data:J})};
zJi(B);B.miniplayerFetchRequest=aM2(B,R,Y);_.en(b,2);return _.U(b,B.miniplayerFetchRequest,4)}if(b.nextAddress!=2)return t=b.yieldResult,dV6(B,t),_.c8(b,0);_.WR(b);_.b3(b)})};
kL.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var zJi=function(B){B.miniplayerFetchRequest&&(B.miniplayerFetchRequest.cancel&&B.miniplayerFetchRequest.cancel("Active request obsolete"),B.miniplayerFetchRequest=null)},aM2=function(B,R,V){var e=_.Vf.instance,X,Y=(X=_.D(R.commandMetadata,_.$a))==null?void 0:X.url,t;
X=!Y||_.k("disable_miniplayer_tempdata")?{}:(t=NUq(Y))!=null?t:{};return FM(e,R,X,window.location.href,"watch",function(b,J){V(J)},function(b){return b!==B.miniplayerFetchRequest})},dV6=function(B,R){var V;
_.W(function(e){if(!R)return e.return();B.watchResponse=R;DVj(B);M46(B);V=_.G1I(R.response,R.playerResponse);if(B.isMiniplayerActive()){R.response&&(B.playerElement.watchNextData=R.response);var X=_.M_.getValueByKeys.apply(_.M_,[R].concat(_.MI(uqR)));_.M_.getValueByKeys.apply(_.M_,[R].concat(_.MI(V_5)))&&X&&_.Oz().resolve(_.Ky).setAutoplayRenderer(X);if(X)if(_.k("kevlar_is_pupi_enabled")){var Y,t,b,J,G,y=((Y=R.response)==null?0:(t=Y.playerOverlays)==null?0:(b=t.playerOverlayRenderer)==null?0:(J=b.autonavToggle)==
null?0:(G=J.autoplaySwitchButtonRenderer)==null?0:G.enabled)?2:1;_.PL.getInstance().setState(y,!1,!1)}else Y=wTo()?2:1,(y=B.player)==null||y.setAutonavState(Y);B.updateMiniplayerData(V);_.kmn(B)}_.b3(e)})},M46=function(B){var R,V,e=(R=B.watchResponse)==null?void 0:(V=R.playerResponse)==null?void 0:V.playabilityStatus,X;
R=e==null?void 0:(X=e.miniplayer)==null?void 0:X.miniplayerRenderer;(R==null?void 0:R.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&R.minimizedEndpoint&&_.VD(B.miniplayerEl,[R.minimizedEndpoint]);_.D3(B,{miniplayerRenderer:R,playabilityStatus:e})};
kL.prototype.openToast=function(B,R){_.D3(this,{toastData:{data:B,label:R}})};
_.D3=function(B,R){var V=B.miniplayerEl,e;for(e in R)V[e]=R[e];(0,B.miniplayerPropSignalMap[1])(R)};
kL.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var B;return this.playerElement?this.playerElement:(B=_.w(this.miniplayerEl).querySelector("#player-container"))==null?void 0:B.firstElementChild};
kL.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var yR7=function(B,R){R=R===void 0?!1:R;var V,e,X,Y,t,b,J;return _.W(function(G){if(G.nextAddress==1){V=navigator.userActivation.isActive||R;if(!V||!B.pictureInPictureSupported())return G.return(!1);e=Tcr(B);X=e.width;Y=e.height;return _.U(G,B.pipController.openWindow({width:X,height:Y}),2)}t=G.yieldResult;b=B.pipController.getWindow();if(!b||!t)return G.return(!1);b.document.body.style.overflow="hidden";J=hmI(b);upm(B.pipController,function(){xVr(B);J()});
return G.return(!0)})},Tcr=function(B){var R=_.Up().shortsPipActivation,V,e;
B=R?.5625:(e=(V=B.player)==null?void 0:V.getVideoAspectRatio())!=null?e:16/9;V=Math.min(window.innerWidth,window.innerHeight)/2;R=R?0:76;return B>1?new _.Yl(V,R+V/B):new _.Yl(V*B,R+V)},xVr=function(B){var R;
_.W(function(V){R=_.Oz().resolve(_.$B);return R.isOnWatch()&&B.watchPipMode||R.isOnShorts()&&B.shortsPipMode?_.U(V,B.deactivate(),0):B.miniplayerToPipMode?_.U(V,Ncz(B),0):B.watchPipMode?_.U(V,_.Sa(B),0):V.jumpTo(0)})};
kL.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.mh.Object.defineProperties(kL.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
kL[na]=[OZn,hyh];var LLm="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(" "),
vqe="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(" "),KLo="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
IMm="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var EqU=null;var Qa4={},q8N=(Qa4.initialized={priority:10,callback:function(B){var R=_.Oz();R.addProvider({provide:Bzh,useClass:P_r});R.addProvider({provide:_.C_7,useFactory:function(){return new RQJ}});
R.addProvider({provide:Nc,useValue:_.vE("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});R.addProvider({provide:WXa,useValue:5184E6});R.addProvider({provide:l5J,useValue:_.TT()});R.addProvider({provide:IKm,useClass:M$2});R.addProvider({provide:Tf,useClass:Tf});R.addProvider({provide:_.B7,useFactory:function(){return x3G.promise}});
R.addProvider({provide:_.v24,useFactory:function(){return _.Lml.promise}});
R.addProvider({provide:mOZ,useValue:function(){var b;return((b=_.Pr())==null?void 0:b.getPlayer())||null}});
var V={};R.addProvider((V.provide=_.sM,V.useFactory=function(b,J){return function(){return EhN(b,J)}},V[na]=[Nc,
WXa],V));V={};R.addProvider((V.provide=_.BO,V.useClass=u_R,V[na]=[Nc,WXa],V));V={};R.addProvider((V.provide=_.DvA,V.useClass=RNi,V[na]=[_.BO],V));R.addProvider({provide:p2,useFactory:_.g6});R.addProvider({provide:Jn,useFactory:_.g6});R.addProvider({provide:qS4,useFactory:_.g6});R.addProvider({provide:VFb,useFactory:_.g6});R.addProvider({provide:_.zk,useFactory:_.g6});R.addProvider({provide:m9,useValue:_.ts});R.addProvider({provide:rhz,useClass:zeo});R.addProvider({provide:gwJ,useClass:riG});R.addProvider({provide:dm,
useClass:dm});R.addProvider({provide:M5,useClass:M5});R.addProvider({provide:fX,useClass:fX});R.addProvider({provide:zq,useClass:zq});R.addProvider({provide:IQ,useClass:IQ});R.addProvider({provide:eK,useClass:eK});R.addProvider({provide:nS,useClass:nS});R.addProvider({provide:c62,useValue:tze});R.addProvider({provide:_.jj,useFactory:_.WK});R.addProvider({provide:gd,useFactory:_.UV});V={};R.addProvider((V.provide=RUA,V.useFactory=function(b){return function(J){var G=G===void 0?{}:G;var y,S,M=(S=_.D((y=
J.endpoint)==null?void 0:y.commandMetadata,_.$a))==null?void 0:S.rootVe;if(M){var f,z;if(y=J.previousCsn||((z=_.D((f=J.endpoint)==null?void 0:f.commandMetadata,jhl))==null?void 0:z.parentCsn)){var T=T===void 0?{}:T;if(y!==_.TE(T.layer)||M!==duo(T.layer))v3A(y,T.cttAuthInfo,T.layer||0),zE_(y,T.layer||0),f=T.layer||0,_.LQ(aGK(f===void 0?0:f),M);G.parentCsn=y}J.endpoint&&y?daR(b,J.endpoint,G):_.py(b,M,void 0,G);var L;((L=J.response)==null?0:L.trackingParams)&&b.graftServerVe(J.response.trackingParams);
var Q;((Q=J.playerResponse)==null?0:Q.trackingParams)&&b.graftServerVe(J.playerResponse.trackingParams);var q;((q=J.reelWatchSequenceResponse)==null?0:q.trackingParams)&&b.graftServerVe(J.reelWatchSequenceResponse.trackingParams)}}},V[na]=[_.jj],V));
V={};R.addProvider((V.provide=AA6,V.useClass=cA2,V[na]=[m9,_.zk],V));V={};R.addProvider((V.provide=OM,V.useClass=OM,V[na]=[_.B7,_.zk],V));V={};R.addProvider((V.provide=CX,V.useClass=CX,V[na]=[Jn,_.oC],V));R.addProvider({provide:_.ZZe,useClass:B42});V={};R.addProvider((V.provide=_.Sf,V.useClass=Cor,V[na]=[_.ZZe],V));R.addProvider({provide:_.HO,useClass:Rs});R.addProvider({provide:HKh,useClass:v5j});R.addProvider({provide:_.M3,useClass:os});V={};R.addProvider((V.provide=_.iw,V.useClass=o54,V[na]=[_.iw],
V));R.addProvider({provide:_.Ph,useClass:qk4});R.addProvider({provide:bw,useClass:bw});R.addProvider({provide:yS,useClass:yS});R.addProvider({provide:zu,useClass:BA});V={};R.addProvider((V.provide=wd,V.useClass=wd,V[na]=[_.HO,zu],V));_.k("web_enable_feedback_endpoint_resolver")&&(V={},R.addProvider((V.provide=Y9,V.useClass=Y9,V[na]=[p2,ey],V)),R.addProvider({provide:ey,useClass:VtT}));_.k("web_enable_feedback_endpoint_resolver_batch_2")&&(V={},R.addProvider((V.provide=tN,V.useClass=tN,V[na]=[p2],
V)),V={},R.addProvider((V.provide=hN,V.useClass=hN,V[na]=[ey],V)));V={};R.addProvider((V.provide=aR,V.useClass=aR,V[na]=[_.M3,zu],V));V={};R.addProvider((V.provide=k9,V.useClass=k9,V[na]=[_.M3],V));V={};R.addProvider((V.provide=dd,V.useClass=dd,V[na]=[_.M1,_.Sf],V));V={};R.addProvider((V.provide=lw,V.useClass=lw,V[na]=[_.M1,_.jj],V));R.addProvider({provide:n2,useClass:n2});V={};R.addProvider((V.provide=rd,V.useClass=rd,V[na]=[p2],V));R.addProvider({provide:Wq,useClass:Wq});V={};R.addProvider((V.provide=
Jj,V.useClass=Jj,V[na]=[p2],V));V={};R.addProvider((V.provide=jg,V.useClass=jg,V[na]=[_.M1,p2],V));V={};R.addProvider((V.provide=Ui,V.useClass=Ui,V[na]=[p2],V));V={};R.addProvider((V.provide=Nb,V.useClass=Nb,V[na]=[p2],V));V={};R.addProvider((V.provide=Dl,V.useClass=Dl,V[na]=[_.Sf],V));V={};R.addProvider((V.provide=RY,V.useClass=RY,V[na]=[_.jj],V));V={};R.addProvider((V.provide=hj,V.useClass=hj,V[na]=[C2],V));V={};R.addProvider((V.provide=tj,V.useClass=tj,V[na]=[C2],V));R.addProvider({provide:Xj,
useClass:Xj});R.addProvider({provide:pS,useClass:pS});R.addProvider({provide:Bq,useClass:Bq});V={};R.addProvider((V.provide=Tu,V.useClass=Tu,V[na]=[_.Sf,_.oC],V));R.addProvider({provide:U1,useClass:U1});V={};R.addProvider((V.provide=f2,V.useClass=f2,V[na]=[_.M1,_.Sf],V));R.addProvider({provide:Sy,useClass:Sy});V={};R.addProvider((V.provide=s1,V.useClass=s1,V[na]=[p2,_.M1,_.iw],V));V={};R.addProvider((V.provide=ce,V.useClass=ce,V[na]=[_.M1,_.oC],V));R.addProvider({provide:Y34,useValue:ns_});R.addProvider({provide:dwZ,
useValue:SlN});R.addProvider({provide:AN,useClass:AN});V={};R.addProvider((V.provide=qc,V.useClass=qc,V[na]=[p2],V));V={};R.addProvider((V.provide=FR,V.useClass=FR,V[na]=[_.Ph,_.oC],V));V={};R.addProvider((V.provide=We,V.useClass=We,V[na]=[_.oC],V));R.addProvider({provide:VS,useFactory:function(){return new VS(_.g6())}});
R.addProvider({provide:aRI,useFactory:_.IG.getInstance});V={};R.addProvider((V.provide=Gu,V.useClass=Gu,V[na]=[Nc,aRI,_.oC],V));R.addProvider({provide:JN,useClass:JN});R.addProvider({provide:uq,useClass:uq});R.addProvider({provide:oR,useClass:oR});R.addProvider({provide:_.Ol,useClass:_.Ol});R.addProvider({provide:Sg,useClass:Sg});V={};R.addProvider((V.provide=IR,V.useClass=IR,V[na]=[Jn],V));V={};R.addProvider((V.provide=E1,V.useClass=E1,V[na]=[_.oC],V));_.k("web_enable_prefetching_videos_on_home")&&
(R.addProvider({provide:$S,useClass:$S}),R.addProvider({provide:Jc,useClass:Jc}));V={};R.addProvider((V.provide=yx,V.useClass=yx,V[na]=[_.oC],V));R.addProvider({provide:Be,useClass:Be});V={};R.addProvider((V.provide=uw,V.useClass=uw,V[na]=[_.M1,_.oC],V));V={};R.addProvider((V.provide=RR,V.useClass=RR,V[na]=[_.oC],V));R.addProvider({provide:ja,useClass:ja});R.addProvider({provide:ve,useClass:ve});V={};R.addProvider((V.provide=L2,V.useClass=L2,V[na]=[Jn,_.oC],V));V={};R.addProvider((V.provide=kF,V.useClass=
kF,V[na]=[Jn,_.oC,_.M1],V));V={};R.addProvider((V.provide=Dj,V.useClass=Dj,V[na]=[_.oC],V));V={};R.addProvider((V.provide=Mb,V.useClass=Mb,V[na]=[_.oC,_.M1],V));V={};R.addProvider((V.provide=QS,V.useClass=QS,V[na]=[_.B7],V));V={};R.addProvider((V.provide=K2,V.useClass=K2,V[na]=[_.B7],V));R.addProvider({provide:$9,useClass:$9});R.addProvider({provide:Pe,useClass:Pe});R.addProvider({provide:bL,useClass:bL});R.addProvider({provide:O1,useClass:O1});R.addProvider({provide:mY,useClass:mY});R.addProvider({provide:He,
useClass:He});R.addProvider({provide:Zl,useClass:Zl});_.k("kevlar_enable_mss_lazy_load")&&R.addProvider({provide:_.sT,useClass:Tei});R.addProvider({provide:_.BD,useClass:ea});R.addProvider({provide:Ct,useFactory:function(){return _.sd.getInstance()}});
R.addProvider({provide:Edr,useFactory:PVS});R.addProvider({provide:C2,useFactory:function(){return _.fy.getInstance()}});
R.addProvider({provide:fCo,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});V={};R.addProvider((V.provide=_.PG,V.useClass=_.PG,V[na]=[_.B7,_.oC,_.jj,Edr,C2,Ct,fCo,m9],V));R.addProvider({provide:_.pI,useClass:ZNJ});R.addProvider({provide:_.J64,useClass:bK2});V={};R.addProvider((V.provide=Mc,V.useClass=Mc,V[na]=[_.J64],V));V={};R.addProvider((V.provide=_.nX,V.useFactory=function(b){return b.upliftCompletionResolver.promise},V[na]=[AA6],V));
V=_.KQ("IS_SHELL_LOAD")?"aa":"eocs";var e=_.KQ("IS_SHELL_LOAD")?3:2;_.Ep().parkOrScheduleJob(function(){s52()},e,V);
_.Ep().parkOrScheduleJob(function(){_.Oz().resolve(OM).start()},2,"eocs");
_.Ep().parkOrScheduleJob(function(){Q5e()},2,"eocs");
_.Ep().parkOrScheduleJob(function(){_.Oz().resolve(CX).start()},2,"eocs");
_.k("kevlar_debug_data_app_registration_ks")||S9_();R.addProvider({provide:_.fD,useValue:new PbJ(B.root)});R.addProvider({provide:AK,useValue:new m9o});R.addProvider({provide:_.ejo,useValue:new RjJ(B.root)});R.addProvider({provide:_.H$,useValue:new Vs4});R.addProvider({provide:_.Xk,useClass:WO});R.addProvider({provide:OZn,useClass:VO});_.k("kevlar_network_sli_killswitch")||R.addProvider({provide:Be6,useValue:YAS});R.addProvider({provide:g5U,useFactory:EfS});_.k("web_bind_fetch")&&(V={},R.addProvider((V.provide=
ZR4,V.useFactory=Q9_,V[na]=[_.uj(g5U)],V)));_.k("web_bind_parse")&&(V={},R.addProvider((V.provide=mTN,V.useFactory=q6o,V[na]=[_.uj(g5U)],V)));_.k("web_bind_window_request")&&(V={},R.addProvider((V.provide=$Ti,V.useFactory=c2q,V[na]=[_.uj(g5U)],V)));V={};R.addProvider((V.provide=wi5,V.useFactory=OlN,V[na]=[_.nX,p2,_.sM],V));V={};R.addProvider((V.provide=dQ2,V.useClass=fS,V[na]=[wi5],V));R.addProvider({provide:r6o,useClass:A6v});R.addProvider({provide:f5_,useClass:z_R});V=[].concat(_.MI(iP));_.k("web_continuation_response_processing")&&
V.push(_.xB);V.push(qp4);_.k("enable_share_panel_navigation_logging_fix_on_web")&&V.push(_.tHa);R.addProvider({provide:EF_,useValue:V});R.addProvider({provide:TDK,useClass:DQl});R.addProvider({provide:Xoi,useClass:Rz4});V={};R.addProvider((V.provide=zmx,V.useClass=UHl,V[na]=[Jn],V));_.dV.addLowPriorityJob(function(){khI()});
V={};R.addProvider((V.provide=pM_,V.useFactory=function(b){return function(J){var G,y=(G=_.D(J.commandMetadata,_.$a))==null?void 0:G.url;if(!y)throw new _.H8("No URL for PBJ Command",J);y=fpA(y,{pbj:"1"});G=sAK(y,{})||{};G=Object.assign({},G,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.vE("STS").toString()});J=_.bN({command:JSON.stringify(J),session_token:_.vE("XSRF_TOKEN")});return b.fetch(y,{method:"POST",headers:G,body:J})}},V[na]=[Xoi],V));
V=[];V.push(R.resolve(f5_));e={};e=(e.client_location=_.IG.getInstance(),e.consistency=_.wuo(),e.entities=R.resolve(gwJ),e.response_received_commands=R.resolve(TDK),e.store=R.resolve(_.DvA),e.tokens=R.resolve(f5_),e);if(_.k("web_shorts_prefetch_service_enabled")){var X=new Vqz(R.resolve(_.BO));e.shorts_prefetch=X}e.adblock_detection=R.resolve(zmx);R.addProvider({provide:_.A$,useClass:_.A$});X=R.resolve(c62);var Y=[];if(_.k("PremiumClientSharedConfig__enable_att_context_processor")||_.k("enable_att_for_transcript_request_on_web_client"))R.addProvider({provide:wjl,
useClass:zjS}),Y.push(R.resolve(wjl));if(_.k("owl_pl_await")){var t={};R.addProvider((t.provide=chr,t.useFactory=function(b){return new Q4e(b)},t[na]=[_.A$],t));
Y.push(R.resolve(chr))}Ug5(X,R.resolve(Xoi),R.resolve(rhz),e,R.resolve(_.BO),V,Y,R.resolve(dQ2),R.resolve(r6o));R.addProvider({provide:_.M1,useValue:_.QK.instance});_.k("start_client_gcf")&&R.addProvider({provide:fE,useValue:w5b()});R.addProvider({provide:rAi,useFactory:function(){return new rAi(_.Oz().resolve(_.A$),_.fy.getInstance())}});
_.Ep().parkOrScheduleJob(function(){gde()},1,"eocs");
V={};R.addProvider((V.provide=uY,V.useClass=uY,V[na]=[_.sM,_.M1],V));R.addProvider({provide:_.p2n,useFactory:_.bu.getInstance});_.Ep().parkOrScheduleJob(function(){_.Oz().resolve(uY).refresh()},0,"eocs");
Yua(tze.watchEndpointMap||{},X.reelWatchEndpointMap||{},B.injector.resolve(_.M1));R.addProvider({provide:aH,useValue:_.Vf.instance});_.k("kevlar_signal_collection_killswitch")||(V={},R.addProvider((V.provide=KI7,V.useClass=KI7,V[na]=[Nc,gd],V)),_.Ep().parkOrScheduleJob(function(){_.Oz().resolve(KI7).record()},1,"eocs"));
_.k("web_debug_handler_registration_killswitch")||_.Ep().parkOrScheduleJob(function(){Gc5("DOWNLOAD_PES",CVd);_.k("offline_client_state_export_ks")||Gc5("OFFLINE_CLIENT_STATE",Z55)},0,"eocs");
_.k("kevlar_prevent_polymer_dynamic_font_load")&&_.Ep().parkOrScheduleJob(function(){var b=[_.u3(yrU),_.u3(S4N)];b=_.h(b);for(var J=b.next();!J.done;J=b.next()){J=J.value;var G=document.createElement("link");_.AR(G,J,"stylesheet");document.head.appendChild(G)}},1,"eocs");
V=B.injector.resolve(_.M1);_.dHv.instance=new _.dHv(V);Kr_(Hzh(new aT5(V)));V={};B.injector.addProvider((V.provide=ue,V.useFactory=function(b){(b=b==null?void 0:b.getCurrentPage())?b=b.visibilityObserver:(EqU||(EqU=TYA()),b=EqU);return b},V[na]=[_.uj(_.$B)],V.skipCache=!0,V));
R.addProvider({provide:_.An,useClass:kL});R.addProvider({provide:tQ,useClass:ONJ});R.addProvider({provide:eSu,useValue:osA});B.injector.addProvider({provide:Xhb,useValue:CbR});R.addProvider({provide:Z4_,useValue:P1o});R.addProvider({provide:_.E5,useValue:hc_});B=R.addProvider;hlr||(hlr=new YoN);B.call(R,{provide:_.tJ6,useValue:hlr});R.addProvider({provide:_.q9,useValue:_.vE("HTML_DIR")==="rtl"?"rtl":"ltr"});R.addProvider({provide:mHS,useClass:Byh});R.addProvider({provide:_.VM,useClass:Xr});_.Oz().addProvider({provide:CBb,
useValue:_.k("enable_web_delhi_icons")?vqe.concat(IMm):LLm.concat(KLo)});R.addProvider({provide:_.YL,useClass:_.YL});R.addProvider({provide:_.Jr4,useValue:new bee});R.addProvider({provide:$vS,useClass:sgo});R.addProvider({provide:oY,useClass:oY});R.addProvider({provide:Vx,useClass:Vx});B={};R.addProvider((B.provide=x9,B.useClass=x9,B[na]=[_.M1,_.Sf],B));R.addProvider({provide:Hq,useClass:Hq});R.addProvider({provide:j22,useClass:VJj});R.addProvider({provide:YF,useClass:YF});R.addProvider({provide:Fd2,
useValue:dP_});R.addProvider({provide:_.wQ,useClass:FQG});_.k("enable_payments_purchase_manager")&&R.addProvider({provide:vwl,useClass:TC4});R.addProvider({provide:Nem,useFactory:function(){return function(b){return _.Uj4(b)}}});
R.addProvider({provide:_.MtS,useClass:ktJ});B={};R.addProvider((B.provide=Gy,B.useClass=Gy,B[na]=[_.MtS],B));R.addProvider({provide:eg,useClass:eg});R.addProvider({provide:hUT,useValue:qaJ});R.addProvider({provide:Mdv,useValue:N4U});R.addProvider({provide:dOu,useClass:Rlr});R.addProvider({provide:USU,useValue:jmU});B={};R.addProvider((B.provide=_.yO,B.useClass=NqN,B[na]=[USU],B));_.k("web_ephemeral_actions")&&(B={},R.addProvider((B.provide=_.tc,B.useClass=hc,B[na]=[_.zk,_.Xk],B)));if(_.k("web_explore_hub_on_hover")||
_.k("web_client_explore_hub_on_hover"))B={},R.addProvider((B.provide=jy,B.useClass=jy,B[na]=[_.M1,Ct],B));R.addProvider({provide:BdZ,useValue:mgp})}},Qa4);var cRi={},ARz=(cRi.initialized={priority:10,callback:function(){if(!omz){Okq();ilA("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Yz(_.JE(ilA,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.k("log_heartbeat_with_lifecycles")){var B={};rt.instance||(rt.instance=new rt);rt.instance.install((B.document_visible={callback:s95,priority:10},B.document_hidden={callback:s95,priority:10},B))}else _.uf(document,"visibilitychange",s95);omz=!0}(B=_.TE())&&B!=="UNDEFINED_CSN"&&fGI(B)}},cRi);var i$6={},sar=(i$6.initialized={callback:function(B){var R=_.kB(232091),V=B.injector.resolve(_.jj);_.YJ(V,R);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?txu()&&_.ty(V,R):(B=B.injector.resolve(Nem)("refresh_detector"))&&(B.get("first_tab_load")?_.ty(V,R):B.set("first_tab_load","1"))}},i$6);var FL2={},rRr=(FL2.initialized={priority:10,callback:yPu},FL2);var gqo={},Z$r=(gqo.initialized={priority:0,callback:function(){var B=new vl4,R="other";_.jY?R="chrome":_.Jo?R="firefox":_.v8?R="safari":gS&&(R="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(V){B.increment(_.GK(),V,R)}).catch(function(){B.increment(_.GK(),!1,R)}):B.increment(_.GK(),!1,R)}},gqo);var mV6={},$Vz=(mV6.rendering={priority:8,callback:SES},mV6);var CDe={},PDj=(CDe.rendering={priority:10,callback:LvN},CDe.rendered={callback:xvq},CDe),nqz={},u5e=(nqz.rendering={callback:LvN},nqz.rendered={callback:xvq},nqz);var O$j=!1,ob4={},BP6=(ob4.initialized={priority:10,callback:function(){O$j||(fhd({didPatch:function(B){B.el&&OsA(B.el,B.props)},
didUnmount:function(B){nLA(B.el)}}),O$j=!0)}},ob4);var RO7=/^\/shorts\/?$/;_.LQ("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(_.k("kevlar_enable_mss")){_.h7d(new jLv);var Vnj=!0,eOe,fs;Vnj=Vnj===void 0?!1:Vnj;eOe=eOe===void 0?!1:eOe;fs=fs===void 0?{}:fs;var XR6=fs.cssRowKey||"",pRe=fs.combinedSignature||"";!XR6&&window&&window._F_cssRowKey&&(XR6=window._F_cssRowKey,!pRe&&window._F_combinedSignature&&(pRe=window._F_combinedSignature));if(XR6&&typeof window._F_installCss!=="function")throw Error("vd");var Y02=fs.loaderClass||_.qp,lu=mNx("base-js"),hOe,tne=Cjd("",lu);hOe=_.Yq(tne);var zJ=new Y02(hOe,XR6,pRe,Vnj,eOe),WC7=
fs.useCors||lu&&lu.hasAttribute("crossorigin"),brz=fs.corsMode||lu&&lu.getAttribute("crossorigin");WC7&&(zJ.useCors_=WC7);brz&&(zJ.corsMode_=brz);fs.urlMaxLength&&(zJ.urlMaxLength=fs.urlMaxLength);fs.fetchPriority&&(zJ.fetchPriority=fs.fetchPriority);var Jqo=z$();Jqo.JSC$7962_loader_=zJ;Jqo.setBatchModeEnabled(!0)}
(function(){var B=document.querySelector("ytd-app");if(!B)throw Error("Fj");B=new WA({root:B,injector:_.Oz()});B.install(ARz);var R={};B.install((R.initialized={priority:10,callback:M5Y},R));_.k("wp_lat_b")&&(R={},B.install((R.initialized={priority:10,callback:function(){vfZ()}},R)));
R={};B.install((R.rendered={priority:0,callback:yU_},R));R={};B.install((R.rendered={priority:0,callback:function(){_.dV.addLowPriorityJob(function(){_.R_l>1&&(WVx(),NtN())},4E4)}},R));
B.install(rro);B.install(sar);B.install(BP6);Giz||(Giz=!0,Object.assign(OJ,{handleError:miK,enableComponentStacksInErrorMessages:!1}),vDK=ap_,knx=$io,qd5=UZ5,IhI=Na_,_.k("ytwiz_enable_debug_component_props")&&rKx());B.install(uUj);B.install(q4e);B.install(sNo);B.install(aK2);B.install(LIN);B.install(P4z);B.install(q8N);_.k("kevlar_enable_mss_lazy_load")&&B.install(rRr);B.install(Ari);B.install(Z$r);if(!_.KQ("IS_SHELL_LOAD")||_.k("kevlar_fetch_initial_data_promise_client")||_.k("sw_nav_preload_pbj")){var V=
_.tu(window.location.href);R=V&&V==="/watch";V=V&&V.match(RO7);R?B.install(u5e):V?B.install($Vz):B.install(PDj)}else B.install(I7m);B.install(Ze4);_.k("web_enable_prefetching_videos_on_home")&&B.install(Rko);_.k("start_client_gcf")&&B.install(OR2);B.install(k_r);(new KO2).increment("INSTALLED");B.install(ove);B.install(L6z);B.transition("initialized");fQp()})();
_.ec=[[["I2xqaHMwZXQ1MXhjNmtpbmQ=","ODJjZnZvZHB2YWx1ZSNuZDZl"],"TlRfS0lORF9TVEFSVCNhZWt2Nmh3c3BmcW9BRF9QTEFDRU1F"]];_.VV=["cyNtM24xdmt2czZ1ajVnbG9iYWxDYWxsYmFjaw==","bm9ybWFsaXR5RGV0ZWN0ZWQjbzE0MnBnNGZwb3dwb25BYg==","cCM2ZXNmc3Y1OGl5M2ZvbkFkU2tp","NWtyYXdfcGxheWVyX3Jlc3BvbnNlI2h4ajB0bG1xbGc=","U2xvdHMjZjB5cTcyeTN2bWVpYWQ="];_.sp="cyNtM24xdmt2czZ1ajVnbG9iYWxDYWxsYmFjaw== bm9ybWFsaXR5RGV0ZWN0ZWQjbzE0MnBnNGZwb3dwb25BYg== cCM2ZXNmc3Y1OGl5M2ZvbkFkU2tp NWtyYXdfcGxheWVyX3Jlc3BvbnNlI2h4ajB0bG1xbGc= d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3V4YWJhNzhzbHh6aA== ZiNvMGJvNm5xNDViMWRhYl9zYV9l U2xvdHMjZjB5cTcyeTN2bWVpYWQ=".split(" ");
_._ModuleManager_initialize=function(B,R){if(!_.fd){if(!_.ly)return;_.h7d(_.ly())}_.fd.setAllModuleInfoString(B,R)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.xL=function(B,R,V,e,X){var Y={};R&&(Y[R]=V);e?Y.errorType=e:X&&(Y.errorReason=X);_.dn(B,Y);_.wn()};
_.Ls=function(B){var R=_.Ep();return _.WZl(R,B,1)};
_.Sm({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 B=this.query;B&&(this.full||B[0]==="("||(B="("+B+")"),this._mq=window.matchMedia(B),this._add(),this.queryHandler(this._mq))},
queryHandler:function(B){this._setQueryMatches(B.matches)}});var DI7;var fXm;var lXe=function(){};
_.p=lXe.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(){};
lXe=_.Sm({is:"tp-yt-paper-radio-button",_template:function(){if(fXm!==void 0)return fXm;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;DI7===void 0&&(DI7=document.createElement("template"));var e=DI7;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return fXm=B},
behaviors:[_.ut5],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(){_.gB(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var B=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),R=Math.floor(3*B);R%2!==B%2&&R++;this.updateStyles({"--paper-radio-button-ink-size":R+"px"})}})}});var zO4;var aXN;_.Sm({_template:function(){if(aXN!==void 0)return aXN;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;zO4===void 0&&(zO4=document.createElement("template"));var e=zO4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return aXN=B},
is:"tp-yt-paper-radio-group",behaviors:[_.J3h],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(B){var R=this._valueToItem(B);if(!R||!R.hasAttribute("disabled")){if(this.selected){R=this._valueToItem(this.selected);if(this.selected==B)if(this.allowEmptySelection)B="";else{R&&(R.checked=!0);return}R&&
(R.checked=!1)}_.KJ.select.apply(this,[B]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(B){this._focusPrevious();B.preventDefault();this._activateFocusedItem()},
_onDownKey:function(B){this._focusNext();B.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(B){_.bD4._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(B){_.bD4._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.KJ._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.T0._resetTabindices.apply(this,arguments);this.items.forEach(function(B){B.removeAttribute("aria-selected")},this)}});var dI4;_.aO("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var vA=function(){return _.c.apply(this,arguments)||this};
_.l(vA,_.c);_.p=vA.prototype;_.p.computeHasPrimaryIcon=function(B){return!(!B.icon&&!B.thumbnail)};
_.p.computeHasSecondary=function(B){return!(!B.secondaryIcon&&!B.secondaryNotificationText)};
_.p.computeHideSecondaryString=function(B){return!_.k("disable_hide_empty_secondary_string")&&!B.secondaryNotificationText};
_.p.computeCompactLinkStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.p.computeHasFitHeight=function(B){return B==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.p.isActiveEndpoint=function(B){return(B=this.get("commandMetadata.webCommandMetadata.url",B))?_.tu(window.location.href)!=="/account_transfer_channel"&&_.tu(window.location.href)!=="/gaia_link"&&_.tu(window.location.href)!=="/channel_switcher"||B!=="/account"?_.tu(window.location.href)===B:!0:!1};
_.p.onTap=function(){var B;((B=this.data)==null?0:B.serviceEndpoint)&&_.VD(this.hostElement,[this.data.serviceEndpoint])};
vA.prototype.onTap=vA.prototype.onTap;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],vA.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Z("design:type",Boolean)],vA.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Z("design:type",String)],vA.prototype,"compactLinkStyle",void 0);
_.r([_.E({computed:"computeIcon_(data.icon)"}),_.Z("design:type",Object)],vA.prototype,"icon",void 0);_.r([_.E({computed:"computeIcon_(data.secondaryIcon)"}),_.Z("design:type",Object)],vA.prototype,"secondaryIcon",void 0);_.r([_.E({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],vA.prototype,"hasSecondary",void 0);_.r([_.E({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],vA.prototype,"hideSecondaryString",void 0);
_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vA.prototype,"onTap",null);vA=_.r([_.A({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],vA);
_.F(vA,"ytd-compact-link-renderer",function(){if(dI4!==void 0)return dI4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return dI4=B},{mode:1});var wRz;_.aO("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Ks=function(){var B=_.c.apply(this,arguments)||this;B.role="link";B.tabindex="0";B.actionMap=_.k("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 B};
_.l(Ks,_.c);_.p=Ks.prototype;_.p.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Lk()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.p.getCurrentTheme=function(){return _.v$()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Lk()};
_.p.onThemeSelected=function(B,R){var V=B||R?B:_.xA(),e=(V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.znZ(_.tu(window.location.href));_.Nd(0,165,B);_.Nd(0,174,R);this.prefs.save();e&&_.oF(this.hostElement,"yt-dark-mode-toggled-action",[V]);_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.onTap=function(){this.data.serviceEndpoint&&_.VD(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)};
Ks.prototype.onTap=Ks.prototype.onTap;Ks.prototype.dataChanged=Ks.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ks.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.CC),_.Z("design:type",Object)],Ks.prototype,"paperItemBehaviors",void 0);_.r([_.E(),_.Z("design:type",Object)],Ks.prototype,"data",void 0);_.r([_.E({value:function(){return _.UV()}}),
_.Z("design:type",_.ok)],Ks.prototype,"prefs",void 0);_.r([_.E(),_.Z("design:type",Object)],Ks.prototype,"label",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ks.prototype,"role",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ks.prototype,"tabindex",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ks.prototype,"dataChanged",null);
_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ks.prototype,"onTap",null);Ks=_.r([_.A({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Ks);
_.F(Ks,"ytd-toggle-theme-compact-link-renderer",function(){if(wRz!==void 0)return wRz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wRz=B},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.C4=function(B){return function(R,V){var e=B||V.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(R,V,{get:function(){var X;return this.$?this.$[e]:(X=_.pJ(this))==null?void 0:X.querySelector("#"+e)},
enumerable:!0,configurable:!0})}};_.P4=function(B){B=B===void 0?!1:B;_.Hn.call(this);this.pubSub_=new _.Ju(B);_.t4(this,this.pubSub_)};
_.eY(_.P4,_.Hn);_.P4.prototype.subscribe=function(B,R,V){return this.isDisposed()?0:this.pubSub_.subscribe(B,R,V)};
_.P4.prototype.unsubscribe=function(B,R,V){return this.isDisposed()?!1:this.pubSub_.unsubscribe(B,R,V)};
_.P4.prototype.unsubscribeByKey=function(B){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(B)};
_.P4.prototype.publish=function(B,R){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var JlN=function(){_.xL("ypcRedeemFlowStarted")},W3=function(B){_.xL("ypcRedeemFlowFailed",void 0,void 0,void 0,B)},jQi=function(B,R,V){R&&V&&(B.videos.forEach(function(e){e.videoId===R&&(e.itemId=V)}),B.recommendedVideos.forEach(function(e){e.videoId===R&&(e.itemId=V)}))};var U5o;var Nme;/*

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
*/
_.Sm({_template:function(){if(Nme!==void 0)return Nme;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;U5o===void 0&&(U5o=document.createElement("template"));var e=U5o;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return Nme=B},
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(B,R){var V=this._resolveSrc(B);V!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",B===""||R?this._setLoading(!1):(this._resolvedSrc=V,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 B=this.$.sizedImgDiv.style,R=this.$.placeholder.style;B.backgroundSize=R.backgroundSize=this.sizing;B.backgroundPosition=R.backgroundPosition=this.sizing?this.position:"";B.backgroundRepeat=R.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(B){B=_.V6(B,this.$.baseURIAnchor.href);B.length>=2&&B[0]==="/"&&B[1]!=="/"&&(B=(location.origin||location.protocol+"//"+location.host)+B);return B}});var Gqz;var ylr;_.Sm({_template:function(){if(ylr!==void 0)return ylr;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Gqz===void 0&&(Gqz=document.createElement("template"));var e=Gqz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return ylr=B},
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(B){return B?"false":"true"},
_headingChanged:function(B){var R=this.getAttribute("heading"),V=this.getAttribute("aria-label");typeof V==="string"&&V!==R||this.setAttribute("aria-label",B)},
_computeHeadingClass:function(B){return B?" over-image":""},
_computeAnimated:function(B){return B}});var SM6=new _.P("addRendererToItemSectionAction");var HXm;var bm=function(){return _.c.apply(this,arguments)||this};
_.l(bm,_.c);bm.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bm.prototype,"rendererBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],bm.prototype,"dismissibleItemBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bm.prototype,"rendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bm.prototype,"data",void 0);bm=_.r([_.A({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],bm);
_.F(bm,"ytd-comment-history-entry-renderer",function(){if(HXm!==void 0)return HXm;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return HXm=B},{mode:1});var M1i;_.aO("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.aO("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var J2=function(){return _.c.apply(this,arguments)||this};
_.l(J2,_.c);_.p=J2.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(B){if(B.keyCode===13)this.onTap()};
_.p.onTap=function(){this.data.recordClickEndpoint&&_.Oz().resolve(_.oC).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var B=this.data.navigationEndpoint;B&&_.D(B,_.xi)&&_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}})};
_.p.readChanged=function(){var B;_.nk(this.hostElement,"unread",!((B=this.data)==null?0:B.read))};
_.p.dataChanged=function(){this.data&&_.nk(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.p.computeThumbnailSize=function(){var B;return((B=this.data)==null?0:B.highPriorityNotification)?32:48};
_.p.getEndpointURL=function(B){return B&&!_.D(B,_.xi)?this.componentBehavior.computeHref_(B):null};
_.p.getEndpointData=function(B){return B&&!_.D(B,_.xi)?B:null};
J2.prototype.computeThumbnailSize=J2.prototype.computeThumbnailSize;J2.prototype.dataChanged=J2.prototype.dataChanged;J2.prototype.readChanged=J2.prototype.readChanged;J2.prototype.onKeyUp=J2.prototype.onKeyUp;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],J2.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],J2.prototype,"data",void 0);_.r([_.E({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Z("design:type",Number)],J2.prototype,"thumbnailSize",void 0);_.r([_.R_("keyup"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],J2.prototype,"onKeyUp",null);
_.r([_.XX("data.read"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J2.prototype,"readChanged",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J2.prototype,"dataChanged",null);_.r([_.XX("data.highPriorityNotification"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J2.prototype,"computeThumbnailSize",null);
J2=_.r([_.A({is:"ytd-notification-renderer",disableElementRegistration:!0})],J2);
_.F(J2,"ytd-notification-renderer",function(){if(M1i!==void 0)return M1i;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return M1i=B},{mode:1});var kqz;var ji=function(){return _.c.apply(this,arguments)||this};
_.l(ji,_.c);ji.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"}}}};
ji.prototype.computeActionButtonClass=function(B){return!B.actionButtons||B.actionButtons.length<=1?"single-button":B.description?"vertical-buttons":"horizontal-buttons"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ji.prototype,"data",void 0);ji=_.r([_.A({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],ji);
_.F(ji,"ytd-playlist-show-metadata-renderer",function(){if(kqz!==void 0)return kqz;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return kqz=B},{mode:1});var D52;_.aO("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var U6=function(){return _.c.apply(this,arguments)||this};
_.l(U6,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],U6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],U6.prototype,"data",void 0);U6=_.r([_.A({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],U6);
_.F(U6,"ytd-purchase-item-renderer",function(){if(D52!==void 0)return D52;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return D52=B},{mode:1});var fUi;var lUe={};lUe.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(B){if(B)return B.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(B){if(B==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.aO("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Ni=function(){return _.c.apply(this,arguments)||this};
_.l(Ni,_.c);Ni.prototype.onYtNavigate=function(B){var R=this.openPopupBehavior.getNavigationEndpointPopupAction(B.detail.endpoint);R&&(B.stopPropagation(),this.openPopupBehavior.openPopup(R))};
Ni.prototype.onYtNavigate=Ni.prototype.onYtNavigate;_.r([_.v(lUe.YtSimpleTextSectionBehavior),_.Z("design:type",Object)],Ni.prototype,"ytSimpleTextSectionBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],Ni.prototype,"openPopupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ni.prototype,"data",void 0);
_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ni.prototype,"onYtNavigate",null);Ni=_.r([_.A({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Ni);
_.F(Ni,"ytd-simple-text-section-renderer",function(){if(fUi!==void 0)return fUi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return fUi=B},{mode:1});var zy7;_.aO("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var GO=function(){return _.c.apply(this,arguments)||this};
_.l(GO,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],GO.prototype,"data",void 0);GO=_.r([_.A({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],GO);
_.F(GO,"ytd-unlimited-page-feature-info-renderer",function(){if(zy7!==void 0)return zy7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return zy7=B},{mode:1});var aUz;var d54;var yo=function(){return _.c.apply(this,arguments)||this};
_.l(yo,_.c);yo.prototype.dataChanged=function(){if(this.data){var B=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);B&&(B=_.$T(B,screen.width),this.hostElement.style.backgroundImage="url("+B+")")}};
yo.prototype.dataChanged=yo.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yo.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yo.prototype,"dataChanged",null);yo=_.r([_.A({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],yo);
_.F(yo,"ytd-post-redemption-section-renderer",function(){if(d54!==void 0)return d54;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return d54=B},{mode:1});var wG7;var Si=function(){return _.c.apply(this,arguments)||this};
_.l(Si,_.c);Si.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Si.prototype,"data",void 0);Si=_.r([_.A({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Si);
_.F(Si,"ytd-ypc-post-redemption-renderer",function(){if(wG7!==void 0)return wG7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wG7=B},{mode:1});_.aO("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var H3=function(){var B=_.c.apply(this,arguments)||this;B.MIN_CODE_LENGTH=12;B.MAX_CODE_LENGTH=24;return B};
_.l(H3,_.c);_.p=H3.prototype;_.p.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.p.created=function(){this.riskService=new _.NWp;this.loadPaymentThenable=_.y9Z(_.vE("YPC_MB_URL"))};
_.p.ready=function(){var B=this;this.code.addEventListener("keypress",function(R){B.onCodeInputKeypress(R)})};
_.p.dataChanged=function(){var B=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(R){R=_.h(R);for(var V=R.next();!V.done;V=R.next())V=V.value,V.type==="attributes"&&V.attributeName==="dark"&&B.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 B=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+B+")")}};
_.p.computeRedeemButton=function(B){(B=this.get("redeemButton.buttonRenderer",B))&&(B=Object.assign({},B,{serviceEndpoint:void 0}));return B};
_.p.onRedeemButtonTap=function(B){B.stopPropagation();JlN();this.redeemCode()};
_.p.redeemCode=function(){var B=this;this.isLoading=!0;var R=this.riskService.init();_.DG([R,this.loadPaymentThenable]).then(function(){var V=B.data.redeemButton.buttonRenderer.serviceEndpoint,e=_.GCd(),X=payments.business.integration.ClientTokenFactory.createClientToken(_.D(V,_.hi4).countryCode,e);e={c:B.code.value.trim(),rd:window.btoa(e),ctk:X};V&&_.Oz().resolve(_.oC).resolveCommand(V,{form:Object.assign({},e,{element:B.hostElement})})},function(){B.showGenericError();
W3("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.IP(Error("Tl"))})};
_.p.onYtServiceRequestCompleted=function(B){B.stopPropagation();this.isLoading=!1;var R,V;this.errorMessage=(R=B.detail)==null?void 0:(V=R.data)==null?void 0:V.errorMessage;var e,X;this.postRedemptionRenderer=(e=B.detail)==null?void 0:(X=e.data)==null?void 0:X.renderer;var Y,t;if(B=(Y=B.detail)==null?void 0:(t=Y.data)==null?void 0:t.redirectEndpoint)this.isLoading=!0,_.OI(this.hostElement,"yt-navigate",{endpoint:B});this.errorMessage?W3("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
B)&&_.xL("ypcRedeemFlowSucceeded")};
_.p.onYtServiceRequestError=function(B){B.stopPropagation();this.isLoading=!1;if(B=this.get("detail.error.message",B))this.errorMessage=_.s$(B);W3("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.p.onInvokeInstrumentManagerActionCompleted=function(B){B.stopPropagation();this.redeemCode()};
_.p.onInvokeInstrumentManagerActionError=function(B){B.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",B)){case "instrumentManagerLoadError":this.showGenericError();W3("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();W3("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.xL("ypcRedeemFlowCancelled")}};
_.p.onInput=function(){var B=this;_.LJ(this,"onInput",function(){var R=B.code.value.trim();B.redeemButtonDisabled=R.length<B.MIN_CODE_LENGTH||R.length>B.MAX_CODE_LENGTH},200)};
_.p.onCodeInputKeypress=function(B){B.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(JlN(),this.redeemCode())};
_.p.computeImageUrl=function(B){return B?_.$T(B.thumbnails,600):null};
_.p.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
H3.prototype.onInvokeInstrumentManagerActionError=H3.prototype.onInvokeInstrumentManagerActionError;H3.prototype.onInvokeInstrumentManagerActionCompleted=H3.prototype.onInvokeInstrumentManagerActionCompleted;H3.prototype.onYtServiceRequestError=H3.prototype.onYtServiceRequestError;H3.prototype.onYtServiceRequestCompleted=H3.prototype.onYtServiceRequestCompleted;H3.prototype.dataChanged=H3.prototype.dataChanged;
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],H3.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],H3.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",Boolean)],H3.prototype,"redeemButtonDisabled",void 0);
_.r([_.E(),_.Z("design:type",Object)],H3.prototype,"errorMessage",void 0);_.r([_.E(),_.Z("design:type",Object)],H3.prototype,"postRedemptionRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],H3.prototype,"observer",void 0);_.r([_.Yp("#code"),_.Z("design:type",HTMLInputElement)],H3.prototype,"code",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],H3.prototype,"dataChanged",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],H3.prototype,"onYtServiceRequestCompleted",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],H3.prototype,"onYtServiceRequestError",null);
_.r([_.R_("yt-invoke-instrument-manager-action-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],H3.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.r([_.R_("yt-invoke-instrument-manager-action-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],H3.prototype,"onInvokeInstrumentManagerActionError",null);H3=_.r([_.A({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],H3);
_.F(H3,"ytd-redeem-code-renderer",function(){if(aUz!==void 0)return aUz;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return aUz=B},{mode:1});var Tme;_.aO("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Mi=function(){var B=_.c.apply(this,arguments)||this;B.businessEmailDisplayState="HIDE_SECTION";return B};
_.l(Mi,_.c);_.p=Mi.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":(_.IL("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.p.onYtServiceRequestCompleted=function(B){var R;if((R=B.detail.data)==null?0:R.businessEmail)this.businessEmail=B.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var V;if((V=B.detail.data)==null?0:V.errorMessage)this.businessEmailErrorMessage=B.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.p.computeEmailHref=function(B){return"mailto:"+B};
_.p.computeSafeUrl=function(B){if(B)return _.ym(B)};
_.p.onBusinessEmailCaptchaSubmit=function(){var B;(B=this.data)!=null&&B.onBusinessEmailRevealClickCommand&&(B=this.JSC$19007_captchaTextarea.value)&&(B={recaptcha_response_token:B,channel_id:this.data.channelId},_.Oz().resolve(_.oC).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},B,{element:this.hostElement})}))};
_.p.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.mh.Object.defineProperties(Mi.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 B,R;return!((B=this.data)==null||!B.primaryLinks)&&!((R=this.data)==null?0:R.links)&&this.data.primaryLinks.every(function(V){return V.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null||!B.primaryLinks)&&!((R=this.data)==null?0:R.links)&&!this.shouldShowNewLinks}}});
Mi.prototype.onYtServiceRequestCompleted=Mi.prototype.onYtServiceRequestCompleted;Mi.prototype.dataChanged=Mi.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Mi.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Yp("#g-recaptcha-response"),_.Z("design:type",HTMLTextAreaElement)],Mi.prototype,"JSC$19007_captchaTextarea",void 0);_.r([_.E(),_.Z("design:type",Object)],Mi.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],Mi.prototype,"businessEmailDisplayState",void 0);_.r([_.E(),_.Z("design:type",String)],Mi.prototype,"businessEmail",void 0);_.r([_.E(),_.Z("design:type",String)],Mi.prototype,"businessEmailErrorMessage",void 0);
_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Mi.prototype,"hideDetailsSection",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mi.prototype,"dataChanged",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Mi.prototype,"shouldShowNewLinks",null);_.r([_.K("data","shouldShowLinks"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Mi.prototype,"shouldShowLegacyLinks",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Mi.prototype,"onYtServiceRequestCompleted",null);Mi=_.r([_.A({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Mi);
_.F(Mi,"ytd-channel-about-metadata-renderer",function(){if(Tme!==void 0)return Tme;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Tme=B},{mode:1});var x5e;_.aO("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var kf=function(){return _.c.apply(this,arguments)||this};
_.l(kf,_.c);kf.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],kf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],kf.prototype,"data",void 0);kf=_.r([_.A({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],kf);
_.F(kf,"ytd-channel-featured-content-renderer",function(){if(x5e!==void 0)return x5e;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return x5e=B},{mode:1});var LWm;_.aO("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var DQ=function(){var B=_.c.apply(this,arguments)||this;B.roundContainer=!0;B.amsterdamEnabled=_.k("enable_desktop_amsterdam_info_panels");return B};
_.l(DQ,_.c);_.p=DQ.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 B=this.data;B.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!B.style&&B.image&&B.image.thumbnails.length&&(B=B.image.thumbnails[0],this.imageWidth=B.width||0,this.imageHeight=B.height||0)};
_.p.computeSource=function(B){return B.secondarySource?_.FF(B.secondarySource):_.FF(B.source)};
_.p.computeClarifyStyle=function(B){return B?B.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.p.isLargeStyle=function(B){return B==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.p.computeBackgroundStyle=function(B){return B?B.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.p.computeHasActionButton=function(B){return!!B.actionButton};
_.p.computeHasBottomSection=function(B){return!!B.ctaHasBottomSection};
_.p.computeIsSourceMissing=function(B){return B.ctaHasBottomSection===!1?!0:B&&this.computeSource(B)?!1:!0};
_.p.computeSecondaryEndpoint=function(B){return B.secondaryEndpoint||B.endpoint};
DQ.prototype.dataChanged=DQ.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],DQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Number)],DQ.prototype,"imageWidth",void 0);_.r([_.E(),_.Z("design:type",Number)],DQ.prototype,"imageHeight",void 0);
_.r([_.E({computed:"computeSecondaryEndpoint(data)"}),_.Z("design:type",Object)],DQ.prototype,"secondaryEndpoint",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Z("design:type",Boolean)],DQ.prototype,"hasActionButton",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Z("design:type",Boolean)],DQ.prototype,"hasBottomSection",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Z("design:type",Boolean)],DQ.prototype,"missingSource",void 0);_.r([_.E({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],DQ.prototype,"icon",void 0);_.r([_.E({computed:"computeIcon_(data.secondaryIcon)"}),_.Z("design:type",String)],DQ.prototype,"secondaryIcon",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Z("design:type",String)],DQ.prototype,"clarifyStyle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Z("design:type",String)],DQ.prototype,"backgroundStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DQ.prototype,"roundContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],DQ.prototype,"amsterdamEnabled",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DQ.prototype,"dataChanged",null);
DQ=_.r([_.A({is:"ytd-clarification-renderer",disableElementRegistration:!0})],DQ);
_.F(DQ,"ytd-clarification-renderer",function(){if(LWm!==void 0)return LWm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return LWm=B},{mode:1});var vSe;var KW2;var fl=function(){var B=_.c.apply(this,arguments)||this;B.amsterdamEnabled=_.k("enable_desktop_amsterdam_info_panels");return B};
_.l(fl,_.c);_.p=fl.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(B){return B?"yt-icons:"+B.toLowerCase():null};
_.p.computeUseContacts=function(B){return!!B.contacts&&B.contacts.length>0};
_.p.computePhoneContact=function(B){var R,V;return(R=B.contacts)==null?void 0:(V=R.find(function(e){var X;return(e==null?void 0:(X=e.icon)==null?void 0:X.iconType)==="PHONE"}))==null?void 0:V.actionText};
_.p.computeSmsContact=function(B){var R,V;return(R=B.contacts)==null?void 0:(V=R.find(function(e){var X;return(e==null?void 0:(X=e.icon)==null?void 0:X.iconType)==="SMS"}))==null?void 0:V.actionText};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fl.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],fl.prototype,"amsterdamEnabled",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Z("design:type",Boolean)],fl.prototype,"useContacts",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Z("design:type",String)],fl.prototype,"phoneContact",void 0);fl=_.r([_.A({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],fl);
_.F(fl,"ytd-single-action-emergency-support-renderer",function(){if(KW2!==void 0)return KW2;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return KW2=B},{mode:1});_.aO("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var lm=function(){var B=_.c.apply(this,arguments)||this;B.roundedContainer=!0;B.amsterdamEnabled=_.k("enable_desktop_amsterdam_info_panels");return B};
_.l(lm,_.c);lm.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"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lm.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lm.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lm.prototype,"amsterdamEnabled",void 0);
lm=_.r([_.A({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],lm);
_.F(lm,"ytd-emergency-onebox-renderer",function(){if(vSe!==void 0)return vSe;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return vSe=B},{mode:1});var IU4;_.aO("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var zO=function(){return _.c.apply(this,arguments)||this};
_.l(zO,_.c);zO.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zO.prototype,"data",void 0);zO=_.r([_.A({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],zO);
_.F(zO,"ytd-exploratory-results-renderer",function(){if(IU4!==void 0)return IU4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return IU4=B},{mode:1});var ESn;_.aO("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var a9=function(){var B=_.c.apply(this,arguments)||this;B.messageData=null;return B};
_.l(a9,_.c);_.p=a9.prototype;_.p.onServiceRequestCompleted=function(B,R){B=R.actions||[];R=0;for(var V=B.length;R<V;R++){var e=B[R],X=void 0,Y=void 0;if((X=_.D(e,_.ki))==null?0:(Y=X.item)==null?0:Y.messageRenderer)this.messageData=_.D(e,_.ki).item.messageRenderer}};
_.p.dataChanged=function(){var B=this.data;this.hostElement.hidden=!1;_.nk(this.hostElement,"is-channel",B&&!B.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.p.computeThumbnailWidth=function(B){return B?126:56};
_.p.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.p.onSubmitTap=function(){var B=this.data,R=this.selectedResponseIndex;B!==void 0&&R!==void 0&&(B=B.responses[R],B.responseData&&_.Oz().resolve(_.oC).resolveCommand(B.responseData,{form:{element:this.hostElement}}))};
_.p.onDismissTap=function(){this.hostElement.hidden=!0;var B=this.data;B!==void 0&&B.dismissalEndpoint&&_.Oz().resolve(_.oC).resolveCommand(B.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.updateSelectedResponseIndexFromBinding=function(B){this.selectedResponseIndex=B.detail.value};
a9.prototype.onSelectedResponseIndexChange=a9.prototype.onSelectedResponseIndexChange;a9.prototype.dataChanged=a9.prototype.dataChanged;a9.prototype.onServiceRequestCompleted=a9.prototype.onServiceRequestCompleted;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],a9.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],a9.prototype,"messageData",void 0);
_.r([_.E(),_.Z("design:type",Number)],a9.prototype,"selectedResponseIndex",void 0);_.r([_.Yp("#submit-button"),_.Z("design:type",HTMLButtonElement)],a9.prototype,"submitButton",void 0);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],a9.prototype,"onServiceRequestCompleted",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a9.prototype,"dataChanged",null);
_.r([_.XX("selectedResponseIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a9.prototype,"onSelectedResponseIndexChange",null);a9=_.r([_.A({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],a9);
_.F(a9,"ytd-feedback-elicitation-single-question-renderer",function(){if(ESn!==void 0)return ESn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ESn=B},{mode:1});var QQr;var ds=function(){return _.c.apply(this,arguments)||this};
_.l(ds,_.c);ds.prototype.computeThumbnailWidth=function(B){return B?602:428};
ds.prototype.updateWideFromBinding=function(B){this.wide=B.detail.value};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ds.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],ds.prototype,"wide",void 0);ds=_.r([_.A({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],ds);
_.F(ds,"ytd-newspaper-hero-video-renderer",function(){if(QQr!==void 0)return QQr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return QQr=B},{mode:1});var qMz;var ws=function(){return _.c.apply(this,arguments)||this};
_.l(ws,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ws.prototype,"rendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ws.prototype,"data",void 0);ws=_.r([_.A({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],ws);
_.F(ws,"ytd-newspaper-mini-video-renderer",function(){if(qMz!==void 0)return qMz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return qMz=B},{mode:1});var cln;_.aO("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var TO=function(){return _.c.apply(this,arguments)||this};
_.l(TO,_.c);TO.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"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],TO.prototype,"data",void 0);TO=_.r([_.A({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],TO);
_.F(TO,"ytd-newspaper-renderer",function(){if(cln!==void 0)return cln;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return cln=B},{mode:1});var Alo;_.aO("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var xf=function(){var B=_.c.apply(this,arguments)||this;B.isSegment=!1;B.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};B.nextContinuation={continuationType:"playlistVideoListContinuation"};return B};
_.l(xf,_.c);_.p=xf.prototype;_.p.attached=function(){_.Oz();var B;(B=_.Oz().resolve(_.uj(_.iw)))!=null&&(B.playlistVideoListElement=this.hostElement)};
_.p.detached=function(){var B;(B=_.Oz().resolve(_.uj(_.iw)))!=null&&(B.playlistVideoListElement=void 0);B=_.Oz().resolve(_.uj(_.Ph));_.k("web_enable_voting_animation")&&B&&(B.parentElem=void 0,B.videos=[],B.continuationsPresent=!1,B.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 B=_.Oz().resolve(_.uj(_.Ph));if(_.k("web_enable_voting_animation")&&this.data&&B){var R=_.w(this.hostElement).querySelector("#contents");R&&(B.parentElem=R);B.addVideos(this.data.contents)}_.lWR(this.ytReorderableBehavior)};
_.p.onRendererstamperFinished=function(){this.canReorder&&_.zBR(this.ytReorderableBehavior,_.w(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.p.onPlaylistReloading=function(){this.isReloading=!0};
_.p.onUpdateSetVideoId=function(B){if(B.detail&&this.data&&this.data.contents){var R=B.detail;B=this.data.contents.findIndex(function(X){var Y;return((Y=X.playlistVideoRenderer)==null?void 0:Y.videoId)===R.videoId});
if(!(B<0)&&R.setVideoId&&(this.set("data.contents."+B+".playlistVideoRenderer.setVideoId",R.setVideoId),_.k("web_enable_voting_animation"))){var V;if(B=_.D((V=this.data.contents[B].playlistVideoRenderer)==null?void 0:V.engagementBar,_.iBI)){var e;(e=B.actions)==null||e.forEach(function(X){if(X=_.D(X,_.sMd))X.itemId=R.setVideoId})}(V=_.Oz().resolve(_.uj(_.Ph)))&&jQi(V,R.videoId,R.setVideoId)}}};
_.p.computeContentsClass=function(B){return B?"reloading":""};
_.p.computeIsSortable=function(B,R){return B&&R>0&&!this.isSegment&&!_.k("shorts_in_playlists_web")};
_.p.computeIsEditable=function(B){return B};
_.p.computeCanReorder=function(B){return B};
_.p.handlePlaylistRemoveVideosAction=function(B){if(this.get("playlistRemoveVideosAction.setVideoIds",B)&&this.data&&this.data.contents){B=_.D(B,_.Dm4).setVideoIds;for(var R=this.data.contents.length-1;R>=0;){var V=this.data.contents[R].playlistVideoRenderer;V&&V.setVideoId&&B.includes(V.setVideoId)&&this.splice("data.contents",R,1);R--}_.oF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.p.updateIndices=function(){if(this.data&&this.data.contents)for(var B=0;B<this.data.contents.length;B++)this.set("data.contents."+B+".playlistVideoRenderer.index",_.s$(String(B+1)))};
_.p.handleDrop=function(B){B=B.currDragItem;var R=_.rx(B.parentNode.childNodes,B),V=this.data.contents.splice(Number(_.FF(B.data.index))-1,1)[0];this.data.contents.splice(R,0,V);R=R?this.get("contents."+(R-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();B=this.buildReorderServiceEndpoint(B.data.setVideoId,R);this.ytComponentBehavior.resolveCommand(B)};
_.p.buildReorderServiceEndpoint=function(B,R){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",B),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",R),this.data.onReorderEndpoint):null};
_.p.handleUpdatePlaylistAction=function(B){var R;(B=_.D((R=_.D(B,_.f1b))==null?void 0:R.updatedRenderer,_.Afb))&&this.canReorder!==B.canReorder&&this.set("data.canReorder",B.canReorder);B&&B.contents&&(this.set("data.contents",B.contents),this.isReloading=!1);B&&B.continuations&&this.set("data.continuations",B.continuations)};
_.p.handleAddRendererToItemSectionAction=function(B){var R,V=(R=_.D(B,SM6))==null?void 0:R.renderer,e;V&&((e=_.D(B,SM6))==null?void 0:e.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,V),B=_.Oz().resolve(_.uj(_.Ph)),_.k("web_enable_voting_animation")&&B&&(V&&(R=_.AYo(V))&&B.recommendedVideos.push({itemId:R,videoId:_.FrN(V),voteCount:_.rYx(V),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.p.isVotingEnabledOnPlaylist=function(B){if(!B)return!1;B=_.h(B);for(B=B.next();!B.done;B=B.next()){var R=void 0;return!!_.D((R=B.value.playlistVideoRenderer)==null?void 0:R.engagementBar,_.iBI)}return!1};
_.p.onAppendContinuationItemsActionFinished=function(){var B;this.isVotingEnabledOnPlaylist((B=this.data)==null?void 0:B.contents)&&(this.updateIndices(),B=_.Oz().resolve(_.uj(_.Ph)),_.k("web_enable_voting_animation")&&B&&this.data&&B.addVideos(this.data.contents))};
_.p.updateVideoData=function(B){if(B.detail&&this.data&&this.data.contents){var R=B.detail;B=R.toIdx;var V=R.itemId,e=R.newVoteCount,X=R.voteStatus;R=R.hideItem;var Y,t,b=(Y=this.data)==null?void 0:(t=Y.contents)==null?void 0:t.findIndex(function(S){return _.AYo(S)===V});
if(!(b<0)){Y=this.data.contents[b];var J;if((J=Y.playlistVideoRenderer)==null?0:J.voteCount)Y.playlistVideoRenderer.voteCount=e;var G;if(J=_.D((G=Y.playlistVideoRenderer)==null?void 0:G.engagementBar,_.iBI)){var y;(y=J.actions)==null||y.forEach(function(S){(S=_.D(S,_.sMd))&&S.initialState&&(S.initialState.votes=e,S.initialState.status=X)})}this.data.contents.splice(b,1);
R||this.data.contents.splice(B,0,Y);this.updateIndices()}}};
xf.prototype.updateVideoData=xf.prototype.updateVideoData;xf.prototype.onAppendContinuationItemsActionFinished=xf.prototype.onAppendContinuationItemsActionFinished;xf.prototype.onUpdateSetVideoId=xf.prototype.onUpdateSetVideoId;xf.prototype.onPlaylistReloading=xf.prototype.onPlaylistReloading;xf.prototype.onRendererstamperFinished=xf.prototype.onRendererstamperFinished;xf.prototype.dataChanged=xf.prototype.dataChanged;
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],xf.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],xf.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.vM.YtNextContinuationBehavior),_.Z("design:type",Object)],xf.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.v(_.aW4),_.Z("design:type",Object)],xf.prototype,"ytReorderableBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],xf.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],xf.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],xf.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],xf.prototype,"isReloading",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],xf.prototype,"isSegment",void 0);_.r([_.E({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Z("design:type",Boolean)],xf.prototype,"isSortable",void 0);_.r([_.E({computed:"computeIsEditable(data.isEditable)"}),_.Z("design:type",Boolean)],xf.prototype,"isEditable",void 0);_.r([_.E({computed:"computeCanReorder(data.canReorder)"}),_.Z("design:type",Boolean)],xf.prototype,"canReorder",void 0);
_.r([_.E({value:101}),_.Z("design:type",Number)],xf.prototype,"scrollMargin",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xf.prototype,"dataChanged",null);_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xf.prototype,"onRendererstamperFinished",null);
_.r([_.R_("yt-playlist-reloading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xf.prototype,"onPlaylistReloading",null);_.r([_.R_("yt-update-set-video-id"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],xf.prototype,"onUpdateSetVideoId",null);
_.r([_.R_("yt-append-continuation-items-action-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xf.prototype,"onAppendContinuationItemsActionFinished",null);_.r([_.R_("yt-update-video-data-voting-animation"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],xf.prototype,"updateVideoData",null);xf=_.r([_.A({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],xf);
_.F(xf,"ytd-playlist-video-list-renderer",function(){if(Alo!==void 0)return Alo;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Alo=B},{mode:_.up("kevlar_poly_si_batch_j047")?1:2});var iX6;var Ll=function(){return _.c.apply(this,arguments)||this};
_.l(Ll,_.c);Ll.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"}}}}};
Ll.prototype.onTextWrapperTap=function(B){var R=this.data&&this.data.navigationEndpoint;R&&!_.g1(_.Az(B),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.OI(this.hostElement,"yt-navigate",{endpoint:R})};
Ll.prototype.dataChanged=function(){var B=this.get("data.offerButton.buttonRenderer.serviceEndpoint");B&&B.commandMetadata&&_.D(B.commandMetadata,_.df)&&_.D(B.commandMetadata,_.df).fireAutomatically&&_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}})};
Ll.prototype.dataChanged=Ll.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Qi),_.Z("design:type",Object)],Ll.prototype,"ytdLockupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ll.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],Ll.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.V_("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],Ll.prototype,"biggerThumbsStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ll.prototype,"leftAligned",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ll.prototype,"dataChanged",null);Ll=_.r([_.A({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Ll);
_.F(Ll,"ytd-movie-renderer",function(){if(iX6!==void 0)return iX6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return iX6=B},{mode:1});var sQz;var v3=function(){var B=_.c.apply(this,arguments)||this;B.rounded=!0;B.pageAttachedTo=void 0;B.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return B};
_.l(v3,_.c);v3.prototype.attached=function(){this.pageAttachedTo=_.Oz().resolve(_.$B).getCurrentPage();_.OI(this.hostElement,"yt-player-attached",this.player)};
v3.prototype.detached=function(){var B;if((B=this.pageAttachedTo)==null?0:B.hostElement)_.OI(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
v3.prototype.dataChanged=function(){var B;if((B=this.data)==null?0:B.videoId)B={video_id:this.data.videoId,autoplay:!0},!_.k("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Oz().resolve(_.An).isMiniplayerActive()&&(B.pause_at_start=!0,B.autoplay=!1),this.player.loadVideoWithPlayerVars(B)};
v3.prototype.handleSignalActionPausePlayer=function(){_.nD().pause()};
v3.prototype.dataChanged=v3.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],v3.prototype,"data",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],v3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],v3.prototype,"rounded",void 0);_.r([_.Yp("#player"),_.Z("design:type",Object)],v3.prototype,"player",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],v3.prototype,"dataChanged",null);v3=_.r([_.A({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],v3);
_.F(v3,"ytd-channel-video-player-renderer",function(){if(sQz!==void 0)return sQz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return sQz=B},{mode:1});var FWo;var rlm;var gS4;var Kl=function(){var B=_.c.apply(this,arguments)||this;B.playing=!1;B.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Y5(B);B.active=!1;return B};
_.l(Kl,_.c);_.p=Kl.prototype;_.p.detached=function(){this.stop()};
_.p.play=function(){var B=this,R,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return B.active=!0,R=B.get("data.inlinePlaybackEndpoint.watchEndpoint"),V=R.videoId||B.data.videoId,e=R.startTimeSeconds||0,X=R.playerParams||null,_.k("kevlar_player_update_killswitch")?_.U(t,B.playerEl.update({args:{video_id:V,startSeconds:e,player_params:X}}),2):(B.playerEl.loadVideoWithPlayerVars({video_id:V,startSeconds:e,player_params:X,autoplay:!0}),t.jumpTo(2));if(t.nextAddress!=4)return _.U(t,B.playerEl.getPlayerPromise(),
4);Y=t.yieldResult;Y.unloadModule("annotations_module");Y.addEventListener("onStateChange",function(b){B.onPlayerStateChange(b)});
_.b3(t)})};
_.p.onPlayerStateChange=function(B){if(this.active)switch(this.playing=B===1,B){case 1:_.OI(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.OI(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.p.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.p.resize=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,B.playerEl.getPlayerPromise(),2);R=V.yieldResult;R.setSize(NaN,NaN);_.b3(V)})};
_.r([_.E(),_.Z("design:type",Object)],Kl.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Kl.prototype,"playing",void 0);_.r([_.E(),_.Z("design:type",Object)],Kl.prototype,"playerId",void 0);_.r([_.Yp("#player"),_.Z("design:type",Object)],Kl.prototype,"playerEl",void 0);Kl=_.r([_.A({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Kl);
_.F(Kl,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(gS4!==void 0)return gS4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return gS4=B},{mode:1});var ZXU;var m5n;var I9=function(){var B=_.c.apply(this,arguments)||this;B.width=0;return B};
_.l(I9,_.c);_.p=I9.prototype;_.p.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Bc(this,this.onEnded));this.mp4El.addEventListener("error",_.Bc(this,this.onError))};
_.p.detached=function(){this.videoEl.removeEventListener("ended",_.Bc(this,this.onEnded));this.mp4El.removeEventListener("error",_.Bc(this,this.onError))};
_.p.play=function(){var B=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var R=this.videoEl.play();R?R.then(function(){B.handleVideoStartPlaying()}).catch(function(){_.OI(B.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.OI(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 B;if((B=this.data)==null?0:B.thumbnailPlaceholder)B=_.$T(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+B+")";this.stop();this.autoplay&&this.play()};
_.p.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.p.onEnded=function(){this.stop();_.OI(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.p.onError=function(){_.OI(this.hostElement,"yt-video-thumbnail-error")};
_.p.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.p.getVideoThumbnail=function(B){if(B&&B.length)return B[0]};
I9.prototype.dataChanged=I9.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],I9.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],I9.prototype,"animatePlaceholderOnEntrance",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],I9.prototype,"autoplay",void 0);_.r([_.E({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Z("design:type",Object)],I9.prototype,"videoThumbnail",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],I9.prototype,"loop",void 0);_.r([_.E(),_.Z("design:type",Boolean)],I9.prototype,"isVideoPlaying",void 0);_.r([_.E(),_.Z("design:type",Object)],I9.prototype,"width",void 0);_.r([_.Yp("#mp4"),_.Z("design:type",HTMLElement)],I9.prototype,"mp4El",void 0);_.r([_.Yp("#placeholder"),_.Z("design:type",HTMLElement)],I9.prototype,"placeholderEl",void 0);_.r([_.Yp("#video"),_.Z("design:type",HTMLVideoElement)],I9.prototype,"videoEl",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],I9.prototype,"dataChanged",null);I9=_.r([_.fJ({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],I9);
_.F(I9,"yt-video-as-thumbnail-details",function(){if(m5n===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;ZXU===void 0&&(ZXU=document.createElement("template"));var e=ZXU;V.call(R,e.content.cloneNode(!0),B.content.firstChild);m5n=B}B=m5n;return B},{mode:2});var E6=function(){var B=_.c.apply(this,arguments)||this;B.disableGridStateAware=!1;B.animationEnabled=_.k("enable_web_ketchup_hero_animation");B.transitioningOut=!1;B.narrow=!1;B.narrower=!1;B.isCarouselInFeed=!1;B.videoTimeoutJobId=0;B.panelTimeoutJobId=0;B.panelTimeoutJobStartMs=0;B.actionMap={"yt-window-resized":"onWindowResized"};return B};
_.l(E6,_.c);_.p=E6.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 B;this.player&&((B=this.data)==null?0:B.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(B){return B&&B.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.p.playVideo=function(){var B;this.video&&((B=this.data)==null?0:B.videoThumbnail)&&this.video.play();var R;this.player&&((R=this.data)==null?0:R.inlinePlaybackRenderer)&&this.player.play()};
_.p.stopVideo=function(){var B;this.video&&((B=this.data)==null?0:B.videoThumbnail)&&this.video.stop();var R;this.player&&((R=this.data)==null?0:R.inlinePlaybackRenderer)&&this.player.stop()};
_.p.transitionOut=function(){var B=this;this.transitioningOut=!0;return new Promise(function(R){var V=function(){_.w(B.hostElement).querySelector("#action-button").removeEventListener("animationend",V);_.dV.cancelJob(e);R();B.transitioningOut=!1};
var e=_.kD(_.dV,V,1E3);_.w(B.hostElement).querySelector("#action-button").addEventListener("animationend",V);B.player&&(B.player.playing=!1)})};
_.p.computeMetadataOrder=function(B){return B&&B.metadataOrder&&B.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?B.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.p.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.p.computeAvatarSize=function(B){return B&&B.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.p.onContentClick=function(B){if(!_.g1(_.Az(B),this.hostElement,["A".toString(),"BUTTON".toString()])){var R;if((R=this.data)==null?0:R.navigationEndpoint){var V;this.componentBehavior.resolveCommand((V=this.data)==null?void 0:V.navigationEndpoint)}}};
_.p.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.p.setBackgroundImage=function(B){if(B=this.getBackgroundImageUrl(B))_.w(this.hostElement).querySelector("#hero").style.backgroundImage="url("+B+")"};
_.p.setScrimLayer=function(B){var R=this.getScrimLayerColorStops(B);B=((B==null?void 0:B.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(B=180);_.vE("HTML_DIR")==="rtl"&&(B=-B);R&&(_.w(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+B+"deg, "+R+")")};
_.p.isNarrower=function(){return this.hostElement.clientWidth<E6.NARROW_VERSION_SIZE};
_.p.getScrimLayerColorStops=function(){var B,R=(B=this.data)==null?void 0:B.scrimColorValues;if(!R)return null;if(R.length===1)return B=_.zF(R[0]),B+" 0%, "+B+" 100%";if(R.length===3){var V=[0,72,98];return R.map(function(e,X){return _.zF(e)+" "+V[X]+"%"}).join(",")}return null};
_.p.getBackgroundImageUrl=function(B){return B&&B.largeFormFactorBackgroundThumbnail?_.$T((B.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||B.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.p.onPlaying=function(){this.startVideoTimeout()};
_.p.onEnded=function(){this.rotate()};
_.p.startPanelTimeout=function(){var B=this;if(!this.panelTimeoutJobId){var R=this.get("data.minPanelDisplayDurationMs");R&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.kD(_.dV,function(){B.rotate()},R))}};
_.p.startVideoTimeout=function(){var B=this;if(!this.videoTimeoutJobId){_.dV.cancelJob(this.panelTimeoutJobId);var R=Date.now()-this.panelTimeoutJobStartMs;R=Math.max(0,this.get("data.minPanelDisplayDurationMs")-R);R=Math.max(this.get("data.minVideoPlayDurationMs")||0,R);this.videoTimeoutJobId=_.kD(_.dV,function(){B.rotate()},R)}};
_.p.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.dV.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.dV.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.p.rotate=function(){this.clearTimeouts();_.OI(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.mh.Object.defineProperties(E6.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.w(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.w(this.hostElement).querySelector("#video")}}});
_.mh.Object.defineProperties(E6,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
E6.prototype.onEnded=E6.prototype.onEnded;E6.prototype.onPlaying=E6.prototype.onPlaying;E6.prototype.dataChanged=E6.prototype.dataChanged;_.r([_.v(_.LL),_.Z("design:type",Object)],E6.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],E6.prototype,"componentBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],E6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.v(_.fR5),_.Z("design:type",Object)],E6.prototype,"ytBooleanLogicBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],E6.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],E6.prototype,"disableGridStateAware",void 0);_.r([_.E(),_.Z("design:type",Object)],E6.prototype,"data",void 0);_.r([_.E({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Z("design:type",String)],E6.prototype,"panelLayout",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],E6.prototype,"animationEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],E6.prototype,"transitioningOut",void 0);
_.r([_.E({computed:"computeMetadataOrder(data)"}),_.Z("design:type",Boolean)],E6.prototype,"metadataOrder",void 0);_.r([_.E({computed:"computeByline(data)"}),_.Z("design:type",Object)],E6.prototype,"byline",void 0);_.r([_.E({computed:"computeAvatarSize(data)"}),_.Z("design:type",Number)],E6.prototype,"avatarSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],E6.prototype,"narrow",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],E6.prototype,"narrower",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],E6.prototype,"layoutStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],E6.prototype,"isCarouselInFeed",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E6.prototype,"dataChanged",null);_.r([_.R_("yt-default-promo-panel-renderer-playing"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E6.prototype,"onPlaying",null);
_.r([_.R_("yt-default-promo-panel-renderer-ended"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],E6.prototype,"onEnded",null);E6=_.r([_.A({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],E6);
_.F(E6,"ytd-default-promo-panel-renderer",function(){if(rlm!==void 0)return rlm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return rlm=B},{mode:1});_.aO("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Qo=function(){var B=_.c.apply(this,arguments)||this;B.narrower=!1;B.dotMenuVisible=!1;B.paginationThumbnailsVisible=!1;B.active=!0;B.disableGridStateAware=!1;B.actionMap={"yt-window-resized":"onWindowResized"};return B};
_.l(Qo,_.c);_.p=Qo.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",_.Bc(this,this.onPageTypeChange));this.currentPageSubtype=_.W$(location.pathname);this.onWindowResized()};
_.p.detached=function(){this.jobId&&_.dV.cancelJob(this.jobId);this.updateSizeJobId&&_.dV.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Bc(this,this.onPageTypeChange))};
_.p.onPageTypeChange=function(B){this.active=B.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(B){B>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.dV.cancelJob(this.jobId);var R=this.getCurrentPanelElement();R&&R.stopVideo();this.currentItemIndex=B%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(R||(R=this.getCurrentPanelElement()),R.playVideo()):this.startRotationJob()};
_.p.scrollThumbnails=function(B){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var R=this.getCurrentPaginationElement();if(R){var V=_.w(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?V.style.transform="translateX(0)":(R=R.offsetWidth+8,V.style.transform="translateX(-"+R*(B-Math.ceil(Math.floor(this.overlay.offsetWidth/R)/2)+1)+"px)")}}};
_.p.onDataChanged=function(){var B=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.db(_.dV,function(){B.getCurrentPanelElement().updateSize();B.updateSize()}))};
_.p.getCurrentPanelElement=function(){return _.w(_.w(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.p.getCurrentPaginationElement=function(){return _.w(_.w(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.p.getNavigationClass=function(B,R){return B===R?"selected":""};
_.p.getNavigationDurationStyle=function(B){return"animation-duration:"+(this.get("data.carouselItems."+B+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.p.onNavigationTap=function(B){var R=this,V=B.model.index;V!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){R.setCarouselItem(V)}),this.autorotateActive=!1)};
_.p.onVideoThumbnailEnded=function(){var B=this;if(this.shouldRotate()){var R=this.getCurrentPaginationElement();R&&(R.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){R.classList.remove("finished");B.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 B=this;_.dV.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.dV.addLowPriorityJob(function(){B.getCurrentPanelElement().transitionOut().then(function(){B.setNextCarouselItem()})},this.rotationTimeout))};
_.p.computeDotMenuVisible=function(B,R){return!!B&&!!B.carouselItems&&B.carouselItems.length>1&&!B.paginationThumbnails||!!R};
_.p.computePaginationThumbnailsVisible=function(B,R){var V,e;return((e=B==null?void 0:(V=B.paginationThumbnails)==null?void 0:V.length)!=null?e:0)>1&&!R};
_.p.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.p.computePaginatorAlignment=function(B){return(B==null?void 0:B.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(B){return(B!=null?B:0)<E6.NARROW_VERSION_SIZE};
Qo.prototype.activeChanged=Qo.prototype.activeChanged;Qo.prototype.onVideoNotPlaying=Qo.prototype.onVideoNotPlaying;Qo.prototype.onVideoThumbnailError=Qo.prototype.onVideoThumbnailError;Qo.prototype.onVideoThumbnailEnded=Qo.prototype.onVideoThumbnailEnded;Qo.prototype.onDataChanged=Qo.prototype.onDataChanged;_.r([_.v(_.LL),_.Z("design:type",Object)],Qo.prototype,"ytdGridStateAwareBehavior",void 0);
_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Qo.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Qo.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Qo.prototype,"currentItem",void 0);
_.r([_.E(),_.Z("design:type",Number)],Qo.prototype,"currentItemIndex",void 0);_.r([_.E(),_.Z("design:type",Number)],Qo.prototype,"rotationTimeout",void 0);_.r([_.E(),_.Z("design:type",Number)],Qo.prototype,"loopCount",void 0);_.r([_.E({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Z("design:type",String)],Qo.prototype,"paginatorAlignment",void 0);_.r([_.E(),_.Z("design:type",Number)],Qo.prototype,"jobId",void 0);
_.r([_.E(),_.Z("design:type",Number)],Qo.prototype,"updateSizeJobId",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Qo.prototype,"isCarouselInFeed",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Qo.prototype,"narrower",void 0);_.r([_.E({computed:"computeDotMenuVisible(data, narrower)"}),_.Z("design:type",Object)],Qo.prototype,"dotMenuVisible",void 0);
_.r([_.E({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Z("design:type",Object)],Qo.prototype,"paginationThumbnailsVisible",void 0);_.r([_.E({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Z("design:type",String)],Qo.prototype,"layoutType",void 0);_.r([_.E({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Qo.prototype,"autorotateActive",void 0);_.r([_.E(),_.Z("design:type",Object)],Qo.prototype,"active",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Qo.prototype,"disableGridStateAware",void 0);_.r([_.Yp("#overlay"),_.Z("design:type",HTMLElement)],Qo.prototype,"overlay",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qo.prototype,"onDataChanged",null);
_.r([_.R_("yt-video-thumbnail-ended"),_.R_("yt-default-promo-panel-renderer-rotate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qo.prototype,"onVideoThumbnailEnded",null);_.r([_.R_("yt-video-thumbnail-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qo.prototype,"onVideoThumbnailError",null);
_.r([_.R_("yt-video-thumbnail-not-playing"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qo.prototype,"onVideoNotPlaying",null);_.r([_.bp("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qo.prototype,"activeChanged",null);Qo=_.r([_.A({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Qo);
_.F(Qo,"ytd-carousel-item-renderer",function(){if(FWo!==void 0)return FWo;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return FWo=B},{mode:2});var $5e;var CYr;var PY2;var nSe;var qi=function(){var B=_.c.apply(this,arguments)||this;B.originalQuery=null;B.originalEndpoint=null;return B};
_.l(qi,_.c);qi.prototype.computeShowOriginalQueryWithoutEndpoint_=function(B,R){return!(!B||R)};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],qi.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qi.prototype,"correctedText",void 0);_.r([_.E(),_.Z("design:type",Object)],qi.prototype,"correctedQuery",void 0);_.r([_.E(),_.Z("design:type",Object)],qi.prototype,"correctedEndpoint",void 0);_.r([_.E(),_.Z("design:type",Object)],qi.prototype,"originalText",void 0);_.r([_.E(),_.Z("design:type",Object)],qi.prototype,"originalQuery",void 0);
_.r([_.E(),_.Z("design:type",Object)],qi.prototype,"originalEndpoint",void 0);_.r([_.E({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Z("design:type",Boolean)],qi.prototype,"showOriginalQueryWithoutEndpoint",void 0);qi=_.r([_.fJ({is:"yt-search-query-correction",disableElementRegistration:!0})],qi);
_.F(qi,"yt-search-query-correction",function(){if(nSe===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;PY2===void 0&&(PY2=document.createElement("template"));var e=PY2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);nSe=B}B=nSe;return B},{mode:2});_.aO("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var c3=function(){return _.c.apply(this,arguments)||this};
_.l(c3,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],c3.prototype,"data",void 0);c3=_.r([_.fJ({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],c3);
_.F(c3,"yt-did-you-mean-renderer",function(){if(CYr===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;$5e===void 0&&($5e=document.createElement("template"));var e=$5e;V.call(R,e.content.cloneNode(!0),B.content.firstChild);CYr=B}B=CYr;return B},{mode:2});var uz4;var OXm;_.aO("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var A2=function(){return _.c.apply(this,arguments)||this};
_.l(A2,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],A2.prototype,"data",void 0);A2=_.r([_.fJ({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],A2);
_.F(A2,"yt-including-results-for-renderer",function(){if(OXm===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;uz4===void 0&&(uz4=document.createElement("template"));var e=uz4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);OXm=B}B=OXm;return B},{mode:2});var oLN;var BwN;_.aO("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var im=function(){return _.c.apply(this,arguments)||this};
_.l(im,_.c);im.prototype.computeExtraClasses_=function(B,R){var V="";B&&(V+=" "+B.toLowerCase().replace(/_/g,"-"));R&&(V+=" "+R.toLowerCase().replace(/_/g,"-"));return V};
im.prototype.computeUrlImg_=function(){var B=this.data;B.image&&(_.w(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.$T(B.image.thumbnails,Number.MAX_VALUE)+")")};
im.prototype.computeUrlImg_=im.prototype.computeUrlImg_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],im.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],im.prototype,"computeUrlImg_",null);im=_.r([_.fJ({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],im);
_.F(im,"yt-music-pass-feature-info-renderer",function(){if(BwN===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;oLN===void 0&&(oLN=document.createElement("template"));var e=oLN;V.call(R,e.content.cloneNode(!0),B.content.firstChild);BwN=B}B=BwN;return B},{mode:2});var RSN;var Va4;_.aO("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var s6=function(){return _.c.apply(this,arguments)||this};
_.l(s6,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],s6.prototype,"data",void 0);s6=_.r([_.fJ({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],s6);
_.F(s6,"yt-no-results-found-showing-results-for-renderer",function(){if(Va4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;RSN===void 0&&(RSN=document.createElement("template"));var e=RSN;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Va4=B}B=Va4;return B},{mode:2});var eSn;var XAz;_.aO("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Fu=function(){return _.c.apply(this,arguments)||this};
_.l(Fu,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Fu.prototype,"data",void 0);Fu=_.r([_.fJ({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Fu);
_.F(Fu,"yt-results-without-quotes-renderer",function(){if(XAz===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;eSn===void 0&&(eSn=document.createElement("template"));var e=eSn;V.call(R,e.content.cloneNode(!0),B.content.firstChild);XAz=B}B=XAz;return B},{mode:2});var pAe;var Yfr;_.aO("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var rs=function(){return _.c.apply(this,arguments)||this};
_.l(rs,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],rs.prototype,"data",void 0);rs=_.r([_.fJ({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],rs);
_.F(rs,"yt-search-no-results-renderer",function(){if(Yfr===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;pAe===void 0&&(pAe=document.createElement("template"));var e=pAe;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Yfr=B}B=Yfr;return B},{mode:2});var hS7;var taN;_.aO("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var gs=function(){return _.c.apply(this,arguments)||this};
_.l(gs,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],gs.prototype,"data",void 0);gs=_.r([_.fJ({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],gs);
_.F(gs,"yt-showing-results-for-renderer",function(){if(taN===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;hS7===void 0&&(hS7=document.createElement("template"));var e=hS7;V.call(R,e.content.cloneNode(!0),B.content.firstChild);taN=B}B=taN;return B},{mode:2});var WF6;var bse;var Jci;var jso;var ZQ=function(){var B=_.c.apply(this,arguments)||this;B.answerExpanded=!1;return B};
_.l(ZQ,_.c);ZQ.prototype.toggleAnswer_=function(B){var R=_.ii(B);R&&R.classList.contains("yt-simple-endpoint")||(B.preventDefault(),B.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
ZQ.prototype.toggleAnswer_=ZQ.prototype.toggleAnswer_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ZQ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ZQ.prototype,"answerExpanded",void 0);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ZQ.prototype,"toggleAnswer_",null);
ZQ=_.r([_.fJ({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],ZQ);
_.F(ZQ,"yt-generic-faq-question-renderer",function(){if(jso===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Jci===void 0&&(Jci=document.createElement("template"));var e=Jci;V.call(R,e.content.cloneNode(!0),B.content.firstChild);jso=B}B=jso;return B},{mode:2});_.aO("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var m0=function(){return _.c.apply(this,arguments)||this};
_.l(m0,_.c);m0.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],m0.prototype,"data",void 0);m0=_.r([_.fJ({is:"yt-faq-section-renderer",disableElementRegistration:!0})],m0);
_.F(m0,"yt-faq-section-renderer",function(){if(bse===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;WF6===void 0&&(WF6=document.createElement("template"));var e=WF6;V.call(R,e.content.cloneNode(!0),B.content.firstChild);bse=B}B=bse;return B},{mode:2});var UJj;var Nwn;_.aO("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var $f=function(){return _.c.apply(this,arguments)||this};
_.l($f,_.c);
$f.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"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$f.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$f.prototype,"data",void 0);$f=_.r([_.fJ({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],$f);
_.F($f,"yt-offer-item-expanded-renderer",function(){if(Nwn===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;UJj===void 0&&(UJj=document.createElement("template"));var e=UJj;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Nwn=B}B=Nwn;return B},{mode:2});var GJj;var ycm;_.aO("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Cl=function(){return _.c.apply(this,arguments)||this};
_.l(Cl,_.c);
Cl.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"}}}}};
Cl.prototype.computeFullWidthMode=function(B){return!(!B||!B.fullWidthMode)};
Cl.prototype.computeBorderlessMode=function(B){return!(!B||!B.borderlessMode)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Cl.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Z("design:type",Boolean)],Cl.prototype,"fullWidthMode",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Z("design:type",Boolean)],Cl.prototype,"borderlessMode",void 0);Cl=_.r([_.fJ({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Cl);
_.F(Cl,"yt-offer-item-renderer",function(){if(ycm===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;GJj===void 0&&(GJj=document.createElement("template"));var e=GJj;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ycm=B}B=ycm;return B},{mode:2});var Sfn;var HsU;_.aO("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var P3=function(){return _.c.apply(this,arguments)||this};
_.l(P3,_.c);P3.prototype.computeAriaLevel_=function(B){return this.getLevelID_(B)};
P3.prototype.getLevelID_=function(B){return(B=B.match(/[0-9]+$/))&&B.length==1?B[0]:"1"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],P3.prototype,"data",void 0);_.r([_.E({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Z("design:type",String)],P3.prototype,"ariaLevel",void 0);_.r([_.E({value:"heading",reflectToAttribute:!0}),_.Z("design:type",String)],P3.prototype,"role",void 0);
_.r([_.E({value:-1,reflectToAttribute:!0}),_.Z("design:type",Number)],P3.prototype,"tabindex",void 0);P3=_.r([_.fJ({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],P3);
_.F(P3,"yt-subscription-product-header-renderer",function(){if(HsU===void 0){var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Sfn===void 0&&(Sfn=document.createElement("template"));var e=Sfn;V.call(R,e.content.cloneNode(!0),B.content.firstChild);HsU=B}B=HsU;return B},{mode:2});var Ma4;var kJj;_.aO("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var nl=function(){return _.c.apply(this,arguments)||this};
_.l(nl,_.c);nl.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:_.d1("menuRenderer"),events:!0}}};
nl.prototype.onStampFinished_=function(){_.w(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
nl.prototype.onStampFinished_=nl.prototype.onStampFinished_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],nl.prototype,"data",void 0);_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nl.prototype,"onStampFinished_",null);
nl=_.r([_.fJ({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],nl);
_.F(nl,"yt-subscription-product-renderer",function(){if(kJj===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Ma4===void 0&&(Ma4=document.createElement("template"));var e=Ma4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);kJj=B}B=kJj;return B},{mode:2});var DJ4;var f34;_.aO("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var um=function(){return _.c.apply(this,arguments)||this};
_.l(um,_.c);um.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
um.prototype.imageScrimColorValuesChanged_=function(){var B,R=(B=this.data)==null?void 0:B.imageScrimColorValues;_.w(this.hostElement).querySelector("#scrim").style.backgroundColor=R?_.zF(R[0]):"transparent"};
um.prototype.imageScrimColorValuesChanged_=um.prototype.imageScrimColorValuesChanged_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],um.prototype,"data",void 0);
_.r([_.XX("data.imageScrimColorValues"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],um.prototype,"imageScrimColorValuesChanged_",null);um=_.r([_.fJ({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],um);
_.F(um,"yt-subscription-product-upsell-offer-renderer",function(){if(f34===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;DJ4===void 0&&(DJ4=document.createElement("template"));var e=DJ4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);f34=B}B=f34;return B},{mode:2});var l3m;var zSm;var a34;var dJ2;var wAj;var Twj;var O6=function(){return _.c.apply(this,arguments)||this};
_.l(O6,_.c);O6.prototype.onYtServiceRequestError_=function(B){_.VN(this.hostElement,B.detail.error.message)};
O6.prototype.onYtServiceRequestError_=O6.prototype.onYtServiceRequestError_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],O6.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],O6.prototype,"collapsible",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],O6.prototype,"isManageRed",void 0);
_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],O6.prototype,"onYtServiceRequestError_",null);O6=_.r([_.fJ({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],O6);
_.F(O6,"yt-single-ypc-offer-renderer",function(){if(Twj===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;wAj===void 0&&(wAj=document.createElement("template"));var e=wAj;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Twj=B}B=Twj;return B},{mode:2});var ow=function(){return _.c.apply(this,arguments)||this};
_.l(ow,_.c);ow.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ow.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],ow.prototype,"isManageRed",void 0);ow=_.r([_.fJ({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],ow);
_.F(ow,"yt-single-ypc-offer-list-renderer",function(){if(dJ2===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;a34===void 0&&(a34=document.createElement("template"));var e=a34;V.call(R,e.content.cloneNode(!0),B.content.firstChild);dJ2=B}B=dJ2;return B},{mode:2});var xJi;var LFj;_.aO("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Bt=function(){return _.c.apply(this,arguments)||this};
_.l(Bt,_.c);Bt.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Bt.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Bt.prototype,"isManageRed",void 0);Bt=_.r([_.fJ({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Bt);
_.F(Bt,"yt-ypc-offers-list-renderer",function(){if(LFj===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;xJi===void 0&&(xJi=document.createElement("template"));var e=xJi;V.call(R,e.content.cloneNode(!0),B.content.firstChild);LFj=B}B=LFj;return B},{mode:2});_.aO("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Rw=function(){return _.c.apply(this,arguments)||this};
_.l(Rw,_.c);
Rw.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}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Rw.prototype,"data",void 0);Rw=_.r([_.fJ({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Rw);
_.F(Rw,"yt-unlimited-manage-subscription-page-renderer",function(){if(zSm===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;l3m===void 0&&(l3m=document.createElement("template"));var e=l3m;V.call(R,e.content.cloneNode(!0),B.content.firstChild);zSm=B}B=zSm;return B},{mode:2});var vL6;var KFe;var Vb=function(){return _.c.apply(this,arguments)||this};
_.l(Vb,_.c);_.p=Vb.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(B){B.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.p.handleHeaderTap_=function(B){B.preventDefault();B.stopPropagation();this.expandOffers_()};
_.p.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.p.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Vb.prototype.dataChanged_=Vb.prototype.dataChanged_;_.r([_.v(_.kI),_.Z("design:type",Object)],Vb.prototype,"ironA11yKeysBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Vb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Vb.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Vb.prototype,"offersVisible_",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vb.prototype,"dataChanged_",null);Vb=_.r([_.fJ({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Vb);
_.F(Vb,"yt-collapsible-ypc-offer-renderer",function(){if(KFe===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;vL6===void 0&&(vL6=document.createElement("template"));var e=vL6;V.call(R,e.content.cloneNode(!0),B.content.firstChild);KFe=B}B=KFe;return B},{mode:2});var I3e;var ELU;_.aO("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var eL=function(){return _.c.apply(this,arguments)||this};
_.l(eL,_.c);_.p=eL.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 B=_.$T(this.data.backgroundImage.thumbnails,screen.width),R=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=R?"linear-gradient(180deg, "+R+"), url("+B+")":"url("+B+")";this.data.gtmId&&_.Nq(this.data.gtmId,_.vE("GL",""))}};
_.p.onYtServiceRequestError_=function(B){_.VN(this.hostElement,B.detail.error.message)};
_.p.getScrimLayerColorStops_=function(){var B,R,V=(B=this.data.unlimitedHeaderV2Data)==null?void 0:(R=B.unlimitedHeaderV2Data)==null?void 0:R.scrimLayerColors;if(!V)return null;var e=100/V.length;return V.map(function(X,Y){Y*=e;return _.zF(X)+" "+Y+"%"}).join(",")};
_.p.computeLogoWithPadding=function(B){var R,V,e;return(B=(R=B.unlimitedLogoImage)==null?void 0:(V=R.thumbnails)==null?void 0:(e=V[0])==null?void 0:e.height)&&B%31===0?!0:!1};
eL.prototype.onYtServiceRequestError_=eL.prototype.onYtServiceRequestError_;eL.prototype.dataChanged_=eL.prototype.dataChanged_;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.r([_.E({computed:"computeLogoWithPadding(data)"}),_.Z("design:type",Boolean)],eL.prototype,"logoWithPadding",void 0);
_.r([_.E(),_.Z("design:type",Object)],eL.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eL.prototype,"dataChanged_",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],eL.prototype,"onYtServiceRequestError_",null);eL=_.r([_.fJ({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],eL);
_.F(eL,"yt-unlimited-page-header-renderer",function(){if(ELU===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;I3e===void 0&&(I3e=document.createElement("template"));var e=I3e;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ELU=B}B=ELU;return B},{mode:2});var Qs6;var qf6;_.aO("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var XZ=function(){return _.c.apply(this,arguments)||this};
_.l(XZ,_.c);XZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],XZ.prototype,"data",void 0);XZ=_.r([_.fJ({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],XZ);
_.F(XZ,"yt-unlimited-user-notification-renderer",function(){if(qf6===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Qs6===void 0&&(Qs6=document.createElement("template"));var e=Qs6;V.call(R,e.content.cloneNode(!0),B.content.firstChild);qf6=B}B=qf6;return B},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Zq6=_.sx(function(B){var R=_.ip(B,{numberOfChips:5}).numberOfChips;return _.N("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.N(_.yh,{each:function(){return Array(R==null?void 0:R())}},function(){return _.N("div",{class:"ytGhostChipShelfChip"})}))},"cg");_.mnU=_.sx(function(B){var R=_.hv(),V=_.Oz().resolve(_.q9);_.fQ(function(){requestAnimationFrame(function(){var X;(X=R.lottieEl)==null||X.addEventListener("DOMLoaded",function(){var Y;(Y=B.onLottieLoaded)==null||Y.call(B)})})});
var e={};return _.N("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var X;return((X=B.data)==null?void 0:X.call(B).targetId)||""}},_.N(_.pD,{className:_.XE((e.ytChatLoadingViewModelRtl=V==="rtl",e)),
animationName:"YOUCHAT_LOADER",data:function(){var X;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((X=B.data)==null?void 0:X.call(B).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:R}))},"dg");
}catch(e){_._DumpException(e)}
try{
var Nk6,Ggz,yFo,Sh2,Hxe,MDn,kgi,ns,uu,fOm,lOz,zC4,d_z,Elr,Of,IO4,x_N,KOo,vle,LO2,Tk4,QJ4,qh6,cFo,AFo,oS,ixe,sJU,FOe,$_z,m_r,Zxn,rFe,glU,Cge,Pg4,nl7,uD4,Oxi,Vr6,pn4,YJi,hQ4,Wq4,J4e,U2j,Nze,G$n,y4m,Hd4,Mrj,k$i,D2o,fvr,lv4,zQ6,d2U,LqN,x24,wnm,v07,Tze,Kqe,qJm,QI6,IvU,E0U,Vr,c42,ide,r4m,PyN,n04,un2,Od7,oRe,BA2,RTU,VA6,eTU,XU6,YZ7,hT6,tAN,D_4,m2j;
_.Cs=function(B){var R=new _.H8("Error accessing DB");return _.IbZ().then(function(V){return new Promise(function(e,X){try{var Y=V.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(B);Y.onsuccess=function(){var t=Y.result;e(t?t.value:null)};
Y.onerror=function(){R.params={key:B,source:"onerror"};X(R)}}catch(t){R.params={key:B,
thrownError:String(t)},X(R)}})},function(){return null})};
_.U_4=function(B,R){var V=_.GXq(R);V!=="javascript:"&&V!=="data:"&&B.setAttribute("href",R)};
Nk6=function(B,R){return _.p7(B.entities,"flowStateEntity",R)};
Ggz=function(B){return(B=B.getOption("captions","track"))?!!B.displayName:!1};
yFo=function(B,R){R=R.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(R==null||!R.length)return B;var V=R.filter(function(t){return t});
R=B.filter(function(t){return t.languageCode.startsWith("en")});
V=_.h(V);for(var e=V.next();!e.done;e=V.next())if(e=e.value,R.length){var X=R[0],Y=Object.assign({},X);X.languageCode!==e.languageCode&&(Y.displayName=X.languageName+" >> "+e.languageName,Y.translationLanguage=e,B.push(Y))}return B};
Sh2=function(B){var R,V=(R=B.getOption("captions","tracklist",{includeAsr:!0}))!=null?R:[];_.k("mweb_watch_captions_enable_auto_translate")&&(V=yFo(V,B));return V};
Hxe=function(B){return _.AA(B,function(R){return R.languageCode==="en"})};
MDn=function(B){var R=PA;if(Ggz(B))B.setOption("captions","stickyLoading",{}),B.setOption("captions","track",{});else{var V=_.AA(Sh2(B),function(e){return e.displayName===R});
B.setOption("captions","track",V)}};
kgi=function(B){if(!B)return 0;var R=B.getPresentingPlayerType(),V=B.getVideoData();return V&&V.isLive?(B=B.getProgressState(R),B.seekableEnd-B.seekableStart):B.getDuration(R)};
ns=function(B,R){_.ET(R,B,function(){return D_4[R]},function(V){D_4[R]=V;
if(!_.k("mweb_player_ve_show_ks")){var e=_.TE(0);e&&V&&_.qd(e,V)}})};
uu=function(B){(B=D_4[B])&&_.ty(_.WK(),B)};
fOm=function(B,R){for(var V=_.h(Object.keys(B)),e=V.next();!e.done;e=V.next())if(e=e.value,B[e]!==R[e])return!1;return!0};
lOz=function(){return document.getElementById("player-control-overlay")};
zC4=function(B){B!==-1&&!_.k("player_controls_log_creation_killswitch")&&lOz()&&(_.zp("pcu_cs",B),_.zp("pcu_ce"))};
d_z=function(B){return _.N("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(B.subscribeButton?[B.subscribeButton,B.channelAccess]:[B.channelAccess]).map(function(R){return _.N("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.N("div",{class:"yt-profile-identity-info-view-model-wiz--button"},aO7(R)))}))};
_.wHN=function(B){var R=B.data;B=B.hideDivider;var V={};V=(V["yt-profile-identity-info-view-model-wiz__frame"]=!0,V["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!R.channelBanner,V);V={class:_.YB(V)};var e,X={imageBannerViewModel:{image:(e=R.channelBanner)==null?void 0:e.image,style:"IMAGE_BANNER_STYLE_INSET"}};e=_.N("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},R.channelBanner?_.N("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
aO7(X,{imageBannerViewModel:{isPositionRelative:!0}})):null);X=_.N("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},aO7(R.avatar));var Y;var t=_.N("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.N("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},R.channelDisplayName),R.verifiedOrOacBadge?_.N("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.N(_.ia,{data:{thumbnails:[{url:(Y=R.verifiedOrOacBadge)==null?void 0:Y.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);Y=_.N("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},t,aO7(R.threeDotMenu));t=_.N("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.N("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.N("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},R.channelHandle),R.channelPronouns&&R.channelHandle?_.N("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.N("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},R.channelPronouns)),_.N("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.N("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},R.leftOfBulletInfo),R.leftOfBulletInfo&&R.rightOfBulletInfo?_.N("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.N("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},R.rightOfBulletInfo)));Y=_.N("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},Y,t);return _.N("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.N("div",V,e,_.N("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},X,Y),R.channelDescription?_.N("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},R.channelDescription):
null,d_z(R),B?null:_.N("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
Elr=function(B,R){var V=_.AM(B,{}),e=Tk4("top",R),X=Tk4("bottom",R),Y=Tk4("left",R),t=Tk4("right",R);return _.jQ({top:function(){return Of(V().position,e)},
bottom:function(){return Of(V().position,X)},
left:function(){return Of(V().position,Y)},
right:function(){return Of(V().position,t)},
position:function(){return Of(V().positionType,x_N)},
height:function(){return Of(V().height,oS)},
width:function(){return Of(V().width,oS)},
"min-width":function(){return Of(V().minWidth,oS)},
"min-height":function(){return Of(V().minHeight,oS)},
"max-width":function(){return Of(V().maxWidth,oS)},
"max-height":function(){return Of(V().maxHeight,oS)},
"aspect-ratio":function(){return Of(V().aspectRatio,String)},
"margin-top":function(){return Of(V().margin,e)},
"margin-bottom":function(){return Of(V().margin,X)},
"margin-left":function(){return Of(V().margin,Y)},
"margin-right":function(){return Of(V().margin,t)},
"padding-top":function(){return Of(V().padding,e)},
"padding-bottom":function(){return Of(V().padding,X)},
"padding-left":function(){return Of(V().padding,Y)},
"padding-right":function(){return Of(V().padding,t)},
"flex-direction":function(){return Of(V().flexDirection,LO2)},
"justify-content":function(){return Of(V().justifyContent,vle)},
"align-items":function(){return Of(V().alignItems,KOo)},
"flex-grow":function(){return Of(V().flexGrow,String)},
"flex-shrink":function(){return Of(V().flexShrink,String)},
"flex-basis":function(){return Of(V().flexBasis,oS)},
"align-self":function(){return Of(V().alignSelf,KOo)},
"flex-wrap":function(){return Of(V().flexWrap,IO4)},
"align-content":function(){return Of(V().alignContent,KOo)}})};
Of=function(B,R){return B!==void 0?R(B):void 0};
IO4=function(B){switch(B){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
x_N=function(B){switch(B){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
KOo=function(B){switch(B){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"}};
vle=function(B){switch(B){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"}};
LO2=function(B){switch(B){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"}};
Tk4=function(B,R){var V=R==="rtl";switch(B){case "top":var e=QJ4;break;case "bottom":e=qh6;break;case "left":e=cFo;break;default:e=AFo}return function(X){return Of(e(X,V),oS)}};
QJ4=function(B){var R=B.top;var V=B.vertical;B=B.all;var e;return(e=R!=null?R:V)!=null?e:B};
qh6=function(B){var R=B.bottom;var V=B.vertical;B=B.all;var e;return(e=R!=null?R:V)!=null?e:B};
cFo=function(B,R){var V=B.left;var e=B.end;var X=B.start;var Y=B.horizontal;B=B.all;var t,b;return(b=(t=V!=null?V:R?e:X)!=null?t:Y)!=null?b:B};
AFo=function(B,R){var V=B.right;var e=B.end;var X=B.start;var Y=B.horizontal;B=B.all;var t,b;return(b=(t=V!=null?V:R?X:e)!=null?t:Y)!=null?b:B};
oS=function(B){var R=B.value;switch(B.unit){case "YPC_DIMENSION_UNIT_POINT":return R+"px";case "YPC_DIMENSION_UNIT_FRACTION":return R+"%";default:return""+R}};
ixe=function(B){switch(B){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"}};
sJU=function(B){var R=B!=null?B:{};B=R.fontRole;var V=R.fontSize;R=R.fontWeight;if(B!==null&&V!==null)switch(B){case "YPC_FONT_ROLE_DISPLAY":switch(V){case "YPC_FONT_SIZE_L":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(V){case "YPC_FONT_SIZE_L":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return R===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(V){case "YPC_FONT_SIZE_XL":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return R==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
FOe=function(B,R){return _.p7(B.entities,"pdpStateEntity",R)};
$_z=function(B,R,V){function e(G){return Object.values(G).map(function(y){var S=y.productId;y=y.pricingOptionIndex;return rFe(X(S).pricingOptions,y).pricingOptionId})}
function X(G){return b().get(G)}
function Y(G){G=e(G);V(G)}
var t=glU([B,R],function(G,y){var S=G==null?void 0:G.selectedPricingOptions;G={};var M=!0;if(S&&y.length)for(var f=_.h(y),z=f.next();!z.done;z=f.next()){z=z.value;var T=Zxn(z.pricingOptions,function(L){a:{L=L.pricingOptionId;for(var Q=_.h(S),q=Q.next();!q.done;q=Q.next())if(q.value===L){L=!0;break a}L=!1}return L});
T>=0&&(M=!1,G[z.groupId]={productId:z.productId,pricingOptionIndex:T})}M&&y.length&&(G[y[0].groupId]={productId:y[0].productId,pricingOptionIndex:0});return G}),b=glU([R],function(G){return new Map(G.map(function(y){return[y.productId,
y]}))}),J=glU([R],function(G){var y=new Map;
G=_.h(G);for(var S=G.next();!S.done;S=G.next()){var M=S.value;S=M.groupId;var f=M.productId;M=_.h(m_r(M.pricingOptions));for(var z=M.next();!z.done;z=M.next()){var T=_.h(z.value);z=T.next().value;T=T.next().value;y.set(T.pricingOptionId,{groupId:S,productId:f,index:z,pricingOption:T})}}return y});
return{getProductById:X,isProductSelected:function(G){var y=X(G);if(!y)return!1;var S;return((S=t()[y.groupId])==null?void 0:S.productId)===G},
getSelectedPricingOptions:function(){return Object.values(t()).map(function(G){var y=G.productId;G=G.pricingOptionIndex;return rFe(X(y).pricingOptions,G)})},
getSelectedProductByGroupId:function(G){var y;return(G=(y=t()[G])==null?void 0:y.productId)?X(G):void 0},
onProductSelected:function(G){var y=X(G);if(y){var S=t(),M;if(((M=S[y.groupId])==null?void 0:M.productId)!==G){var f,z;M=(z=(f=S[y.groupId])==null?void 0:f.pricingOptionIndex)!=null?z:0;f=0;for(z=y.pricingOptions[Symbol.iterator]();!z.next().done;)++f;f<=M&&(M=0);f={};Y(Object.assign({},S,(f[y.groupId]={productId:G,pricingOptionIndex:M},f)))}}},
onPricingOptionSelected:function(G){var y=J().get(G);if(y){G=y.groupId;var S=y.productId;y=y.index;var M=t(),f,z;if(((f=M[G])==null?void 0:f.productId)!==S||((z=M[G])==null?void 0:z.pricingOptionIndex)!==y)f={},Y(Object.assign({},M,(f[G]={productId:S,pricingOptionIndex:y},f)))}},
onClearGroupSelected:function(G){var y=t();y[G]&&(y=Object.fromEntries(Object.entries(y).filter(function(S){return _.h(S).next().value!==G})),Y(y))}}};
m_r=function(B){return function V(){var e,X,Y,t,b;return _.Hl5(V,function(J){switch(J.nextAddress){case 1:_.Yb(J,2),e=0,X=_.h(B),Y=X.next();case 4:if(Y.done){J.jumpTo(2);break}t=Y.value;b=_.MiY;return _.U(J,[e++,t],7);case 7:b(J.yieldResult);Y=X.next();J.jumpTo(4);break;case 2:_.pr(J),_.tq(J,0)}})}()};
Zxn=function(B,R){B=_.h(m_r(B));for(var V=B.next();!V.done;V=B.next()){var e=_.h(V.value);V=e.next().value;e=e.next().value;if(R(e))return V}return-1};
rFe=function(B,R){B=_.h(m_r(B));for(var V=B.next();!V.done;V=B.next()){var e=_.h(V.value);V=e.next().value;e=e.next().value;if(V===R)return e}};
glU=function(B,R){var V,e;return function(){for(var X=B.map(function(t){return t()}),Y=0;Y<X.length;Y++)if(!V||X[Y]!==V[Y]){V=X;
e=R.apply(null,_.MI(X));break}return e}};
Cge=function(B){var R;return!!(B.productId&&B.groupId&&((R=B.pricingOptions)==null?0:R.length)&&B.pricingOptions.every(function(V){return V.pricingOptionId}))};
Pg4=function(B,R,V){return $_z(B,glU([R],function(e){return e.filter(Cge)}),V)};
nl7=function(B,R){return R.length===0?[B]:[B.slice(0,R[0]),B.slice(R[0])].filter(function(V){return V.length>0})};
uD4=function(B){switch(B){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""}};
Oxi=function(B,R,V,e){e=Object.assign({},e);_.D9(e,B4,{selectedOptionId:B,primaryButtonOverride:V});_.QL().dispatch(_.SX("flowStateEntity",R,e))};
_.RQ2=function(){if(!o0r){var B=_.h(_.WU(new Map,void 0,"UJImUe"));o0r=B.next().value;Bzr=B.next().value}return o0r};
Vr6=function(B){if(B)return _.RQ2()().get(B)};
_.eQn=function(B,R){if(B&&R){var V=_.RQ2();V().set(B,R);B=V();Bzr(new Map(B))}};
_.XnN=function(B){return{onSubmit:function(){var R;(R=Vr6(B()))==null||R.onSubmit()},
isValid:function(){var R=Vr6(B());return R?R.isValid():!0},
isSubmitting:function(){var R,V;return!!((R=Vr6(B()))==null?0:(V=R.isSubmitting)==null?0:V.call(R))}}};
pn4=function(B,R){return _.p7(B.entities,"contextNoteFeedEntityPayload",R)};
YJi=function(B){B.style.height="auto";B.style.height=B.scrollHeight+"px"};
hQ4=function(B){return[B.syncStep,B.asyncStep].filter(function(R){return R!==void 0})};
Wq4=function(B){var R,V,e;if(B=(R=B.structuredContextNoteFormSchema)==null?void 0:(V=R.fieldSchemas)==null?void 0:(e=V.noteBody)==null?void 0:e.validationSchema)for(R=_.h(hQ4(B)),V=R.next();!V.done;V=R.next()){V=V.value.rules;if(!V)break;V=_.h(V);for(V=V.next();!V.done;V=V.next())return _.D(V.value,_.trN)}};
J4e=function(B){if(B){B=_.h(hQ4(B));for(var R=B.next();!R.done;R=B.next()){R=R.value.rules;if(!R)break;R=_.h(R);for(R=R.next();!R.done;R=R.next())return _.D(R.value,bdn)}}};
U2j=function(B){if(B){B=_.h(hQ4(B));for(var R=B.next();!R.done;R=B.next()){R=R.value.rules;if(!R)break;R=_.h(R);for(R=R.next();!R.done;R=R.next())return _.D(R.value,jIn)}}};
Nze=function(B){B=/^https?:\/\//.test(B)?B:"http://"+B;try{var R=_.q2(B)}catch(V){return!1}if(R.toString()!==B)return!1;B=R.JSC$7940_domain_.split(".");return B.length>1&&B.every(function(V){return!!V})};
G$n=function(B,R,V,e){var X;e=(X=e.structuredContextNoteData)==null?void 0:X.createCommentEndpoint;if(X=_.D(e,_.zra))return X.commentText=_.s$(B),X.videoPositionMention=R,X.sources=V,e};
y4m=function(B){return B==null?void 0:B.stringValue};
Hd4=function(B,R,V){B=B.map(function(e,X){return{listItemViewModel:{title:e.title,subtitle:e.subtitle,leadingImage:e.leadingImage,trailingImage:X===R?SJo:void 0,rendererContext:{commandContext:{onTap:e.onTap}}}}});
return Object.assign({},V&&{header:{panelHeaderViewModel:{title:V}}},{content:{listViewModel:{listItems:B}}})};
Mrj=function(B,R){if(B&&R)switch(R){case "SELECTION_TYPE_BOOL":return B.boolValue;case "SELECTION_TYPE_INT":return B.intValue;case "SELECTION_TYPE_STRING":return B.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return B.privacyStatusValue}};
k$i=function(B){var R;B=(R=B.options)==null?void 0:R.findIndex(function(V){return V.isSelected});
return B===void 0?-1:B};
D2o=function(B,R,V){var e=function(){return B().label},X={},Y=_.XE("ytDropdownViewModelLabel",(X.ytDropdownViewModelLabelError=R,X));
return _.N(_.H,{cond:function(){return B().label&&!(V()===-1&&B().label&&!B().placeholderText)},
then:function(){return _.N("div",{class:Y},_.N(_.Hr,{text:e}))}})};
fvr=function(B,R){var V={};V=_.XE("ytDropdownViewModelTitle",(V.ytDropdownViewModelTitlePlaceholder=function(){return R()===-1},V));
return _.N("div",{class:V},_.N(_.Hr,{text:function(){var e=B();var X=R();if(X===-1)e=e.placeholderText?e.placeholderText:e.label;else{var Y,t;e=(Y=e.options)==null?void 0:(t=Y[X])==null?void 0:t.title}return e}}))};
lv4=function(B,R){var V=function(){return B().hint};
return _.N(_.OZ,null,_.N(_.H,{cond:function(){return V()&&!R()},
then:function(){return _.N("div",{class:_.XE("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.N(_.Hr,{text:V,className:"ytDropdownViewModelSupportText"}))}}),_.N(_.H,{cond:R,
then:function(){return _.N("div",{id:"dropdown-view-model-error",role:"alert",class:_.XE("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.N(_.Us,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.N(_.Hr,{text:R,className:"ytDropdownViewModelSupportText"}))}}))};
zQ6=function(B,R){var V=_.Oz().resolve(_.J64);_.zM(function(){var e=B().id;e&&V!=null&&V.dropdownMap.set(e,R)})};
d2U=function(B){B=_.D(B.scheduleButton,avo);B=_.D(B==null?void 0:B.primaryButton,_.Tr);B=_.D(B==null?void 0:B.onTap,_.aT);var R,V,e=((V=_.D(B,_.p0))==null?void 0:V.commands)||[B];V=_.h(e);for(B=V.next();!B.done&&!(R=_.D(B.value,_.lAR));B=V.next());var X;R=(X=R)==null?void 0:X.createBroadcastRequest;if(!R)throw Error("Hj");return R};
LqN=function(B,R,V){V=V===void 0?{}:V;var e,X;return _.W(function(Y){if(e=wnm(R))return Y.return(e);(X=Tze(B,R,V))&&x24(R,X);return Y.return(X)})};
x24=function(B,R){var V=v07(B);V&&R.then(function(e){_.Oz().resolve(_.BO).put(V,new _.Rf({innertubeResponse:e}))})};
wnm=function(B){if(B=v07(B)){var R=_.Oz().resolve(_.BO);if(R.has(B))return R.get(B).then(function(V){return V==null?void 0:_.WS(V)})}return null};
v07=function(B){var R=_.D(B.endpoint,_.sI);if(R!=null&&R.videoId)return R={videoId:R.videoId},_.k("web_imp_player_mute_params")&&(R.mutedAtStart=B.startPlaybackInMutedState),_.is("inline_playback",R)};
Tze=function(B,R,V){B=_.cr(B,R.endpoint,Kqe(R,V)).then(function(e){return e});
return Promise.resolve(B)};
Kqe=function(B,R){R=_.k("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!B.startPlaybackInMutedState},R):Object.assign({},{vis:5,autonav:"1"},R);var V;R={contentPlaybackContext:_.yV(R,(V=_.D(B.endpoint.commandMetadata,_.$a))==null?void 0:V.url,window.location.href)};_.k("web_imp_player_mute_params")&&(R.overrideMutedAtStart=!B.startPlaybackInMutedState);return R};
qJm=function(B,R){var V=window.MutationObserver;V&&(RS=new V(function(e,X){e=_.h(e);for(var Y=e.next();!Y.done;Y=e.next()){Y=Y.value;var t;if(t=Y.type==="childList"&&Y.target)a:{t=B;Y=IvU(Y.target);t=IvU(t);for(var b=null,J=0;J<Y.length;J++)if(t.includes(Y[J])){if(J===0){t=!1;break a}b=Y[J];break}b?(Y=E0U(Y,b),t=E0U(t,b),t=Y<t):t=!1}if(t){R();X.disconnect();break}}}),(V=QI6())&&RS.observe(V,{childList:!0,
subtree:!0}))};
QI6=function(){var B=document.getElementsByTagName("ytd-rich-grid-renderer");if(B.length>0)return B[0];B=document.getElementsByTagName("ytd-section-list-renderer");return B.length>0?B[0]:null};
IvU=function(B){for(var R=[];B;)R.push(B),B=B.parentElement;return R};
E0U=function(B,R){var V=Array.from(R.children);R=B.indexOf(R);return R>0?V.indexOf(B[R-1]):-1};
Vr=function(B,R,V){V=V===void 0?{}:V;return _.Wz(B,V,R)};
c42=function(B){return B==null?void 0:B.filter(function(R){return R.premiereTrailerBadgeRenderer})};
ide=function(B){var R,V=B==null?void 0:(R=B.find(function(y){return y.thumbnailOverlayTimeStatusRenderer}))==null?void 0:R.thumbnailOverlayTimeStatusRenderer,e;
if(V==null?0:(e=V.icon)==null?0:e.iconType){var X;return{icon:V==null?void 0:(X=V.icon)==null?void 0:X.iconType}}var Y,t;var b=(B=(Y=B==null?void 0:(b=B.find(function(y){return y.thumbnailBottomOverlayViewModel}))==null?void 0:b.thumbnailBottomOverlayViewModel)==null?void 0:(t=Y.badges)==null?void 0:t.find(function(y){var S,M;
return((S=_.D(y,A44))==null?void 0:(M=S.inlinePlaybackBadgeData)==null?void 0:M.replicateAsTimestamp)===!0}))?_.D(B,A44):void 0;
if(b==null?0:b.icon){var J,G;if(b=(J=_.d8A(b==null?void 0:b.icon))==null?void 0:(G=J.clientResource)==null?void 0:G.imageName)return{icon:b}}return{}};
r4m=function(B,R){var V="",e="";switch(B){case -1:case 0:V=R?"VOLUME_OFF":"VOLUME_OFF_FILLED";e=sIz;break;case 1:V=R?"VOLUME_UP_OUTLINE":"VOLUME_UP";e=Fqz;break;default:_.Ym(B)}return{iconName:V,ariaLabel:e}};
PyN=function(B,R){var V=g0U,e=_.h(_.WU(Zde(new m2j(function(){},V,R)),void 0,"PAnyd")),X=e.next().value,Y=e.next().value,t=new m2j(function(b){Y(b)},V,R);
_.lJ(function(){Promise.resolve().then(function(){var b,J=(b=B())!=null?b:{};t.playerControlsData=J;_.k("player_controls_skip_double_signal_old")&&(t.lastSeenPlayerApi=_.cS(J.playerApi));_.k("player_controls_skip_double_signal_old")||(t.lastSeenPlayerApi=_.cS(J.playerApi));$2r(t)});
_.aK(function(){Cyo(t)})});
_.aK(function(){Cyo(t)});
return function(){return X()}};
n04=function(B){return function(R){var V=B(),e={playerState:R};if(R===1){var X;(X=V.playerApi)==null||X.loadModule("captions")}if(R===0){var Y;(Y=V.playerApi)==null||Y.unloadModule("captions")}(R!==-1||_.k("web_imp_controls_set_player_state_killswitch"))&&V.setState(e)}};
un2=function(B){return function(R){B().setState({playbackRate:R})}};
Od7=function(B){return function(R){var V=B(),e=V.playerApi,X=e==null?void 0:e.getVideoData(),Y=(X==null?void 0:X.isLive)||!1;X=X==null?void 0:X.video_id;Y={videoDuration:kgi(e||void 0),isLive:Y,videoId:X};Y.videoId!==V.videoId&&(Y=Object.assign({},_.zUp(e),Y));if(R==null?0:R.playertype)Y.playerType=R.playertype;if(e){Y.captionsAvailable=!!e.getOptions("captions");R=Y;var t;X=(t=e.getStoryboardLevel(e.getNumberOfStoryboardLevels()-1))==null?void 0:t.intervalMs;R.storyboardInterval=X?X/1E3:void 0;Y.captionsAvailable&&
(Y.captionsEnabled=Ggz(e))}Y.volumeMuted=!(e==null||!e.isMuted());V.setState(Y)}};
oRe=function(B){return function(R){var V=B(),e=V.playerApi;if(e){var X=e.getPresentingPlayerType();R={playedTime:R||0,percentLoaded:e.getVideoLoadedFraction(),playerType:X};V.playerState===0&&(R.playedTime=V.videoDuration);V.isLive&&(X=e.getProgressState(X),R.playedTime-=X.seekableStart,R.videoDuration=kgi(e));if(V.playerType===1)e=!1;else{var Y;if((Y=V.uxConfig)==null?0:Y.showCuedOverlay){var t;e=!((t=V.playerApi)==null?0:t.getPlayerStateObject(V.playerType).isDomPaused)}else e=!0}e&&delete R.playedTime;
V.setState(R)}}};
BA2=function(B){return function(){var R=B(),V,e,X,Y={volume:(X=(V=R.playerApi)==null?void 0:V.getVolume())!=null?X:0,volumeMuted:!((e=R.playerApi)==null||!e.isMuted())};R.setState(Y)}};
RTU=function(B){return function(){var R=B(),V=R.playerApi;if(V){var e={captionsAvailable:!!V.getOptions("captions")};e.captionsAvailable&&(e.captionsEnabled=Ggz(V));R.setState(e)}}};
VA6=function(B){return function(){var R=B();if(R.playerApi&&!(R.volumeMuted||R.controlsVisible&&R.isProbablyAScreenreaderUser)){R.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var V;(V=document.querySelector(".player-control-play-pause-icon"))==null||V.focus()}}};
eTU=function(B){return{appApi:Object.assign({},_.SFK(),{showCaptionsToggleToast:function(R){var V,e;(e=(V=B()).showCaptionsToggleToast)==null||e.call(V,R)},
openInMiniplayer:function(){var R,V;(V=(R=B()).openInMiniplayer)==null||V.call(R)}})}};
XU6=function(B,R){var V,e,X;return!!(B==null?0:(V=B.playerResponse)==null?0:(e=V.playerConfig)==null?0:(X=e.inlinePlaybackConfig)==null?0:X.showScrubbingControls)&&!(R==null?0:R.hideScrubbingControls)};
_.pUn=function(B){var R=!B.miniplayerIsActive;return[5,2,0].includes(B.miniplayerPlaybackState)||R};
YZ7={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};hT6=function(B,R){var V,e,X,Y,t;_.W(function(b){if(!R.length)return b.return([]);V=[];e=_.h(R);for(X=e.next();!X.done;X=e.next())Y=X.value,(t=B.resolveIcon(Y))&&!B.iconCache[t.url]&&V.push(_.lSr(B,t).then(function(){}).catch(function(){}));
return b.return(Promise.all(V))})};
tAN=function(B,R){var V=[];R=(new Set(R)).values();R=_.h(R);for(var e=R.next();!e.done;e=R.next()){e=e.value;for(var X=_.h(Object.values(YZ7)),Y=X.next();!Y.done;Y=X.next())V.push({iconName:e,iconStyle:Y.value})}hT6(B.iconManager,V)};
_.WoU=function(B,R,V){var e=V!=null?V:B.iconsToFetch;e!=null&&e.length?R!==void 0&&R>=0?_.kD(_.dV,function(){tAN(B,e)},R):tAN(B,e):Promise.resolve()};
D_4={};
m2j=function(B,R,V){var e=this;this.renderFn=B;this.listeners=R;this.context=V;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var X;this.lastSeenPlayerApi=_.cS((X=this.playerControlsData)==null?void 0:X.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.zUp(),void 0);_.k("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Zde(e).setState({playerState:-1});e.resetRecentlyNavigatedJobId&&_.dV.cancelJob(e.resetRecentlyNavigatedJobId);e.recentlyNavigated=
!0;e.resetRecentlyNavigatedJobId=_.dV.addJob(function(){e.recentlyNavigated=!1},8,1E4)})};
m2j.prototype.setState=function(B){if(!_.k("mweb_player_skip_no_op_state_changes")||!fOm(B,this.state))if(this.state=Object.assign({},this.state,B),!_.k("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)B=-1,_.k("player_controls_log_creation_killswitch")||lOz()||(B=(0,_.P8)()),_.zp("pcu_s"),_.zp("pcu_se"),_.zp("pcu_rs"),this.renderFn(Zde(this)),_.zp("pcu_re"),zC4(B),_.dV.addJob(function(){_.zp("pcu_ap")},8)};
var Zde=function(B){var R;var V=_.cS((R=B.playerControlsData)==null?void 0:R.playerApi);return Object.assign({},B.state,{setState:B.boundSetState,domMeasurements:{progressBarLineRect:B.progressBarLineRect},playerApi:V,appApi:B.context.appApi,playerContainer:B.context.playerContainer,playerControlContainer:B.context.playerControlContainer,uxConfig:B.context.uxConfig})},$2r=function(B){B.listeners.forEach(function(R){B.eventListenerCleanupFunctions.push(R.register(function(){return Zde(B)},function(){return B.getData()}))})},
Cyo=function(B){B.eventListenerCleanupFunctions.forEach(function(R){R()});
B.eventListenerCleanupFunctions.length=0};
m2j.prototype.getData=function(){return this.playerControlsData};
var ew=new _.P("abuseReportFlowState");var bWo=new _.P("feedbackFormFlowState");var JIi=new _.P("inputBoxViewModel");var jK7=new _.P("flowNextStepCommand");var UWU=new _.P("flowPrevStepCommand");var NAm=new _.P("updateFlowCommand");_.Ga2=new _.P("flowStepRenderer");_.trN=new _.P("lengthValidationRule");var bdn=new _.P("regexValidationRule");var jIn=new _.P("selectedValidationRule");var yIe=new _.P("talkToRecsViewModel");var SZ4=new _.P("creatorGoalSetUpFlowDropdownItemViewModel");var HWe=new _.P("creatorGoalSetUpFlowDropdownViewModel");var A44=new _.P("thumbnailBadgeViewModel");_.MAz=new _.P("radioButtonGroupViewModel");var avo=new _.P("panelFooterViewModel");var kar=new _.P("ypcCancelRecurrenceCommand");var DWi=new _.P("cancellationFlowState");var B4=new _.P("premiumPurchaseFlowState");var fm4=new _.P("surveyAnswerCardRenderer");var lm2=new _.P("showMoreButtonRenderer");var zTn;var ame,dWz=function(){if(ame!==void 0)return ame;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;zTn===void 0&&(zTn=document.createElement("template"));var e=zTn;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return ame=B};var XN=function(){var B=_.c.apply(this,arguments)||this;B.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";B.goalDescription="";B.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";B.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";B.startButtonId="start-button";B.exampleButtonId="example-button";return B};
_.l(XN,_.c);_.p=XN.prototype;_.p.getGoalDropdownItems=function(){var B,R;return(R=_.D((B=this.data)==null?void 0:B.purchaseTargetDropdown,HWe))==null?void 0:R.dropdownItems};
_.p.getTimerDropdownItems=function(){var B,R;return(R=_.D((B=this.data)==null?void 0:B.timerDropdown,HWe))==null?void 0:R.dropdownItems};
_.p.getColorDropdownItems=function(){var B,R;return(R=_.D((B=this.data)==null?void 0:B.colorDropdown,HWe))==null?void 0:R.dropdownItems};
_.p.getDropdownItemText=function(B){var R;return(R=_.D(B,SZ4))==null?void 0:R.itemLabel};
_.p.getDropdownItemValue=function(B){B=_.D(B,SZ4);return(B==null?void 0:B.timeLimit)||(B==null?void 0:B.purchaseTarget)||(B==null?void 0:B.eligiblePurchaseType)};
_.p.updateFlowState=function(B){_.oF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:B}])};
_.p.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.p.updateGoalValue=function(B){this.goal=B.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.p.onTextValueChanged=function(B){this.goalDescription=B.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.p.updateTimerValue=function(B){this.timer=B.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.p.updateTierValue=function(B){this.tier=B.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.p.getButtonViewModel=function(B){B=(B==null?void 0:B.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var R,V=_.D((R=this.data)==null?void 0:R.startGoalButton,_.Tr);return Object.assign({},V,{state:B})};
_.mh.Object.defineProperties(XN,{template:{configurable:!0,enumerable:!0,get:function(){return dWz()}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],XN.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],XN.prototype,"goal",void 0);_.r([_.E(),_.Z("design:type",Object)],XN.prototype,"goalDescription",void 0);_.r([_.E(),_.Z("design:type",Object)],XN.prototype,"timer",void 0);_.r([_.E(),_.Z("design:type",Object)],XN.prototype,"tier",void 0);
_.r([_.E(),_.Z("design:type",Object)],XN.prototype,"startButtonId",void 0);_.r([_.E(),_.Z("design:type",Object)],XN.prototype,"exampleButtonId",void 0);XN=_.r([_.fJ({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],XN);_.F(XN,"yt-creator-goal-set-up-flow-view-model",function(){return dWz()},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var wUz;var TA7;var xWj;var p4=function(){return _.c.apply(this,arguments)||this};
_.l(p4,_.c);_.r([_.E(),_.Z("design:type",Object)],p4.prototype,"data",void 0);p4=_.r([_.fJ({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],p4);
_.F(p4,"yt-survey-answer-card-renderer",function(){if(xWj===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;TA7===void 0&&(TA7=document.createElement("template"));var e=TA7;V.call(R,e.content.cloneNode(!0),B.content.firstChild);xWj=B}B=xWj;return B},{mode:2});var Lo6;var vR4;var Yk=function(){return _.c.apply(this,arguments)||this};
_.l(Yk,_.c);_.p=Yk.prototype;_.p.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.p.selectedItemChanged=function(B){_.oF(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[B.feedbackToken||""]}])};
_.p.surveyAnswerCardRendererClicked=function(B){if(B.target&&_.D(B.model.item,fm4)){var R=B.target;B=_.D(B.model.item,fm4);B.onTapCommand?_.eO(R,[B.onTapCommand],R):this.data.onTapCommand&&_.eO(R,[this.data.onTapCommand],R);this.selectedItemChanged(B)}};
_.p.checkIsCancellationStyle=function(B){return B==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.p.updateSelectedItemFromBinding=function(B){this.selectedItem=B.detail.value};
Yk.prototype.onSelectedItemChanged=Yk.prototype.onSelectedItemChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Yk.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Yk.prototype,"selectedItem",void 0);_.r([_.E({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Yk.prototype,"isCancellationStyle",void 0);
_.r([_.XX("selectedItem"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yk.prototype,"onSelectedItemChanged",null);Yk=_.r([_.fJ({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Yk);
_.F(Yk,"yt-survey-flow-step-renderer",function(){if(vR4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Lo6===void 0&&(Lo6=document.createElement("template"));var e=Lo6;V.call(R,e.content.cloneNode(!0),B.content.firstChild);vR4=B}B=vR4;return B},{mode:2});var h1=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return B};
_.l(h1,_.c);h1.prototype.handleSurveyFlowStepOptionChanged=function(B){this.ytdReduxBehavior.dispatch(_.or({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:B}));_.oF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:B}}])};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],h1.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],h1.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],h1.prototype,"data",void 0);h1=_.r([_.A({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],h1);
_.F(h1,"ytd-survey-flow-step-renderer",function(){if(wUz!==void 0)return wUz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wUz=B},{mode:1});var aO7;aO7=_.ll({avatarViewModel:_.TP,buttonViewModel:_.qo,subscribeButtonViewModel:_.OX5,imageBannerViewModel:_.K04});_.Ko2=_.h3(_.wHN);_.oA(_.wHN);var Imj;var t1=function(){return _.c.apply(this,arguments)||this};
_.l(t1,_.c);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],t1.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],t1.prototype,"data",void 0);t1=_.r([_.A({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],t1);
_.F(t1,"ytd-channel-history-renderer",function(){if(Imj!==void 0)return Imj;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Imj=B},{mode:1});var ER6;var W4=function(){return _.c.apply(this,arguments)||this};
_.l(W4,_.c);_.r([_.E(),_.Z("design:type",Object)],W4.prototype,"data",void 0);W4=_.r([_.A({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],W4);
_.F(W4,"ytd-feature-enablement-info-renderer",function(){if(ER6!==void 0)return ER6;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ER6=B},{mode:1});var QK4;var qZe;var bk=function(){var B=_.c.apply(this,arguments)||this;B.textBoxMaxLength=_.k("enable_tvod_campaign_code_integration")?15:12;return B};
_.l(bk,_.c);_.p=bk.prototype;_.p.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.p.onSubmit=function(){var B=this.data.serviceEndpoint,R=_.D(B,_.pw);R&&B&&(R.couponCode=this.userInput,_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}}))};
_.p.validate=function(){var B=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=B&&!this.data.errorMessage;this.showErrorMessage=B&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.k("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.p.computeStyle=function(B){return B};
_.p.computeShowValidationBelowInput=function(B){return B!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.p.updateUserInputFromBinding=function(B){this.userInput=B.currentTarget.value};
_.p.updateShowErrorMessageFromBinding=function(B){this.showErrorMessage=B.detail.value};
_.mh.Object.defineProperties(bk.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
bk.prototype.dataChanged=bk.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bk.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],bk.prototype,"userInput",void 0);_.r([_.E(),_.Z("design:type",Boolean)],bk.prototype,"disableApplyButton",void 0);_.r([_.E(),_.Z("design:type",Boolean)],bk.prototype,"hideApplyButton",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],bk.prototype,"hideErrorMessage",void 0);_.r([_.E(),_.Z("design:type",Boolean)],bk.prototype,"showTick",void 0);_.r([_.E(),_.Z("design:type",Boolean)],bk.prototype,"showErrorMessage",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],bk.prototype,"couponStyle",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Z("design:type",Boolean)],bk.prototype,"showValidationBelowInput",void 0);_.r([_.E(),_.Z("design:type",Object)],bk.prototype,"textBoxMaxLength",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bk.prototype,"dataChanged",null);
_.r([_.K("showTick","showErrorMessage","userInput"),_.Z("design:type",String),_.Z("design:paramtypes",[])],bk.prototype,"validationState",null);bk=_.r([_.A({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],bk);
_.F(bk,"ytd-ypc-coupon-renderer",function(){if(qZe!==void 0)return qZe;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return qZe=B},{mode:1});var J1=function(){return _.c.apply(this,arguments)||this};
_.l(J1,_.c);J1.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"}}}};
J1.prototype.computeStyle=function(B){return B};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],J1.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],J1.prototype,"buttonStyle",void 0);J1=_.r([_.A({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],J1);
_.F(J1,"ytd-flow-bottom-bar-renderer",function(){if(QK4!==void 0)return QK4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return QK4=B},{mode:1});var cIn;var AIz;var iW6;var jw=function(){return _.c.apply(this,arguments)||this};
_.l(jw,_.c);jw.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
jw.prototype.focus=function(B){this.title&&_.rV(this.title,B)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],jw.prototype,"data",void 0);_.r([_.Yp("#title"),_.Z("design:type",HTMLElement)],jw.prototype,"title",void 0);jw=_.r([_.A({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],jw);
_.F(jw,"ytd-flow-top-bar-renderer",function(){if(iW6!==void 0)return iW6;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return iW6=B},{mode:1});var sKr;var Fo4;var rI7;var Ut=function(){return _.c.apply(this,arguments)||this};
_.l(Ut,_.c);Ut.prototype.freeTextValueChanged=function(){_.oF(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Ut.prototype.updateFreeTextValueFromBinding=function(B){this.freeTextValue=B.detail.value};
_.mh.Object.defineProperties(Ut.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(R=(B=this.data)==null?void 0:B.responseMaxLength)!=null?R:500,e;return((e=this.freeTextValue)!=null?e:"").length>=V?"maxed-out":""}}});
Ut.prototype.freeTextValueChanged=Ut.prototype.freeTextValueChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ut.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],Ut.prototype,"freeTextValue",void 0);_.r([_.Yp("#user-input"),_.Z("design:type",HTMLTextAreaElement)],Ut.prototype,"input",void 0);
_.r([_.K("freeTextValue"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ut.prototype,"characterLimitClass",null);_.r([_.XX("freeTextValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ut.prototype,"freeTextValueChanged",null);Ut=_.r([_.fJ({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Ut);
_.F(Ut,"yt-free-text-input-flow-step-renderer",function(){if(rI7===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Fo4===void 0&&(Fo4=document.createElement("template"));var e=Fo4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);rI7=B}B=rI7;return B},{mode:2});var NM=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return B};
_.l(NM,_.c);NM.prototype.handleFreeTextFlowStepInputChanged=function(B){_.oF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:B}}])};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],NM.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],NM.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],NM.prototype,"data",void 0);NM=_.r([_.A({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],NM);
_.F(NM,"ytd-free-text-input-flow-step-renderer",function(){if(sKr!==void 0)return sKr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return sKr=B},{mode:1});var gRi;var ZW6;var GU=function(){return _.c.apply(this,arguments)||this};
_.l(GU,_.c);_.r([_.E(),_.Z("design:type",Object)],GU.prototype,"data",void 0);GU=_.r([_.A({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],GU);
_.F(GU,"ytd-metadata-line-renderer",function(){if(ZW6!==void 0)return ZW6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ZW6=B},{mode:1});var yr=function(){return _.c.apply(this,arguments)||this};
_.l(yr,_.c);yr.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yr.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yr.prototype,"isMasthead",void 0);yr=_.r([_.A({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],yr);
_.F(yr,"ytd-media-product-renderer",function(){if(gRi!==void 0)return gRi;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return gRi=B},{mode:1});var mWn;var Sw=function(){return _.c.apply(this,arguments)||this};
_.l(Sw,_.c);Sw.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Sw.prototype.onBillboardImageLoaded=function(){_.OI(this.hostElement,"yt-refit")};
Sw.prototype.onBillboardImageLoaded=Sw.prototype.onBillboardImageLoaded;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Sw.prototype,"data",void 0);_.r([_.Yp("#billboardImage"),_.Z("design:type",Object)],Sw.prototype,"billboardImage",void 0);_.r([_.R_("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sw.prototype,"onBillboardImageLoaded",null);
Sw=_.r([_.A({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Sw);
_.F(Sw,"ytd-billboard-masthead-renderer",function(){if(mWn!==void 0)return mWn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return mWn=B},{mode:1});var $W7;var H4=function(){var B=_.c.apply(this,arguments)||this;B.smallSize=!1;return B};
_.l(H4,_.c);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],H4.prototype,"ytComponentBehaviorType",void 0);_.r([_.E(),_.Z("design:type",Object)],H4.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],H4.prototype,"smallSize",void 0);H4=_.r([_.A({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],H4);
_.F(H4,"ytd-bullet-formatted-string",function(){if($W7!==void 0)return $W7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return $W7=B},{mode:1});var CJr;var MM=function(){return _.c.apply(this,arguments)||this};
_.l(MM,_.c);MM.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],MM.prototype,"data",void 0);MM=_.r([_.A({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],MM);
_.F(MM,"ytd-offer-detail-renderer",function(){if(CJr!==void 0)return CJr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return CJr=B},{mode:1});var PJz;var kk=function(){return _.c.apply(this,arguments)||this};
_.l(kk,_.c);kk.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],kk.prototype,"data",void 0);kk=_.r([_.A({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],kk);
_.F(kk,"ytd-offer-detail-step-renderer",function(){if(PJz!==void 0)return PJz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return PJz=B},{mode:1});var nRe;var D_=function(){var B=_.c.apply(this,arguments)||this;B.isInOfferModule=!1;return B};
_.l(D_,_.c);_.p=D_.prototype;_.p.computeHasEndpoint=function(){var B;return!((B=this.data)==null||!B.onClickCommand)};
_.p.dataChanged=function(){var B;if((B=this.data)==null?0:B.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 B;if((B=this.data)==null?0:B.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.p.handleClickEvent=function(){var B;if((B=this.data)==null?0:B.onClickCommand){var R;this.componentBehavior.resolveCommand((R=this.data)==null?void 0:R.onClickCommand)}};
_.p.onContentKeyDown=function(B){B.key==="Enter"?this.handleClickEvent(B):B.key===" "&&B.preventDefault()};
_.p.onContentKeyUp=function(B){B.key===" "&&this.handleClickEvent(B)};
D_.prototype.dataChanged=D_.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],D_.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],D_.prototype,"data",void 0);_.r([_.E({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],D_.prototype,"hasEndpoint",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],D_.prototype,"isInOfferModule",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],D_.prototype,"dataChanged",null);D_=_.r([_.A({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],D_);
_.F(D_,"ytd-channel-masthead-renderer",function(){if(nRe!==void 0)return nRe;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return nRe=B},{mode:1});var uBr;var f4=function(){var B=_.c.apply(this,arguments)||this;B.thumbnailObjectFit="CONTAIN";B.thumbnailObjectPosition="LEFT";B.isExpanded=!1;return B};
_.l(f4,_.c);_.p=f4.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 B;return((B=this.data)==null?void 0:B.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.p.onExpandBtnClick=function(){var B,R=_.D((B=this.data)==null?void 0:B.showMoreButtonRenderer,lm2);R&&_.WC(_.WK(),R.trackingParams);this.isExpanded=!this.isExpanded};
_.p.onOfferInfoClick=function(B){this.isTapOnOfferInfoContainerEnabled&&(_.g1(_.Az(B)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.ZP(_.Az(B)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.p.onBottomBarClick=function(){this.executeTapCommand()};
_.p.executeTapCommand=function(){var B,R=(B=this.data)==null?void 0:B.tapCommand;R&&this.ytComponentBehavior.resolveCommand(R)};
_.p.resetStates=function(){this.isExpanded=!1};
_.mh.Object.defineProperties(f4.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var B=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),R,V,e;return((R=this.data)==null?void 0:R.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&B&&!!((V=this.data)==null?0:(e=V.benefits)==null?0:e.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((R=_.D((B=this.data)==null?void 0:B.showMoreButtonRenderer,lm2))==null?void 0:R.showMoreButtonTitle)||((V=this.data)==null?void 0:V.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((R=_.D((B=this.data)==null?void 0:B.showMoreButtonRenderer,lm2))==null?void 0:R.showLessButtonTitle)||((V=this.data)==null?void 0:V.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var B;return(B=this.showLessButtonTitle)!=null?B:""}var R;return(R=this.showMoreButtonTitle)!=null?R:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.data)==null?void 0:B.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((R=this.data)==null?0:R.footerTitle)||((V=this.data)==null?0:V.footerSubtitle))}}});
f4.prototype.dataChanged=f4.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],f4.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",String)],f4.prototype,"thumbnailObjectFit",void 0);
_.r([_.E(),_.Z("design:type",String)],f4.prototype,"thumbnailObjectPosition",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Z("design:type",Boolean)],f4.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.r([_.E(),_.Z("design:type",Object)],f4.prototype,"isExpanded",void 0);_.r([_.E(),_.Z("design:type",Object)],f4.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.footerIcon)"}),_.Z("design:type",String)],f4.prototype,"icon",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],f4.prototype,"dataChanged",null);_.r([_.K("data.thumbnail"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],f4.prototype,"hasThumbnail",null);_.r([_.K("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],f4.prototype,"enableExpandButton",null);
_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],f4.prototype,"enableOfferContentIcon",null);_.r([_.K("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f4.prototype,"showMoreButtonTitle",null);_.r([_.K("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f4.prototype,"showLessButtonTitle",null);
_.r([_.K("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],f4.prototype,"expandedBtnText",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],f4.prototype,"enableBottomBar",null);f4=_.r([_.A({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],f4);
_.F(f4,"ytd-offer-card-renderer",function(){if(uBr!==void 0)return uBr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return uBr=B},{mode:1});var OWe;var lk=function(){return _.c.apply(this,arguments)||this};
_.l(lk,_.c);lk.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"}}}};
lk.prototype.onClick=function(B){if(!_.g1(B.composedPath()||[],this.hostElement,["A".toString()])){var R,V;if((B=(V=_.D((R=this.data)==null?void 0:R.actionButton,_.Ii))==null?void 0:V.command)&&!this.ytComponentBehavior.resolveCommand(B)){var e;(e=_.WK())==null||e.clickCommand(B);_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}})}}};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],lk.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lk.prototype,"data",void 0);lk=_.r([_.A({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],lk);
_.F(lk,"ytd-offer-content-renderer",function(){if(OWe!==void 0)return OWe;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return OWe=B},{mode:1});var oj4;var zU=function(){return _.c.apply(this,arguments)||this};
_.l(zU,_.c);zU.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.mh.Object.defineProperties(zU.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null||!B.title)||!((R=this.data)==null||!R.description)}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zU.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zU.prototype,"hasHeaderData",null);zU=_.r([_.A({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],zU);
_.F(zU,"ytd-offer-section-renderer",function(){if(oj4!==void 0)return oj4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return oj4=B},{mode:1});var Bge;var aS=function(){return _.c.apply(this,arguments)||this};
_.l(aS,_.c);
aS.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"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],aS.prototype,"data",void 0);aS=_.r([_.A({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],aS);
_.F(aS,"ytd-offer-selection-step-renderer",function(){if(Bge!==void 0)return Bge;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Bge=B},{mode:1});var R72;var dj=function(){return _.c.apply(this,arguments)||this};
_.l(dj,_.c);dj.prototype.computeStyle=function(B){return B};
dj.prototype.computeImageWidth=function(B){return B==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.r([_.E({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Z("design:type",String)],dj.prototype,"containerStyle",void 0);_.r([_.E({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Z("design:type",String)],dj.prototype,"imageWidth",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],dj.prototype,"data",void 0);
dj=_.r([_.A({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],dj);
_.F(dj,"ytd-confirmation-masthead-renderer",function(){if(R72!==void 0)return R72;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return R72=B},{mode:1});var Vve;var wj=function(){return _.c.apply(this,arguments)||this};
_.l(wj,_.c);wj.prototype.computeStyle=function(B){return B};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],wj.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Z("design:type",String)],wj.prototype,"containerStyle",void 0);wj=_.r([_.A({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],wj);
_.F(wj,"ytd-purchase-complete-detail-renderer",function(){if(Vve!==void 0)return Vve;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Vve=B},{mode:1});var e7i;var TU=function(){var B=_.c.apply(this,arguments)||this;B.scriptsAppended=!1;return B};
_.l(TU,_.c);TU.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"}}}};
TU.prototype.onDataChanged=function(){var B=this.get("data.gtmId");B&&(_.Nq(B,_.vE("GL","")),this.setupConversionTracking())};
TU.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var B=document.createElement("noscript");B.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(B);this.scriptsAppended=!0}};
TU.prototype.onDataChanged=TU.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],TU.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],TU.prototype,"scriptsAppended",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TU.prototype,"onDataChanged",null);TU=_.r([_.A({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],TU);
_.F(TU,"ytd-purchase-complete-step-renderer",function(){if(e7i!==void 0)return e7i;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return e7i=B},{mode:1});var XEi;var xk=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(xk,_.c);xk.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],xk.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],xk.prototype,"darkerDarkTheme",void 0);xk=_.r([_.A({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],xk);
_.F(xk,"ytd-ypc-transaction-error-message-renderer",function(){if(XEi!==void 0)return XEi;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return XEi=B},{mode:1});var pEN;var Yzj;var L4=function(){var B=_.c.apply(this,arguments)||this;B.handlePhoneVerificationSuccess=function(R){if(B.isValidPhoneVerificationCompletionMessageEvent(R)){var V;((V=B.data)==null?0:V.nextStepCommand)&&B.ytComponentBehavior.resolveCommand(B.data.nextStepCommand)}};
return B};
_.l(L4,_.c);L4.prototype.isValidPhoneVerificationCompletionMessageEvent=function(B){if(B.data!=="yt-phone-verification-complete")return!1;B=_.mn(B.origin);return B!==null&&B.includes("youtube.com")};
L4.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
L4.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],L4.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],L4.prototype,"data",void 0);L4=_.r([_.fJ({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],L4);
_.F(L4,"yt-feature-enablement-soft-entry-renderer",function(){if(Yzj===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;pEN===void 0&&(pEN=document.createElement("template"));var e=pEN;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Yzj=B}B=Yzj;return B},{mode:1});var h7m;var tvr;var Wn4;var bQj;var v4=function(){return _.c.apply(this,arguments)||this};
_.l(v4,_.c);_.r([_.E(),_.Z("design:type",Object)],v4.prototype,"data",void 0);v4=_.r([_.fJ({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],v4);
_.F(v4,"yt-benefits-item-renderer",function(){if(bQj===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Wn4===void 0&&(Wn4=document.createElement("template"));var e=Wn4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);bQj=B}B=bQj;return B},{mode:2});var JSe;var jPN;var K4=function(){return _.c.apply(this,arguments)||this};
_.l(K4,_.c);K4.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
K4.prototype.computeisWithoutPadding=function(){var B;return((B=this.data)==null?void 0:B.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],K4.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Z("design:type",Boolean)],K4.prototype,"isWithoutPadding",void 0);K4=_.r([_.fJ({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],K4);
_.F(K4,"yt-benefits-section-renderer",function(){if(jPN===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;JSe===void 0&&(JSe=document.createElement("template"));var e=JSe;V.call(R,e.content.cloneNode(!0),B.content.firstChild);jPN=B}B=jPN;return B},{mode:2});var IS=function(){return _.c.apply(this,arguments)||this};
_.l(IS,_.c);IS.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
IS.prototype.computeisUsingLargeWidth=function(){var B;return((B=this.data)==null?void 0:B.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],IS.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Z("design:type",Boolean)],IS.prototype,"isUsingLargeWidth",void 0);IS=_.r([_.fJ({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],IS);
_.F(IS,"yt-benefits-flow-step-renderer",function(){if(tvr===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;h7m===void 0&&(h7m=document.createElement("template"));var e=h7m;V.call(R,e.content.cloneNode(!0),B.content.firstChild);tvr=B}B=tvr;return B},{mode:2});var UNU;var Ng4;var Et=function(){return _.c.apply(this,arguments)||this};
_.l(Et,_.c);Et.prototype.checkIsUsingLargeWidth=function(){var B;return((B=this.data)==null?void 0:B.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.r([_.E(),_.Z("design:type",Object)],Et.prototype,"data",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.r([_.E({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Z("design:type",Boolean)],Et.prototype,"isUsingLargeWidth",void 0);Et=_.r([_.fJ({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Et);
_.F(Et,"yt-confirmation-flow-step-renderer",function(){if(Ng4===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;UNU===void 0&&(UNU=document.createElement("template"));var e=UNU;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Ng4=B}B=Ng4;return B},{mode:2});var GMe;var ySU;var Qr=function(){return _.c.apply(this,arguments)||this};
_.l(Qr,_.c);_.r([_.E(),_.Z("design:type",Object)],Qr.prototype,"data",void 0);Qr=_.r([_.fJ({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Qr);
_.F(Qr,"yt-info-flow-step-renderer",function(){if(ySU===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;GMe===void 0&&(GMe=document.createElement("template"));var e=GMe;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ySU=B}B=ySU;return B},{mode:2});var Szz;var HQ4;var qM=function(){return _.c.apply(this,arguments)||this};
_.l(qM,_.c);_.r([_.E(),_.Z("design:type",Object)],qM.prototype,"data",void 0);qM=_.r([_.fJ({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],qM);
_.F(qM,"yt-info-list-flow-step-renderer",function(){if(HQ4===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Szz===void 0&&(Szz=document.createElement("template"));var e=Szz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);HQ4=B}B=HQ4;return B},{mode:2});var Mv6=_.sx(function(B){var R=B.data;return _.N("styled-text-view-model",{class:_.XE("ytStyledTextViewModelHost",function(){return sJU(R().fontAttributes)},function(){return ixe(R().color)})},_.N(_.Hr,{text:function(){return R().text},
ariaLabel:function(){var V,e,X;return(X=(V=R().accessibility)==null?void 0:(e=V.accessibilityData)==null?void 0:e.label)!=null?X:""}}))},"Re");
Mv6.idomCompat=!0;var kMz=_.sx(function(B){var R=function(){var X,Y,t,b;return(b=(t=(X=B.alt)==null?void 0:X.call(B))!=null?t:(Y=B.data().accessibilityData)==null?void 0:Y.label)!=null?b:""},V=function(){return B.data().imageWidth},e=function(){return B.data().imageHeight};
return _.N("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.N(_.H,{cond:function(){var X=B.data();if(X){var Y,t,b;var J=((Y=_.Oz().resolve(_.uj(_.E5)))==null?0:Y())?(t=X.imageDark)!=null?t:X.imageLight:(b=X.imageLight)!=null?b:X.imageDark}else J=void 0;return J},
then:function(X){return _.N(_.ia,Object.assign({},B,{data:X,alt:R,targetWidth:V,targetHeight:e,preserveHeight:!0,preserveWidth:!0}))}}))},"Se");
kMz.idomCompat=!0;var c4=_.sx(function(B){var R=B.data;B=_.AM(function(){return R().slots},[]);
var V=_.AM(function(){return R().layoutProperties},{}),e=_.Oz().resolve(_.q9);
return _.N("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:Elr(V,e)},_.N(_.yh,{each:B,keyBy:"INDEX"},function(X){return _.N("div",{class:"ytContainerLayoutViewModelSlot",style:Elr(function(){return X().layoutProperties},e)},_.N(_.wb,{data:function(){return X().contents}},{containerLayoutViewModel:c4,
badgeViewModel:_.Za,buttonViewModel:_.qo,styledTextViewModel:Mv6,contentPreviewImageViewModel:function(Y){return _.N(_.mZ,{data:Y.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(Y){return _.N(kMz,{data:Y.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Te");
c4.idomCompat=!0;var DN7=_.sx(function(B){var R=B.data;var V=B.stateFns;var e=function(){var G=R(),y=G.productId;return!(!G.clearGroupId&&!y)},X=function(){var G=R(),y=G.clearGroupId;
return(G=G.productId)?V().isProductSelected(G):y?V().getSelectedProductByGroupId(y)==null:!1},Y=function(){var G=R(),y=G.clearGroupId;
if(G=G.productId)V().onProductSelected(G);else if(y)V().onClearGroupSelected(y)},t=function(){var G=R(),y=G.clearGroupId;
if(G=G.productId){var S;return"group:"+(((S=V().getProductById(G))==null?void 0:S.groupId)||"")}return y?"group:"+y:""},b=_.AM(function(){return R().header},[]),J=_.AM(function(){return R().body},[]);
return _.N("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.N(_.H,{cond:function(){return b().length>0||e()},
then:function(){return _.N("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.N("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.N(_.wb,{data:b},{containerLayoutViewModel:function(G){return _.N("div",{class:"ytPdpCardSectionViewModelContentItem"},_.N(c4,{data:G.data}))},
styledTextViewModel:function(G){return _.N("div",{class:"ytPdpCardSectionViewModelContentItem"},_.N(Mv6,{data:G.data}))}})),_.N(_.H,{cond:e,
then:function(){return _.N("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.N(_.kr,{checked:X,name:t,onChange:Y}))}}))}}),_.N(_.H,{cond:function(){return J().length>0},
then:function(){return _.N("div",null,_.N(_.wb,{data:J},{containerLayoutViewModel:function(G){return _.N("div",{class:"ytPdpCardSectionViewModelContentItem"},_.N(c4,{data:G.data}))}}))}}))},"Ue");
DN7.idomCompat=!0;var fk4=_.sx(function(B){var R=B.data;var V=B.stateFns;return _.N("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.N(_.H,{cond:function(){return R().banner},
then:function(e){return _.N("div",{class:"ytPdpCardViewModelBanner"},_.N(_.Hr,{text:e}))}}),_.N(_.wb,{data:function(){return R().sections}},{pdpCardSectionViewModel:function(e){e=e.data;
var X={};return _.N("div",{class:_.XE("ytPdpCardViewModelSectionContainer",(X.ytPdpCardViewModelShowDividers=function(){return R().showDividers},X))},_.N(DN7,{data:e,
stateFns:V}))}}))},"Ve");
fk4.idomCompat=!0;var lkm=_.sx(function(B){var R=B.data;var V=B.isOverlay;B={};return _.N("pdp-masthead-view-model",{class:_.XE("ytPdpMastheadViewModelHost",(B.ytPdpMastheadViewModelIsOverlay=V,B))},_.N(_.wb,{data:function(){return R().image}},{contentPreviewImageViewModel:_.mZ,
themedImageViewModel:function(e){return _.N(kMz,{data:e.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.N(_.H,{cond:function(){return R().title},
then:function(e){return _.N("h1",{class:"ytPdpMastheadViewModelHeading"},_.N(_.Hr,{text:e,isOverlay:V}))}}),_.N(_.yh,{each:function(){var e;
return(e=R().finePrint)!=null?e:[]}},function(e){return _.N("div",{class:"ytPdpMastheadViewModelFinePrint"},_.N(_.Hr,{text:e,
isOverlay:V}))}))},"We");
lkm.idomCompat=!0;var z72=_.sx(function(B){var R=B.data;var V=B.stateFns;return _.N("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.N(_.yh,{each:function(){var e=V().getSelectedPricingOptions().map(function(Y){return Y.pricingOptionId}),X=V().getSelectedProductByGroupId(R().groupId);
return X?X.pricingOptions.map(function(Y){return{pricingOption:Y,isSelected:e.includes(Y.pricingOptionId)}}):(_.v5(Error("Gj`"+R().groupId)),[])},
keyBy:"INDEX"},function(e){return _.N("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.N("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.N(_.wb,{data:function(){return e().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:c4})),_.N("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.N(_.kr,{checked:function(){return e().isSelected},
onClick:function(){V().onPricingOptionSelected(e().pricingOption.pricingOptionId);var X=e().pricingOption.onSelectPricingOption;if(X=_.dl(X)){var Y;(Y=_.Oz().resolve(_.oC))==null||Y.resolveCommand(X)}}})))}))},"Xe");
z72.idomCompat=!0;var ake=_.sx(function(B){var R=B.data;var V=B.stateFns;return _.N("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.N(_.wb,{data:function(){var e,X;return(X=(e=V().getSelectedPricingOptions()[0])==null?void 0:e.primaryButton)!=null?X:R().emptyStateButton}},{buttonViewModel:_.qo}))},"Ye");
ake.idomCompat=!0;var dNU=_.sx(function(B){var R=B.stateFns;return _.N("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.N(_.wb,{data:function(){return R().getSelectedPricingOptions().flatMap(function(V){return V.summaryLines}).filter(function(V){return!!V})}},{containerLayoutViewModel:function(V){return _.N("div",{class:"ytPdpSummaryViewModelLineItem"},_.N(c4,{data:V.data}))}}))},"Ze");
dNU.idomCompat=!0;var wEz=_.sx(function(B){function R(L){var Q=t();_.cc(_.v7("pdpStateEntity",Q,{key:Q,selectedPricingOptions:L}))}
var V=B.data;var e=B.internalScrolling;var X=B.stateFnsForTesting;var Y=_.AM(function(){return V().allProducts},[]),t=_.AM(function(){return V().pdpStateEntityKey},""),b=_.No(FOe,t),J=_.NW(function(){_.wA(!0);
var L;return(L=X==null?void 0:X())!=null?L:Pg4(b,Y,R)},void 0,"POBqwe"),G=_.AM(function(){return V().body},[]),y=_.AM(function(){return V().columnBreakHints},[]),S=function(){return V().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},M=function(){return S()||V().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},f=_.NW(function(){var L=_.OQ(V().background),Q;
if(L==null?0:(Q=L.sources)==null?0:Q.length){var q=q===void 0?!0:q;L=_.x8u(void 0,L.sources,void 0,q,q?1E3:void 0,q?void 0:1E3)}else L=null;return L},void 0,"BkCmEd");
B=_.jQ({"--pdp-view-model-background":function(){return f()?"url("+f()+")":void 0}});
var z={};e=_.XE("ytPdpViewModelHost",(z.ytPdpViewModelHasBackground=function(){return M()||!!f()},z.ytPdpViewModelHasDarkBackground=M,z.ytPdpViewModelHasScrim=S,z.ytPdpViewModelInternalScrolling=_.AM(e,!1),z));
var T=function(L){var Q={};return _.XE("ytPdpViewModelItem",(Q.ytPdpViewModelFullBleed=function(){return _.DJS(L())==="dividerViewModel"||_.DJS(L())==="sectionHeaderViewModel"},Q.ytPdpViewModelNoVerticalPadding=function(){return _.DJS(L())==="sectionHeaderViewModel"},Q))};
_.zM(function(){var L=V().onStartCommand;if(L&&(L=_.dl(L))){var Q;(Q=_.Oz().resolve(_.oC))==null||Q.resolveCommand(L)}});
return _.N("pdp-view-model",{class:e,style:B},_.N("div",{class:"ytPdpViewModelColumnContainer"},_.N(_.yh,{each:function(){return nl7(G(),y())},
keyBy:"INDEX"},function(L){return _.N("div",{class:"ytPdpViewModelColumn"},_.N(_.wb,{data:L},{containerLayoutViewModel:function(Q,q){Q=Q.data;return _.N("div",{class:T(function(){return L()[q()]})},_.N(c4,{data:Q}))},
dividerViewModel:function(Q,q){Q=Q.data;return _.N("div",{class:T(function(){return L()[q()]})},_.N(_.A9b,{data:Q}))},
pdpCardViewModel:function(Q,q){Q=Q.data;return _.N("div",{class:T(function(){return L()[q()]})},_.N(fk4,{data:Q,
stateFns:J}))},
pdpMastheadViewModel:function(Q,q){Q=Q.data;return _.N("div",{class:T(function(){return L()[q()]})},_.N(lkm,{data:Q,
isOverlay:M}))},
pdpPricingOptionSelectorViewModel:function(Q,q){Q=Q.data;return _.N("div",{class:T(function(){return L()[q()]})},_.N(z72,{data:Q,
stateFns:J}))},
pdpPrimaryButtonViewModel:function(Q,q){Q=Q.data;return _.N("div",{class:T(function(){return L()[q()]})},_.N(ake,{data:Q,
stateFns:J}))},
pdpSummaryViewModel:function(Q,q){Q=Q.data;return _.N("div",{class:T(function(){return L()[q()]})},_.N(dNU,{data:Q,
stateFns:J}))},
sectionHeaderViewModel:function(Q,q){Q=Q.data;return _.N("div",{class:T(function(){return L()[q()]})},_.N(_.on,{data:Q}))}}))})))},"$e");
wEz.idomCompat=!0;_.mR(wEz,"pdp-view-model",{props:{data:_.qq,stateFnsForTesting:_.Z9,internalScrolling:_.Z9}});var Tgr=_.sx(function(B){var R=B.data;var V=B.className;var e=_.No(_.XM,function(){return R().flowStateEntityKey});
return _.N("ytm-premium-purchase-button-renderer",{class:_.XE("yt-premium-purchase-button-renderer",V)},_.N(_.wb,{data:function(){var X;return(X=_.D(e(),B4))==null?void 0:X.primaryButtonOverride}},{buttonRenderer:function(X){return _.N(_.IW,{data:X.data,
className:V})},
buttonViewModel:function(X){return _.N(_.qo,{data:X.data,className:V})}}))},"af");
Tgr.idomCompat=!0;var xNe=_.sx(function(B){var R=B.data;var V=function(){return uD4(R().style)},e=_.XE("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",V),X=_.XE("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",V);
return _.N("yt-flow-bottom-bar-renderer",{class:_.XE("yt-flow-bottom-bar-renderer",B.className,V)},_.N(_.wb,{data:function(){return R().secondaryButton}},{buttonRenderer:function(Y){return _.N(_.IW,{data:Y.data,
className:X})},
buttonViewModel:function(Y){return _.N(_.qo,{data:Y.data,className:X})},
premiumPurchaseButtonRenderer:function(Y){return _.N(Tgr,{data:Y.data,className:X})}}),_.N(_.wb,{data:function(){return R().primaryButton}},{buttonRenderer:function(Y){return _.N(_.IW,{data:Y.data,
className:e})},
buttonViewModel:function(Y){return _.N(_.qo,{data:Y.data,className:e})},
premiumPurchaseButtonRenderer:function(Y){return _.N(Tgr,{data:Y.data,className:e})}}))},"bf");
xNe.idomCompat=!0;_.mR(xNe,"yt-flow-bottom-bar-renderer",{props:{data:_.qq,className:_.qq}});var Lnj=_.sx(function(B){return _.N("yt-offer-summary-renderer",{class:_.XE(B.className,"ytOfferSummaryRendererHost")},_.N("div",{class:"ytOfferSummaryRendererTextContainer"},_.N("div",{class:"ytOfferSummaryRendererEyebrowText"},_.N(_.Hr,{text:function(){return B.data().eyebrowText}})),_.N("div",{class:"ytOfferSummaryRendererTitle"},_.N(_.Hr,{text:function(){return B.data().title}})),_.N("div",{class:"ytOfferSummaryRendererSubtitle"},_.N(_.Hr,{text:function(){return B.data().subtitle}})),_.N("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.N(_.yh,{each:function(){var R;
return(R=B.data().featureListData)!=null?R:[]}},function(R){var V;
return _.N("div",{class:"ytOfferSummaryRendererFeatureList"},_.N(_.Us,{icon:(V=R.icon)==null?void 0:V.iconType,className:R.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.N("div",{class:"ytOfferSummaryRendererFeatureListText"},_.N(_.Hr,{text:R.text})))})),_.N("div",{class:"ytOfferSummaryRendererDescription"},_.N(_.Hr,{text:function(){return B.data().description}}))))},"cf");_.mR(_.sx(function(B){var R={};R=_.XE("ytOfferSummaryFlowStepRendererHost",(R.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=B.shouldDisableHeaderTopMargin,R));return _.N("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:R},_.N("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.N("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.N(_.Hr,{text:function(){return B.data().header}})),_.N("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.N(_.Hr,{text:function(){return B.data().subtitle}}))),_.N("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.N(_.wb,{data:function(){return B.data().offerSummary}},{offerSummaryRenderer:function(V){return _.N(Lnj,{data:V.data,
className:B.flowClassName})}})))},"df"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Z9,
flowClassName:_.Z9,flowStateEntityKey:_.Z9,shouldDisableHeaderTopMargin:_.Z9}});var vj4=_.sx(function(B){var R=B.data;var V=B.className;var e=B.flowStateEntityKey;var X=B.selectionStepStyle;B=_.Wr(function(J){var G=R(),y=e==null?void 0:e();J.target&&(J.stopPropagation(),J=y||"",y=_.XM(_.QL().getState(),J),G=Object.assign({},y,{premiumPurchaseFlowState:{selectedOptionId:G.optionId,primaryButtonOverride:G.primaryButtonOverride}}),_.QL().dispatch(_.SX("flowStateEntity",J,G)));return!1});
var Y=function(){return(e==null?void 0:e())||""},t=_.No(_.XM,Y);
_.zM(function(){var J=R(),G=Y(),y=t();!_.D(y,B4)&&J.defaultSelected&&G!==""&&J.primaryButtonOverride&&Oxi(J.optionId||"",G,J.primaryButtonOverride,y)});
var b={};return _.N("ytm-option-item-renderer",{"on:click":B,class:_.XE(V,"ytm-option-item-renderer",(b["ytm-option-item-renderer--lp2-style"]=function(){return(X==null?void 0:X())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},b))},_.N("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.N("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var J=R(),G=Y(),y=t();y=_.D(y,B4);return(y?(y==null?void 0:y.selectedOptionId)||"":J.defaultSelected&&G!==""?(J==null?void 0:J.optionId)||"":"")===R().optionId},
name:("input"+_.La(_.HZ)).toString()})),_.N("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.N(_.H,{cond:function(){return R().eyebrowText},
then:function(){return _.N("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.N(_.Hr,{text:function(){return R().eyebrowText}}))}}),_.N("div",{class:"ytm-option-item-renderer__option-item-title"},_.N(_.Hr,{text:function(){return R().title}})),_.N("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.N(_.Hr,{text:function(){return R().subtitle}})),_.N("div",{class:"ytm-option-item-renderer__option-item-description"},_.N(_.Hr,{text:function(){return R().description}}))))},
"ef");var Kne=_.sx(function(B){var R=B.data;var V=B.flowClassName;var e=B.flowStateEntityKey;var X=B.selectionStepStyle;return _.N("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.N("div",{class:"yt-option-section-renderer__option-section-header-section"},_.N("div",{class:"yt-option-section-renderer__option-section-header"},_.N(_.Hr,{text:function(){return R().title}}),_.N(_.wb,{data:function(){return R().titleBadge}},{badgeViewModel:function(Y){return _.N(_.Za,
{data:Y.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.N(_.H,{cond:function(){return R().subtitle},
then:function(){return _.N("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.N(_.Hr,{text:function(){return R().subtitle}}))}}),_.N(_.H,{cond:function(){return R().featureListData},
then:function(Y){return _.N("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.N(_.yh,{each:Y},function(t){var b;return _.N("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.N(_.Us,{icon:(b=t.icon)==null?void 0:b.iconType,className:t.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.N("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.N(_.Hr,{text:t.text})))}))}}),_.N(_.yh,{each:function(){return R().sectionDisclaimers||[]}},function(Y){return _.N("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.N(_.Hr,{text:Y}))})),_.N(_.wb,{data:function(){return R().optionItems}},{optionItemRenderer:function(Y){return _.N("div",{class:"yt-option-section-renderer__option-item"},_.N(vj4,{data:Y.data,
className:V,flowStateEntityKey:e,selectionStepStyle:X}))}}),_.N(_.H,{cond:function(){return R().offerText},
then:function(){return _.N("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.N(_.Hr,{text:function(){return R().offerText}}))}}))},"ff");
Kne.idomCompat=!0;var Ikm=_.sx(function(B){var R=B.data;var V=B.flowClassName;var e=B.flowStateEntityKey;B=B.isDesktop;var X=function(){var G;return(G=R().flowStateEntityKey)!=null?G:e==null?void 0:e()},Y=function(){return(X==null?void 0:X())||""},t=function(){return R().style},b=_.No(_.XM,Y);
_.zM(function(){var G=R(),y=Y(),S=b();!_.D(S,B4)&&G.noPreselect&&y!==""&&G.defaultButtonOverride&&Oxi("default",y,G.defaultButtonOverride,S)});
var J={};return _.N("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.XE("ytm-option-selection-flow-step-renderer",(J["ytm-option-selection-flow-step-renderer--desktop"]=B,J["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return R().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},J))},_.N("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"},
_.N("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.N(_.Hr,{text:function(){return R().header}})),_.N("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.N(_.Hr,{text:function(){return R().subtitle}}))),_.N(_.wb,{data:function(){return R().optionItems||[]}},{optionItemRenderer:function(G){return _.N("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.N(vj4,{data:G.data,
className:V,flowStateEntityKey:X,selectionStepStyle:t}))},
optionSectionRenderer:function(G){return _.N("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.N(Kne,{data:G.data,flowClassName:V,flowStateEntityKey:X,selectionStepStyle:t}))}}))},"gf");
Ikm.idomCompat=!0;_.mR(Ikm,"yt-option-selection-flow-step-renderer",{props:{data:_.qq,flowClassName:_.qq,flowStateEntityKey:_.qq,isDesktop:_.qq}});var o0r,Bzr;_.A1=_.sx(function(B){var R=_.ip(B,{type:1,disablePadding:!1,disablePrimaryButton:!1}),V=R.data,e=R.type;B=R.disablePadding;var X=R.disablePrimaryButton,Y=R.onClickPrimaryButton,t=function(){return V().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},b=function(){return{disabled:X(),
state:X()?"disabled":"active"}},J=function(){return V().leadingLabel||V().trailingLabel};
R={};return _.N("yt-panel-footer-view-model",{class:_.XE("yt-panel-footer-view-model-wiz",(R["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return V().shouldHideDivider},R["yt-panel-footer-view-model-wiz--disable-padding"]=B,R))},_.N(_.H,{cond:J,
then:function(){var G={},y={};return _.N("div",{class:_.XE("yt-panel-footer-view-model-wiz__text-row",(G["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var S=V();return!(!S.leadingLabel&&!S.trailingLabel||!S.primaryButton&&!S.secondaryButton)},G))},_.N(_.Hr,{text:function(){return V().leadingLabel},
className:_.XE((y["yt-panel-footer-view-model-wiz--text-padding"]=J,y))}),_.N(_.Hr,{text:function(){return V().trailingLabel}}))}}),_.N(_.H,{cond:t,
then:function(){var G={};return _.N("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.N("div",{class:_.XE("yt-panel-footer-view-model-wiz__primary-button",(G["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return V().secondaryButton},G))},_.N(_.wb,{data:function(){return V().primaryButton}},{buttonViewModel:function(y){return _.N(_.qo,{data:y.data,
buttonOverrides:b,onClick:Y})}})),_.N(_.wb,{data:function(){return V().secondaryButton}},{buttonViewModel:_.qo}))}}),_.N(_.H,{cond:function(){return!t()},
then:function(){var G={},y={},S={};return _.N("div",{class:_.XE("yt-panel-footer-view-model-wiz__button-row",(G["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===e()},G))},_.N("div",{class:_.XE("yt-panel-footer-view-model-wiz__button-row--left-button",(y["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===e()},y["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!V().secondaryButton||0===e()},y["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===e()},y))},_.N(_.wb,{data:function(){return V().secondaryButton}},{buttonViewModel:_.qo})),_.N("div",{class:_.XE("yt-panel-footer-view-model-wiz__primary-button",(S["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===e()||1===e()},S["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===e()},S))},_.N(_.wb,{data:function(){return V().primaryButton}},{buttonViewModel:function(M){return _.N(_.qo,{data:M.data,
buttonOverrides:b,onClick:Y})}})))}}))},"hf");
_.A1.idomCompat=!0;_.Ejo=_.sx(function(B){B=_.ip(B,{disablePadding:!1});var R=B.data,V=B.disablePadding;B=_.XnN(function(){return R().formId});
var e=B.onSubmit,X=B.isValid,Y=B.isSubmitting;return _.N("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.N(_.wb,{data:function(){return R().panelFooter}},{panelFooterViewModel:function(t){return _.N(_.A1,{data:t.data,
onClickPrimaryButton:function(){e()},
disablePrimaryButton:function(){return!X()||Y()},
disablePadding:V})}}))},"jf");_.mR(_.Ejo,"yt-form-footer-view-model",{props:{data:_.qq,disablePadding:_.qq}});_.mR(_.sx(function(B){return _.N("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.N("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.N(_.H,{cond:function(){var R;return(R=B.data())==null?void 0:R.image},
then:function(R){return _.N(_.ia,{data:R,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.N("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.N(_.Hr,{text:function(){var R;
return(R=B.data())==null?void 0:R.title}})),_.N("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.N(_.Hr,{text:function(){var R;
return(R=B.data())==null?void 0:R.subtitle}})),_.N("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.N(_.wb,{data:function(){var R;
return(R=B.data())==null?void 0:R.viewTipsButton}},{buttonViewModel:_.qo}))))},"kf"),"yt-contributor-zero-state-view-model",{props:{data:_.qq}});var QP6=_.sx(function(B){var R=_.No(pn4,_.AM(function(){var V;return(V=B.data())==null?void 0:V.noteFeedEntityKey},""));
return _.N("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.N("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.N("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.N(_.H,{cond:function(){var V,e;return(V=B.data())==null?void 0:(e=V.noteData)==null?void 0:e.isPinned},
then:function(){return _.N(_.Us,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.N(_.Hr,{text:function(){var V,e;
return(V=B.data())==null?void 0:(e=V.noteData)==null?void 0:e.headerText}}),_.N("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.N(_.Hr,{text:function(){var V,e;
return(V=B.data())==null?void 0:(e=V.noteData)==null?void 0:e.delimiter}})),_.N(_.Hr,{text:function(){var V,e;
return(V=R())==null?void 0:(e=V.contributorNote)==null?void 0:e.publishedTimeText}})),_.N(_.wb,{data:function(){var V,e,X,Y=(V=B.data())==null?void 0:V.noteData;
V=(e=R())==null?void 0:(X=e.contributorNote)==null?void 0:X.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:Y.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:Y.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:Y.deleteDialogTitle}]},dialogMessages:[{runs:[{text:Y.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:Y.deleteActionText}]},command:{performCommentActionEndpoint:{action:V}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:Y.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.N("div",{class:"ytNoteViewModelNoteContent"},_.N(_.Hr,{text:function(){var V,e;
return(V=R())==null?void 0:(e=V.contributorNote)==null?void 0:e.text}})))},"lf");
QP6.idomCompat=!0;_.mR(QP6,"yt-note-view-model",{props:{data:_.qq}});var ik=_.sx(function(B){var R=_.ip(B,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),V=R.label,e=R.text,X=R.placeholder,Y=R.hint;B=R.rows;var t=R.overflowStyle,b=R.outline,J=R.disabled,G=R.disableNewLines,y=R.characterLimit,S=R.validation,M=R.onInput,f=_.Zh();R=_.h(_.J3(function(){return e()}));
var z=R.next().value,T=R.next().value;R=_.h(_.WU(!1,void 0,"fXvinf"));var L=R.next().value,Q=R.next().value,q=function(){Q(!0)},m=function(){Q(!1)};
_.zM(function(){var cd=f.value,ES=t(),$d=z();ES==="expand-vertically"&&$d&&YJi(cd);f.value.addEventListener("focusin",q);f.value.addEventListener("focusout",m)});
_.aK(function(){f.value.removeEventListener("focusin",q);f.value.removeEventListener("focusout",m)});
var g=function(){var cd;return(cd=S())==null?void 0:cd.validate(z())},Vu=function(){return y()&&!g()&&z().length>y().maxChars},n=function(){return!!g()||Vu()};
R=_.Wr(function(cd){if(!cd.currentTarget)return!1;cd=cd.currentTarget;T(cd.value);t()==="expand-vertically"&&YJi(cd);M==null||M(cd.value);return!0});
var Yd=_.Wr(function(cd){G()&&cd.key==="Enter"&&cd.preventDefault();return!1}),kd=_.Wr(function(){f.value.focus()}),a5=function(){return X()||V()},lo={},io={},vd={};
return _.N("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.N("div",{class:_.XE("ytStandardsTextareaShapeTextareaContainer",(lo.ytStandardsTextareaShapeTextareaContainerOutline=b,lo.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=J,lo.ytStandardsTextareaShapeTextareaContainerOutlineError=n,lo)),"on:click":kd},_.N("label",{class:_.XE("ytStandardsTextareaShapeLabel",(io.ytStandardsTextareaShapeLabelFocused=L,io.ytStandardsTextareaShapeLabelDisabled=J,io.ytStandardsTextareaShapeLabelError=
function(){return n()&&!J()},io.ytStandardsTextareaShapeLabelHidden=function(){return!L()&&!z()&&!!a5()},io))},V),_.N("div",{class:_.XE("ytStandardsTextareaShapePlaceholder",(vd.ytStandardsTextareaShapePlaceholderVisible=function(){return!L()&&!z()},vd)),
"aria-hidden":"true"},a5),_.N("textarea",{el:f,class:"ytStandardsTextareaShapeTextarea",rows:B,disabled:J,placeholder:a5,"on:input":R,"on:keydown":Yd},z)),_.N(_.H,{cond:function(){return Y()&&!n()},
then:function(){var cd={};return _.N("div",{class:_.XE("ytStandardsTextareaShapeHint",(cd.ytStandardsTextareaShapeHintDisabled=J,cd))},_.N("div",{class:"ytStandardsTextareaShapeHintHintMessage"},Y))}}),_.N(_.H,{cond:g,
then:function(){return _.N(qzU,{disabled:J},_.N("div",{class:"ytStandardsTextareaShapeErrorMessage"},g))}}),_.N(_.H,{cond:y,
then:function(cd){return _.N(_.H,{cond:Vu,then:function(){return _.N(qzU,{disabled:J},_.N("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return cd().errorMessage}),_.N("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return z().length+"/"+cd().maxChars}))}})}}))},"mf");
ik.idomCompat={callbacks:{onInput:!0}};var qzU=_.sx(function(B){var R={};return _.N("div",{class:_.XE("ytStandardsTextareaShapeError",(R.ytStandardsTextareaShapeErrorDisabled=B.disabled,R)),role:"alert"},_.N(_.Us,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),B.children)},"nf");_.cSm=_.sx(function(B){var R=B.data;return _.N("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.N(ik,{text:B.text,label:function(){var V;return(V=R().contentProperties)==null?void 0:V.labelText},
placeholder:function(){var V;return(V=R().contentProperties)==null?void 0:V.placeholderText},
hint:function(){var V;return(V=R().contentProperties)==null?void 0:V.hintText},
outline:function(){var V;return!((V=R().displayProperties)==null?0:V.hideBorder)},
overflowStyle:function(){var V;return((V=R().displayProperties)==null?0:V.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:B.disabled,disableNewLines:function(){var V;return(V=R().displayProperties)==null?void 0:V.disableNewLines},
onInput:B.onInput,characterLimit:B.characterLimit,validation:B.validation,rows:function(){var V;return(V=R().displayProperties)==null?void 0:V.rows}}))},"of");_.AS4=_.sx(function(B){var R=B.data;return _.N("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.N(ik,{text:B.text,label:function(){var V;return(V=R().contentProperties)==null?void 0:V.labelText},
placeholder:function(){var V;return(V=R().contentProperties)==null?void 0:V.placeholderText},
hint:function(){var V;return(V=R().contentProperties)==null?void 0:V.hintText},
outline:function(){var V;return!((V=R().displayProperties)==null?0:V.hideBorder)},
overflowStyle:function(){var V;return((V=R().displayProperties)==null?0:V.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var V;return(V=R().displayProperties)==null?void 0:V.disableNewLines},
onInput:B.onInput,characterLimit:B.characterLimit,validation:B.validation,rows:function(){var V;return(V=R().displayProperties)==null?void 0:V.rows}}))},"pf");var iQm=_.sx(function(B){var R=_.h(_.J3(function(){var a5,lo;return((a5=B.data().structuredContextNoteFormSchema)==null?0:(lo=a5.initialValues)==null?0:lo.noteBody)?B.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),V=R.next().value,e=R.next().value;
R=_.h(_.J3(function(){B.data();return!1}));
var X=R.next().value,Y=R.next().value;R=_.h(_.J3(function(){B.data();return!1}));
var t=R.next().value,b=R.next().value;R=_.h(_.J3(function(){var a5,lo;return((a5=B.data().structuredContextNoteFormSchema)==null?0:(lo=a5.initialValues)==null?0:lo.timestamp)?B.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var J=R.next().value,G=R.next().value;R=_.h(_.J3(function(){B.data();return!1}));
var y=R.next().value,S=R.next().value;R=_.h(_.J3(function(){var a5,lo;return((a5=B.data().structuredContextNoteFormSchema)==null?0:(lo=a5.initialValues)==null?0:lo.sources)?[B.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var M=R.next().value,f=R.next().value;R=_.h(_.J3(function(){B.data();return!1}));
var z=R.next().value,T=R.next().value;R=_.h(_.J3(function(){return!1}));
var L=R.next().value,Q=R.next().value;_.zM(function(){var a5;_.eQn((a5=B.data().structuredContextNoteFormSchema)==null?void 0:a5.id,{isSubmitting:L,onSubmit:function(){Q(!0);var lo=G$n(V(),J(),M(),B.data()),io=_.Oz().resolve(_.oC);lo&&io&&io.resolveCommand(lo,{commandController:{onSuccess:function(){Q(!1)}}})},
isValid:function(){return X()&&!t()&&!y()&&!z()}})});
var q=function(a5){if(a5!==void 0&&(e(a5),!X()&&a5.length>0&&Y(!0),X())){var lo=Wq4(B.data());if(lo){var io=lo.minLength;lo=lo.maxLength;io&&a5.length<io?b(!0):lo&&a5.length>lo?b(!0):b(!1)}}},m=function(a5){if(a5!==void 0){G(a5);
if(a5.length>0){var lo,io,vd,cd,ES=J4e((lo=B.data())==null?void 0:(io=lo.structuredContextNoteFormSchema)==null?void 0:(vd=io.fieldSchemas)==null?void 0:(cd=vd.timestamp)==null?void 0:cd.validationSchema);if(ES&&(lo=ES.regex)&&!(new RegExp(lo)).test(a5)){S(!0);return}}S(!1)}},g=function(a5){if(a5!==void 0){var lo=a5.split(/[ \n]/).map(function(io){return io.trim()});
f(lo);if(a5.length>0)for(a5=_.h(lo),lo=a5.next();!lo.done;lo=a5.next())if(!Nze(lo.value)){T(!0);return}T(!1)}},Vu=function(){return{validate:function(a5){if(X()){var lo=Wq4(B.data());
if(lo){var io=lo.minLength;lo=lo.translations;if(io&&a5.length<io)return lo==null?void 0:lo.minLengthErrorMessage}}}}},n=function(){var a5=Wq4(B.data()),lo=a5==null?void 0:a5.maxLength,io;
a5=a5==null?void 0:(io=a5.translations)==null?void 0:io.maxLengthErrorMessage;if(lo&&a5)return{maxChars:lo,errorMessage:a5}},Yd=function(){return{validate:function(a5){if(a5){var lo,io,vd,cd,ES=J4e((lo=B.data())==null?void 0:(io=lo.structuredContextNoteFormSchema)==null?void 0:(vd=io.fieldSchemas)==null?void 0:(cd=vd.timestamp)==null?void 0:cd.validationSchema);
if(ES&&(lo=ES.regex,ES=ES.translations,lo&&!(new RegExp(lo)).test(a5)))return ES==null?void 0:ES.regexErrorMessage}}}},kd=function(){return{validate:function(a5){if(a5){var lo,io,vd,cd,ES=U2j((lo=B.data())==null?void 0:(io=lo.structuredContextNoteFormSchema)==null?void 0:(vd=io.fieldSchemas)==null?void 0:(cd=vd.sources)==null?void 0:cd.validationSchema);
if(ES&&(lo=ES.translations,lo==null?0:lo.selectedErrorMessage))for(a5=a5.split(/[ \n]/).map(function($d){return $d.trim()}),a5=_.h(a5),io=a5.next();!io.done;io=a5.next())if(!Nze(io.value))return a5=void 0,(a5=lo)==null?void 0:a5.selectedErrorMessage}}}};
return _.N("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.N("div",{class:"ytStructuredContextNoteViewModelTextField"},_.N(_.wb,{data:function(){var a5;return(a5=B.data())==null?void 0:a5.noteContents}},{textFormFieldViewModel:function(a5){return _.N(_.AS4,{data:a5.data,
onInput:q,validation:Vu,characterLimit:n})},
textFieldViewModel:function(a5){return _.N(_.cSm,{data:a5.data,onInput:q,validation:Vu,characterLimit:n})}})),_.N("div",{class:"ytStructuredContextNoteViewModelTextField"},_.N(_.wb,{data:function(){var a5;
return(a5=B.data())==null?void 0:a5.noteTimestamp}},{textFormFieldViewModel:function(a5){return _.N(_.AS4,{data:a5.data,
onInput:m,validation:Yd})},
textFieldViewModel:function(a5){return _.N(_.cSm,{data:a5.data,onInput:m,validation:Yd})}})),_.N("div",{class:"ytStructuredContextNoteViewModelTextField"},_.N(_.wb,{data:function(){var a5;
return(a5=B.data())==null?void 0:a5.noteSources}},{textFormFieldViewModel:function(a5){return _.N(_.AS4,{data:a5.data,
onInput:g,validation:kd})},
textFieldViewModel:function(a5){return _.N(_.cSm,{data:a5.data,onInput:g,validation:kd})}})))},"qf");
iQm.idomCompat=!0;_.mR(iQm,"yt-structured-context-note-view-model",{props:{data:_.qq}});var sPm=_.sx(function(B){var R=_.h(_.J3(function(){var Y;if((Y=B.controlled)==null?0:Y.call(B))return[];var t;return(((t=B.data())==null?void 0:t.chips)||[]).map(function(b){b=_.D(b,_.cL);if(b==null?0:b.selected)return y4m(b.chipValue)}).filter(function(b){return b!==void 0})})),V=R.next().value,e=R.next().value,X=function(Y){var t=y4m(Y.chipValue);
if(t!==void 0){var b;if((b=B.controlled)==null?0:b.call(B))return void B.controlled().onTap(t);Y=V().includes(t)?[].concat(_.MI(V().filter(function(G){return G!==t}))):[].concat(_.MI(V()),[t]);
e(Y);var J;if((J=B.uncontrolled)==null?0:J.call(B))B.uncontrolled().onUpdate(Y)}};
return _.N("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.N(_.yh,{each:function(){return B.data().chips||[]}},function(Y){return _.N("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.N(_.qR4,{data:function(){return _.D(Y,_.cL)},
selected:function(){var t;if(t=_.D(Y,_.cL)){var b=y4m(t.chipValue);if(b!==void 0){var J;t=((J=B.controlled)==null?0:J.call(B))?B.controlled().selectedValues.includes(b):V().includes(b)}else t=void 0}else t=!1;return t},
callback:X}))}))},"rf");var Fno=_.sx(function(B){var R=B.data;var V=function(){var b;return((b=R())==null?void 0:b.flowStateKey)||""},e=_.No(_.XM,V),X=function(){var b;
return(b=_.D(e(),bWo))==null?void 0:b.chips},Y=function(b){if(b!==void 0){var J=X()||[];
J=J.find(function(G){return G===b})?J.filter(function(G){return G!==b}):[].concat(_.MI(J),[b]);
J=Object.assign({},e(),{feedbackFormFlowState:Object.assign({},_.D(e(),bWo),{chips:J})});_.cc(_.SX("flowStateEntity",V(),J))}},t=function(){var b;
return _.D((b=R())==null?void 0:b.inputBox,JIi)};
B=_.Hx(function(b){var J=t();J=!(J==null?0:J.maxChars)||b.length<=J.maxChars;b=Object.assign({},e(),{feedbackFormFlowState:Object.assign({},_.D(e(),bWo),{detail:b}),abuseReportFlowState:Object.assign({},_.D(e(),ew),{navigationEnabled:J})});_.cc(_.SX("flowStateEntity",V(),b))},150);
return _.N("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.N("div",{class:"ytFeedbackFormViewModelChips"},_.N(_.wb,{data:function(){var b;return(b=R())==null?void 0:b.chipSelection}},{chipSelectionFormFieldViewModel:function(b){return _.N(sPm,{data:b.data,
controlled:function(){return{selectedValues:X()||[],onTap:Y}}})}})),_.N("div",{class:"ytFeedbackFormViewModelInputBox"},_.N(ik,{text:function(){var b;
return(b=_.D(e(),bWo))==null?void 0:b.detail},
placeholder:function(){var b;return((b=t())==null?void 0:b.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var b=t();if(b&&b.maxChars)return{maxChars:b.maxChars,errorMessage:b.maxCharsExceededErrorMessage||""}},
onInput:B})),_.N("div",{class:"ytFeedbackFormViewModelFooterText"},_.N(_.Hr,{text:function(){return R().footerText}})))},"sf");
Fno.idomCompat=!0;_.mR(Fno,"yt-feedback-form-view-model",{props:{data:_.qq}});var rSU=_.sx(function(B){var R=B.data;var V=function(){return R().flowStateKey||""},e=_.No(Nk6,V),X=function(){return _.D(e(),ew)},Y=function(){if(_.k("enable_gff_accessibility_fix")){var t=!0,b;
if((b=X())==null?0:b.navigationEnabled){var J;_.Lc((J=X())==null?void 0:J.navigationCommand);t=!1}b=Object.assign({},e(),{abuseReportFlowState:Object.assign({},X(),{isReportFormDirty:t})});_.cc(_.SX("flowStateEntity",V(),b))}else _.Lc((t=X())==null?void 0:t.navigationCommand)};
return _.N("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.N("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.N(_.wb,{data:function(){return R().cancelButton}},{buttonViewModel:function(t){return _.N(_.qo,{data:t.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:Y})}}),_.N(_.wb,{data:function(){var t;
if(R().navButton){var b=Object;var J=b.assign,G=_.D(R().navButton,_.Tr),y=((t=X())==null?0:t.navigationEnabled)||_.k("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",S,M;t=_.D((S=X())==null?void 0:S.navigationCommand,_.aT);S=(M=_.D(t,_.ie))==null?void 0:M.url;b={buttonViewModel:J.call(b,{},G,{state:y,iconName:S?"OPEN_IN_NEW":""})}}else b=void 0;return b}},{buttonViewModel:function(t){return _.N(_.qo,{data:t.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:Y})}})))},"tf");
rSU.idomCompat=!0;_.mR(rSU,"yt-report-form-bottom-bar-view-model",{props:{data:_.qq}});var gj7=_.sx(function(B){var R=B.nextStep;return _.N("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.N("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.N(_.Us,{icon:function(){return R().iconName||""}})),_.N("div",null,_.N(_.Hr,{text:function(){return R().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"uf"),ZQe=_.sx(function(B){var R=B.data;
var V,e=(V=_.Oz().resolve(_.uj(_.E5)))==null?void 0:V(),X=_.No(_.XM,function(){return R().flowStateKey||""});
return _.N("yt-report-form-confirmation-page-view-model",{class:function(){var Y;return((Y=_.D(X(),ew))==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.N("div",{class:function(){var Y;
return((Y=_.D(X(),ew))==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.N(_.ia,{data:function(){return e&&R().imageDark?R().imageDark:R().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.N("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.N("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return R().confirmationHeader}),_.N("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.N(_.Hr,{text:function(){return R().confirmationText}})),_.N("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.N(_.Hr,{text:function(){return R().lawEnforcementText}})),
_.N("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return R().whatToExpectHeader}),_.N(_.H,{cond:function(){return R().nextSteps},
then:function(Y){return _.N("div",null,_.N(_.yh,{each:Y},function(t){return _.N(gj7,{nextStep:t})}))}}),_.N(_.H,{cond:function(){return R().legalReportText},
then:function(Y){return _.N("div",null,_.N(_.Hr,{text:Y,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vf");
ZQe.idomCompat=!0;_.mR(ZQe,"yt-report-form-confirmation-page-view-model",{props:{data:_.qq}});var mNe=_.sx(function(B){var R=B.data;var V=function(){var Y;return((Y=_.D(R().inputBox,JIi))==null?void 0:Y.maxChars)||500},e=function(){return R().flowStateKey||""},X=_.No(_.XM,e);
B=_.Hx(function(Y){Y=Object.assign({},X(),{flowFormState:{isValid:Y.length<=V()},abuseReportFlowState:{userComments:Y,navigationEnabled:!(Y.length>V()),isReportFormDirty:!0}});_.QL().dispatch(_.v7("flowStateEntity",e(),Y))},150);
_.zM(function(){var Y=Object.assign({},X(),{flowFormState:{isValid:!0}});_.QL().dispatch(_.v7("flowStateEntity",e(),Y))});
return _.N("yt-report-form-details-page-view-model",{class:function(){var Y;return((Y=_.D(X(),ew))==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.N("h1",{class:function(){var Y;
return((Y=_.D(X(),ew))==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return R().detailsPageHeader}),_.N("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.N(_.Hr,{text:function(){return R().bodyText}})),_.N("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.N(ik,{label:function(){var Y;
return((Y=_.D(R().inputBox,JIi))==null?void 0:Y.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var Y;return{errorMessage:((Y=_.D(R().inputBox,JIi))==null?void 0:Y.maxCharsExceededErrorMessage)||"",maxChars:V()}},
onInput:B})))},"wf");
mNe.idomCompat=!0;_.mR(mNe,"yt-report-form-details-page-view-model",{props:{data:_.qq}});var $Nn=_.sx(function(B){var R=B.data;var V=B.selectedKey;var e=B.onSelected;var X=B.groupName;var Y=function(){return R().text},t=function(){return R().attributedText},b=function(){return R().subtext},J=function(){return R().attributedSubtext},G=_.N("div",{class:"ytRadioButtonItemViewModelLabel"},_.N(_.H,{cond:Y,
then:function(){return _.N("div",null,Y)}}),_.N(_.H,{cond:t,
then:function(){return _.N(_.Hr,{text:t})}}),_.N(_.H,{cond:b,
then:function(){return _.N("div",{class:"ytRadioButtonItemViewModelSubText"},b)}}),_.N(_.H,{cond:J,
then:function(){return _.N("div",{class:"ytRadioButtonItemViewModelSubText"},_.N(_.Hr,{text:J}))}})),y=function(){if(t()){var M;
return(M=t())==null?void 0:M.content}return Y()},S=function(){if(J()){var M;
return(M=J())==null?void 0:M.content}return b()};
B={};return _.N("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.N(_.kr,{name:X,checked:function(){return!(V==null||!V()||R().key!==(V==null?void 0:V()))},
onChange:function(M){e==null||e(M.target,R(),X==null?void 0:X())},
labelRenderable:function(){return G},
ariaLabel:function(){return S()?y()+", "+S():y()},
className:_.XE((B.ytRadioButtonItemViewModelSubTitle=function(){return!!R().subtext},B))}))},"xf");_.Cjm=_.sx(function(B){var R=B.data;var V=B.onSelected;var e=B.selectedKey;var X=B.groupName;return _.N("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.N("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.N(_.wb,{data:function(){return R().radioButtons}},{radioButtonItemViewModel:function(Y){return _.N($Nn,{data:Y.data,
onSelected:V,selectedKey:e,groupName:function(){return(X==null?void 0:X())||R().key}})}})))},"yf");var Pj2=_.sx(function(B){var R=B.data;var V=_.mA(),e=function(){return R().flowStateKey||""},X=_.No(_.XM,e),Y=function(){return _.D(X(),ew)};
_.lJ(function(){var t,b;if(((t=Y())==null?0:t.isReportFormDirty)&&((b=Y())==null||!b.navigationEnabled)&&_.k("enable_gff_accessibility_fix")){var J;if(((J=Y())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var G;(G=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||G.scrollIntoView()}else{var y;(y=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||y.scrollIntoView()}}});
return _.N("yt-report-form-reason-select-page-view-model",{class:function(){var t;return((t=Y())==null?void 0:t.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.N("h1",{class:function(){var t;
return((t=Y())==null?void 0:t.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return R().pageHeader}),_.N("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.N(_.Hr,{text:function(){return R().bodyText}})),_.N("div",{class:function(){var t;
return((t=Y())==null?void 0:t.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.N(_.H,{cond:function(){var t,b;
return((t=Y())==null?void 0:t.isReportFormDirty)&&!((b=Y())==null?0:b.navigationEnabled)&&_.k("enable_gff_accessibility_fix")},
then:function(){return _.N("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:V},_.N(_.Us,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.N("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return R().emptyReasonSelectErrorMessage}))}}),_.N(_.Cjm,{data:function(){return _.D(R().radioButtonGroup,_.MAz)},
onSelected:function(t,b){t=Object.assign({},X(),{abuseReportFlowState:Object.assign({},Y(),{reasonKey:b.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:b.command})});_.cc(_.SX("flowStateEntity",e(),t))},
selectedKey:function(){var t;return(t=Y())==null?void 0:t.reasonKey},
groupName:"report-form-reason-select-page"})))},"zf");
Pj2.idomCompat=!0;_.mR(Pj2,"yt-report-form-reason-select-page-view-model",{props:{data:_.qq}});var nj7=_.sx(function(B){var R=B.data;var V,e=(V=_.Oz().resolve(_.uj(_.E5)))==null?void 0:V();return _.N("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.N("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.N(_.ia,{data:function(){return e&&R().imageDark?R().imageDark:R().image},
alt:""})),_.N("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.N("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return R().header}),_.N(_.Hr,{text:function(){return R().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Af");
nj7.idomCompat=!0;_.mR(nj7,"yt-report-form-sign-in-page-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;var V=function(){var G;return(G=R().textInputPlaceholder)==null?void 0:G.content},e=function(G){G=G.target.value.trim();
var y=R().onUpdateText;y&&_.Lc(y,{form:{userQuery:G}});R().userQuery=G},X=_.Hx(function(G){e(G)},150),Y=_.Wr(function(G){X(G);
return!1}),t=_.Wr(function(G){G.key==="Enter"&&(e(G),(G=R().onNextStepCommand)&&_.Lc(G,{}));
return!1}),b=_.Zh(),J=function(){if(_.k("web_hide_explore_hub_until_user_navigates_back_to_home")){var G,y,S;
(S=(y=(G=b.value)==null?void 0:G.closest("ytd-flow-step-renderer"))==null?void 0:y.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||S.click()}};
return _.N("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:b},_.N("div",{class:"ytwTalkToRecsTopCornerButton"},_.N(_.wb,{data:function(){return R().topCornerButton}},{buttonViewModel:_.qo})),_.N("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.N("div",{class:"ytwTalkToRecsTitle"},_.N(_.Hr,{text:function(){return R().title}})),_.N("div",{class:"ytwTalkToRecsSubtitle"},_.N(_.Hr,{text:function(){return R().subtitle}})),_.N("div",{class:"ytwTalkToRecsChipsShelf"},_.N(_.wb,{data:function(){return R().answersShelf}},
{chipsShelfViewModel:function(G){return _.N(_.mF4,{data:G.data,
callback:J})}})),_.N(_.H,{cond:function(){return R().showOpenTextInput&&!_.k("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.N("div",{class:"ytwTalkToRecsUserInputBox"},_.N("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:V,value:function(){return R().userQuery},
"on:input":Y,"on:keyup":t}))}})))},"Bf"),"yt-talk-to-recs-view-model",{props:{data:_.qq}});var SJo={sources:[{clientResource:{imageName:"CHECK"}}]};_.uWe=_.sx(function(B){var R=_.Zh();B=_.ip(B,{error:void 0});var V=B.data,e=B.error,X=B.onSelected;B=_.h(_.J3(function(){return k$i(V())}));
var Y=B.next().value,t=B.next().value;zQ6(V,function(S){t(S);var M,f,z=Mrj((M=V().options)==null?void 0:(f=M[S])==null?void 0:f.value,V().type);X==null||X(z);R.value.focus()});
B=_.Wr(function(){if(!V().disabled){var S=V(),M=Y(),f=R.value;S.options&&(S=Hd4(S.options,M,S.label),_.Oz().resolve(_.HO).openSheet({viewModel:S},f))}});
var b=_.K7Y(),J=function(){return!!e()},G=function(){return!!V().disabled},y={};
y=_.XE("ytDropdownViewModelDropdownContainer",(y.ytDropdownViewModelDropdownContainerErrorBorder=J,y.ytDropdownViewModelDropdownContainerDisabled=G,y));return _.N("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.N("div",{class:y,"on:click":B,el:R,role:"combobox",tabindex:0,"on:keydown":b,"aria-invalid":J,"aria-disabled":G,"aria-describedby":function(){return J()?"dropdown-view-model-error":void 0}},_.N("div",{class:"ytDropdownViewModelText"},D2o(V,J,Y),fvr(V,Y)),_.N("div",{class:"ytDropdownViewModelChevronDown"},
_.N(_.Us,{icon:"CHEVRON_DOWN"}))),lv4(V,e))},"Cf");_.mR(_.sx(function(B){var R=B.data;var V=function(X){var Y=d2U(R());Y.videoMetadata||(Y.videoMetadata={});Y.videoMetadata.sponsorshipsMetadata||(Y.videoMetadata.sponsorshipsMetadata={});Y.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(X)},e=function(X){var Y=d2U(R());
Y.scheduledRedirectMetadata||(Y.scheduledRedirectMetadata={});Y.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(X)};
return _.N("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.N("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.N("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.N(_.Hr,{text:function(){return R().title}}),_.N(_.Us,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.N(_.Hr,{text:function(){return R().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.N(_.wb,{data:function(){return R().tierChoices}},{dropdownViewModel:function(X){return _.N("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.N(_.uWe,{data:X.data,
onSelected:V}))}}),_.N(_.wb,{data:function(){return R().startTimeChoices}},{dropdownViewModel:function(X){return _.N("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.N(_.uWe,{data:X.data,
onSelected:e}))}}),_.N(_.Hr,{text:function(){return R().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.N("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.N(_.wb,{data:function(){return R().scheduleButton}},{panelFooterViewModel:_.A1})))},"Df"),"ytfz-schedule-fanzone-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;B=B.className===void 0?"":B.className;var V=_.No(Nk6,function(){return R().flowStateEntityKey||""}),e={};
e=_.XE("ytFlowBottomBarViewModelFlowBottomBarButtons",(e.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},e));
var X={},Y=_.XE("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",e,(X.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},X.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},X));
X={};var t=_.XE("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",e,(X.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},X.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},X));
e={};e=_.XE("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(e.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},e.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return R().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
e));
return _.N("yt-flow-bottom-bar-view-model",{class:_.XE("ytFlowBottomBarViewModelHost",B)},_.N(_.H,{cond:function(){var b;return(b=R())==null?void 0:b.textSection},
then:function(b){return _.N("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.N(_.Hr,{text:b}))}}),_.N("div",{class:e},_.N(_.wb,{data:function(){return R().secondaryButton}},{buttonViewModel:function(b){return _.N(_.qo,{data:b.data,
className:t})}}),_.N(_.wb,{data:function(){return R().primaryButton}},{buttonViewModel:function(b){return _.N(_.qo,{data:b.data,
className:Y,buttonOverrides:function(){var J;return{disabled:!((J=V())==null||!J.primaryButtonDisabled)}}})}})))},"Ef"),"yt-flow-bottom-bar-view-model",{props:{data:_.qq,
className:_.Z9}});var OQN="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),st=function(){var B=_.c.apply(this,arguments)||this;B.enableScrollingFix=!0;B.bottomBar=!1;B.hideBottomBar=!1;B.fitContent=!1;return B};
_.l(st,_.c);_.p=st.prototype;_.p.ready=function(){_.k("enable_pdp_icon_prefetch")&&_.WoU(_.Oz().resolve(_.YL),0,OQN)};
_.p.focus=function(B){this.topBar?_.rV(this.topBar,B):this.paperDialog.focus(B)};
_.p.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16750_scroller&&(this.JSC$16750_scroller.dialogElement=this.paperDialog,this.JSC$16750_scroller.attached&&typeof this.JSC$16750_scroller.attached==="function"&&this.JSC$16750_scroller.attached())};
_.p.onDataChanged=function(){var B;this.fitContent=!((B=this.data)==null||!B.fitContent);var R;this.bottomBar=!((R=this.data)==null||!R.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.p.onProgressChanged=function(){var B,R,V=((R=(B=this.data)==null?void 0:B.progress)!=null?R:0)*100;this.progressElement.style.width=V+"%"};
_.p.isProgressHidden=function(){var B;return!((B=this.data)==null?0:B.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",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(B){return _.k("enable_wiz_next_lp2_msof")&&B&&!B.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.mh.Object.defineProperties(st.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var B;return _.k("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.D((B=this.data)==null?void 0:B.content,yIe)}}});
st.prototype.onProgressChanged=st.prototype.onProgressChanged;st.prototype.onDataChanged=st.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],st.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],st.prototype,"enableScrollingFix",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],st.prototype,"bottomBar",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],st.prototype,"hideBottomBar",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],st.prototype,"containsExploreHub",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],st.prototype,"fitContent",void 0);_.r([_.Yp("#progress"),_.Z("design:type",HTMLElement)],st.prototype,"progressElement",void 0);
_.r([_.Yp("#scroller"),_.Z("design:type",Object)],st.prototype,"JSC$16750_scroller",void 0);_.r([_.Yp("ytd-flow-top-bar-renderer"),_.Z("design:type",HTMLElement)],st.prototype,"topBar",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],st.prototype,"onDataChanged",null);_.r([_.XX("data.progress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],st.prototype,"onProgressChanged",null);
st=_.r([_.A({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],st);
_.F(st,"ytd-flow-step-renderer",function(){if(AIz!==void 0)return AIz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return AIz=B},{mode:1});var ozz=function(B){this.resolveCommand=B;this.steps={}},BS7=function(B,R){R=_.h(R||[]);
for(var V=R.next();!V.done;V=R.next()){V=V.value;var e=Object.values(V)[0],X=void 0;if((X=e)==null?0:X.stepId)B.steps[e.stepId]=V}},e44=function(B,R){var V,e,X,Y,t;
return _.W(function(b){if((V=B.state)==null||!V.currentStepId)return b.return(void 0);e=R4j(B);if(!e)return b.return(VCm(B));if(X=_.D(e,_.Ga2)){var J;((J=X.screenLoggingData)==null?0:J.screenVeType)&&_.py(_.WK(),X.screenLoggingData.screenVeType);((Y=X)==null?0:Y.onStepStartCommand)&&B.resolveCommand((t=X)==null?void 0:t.onStepStartCommand,{})}if(X&&R){J=X;var G,y,S,M;((G=R.flowLoggingData)==null?0:G.eventNamespace)&&((y=J.flowEventData)==null?0:y.eventType)&&((S=J.flowEventData)==null?0:S.eventMetadata)&&
((M=R.flowLoggingData)==null?0:M.flowType)&&(G=_.pk(R.flowLoggingData.eventNamespace,J.flowEventData.eventType,J.flowEventData.eventMetadata),_.YA(_.hz(),G,R.flowLoggingData.flowType));R.steps&&!R.steps.includes(e)&&R.steps.push(e)}return b.return(e)})};
ozz.prototype.back=function(){var B;(B=this.state)!=null&&B.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
ozz.prototype.handleUpdateFlowCommand=function(B){B.steps&&BS7(this,B.steps);B.entityUpdateCommand&&this.resolveCommand(B.entityUpdateCommand,{});B.flowContinuationCommand&&(B=B.flowContinuationCommand)&&(this.getFlowContinuationCommand=B);this.awaitFlowContinuation&&(this.awaitFlowContinuation(R4j(this)),this.awaitFlowContinuation=void 0)};
ozz.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var VCm=function(B){return _.W(function(R){return B.getFlowContinuationCommand?R.return(new Promise(function(V){B.awaitFlowContinuation=V;B.getFlowContinuationCommand&&B.resolveCommand(B.getFlowContinuationCommand,{flow_state:B.state})})):R.return(Promise.resolve(void 0))})},R4j=function(B){var R;
if((R=B.state)!=null&&R.currentStepId)return B.steps[B.state.currentStepId]};var FN=function(){var B=_.c.apply(this,arguments)||this;B.flowState=new ozz(function(R,V){V=V===void 0?{}:V;_.eR.instance.resolveCommand(R,{form:{form:V,element:B.hostElement}})});
B.initialState=!0;B.isLoading=!1;B.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 B};
_.l(FN,_.c);_.p=FN.prototype;_.p.onPopupClosed=function(B){B&&this.hostElement!==B.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(B){var R=this;_.xp(function(){var V=_.w(R.hostElement).querySelector("ytd-flow-step-renderer");V.topBar?V.focus(B):R.topBar&&_.rV(R.topBar,B)},1)};
_.p.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.p.computeTopBarHidden=function(B){var R;return!((R=_.D(B,_.Ga2))==null||!R.topBarOverride)};
_.p.dataChanged=function(){var B=this,R,V;return _.W(function(e){if(e.nextAddress==1){((R=B.data)==null?0:R.steps)&&BS7(B.flowState,B.data.steps);if((V=B.data)==null?0:V.flowContinuationCommand){var X=B.flowState,Y=B.data.flowContinuationCommand;Y&&(X.getFlowContinuationCommand=Y)}return _.U(e,e44(B.flowState,B.data),2)}B.currentFlowStep=e.yieldResult;_.b3(e)})};
_.p.flowChanged=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1){if(!B.flow)return V.return();B.flowState.state=B.flow;B.isLoading=!0;return _.U(V,e44(B.flowState,B.data),2)}R=V.yieldResult;if(!R||B.flow.isLoading)return V.return();B.currentFlowStep=R;B.initialState=!1;B.isLoading=!1;B.autofocusAndRefit();_.b3(V)})};
_.p.autofocusAndRefit=function(){var B=this,R=_.Oz().resolve(_.uj(_.DE)),V=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),e=document.querySelector("yt-report-form-confirmation-page-view-model"),X=document.querySelector("yt-report-form-details-page-view-model"),Y=document.querySelector("yt-report-form-reason-select-page-view-model"),t=document.querySelector("yt-contributor-zero-state-view-model"),
b=document.querySelector("yt-structured-context-note-view-model"),J=document.querySelector("yt-note-view-model");(!V&&R&&R.isKeyBoardInUse()||e||!V&&X||!V&&Y||t||b||J)&&_.Zt(this.hostElement);_.gB(this,function(){_.OI(B.hostElement,"yt-refit")})};
_.p.handleUpdateFlowCommand=function(B){this.data&&(B=_.D(B,NAm),B.targetId===this.data.targetId&&(B.flowContinuationCommand&&(this.data.flowContinuationCommand=B.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(B),this.autofocusAndRefit()))};
_.p.handleFlowNextStepCommand=function(B){this.data&&this.flow&&this.flow.key&&(B=_.D(B,jK7),B.targetId===this.data.targetId&&(B=B.stepId||"",this.ytdReduxBehavior.dispatch(_.v7("flowStateEntity",this.flow.key,{currentStepId:B,stepIdStack:(this.flow.stepIdStack||[]).concat(B)}))))};
_.p.handleFlowPrevStepCommand=function(B){if(this.data&&this.flow&&this.flow.key&&(B=_.D(B,UWU),B.targetId===this.data.targetId)){var R=[].concat(_.MI(this.flow.stepIdStack||[]));R.length>1?(R.pop(),this.ytdReduxBehavior.dispatch(_.v7("flowStateEntity",this.flow.key,{currentStepId:R[R.length-1],stepIdStack:R}))):B.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(B.onFirstStepCommand)}};
_.p.handleYpcCancelRecurrenceCommand=function(B){if(this.data&&this.flow&&this.flow.key&&(B=_.D(B,kar),B.targetId===this.data.targetId&&B.endpointCommand)){var R=_.D(this.flow,DWi);R&&_.D(B.endpointCommand,_.eiR)&&(_.D(B.endpointCommand,_.eiR).feedbackData=R.surveyFeedback);this.ytComponentBehavior.resolveCommand(B.endpointCommand)}};
_.p.handlePartialUpdateFlowStateEntity=function(B){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.v7("flowStateEntity",this.flow.key,B,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
FN.prototype.flowChanged=FN.prototype.flowChanged;FN.prototype.dataChanged=FN.prototype.dataChanged;FN.prototype.onPopupClosed=FN.prototype.onPopupClosed;_.r([_.v(_.dt),_.Z("design:type",Object)],FN.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],FN.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],FN.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],FN.prototype,"initialState",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],FN.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",Object)],FN.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],FN.prototype,"currentFlowStep",void 0);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],FN.prototype,"onPopupClosed",null);_.r([_.E({selectorArgs:["data.flowStateEntityKey"],selector:Nk6}),_.Z("design:type",Object)],FN.prototype,"flow",void 0);_.r([_.Yp("ytd-flow-top-bar-renderer"),_.Z("design:type",HTMLElement)],FN.prototype,"topBar",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],FN.prototype,"dataChanged",null);_.r([_.bp("flow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],FN.prototype,"flowChanged",null);FN=_.r([_.A({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],FN);
_.X8m=_.nJ()(FN,"ytd-flow-root-renderer",function(){if(cIn!==void 0)return cIn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return cIn=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var p84;var RS=null;_.mR(_.sx(function(B){return _.N("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.N("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.N(_.Hr,{text:function(){return B.data().text}}),_.N("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ff"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.qq}});var YBj=_.sx(function(B){var R=B.playerControlsProps;var V=B.isShortsPage;return _.N("yt-bigboard",null,_.N(_.H,{cond:function(){return R().isDragging},
then:function(){return _.N("div",{class:"ytBigboardStoryboardHost"},_.N(_.PIN,{progressBarProps:R,isShortsPage:V}))}}))},"Gf");
YBj.idomCompat=!0;_.rj={ACCOUNT_LABEL:Vr("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:Vr("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:Vr("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:Vr("AD_BADGE_HINT"),AD_BADGE_TEXT:Vr("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:Vr("ALL_CHANNELS_LABEL"),AMBIENT_MODE:Vr("AMBIENT_MODE"),AMBIENT_MODE_OFF:Vr("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:Vr("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:Vr("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:Vr("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:Vr("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:Vr("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:Vr("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:Vr("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:Vr("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:Vr("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:Vr("AUTOPLAY_UP_NEXT_IN"),BACK:Vr("BACK"),CANCEL:Vr("CANCEL"),CHANNEL_SWITCHER_LABEL:Vr("CHANNEL_SWITCHER_LABEL"),CLOSE:Vr("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:Vr("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:Vr("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:Vr("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:Vr("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:Vr("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:Vr("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:Vr("COMMENT_MODAL_CONTENT"),CONFIRM_OK:Vr("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:Vr("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:Vr("COPIED_TO_CLIPBOARD"),COPY:Vr("COPY"),COPY_DEBUG_INFO:Vr("COPY_DEBUG_INFO"),COPY_EMBED_CODE:Vr("COPY_EMBED_CODE"),COPY_LINK_LABEL:Vr("COPY_LINK_LABEL"),
COPY_VIDEO_URL:Vr("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:Vr("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:Vr("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:Vr("DELETE_FROM_DOWNLOADS"),DIALOG:Vr("DIALOG"),DONE:Vr("DONE"),DOWNLOAD:Vr("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:Vr("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:Vr("FLAG_CONFIRM"),FLAG_CONTENT:Vr("FLAG_CONTENT"),FLAG_LABEL:Vr("FLAG_LABEL"),FLAG_TITLE:Vr("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:Vr("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:Vr("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:Vr("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:Vr("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:Vr("HIDE_SEARCH_FILTERS_LABEL"),HOME:Vr("HOME","Home"),INVALID_RESPONSE_RECEIVED:Vr("INVALID_RESPONSE_RECEIVED"),LIBRARY:Vr("LIBRARY","Library"),LISTENING:Vr("LISTENING"),LOADING:Vr("LOADING"),LONG_PRESS_MIC_TO_SPEAK:Vr("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:Vr("LOOP"),MENU_DESKTOP:Vr("MENU_DESKTOP"),MENU_EXIT:Vr("MENU_EXIT"),
MENU_FEEDBACK:Vr("MENU_FEEDBACK"),MENU_HELP:Vr("MENU_HELP"),MENU_IMPRESSUM:Vr("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:Vr("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:Vr("MENU_SETTINGS"),MENU_SIGN_IN:Vr("MENU_SIGN_IN"),MENU_TITLE:Vr("MENU_TITLE"),MENU_YOUR_DATA:Vr("MENU_YOUR_DATA"),MORE_INFO:Vr("MORE_INFO"),MORE_OPTIONS:Vr("MORE_OPTIONS"),MUTE_VOLUME:Vr("MUTE_VOLUME"),NEW_PLAYLIST:Vr("NEW_PLAYLIST"),NEXT_VIDEO:Vr("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:Vr("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:Vr("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:Vr("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:Vr("NOT_FOUND_TITLE"),NO_DOWNLOADS:Vr("NO_DOWNLOADS"),NO_MIC_INPUT:Vr("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:Vr("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:Vr("OOPS_MESSAGE"),OPEN_APP:Vr("OPEN_APP"),OPEN_YOUTUBE:Vr("OPEN_YOUTUBE"),PAUSE:Vr("PAUSE"),PLAY:Vr("PLAY"),PLAYER_CAPTION:Vr("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:Vr("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:Vr("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:Vr("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:Vr("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:Vr("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:Vr("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:Vr("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:Vr("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:Vr("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:Vr("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:Vr("PLAYER_MINIMIZE"),PLAYER_NEXT:Vr("PLAYER_NEXT"),PLAYER_PAUSE:Vr("PLAYER_PAUSE"),PLAYER_PLAY:Vr("PLAYER_PLAY"),
PLAYER_PREVIOUS:Vr("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:Vr("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:Vr("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:Vr("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:Vr("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:Vr("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:Vr("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:Vr("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:Vr("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:Vr("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:Vr("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:Vr("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:Vr("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:Vr("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:Vr("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:Vr("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:Vr("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:Vr("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:Vr("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:Vr("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:Vr("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:Vr("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:Vr("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:Vr("PLAY_ALL"),PLEASE_FIX_ERRORS:Vr("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:Vr("PREVIOUS_VIDEO"),PRIVACY_POLICY:Vr("PRIVACY_POLICY"),RELOAD:Vr("RELOAD"),REQUIRED_LABEL:Vr("REQUIRED_LABEL"),SAVE_PLAYLIST:Vr("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:Vr("SCRUB_SLIDE_USER_EDU"),SEARCH:Vr("SEARCH","Search"),SEARCH_APPEND_LABEL:Vr("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:Vr("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:Vr("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:Vr("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:Vr("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:Vr("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:Vr("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:Vr("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:Vr("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:Vr("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:Vr("SEEK_SLIDER"),SETTINGS_LABEL:Vr("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:Vr("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:Vr("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:Vr("SHOW_LESS"),SHOW_MORE:Vr("SHOW_MORE"),SHOW_PLAYER_CONTROLS:Vr("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:Vr("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:Vr("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:Vr("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:Vr("SIGN_IN_ON_WEB"),STABLE_VOLUME:Vr("STABLE_VOLUME"),
STABLE_VOLUME_OFF:Vr("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:Vr("STABLE_VOLUME_ON"),STATS_FOR_NERDS:Vr("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:Vr("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:Vr("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:Vr("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:Vr("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:Vr("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:Vr("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:Vr("TIMESTAMP_SECONDS"),TOGGLE_OFF:Vr("TOGGLE_OFF"),
TOGGLE_ON:Vr("TOGGLE_ON"),TRENDING:Vr("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:Vr("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:Vr("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:Vr("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:Vr("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:Vr("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:Vr("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:Vr("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:Vr("VIDEO_LINK_LABEL")};var h4n=_.sx(function(B){var R=B.playerApi;B=_.Zh(function(X){ns(X,36843)});
var V=Vr("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),e=_.Wr(function(){uu(36843);R&&R().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.N("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.N("button",{el:B,class:"ytPlayerControlsJumpForwardButtonButton",title:V,"aria-label":V,"on:click":e},_.N("span",null,_.N(_.Us,{icon:"FAST_FORWARD"}))))},"Hf");var tCU=_.sx(function(B){var R=B.appApi;B=_.Zh(function(X){ns(X,62946)});
var V=Vr("OPEN_IN_MINIPLAYER"),e=_.Wr(function(){uu(62946);var X,Y;(Y=(X=R()).openInMiniplayer)==null||Y.call(X);return!1});
return _.N("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.N("button",{el:B,class:"ytMiniplayerButtonButton",title:V,"aria-label":V,"on:click":e},_.N(_.Us,{icon:"PICTURE_IN_PICTURE",active:!1})))},"If");var Wke=_.sx(function(B){var R=B.playerApi;B=_.Zh(function(t){ns(t,142812)});
var V=_.h(_.WU(!1,void 0,"I3VCyb")),e=V.next().value,X=V.next().value;V=function(){return Vr("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(e()?1:2)})};
var Y=_.Wr(function(){uu(142812);if(R){var t=R(),b=e();t.setPlaybackRate(b?1:2);X(!e())}return!1});
return _.N("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.N("button",{el:B,class:"ytPlaybackSpeedButtonButton",title:V,"aria-label":V,"on:click":Y},_.N("span",null,_.N(_.Us,{icon:function(){return e()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Jf");var bq2=_.sx(function(B){var R=B.title;var V=B.ariaLabel;var e=B.icon;var X=B.command;var Y=B.veType;B=_.Zh(function(b){Y&&ns(b,Y())});
var t=_.Wr(function(){Y&&uu(Y());X&&_.Oz().resolve(_.oC).resolveCommand(X())});
return _.N("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.N("button",{el:B,class:"ytdThumbnailOverlayButtonButton",title:R,"aria-label":V,"on:click":t},_.N(_.Us,{icon:e})))},"Kf");var Ju4=["en-CA","en","es-MX","fr-CA"];var jCU=_.sx(function(B){var R=_.ip(B,{isOverlay:!1}),V=R.captionIconType,e=R.onClick;B=R.ariaLabel;var X=R.ariaPressed,Y=R.isOverlay;R=_.Zh(function(J){ns(J,127299)});
var t=_.Wr(function(J){uu(127299);e==null||e(J);return!1}),b={};
return _.N("ytm-closed-captioning-button",{class:_.XE("ytmClosedCaptioningButtonHost",(b.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return V()===-1&&Y()},b.ytmClosedCaptioningButtonIconDisabled=function(){return V()===-1&&!Y()},b))},_.N("button",{el:R,
class:"ytmClosedCaptioningButtonButton",title:B,"aria-label":B,"aria-pressed":X,"on:click":t},_.N(_.Us,{icon:function(){var J="";var G=_.UV().get("hl");G=!G||Ju4.includes(G)?"CLOSED_CAPTION":"SUBTITLES";var y=V();switch(y){case -1:case 0:J=G;break;case 1:J=G+"_FILLED";break;default:_.Ym(y)}return J}})))},"Lf");
jCU.idomCompat={callbacks:{onClick:!0}};var PA="";var UnU=_.sx(function(B){var R=B.playerControlsProps,V=B.onClickFn;B=_.NW(function(){var Y=R(),t=-1;Y.captionsAvailable&&(t=Y.captionsEnabled?1:0);return t},void 0,"WecR8e");
var e=_.NW(function(){var Y=R();return Y.captionsAvailable?_.Wz(Y.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Wz("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),X=_.NW(function(){var Y=R();
Y=Y.captionsAvailable?Y.captionsEnabled:void 0;return Y},void 0,"Q17ly");
return _.N("yt-closed-captions-toggle-button",null,_.N(jCU,{captionIconType:B,ariaLabel:e,ariaPressed:X,onClick:function(Y){var t=R();if(t.captionsAvailable){var b=t.playerApi;if(b){var J=t.playerApi;if(J){var G=PA;if(G){J=J.getOption("captions","track");var y;PA=(y=J?J.displayName:null)!=null?y:G}else J.getOptions("captions")?(G=Sh2(J),PA=G.length?(y=Hxe(G))?y.displayName:G[0].displayName:""):PA=""}MDn(b);_.k("mweb_disable_set_state_captions_killswitch")&&t.setState({captionsEnabled:!t.captionsEnabled})}}var S,
M;(M=(S=t.appApi).showCaptionsToggleToast)==null||M.call(S,t);V==null||V(Y)},
isOverlay:!0}))},"Mf");var NSz=_.sx(function(B){var R=B.data;return _.N("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.N(_.ul,{data:function(){return{type:16,text:_.wmx(R().label)}}}))},"Nf");var GKe=_.sx(function(B){var R=_.XE("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return B.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return B.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return B.size()==="small"?B.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
B.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.N("animated-seek-arrows",{class:_.XE("ytPlayerControlsAnimatedSeekArrowsHost")},_.N("span",{class:R}),_.N("span",{class:R}),_.N("span",{class:R}))},"Of");
GKe.idomCompat=!0;var yur=_.sx(function(){var B=_.Wz("PLAYER_SECONDS",{seconds_placeholder:"30"}),R=_.h(_.WU(!1,void 0,"Yj8msb")),V=R.next().value,e=R.next().value,X=_.h(_.WU(!1,void 0,"r9Z50e"));R=X.next().value;var Y=X.next().value;X={};var t=_.XE("jumpForwardOverlayOverlay",(X.jumpForwardOverlayOverlayHidden=R,X));_.zM(function(){var b=null,J=null,G=function(){b!==null&&_.TT().cancelJob(b);J!==null&&_.TT().cancelJob(J);Y(!0);e(!0);_.ua(_.TT(),function(){Y(!1)});
b=_.ua(_.TT(),function(){Y(!0);J=_.ua(_.TT(),function(){e(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",G);_.aK(function(){window.removeEventListener("jump-forward-clicked",G)})});
return _.N("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.N(_.H,{cond:V,then:function(){return _.N("div",{class:t},_.N(GKe,{direction:1,size:"large"}),_.N("div",null,B))}}))},"Pf");var Fqz=_.rj.MUTE_VOLUME,sIz=_.rj.UNMUTE_VOLUME,SBm=_.sx(function(B){var R=B.muteIconType;var V=B.onClick;var e=B.useOutlineIcon;B=_.Zh(function(t){ns(t,28662)});
var X=function(){return r4m(R(),e==null?void 0:e()).ariaLabel},Y=_.Wr(function(t){uu(28662);
V==null||V(t);return!1});
return _.N("ytm-mute-button",{class:"ytmMuteButtonHost"},_.N("button",{el:B,class:"ytmMuteButtonButton",title:X,"aria-label":X,"on:click":Y},_.N("span",null,_.N(_.Us,{icon:function(){return r4m(R(),e==null?void 0:e()).iconName}}))))},"Qf");var HqU=_.sx(function(B){var R=B.volumeProps;var V=B.onClickFn;var e=B.useOutlineIcon;return _.N("yt-mute-toggle-button",null,_.N(SBm,{muteIconType:function(){var X=R(),Y=!_.k("mweb_treat_zero_volume_as_muted_killswitch")&&X.volume===0;return X.volumeMuted||Y?0:1},
onClick:function(X){var Y=R().playerApi;Y&&(Y.isMuted()?Y.unMute():Y.mute(!1));V==null||V(X)},
useOutlineIcon:function(){return!(e==null||!e())}}))},"Rf");
HqU.idomCompat=!0;var MCi=_.sx(function(B){var R=B.data;var V=_.Zh();B=_.Wr(function(){V.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.N("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:V,"on:animationend":B},_.N(_.SQ,{command:function(){return R().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.N(_.H,{cond:function(){var e;return(e=R().icon)==null?void 0:e.iconType},
then:function(){return _.N("span",null,_.N(_.Us,{icon:function(){var e;return(e=R().icon)==null?void 0:e.iconType}}))}}),_.N("div",{class:"ytmPaidContentOverlayText"},_.N(_.Hr,{text:function(){return R().text}})),_.N(_.H,{cond:function(){return R().navigationEndpoint},
then:function(){return _.N(_.Us,{icon:"CHEVRON_RIGHT"})}})))},"Sf");
MCi.idomCompat=!0;var g0U=[].concat(_.MI([{register:function(B){var R=BA2(B),V;(V=B().playerApi)==null||V.addEventListener("onVolumeChange",R);return function(){}}},
{register:function(B){var R=RTU(B);B=B().playerApi;B==null||B.addEventListener("captionschanged",R);B==null||B.addEventListener("captionssettingschanged",R);B==null||B.addEventListener("onCaptionsTrackListChanged",R);return function(){}}},
{register:function(B){if(!_.k("mweb_screenreader_accessible_player"))return function(){};
var R=VA6(B),V=document.querySelector("video");V==null||V.addEventListener("touchend",R);return function(){V==null||V.removeEventListener("touchend",R)}}},
{register:function(B){if(!_.k("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var R=VA6(B),V=document.querySelector("video");V==null||V.addEventListener("focus",R);return function(){V==null||V.removeEventListener("focus",R)}}}]),[{register:function(B){var R=n04(B),V;
(V=B().playerApi)==null||V.addEventListener("onStateChange",R);return function(){}}},
{register:function(B){var R=un2(B),V;(V=B().playerApi)==null||V.addEventListener("onPlaybackRateChange",R);return function(){}}},
{register:function(B){var R=Od7(B),V;(V=B().playerApi)==null||V.addEventListener("onVideoDataChange",R);return function(){}}},
{register:function(B){var R=oRe(B),V,e;(V=B())==null||(e=V.playerApi)==null||e.addEventListener("onVideoProgress",R);return function(){}}}]);var kK4=_.sx(function(B){var R=B.data;var V=function(){return _.Wz("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+R().playbackRate})};
return _.N(_.H,{cond:function(){return R().playbackRate&&R().playbackRate!==1},
then:function(){return _.N("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.N("div",{class:"ytPlaybackRateOverlayOverlay"},_.N(GKe,{direction:1,size:"small"}),_.N("div",{class:"ytPlaybackRateOverlayLabel"},V)))}})},"Tf");var Dnz=_.sx(function(B){var R=B.data;return _.N("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.N(_.H,{cond:function(){var V,e=(V=R())==null?void 0:V.playerResponse,X;return e==null?void 0:(X=e.paidContentOverlay)==null?void 0:X.paidContentOverlayRenderer},
then:function(V){return _.N(MCi,{data:V})}}))},"Vf"),fNm=_.sx(function(B){var R=B.props;
var V=B.data;var e=B.options;var X=function(){var G,y,S,M;return(G=V())==null?void 0:(y=G.playerResponse)==null?void 0:(S=y.playerConfig)==null?void 0:(M=S.inlinePlaybackConfig)==null?void 0:M.showAudioControls},Y=function(){var G,y;
if(X()&&((G=e())==null?void 0:(y=G.additionalButton)==null?void 0:y.button)!==void 0){var S,M,f;G=(S=V())==null?void 0:(M=S.playerApi)==null?void 0:(f=M.getSize())==null?void 0:f.height;if(!(G===void 0||G<184)){var z,T;return(z=e())==null?void 0:(T=z.additionalButton)==null?void 0:T.button}}},t=function(){var G,y;
return(G=e())==null?void 0:(y=G.additionalButton)==null?void 0:y.thumbnailOverlayButtonRenderers},b=function(){var G,y;
return(G=e())==null?void 0:(y=G.additionalButton)==null?void 0:y.thumbnailOverlayButtonViewModels},J=function(){var G=[_.N(HqU,{volumeProps:R}),
_.N(UnU,{playerControlsProps:R})];Y()===1&&G.push(_.N(h4n,{playerApi:function(){return R().playerApi}}));
Y()===2&&G.push(_.N(tCU,{appApi:function(){return R().appApi}}));
Y()===3&&G.push(_.N(Wke,{playerApi:function(){return R().playerApi}}));
var y=t();if(Y()===4&&y){y=_.h(y);for(var S=y.next(),M={};!S.done;M={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$53:void 0,command$jscomp$569:void 0},S=y.next()){S=S.value;M.tooltip$jscomp$2=S.tooltip;var f=void 0,z=void 0;M.ariaLabel$jscomp$20=((f=S.accessibility)==null?void 0:(z=f.accessibilityData)==null?void 0:z.label)||M.tooltip$jscomp$2;f=void 0;M.icon$jscomp$53=(f=S.icon)==null?void 0:f.iconType;M.command$jscomp$569=S.command;M.tooltip$jscomp$2&&M.ariaLabel$jscomp$20&&M.icon$jscomp$53&&
G.push(_.N(bq2,{title:function(T){return function(){return T.tooltip$jscomp$2}}(M),
ariaLabel:function(T){return function(){return T.ariaLabel$jscomp$20}}(M),
icon:function(T){return function(){return T.icon$jscomp$53}}(M),
command:function(T){return function(){return T.command$jscomp$569}}(M)}))}}y=b();
if(Y()===4&&y)for(y=_.h(y),S=y.next(),M={};!S.done;M={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$570:void 0},S=y.next())S=S.value,M.tooltip$jscomp$3=S.title,M.ariaLabel$jscomp$21=S.accessibilityText||M.tooltip$jscomp$3,M.icon$jscomp$54=S.iconName,M.command$jscomp$570=_.dl(S.onTap),M.tooltip$jscomp$3&&M.ariaLabel$jscomp$21&&M.icon$jscomp$54&&G.push(_.N(bq2,{title:function(T){return function(){return T.tooltip$jscomp$3}}(M),
ariaLabel:function(T){return function(){return T.ariaLabel$jscomp$21}}(M),
icon:function(T){return function(){return T.icon$jscomp$54}}(M),
command:function(T){return function(){return T.command$jscomp$570}}(M)}));
return G};
return _.N(_.H,{cond:X,then:function(){return _.N("div",{class:"ytInlinePlayerControlsTopRightControls"},_.N(_.yh,{each:J},function(G){return _.N("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.N("div",{class:"ytInlinePlayerControlsButtonIcon"},G))}))}})},"Wf"),aNo=_.sx(function(B){var R=B.props;
var V=B.data;var e=B.options;B={};B=_.XE("ytInlinePlayerControlsBottomRightControls",(B.ytInlinePlayerControlsBottomRightControlsHidden=function(){var X;return XU6(V(),e())&&((X=e())==null?void 0:X.insetProgressBar)&&(R().isHovering||R().isDragging)},B));
return _.N("div",{class:B},_.N(lN4,{data:V}),_.N(_.H,{cond:function(){var X;return!((X=e())==null?0:X.hideTimeDisplay)},
then:function(){return _.N(z44,{props:R,data:V})}}))},"Xf"),lN4=_.sx(function(B){var R=B.data;
return _.N(_.wb,{data:function(){var V;return c42((V=R())==null?void 0:V.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:NSz})},"Yf"),z44=_.sx(function(B){var R=B.props;
var V=B.data;return _.N(_.H,{cond:function(){return R().isLive},
then:function(){return _.N(dn6,null)},
else:function(){return _.N(w8N,{props:R,data:V})}})},"Zf"),w8N=_.sx(function(B){var R=B.props;
var V=B.data;var e=_.NW(function(){var X;return ide((X=V())==null?void 0:X.thumbnailOverlays)},void 0,"kUmuA");
return _.N("div",{class:_.XE("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.rj.PLAYER_TIME_ELAPSED+" "+_.$XK(R().playedTime)}},_.N(_.ul,{data:function(){var X=_.$XK(R().videoDuration-R().playedTime);
return Object.assign({},{type:16,text:X},e())}}))},"$f"),dn6=_.sx(function(){return _.N("div",{class:_.XE("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.N(_.ul,{data:{type:17,
text:_.rj.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ag"),TS4=_.sx(function(B){var R=B.props;
var V=B.data;var e=B.options;return _.N(_.RJN,{progressBarProps:R,config:function(){var X,Y=_.D((X=V())==null?void 0:X.multiMarkersPlayerBar,_.T3a),t;X=((t=e())==null?0:t.insetProgressBar)?2:1;var b;t=(b=e())==null?void 0:b.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:X,chapterData:Y,isInlinePlayback:!0,doSeekOnClick:t,playheadDotBehavior:t?1:0}}})},"bg");_.mR(_.sx(function(B){var R=B.data;var V=B.appApi;var e=B.options;var X=PyN(R,eTU(V));B={};V={};return _.N("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.N("div",{class:_.XE("ytInlinePlayerControlsDarkenedOverlay",(B.ytInlinePlayerControlsDarkenedOverlayShow=function(){return X().isHovering},B))}),_.N(yur,null),_.N(kK4,{data:X}),_.N(Dnz,{data:R}),_.N(YBj,{playerControlsProps:X,
isShortsPage:!1}),_.N("div",{class:_.XE((V.ytInlinePlayerControlsControlsHidden=function(){return X().isDragging},V))},_.N(fNm,{props:X,
data:R,options:e}),_.N(aNo,{props:X,data:R,options:e})),_.N(_.H,{cond:function(){return XU6(R(),e())},
then:function(){return _.N(TS4,{props:X,data:R,options:e})}}))},"Uf"),"yt-inline-player-controls",{props:{data:_.qq,
appApi:_.Z9,options:_.qq}});var gj=function(){var B=_.c.apply(this,arguments)||this;B.opts=null;B.playerControlsData=null;B.playerControlsAppApi={openInMiniplayer:function(){B.openInMiniplayer()}};
B.playerControlsOptions={};B.noAnimation=!1;B.playbackIntentTriggered=!1;B.positionData=null;B.hidden=!0;B.active=!1;B.playing=!1;B.videoPreviewDataIndex=0;B.JSC$16808_playerPromise=null;B.player=null;B.enableAudioControls=!1;B.hasBeenUnmuted=!1;B.captionsHaveBeenTurnedOff=!1;B.JSC$16808_playerEvents=new Map;B.videoPreviewFetchRequest=null;B.scheduledPreviewEndJobId=null;B.JSC$16808_preventProgressSaveTimer=null;B.watchEndpointStartTimeUpdaterInterval=null;B.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};B.windowOnBlurFn=function(){B.deactivate()};
return B};
_.l(gj,_.c);_.p=gj.prototype;
_.p.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.k("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$16808_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16808_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16808_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16808_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Bc(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Bc(this,this.onScroll))};
_.p.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Bc(this,this.onScroll))};
_.p.onPageTypeChange=function(){this.deactivate()};
_.p.onWindowResized=function(){this.deactivate()};
_.p.onCaptionsChanged=function(B){B=!!B.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!B);this.setCaptionSize()};
_.p.setCaptionSize=function(){var B;if(this.active&&!this.captionsHaveBeenTurnedOff&&((B=this.player)==null?0:B.getCaptionWindowContainerId())){var R;(R=this.player)==null||R.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 B=this.positionData,R=B.initialTopPosition,V=B.initialHorizontalPosition;_.o_(this.hostElement,{"--ytd-video-preview-translate-left":B.finalHorizontalPosition-V+"px","--ytd-video-preview-translate-top":B.finalTopPosition-R+"px","--ytd-video-preview-original-top-position":R+"px","--ytd-video-preview-original-horizontal-position":V+"px",
"--ytd-video-preview-initial-scale":"scale("+B.initialScale+")","--ytd-video-preview-width":B.videoPreviewWidth+"px","--ytd-video-preview-height":B.videoPreviewHeight+"px"});return!0};
_.p.handleOpenVideoPreviewAction=function(B){var R=this,V;return _.W(function(e){if(!R.currentPageAllowed())return e.return(0);R.opts=B;return(V=R.alignVideoPreviewForAnimation(B.thumbnail))?e.return(R.activate()):e.return(0)})};
_.p.onMouseLeave=function(B){this.shouldDeactivateOnMouseLeave(B)&&this.deactivate()};
_.p.onScroll=function(){var B,R;((B=this.opts)==null?0:B.isAutoplay)&&((R=this.opts)==null?0:R.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.p.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.dV.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",gj.JSC$16807_DEFAULT_CLICK_LOCATION_BEHAVIOR,gj.JSC$16807_CLICK_LOCATION_ID_MAP)};
_.p.shouldDeactivateOnMouseLeave=function(B){B=B.relatedTarget;if(!B)return!0;var R;return(R=this.opts)!=null&&R.mediaRenderer?!_.P$(this.opts.mediaRenderer).contains(B):!0};
_.p.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.p.onPlaybackStart=function(){var B=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$16808_preventProgressSaveTimer=
_.ua(_.dV,function(){B.resetPreventProgressSaveTimer()},1E4);
var R;if((R=this.opts)==null?0:R.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.ua(_.dV,function(){B.hasMultipleVideoPreviews()?B.startPlaybackForNextVideo():B.deactivate()},this.opts.videoPreviewDurationMs);
var V;this.player.setGlobalCrop(((V=this.opts)==null?0:V.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.p.getRoundedCornersSize=function(){var B;if((B=this.opts)==null?0:B.roundedCornersSize){var R;return(R=this.opts)==null?void 0:R.roundedCornersSize}var V;if((V=this.opts)==null?0:V.enableRounding){var e;if(((e=this.opts)==null?void 0:e.thumbnailSize)==="small")return 1;var X;if(((X=this.opts)==null?void 0:X.thumbnailSize)==="medium")return 2;var Y;if(((Y=this.opts)==null?void 0:Y.thumbnailSize)==="large")return 3}return _.k("web_imp_inset_progress_bar")?3:0};
_.p.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.p.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.p.onMediaContainerClick=function(B){this.isShortcutClick(B)||(this.navigateToWatch(B),B.preventDefault(),B.stopPropagation())};
_.p.activate=function(){var B=this,R,V,e,X,Y,t,b,J,G;return _.W(function(y){switch(y.nextAddress){case 1:if(!B.currentPageAllowed())return y.return(0);V=(R=B.videoPreviewData)==null?void 0:R.inlinePlaybackEndpoint;e=_.QK.instance;if(!V||!e)return y.return(0);B.playbackIntentTriggered=!0;((X=B.opts)==null?0:X.mediaRenderer)&&((Y=B.opts)==null||!Y.isAutoplay)&&qJm(B.opts.mediaRenderer,function(){B.deactivate()});
_.gB(B,function(){B.revealPreviewUi()});
t={};_.k("enable_unknown_lact_fix_on_html5")&&(_.Oz().resolve(_.fD),t.lact=_.B5());B.videoPreviewFetchRequest=LqN(e,B.getInlinePlaybackRequestData(B.videoPreviewData),t);_.en(y,2);return _.U(y,B.videoPreviewFetchRequest,4);case 4:b=y.yieldResult;if(((J=b)==null?void 0:(G=J.playabilityStatus)==null?void 0:G.status)==="OK")return y.return(B.handlePlayerResponse(b));throw Error("Ij");case 2:_.WR(y),B.deactivate();case 3:return y.return(1)}})};
_.p.getInlinePlaybackRequestData=function(B){var R,V=_.k("web_imp_player_mute_params")?((R=this.opts)==null?void 0:R.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:B.inlinePlaybackEndpoint,startPlaybackInMutedState:V}};
_.p.handlePlayerResponse=function(B){var R=this,V,e,X,Y,t,b,J,G,y,S;return _.W(function(M){if(M.nextAddress==1){V=R.getInlinePlaybackVideoId();if(!(((e=B)==null?0:(X=e.videoDetails)==null?0:X.videoId)&&R.currentPageAllowed()&&R.playbackIntentTriggered&&R.opts&&V))return R.deactivate(),M.return(0);if(B.videoDetails.videoId!==V)return M.return(0);R.enableAudioControls=!!((Y=B.playerConfig)==null?0:(t=Y.inlinePlaybackConfig)==null?0:t.showAudioControls);B.trackingParams=R.getInlinePlaybackTrackingParams();
if(!R.inlinePlayer)return M.return(0);b={};if(G=_.D((J=R.videoPreviewData)==null?void 0:J.inlinePlaybackEndpoint,_.sI))b.watch_endpoint=G;if(R.videoPreviewData){var f,z=(f=_.D(R.videoPreviewData.inlinePlaybackEndpoint,_.sI))==null?void 0:f.startTimeSeconds;z!==void 0&&(B.playerConfig||(B.playerConfig={}),B.playerConfig.playbackStartConfig||(B.playerConfig.playbackStartConfig={}),B.playerConfig.playbackStartConfig.startPosition||(B.playerConfig.playbackStartConfig.startPosition={}),B.playerConfig.playbackStartConfig.startSeconds=
z,B.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(z*1E3))}R.inlinePlayer.loadVideoWithPlayerResponse(B,b);if(R.JSC$16808_playerPromise)return M.jumpTo(2);R.JSC$16808_playerPromise=R.inlinePlayer.getPlayerPromise();return _.U(M,R.JSC$16808_playerPromise,3)}M.nextAddress!=2&&(y=M.yieldResult,y.setInlinePreview(!0),y.setSizeStyle(!1,!0),R.ytPlayerListenerBehavior.listenToPlayerEvents(y,R.JSC$16808_playerEvents),R.player=y,_.OI(R.hostElement,"player-api-ready"));((S=R.opts)==
null?0:S.showPlayerControls)&&R.videoPreviewData&&R.player&&(R.playerControlsData={playerResponse:B,isInlinePlayback:!0,thumbnailOverlays:R.videoPreviewData.thumbnailOverlays,playerApi:R.player},R.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!R.unroundCornersForPlayback,additionalButton:R.getAdditionalButtonType(R.videoPreviewData.thumbnailOverlays)});return M.return(2)})};
_.p.revealPreviewUi=function(){var B=this;this.playbackIntentTriggered&&_.s7x(this,function(){B.hasThumbnailPositionChangedSinceTriggered()||(B.updateActiveState(!0),B.noAnimation=!1)})};
_.p.hasThumbnailPositionChangedSinceTriggered=function(){var B=this.positionData,R=this.getThumbnailPositionData();return(B==null?void 0:B.initialTopPosition)!==(R==null?void 0:R.initialTopPosition)||(B==null?void 0:B.initialHorizontalPosition)!==(R==null?void 0:R.initialHorizontalPosition)};
_.p.getThumbnailPositionData=function(){var B,R;if((R=this.opts)==null||!R.thumbnail)return null;R=this.opts.thumbnail;var V=((B=this.opts)==null?0:B.cropPlayerToFillThumbnailHorizontally)?!1:!0;var e=R.getBoundingClientRect();B=e.width;R=e.height;var X=e.top+window.scrollY;e=e.left+window.scrollX;var Y=V?Math.ceil(B):B;V=V?Math.ceil(R):R;var t=B/Y;B={initialScale:t,initialTopPosition:X-12*t,finalTopPosition:X-12-(V-R)/2,initialHorizontalPosition:e-(12+(Y-B)/2),finalHorizontalPosition:e-12-(Y-B)/
2,videoPreviewWidth:Y,videoPreviewHeight:V};return B};
_.p.updateActiveState=function(B){this.active=B;this.ytdReduxBehavior.dispatch(_.or({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:B}))};
_.p.stopPlayer=function(B){B=B.resetWatchEndpointStartTime===void 0?!1:B.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(B)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.dV.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.p.deactivate=function(B){B=B===void 0?{}:B;B=B.resetWatchEndpointStartTime===void 0?!1:B.resetWatchEndpointStartTime;RS&&(RS.disconnect(),RS=null);this.stopPlayer({resetWatchEndpointStartTime:B});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.p.isValidThumbnailOverlayButton=function(B,R){B=B.thumbnailOverlayButtonRenderer;var V;return!!B&&!!B.tooltip&&!((V=B.icon)==null||!V.iconType)&&R.includes(B.icon.iconType)};
_.p.isValidThumbnailOverlayButtonViewModel=function(B,R){var V;B=_.D((V=B.thumbnailOverlayButtonViewModel)==null?void 0:V.overlayButton,_.Tr);return!!B&&!!B.title&&!!B.iconName&&R.includes(B.iconName)};
_.p.getAdditionalButtonType=function(B){var R=this;if(_.k("web_imp_fastforward_button"))return{button:1};if(_.k("web_imp_miniplayer_button"))return{button:2};if(_.k("web_imp_playback_speed_button"))return{button:3};var V=["AUTO_AWESOME"],e=(B||[]).filter(function(Y){return R.isValidThumbnailOverlayButton(Y,V)}).map(function(Y){return Y.thumbnailOverlayButtonRenderer});
if(e.length)return{button:4,thumbnailOverlayButtonRenderers:e};var X=["AUTO_AWESOME"];B=(B||[]).filter(function(Y){return R.isValidThumbnailOverlayButtonViewModel(Y,X)}).map(function(Y){return _.D(Y.thumbnailOverlayButtonViewModel.overlayButton,_.Tr)});
if(B.length)return{button:4,thumbnailOverlayButtonViewModels:B}};
_.p.allowCaptions=function(){var B;return!((B=this.opts)==null?0:B.forceCaptionsOff)};
_.p.allowUnmuting=function(){var B;return this.enableAudioControls&&!((B=this.opts)==null?0:B.forceMutedVolume)};
_.p.beginStartTimeUpdater=function(){var B=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Yz(function(){B.updateWatchEndpointStartTime()},1E3)};
_.p.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.p.resetPreventProgressSaveTimer=function(){this.JSC$16808_preventProgressSaveTimer!==null&&(_.dV.cancelJob(this.JSC$16808_preventProgressSaveTimer),this.JSC$16808_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.p.updateWatchEndpointStartTime=function(B){var R=this.videoPreviewData;if(this.player&&R!=null&&R.inlinePlaybackEndpoint&&!this.JSC$16808_preventProgressSaveTimer){B=B?0:Math.floor(this.player.getCurrentTime());var V=_.D(R.navigationEndpoint,_.sI);V&&(V.startTimeSeconds=B);if(R=_.D(R.inlinePlaybackEndpoint,_.sI))R.startTimeSeconds=B}};
_.p.isShortcutClick=function(B){return!!B&&(B.ctrlKey||B.shiftKey||B.metaKey)};
_.p.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.p.openInMiniplayer=function(){var B=this,R,V;return _.W(function(e){if(e.nextAddress==1){V=(R=B.videoPreviewData)==null?void 0:R.navigationEndpoint;if(!V)return e.return();_.Up().lockupActivation=!0;return _.U(e,_.dzh(_.Oz().resolve(_.An),V),2)}_.Up().userActivation=!0;_.b3(e)})};
_.p.navigateToWatch=function(B){var R,V=(R=this.videoPreviewData)==null?void 0:R.navigationEndpoint;if(V){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(V,B,!0);else{if(_.k("web_thumbnail_to_watch_transition")){var e,X;(e=this.opts)==null||(X=e.onNavigateToWatchCallback)==null||X.call(e)}_.OI(this.hostElement,"yt-navigate",{endpoint:V})}this.deactivate()}};
_.p.getInlinePlaybackVideoId=function(){var B,R;return(R=_.D((B=this.videoPreviewData)==null?void 0:B.inlinePlaybackEndpoint,_.sI))==null?void 0:R.videoId};
_.p.getInlinePlaybackTrackingParams=function(){var B,R;return(B=this.videoPreviewData)==null?void 0:(R=B.inlinePlaybackEndpoint)==null?void 0:R.clickTrackingParams};
_.p.hasMultipleVideoPreviews=function(){var B;return!!(((B=this.opts)==null?0:B.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.p.startPlaybackForNextVideo=function(){var B;(B=this.opts)!=null&&B.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())};
_.mh.Object.defineProperties(gj.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.opts)==null?0:B.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.opts)==null||!B.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 B;if(Array.isArray((B=this.opts)==null?void 0:B.videoPreviewData)){var R;return(R=this.opts)==null?void 0:R.videoPreviewData[this.videoPreviewDataIndex]}var V;return(V=this.opts)==null?void 0:V.videoPreviewData}}});
gj.prototype.onIsAdsVideoChange=gj.prototype.onIsAdsVideoChange;gj.prototype.onInlinePreviewIsEnabledChange=gj.prototype.onInlinePreviewIsEnabledChange;gj.prototype.optsChanged=gj.prototype.optsChanged;gj.prototype.onMouseLeave=gj.prototype.onMouseLeave;gj.JSC$16807_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);gj.JSC$16807_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"}];
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],gj.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],gj.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],gj.prototype,"componentBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],gj.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.$c.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],gj.prototype,"ytSparklesClickLocationBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],gj.prototype,"opts",void 0);_.r([_.E(),_.Z("design:type",Object)],gj.prototype,"playerControlsData",void 0);
_.r([_.E(),_.Z("design:type",Object)],gj.prototype,"playerControlsAppApi",void 0);_.r([_.E(),_.Z("design:type",Object)],gj.prototype,"playerControlsOptions",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],gj.prototype,"noAnimation",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],gj.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],gj.prototype,"active",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],gj.prototype,"playing",void 0);_.r([_.E({selector:_.wLq}),_.Z("design:type",Boolean)],gj.prototype,"inlinePreviewIsEnabled",void 0);_.r([_.E(),_.Z("design:type",String)],gj.prototype,"pagePath",void 0);_.r([_.E({selector:_.w6}),_.Z("design:type",Boolean)],gj.prototype,"isWatchPage",void 0);_.r([_.K("videoPreviewData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gj.prototype,"thumbnailData",null);
_.r([_.K("opts","active"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gj.prototype,"hidePlayerControls",null);_.r([_.K("opts"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gj.prototype,"isAdsVideo",null);_.r([_.K("opts"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gj.prototype,"roundedCornersSmall",null);
_.r([_.K("opts"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gj.prototype,"roundedCornersMedium",null);_.r([_.K("opts"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gj.prototype,"roundedCornersLarge",null);_.r([_.K("opts"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gj.prototype,"unroundCornersForPlayback",null);
_.r([_.K("opts","videoPreviewDataIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gj.prototype,"videoPreviewData",null);_.r([_.E(),_.Z("design:type",Object)],gj.prototype,"videoPreviewDataIndex",void 0);_.r([_.Yp("#inline-player"),_.Z("design:type",Object)],gj.prototype,"inlinePlayer",void 0);_.r([_.R_("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[MouseEvent]),_.Z("design:returntype")],gj.prototype,"onMouseLeave",null);
_.r([_.bp("opts"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gj.prototype,"optsChanged",null);_.r([_.bp("inlinePreviewIsEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gj.prototype,"onInlinePreviewIsEnabledChange",null);_.r([_.XX("isAdsVideo"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gj.prototype,"onIsAdsVideoChange",null);
gj=_.r([_.A({is:"ytd-video-preview",disableElementRegistration:!0})],gj);
_.F(gj,"ytd-video-preview",function(){if(p84!==void 0)return p84;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return p84=B},{mode:2});
}catch(e){_._DumpException(e)}
try{
var TP2;var xIo;/*

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
*/
_.Sm({_template:function(){if(xIo!==void 0)return xIo;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;TP2===void 0&&(TP2=document.createElement("template"));var e=TP2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return xIo=B},
is:"tp-yt-paper-checkbox",behaviors:[_.ut5],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.gB(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var B=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),R="px",V=B.match(/[A-Za-z]+$/);V!==null&&(R=V[0]);B=parseFloat(B);V=8/3*B;R==="px"&&(V=Math.floor(V),V%2!==B%2&&V++);this.updateStyles({"--paper-checkbox-ink-size":V+
R})}})},
_computeCheckboxClass:function(B,R){var V="";B&&(V+="checked ");R&&(V+="invalid");return V},
_computeCheckmarkClass:function(B){return B?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.PlG._createRipple.call(this)}});var LC4=new _.P("radioButtonSurveyOptionRenderer"),vbr=new _.P("checkboxSurveyOptionRenderer");var KC7;var IX7;var Ebm=0,Is=function(){var B=_.c.call(this)||this;B.selected=!1;B.isOverlay=!1;B.inputId="toggle-option-"+Ebm;Ebm++;return B};
_.l(Is,_.c);Is.prototype.onTap=function(){_.OI(this.hostElement,"ytd-toggle-option-clicked")};
_.r([_.E(),_.Z("design:type",String)],Is.prototype,"label",void 0);_.r([_.E(),_.Z("design:type",String)],Is.prototype,"inputId",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Is.prototype,"selected",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Is.prototype,"isOverlay",void 0);Is=_.r([_.A({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Z("design:paramtypes",[])],Is);
_.F(Is,"ytd-toggle-option-renderer",function(){if(IX7!==void 0)return IX7;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return IX7=B},{mode:1});var Ef=function(){var B=_.c.apply(this,arguments)||this;B.isToggleOption=!1;B.isOverlay=!1;return B};
_.l(Ef,_.c);Ef.prototype.onTap=function(B){B.preventDefault();this.data&&(B=!this.data.checked,this.set("data.checked",B),_.OI(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:B,value:this.data.value}))};
_.mh.Object.defineProperties(Ef.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Ef.prototype.onTap=Ef.prototype.onTap;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ef.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Ef.prototype,"isToggleOption",void 0);_.r([_.E(),_.Z("design:type",Object)],Ef.prototype,"isOverlay",void 0);_.r([_.K("data.responseText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ef.prototype,"label",null);
_.r([_.R_("ytd-toggle-option-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Ef.prototype,"onTap",null);Ef=_.r([_.A({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Ef);
_.F(Ef,"ytd-checkbox-survey-option-renderer",function(){if(KC7!==void 0)return KC7;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return KC7=B},{mode:1});var Qb4;var q0i;var QO=function(){var B=_.c.apply(this,arguments)||this;B.checked=!1;B.isToggleOption=!1;return B};
_.l(QO,_.c);QO.prototype.onTap=function(){this.data&&(this.checked?_.oF(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.oF(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
QO.prototype.onTap=QO.prototype.onTap;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],QO.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],QO.prototype,"checked",void 0);_.r([_.E(),_.Z("design:type",Object)],QO.prototype,"isToggleOption",void 0);_.r([_.R_("ytd-toggle-option-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],QO.prototype,"onTap",null);
QO=_.r([_.A({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],QO);
_.F(QO,"ytd-radio-button-survey-option-renderer",function(){if(q0i!==void 0)return q0i;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return q0i=B},{mode:1});var qJ=function(){var B=_.c.apply(this,arguments)||this;B.disableAnimation=!1;B.isToggleOption=!0;B.followUpSurveyCommand=null;B.selectedRatingEndpoint=null;B.isSlimlineSurveyFollowUp=!1;B.isShortsStyle=!1;B.styleOverrideAttribute=!0;B.isDarkMode=!1;B.isSubmitted=!1;B.roundedContainer=!0;B.improveShortsResponseRate=_.k("web_improve_shorts_response_rate");B.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 B};
_.l(qJ,_.c);_.p=qJ.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 B=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(V){var e;if((e=V[0])!=null&&e.isIntersecting){_.hJ().reportShown(B.hostElement);var X;(X=B.intersectionObserver)==null||X.unobserve(B.hostElement)}},{rootMargin:"0px",
threshold:.6});var R;(R=this.intersectionObserver)==null||R.observe(this.hostElement)};
_.p.onDarkModeToggledAction=function(B){this.isDarkMode=B};
_.p.dataChanged=function(){var B;if(((B=this.data)==null?void 0:B.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var R;((R=this.data)==null?void 0:R.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var V,e,X,Y;this.darkColorPalette=(V=this.data)==null?void 0:(e=V.inlineContent)==null?void 0:(X=e.compactVideoRenderer)==null?void 0:(Y=X.thumbnail)==null?
void 0:Y.darkColorPalette;var t,b,J,G;this.lightColorPalette=(t=this.data)==null?void 0:(b=t.inlineContent)==null?void 0:(J=b.compactVideoRenderer)==null?void 0:(G=J.thumbnail)==null?void 0:G.lightColorPalette;var y,S;if(((y=this.data)==null?0:(S=y.inlineContent)==null?0:S.compactVideoRenderer)&&this.isShortsStyle){var M,f,z,T;B=_.Cc((M=this.data)==null?void 0:(f=M.inlineContent)==null?void 0:(z=f.compactVideoRenderer)==null?void 0:(T=z.thumbnail)==null?void 0:T.thumbnails);_.o_(this.hostElement,
{"--yt-background-url":"url("+B+")"})}};
_.p.handleRequestCompletion=function(){this.hostElement.hidden&&_.OI(this.hostElement,"yt-dismissible-item-dismissed")};
_.p.onPopupClosed=function(B){var R;((R=B.detail)==null?void 0:R.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.oF(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.p.handleInlineSurveyRatingSelect=function(B,R){var V=this;this.selectedRatingEndpoint=B;this.followUpSurveyCommand=R;this.expanded=!!B;this.getOptionRenderers().forEach(function(e,X){V.notifyPath("followUpSurveyCommand.followUpOptions."+X+".checkboxSurveyOptionRenderer.checked");V.set("followUpSurveyCommand.followUpOptions."+X+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),B=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.oF(this.hostElement,"yt-reel-non-video-content-dismissal-command",[B]))};
_.p.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.oF(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var B,R=(B=this.data)==null?void 0:B.dismissalEndpoint;R&&this.ytComponentBehavior.resolveCommand(R)}};
_.p.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.oF(this.hostElement,"yt-close-popup-action"))};
_.p.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var B=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{B=this.getOptionRenderers().filter(function(e){return e.checked});
if(B.length===0)return;B=B.map(function(e){return e.responseEndpoint})}var R=[];
B.forEach(function(e,X){X!==0&&(e=_.D(e,_.Ki))&&e.feedbackToken&&R.push(e.feedbackToken)});
if(B=B[0]){var V={};R.length>0&&(V.extra_feedback_tokens=R);this.ytComponentBehavior.resolveCommand(B,{form:V})}}};
_.p.getOptionRenderers=function(){var B=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(R){B.isSingleSelect=!!_.D(R,LC4);return B.isSingleSelect?_.D(R,LC4):_.D(R,vbr)}):[]};
_.p.handleInlineSurveyOptionSelect=function(B){B=this.optionSelector.indexOf(B);B!==-1&&this.optionSelector.selectIndex(B)};
_.p.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.p.maybeGetBackgroundColor=function(B){return this.isDarkMode?B.section2Color:B.section3Color};
_.p.colorPaletteChanged=function(){var B=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;B=B&&this.maybeGetBackgroundColor(B);this.dismissibleEl.style.backgroundColor=!B||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.li(B)};
_.mh.Object.defineProperties(qJ.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
qJ.prototype.colorPaletteChanged=qJ.prototype.colorPaletteChanged;qJ.prototype.onPopupClosed=qJ.prototype.onPopupClosed;qJ.prototype.handleRequestCompletion=qJ.prototype.handleRequestCompletion;qJ.prototype.dataChanged=qJ.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],qJ.prototype,"actionHandlerBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],qJ.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],qJ.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.Yp("#follow-up-survey-options"),_.Z("design:type",Object)],qJ.prototype,"optionSelector",void 0);_.r([_.E(),_.Z("design:type",Object)],qJ.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],qJ.prototype,"disableAnimation",void 0);_.r([_.E(),_.Z("design:type",Object)],qJ.prototype,"isToggleOption",void 0);_.r([_.E(),_.Z("design:type",Object)],qJ.prototype,"followUpSurveyCommand",void 0);_.r([_.E(),_.Z("design:type",Object)],qJ.prototype,"selectedRatingEndpoint",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],qJ.prototype,"expanded",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qJ.prototype,"isSlimlineSurveyFollowUp",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qJ.prototype,"isShortsStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qJ.prototype,"styleOverrideAttribute",void 0);_.r([_.E(),_.Z("design:type",Boolean)],qJ.prototype,"isSingleSelect",void 0);_.r([_.E(),_.Z("design:type",Object)],qJ.prototype,"isDarkMode",void 0);
_.r([_.E(),_.Z("design:type",Object)],qJ.prototype,"lightColorPalette",void 0);_.r([_.E(),_.Z("design:type",Object)],qJ.prototype,"darkColorPalette",void 0);_.r([_.K("selectedRatingEndpoint","isShortsStyle"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qJ.prototype,"isOptionSelected",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qJ.prototype,"roundedContainer",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qJ.prototype,"improveShortsResponseRate",void 0);_.r([_.Yp("#dismissible"),_.Z("design:type",HTMLElement)],qJ.prototype,"dismissibleEl",void 0);_.r([_.Yp("#dismiss-button yt-icon-button"),_.Z("design:type",HTMLElement)],qJ.prototype,"dismissButtonEl",void 0);_.r([_.Yp("#inline-survey-header yt-icon-button"),_.Z("design:type",HTMLElement)],qJ.prototype,"inlineHeaderDismissButtonEl",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qJ.prototype,"dataChanged",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qJ.prototype,"handleRequestCompletion",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],qJ.prototype,"onPopupClosed",null);
_.r([_.XX("darkColorPalette","lightColorPalette","isDarkMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qJ.prototype,"colorPaletteChanged",null);qJ=_.r([_.A({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],qJ);
_.F(qJ,"ytd-inline-survey-renderer",function(){if(Qb4!==void 0)return Qb4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Qb4=B},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Hv7,MT4,kIe;Hv7=function(B){return _.k("kevlar_watch_cinematics_invisible")||B.fullscreen&&_.k("kevlar_watch_cinematics_invisible_in_fullscreen")||B.theater&&!B.fullscreen&&_.k("kevlar_watch_cinematics_invisible_in_theater")};
MT4=function(){var B=document.createElement("canvas"),R=B.getContext("2d");if(!R)throw Error("Xl");_.Ip(B,{position:"absolute",width:"100%",height:"100%"});return{element:B,context:R}};
kIe=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.k("kevlar_watch_cinematics_css_blur")};
_.DBj=function(B,R,V){return Math.abs(B-R)<=(V||1E-6)};
_.fJ2=function(B,R){return B==R?!0:B&&R?B.width==R.width&&B.height==R.height:!1};_.lJm=new _.P("notificationActionRenderer");var zKi=function(B){var R=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Xs;this.element.addEventListener("load",function(){R.loaded=!0;R.resolver.resolve(R.element)});
this.element.addEventListener("error",function(){R.failed=!0});
this.element.src=B};var aJ4=function(B,R){this.image=B;this.frame=R};
aJ4.prototype.drawToCanvas=function(B,R){var V=this.frame.width/this.frame.columns,e=this.frame.height/this.frame.rows,X=R.offsetX,Y=R.offsetY;Hv7(R)?(B.fillStyle=R.fullscreen?"#000":"#0f0f0f",B.fillRect(X,Y,(R==null?void 0:R.width)||V,(R==null?void 0:R.height)||e)):B.drawImage(this.image,this.frame.column*V,this.frame.row*e,V,e,X,Y,(R==null?void 0:R.width)||V,(R==null?void 0:R.height)||e)};
var dBU=function(B){this.color=B};
dBU.prototype.drawToCanvas=function(B,R){var V=R.offsetX,e=R.offsetY,X=R.width,Y=R.height;B.fillStyle=Hv7(R)?R.fullscreen?"#000":"#0f0f0f":this.color;B.fillRect(V,e,X,Y)};var BY=function(B,R){_.P4.call(this);this.playerApi=R;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Yl(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();wlz(this,B);TRe(this);this.update()};
_.l(BY,_.P4);BY.prototype.addEventListeners=function(){var B=this,R=function(){B.update()},V=function(X){B.paused||(X.type==="newdata"&&(B.mosaics.clear(),xBU(B),R2(B)),TRe(B),B.update())},e=function(){B.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",R);this.playerApi.addEventListener("onVideoDataChange",V);this.playerApi.addEventListener("onStateChange",e);this.addOnDisposeCallback(function(){B.playerApi.removeEventListener("onVideoProgress",R);B.playerApi.removeEventListener("onVideoDataChange",V);B.playerApi.removeEventListener("onStateChange",e)})};
var wlz=function(B,R){B.cinematicContainerRenderer!==R&&(B.cinematicContainerRenderer=R,xBU(B),R2(B),B.colorStoreUpdateJobId=_.dV.addLowPriorityJob(function(){var V;if((V=B.cinematicContainerRenderer.colorStore)!=null&&V.sampledColors){V=Infinity;for(var e=_.h(B.cinematicContainerRenderer.colorStore.sampledColors),X=e.next();!X.done;X=e.next()){X=X.value;var Y=Number(X.key);Y!==0&&Y<V&&(V=Y);Y=_.zF(X.value);B.colorStore.set(X.key,Y)}B.colorStoreTimeInterval=V}}))},xBU=function(B){B.colorStoreUpdateJobId&&
(_.dV.cancelJob(B.colorStoreUpdateJobId),B.colorStoreUpdateJobId=void 0);
B.colorStore.clear();B.currentStoryboardColor=void 0},Li2=function(B,R){var V;
return(V=B.getStoryboardFrame(R))==null?void 0:V.url};
BY.prototype.onPlayerStateChange=function(){this.update()};
BY.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var TRe=function(B){var R=B.getStoryboardFrame(0);R&&(R=new _.Yl(R.width/R.columns,R.height/R.rows),_.fJ2(B.currentStoryboardSize,R)||(B.currentStoryboardSize=R,B.publish("STORYBOARD_SIZE_CHANGED",B.currentStoryboardSize)))},vM6=function(B,R){B.currentStoryboardIndex=R;
B.pendingStoryboardIndex=NaN;R=B.getStoryboardFrame(B.currentStoryboardIndex);B.currentStoryboard=new aJ4(B.mosaics.get(R.url).element,R);B.publish("STORYBOARD_CHANGED",B.currentStoryboard);B.lastUpdateTime=(0,_.P8)()};
BY.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var R2=function(B){B.currentStoryboardIndex=NaN;B.pendingStoryboardIndex=NaN;B.currentStoryboard&&(B.currentStoryboard=void 0,B.publish("STORYBOARD_CHANGED",void 0));B.lastUpdateTime=NaN};
BY.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)R2(this);else{var B=this.playerApi.getPlayerState(1);if(B===-1||B===5||B===0)R2(this);else if(isNaN(this.lastUpdateTime)||!((0,_.P8)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(B=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){B=""+Math.round(B*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var R=this.colorStore.get(B);R?R!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=R,this.currentStoryboard=new dBU(R),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.P8)()):(_.KE(new _.H8("Could not find color for timestamp: "+B,this.cinematicContainerRenderer)),R2(this))}else R2(this);else Kin(this,B)}};
var Kin=function(B,R){var V=B.getStoryboardFrameIndex(R);if(V!==B.currentStoryboardIndex&&V!==B.pendingStoryboardIndex){R=Li2(B,V);var e=B.mosaics.get(R);e?e.loaded&&vM6(B,V):(B.pendingStoryboardIndex=V,V=new zKi(R),B.mosaics.set(R,V),V.resolver.promise.then(function(){if(!B.isDisposed()&&!B.paused&&!isNaN(B.pendingStoryboardIndex)){var X=Li2(B,B.pendingStoryboardIndex);if(X){var Y;(Y=B.mosaics.get(X))!=null&&Y.loaded&&vM6(B,B.pendingStoryboardIndex)}else R2(B)}}))}};
BY.prototype.getStoryboardFrameIndex=function(B){var R=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(B,R)};
BY.prototype.getStoryboardFrame=function(B){var R=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,V,e;return((e=(V=this.playerApi).getStoryboardFrame)==null?void 0:e.call(V,B,R))||null};
BY.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var eh=function(B,R,V,e){e=e===void 0?!1:e;_.Hn.call(this);this.cinematicContainerRenderer=R;this.playerApi=V;this.theater=this.fullscreen=!1;var X;this.ambientLightThemeEnabled=!e&&!!(R==null?0:(X=R.config)==null?0:X.enableInLightTheme);this.ambientFullscreenEnabled=e&&_.k("web_cinematic_fullscreen");this.container=document.createElement("div");B.appendChild(this.container);var Y;if(_.k("web_cinematic_theater_mode")||_.k("web_cinematic_fullscreen")||(R==null?0:(Y=R.config)==null?0:Y.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);IJ2(this);B=this.ambientV2Container||this.container;this.backCanvas=MT4();this.frontCanvas=MT4();B.appendChild(this.backCanvas.element);B.appendChild(this.frontCanvas.element);this.storyboardManager=new BY(R,this.playerApi);_.t4(this,this.storyboardManager);this.addEventListeners();EMz(this)?Qd6(this,100+VE(this)*3*2,100+VE(this)*3*2):qCe(this);cBj(this,this.storyboardManager.currentStoryboard)};
_.l(eh,_.Hn);var IJ2=function(B){B.ambientV2Container?ABi(B):(_.Ip(B.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+iv7(B)+", "+sdr(B)+")"}),kIe()&&_.Ip(B.container,"filter","blur("+_.RC("cinematic_watch_css_filter_blur_strength",40)+"px)"))},ABi=function(B){if(B.ambientV2Container){var R=B.playerApi.getVideoAspectRatio();
_.Ip(B.container,{"aspect-ratio":""+R,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Ip(B.ambientV2Container,{"aspect-ratio":""+R,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+iv7(B)+", "+sdr(B)+")"});kIe()&&_.Ip(B.ambientV2Container,"filter","blur("+_.RC("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
eh.prototype.setFullscreen=function(B,R){this.fullscreen=B;this.theater=!!R;IJ2(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),B=this.storyboardManager.currentStoryboard,Fin(this),B&&rBe(this,B)};
eh.prototype.addEventListeners=function(){var B=this,R=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(X){cBj(B,X)}),V=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){qCe(B)});
this.addOnDisposeCallback(function(){B.storyboardManager.unsubscribeByKey(R);B.storyboardManager.unsubscribeByKey(V)});
if(this.ambientV2Container){var e=function(){ABi(B)};
this.playerApi.addEventListener("onVideoDataChange",e);this.addOnDisposeCallback(function(){B.playerApi.removeEventListener("onVideoDataChange",e)})}};
var qCe=function(B){if(!EMz(B)){var R=B.storyboardManager.currentStoryboardSize;isNaN(R.width)||isNaN(R.height)||Qd6(B,Number(R.width)+VE(B)*3*2,Number(R.height)+VE(B)*3*2)}},Qd6=function(B,R,V){B.backCanvas.element.width=R;
B.backCanvas.element.height=V;B.frontCanvas.element.width=R;B.frontCanvas.element.height=V},EMz=function(B){return B.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},cBj=function(B,R,V){V=V===void 0?!1:V;
var e=B.frontCanvas.element.getAnimations()[0];e?(e.pause(),B.backCanvas.context.globalAlpha=Number(getComputedStyle(B.frontCanvas.element).opacity),B.frontCanvas.element.style.opacity="0",e.finish()):B.backCanvas.context.globalAlpha=1;B.backCanvas.context.drawImage(B.frontCanvas.element,0,0,B.backCanvas.element.width,B.backCanvas.element.height);Fin(B);R&&rBe(B,R);R=R?B.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.RC("cinematic_watch_fade_out_duration",500);e=_.RC("cinematic_watch_transition_frame_rate")/
1E3;var X={};e&&(X={easing:"steps("+Math.round(R*e)+")"});(V===void 0?0:V)||B.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:R,iterations:1},X));B.frontCanvas.element.style.opacity="1"},Fin=function(B){var R=B.ambientLightThemeEnabled,V=B.ambientLightThemeEnabled||B.ambientFullscreenEnabled&&!_.k("web_cinematic_fullscreen_v2");
B.frontCanvas.context.fillStyle=B.theater&&R||B.fullscreen&&V?"#000":"#0f0f0f";kIe()||(B.frontCanvas.context.filter="blur(0)");B.frontCanvas.context.fillRect(0,0,B.frontCanvas.element.width,B.frontCanvas.element.height)},rBe=function(B,R){kIe()||(B.frontCanvas.context.filter="blur("+VE(B)+"px)");
B.frontCanvas.context.globalAlpha=_.RC("cinematic_watch_effect_opacity",.4);var V={offsetX:VE(B)*3,offsetY:VE(B)*3,theater:B.theater,fullscreen:B.fullscreen};EMz(B)&&(V.width=100,V.height=100);R.drawToCanvas(B.frontCanvas.context,V);B.frontCanvas.context.globalAlpha=1},VE=function(B){var R;
return(R=B.cinematicContainerRenderer.config.blurStrength)!=null?R:5},iv7=function(B){var R,V;
if((B.fullscreen||B.theater)&&((R=B.cinematicContainerRenderer.config)==null?0:(V=R.watchFullscreenConfig)==null?0:V.colorSourceWidthMultiplier))return B.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var e;return(e=B.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?e:B.cinematicContainerRenderer.config.colorSourceSizeMultiplier},sdr=function(B){var R,V;
if((B.fullscreen||B.theater)&&((R=B.cinematicContainerRenderer.config)==null?0:(V=R.watchFullscreenConfig)==null?0:V.colorSourceHeightMultiplier))return B.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var e;return(e=B.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?e:B.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
eh.prototype.disposeInternal=function(){_.Hn.prototype.disposeInternal.call(this);this.container.remove()};
eh.prototype.clear=function(){cBj(this,void 0,!0)};
eh.prototype.pause=function(){this.storyboardManager.pause()};var gM4;gM4=_.S9(function(){var B,R,V=!((R=(B=document.createElement("canvas")).getContext)==null||!R.call(B,"2d")),e;B=!((e=CSS)==null||!e.supports("filter: blur(0)"));e=!!Element.prototype.animate&&!!Element.prototype.getAnimations;R=_.k("web_cinematic_fullscreen")||_.k("web_cinematic_theater_mode")||_.k("web_cinematic_light_theme")||!1;var X;return V&&B&&e&&(!R||!((X=CSS)==null||!X.supports("aspect-ratio: 1 / 1")))});
_.Xg=function(B,R){_.P4.call(this);this.container=B;this.playerApi=R;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=ZvU(this);this.update()};
_.l(_.Xg,_.P4);_.mBi=function(B){var R=document.documentElement.hasAttribute("dark");B.isDarkModeEnabled=R;B.update()};
_.$Br=function(B,R){B.settingEnabled=R;B.update()};
_.Xg.prototype.setFullscreen=function(B,R){this.fullscreen=B;this.theater=!!R;this.update()};
_.CXU=function(B,R){B.cinematicContainerRenderer=R;B.cinematicContainerRenderer&&(B.cinematicsVe=_.kB(B.isShorts()?227858:159022),_.YJ(_.WK(),B.cinematicsVe),B.loggingClientData={watchCinematicContainerData:{presentationStyle:B.cinematicContainerRenderer.presentationStyle}});B.update()};
_.Xg.prototype.isShorts=function(){var B,R;return((B=this.cinematicContainerRenderer)==null?void 0:(R=B.config)==null?void 0:R.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Xg.prototype.isAllowed=function(){var B;if(B=gM4()){var R,V,e;B=((V=this.cinematicContainerRenderer)==null?void 0:V.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((e=this.cinematicContainerRenderer)==null||!e.colorStore)||((R=this.cinematicContainerRenderer)==null?void 0:R.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(B)if(_.k("web_cinematics_pausing")){var X,Y;B=this.isDarkModeEnabled||!!((X=this.cinematicContainerRenderer)==
null?0:(Y=X.config)==null?0:Y.enableInLightTheme)}else{var t,b;X=!!((t=this.cinematicContainerRenderer)==null?0:(b=t.config)==null?0:b.enableInLightTheme)&&(_.vE("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);B=this.isDarkModeEnabled||X}if(t=B){var J,G;t=!((G=(J=this.prefersReducedMotionQuery)==null?void 0:J.matches)!=null&&G)}return t};
_.PX4=function(B){(B=B.currentCinematicEffect)!=null&&(B=B.storyboardManager,B.paused=!1,TRe(B),B.update())};
_.Xg.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var ZvU=function(B){if(!_.k("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var R=window.matchMedia("(prefers-reduced-motion: reduce)"),V=function(){B.update()};
R.addListener(V);B.addOnDisposeCallback(function(){R.removeListener(V)});
return R}};
_.Xg.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var B=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new eh(this.container,B,this.playerApi,this.isDarkModeEnabled),_.t4(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var R=this.currentCinematicEffect;R.cinematicContainerRenderer!==
B&&(R.cinematicContainerRenderer=B,wlz(R.storyboardManager,B),IJ2(R));B=_.UV();_.Nd(0,194,!0);B.save();B=_.TE();this.cinematicsVe&&B&&_.cz(B,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(B=_.TE(),this.cinematicsVe&&B&&_.AE(B,[this.cinematicsVe],!1,this.loggingClientData),_.Cx(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.mh.Object.defineProperties(_.Xg.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var CZU;var PZU;_.Sm({_template:function(){if(PZU!==void 0)return PZU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=
B.content,V=R.insertBefore;CZU===void 0&&(CZU=document.createElement("template"));var e=CZU;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return PZU=B},
is:"tp-yt-iron-pages",behaviors:[_.LC,_.KJ],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var A17;_.i42=function(){if(_.k("kevlar_home_skeleton")&&!A17){var B=document.querySelector("#home-page-skeleton");B&&(_.zp("hgcr"),_.UJ(B),A17=!0)}};
A17=!1;_.MX=new _.P("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Aco,iso,ssN,FFj,rcm,gLo,$Jr,PuN,nLr,Cu4,Zse,mJi,okm,Bj2;_.cco=function(B,R,V){R=R===void 0?5:R;if(R!==0){var e=typeof B==="function"?B():document.querySelector(B);e?(V==null?0:V.enableSmartFocus)?_.XE_(e):e.focus():setTimeout(function(){_.cco(B,R-1,V)},500)}};
Aco=function(B){return _.Xuu(_.enA(B&16777215))<.5};
iso=function(B,R,V){var e=V.minimumRowsOfVideosBetweenSections===void 0?1:V.minimumRowsOfVideosBetweenSections;return B<(V.minimumRowsOfVideosAtStart===void 0?2:V.minimumRowsOfVideosAtStart)||R!==null&&B-R<=e?!1:!0};
ssN=function(B,R){var V=0,e=0;B=_.h(B);for(var X=B.next();!X.done;X=B.next()){var Y=X.value;if(Y.richItemRenderer)Y.richItemRenderer.rowIndex=e,Y.richItemRenderer.colIndex=V++,V===R&&(V=0,e++);else if(Y.richGroupRenderer&&Y.richGroupRenderer.numColumns!==void 0)Y.richGroupRenderer.rowIndex=e,Y.richGroupRenderer.colIndex=V,V+=Y.richGroupRenderer.numColumns,V===R&&(V=0,e++);else if(Y.richSectionRenderer){var t=X=void 0;if(Y=_.D((X=Y)==null?void 0:(t=X.richSectionRenderer)==null?void 0:t.content,_.REh))Y.rowIndex=
e++}}};
FFj=function(B,R){var V=R.contentElement;R=R.rendererToTagNameMap;if(V&&R&&R.size!==0){for(var e=new Map,X=_.h(V.children),Y=X.next();!Y.done;Y=X.next()){Y=Y.value;var t=Y.tagName.toLowerCase(),b=e.get(t);b||(b=[],e.set(t,b));b.push(Y)}if(e.size!==0)for(X=Math.min(B.length,V.children.length),Y=new Map,t=0;t<X;t++){b=Object.keys(B[t])[0];b=R.get(b);if(!b)break;var J=Y.get(b);J===void 0&&(J=0,Y.set(b,J));var G=e.get(b);if(!G||J>=G.length)break;Y.set(b,J+1);b=G[J];J=V.children[t];J!==b&&(_.hYd=!0,_.ted.set(b,
!0),V.insertBefore(b,J),_.ted.delete(b),_.hYd=!1)}}};
rcm=function(B,R,V,e,X,Y,t){e=e===void 0?{}:e;if(!B||!B.length)return[];B=B.slice();var b=[],J=[];X=null;for(var G=0,y=function(Q){J.sort(function(g,Vu){return Vu.skippedOnRow-g.skippedOnRow});
for(var q,m=(q=J.shift())==null?void 0:q.content;m;)!m.richSectionRenderer&&Q||b.push(m),q=void 0,m=(q=J.shift())==null?void 0:q.content},S=[];B.length>0||J.length>0;){for(var M=[],f=R;f>0;){var z=void 0,T=void 0,L=(T=J[0]&&J[0].skippedOnRow<G?(z=J.shift())==null?void 0:z.content:void 0)!=null?T:B.shift();
if(!L)break;if(L.richItemRenderer)z=L.richItemRenderer.targetId,T=void 0,z&&((T=t)==null?0:T.has(z))&&S.push(t.get(z)),M.push(L),f--;else if(L.richGroupRenderer&&L.richGroupRenderer.numColumns!==void 0)L.richGroupRenderer.numColumns<=f?(M.push(L),f-=L.richGroupRenderer.numColumns):f===R&&L.richGroupRenderer.numColumns>R?(M.push({richGroupRenderer:Object.assign({},L.richGroupRenderer,{numColumns:R})}),f=0):J.push({content:L,skippedOnRow:G});else if(L.richSectionRenderer)if(iso(G,X,e)&&f===R){b.push(L);
X=G;G++;continue}else J.push({content:L,skippedOnRow:G});else if(L.continuationItemRenderer){y(!0);b.push(L);f=0;break}if(f===0)b.push.apply(b,_.MI(M));else if(!V&&B.length===0){y(!1);b.push.apply(b,_.MI(M));f=0;break}}G++;S=_.h(S);for(M=S.next();!M.done;M=S.next())b.push(M.value),G++;S=[]}ssN(b,R);Y&&FFj(b,Y);return b};
gLo=function(B){return B.talkToRecs};
$Jr=function(B,R){if(R){var V=_.g6().getState().entities.flowStateEntity,e=Zse(B),X=[R];e&&e!==R&&X.push(e);var Y=!0,t;if(V&&B.flowStateEntityKey&&((t=V[B.flowStateEntityKey])==null?void 0:t.primaryButtonDisabled)!==void 0){var b;Y=!((b=V[B.flowStateEntityKey])==null||!b.primaryButtonDisabled)}mJi(B,e!=null?e:R,X,Y)}};
PuN=function(B){return _.Ge(_.g6(),function(R){return R.entities.flowStateEntity},function(R,V){if(B.flowStateEntityKey){var e,X=R==null?void 0:(e=R[B.flowStateEntityKey])==null?void 0:e.currentStepId,Y;
V=V==null?void 0:(Y=V[B.flowStateEntityKey])==null?void 0:Y.currentStepId;Y=_.g6().getState().talkToRecs;if(X&&X!==V){var t;R=(R==null?void 0:(t=R[B.flowStateEntityKey])==null?void 0:t.stepIdStack)||Object.keys(Y.stepStates);t=!Cu4(Y==null?void 0:Y.stepStates[X]);mJi(B,X,R,t)}}})};
nLr=function(B){return _.Ge(_.g6(),gLo,function(R){var V=Zse(B);if(V){var e=Object.keys(R.stepStates);R=!Cu4(R==null?void 0:R.stepStates[V]);mJi(B,V,e,R)}})};
Cu4=function(B){var R=Object.keys((B==null?void 0:B.selectionStates)||{}).reduce(function(Y,t){return Y||(B==null?void 0:B.selectionStates[t].isSelected)},!1),V,e,X=!!(B==null?0:(V=B.userQuery)==null?0:(e=V.userQuery)==null?0:e.trim());
return R||X};
Zse=function(B){if(B.flowStateEntityKey){var R,V,e=(R=_.g6().getState().entities.flowStateEntity)==null?void 0:(V=R[B.flowStateEntityKey])==null?void 0:V.currentStepId;if(e)return e}};
mJi=function(B,R,V,e){_.g6().dispatch(_.SX("flowStateEntity",B.flowStateEntityKey,{currentStepId:R,stepIdStack:V,key:B.flowStateEntityKey,primaryButtonDisabled:e}))};
_.urn=function(B,R){return _.p7(B.entities,"youchatPendingResponseEntity",R)};
_.Osr=function(B){return function(R){_.cc(_.SX("youchatPendingResponseEntity",B,{entityKey:B,isPendingResponse:R}))}};
okm=function(B){B==null||B.addEventListener("DOMLoaded",function(){B.goToAndPlay(B.totalFrames-48,!0)})};var R9e;_.Sm({_template:function(){if(R9e!==void 0)return R9e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
var R=B.content,V=R.insertBefore;Bj2===void 0&&(Bj2=document.createElement("template"));var e=Bj2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return R9e=B},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Vwz=new _.P("talkToRecsFlowRenderer");var e9e=new _.P("flowRootRenderer");var X4o=new _.P("chipsShelfViewModel");var p4r=new _.P("horizontalShelfViewModel");_.Yte=new _.P("engagementPanelSectionListRenderer");var h9m=new _.P("conversationResourceViewModel");var twz=function(){this.horizontal=!1},W72=function(B,R){B.horizontal=R};
twz.prototype.position=function(B,R,V,e){e=e===void 0?1:e;B=this.delta(B)*e+R;e=Math.max(R,V);return B>=Math.min(R,V)&&B<=e?B:V};
twz.prototype.axis=function(B){B=this.direction(B);return B==="up"||B==="down"?"Y":"X"};var pP=function(B,R,V){R=R===void 0?_.YZ():R;this.target=B;this.manager=R;this.touchAction=V;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
pP.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(_.MI(this.events)));for(var B=_.h(this.events),R=B.next();!R.done;R=B.next())this.listen(R.value)}};
pP.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.MI(this.events)));for(var B=_.h(this.events),R=B.next();!R.done;R=B.next())this.unlisten(R.value)}};
pP.prototype.listen=function(B){this.eventMap[B]&&this.target.addEventListener(B,this.eventMap[B])};
pP.prototype.unlisten=function(B){this.eventMap[B]&&this.target.removeEventListener(B,this.eventMap[B])};var YN=function(){twz.apply(this,arguments)};
_.l(YN,twz);YN.prototype.direction=function(B){var R=B.detail;B=R.deltaY;R=R.deltaX;return B&&!this.horizontal?B>0?"down":"up":R&&this.horizontal?R>0?"right":"left":"none"};
YN.prototype.distance=function(B){return Math.abs(this.delta(B))};
YN.prototype.delta=function(B){var R=this.direction(B),V=B.detail;B=V.deltaX;V=V.deltaY;return R==="up"||R==="down"?V||0:B||0};
YN.prototype.velocity=function(B){var R=this.direction(B),V=B.detail;B=V.velocityX;V=V.velocityY;return Math.abs(R==="up"||R==="down"?V||0:B||0)};_.hx=function(B,R,V,e,X,Y){X=X===void 0?new YN:X;Y=Y===void 0?_.YZ():Y;pP.call(this,R,Y,e);var t=this;this.element=B;this.target=R;this.config=V;this.input=X;this.manager=Y;this.events=["panstart","panmove","panend"];this.onPanStart=function(){t.config.draggingClass&&t.element.classList.add(t.config.draggingClass);t.config.startAction&&t.config.startAction()};
this.onPanMove=function(b){var J=b4e(t,b);if(J){t.move(b,J);J.fade&&t.fade(b,J);var G=t.input.direction(b);J.moveAction&&J.moveAction(J1o(t,b,J),G)}};
this.onPanEnd=function(b){var J,G,y,S,M,f;return _.W(function(z){if(z.nextAddress==1){t.animationRequestId&&cancelAnimationFrame(t.animationRequestId);t.animationRequestId=void 0;J=b4e(t,b);if(!J)return z.return();G=J;y=G.triggerAction;S=G.fade;M=G.disableFinish;f=G.translateBack;var T=t.input.velocity(b),L=t.input.distance(b),Q=t.threshold(J);return T>.3&&L>10||L>Q?M?z.jumpTo(6):S?_.U(z,jSo(t,b),6):_.U(z,UM4(t,b,J),6):f?_.U(z,t.translateBack(b),3):z.jumpTo(3)}z.nextAddress!=3&&y&&y();t.config.draggingClass&&
t.element.classList.remove(t.config.draggingClass);t.reset();_.b3(z)})};
B=Object.keys(V.triggers);this.directions=new Set(B);W72(this.input,this.directions.has("right")||this.directions.has("left"))};
_.l(_.hx,pP);_.hx.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var b4e=function(B,R){R=B.input.direction(R);return B.config.triggers[R]};
_.hx.prototype.move=function(B,R){var V=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var e=V.input.axis(B),X=V.input.position(B,V.config.startPosition,R.endPosition,R.moveRatio||1);V.element.style.transform="translate"+e+"("+X+"px)";V.animationRequestId=void 0}))};
var J1o=function(B,R,V){var e=V.moveRatio||1;V=Math.abs(B.config.startPosition-V.endPosition);return Math.min(B.input.distance(R)*e,V)/V};
_.hx.prototype.fade=function(B,R){var V=R.endOpacity;B=J1o(this,B,R);B>0&&(this.element.style.opacity=""+(((V||0)-1)*B+1))};
_.hx.prototype.threshold=function(B){return B.threshold?B.threshold:Math.abs(B.endPosition-this.config.startPosition)/3};
var UM4=function(B,R,V){var e,X,Y,t,b,J,G;return _.W(function(y){if(y.nextAddress==1)return e=B.input.delta(R)+B.config.startPosition,X=B.input.axis(R),Y=V,t=Y.endPosition,b=Y.transitionEndPosition,G=(J=b)!=null?J:t,_.U(y,B.element.animate([{transform:"translate"+X+"("+e+"px)"},{transform:"translate"+X+"("+G+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);B.element.style.transform="translate"+X+"("+G+"px)";_.b3(y)})};
_.hx.prototype.translateBack=function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1){if(!R.element.style.transform)return X.return();V=R.input.axis(B);e=R.config.startPosition;return _.U(X,R.element.animate([{transform:R.element.style.transform},{transform:"translate"+V+"("+e+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}R.element.style.transform="translate"+V+"("+e+"px)";_.b3(X)})};
var jSo=function(B,R){var V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return V=B.input.delta(R)+B.config.startPosition,e=B.input.axis(R),X=V+70,Y=B.element.style.opacity===""?1:B.element.style.opacity,_.U(t,B.element.animate([{transform:"translate"+e+"("+V+"px)",opacity:Y},{transform:"translate"+e+"("+X+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);B.element.style.transform="translate"+e+"("+X+"px)";B.element.style.opacity="0";_.b3(t)})};var tx=function(){var B=_.tM.apply(this,arguments)||this;B._noAccessors=!0;B.scrollRate=3;B.autoScrollAnimationStart=0;B.autoScrollPaused=!1;B.autoScrollRafId=0;return B};
_.l(tx,_.tM);_.p=tx.prototype;_.p.created=function(){var B=this;this.boundAutoScrollHandler=function(R){B.autoScroll(R)}};
_.p.detached=function(){this.hostElement.removeEventListener("mouseout",_.Bc(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Bc(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Bc(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.p.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Bc(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Bc(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Bc(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Bc(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Bc(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Bc(this,this.endAutoScroll)),this.endAutoScroll())};
_.p.autoScroll=function(B){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=B);var R;if(R=!this.autoScrollPaused&&this.scrollTarget)R=this.scrollTarget,R=R.scrollHeight-R.scrollTop!==R.clientHeight;R&&(R=1E3/this.scrollRate,B-=this.autoScrollAnimationStart,B>R&&(this.scrollTarget.scrollTop+=Math.ceil(B/R),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)};
tx.prototype.autoScrollEnabledChanged=tx.prototype.autoScrollEnabledChanged;_.r([_.E(),_.Z("design:type",Object)],tx.prototype,"scrollRate",void 0);_.r([_.E(),_.Z("design:type",Object)],tx.prototype,"scrollTarget",void 0);_.r([_.E(),_.Z("design:type",Boolean)],tx.prototype,"autoScrollEnabled",void 0);_.r([_.XX("autoScrollEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tx.prototype,"autoScrollEnabledChanged",null);tx=_.r([_.Wc()],tx);_.Nje=[tx.prototype];var GU7;var Wt=function(){var B=_.c.apply(this,arguments)||this;B.buttonUpdate=_.k("web_button_rework");B.dismissButtonOverrides=_.k("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;B.forceDarkTheme=!1;B.forceLightTheme=!1;B.dynamicTextHeight=94;B.hasOverflowButton=!1;B.isInfeedModernization=!1;return B};
_.l(Wt,_.c);_.p=Wt.prototype;_.p.computeUrlImg=function(B){if(B)return _.Cc(B.thumbnails)};
_.p.getLogoHeight=function(B){return this.logoWithPadding(B)?"31":"24"};
_.p.getLogoClassName=function(B){return this.logoWithPadding(B)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.p.logoWithPadding=function(B){var R,V;return(B=(R=B.thumbnails)==null?void 0:(V=R[0])==null?void 0:V.height)&&B%31===0?!0:!1};
_.p.sendImpressionEndpoints=function(B){B.impressionEndpoints&&_.VD(this.hostElement,B.impressionEndpoints)};
_.p.observeBasicPalette=function(){var B,R,V=(B=this.data)==null?void 0:(R=B.colorData)==null?void 0:R.basicColorPaletteData;V?_.lP(this.hostElement,V):_.lP(this.hostElement,{})};
_.p.observeDataChanged=function(){var B;this.dynamicTextHeight=((B=this.data)==null?0:B.supplementalText)?74:94;var R;this.hasSupplementalText=!((R=this.data)==null||!R.supplementalText);if(_.k("web_button_rework")){var V,e,X,Y;B=(V=this.data)==null?void 0:(e=V.actionButton)==null?void 0:(X=e.buttonRenderer)==null?void 0:(Y=X.colorData)==null?void 0:Y.basicColorPaletteData;var t,b,J;if(!((t=this.data)==null?0:(b=t.actionButton)==null?0:(J=b.buttonRenderer)==null?0:J.style)&&B){this.computeIsInfeedModernization(this.data)||
(B.borderColor=B.foregroundTitleColor);var G,y;this.set("data.actionButton.buttonRenderer",_.M_.unsafeClone((G=this.data)==null?void 0:(y=G.actionButton)==null?void 0:y.buttonRenderer))}}};
_.p.observeDataForCounterfactual=function(){if(_.k("kevlar_banner_cf_extra_logging")){var B;((B=this.data)==null?0:B.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.p.computeSupplementalStyle=function(){var B;if((B=this.data)!=null&&B.supplementalText){var R,V,e;if((R=this.data)==null?0:(V=R.colorData)==null?0:(e=V.basicColorPaletteData)==null?0:e.foregroundActivatedColor)return B=_.li(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+B+"; --yt-endpoint-hover-color:"+B+"; --yt-endpoint-visited-color:"+B+"; --yt-formatted-string-bold-font-weight:700;"}};
_.p.computeForcedDarkTheme=function(){var B,R,V,e=(B=this.data)==null?void 0:(R=B.actionButton)==null?void 0:(V=R.buttonRenderer)==null?void 0:V.style,X,Y,t;B=Aco(((X=this.data)==null?void 0:(Y=X.colorData)==null?void 0:(t=Y.basicColorPaletteData)==null?void 0:t.backgroundColor)||0);return e&&B};
_.p.computeForcedLightTheme=function(){var B,R,V,e=(B=this.data)==null?void 0:(R=B.actionButton)==null?void 0:(V=R.buttonRenderer)==null?void 0:V.style,X,Y,t;B=!Aco(((X=this.data)==null?void 0:(Y=X.colorData)==null?void 0:(t=Y.basicColorPaletteData)==null?void 0:t.backgroundColor)||0);return e&&B};
_.p.computeHasOverflowButton=function(B){return!!B.overflowButton};
_.p.computeHasTitle=function(B){return!!B.title};
_.p.computeTitleMaxFontSize=function(B){return this.computeHasOverflowButton(B)?28:64};
_.p.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.p.computeIsInfeedModernization=function(){var B,R,V,e,X=(B=this.data)==null?void 0:(R=B.actionButton)==null?void 0:(V=R.buttonRenderer)==null?void 0:(e=V.colorData)==null?void 0:e.basicColorPaletteData;return(X==null?void 0:X.backgroundColor)===452984831||(X==null?void 0:X.backgroundColor)===218103808};
Wt.prototype.observeDataForCounterfactual=Wt.prototype.observeDataForCounterfactual;Wt.prototype.observeDataChanged=Wt.prototype.observeDataChanged;Wt.prototype.observeBasicPalette=Wt.prototype.observeBasicPalette;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],Wt.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Wt.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Wt.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Wt.prototype,"buttonUpdate",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Wt.prototype,"hasSupplementalText",void 0);_.r([_.E(),_.Z("design:type",Object)],Wt.prototype,"dismissButtonOverrides",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Z("design:type",Boolean)],Wt.prototype,"hasTitle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Z("design:type",Object)],Wt.prototype,"forceDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Z("design:type",Object)],Wt.prototype,"forceLightTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],Wt.prototype,"dynamicTextHeight",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Z("design:type",Object)],Wt.prototype,"hasOverflowButton",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Z("design:type",Object)],Wt.prototype,"isInfeedModernization",void 0);_.r([_.XX("data.colorData.basicColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wt.prototype,"observeBasicPalette",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wt.prototype,"observeDataChanged",null);_.r([_.XX("data.isVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wt.prototype,"observeDataForCounterfactual",null);Wt=_.r([_.A({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Wt);
_.F(Wt,"ytd-banner-promo-renderer",function(){if(GU7!==void 0)return GU7;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return GU7=B},{mode:1});var y1U;var Stz;var H4e;var br=function(){return _.c.apply(this,arguments)||this};
_.l(br,_.c);_.r([_.E(),_.Z("design:type",Object)],br.prototype,"data",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);br=_.r([_.A({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],br);
_.F(br,"ytd-hashtag-grid-tile-renderer",function(){if(H4e!==void 0)return H4e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return H4e=B},{mode:1});var Jx=function(){return _.c.apply(this,arguments)||this};
_.l(Jx,_.c);Jx.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Jx.prototype.updateRichGridTrendingHashtagsVisibility=function(){var B,R;if(((B=this.data)==null||!B.isExpanded)&&(R=this.data)!=null&&R.tiles){B=this.data.tiles.length;R=B>this.richGridItemsPerRow?this.richGridItemsPerRow+1:B;var V=Math.ceil(B/R);this.fullyVisibleRows=B%R===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}};
Jx.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Jx.prototype.updateRichGridTrendingHashtagsVisibility=Jx.prototype.updateRichGridTrendingHashtagsVisibility;_.r([_.E(),_.Z("design:type",Object)],Jx.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Number)],Jx.prototype,"fullyVisibleRows",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Jx.prototype,"isShowMoreVisible",void 0);_.r([_.E({selector:_.ar,value:0}),_.Z("design:type",Number)],Jx.prototype,"richGridItemsPerRow",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Jx.prototype,"ytdReduxBehavior",void 0);_.r([_.XX("data","richGridItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jx.prototype,"updateRichGridTrendingHashtagsVisibility",null);
Jx=_.r([_.A({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Jx);
_.F(Jx,"ytd-hashtag-grid-shelf-renderer",function(){if(Stz!==void 0)return Stz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Stz=B},{mode:1});var MwU;var kUr;var jL=function(){var B=_.c.apply(this,arguments)||this;B.visibleVideos=[];B.hiddenVideos=[];B.modern=_.k("web_modern_buttons");B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(jL,_.c);_.p=jL.prototype;_.p.attached=function(){var B=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",B);this.onDarkModeToggledAction(B)};
_.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 B=this;this.requestElementsPerRow();var R,V;this.currentColorPalette=this.isDarkTheme?(R=this.data)==null?void 0:R.darkColorData:(V=this.data)==null?void 0:V.lightColorData;var e;if((e=this.currentColorPalette)==null?0:e.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.gB(this,function(){B.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(B){return B};
_.p.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&this.set("isDarkTheme",B);this.data&&(this.currentColorPalette=B?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.p.getCurrentLogo=function(B,R){if(B)return R?B.darkLogoImage:B.lightLogoImage};
_.p.computeTitleStyle=function(B){var R;if((R=this.data)!=null&&R.title&&B&&B.textPrimary!==void 0)return"color:"+_.li(B.textPrimary)+";"};
_.p.computeSubtitleStyle=function(B){var R;if((R=this.data)!=null&&R.subtitle&&B&&B.textSecondary!==void 0)return"color:"+_.li(B.textSecondary)+";"};
_.p.computeDismissIconStyle=function(B){if(this.data&&this.data.dismissButton&&B&&B.textPrimary!==void 0)return"--yt-button-color:"+_.li(B.textPrimary)+";"};
_.p.computeOverflowButtonStyle=function(B){if(this.data&&this.data.overflowButton&&B&&B.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.li(B.textPrimary)+";--yt-spec-icon-active-other:"+_.li(B.textPrimary)+";"};
_.p.computeBackgroundStyle=function(B){if(B&&this.data){var R="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var V=_.Cc((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);V&&(R+='background-image:url("'+V+'");')}B.backgroundColor!==void 0&&(R+="background-color:"+_.zF(B.backgroundColor)+";");return R}};
_.p.computeButton=function(){var B,R=Object.assign({},_.D((B=this.data)==null?void 0:B.showMoreButton,_.Ii));if(this.modern&&R){R.style="STYLE_MONO_OUTLINE";var V;if(B=(V=this.currentColorPalette)==null?void 0:V.textPrimary)R.colorData={basicColorPaletteData:{foregroundTitleColor:B,borderColor:B}}}return R};
_.p.shouldShowBottomButton=function(B,R){return!(B==null?0:B.header)&&!(B==null||!B.primaryButton)&&R<3};
_.p.checkExpanded=function(B){this.isExpanded=B&&B.content?this.hiddenVideos.length===0:!0};
_.p.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.p.getLogoHeight=function(B){return this.logoWithPadding(B)?"26":"20"};
_.p.getLogoImageId=function(B){return this.logoWithPadding(B)?"logo-image-with-padding":"logo-image"};
_.p.computeHasSectionHeader=function(B){return!!B.header};
_.p.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var B;if((B=this.data.primaryButton)==null?0:B.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var R;((R=this.data.dismissButton)==null?0:R.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var V,e;((V=this.data)==null?0:(e=V.primaryButton)==null?0:e.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.p.setVisibleVideos=function(B){if(this.data&&this.data.content)if(this.data.content.length){var R=this.data.content.length;this.data.header?B?(this.visibleVideos=this.data.content.slice(0,Math.min(R,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(R,this.slimItemsPerRow),R)):(this.visibleVideos=this.data.content.slice(0,Math.min(R,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(R,this.elementsPerRow),R)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(R,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(R,this.elementsPerRow),R)):(this.visibleVideos=this.data.content.slice(0,Math.min(R,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(R,this.elementsPerRow-1),R))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.p.setHasMovieRenderer=function(){var B;if((B=this.data)!=null&&B.content){var R;this.hasMovieRenderer=!!_.D((R=this.data)==null?void 0:R.content[0],_.LBJ)}else this.hasMovieRenderer=!1};
_.p.requestElementsPerRow=function(){_.OI(this.hostElement,"yt-request-elements-per-row")};
_.p.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var B=_.h(this.hiddenMediaRenderers),R=B.next();!R.done;R=B.next())R.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(B=_.w(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&B.focus()}};
_.p.updateTitleSpec=function(){var B;(B=this.data)!=null&&B.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.p.logoWithPadding=function(B){var R,V,e;return(B=(R=this.getCurrentLogo(B,this.isDarkTheme))==null?void 0:(V=R.thumbnails)==null?void 0:(e=V[0])==null?void 0:e.height)&&B%31===0?!0:!1};
_.p.onUpdateElementsPerRowAction=function(B,R,V){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B);V&&this.slimItemsPerRow!==V&&(this.slimItemsPerRow=V)};
jL.prototype.slimItemsPerRowChanged=jL.prototype.slimItemsPerRowChanged;jL.prototype.elementsPerRowChanged=jL.prototype.elementsPerRowChanged;jL.prototype.dataChanged=jL.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],jL.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],jL.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],jL.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],jL.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],jL.prototype,"currentColorPalette",void 0);_.r([_.E(),_.Z("design:type",Array)],jL.prototype,"visibleVideos",void 0);_.r([_.E(),_.Z("design:type",Array)],jL.prototype,"hiddenVideos",void 0);
_.r([_.E(),_.Z("design:type",Object)],jL.prototype,"primaryButton",void 0);_.r([_.E({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],jL.prototype,"elementsPerRow",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jL.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jL.prototype,"isExpanded",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jL.prototype,"largeTitle",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jL.prototype,"hasMovieRenderer",void 0);_.r([_.E(),_.Z("design:type",Number)],jL.prototype,"slimItemsPerRow",void 0);_.r([_.E(),_.Z("design:type",Boolean)],jL.prototype,"showLightVideoMetadata",void 0);_.r([_.E(),_.Z("design:type",Boolean)],jL.prototype,"showDarkVideoMetadata",void 0);_.r([_.E(),_.Z("design:type",Number)],jL.prototype,"videoMetadataColor",void 0);
_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],jL.prototype,"miniMode",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Z("design:type",Boolean)],jL.prototype,"isFirstFeedItem",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Z("design:type",Boolean)],jL.prototype,"hasSectionHeader",void 0);
_.r([_.E({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],jL.prototype,"roundedContainer",void 0);_.r([_.hM("#visible-video-container ytd-rich-grid-media"),_.Z("design:type",Array)],jL.prototype,"visibleMediaRenderers",void 0);_.r([_.hM("#hidden-video-container ytd-rich-grid-media"),_.Z("design:type",Array)],jL.prototype,"hiddenMediaRenderers",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],jL.prototype,"modern",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jL.prototype,"dataChanged",null);_.r([_.XX("elementsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jL.prototype,"elementsPerRowChanged",null);_.r([_.XX("slimItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jL.prototype,"slimItemsPerRowChanged",null);
jL=_.r([_.A({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],jL);
_.F(jL,"ytd-brand-video-shelf-renderer",function(){if(kUr!==void 0)return kUr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return kUr=B},{mode:1});var DMe;var UF=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(UF,_.c);_.p=UF.prototype;_.p.attached=function(){var B=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",B);this.onDarkModeToggledAction(B)};
_.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 B,R;this.currentColorPalette=this.isDarkTheme?(B=this.data)==null?void 0:B.darkColorData:(R=this.data)==null?void 0:R.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.p.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.p.computeIsFirstFeedItem=function(B){return B};
_.p.onDarkModeToggledAction=function(B){B!==this.isDarkTheme&&this.set("isDarkTheme",B);this.data&&(this.currentColorPalette=B?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(B),this.updateButtonPalette())};
_.p.shouldShowThumbnailInMetadata=function(B){return B<=1};
_.p.computeVideoMetadataColor=function(){if(this.data){var B;if((B=this.currentColorPalette)==null?0:B.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.p.computeTitleStyle=function(B){var R;if((R=this.data)!=null&&R.title&&B&&B.textPrimary!==void 0)return"color:"+_.li(B.textPrimary)+";"};
_.p.computeSubtitleStyle=function(B){var R;if((R=this.data)!=null&&R.subtitle&&B&&B.textSecondary!==void 0)return"color:"+_.li(B.textSecondary)+";"};
_.p.computeOverflowButtonStyle=function(B){var R;if(this.data&&this.data.overflowButton&&(B==null?0:(R=B.dismissButtonColorData)==null?0:R.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.li(B.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.li(B.dismissButtonColorData.foregroundTitleColor)+";"};
_.p.computeBackgroundStyle=function(B){if(B&&this.data){var R="";B.backgroundColor!==void 0&&(R+="background-color:"+_.zF(B.backgroundColor)+";");return R}};
_.p.computeHasOverflowButton=function(B){return!!B.overflowButton};
_.p.updateButtonPalette=function(){if(this.data){var B;if((B=this.data.primaryButton)==null?0:B.buttonRenderer){var R;if((R=this.currentColorPalette)==null?0:R.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var V;((V=this.currentColorPalette)==null?0:V.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(){_.OI(this.hostElement,"yt-request-elements-per-row")};
_.p.updateTitleSpec=function(){var B;(B=this.data)!=null&&B.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(B){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B)};
UF.prototype.elementsPerRowChanged=UF.prototype.elementsPerRowChanged;UF.prototype.dataChanged=UF.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],UF.prototype,"ytdDismissibleItemBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],UF.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],UF.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],UF.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],UF.prototype,"currentColorPalette",void 0);_.r([_.E(),_.Z("design:type",Object)],UF.prototype,"primaryButton",void 0);
_.r([_.E({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],UF.prototype,"elementsPerRow",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],UF.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],UF.prototype,"titleSize",void 0);_.r([_.E(),_.Z("design:type",Number)],UF.prototype,"videoMetadataColor",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],UF.prototype,"miniMode",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Z("design:type",Boolean)],UF.prototype,"isFirstFeedItem",void 0);_.r([_.E({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],UF.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Z("design:type",Boolean)],UF.prototype,"hasOverflowButton",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UF.prototype,"dataChanged",null);_.r([_.XX("elementsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UF.prototype,"elementsPerRowChanged",null);UF=_.r([_.A({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],UF);
_.F(UF,"ytd-brand-video-singleton-renderer",function(){if(DMe!==void 0)return DMe;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return DMe=B},{mode:_.up("kevlar_poly_si_batch_j070")?1:2});var f_4;var l_o=_.sx(function(B){var R=B.data;return _.N(_.ia,{data:function(){return R().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(R().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var V=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":V=88;break a;default:V=88}return V},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return R().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ei"),a_n=_.sx(function(B){var R=B.metadataRow;
var V=B.delimiter;return _.N(_.yh,{each:function(){return R().textParts||[]},
keyBy:"INDEX"},function(e,X){return _.N(_.OZ,null,_.N(_.Hr,{text:e,noWrap:!0,userInput:!0}),_.N(z9U,{delimiter:V,max:function(){return R().textParts.length},
index:X}))})},"fi"),z9U=_.sx(function(B){var R=B.delimiter;
var V=B.max;var e=B.index;return _.N(_.H,{cond:function(){return(R==null?void 0:R())&&V()-1>e()},
then:function(){return _.N("span",null,R)}})},"gi"),dMe=_.sx(function(B){var R=B.data;
B={};return _.N("yt-profile-page-header-information-view-model",{class:_.XE("profile-page-header-information-view-model-wiz",(B["profile-page-header-information-view-model-wiz--mobile"]=!1,B))},_.N(_.H,{cond:function(){return R().onTap},
then:function(){return _.N(_.SQ,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.dl(R().onTap)}},_.N(_.wb,{data:function(){return R().thumbnail}},{profilePageHeaderThumbnailViewModel:l_o}))},
else:function(){return _.N("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.N(_.wb,{data:function(){return R().thumbnail}},{profilePageHeaderThumbnailViewModel:l_o}))}}),_.N("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.N(_.H,{cond:function(){return R().onTap},
then:function(){return _.N(_.wb,{data:function(){return R().title}},{profilePageHeaderTitleViewModel:function(V){var e=V.data;
return _.N(_.SQ,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.dl(e().onTap)}},_.N(_.Hr,{text:function(){return e().title}}))}})},
else:function(){return _.N(_.wb,{data:function(){return R().title}},{profilePageHeaderTitleViewModel:function(V){var e=V.data;
return _.N(_.Hr,{text:function(){return e().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.N(_.wb,{data:function(){return R().metadata}},{profilePageHeaderMetadataViewModel:function(V){var e=V.data;
return _.N(_.H,{cond:function(){return e().metadataRows},
then:function(X){return _.N("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.N(_.yh,{each:X,keyBy:"INDEX"},function(Y,t){return _.N(_.OZ,null,_.N(a_n,{metadataRow:Y,delimiter:" \u2022 "}),_.N(z9U,{delimiter:" \u2022 ",max:function(){return X().length},
index:t}))}))}})}})))},"hi");
dMe.idomCompat=!0;_.mR(dMe,"yt-profile-page-header-information-view-model",{props:{data:_.qq}});var NX=function(){return _.c.apply(this,arguments)||this};
_.l(NX,_.c);NX.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],NX.prototype,"data",void 0);NX=_.r([_.A({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],NX);
_.F(NX,"ytd-effect-pivot-header-view-model",function(){if(f_4!==void 0)return f_4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return f_4=
B},{mode:1});var w4e;var G1=function(){return _.c.apply(this,arguments)||this};
_.l(G1,_.c);G1.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],G1.prototype,"data",void 0);G1=_.r([_.A({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],G1);
_.F(G1,"ytd-source-pivot-header-renderer",function(){if(w4e!==void 0)return w4e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return w4e=B},{mode:1});_.TjN=_.sx(function(B){var R=B.data;B=_.Zh();_.gb(B,function(){return R().rendererContext});
var V=function(){var e;return _.rb((e=R())==null?void 0:e.rendererContext)};
return _.N("content-list-item-view-model",{el:B,class:"ytContentListItemViewModelHost",role:function(){return V()?"listitem":void 0},
tabindex:function(){return V()?0:void 0}},_.N("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.N("div",{class:"ytContentListItemViewModelImageContainer"},_.N(_.H,{cond:function(){return R().image},
then:function(e){return _.N(_.ia,{data:e,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.N(_.wb,{data:function(){var e;
return(e=R())==null?void 0:e.avatar}},{avatarViewModel:_.TP})),_.N("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.N("div",{class:"ytContentListItemViewModelTitle"},_.N(_.Hr,{text:function(){return R().title}})),_.N("div",{class:"ytContentListItemViewModelMetadata"},_.N(_.wb,{data:function(){return R().metadata}},{contentMetadataViewModel:function(e){return _.N(_.IBT,{data:e.data,
layout:1})}})))),_.N("div",{class:"ytContentListItemViewModelActionButton"},_.N(_.wb,{data:function(){var e;
return(e=R())==null?void 0:e.actionButton}},{buttonViewModel:_.qo,
toggleButtonViewModel:_.LO})))},"ii");_.mR(_.sx(function(B){var R={},V={},e={},X={};return _.N("yt-card-view-model",{class:_.XE("ytCardViewModelHost",B.className,(R.ytCardViewModelOutline=function(){return B.data().cardStyle==="CARD_STYLE_OUTLINE"},R),(V.ytCardViewModelRaised=function(){return B.data().cardStyle==="CARD_STYLE_RAISED"||B.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},V),(e.ytCardViewModelTonal=function(){return B.data().cardStyle==="CARD_STYLE_TONAL"},e),(X.ytCardViewModelInverted=function(){return B.data().cardStyle===
"CARD_STYLE_INVERSE"},X))},_.N(_.wb,{data:function(){return B.data().background}},{cinematicContainerViewModel:function(Y){return _.N(_.lQa,{data:Y.data})}}),_.N("div",{class:"ytCardViewModelContentWrapper"},_.N(_.wb,{data:function(){return B.data().content}},{contentListItemViewModel:function(Y){return _.N(_.TjN,{data:Y.data})}})),_.N(_.wb,{data:function(){return B.data().dismissAction}},{buttonViewModel:function(Y){return _.N(_.qo,{data:Y.data})}}))},"ji"),"yt-card-view-model",{props:{data:_.qq,
className:_.qq}});_.mR(_.sx(function(B){var R=function(){return _.D(B.data().flowRoot,e9e)};
_.zM(function(){var V=R(),e=function(){},X=function(){};
if(V){var Y,t,b=(t=_.D((Y=V.steps)==null?void 0:Y[0],_.Ga2))==null?void 0:t.stepId;$Jr(V,b||"");e=PuN(V);X=nLr(V)}_.aK(function(){e();e=function(){};
X();X=function(){}})});
return _.N("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.N(_.Ag4,{contentId:function(){return B.data().contentId}},function(){return _.N("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.N(_.H,{cond:R,
then:function(V){return _.N(_.X8m,{data:V})}}))}))},"ki"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.qq}});_.mR(_.sx(function(){return _.N("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.N("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.N("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.N(_.Zq6,null)),_.N(_.Fjv,{data:{rows:1},isExploreHub:!0}))},"li"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.mR(_.sx(function(B){var R=B.data;var V=B.standardUnitMinWidth;B=_.Zh();var e=_.h((0,_.mL5)(R)),X=e.next().value,Y=e.next().value,t=function(){var J,G=(J=X())==null?void 0:J.contents;return G==null||G.length===0},b=function(){Y(Object.assign({},X(),{contents:[]}))};
_.Od(B,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var J=_.D(R().chipsShelf,X4o);if(J!=null&&J!=null&&J.autoselectChipOnVisible){var G,y,S=_.D(J==null?void 0:(G=J.contents)==null?void 0:G[(y=J.autoselectedChipIndex)!=null?y:0],_.cL);S&&S.tapCommand&&_.Lc(S.tapCommand)}}});
return _.N("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:B},_.N(_.Ag4,{contentId:function(){return R().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.N("div",null,_.N("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.N(_.wb,{data:function(){return R().header}},{sectionHeaderViewModel:function(J){return _.N(_.on,{data:J.data,
disableHorizontalPadding:!0})}})),_.N("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.N(_.wb,{data:function(){return R().chipsShelf}},{chipsShelfViewModel:function(J){return _.N(_.mF4,{data:J.data,
callback:b,enableSingleChipSelection:!0})}})),_.N("div",null,_.N(_.H,{cond:t,
then:function(){return _.N("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.N(_.Fjv,{data:{rows:1},isExploreHub:!0}))}}),_.N(_.wb,{data:function(){var J;
return(J=X())==null?void 0:J.contents}},{richShelfRenderer:function(J){return _.N(_.ZG2,{data:J.data,
isInnerShelf:!0,standardUnitMinWidth:V})}})))}))},"mi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.qq,
standardUnitMinWidth:_.qq}});var yb=function(){return _.c.apply(this,arguments)||this};
_.l(yb,_.c);
yb.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}}};
yb.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.r([_.v(_.dt),_.Z("design:type",Object)],yb.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],yb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],yb.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yb.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Number)],yb.prototype,"standardUnitMinWidth",void 0);yb=_.r([_.A({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],yb);
_.F(yb,"ytd-rich-section-renderer",function(){if(MwU!==void 0)return MwU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return MwU=B},{mode:_.up("kevlar_poly_si_batch_j029")?
1:2});_.mR(_.Ko2,"yt-profile-identity-info-view-model",{props:{data:_.qq,hideDivider:_.qq}});_.mR(_.Efo,"yt-page-header-view-model",{props:{data:_.qq,noPadding:_.qq,enableBanner:_.qq,cinematicContainerTopbarOffset:_.qq,allowCinematicContainerOverflow:_.qq,displayAsSidebar:_.qq,displayAsPanel:_.qq}});_.mR(_.sx(function(B){var R=B.data;var V=function(){var X;return(X=R().numColumns)!=null?X:2},e=function(){return V()>1?3:2};
B={};return _.N("ytd-rich-grid-group",{class:_.XE("ytdRichGridGroupHost",(B.ytdRichGridGroupHostFirstColumn=function(){return R().colIndex===0},B)),
style:_.jQ({"--ytd-rich-grid-group-num-columns":V,"--ytd-rich-grid-items-per-group":e})},_.N("div",{class:"ytdRichGridGroupContents"},_.N(_.wb,{data:function(){var X;return(X=R().contents)==null?void 0:X.slice(0,e())}},{richItemRenderer:function(X){return _.N(_.rOa,{data:X.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ni"),"ytd-rich-grid-group",{props:{data:_.qq}});var SL=function(){var B=_.c.apply(this,arguments)||this;B.resizeOnObserverInit=!1;B.isInlinePreviewDisabled=_.k("web_disable_inline_preview");B.disableStickyFilterBar=!1;B.transparentBackgroundChipsBar=!1;B.hideChipsBar=!1;B.isWatchDefaultLayout=!0;B.continuationShowButton=!1;B.rowReducedHorizontalMargin=!1;B.useCompactList=!1;B.manualDownloadsPresent=!1;B.smartDownloadsPresent=!1;B.shouldRenderDownloadsBanner=!1;B.hasOptedIntoSmartDownloads=!1;B.elementsPerRow=4;B.typographyBump=!1;B.showGnomeContents=
!1;B.showExploreHubContents=!1;B.slimItemsPerRow=1;B.pageLoadingFromNavigation=!1;B.loggingRefactor=_.k("kevlar_rich_grid_logging_fix");B.resizeObserver=null;B.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"};B.rendererToTagNameMap=
new Map(Object.entries(B.contentMapping()).map(function(R){var V=_.h(R);R=V.next().value;V=V.next().value;return[R,V.component]}));
B.insertedContent=new Map;return B};
_.l(SL,_.c);_.p=SL.prototype;_.p.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var B=_.h(_.w(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),R=B.next();!R.done;R=B.next())R.value.useCompactList=this.useCompactList};
_.p.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var B=_.h(_.w(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),R=B.next();!R.done;R=B.next())R=R.value,R.sizing=this.sizing,R.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",_.Bc(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.o7(this.resizeObserved,_.RC("rich_grid_resize_delay_ms",50),this)};
_.p.detached=function(){var B;(B=this.resizeObserver)==null||B.disconnect();document.removeEventListener("yt-page-type-changed",_.Bc(this,this.onPageChange))};
_.p.insertRichSection=function(B){var R=B.richItemTargetId;B=B.richSectionRendererToInsert;R&&B&&(this.insertedContent.set(R,B),this.reflowContent())};
_.p.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.p.computeIsInlinePreviewEnabled=function(B,R,V){return _.k("web_disable_inline_preview")?!1:!V&&_.pUn({miniplayerIsActive:B,miniplayerPlaybackState:R})};
_.p.computeSizing=function(){var B=_.eRd(this.data);if(B||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return B?this.useCompactList?"COMPACT":B:this.miniMode?"COMPACT":_.k("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.p.updateItemMinAndMaxWidth=function(){var B=_.RC("rich_grid_max_item_width",500);B>0&&_.o_(this.hostElement,{"--ytd-rich-grid-item-max-width":B+"px"});var R;B=this.getRichItemMinWidth((R=this.hostElement)==null?void 0:R.clientWidth);B>0&&_.o_(this.hostElement,{"--ytd-rich-grid-item-min-width":B+"px"})};
_.p.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.p.resizeObserved=function(){_.Bz(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.p.navigateBackToHome=function(){_.k("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.k("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var B=_.Oz().resolve(_.$B).isOnWatch(),R,V=((R=_.W$(location.pathname))==null?void 0:R.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(V)||B)&&this.gnomeContents&&_.k("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);B&&this.exploreHubContents&&_.k("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.g6().dispatch(_.or({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.p.onPageChange=function(){var B=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.k("disable_chip_select_on_nav")||_.Bz(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.dV.addJob(function(){B.pageLoadingFromNavigation=!1;_.k("disable_chip_select_on_nav")&&_.k("h5_reset_cache_and_filter_before_update_masthead")&&B.resetCacheAndIsFilteredFeed();B.setMasthead();B.maybeSetBigYoodle();B.forceRefreshAndLog();B.terminateVideoPreview();_.k("web_hide_gnome_until_user_navigates_back_to_home")&&
(B.dataChanged(),_.gB(B,function(){if(B.showGnomeContents){var R=Array.from(_.w(B.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(e){e=_.w(e).querySelector("ytd-rich-shelf-renderer");return!!e&&e.isGnomeShelf()});
if(R){R=R.offsetTop-B.contentsElement.offsetTop;var V=_.Oz().resolve(_.$B).getCurrentPage();V&&V.getPageScrollingElement().scrollTo({top:R,behavior:"smooth"})}}}));
_.k("web_hide_explore_hub_until_user_navigates_back_to_home")&&(B.dataChanged(),_.gB(B,function(){if(B.showExploreHubContents&&!_.k("web_explore_hub_no_scroll")){var R=Array.from(_.w(B.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(e){return!!e.querySelector("ytd-talk-to-recs-flow-renderer")});
if(R){R=R.offsetTop-B.contentsElement.offsetTop;var V=_.Oz().resolve(_.$B).getCurrentPage();V&&V.getPageScrollingElement().scrollTo({top:R,behavior:"smooth"})}}}))},8)):((_.k("web_hide_gnome_until_user_navigates_back_to_home")||_.k("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.p.dataChanged=function(){var B=this,R=_.RC("web_rich_grid_row_margin",0);R>0&&_.o_(this.hostElement,{"--ytd-rich-grid-row-margin":R+"px"});_.Bz(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.gB(this,function(){B.updateRichItemGridPositions();B.contentsElement&&_.o_(B.hostElement,{"--ytd-rich-grid-content-offset-top":B.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.p.initResizeObserver=function(){var B=this;if(window.ResizeObserver){var R;(R=this.resizeObserver)==null||R.disconnect();var V=!1;this.resizeObserver=new ResizeObserver(function(){if(V){var e;(e=B.resizeObserver)==null||e.disconnect();var X;(X=B.throttledOnResize)==null||X.fire();requestAnimationFrame(function(){var t;(t=B.throttledOnResize)==null||t.fire();B.initResizeObserver()})}else if(V=!0,B.resizeOnObserverInit){var Y;
(Y=B.throttledOnResize)==null||Y.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.p.contentLengthChanged=function(){if(_.k("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Bz(this.hostElement,"ytd-rich-item-index-update-action")};
_.p.updateElementsPerRow=function(){_.Bz(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.or({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.or({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.p.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.p.onRichShelfRendererCollapse=function(B){if(this.shownItems){var R=B.detail;B=this.shownItems.findIndex(function(e){var X,Y;return((Y=_.D(e==null?void 0:(X=e.richSectionRenderer)==null?void 0:X.content,_.REh))==null?void 0:Y.trackingParams)===R});
var V=B+1;B<0||V>=this.contentsElement.children.length||!this.shownItems[V].richItemRenderer||this.contentsElement.children[V].scrollIntoView({behavior:"smooth",block:"start"})}};
_.p.onSoftReloadPage=function(){this.scrollUpToTop()};
_.p.handleRerenderDownloadsData=function(){_.k("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.p.handlePlaylistRemoveVideosAction=function(B){var R;if(((R=_.D(B,_.Dm4))==null?0:R.setVideoIds)&&this.data&&this.data.contents){B=_.D(B,_.Dm4).setVideoIds;for(R=this.data.contents.length-1;R>=0;){var V=_.D(this.data.contents[R],_.wf);(V=V&&_.D(V.content,_.Kt))&&V.setVideoId&&B.includes(V.setVideoId)&&this.splice("data.contents",R,1);R--}this.updateIndices()}};
_.p.updateIndices=function(){if(this.data&&this.data.contents)for(var B=0;B<this.data.contents.length;B++)this.set("data.contents."+B+".richItemRenderer.index",_.s$(String(B+1)))};
_.p.hasTopRowInlinePlayableVideoWithEndorsement=function(B){var R;return!((R=B.slice(0,this.getItemsPerRow()))==null||!R.some(function(V){var e;V=_.D(V==null?void 0:(e=V.richItemRenderer)==null?void 0:e.content,_.Qy);var X;return(V==null?void 0:V.inlinePlaybackEndpoint)&&(V==null?void 0:(X=V.thumbnailOverlays)==null?void 0:X.some(function(Y){return Y.thumbnailOverlayEndorsementRenderer}))}))};
_.p.refreshGridLayoutNew=function(B,R,V,e){var X=e.postsPerRow;var Y=e.slimItemsPerRow;var t=e.gameCardsPerRow;e=e.miniGameCardsPerRow;var b;if((b=this.data)==null||!b.contents||!this.containerWidth)return!1;var J;if((J=this.data.responsiveContainerConfiguration)==null?0:J.responsiveSize){var G=_.ooo(this.data.responsiveContainerConfiguration,this.containerWidth),y;b=_.nO(Object.assign({},G,{standardUnitMinWidth:(y=this.data)==null?void 0:y.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&G.isCompactList)}else b=_.nO({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(G=this.data)==null?void 0:G.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=b.typographyBump;y=!1;if(B||this.elementsPerRow!==b.numItems||this.postsPerRow!==X||this.slimItemsPerRow!==Y||this.gameCardsPerRow!==
t||this.miniGameCardsPerRow!==e||this.gutter!==b.gutter)y=this.elementsPerRow!==b.numItems,this.elementsPerRow=b.numItems,this.postsPerRow=X,this.slimItemsPerRow=Y,this.gameCardsPerRow=t,this.miniGameCardsPerRow=e,this.gutter=b.gutter,this.itemWidth=b.itemWidth,this.reflowContent(R),_.o_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":b.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(V);this.ytdReduxBehavior.dispatch(_.or({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:b.maxContainerWidth}));return y};
_.p.refreshGridLayout=function(B,R){var V,e=(V=this.hostElement)==null?void 0:V.clientWidth;this.containerWidth=this.adjustRichGridWidth(e,!0);var X;if((X=this.data)==null||!X.contents||!this.containerWidth)return B&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.k("rg_pending_reflow_ks")&&(B=!0,this.pendingForceReflow=!1);V=this.getRichItemMinWidth(e);var Y=this.isShortsPanel?146:194,t=this.getMiniGameCardMinWidth(),b=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
e=V=this.calcElementsPerRow(V,b);(X=V<=3&&this.miniModeAllowed())&&(V=this.calcElementsPerRow(240,4));var J=this.calcMaxSlimElementsPerRow(V,b,this.isDefaultGrid);b=this.calcElementsPerRow(Y,J);var G=this.calcElementsPerRow(this.isCompactGrid?Y:154,J);Y=this.calcElementsPerRow(this.isCompactGrid?Y:t,J);t=!1;if(this.sizing)return this.refreshGridLayoutNew(B,R,X,{postsPerRow:e,slimItemsPerRow:b,gameCardsPerRow:G,miniGameCardsPerRow:Y});if(B||this.elementsPerRow!==V||this.postsPerRow!==e||this.slimItemsPerRow!==
b||this.gameCardsPerRow!==G||this.miniGameCardsPerRow!==Y)t=this.elementsPerRow!==V,this.elementsPerRow=V,this.postsPerRow=e,this.slimItemsPerRow=b,this.gameCardsPerRow=G,this.miniGameCardsPerRow=Y,this.reflowContent(R),this.updateElementsPerRow(),_.o_(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)&&_.o_(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(X);_.Bz(this.hostElement,"yt-rich-grid-layout-refreshed");return t};
_.p.getRichItemMinWidth=function(B){var R=_.RC("rich_grid_min_item_width",310);if(!_.k("kevlar_disable_min_width_override")){var V,e;R=(e=(V=this.data)==null?void 0:V.minItemWidth)!=null?e:R}return R+_.nuK(B)};
_.p.calcMaxSlimElementsPerRow=function(B,R,V){return(V===void 0?0:V)?B===1?2:B%2===0?_.k("web_shorts_2_by_3_reduce_items_per_row")&&B>=4?B/2*3-1:B/2*3:_.k("web_shorts_2_by_3_reduce_items_per_row")&&B>=3?B+1:B+2:R*2};
_.p.adjustRichGridWidth=function(B,R){var V=_.k("disable_rich_grid_guide_compensation");if(!this.isWatch&&!V){V=_.Oz().resolve(_.uj(_.vu));var e=V==null?void 0:V.guideElement;if(!(!V||V.getData()||e!=null&&e.opened||V.getMiniGuideVisible()))if(V.canFitPersistentGuide(B)&&V.getGuideExpandsAutomatically()){var X,Y,t=Number((X=window.getComputedStyle(this.hostElement))==null?void 0:(Y=X.getPropertyValue("--app-drawer-width"))==null?void 0:Y.replace("px",""));B-=t||0}else if(V.canFitMiniGuide(B)){var b;
X=Number((t=window.getComputedStyle(this.hostElement))==null?void 0:(b=t.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:b.replace("px",""));B-=X||0}}B>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(B-=R?32:48));return B};
_.p.calcElementsPerRow=function(B,R){var V=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),e=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((V+e)/(B+e))||1,R)};
_.p.reflowContent=function(B){var R=this;if(!this.isReflowing){this.isReflowing=!0;var V,e,X=!!((V=this.data)==null?0:(e=V.contents)==null?0:e.some(function(f){return _.D(f,_.YQ)}));
V=this.getItemsPerRow();var Y;e=(Y=this.data)==null?void 0:Y.reflowOptions;B&&(_.zp("rgr_s"),_.gB(this,function(){_.zp("rgr_nrf")}));
B={};(Y=_.w(this.hostElement).querySelector("#contents"))&&(B={contentElement:Y,rendererToTagNameMap:this.rendererToTagNameMap});Y=(Y=this.data.contents)?Y.slice():[];var t=(_.k("web_hide_gnome_behind_feed_filter_chip")||_.k("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,b=_.k("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,J=-1,G=-1;if(this.isHomePage&&b){for(b=0;b<Y.length;b++){var y=void 0,S=void 0;_.D((y=Y[b])==null?void 0:
(S=y.richSectionRenderer)==null?void 0:S.content,Vwz)&&(G=b)}G>-1&&(this.exploreHubContents=Y.splice(G,1))}if(this.isHomePage&&t){for(G=0;G<Y.length;G++)S=y=void 0,(b=_.D((y=Y[G])==null?void 0:(S=y.richSectionRenderer)==null?void 0:S.content,_.REh))&&t&&(S=y=void 0,b=_.D((y=b)==null?void 0:(S=y.contents)==null?void 0:S[0],_.wf),y=void 0,_.D((y=b)==null?void 0:y.content,_.e54)&&(J=G));J>-1&&(this.gnomeContents=Y.splice(J,1))}var M=rcm(Y,V,X,e,this.getRichGridStyle(),B,this.insertedContent);X=function(){R.shownItems=
M;R.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(M),_.gB(this,X)):X()}};
_.p.getFirstRowItems=function(B){for(var R=[],V=0;V<B.length;V++){var e=void 0,X=void 0,Y=void 0,t=void 0,b=void 0,J=void 0;if(((e=B[V])==null?void 0:(X=e.richItemRenderer)==null?void 0:X.rowIndex)===0||((Y=B[V])==null?void 0:(t=Y.richGroupRenderer)==null?void 0:t.rowIndex)===0||((b=B[V])==null?void 0:(J=b.richSectionRenderer)==null?void 0:J.rowIndex)===0)R.push(B[V]);else break}return R};
_.p.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.p.handleChipCloudChipSelectAction=function(B,R){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.k("web_hide_gnome_behind_feed_filter_chip")&&(R?(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]);_.k("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.p.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.k("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(){_.Bz(this.hostElement,"yt-terminate-video-preview-action")};
_.p.updateRichItemGridPositions=function(){var B={gridData:{gridColumnCount:this.elementsPerRow}},R;if((R=this.data)==null?0:R.trackingParams)this.loggingRefactor?_.WK().stateChanged(this.data.trackingParams,B):(R=_.TE())&&_.FT(R,_.U5(this.data.trackingParams),B);_.Bz(this.hostElement,"ytd-rich-item-index-update-action")};
_.p.miniModeAllowed=function(){return _.k("disable_channels_mini_mode")?!1:this.isChannelPage};
_.p.getMiniGameCardMinWidth=function(){return 154};
_.p.updateMiniMode=function(B){this.miniMode=this.miniModeAllowed()&&B;this.ytdReduxBehavior.dispatch(_.or({type:"SET_RICH_GRID_MINI_MODE",payload:B}))};
_.p.isCurrentPage=function(){return location.pathname===this.pagePath};
_.p.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var B=_.Oz().resolve(_.$B).getCurrentPage();B&&B.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 B,R=(B=this.data)==null?void 0:B.bigYoodle;this.bigYoodleData!==R&&(this.bigYoodleData=R)};
_.p.setMasthead=function(){var B;((B=this.data)==null?0:B.masthead)?this.mastheadData=this.data.masthead:_.k("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.p.getRichGridStyle=function(){var B,R;return(R=(B=this.data)==null?void 0:B.style)!=null?R:"RICH_GRID_STYLE_UNKNOWN"};
_.p.onIsShortsGridChange=function(){var B=this.ytdReduxBehavior,R=B.dispatch,V=this.getRichGridStyle();R.call(B,_.or({type:"SET_RICH_GRID_STYLE",payload:V}))};
_.mh.Object.defineProperties(SL.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var B=_.Oz().resolve(_.$B).getCurrentPage(),R,V,e;return(((R=this.data)==null?void 0:R.targetId)==="browse-feedFEsfv_audio_pivot"||_.k("web_enable_channel_pivot_panel")&&((V=this.data)==null?void 0:V.targetId)==="browse-feedFEsfv_channel_pivot"||_.k("web_enable_effect_pivot_panel")&&((e=this.data)==null?void 0:e.targetId)==="browse-feedFEsfv_effect_pivot")&&(B==null?void 0:B.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.k("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 B;return!((B=this.data)==null?0:B.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var B;return((B=_.Oz().resolve(_.$B).getCurrentPage())==null?void 0:B.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var B;return((B=_.Oz().resolve(_.$B).getCurrentPage())==null?void 0:B.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 B;return this.hideChipsBar||(((B=this.data)==null?void 0:B.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.k("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.targetId)||"")==="watch-next-feed"&&!_.k("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.data)==null?0:B.enableContentSpecificAspectRatio)||((R=this.data)==null?0:(V=R.responsiveContainerConfiguration)==null?0:V.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.RC("web_continuation_handler_margin",0):0}}});
SL.prototype.onIsShortsGridChange=SL.prototype.onIsShortsGridChange;SL.prototype.onReloadContinuationFinish=SL.prototype.onReloadContinuationFinish;SL.prototype.reflowContent=SL.prototype.reflowContent;SL.prototype.handleRerenderDownloadsData=SL.prototype.handleRerenderDownloadsData;SL.prototype.onRichShelfRendererCollapse=SL.prototype.onRichShelfRendererCollapse;SL.prototype.onRequestElementsPerRow=SL.prototype.onRequestElementsPerRow;SL.prototype.contentLengthChanged=SL.prototype.contentLengthChanged;
SL.prototype.dataChanged=SL.prototype.dataChanged;SL.prototype.onSizingChange=SL.prototype.onSizingChange;SL.prototype.onUseCompactListChange=SL.prototype.onUseCompactListChange;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.LC),_.Z("design:type",Object)],SL.prototype,"ironResizableBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],SL.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],SL.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],SL.prototype,"componentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],SL.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],SL.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],SL.prototype,"miniMode",void 0);_.r([_.E({value:[]}),_.Z("design:type",Array)],SL.prototype,"shownItems",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],SL.prototype,"isReflowing",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],SL.prototype,"isFilteredFeed",void 0);_.r([_.E({selector:_.luK}),_.Z("design:type",Boolean)],SL.prototype,"guideIsExpanded",void 0);
_.r([_.E({selectorArgs:["entitySelectorType"],selector:function(B,R){if(_.k("kevlar_modern_downloads_page")&&R&&R!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(R){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var V=B.entities;R=_.kG(V);var e=_.Dz(V),X=_.F8q(B),Y=_.six(B);B=_.rGd(B);var t=_.GlZ(V),b=_.Gz(R);V=_.lz(V);return _.mto(R,e,t,X,Y,b,V,B);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return R=_.kG(B.entities),_.CSu(R);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return R=
_.JGo(B.entities),_.PSd(R);default:_.KE(new _.H8("Error: entitySelectorType defined but not matched in selector.",B,R))}}}),
_.Z("design:type",Object)],SL.prototype,"entityDrivenRichGridData",void 0);_.r([_.E(),_.Z("design:type",Object)],SL.prototype,"resizeOnObserverInit",void 0);_.r([_.E(),_.Z("design:type",Object)],SL.prototype,"bigYoodleData",void 0);_.r([_.E(),_.Z("design:type",Object)],SL.prototype,"mastheadData",void 0);_.r([_.E(),_.Z("design:type",Boolean)],SL.prototype,"isInlinePreviewDisabled",void 0);_.r([_.E(),_.Z("design:type",Object)],SL.prototype,"disableStickyFilterBar",void 0);
_.r([_.E(),_.Z("design:type",Object)],SL.prototype,"transparentBackgroundChipsBar",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SL.prototype,"hideChipsBar",void 0);_.r([_.E(),_.Z("design:type",Object)],SL.prototype,"isWatchDefaultLayout",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SL.prototype,"continuationShowButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SL.prototype,"rowReducedHorizontalMargin",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SL.prototype,"useCompactList",void 0);_.r([_.E({selector:function(B){return _.Dz(B.entities).length>0}}),
_.Z("design:type",Object)],SL.prototype,"manualDownloadsPresent",void 0);_.r([_.E({selector:function(B){return _.kG(B.entities).length>0}}),
_.Z("design:type",Object)],SL.prototype,"smartDownloadsPresent",void 0);_.r([_.E({selector:_.six}),_.Z("design:type",Object)],SL.prototype,"shouldRenderDownloadsBanner",void 0);_.r([_.E({selector:_.F8q}),_.Z("design:type",Object)],SL.prototype,"hasOptedIntoSmartDownloads",void 0);_.r([_.XX("useCompactList"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"onUseCompactListChange",null);
_.r([_.XX("sizing","typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"onSizingChange",null);_.r([_.E({selector:_.Tf5}),_.Z("design:type",Number)],SL.prototype,"miniplayerPlaybackState",void 0);_.r([_.E({selector:_.d6}),_.Z("design:type",Boolean)],SL.prototype,"miniplayerIsActive",void 0);
_.r([_.E({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Z("design:type",Boolean)],SL.prototype,"isInlinePreviewEnabled",void 0);_.r([_.E({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Z("design:type",String)],SL.prototype,"sizing",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SL.prototype,"elementsPerRow",void 0);
_.r([_.E(),_.Z("design:type",Object)],SL.prototype,"typographyBump",void 0);_.r([_.E(),_.Z("design:type",Number)],SL.prototype,"itemWidth",void 0);_.r([_.Yp("#header"),_.Z("design:type",HTMLElement)],SL.prototype,"headerElement",void 0);_.r([_.Yp("#contents"),_.Z("design:type",HTMLElement)],SL.prototype,"contentsElement",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"dataChanged",null);
_.r([_.bp("data.contents.length"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"contentLengthChanged",null);_.r([_.R_("yt-request-elements-per-row"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"onRequestElementsPerRow",null);
_.r([_.R_("yt-rich-shelf-renderer-collapse"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],SL.prototype,"onRichShelfRendererCollapse",null);_.r([_.bp("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"handleRerenderDownloadsData",null);
_.r([_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],SL.prototype,"entitySelectorType",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"isSub",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"isWatch",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"isShortsPanel",null);_.r([_.E({reflectToAttribute:!0}),_.K("isWatch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"reducedTopMargin",null);_.r([_.E({reflectToAttribute:!0}),_.K("data","isWatch","isWatchDefaultLayout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"noTopMargin",null);
_.r([_.E({reflectToAttribute:!0}),_.K("isInlinePreviewEnabled","shownItems"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"topRowEndorsement",null);_.r([_.K("data.header"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"hideHeader",null);_.r([_.R_("yt-rich-grid-reflow"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean]),_.Z("design:returntype")],SL.prototype,"reflowContent",null);
_.r([_.R_("yt-reload-continuation-finish"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"onReloadContinuationFinish",null);_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"isSlimGrid",null);_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"isShortsGrid",null);
_.r([_.K("data","isSlimGrid","isShortsGrid"),_.E(),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"noRichItemGutterMargins",null);_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"isShortsGridSlim",null);_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"isCompactGrid",null);
_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"isDefaultGrid",null);_.r([_.K("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"hideChipsBarOnHome",null);_.r([_.K("data.targetId"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"hideChipsBarOnWatch",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SL.prototype,"onIsShortsGridChange",null);_.r([_.K("data.enableContentSpecificAspectRatio"),_.E(),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SL.prototype,"force16By9ThumbnailAspectRatio",null);_.r([_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],SL.prototype,"continuationTriggerOffset",null);SL=_.r([_.A({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],SL);
_.F(SL,"ytd-rich-grid-renderer",function(){if(y1U!==void 0)return y1U;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return y1U=B},{mode:2});var xM2=_.sx(function(B){var R=B.thumbsUp;B=B.thumbsDown;var V=_.h(_.WU(!1,void 0,"OxPsH")),e=V.next().value,X=V.next().value;V=_.h(_.WU(!1,void 0,"V5vWne"));var Y=V.next().value,t=V.next().value;return _.N("div",{class:"ytwThumbsUpDownThumbs"},_.N(_.LO,{data:R,onToggle:function(b){X(b);Y()&&t(!1)},
buttonShapeOverrides:function(){return{toggled:e()}}}),_.N(_.LO,{data:B,
onToggle:function(b){t(b);e()&&X(!1)},
buttonShapeOverrides:function(){return{toggled:Y()}}}))},"oi");
xM2.idomCompat=!0;var vk4=_.sx(function(B){var R=function(){return B.data().pendingStateEntityKey||""},V=_.No(_.urn,R),e=function(){var X;
if(!(X=B.disabled())){var Y;X=!((Y=V())==null||!Y.isPendingResponse)}return X};
return _.N("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.N(_.yh,{each:function(){return B.data().chipData||[]},
keyBy:"REFERENCE"},function(X){return _.N(L7r,{data:X,disabled:e,pendingStateKey:R,onError:B.onError})}))},"pi"),L7r=_.sx(function(B){var R=_.Zh(),V=_.h(_.WU(!0,void 0,"HBREAe")),e=V.next().value,X=V.next().value,Y=function(){return B.data().text.content},t=_.Wr(function(b){var J,G,y,S,M,f,z,T;
return _.W(function(L){switch(L.nextAddress){case 1:b.stopPropagation();if(B.disabled())return L.return();G=String(Math.floor(((J=_.Yx())==null?void 0:J.getCurrentTime())||0)*1E3);y="youchat-"+Date.now();S=function(){_.wl(B.data().onClick||{});var Q={continuationCommand:{token:B.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},q={inputComposerFormData:{clientMessageId:y,playerOffsetMs:G}};return new Promise(function(m,g){_.wl(Q,{form:{formData:q},commandController:{onSuccess:function(Vu,
n){m(n)},
onServerError:function(Vu,n){g(n.error)}}})})};
M=_.Osr(B.pendingStateKey());M(!0);_.cco("#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);_.en(L,2);return _.U(L,S(),4);case 4:_.c8(L,3);break;case 2:f=_.WR(L),(T=(z=B).onError)==null||T.call(z,f);case 3:M(!1),_.b3(L)}})});
return _.N(_.H,{cond:e,then:function(){return _.N("div",{class:"ytwYouChatChipsDataChipWrapper"},_.N("button",{el:R,class:"ytwYouChatChipsDataChip","data-disabled":B.disabled,"on:click":t,tabindex:0},Y))}})},"qi");var K7j=_.sx(function(B){var R=B.data;return _.N("yt-conversation-resource-view-model",{class:_.XE("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.N(_.H,{cond:function(){var V;return(V=R().conversationResourceData)==null?void 0:V.learningGuideData},
then:function(V){return _.N(_.yh,{each:function(){return V().sectionData||[]}},function(e){return _.N("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.N(_.Hr,{text:function(){return e.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.N("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.N(_.Hr,{text:function(){return e.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.N(_.Hr,{text:function(){return e.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"ri");
K7j.idomCompat=!0;var I_4=_.sx(function(B){var R=function(){var Q;return(Q=B.data().text)==null?void 0:Q.content},V=function(){var Q,q;
return(Q=B.data().webData)==null?void 0:(q=Q.textResult)==null?void 0:q.content},e=_.Oz().resolve(_.q9),X=_.hv(),Y=function(){return B.data().chatResponseStyle},t=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:B.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},b=function(){var Q;
return B.data().webData||((Q=B.data().text)==null?void 0:Q.content)||B.data().videoResultsData||B.data().conversationResourceViewModel},J=function(){var Q;
return(Q=B.data().videoResultsData)==null?void 0:Q.videoShelf},G=function(){var Q;
return _.D(((Q=B.data().videoResultsData)==null?void 0:Q.videoShelf)||{},p4r)},y=function(){var Q;
return(Q=B.data().webData)==null?void 0:Q.sourcesShelf},S=function(){var Q;
return _.D(((Q=B.data().webData)==null?void 0:Q.sourcesShelf)||{},p4r)},M=function(){return _.D(B.data().conversationResourceViewModel||{},h9m)},f=function(){return Y()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||Y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:B.data().thumbsDownViewModel&&B.data().thumbsUpViewModel},z=function(){return _.D(B.data().thumbsUpViewModel,_.xx)},T=function(){return _.D(B.data().thumbsDownViewModel,_.xx)};
_.fQ(function(){requestAnimationFrame(function(){var Q;(Q=B.shouldAnimateIcon)!=null&&Q.call(B)&&okm(X.lottieEl)})});
var L={};return _.N("you-chat-item-view-model",{class:_.XE("ytwYouChatItemViewModelYouChatItemViewModel",(L.ytwYouChatItemViewModelHostNoPadding=function(){return!1},L)),
"data-target-id":function(){return B.data().id||""}},_.N(_.H,{cond:b,
then:function(){var Q={};return _.N("div",{"aria-hidden":"true"},_.N(_.pD,{className:_.XE("ytwYouChatItemViewModelIcon",(Q.ytwYouChatItemViewModelRtl=e==="rtl",Q.ytwYouChatItemViewModelHidden=function(){return!(B.data().hideIcon||Y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||Y()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:b())},Q)),
animationName:"YOUCHAT_ICON",data:t,animationRef:X}))}}),_.N(_.H,{cond:b,
then:function(){var Q={};return _.N("div",{class:_.XE("ytwYouChatItemViewModelHost",(Q.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return Y()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},Q.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return Y()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},Q.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return Y()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},Q)),
role:"alert"},_.N(_.H,{cond:R,then:function(q){return _.N(_.z9,{text:q})}}),_.N(_.H,{cond:V,
then:function(q){return _.N(_.z9,{text:q})}}),_.N(_.H,{cond:J,
then:function(){return _.N("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.N(_.lc,{data:G,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.N(_.H,{cond:y,
then:function(){return _.N("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.N(_.lc,{data:S,hasPeek:!0,disableArrows:!1}))}}),_.N(_.H,{cond:M,
then:function(){return _.N(K7j,{data:M})}}),_.N(_.H,{cond:f,
then:function(){return _.N(xM2,{thumbsUp:z,thumbsDown:T})}}))}}),_.N(_.H,{cond:function(){return B.data().chipsData},
then:function(Q){return _.N(vk4,{data:Q,disabled:B.pending,onError:B.onError})}}))},"si");
I_4.idomCompat={callbacks:{onError:!0,onSend:!0}};var Eke=_.sx(function(B){var R=function(){return B.data().choiceSelectedText};
return _.N("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.N(_.H,{cond:R,then:function(){return _.N("div",{class:"ytYouChatUserTurnChoiceSelected"},_.N(_.Hr,{text:R}))}}),_.N("div",{class:"ytYouChatUserTurnUserMessage"},function(){return B.data().text}))},"ti");var QS4=_.sx(function(B){var R=_.h((0,_.PZa)(B.data)).next().value;return _.N("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return B.data().targetId||""}},_.N(_.wb,{data:function(){return B.data().header}},{chipBarViewModel:_.c9l}),_.N(_.wb,{data:function(){return R().contents}},{accordionViewModel:_.S6J,
alertBannerViewModel:_.Z54,chatLoadingViewModel:_.mnU,chatUserTurnViewModel:Eke,learningJourneyLoaderViewModel:_.Uio,lockupViewModel:_.nu,youChatItemViewModel:function(V){return _.N(I_4,{data:V.data,pending:!1})}}))},"ui");_.mR(_.sx(function(B){var R=_.h((0,_.PZa)(B.data)).next().value;return _.N("yt-section-list-renderer",{class:_.XE("ytSectionListRendererHost",B.className),"data-target-id":function(){return B.data().targetId||""}},_.N(_.wb,{data:function(){return R().contents}},{itemSectionRenderer:QS4}))},"vi"),"yt-section-list-renderer",{props:{data:_.qq,
className:_.Z9}});var qti;var c1N;var Ht=function(){return _.c.apply(this,arguments)||this};
_.l(Ht,_.c);_.r([_.E(),_.Z("design:type",Object)],Ht.prototype,"data",void 0);Ht=_.r([_.fJ({is:"yt-alert-renderer",disableElementRegistration:!0})],Ht);
_.F(Ht,"yt-alert-renderer",function(){if(c1N===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;qti===void 0&&(qti=document.createElement("template"));var e=qti;V.call(R,e.content.cloneNode(!0),B.content.firstChild);c1N=B}B=c1N;return B},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.yq7=function(B,R){var V,e;R=R===void 0?{}:R;var X,Y,t,b,J,G,y,S,M,f,z,T;return _.W(function(L){switch(L.nextAddress){case 1:X=R;Y=X.shouldWrap===void 0?!0:X.shouldWrap;t=X.skipTransitionTimeoutMs===void 0?300:X.skipTransitionTimeoutMs;b=X.beforeTransition;J=X.afterTransition;if(!Y||!document.startViewTransition||document.visibilityState==="hidden")return L.return(B());V=window.innerWidth;e=window.innerHeight;G=!1;(y=b)==null||y();_.en(L,2);S=document.startViewTransition(B);M=setTimeout(function(){S.skipTransition();
G=!0},t);
return _.U(L,S.ready,4);case 4:return clearTimeout(M),_.U(L,S.finished,5);case 5:clearTimeout(M);(f=J)==null||f();_.c8(L,0);break;case 2:z=_.WR(L),(T=J)==null||T(),z&&!G&&document.visibilityState!=="hidden"&&V===window.innerWidth&&e===window.innerHeight&&_.Tn(z),_.b3(L)}})};
_.as=function(B){return B!=null&&B.watch?B.watch.isTheaterMode:!1};
_.dw=function(){for(var B=Array(36),R=0,V,e=0;e<36;e++)e==8||e==13||e==18||e==23?B[e]="-":e==14?B[e]="4":(R<=2&&(R=33554432+Math.random()*16777216|0),V=R&15,R>>=4,B[e]=_.MQo[e==19?V&3|8:V]);return B.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 S04=_.$Q(['<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>']),
Hrn=_.he4(S04);Hrn.setAttribute("style","display: none;");document.head.appendChild(Hrn.content);_.ww=_.dNp(function(B){var R=_.jr("DIV");B&&(R.className=B);R.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";B=_.jr("DIV");_.yra(B,"200px","200px");R.appendChild(B);document.body.appendChild(R);B=R.offsetWidth-R.clientWidth;_.UJ(R);return B});var MnU;var k4m;var TJ=function(){var B=_.c.apply(this,arguments)||this;B.icon=null;return B};
_.l(TJ,_.c);TJ.prototype.dismiss=function(){_.OI(this.hostElement,"yt-live-chat-error-message-dismiss")};
TJ.prototype.computeIcon=function(B){return B&&B.iconType?"yt-icons:"+B.iconType.toLowerCase():"yt-icons:close"};
_.r([_.E(),_.Z("design:type",Object)],TJ.prototype,"data",void 0);_.r([_.E({computed:"computeIcon(data.icon)"}),_.Z("design:type",Object)],TJ.prototype,"icon",void 0);TJ=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],TJ);
_.F(TJ,"yt-live-chat-error-message-renderer",function(){if(k4m===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;MnU===void 0&&(MnU=document.createElement("template"));var e=MnU;V.call(R,e.content.cloneNode(!0),B.content.firstChild);k4m=B}B=k4m;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var FSm,rV4,gCr,Z1n,uVe,O1r,oo4,BJe,Rvo,du,V02,eve,wu,XFe,pFr,YPz,hve,t06,W$n,b9m,Jtn,jyi,Uhn,NJr,G72,ytU,SPz,H9N,M07,k7e,Dh4,fce,TW,lce,zvm,acN,TJi,xhi,L$m,von,K$n,Icr,dho,wFo,Qy2,qPj,cto,Atz,i94,Eoj,F$4;FSm=function(B,R){return _.p7(B.entities,"timedMarkersListSyncEntity",R)};
rV4=function(B,R){return _.p7(B.entities,"liveReactionsDataEntity",R)};
gCr=function(B,R){B=_.p7(B.entities,"booleanEntity",R);return!(!B||!B.value)};
Z1n=function(B,R){var V=_.TE();V&&B&&_.EV(V,_.U5(B),R)};
_.mt4=function(){_.k("web_watch_log_theater_mode")&&_.Mwp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.$tz=function(B,R,V){if(!B.includes("START_TIME_PLACEHOLDER")||!B.includes("END_TIME_PLACEHOLDER"))return B;var e=new Date(0),X=new Date(0);e.setUTCMilliseconds(R);X.setUTCMilliseconds(V);return B.replace("START_TIME_PLACEHOLDER",_.qR(e,7)).replace("END_TIME_PLACEHOLDER",_.qR(X,7))};
_.CSn=function(B){return B.watch.isWatchActive};
_.zW=function(B){return B!=null&&B.watch?B.watch.isWatchFullscreen:!1};
_.PSm=function(B){return _.as(B)||_.zW(B)||_.z9p(B)};
_.nC4=function(B){return!_.PSm(B)};
_.a2=function(B){return B.watch.watchScrollTop};
uVe=function(B){return B.watch.isLiveChatCollapsed};
O1r=function(B){return B.watch.openEngagementPanels};
oo4=function(B,R){return _.p7(B.entities,"booleanEntity",R)};
BJe=function(){return function(B){_.cc(_.SX("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:B}))}};
Rvo=function(B){switch(B){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}};
du=function(B,R,V){var e=_.dl(V);B&&R&&e&&B.getPlayerPromise().then(function(X){_.IWK(e)&&_.wn();(new _.jF(X)).executeCommand(e,R);_.k("continue_playback_on_desktop_companion_click")||X.pauseVideo()})};
V02=function(B){var R=_.Pr(),V;if(V=_.qN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var e;V=(e=V())==null?void 0:e.layoutId}else V=null;du(R,V,B)};
eve=function(B){var R=_.Pr(),V;if(V=_.qN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var e;V=(e=V())==null?void 0:e.layoutId}else V=null;du(R,V,B)};
wu=function(B,R){var V=B<0?"-":"";B=Math.abs(B);var e=Math.floor(B/3600),X=Math.floor(B)%3600,Y=Math.floor(X/60);X=Math.floor(X)%60;var t="";(R===void 0?0:R)&&(t="."+Math.round((B-Math.floor(B))*10));return e>0?V+e+":"+(Y<10?"0"+Y:""+Y)+":"+(X<10?"0"+X:""+X)+t:V+Y+":"+(X<10?"0"+X:""+X)+t};
XFe=function(B){var R=B.match(/[^0-9:\.]/g);if(R&&R.length>0)return null;B=B.split(":");if(B.length===0||B.length>3)return null;R=1;for(var V=0;B.length>0;){var e=B.pop();if(e===void 0)break;var X=Number(e);if(e===""||isNaN(X))return null;V+=X*R;R*=60}return V};
pFr=function(B,R,V,e){B=Math.max(V,B);R=Math.min(R,e-V);B+R>e?(V=e,B=V-R):V=B+R;return{start:B,end:V}};
YPz=function(B,R,V,e,X,Y){B<V?B=V:B+X>e&&(B=e-X);R>e&&(R=e);R=Math.min(B+Y,Math.max(B+X,R));return{start:B,end:R}};
hve=function(B,R,V,e,X,Y){R>e?R=e:R-X<V&&(R=V+X);B<V&&(B=V);B=Math.min(R-X,Math.max(R-Y,B));return{start:B,end:R}};
t06=function(B){return _.k("web_transcript_cue_id_killswitch")?String(B):"ytd-transcript-renderer_"+B};
W$n=function(B){return _.k("web_transcript_cue_id_killswitch")?!0:B.startsWith("ytd-transcript-renderer")};
b9m=function(B){var R=_.Pr(),V;if(V=_.qN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var e;V=(e=V())==null?void 0:e.layoutId}else V=null;du(R,V,B)};
Jtn=function(B){B.style.height="auto";B.style.height=Math.min(B.scrollHeight||20,80)+"px"};
jyi=function(B,R){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:R}}],insertByPositionInSection:{sectionTargetId:B,position:"INSERTION_POSITION_LAST"}}}]}}}};
Uhn=function(B){var R=_.Pr(),V;V=(V=_.qN("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.layoutId:null;du(R,V,B)};
NJr=function(B){var R=_.Pr(),V;V=(V=_.qN("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.layoutId:null;du(R,V,B)};
G72=function(B,R){R=R===void 0?!1:R;if(B.simpleText)B=[{text:B.simpleText}];else{var V;B=((V=B.runs)!=null?V:[]).map(function(e){return Object.assign({},e)})}if(R)for(R=_.h(B),V=R.next();!V.done;V=R.next())V.value.bold=!0;
return B};
ytU=function(B){var R=B.startEndTimeTemplate,V=B.startTimeUtcMillis;B=B.endTimeUtcMillis;if(R&&V&&B)return _.s$(_.$tz(_.FF(R),Number(V),Number(B)))};
SPz=function(B,R){var V,e,X=B==null?void 0:(V=B.viewCount)==null?void 0:(e=V.videoViewCountRenderer)==null?void 0:e.shortViewCount;if(!R&&X)return X;var Y,t;return B==null?void 0:(Y=B.viewCount)==null?void 0:(t=Y.videoViewCountRenderer)==null?void 0:t.viewCount};
H9N=function(B,R){var V=B==null?void 0:B.relativeDateText;return!R&&V?[V,!0]:[B==null?void 0:B.dateText,!1]};
M07=function(B,R,V,e,X){e=e===void 0?!0:e;X=X===void 0?"":X;var Y=SPz(B,R),t=_.h(H9N(B,R)),b=t.next().value;t=t.next().value;R=R?B==null?void 0:B.sponsorsOnlyFirstTimeLongText:B==null?void 0:B.sponsorsOnlyFirstTimeShortText;var J=[];V&&Y&&J.push(Y);!V&&t||!b||J.push(b);B=[].concat(_.MI(J),[R,B==null?void 0:B.stationName,B==null?void 0:B.rating,B?ytU(B):void 0,B==null?void 0:B.upNextProgramText,B==null?void 0:B.superTitleLink]).filter(function(G){return!!G});
V={runs:[]};for(Y=0;Y<B.length;Y++)V.runs.push.apply(V.runs,_.MI(G72(B[Y],e))),Y<B.length-1&&V.runs.push({text:" "+X+" ",bold:e});return V};
k7e=function(B){if(B)return{runs:[{text:B,bold:!0}]}};
Dh4=function(B){var R,V,e,X;if(B=B==null?void 0:(R=B.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(e=V.results)==null?void 0:(X=e.results)==null?void 0:X.contents){var Y,t;return(t=(Y=B.find(function(b){return!!b.videoPrimaryInfoRenderer}))==null?void 0:Y.videoPrimaryInfoRenderer)==null?void 0:t.updatedMetadataEndpoint}};
fce=function(B,R){var V;return(V=B.sourceConfigs)==null?void 0:V.find(function(e){return e.videoId===R})};
TW=function(B){return B==="End of video"||B==="End of playlist"};
lce=function(B){var R,V,e,X;return(R=B.getWatchNextResponse())==null?void 0:(V=R.contents)==null?void 0:(e=V.twoColumnWatchNextResults)==null?void 0:(X=e.playlist)==null?void 0:X.playlist};
zvm=function(B){var R,V,e,X,Y,t;return(R=lce(B))==null?void 0:(V=R.playlistButtons)==null?void 0:(e=V.menuRenderer)==null?void 0:(X=e.topLevelButtons)==null?void 0:(Y=X[0])==null?void 0:(t=Y.playlistLoopButtonRenderer)==null?void 0:t.playlistLoopStateEntityKey};
acN=function(B){var R=_.Oz().resolve(_.Ky),V;return(R=(V=_.D(R.getAutoplayEndpoint(),_.sI))==null?void 0:V.playlistId)&&R===B};
TJi=function(B,R,V,e,X){function Y(){_.dV.cancelJob(xY);var t=dho(R,V/B.getPlaybackRate()),b=t.hours,J=t.minutes;t=(t.seconds*1E3||6E4)/B.getPlaybackRate();B.setVideoTimeLeft(wFo(b,J));e&&B.getPlayerState()!==0&&B.setSleepTimerTimeLeft(wFo(b,J,!0));(b>0||J>0)&&!X&&(xY=_.kx(_.dV,Y,t))}
_.dV.cancelJob(xY);xY=_.kx(_.dV,Y)};
xhi=function(B,R,V){function e(){_.dV.cancelJob(Lm);var X=dho(R,V),Y=X.hours;X=X.minutes;var t=6E4/B.getPlaybackRate();if(Y>0||X>0)B.setSleepTimerTimeLeft(wFo(Y,X,!0)),Lm=_.kx(_.dV,e,t)}
_.dV.cancelJob(Lm);Lm=_.kx(_.dV,e)};
L$m=function(B,R){var V=B.getVolume()/(R/500),e=function(X){_.dV.cancelJob(vY);var Y=Math.floor(X-V);B.setVolume(Y,!1);Y>0&&(vY=_.kx(_.dV,function(){e(Y)},500))};
_.dV.cancelJob(vY);vY=_.kx(_.dV,function(){e(B.getVolume())})};
von=function(B,R){_.dV.cancelJob(vY);R&&B.syncVolume()};
K$n=function(){var B={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Wz("SLEEP_TIMER_DISRUPTED")}}}}};_.Oz().resolve(_.oC).resolveCommand(B)};
Icr=function(B){return(B.getDuration()-B.getProgressState().current)*1E3};
dho=function(B,R){B=B+R-(0,_.P8)();if(B<=0)return{hours:0,minutes:0,seconds:0};var V=new Eoj(0,0,0,0,0,0,B);B=V.getHours();R=V.getMinutes();V=V.getSeconds();V!==0&&R++;R!==0&&R%60===0&&(B++,R=0);return{hours:B,minutes:R,seconds:V}};
wFo=function(B,R,V){return B>0&&R>0?V?_.Wz("TIME_LEFT_HOURS_MINUTES",{hours:B.toString(),minutes:R.toString()}):_.Wz("TIME_HOURS_MINUTES",{hours:B.toString(),minutes:R.toString()}):B>0?V?_.bF("TIME_LEFT_HOURS",B):_.bF("TIME_HOURS",B):V?_.Wz("TIME_LEFT_MINUTES",{minutes:R.toString()}):_.Wz("TIME_MINUTES",{minutes:R.toString()})};
Qy2=function(B,R){if(B.timelyActions)return B.timelyActions.find(function(V){var e;return((e=_.D(V,Km))==null?void 0:e.cueRangeId)===R})};
qPj=function(B){var R=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.pa(B);B.keyMap_.forEach(function(V,e){_.gx(R,e)||this.remove(e)},B)};
cto=function(B,R){B.reloadContinuationItemsCommandMatcher=R};
_.I2=function(B,R){B.insertBefore(R,B.childNodes[0]||null)};
Atz=function(B){if(B>=48&&B<=57||B>=96&&B<=106||B>=65&&B<=90||_.Wb&&B==0)return!0;switch(B){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 _.to;default:return!1}};
i94=function(B){if(B.altKey&&!B.ctrlKey||B.metaKey||B.keyCode>=112&&B.keyCode<=123)return!1;if(Atz(B.keyCode))return!0;switch(B.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!_.to;default:return B.keyCode<166||B.keyCode>183}};
Eoj=function(B,R,V,e,X,Y,t){this.date=typeof B==="number"?new Date(B,R||0,V||1,e||0,X||0,Y||0,t||0):new Date(B&&B.getTime?B.getTime():_.VG())};
_.eY(Eoj,_.Dr);_.p=Eoj.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(B){this.date.setHours(B)};
_.p.setMinutes=function(B){this.date.setMinutes(B)};
_.p.setSeconds=function(B){this.date.setSeconds(B)};
_.p.setMilliseconds=function(B){this.date.setMilliseconds(B)};
_.p.setUTCHours=function(B){this.date.setUTCHours(B)};
_.p.setUTCMinutes=function(B){this.date.setUTCMinutes(B)};
_.p.setUTCSeconds=function(B){this.date.setUTCSeconds(B)};
_.p.setUTCMilliseconds=function(B){this.date.setUTCMilliseconds(B)};
_.p.add=function(B){_.Dr.prototype.add.call(this,B);B.hours&&this.setUTCHours(this.date.getUTCHours()+B.hours);B.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+B.minutes);B.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+B.seconds)};
_.p.JSC$9142_toIsoString=function(B){var R=_.Dr.prototype.JSC$9142_toIsoString.call(this,B);return B?R+"T"+_.Rp(this.getHours(),2)+":"+_.Rp(this.getMinutes(),2)+":"+_.Rp(this.getSeconds(),2):R+"T"+_.Rp(this.getHours(),2)+_.Rp(this.getMinutes(),2)+_.Rp(this.getSeconds(),2)};
_.p.equals=function(B){return this.getTime()==B.getTime()};
_.p.toString=function(){return this.JSC$9142_toIsoString()};
_.p.clone=function(){var B=new Eoj(this.date);B.firstDayOfWeek_=this.firstDayOfWeek_;B.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return B};
_.sye=function(B){return _.or({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:B}})};
F$4=new _.P("imageTileRenderer");var rt2=new _.P("adGridCardCollectionViewModel");var goU=new _.P("carouselTitleViewModel");var Z96=new _.P("ctaCarouselItemViewModel");var mh4=new _.P("textFieldViewModel");_.$hU=new _.P("engagementPanelHeaderShowNavigationButtonCommand");var Ch7=new _.P("hideEngagementPanelScrimAction");var Phn=new _.P("setActivePanelItemAction");var noe=new _.P("showEngagementPanelScrimAction");var ueN=new _.P("updateEngagementPanelAction");var O9n=new _.P("updateSearchInVideoResultsAction");var oHo=new _.P("transcriptCueGroupRenderer");var BZU=new _.P("transcriptCueRenderer");var Rp2=new _.P("transcriptFooterRenderer");var VM4=new _.P("engagementPanelAdSubtitleRenderer");var epo=new _.P("videoDescriptionFantasySectionViewModel");var Xvz=new _.P("deleteClipEngagementPanelCommand");var pvj=new _.P("loopCommand");var Y26=new _.P("changeCreatorEndscreenVisibilityCommand");var hp6=new _.P("liveChatCallForQuestionsRenderer");var tMU=new _.P("updateTimedMarkersSyncObserverCommand");var Km=new _.P("timelyActionViewModel");var Wdr=new _.P("timelyActionsOverlayViewModel");var bGN=new _.P("repeatChapterCommand");var JO4=new _.P("watchPlayerOverflowMenuCommand");var jx6=new _.P("compositeVideoOverlayRenderer");var UPo=new _.P("sortFilterSubMenuRenderer");var NZr=new _.P("switchListItemViewModel");var GQi=new _.P("inputComposerViewModel");var yOo=new _.P("transcriptEditSegmentCommand");var S2i=new _.P("transcriptUpdateSegmentTextCommand");var HGe=new _.P("transcriptSearchBoxRenderer");var MMe=new _.P("transcriptSegmentListRenderer");var kQ4=new _.P("transcriptSegmentRenderer");_.DP7=new _.P("updateDateTextAction");var f6U=new _.P("updateTitleAction");var l6N=new _.P("updateViewershipAction");var zpr=new _.P("carouselLockupRenderer");var a64=new _.P("expandableVideoDescriptionBodyRenderer");var dP4=new _.P("videoDescriptionYouchatSectionViewModel");_.Ea=_.RC("kevlar_watch_page_horizontal_margin",24);_.wvU=_.RC("kevlar_watch_page_columns_top_padding",24);_.TZn=426+_.Ea*2;_.QE=_.RC("kevlar_watch_two_column_width_threshold",1E3);_.xPm=_.Ea*2;_.Ld4=_.RC("kevlar_watch_secondary_width",402);_.vHi=_.RC("kevlar_watch_max_player_width",1280);_.Kdm=_.RC("kevlar_watch_flexy_metadata_height",136);_.I6o=_.xPm+310+_.Ea;_.EHU=_.xPm+360+_.Ea;var Qxz={PAUSE_CHAT:18};var q2N;var cO4;var qA=function(){return _.c.apply(this,arguments)||this};
_.l(qA,_.c);qA.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
qA.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var B=_.D(this.data.button,_.Tr);B&&(B.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.mh.Object.defineProperties(qA,{template:{configurable:!0,enumerable:!0,get:function(){if(cO4===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;q2N===void 0&&(q2N=document.createElement("template"));var e=q2N;V.call(R,e.content.cloneNode(!0),B.content.firstChild);cO4=B}B=cO4;return B}}});
_.r([_.v(_.dM),_.Z("design:type",Object)],qA.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({selectorArgs:["data.enabledEntityKey"],selector:gCr,observer:"onEnabledChange"}),_.Z("design:type",Boolean)],qA.prototype,"enabled",void 0);_.r([_.E(),_.Z("design:type",Object)],qA.prototype,"data",void 0);qA=_.r([_.fJ({is:"yt-disableable-button-view-model",noInjection:!0})],qA);var AOz;var iGn;var sxe=["transVert01","transVert02","transVert03"],Fdo="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),cY=function(){var B=_.c.apply(this,arguments)||this;B.emojiManager=_.Tx;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};B.reactionBuckets=[];B.noEmojiIdentifier="NO_EMOJI";return B};
_.l(cY,_.c);_.p=cY.prototype;_.p.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.p.desktopFountainEmojiSizePxChanged=function(){_.o_(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.p.createUserReactionAnimation=function(B){this.createEmojiAnimation(B,!0)};
_.p.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var B;((B=this.data)==null?0:B.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.SX("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.MI(this.emojiContainer.children)).forEach(function(R){R.remove()})};
_.p.detached=function(){this.cleanupFountain()};
_.p.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var B;this.reactionBuckets=_.M_.unsafeClone((B=this.emojiFountainData)==null?void 0:B.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.p.processEmojiBucket=function(B){var R=this;if(this.reactionBuckets&&!(B>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var V=this.reactionBuckets[B];this.generateEmojiAnimations(V);if(B<this.reactionBuckets.length-1){var e;if(V==null?0:(e=V.duration)==null?0:e.seconds)this.emojiBucketTimerId=setTimeout(function(){R.processEmojiBucket(B+1)},Number(V.duration.seconds)*1E3)}}};
_.p.generateEmojiAnimations=function(B){var R=this,V=this.getRandomEmojiIdFromBucketWithOverride(B);if(V&&V!==this.noEmojiIdentifier){var e=0;B.targetEps?(e=this.linearInterpolateBounded(1,20,100,12,B.emojiSizeIndex||0),this.createEmojiAnimation(V,!1,B.emojiAnimationMs,e),e=this.getEmojiDelayMsFromTargetEps(B.targetEps)):(this.createEmojiAnimation(V),e=this.getEmojiDelayMsFromDistribution(B.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){R.generateEmojiAnimations(B)},e)}};
_.p.getRandomEmojiIdFromBucketWithOverride=function(B){if(!(B&&B.reactionsData&&B.reactionsData.length&&B.totalReactions))return this.noEmojiIdentifier;for(var R=B.totalReactions,V=1,e=_.h(B.reactionsData),X=e.next();!X.done;X=e.next())X=X.value,(X.reactionWeightOverride||X.reactionWeightOverride===0)&&X.reactionCount&&(R-=X.reactionCount,V-=X.reactionWeightOverride);e=!0;V<0&&(e=!1,R=B.totalReactions,V=1);if(e&&V>0&&R===0)if(V===1){X=0;for(var Y=_.h(B.reactionsData),t=Y.next();!t.done;t=Y.next())t=
t.value,t.reactionCount&&t.reactionCount>0&&X++;X=1/X;Y=_.h(B.reactionsData);for(t=Y.next();!t.done;t=Y.next())t.value.reactionWeightOverride=X}else for(X=1/(1-V),Y=_.h(B.reactionsData),t=Y.next();!t.done;t=Y.next())t=t.value,t.reactionWeightOverride&&(t.reactionWeightOverride*=X);X=Math.random();Y=0;t=_.h(B.reactionsData);for(var b=t.next();!b.done;b=t.next())if(b=b.value,b.reactionCount&&(Y=(b.reactionWeightOverride||b.reactionWeightOverride===0)&&e?Y+b.reactionWeightOverride:Y+V*b.reactionCount/
R,Y>X&&(b.reactionCount--,B.totalReactions--,b=this.reactionItemToEmojiString(b),b!==this.noEmojiIdentifier)))return b;return this.noEmojiIdentifier};
_.p.reactionItemToEmojiString=function(B){if(B.unicodeEmojiId)return B.unicodeEmojiId;if(B.emoteId)return B.emoteId;if(B.videoReactionType)switch(B.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.p.createEmojiAnimation=function(B,R,V,e){R=R===void 0?!1:R;this.lastEmojiRequestedForTesting=B;var X=B.startsWith("yt-icons:"),Y=_.dY(this.emojiManager,B);if(Y||X){var t=document.createElement("emoji");t.classList.add("yt-emoji-fountain-view-model");t.classList.add(sxe[Math.floor(Math.random()*sxe.length)]);var b=document.createElement("div");b.classList.add("yt-emoji-fountain-view-model");b.classList.add("horizontal-container");b.classList.add(Fdo[Math.floor(Math.random()*Fdo.length)]);R?(V=document.createElement("div"),
V.classList.add("user-reaction-bubble"),V.classList.add("yt-emoji-fountain-view-model"),b.appendChild(V)):(V&&(t.style.animationDuration=V+"ms",b.style.animationDuration=V+"ms"),e&&(t.style.width=e+"px",t.style.height=e+"px"));X?(X=document.createElement("yt-icon"),X.polymerController.icon=B,e&&(X.style.width=e+"px",X.style.height=e+"px"),B=X):B=this.emojiManager.createEmoji(Y,!1);B.classList.add("yt-emoji-fountain-view-model");b.appendChild(B);t.appendChild(b);this.emojiContainer.appendChild(t);
t.addEventListener("animationend",function(){t.remove()});
var J,G;if((J=this.data)==null?0:(G=J.loggingDirectives)==null?0:G.trackingParams)R=R?_.kB(183501):_.kB(183500),Z1n(this.data.loggingDirectives.trackingParams,R),_.rNo(R);setTimeout(function(){t&&t.remove()},2E3)}};
_.p.getEmojiDelayMsFromDistribution=function(B){return Math.random()*(B||1)*1E3};
_.p.getEmojiDelayMsFromTargetEps=function(B){return Math.random()*2*(1/B)*1E3};
_.p.linearInterpolateBounded=function(B,R,V,e,X){X=Math.min(Math.max(X,B),V);return(R*(V-X)+e*(X-B))/(V-B)};
cY.prototype.onEmojiFountainDataEntityUpdate=cY.prototype.onEmojiFountainDataEntityUpdate;cY.prototype.desktopFountainEmojiSizePxChanged=cY.prototype.desktopFountainEmojiSizePxChanged;cY.prototype.isActiveChanged=cY.prototype.isActiveChanged;_.r([_.E(),_.Z("design:type",_.ao)],cY.prototype,"emojiManager",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],cY.prototype,"ytLiveChatReduxBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],cY.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cY.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(B,R){return _.p7(B.entities,"emojiFountainDataEntity",R)}}),
_.Z("design:type",Object)],cY.prototype,"emojiFountainData",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cY.prototype,"isActive",void 0);_.r([_.XX("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cY.prototype,"isActiveChanged",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],cY.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",String)],cY.prototype,"lastEmojiRequestedForTesting",void 0);
_.r([_.E({value:function(){return _.RC("desktop_fountain_emoji_size_px",20)}}),
_.Z("design:type",Number)],cY.prototype,"desktopFountainEmojiSizePx",void 0);_.r([_.XX("desktopFountainEmojiSizePx"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cY.prototype,"desktopFountainEmojiSizePxChanged",null);_.r([_.Yp("#emoji-container"),_.Z("design:type",HTMLElement)],cY.prototype,"emojiContainer",void 0);
_.r([_.XX("emojiFountainData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cY.prototype,"onEmojiFountainDataEntityUpdate",null);cY=_.r([_.fJ({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],cY);
_.F(cY,"yt-emoji-fountain-view-model",function(){if(iGn===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;AOz===void 0&&(AOz=document.createElement("template"));var e=AOz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);iGn=B}B=iGn;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var rOU;var gHe;var Aa=function(){return _.c.apply(this,arguments)||this};
_.l(Aa,_.c);Aa.prototype.onChoiceChanged=function(){this.data&&_.o_(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Aa.prototype.onChoiceChanged=Aa.prototype.onChoiceChanged;_.r([_.E(),_.Z("design:type",Object)],Aa.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Aa.prototype,"onChoiceChanged",null);Aa=_.r([_.A({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Aa);
_.F(Aa,"yt-live-chat-banner-poll-choice",function(){if(gHe===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;rOU===void 0&&(rOU=document.createElement("template"));var e=rOU;V.call(R,e.content.cloneNode(!0),B.content.firstChild);gHe=B}B=gHe;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var ZGo;var mPm;var ib=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("web_button_rework_with_live");B.small=!1;return B};
_.l(ib,_.c);ib.prototype.computeIsSmall=function(){var B;return((B=this.buttonOverrides)==null?void 0:B.size)==="S"};
ib.prototype.computeId=function(){return this.data&&this.data.targetId};
_.r([_.v(_.wM.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],ib.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",String)],ib.prototype,"id",void 0);_.r([_.E(),_.Z("design:type",Object)],ib.prototype,"buttonOverrides",void 0);_.r([_.E(),_.Z("design:type",Object)],ib.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ib.prototype,"modern",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Z("design:type",Object)],ib.prototype,"small",void 0);ib=_.r([_.A({disableElementRegistration:!0,is:"yt-live-chat-button"})],ib);
_.F(ib,"yt-live-chat-button",function(){if(mPm===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;ZGo===void 0&&(ZGo=document.createElement("template"));var e=ZGo;V.call(R,e.content.cloneNode(!0),B.content.firstChild);mPm=B}B=mPm;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var $Pe;var C1o;var sa=function(){var B=_.c.apply(this,arguments)||this;B.inCollapsedBanner=!1;B.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};B.questionButtonOverrides={style:"mono",type:"filled"};return B};
_.l(sa,_.c);_.p=sa.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(B){this.ytLiveChatItemBehavior.showContextMenu(B)};
_.p.onYtRendererstamperFinished=function(){this.menuButton=_.w(this.hostElement).querySelector("#menu-button")};
_.p.dataChanged=function(){var B,R;if((R=_.D((B=this.data)==null?void 0:B.overflowMenuButton,_.Ii))==null?0:R.command)this.data.contextMenuEndpoint=_.D(this.data.overflowMenuButton,_.Ii).command};
_.p.onButtonClick=function(){var B,R=_.D((B=this.data)==null?void 0:B.askQuestionButton,_.Ii);if(R){if(R.trackingParams&&(B=_.U5(R.trackingParams))){var V=_.TE();V&&_.iF(V,B)}_.OI(this.hostElement,"innertube-command",R.command)}};
sa.prototype.onYtRendererstamperFinished=sa.prototype.onYtRendererstamperFinished;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],sa.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],sa.prototype,"ytLiveChatItemBehavior",void 0);_.r([_.E({observer:"dataChanged"}),_.Z("design:type",Object)],sa.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sa.prototype,"inCollapsedBanner",void 0);_.r([_.E(),_.Z("design:type",Object)],sa.prototype,"buttonOverrides",void 0);_.r([_.E(),_.Z("design:type",Object)],sa.prototype,"questionButtonOverrides",void 0);_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sa.prototype,"onYtRendererstamperFinished",null);
sa=_.r([_.A({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],sa);
_.F(sa,"yt-live-chat-call-for-questions-renderer",function(){if(C1o===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;$Pe===void 0&&($Pe=document.createElement("template"));var e=$Pe;V.call(R,e.content.cloneNode(!0),B.content.firstChild);C1o=B}B=C1o;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var P14={};P14.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 B=this;window.requestAnimationFrame(function(){B.restoreFocusNode_||(B.restoreFocusNode_=document.activeElement);var R=_.xob(B.hostElement);R.length&&R[R.length-1].focus()})},
isAttachedChanged_:function(B,R){B?this.focusChild_():R&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(B){this.hidden||_.Az(B).indexOf(this.hostElement)!==-1||(B.stopPropagation(),this.focusChild_())}};var nH4;var ubr;var Fg=function(){return _.c.apply(this,arguments)||this};
_.l(Fg,_.c);Fg.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Fg.prototype.onClick=function(B){B.target!==this.confirmButton&&B.target!==this.cancelButton&&(this.hidden=!0)};
_.r([_.Yp("#confirm_button"),_.Z("design:type",Object)],Fg.prototype,"confirmButton",void 0);_.r([_.Yp("#cancel_button"),_.Z("design:type",Object)],Fg.prototype,"cancelButton",void 0);_.r([_.E(),_.Z("design:type",OG4)],Fg.prototype,"data",void 0);_.r([_.E({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Fg.prototype,"hidden",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(P14.YtLiveChatDialogBehavior),_.Z("design:type",Object)],Fg.prototype,"ytLiveChatDialogBehavior",void 0);Fg=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Fg);
var OG4=_.F(Fg,"yt-live-chat-dialog-renderer",function(){if(ubr===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;nH4===void 0&&(nH4=document.createElement("template"));var e=nH4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ubr=B}B=ubr;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var osr;var B56,Rcr=function(){if(B56!==void 0)return B56;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;osr===void 0&&(osr=document.createElement("template"));var e=osr;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return B56=B};var V3n;var ecn;var ru=function(){var B=_.c.apply(this,arguments)||this;B.tooltip=null;B.data=null;B.id="";B.active=!1;B.icon="";B.disabled=!1;B.showTooltip=!1;B.useToggledActiveState=!0;B.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return B};
_.l(ru,_.c);_.p=ru.prototype;
_.p.dataChanged=function(){var B;((B=this.data)==null?0:B.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,_.OX)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var R;if((R=this.data)==null?0:R.disabled)this.disabled=!0};
_.p.computeId=function(B){return B};
_.p.computeIcon=function(B,R){if(!B)return"";if(this.useToggledActiveState)return"yt-icons:"+B.toLowerCase();var V,e;return R&&((V=this.data)==null?0:(e=V.toggledIcon)==null?0:e.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+B.toLowerCase()};
_.p.logPDGEntryPoint=function(){_.Wz_(_.pk("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 B=_.w(this.hostElement).querySelector("#tooltip");B.animationDelay=0;B.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};B.show()};
_.p.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.p.onClick=function(B){var R;((R=this.data)==null?0:R.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),B.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.OI(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.p.computeShowTooltip=function(B,R){return!!(B&&B.tooltip&&R)};
_.p.maybeUpdateTooltipText=function(){var B=this,R;if((R=this.data)==null?0:R.tooltip){var V=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.OX)(B.tooltip).textContent=V},250)}};
_.p.handleLiveChatActions=function(B){var R=this;B.length&&(this.id!=="creator"&&this.id!=="product-picker"||B.forEach(function(V){(V=R.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",V))&&V.durationSec===V.fullDurationSec&&R.startBubble(R.colorFromDecimal(V.startBackgroundColor))}))};
_.p.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.p.startBubble=function(B){_.o_(this.hostElement,{"--yt-live-chat-monetization-button-glow":B});this.hostElement.setAttribute("bubble","")};
_.p.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.p.colorFromDecimal=function(B){typeof B==="string"&&(B=Number(B));return"rgba("+[B>>16&255,B>>8&255,B&255,(B>>24&255)/255].join()+")"};
ru.prototype.onAnimationEnd=ru.prototype.onAnimationEnd;ru.prototype.disabledChanged=ru.prototype.disabledChanged;ru.prototype.dataChanged=ru.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],ru.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.wM.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],ru.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ru.prototype,"data",void 0);_.r([_.E({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",Object)],ru.prototype,"id",void 0);_.r([_.E({notify:!0,reflectToAttribute:!0}),_.Z("design:type",Object)],ru.prototype,"active",void 0);
_.r([_.E({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Z("design:type",Object)],ru.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ru.prototype,"disabled",void 0);_.r([_.E({computed:"computeShowTooltip(data, disabled)"}),_.Z("design:type",Object)],ru.prototype,"showTooltip",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ru.prototype,"useToggledActiveState",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ru.prototype,"dataChanged",null);_.r([_.XX("disabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ru.prototype,"disabledChanged",null);_.r([_.R_("animationend"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ru.prototype,"onAnimationEnd",null);
ru=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],ru);
_.F(ru,"yt-live-chat-icon-toggle-button-renderer",function(){if(ecn===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;V3n===void 0&&(V3n=document.createElement("template"));var e=V3n;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ecn=B}B=ecn;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var XNr;var pNe;var gu=function(){return _.c.apply(this,arguments)||this};
_.l(gu,_.c);gu.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r([_.E(),_.Z("design:type",Object)],gu.prototype,"data",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);gu=_.r([_.A({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],gu);
_.F(gu,"yt-live-chat-message-input-prompt-header-renderer",function(){if(pNe===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;XNr===void 0&&(XNr=document.createElement("template"));var e=XNr;V.call(R,e.content.cloneNode(!0),B.content.firstChild);pNe=B}B=pNe;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var YKn;var hci;var t3N;var WrU;var bB4;var JYi;var Z8=function(){return _.c.apply(this,arguments)||this};
_.l(Z8,_.c);_.r([_.E(),_.Z("design:type",Object)],Z8.prototype,"data",void 0);Z8=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Z8);
_.F(Z8,"yt-live-chat-message-subtext-renderer",function(){if(JYi===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;bB4===void 0&&(bB4=document.createElement("template"));var e=bB4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);JYi=B}B=JYi;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var mT=function(){var B=_.c.apply(this,arguments)||this;B.subtextOnBottom=!1;B.buttonOverrides={style:"mono",type:"tonal"};return B};
_.l(mT,_.c);mT.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],mT.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],mT.prototype,"subtextOnBottom",void 0);_.r([_.E(),_.Z("design:type",Object)],mT.prototype,"buttonOverrides",void 0);
mT=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],mT);
_.F(mT,"yt-live-chat-message-renderer",function(){if(WrU===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;t3N===void 0&&(t3N=document.createElement("template"));var e=t3N;V.call(R,e.content.cloneNode(!0),B.content.firstChild);WrU=B}B=WrU;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var jMU;var Uz4;var $Y=function(){var B=_.c.apply(this,arguments)||this;B.isRemovable=!1;B.hasPrefilledText=!1;B.isInputDirty=!1;B.overCharacterLimit=!1;B.underCharacterLimit=!1;B.showErrorMessage=!1;return B};
_.l($Y,_.c);_.p=$Y.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 _.w(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.p.clearInput=function(){_.w(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(B){B=B.detail&&B.detail.characterCount;B!==void 0&&(this.characterCount=B,B!==0&&(this.isInputDirty=!0))};
_.p.onInputFocusOut=function(){this.isInputDirty=!0};
_.p.onClickCloseButton=function(){_.OI(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
$Y.prototype.handleTextInputCharCountChanged=$Y.prototype.handleTextInputCharCountChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$Y.prototype,"data",void 0);_.r([_.E({computed:"computeId(data.id)"}),_.Z("design:type",String)],$Y.prototype,"id",void 0);_.r([_.E({computed:"computeInputData(data.inputData)"}),_.Z("design:type",Object)],$Y.prototype,"inputData",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Z("design:type",Object)],$Y.prototype,"isRemovable",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Z("design:type",Object)],$Y.prototype,"hasPrefilledText",void 0);_.r([_.E({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Z("design:type",Number)],$Y.prototype,"charactersRemaining",void 0);
_.r([_.E(),_.Z("design:type",Number)],$Y.prototype,"characterCount",void 0);_.r([_.E(),_.Z("design:type",Object)],$Y.prototype,"isInputDirty",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Z("design:type",Object)],$Y.prototype,"overCharacterLimit",void 0);_.r([_.E({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Z("design:type",Object)],$Y.prototype,"underCharacterLimit",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Z("design:type",Object)],$Y.prototype,"showErrorMessage",void 0);_.r([_.R_("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],$Y.prototype,"handleTextInputCharCountChanged",null);
$Y=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],$Y);
_.F($Y,"yt-live-chat-poll-editor-input",function(){if(Uz4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;jMU===void 0&&(jMU=document.createElement("template"));var e=jMU;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Uz4=B}B=Uz4;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var N5N;var Ghj;var yY7={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Cm=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("web_button_rework_with_live");B.closeButtonOverrides={iconPosition:"icon-only"};B.startButtonOverrides={style:"mono",type:"filled"};B.addOptionButtonOverrides={style:"mono",type:"text"};return B};
_.l(Cm,_.c);_.p=Cm.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 B;_.D((B=this.data)==null?void 0:B.startButton,_.Ii)&&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 B=0;B<this.pollEditorInfoWithDefaults.minPollOptions;B++)this.addPollOptionData()};
_.p.getIsValidPoll=function(){var B=this;if(!this.pollEditorInfoWithDefaults)return!1;var R=this.pollEditorInfoWithDefaults,V=R.minPollOptionChars,e=R.maxPollOptionChars,X=R.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>R.maxPollQuestionChars)return!1;R=_.w(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(R).every(function(Y,t){Y=Y.characterCount;!Y&&X[t]&&(Y=B.ytRendererBehavior.getSimpleString(X[t]).length);return Y!==void 0&&Y>=V&&Y<=e})};
_.p.isValidPollChanged=function(){var B;_.D((B=this.data)==null?void 0:B.startButton,_.Ii)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.p.addPollOptionData=function(){var B=this.pollEditorInfoWithDefaults,R=B.maxPollOptionChars,V=B.optionPlaceholderText,e=B.customOptionPlaceholderText,X=B.pollOptionData;this.currentNumPollOptions>=B.maxPollOptions||(B={liveChatPollOptionInput:{inputData:{placeholder:e[this.currentNumPollOptions]||V,maxCharacterLimit:R},maxCharacterLimit:R,minCharacterLimit:B.minPollOptionChars,hasPrefilledText:!!e[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=B.minPollOptions}},X.charCountErrorText&&
(B.liveChatPollOptionInput.charCountErrorText=X.charCountErrorText),X.charsRemainingAltLabel&&(B.liveChatPollOptionInput.charsRemainingAltLabel=X.charsRemainingAltLabel),X.removeOptionAltText&&(B.liveChatPollOptionInput.removeOptionAltText=X.removeOptionAltText),this.push("pollOptionsData",B),X=Array.from(_.w(_.w(this.hostElement).querySelector("#poll-options")).children),X.forEach(function(Y,t){Y.polymerController.set("data.id",t)}),_.w(X[X.length-1]).querySelector("#input").focus())};
_.p.getPollOptionInputValues=function(){var B=this,R=[],V=_.w(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),e=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(V).forEach(function(X,Y){var t=null;X=X.getLiveChatRichMessageInput();var b;(X==null?0:(b=X.textSegments)==null?0:b.length)?t=_.KD(X):e[Y]&&(t=B.formattedStringToLiveChatRichMessageInput(e[Y]));R.push(t)});
return R};
_.p.requestCreateAndStartPoll=function(B){var R=this.getPollOptionInputValues();if(!R.some(function(e){return!e})){R={optionText:R};
var V=_.w(_.w(this.hostElement).querySelector("#poll-question")).firstChild;V&&V.liveChatRichMessageInput&&(R.questionText=_.KD(V.liveChatRichMessageInput));_.VD(this.hostElement,[B,R])}};
_.p.selectedChanged=function(){if(this.selected){var B=_.w(_.w(this.hostElement).querySelector("#start-button")).firstElementChild;if(B){var R;(R=_.w(B).querySelector("#button")||_.P$(B).querySelector("button"))==null||R.focus()}}};
_.p.handleTextInputChanged=function(B){var R;((R=B.target)==null?void 0:R.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=B.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.p.handleStartButtonAction=function(B){B.detail.actionName==="yt-service-request"&&(B.stopPropagation(),(B=B.detail.args[1])&&this.requestCreateAndStartPoll(B))};
_.p.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.p.handleServiceRequestCompleted=function(B){this.createPollRequestInFlight=!1;(B=B.detail&&B.detail.data)&&B.success&&(_.OI(this.hostElement,"picker-cancelled"),_.oF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.p.onCloseClick=function(){_.OI(this.hostElement,"picker-cancelled");_.oF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.p.handlePollEditorInputClosed=function(B){var R=this.pollOptionsData.findIndex(function(V){return V.liveChatPollOptionInput.id===B.detail.id});
this.splice("pollOptionsData",R,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 B=_.w(_.w(this.hostElement).querySelector("#poll-question")).firstChild;B&&B.setLiveChatRichMessageInput(null);if(B=_.w(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){B=_.h(Array.from(B));for(var R=B.next();!R.done;R=B.next())R.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.p.formattedStringToLiveChatRichMessageInput=function(B){return B.simpleText?{text_segments:[B.simpleText]}:{text_segments:B.runs}};
_.mh.Object.defineProperties(Cm.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(yY7,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Cm.prototype.onPickerCancelled=Cm.prototype.onPickerCancelled;Cm.prototype.handlePollEditorInputClosed=Cm.prototype.handlePollEditorInputClosed;Cm.prototype.handleServiceRequestCompleted=Cm.prototype.handleServiceRequestCompleted;Cm.prototype.handleServiceRequestSent=Cm.prototype.handleServiceRequestSent;Cm.prototype.handleTextInputChanged=Cm.prototype.handleTextInputChanged;Cm.prototype.selectedChanged=Cm.prototype.selectedChanged;Cm.prototype.isValidPollChanged=Cm.prototype.isValidPollChanged;
Cm.prototype.shouldInitializePollChanged=Cm.prototype.shouldInitializePollChanged;Cm.prototype.dataChanged=Cm.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Cm.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Cm.prototype,"modern",void 0);
_.r([_.E(),_.Z("design:type",Object)],Cm.prototype,"closeButtonOverrides",void 0);_.r([_.E(),_.Z("design:type",Object)],Cm.prototype,"startButtonOverrides",void 0);_.r([_.E(),_.Z("design:type",Object)],Cm.prototype,"addOptionButtonOverrides",void 0);_.r([_.E({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Z("design:type",String)],Cm.prototype,"id",void 0);_.r([_.E({value:function(){return[]}}),
_.Z("design:type",Array)],Cm.prototype,"pollOptionsData",void 0);_.r([_.K("pollEditorInfoWithDefaults"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Cm.prototype,"pollQuestionData",null);_.r([_.E({value:0}),_.Z("design:type",Number)],Cm.prototype,"pollQuestionCharacterCount",void 0);_.r([_.K("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Cm.prototype,"pollQuestionCharactersRemaining",null);
_.r([_.E({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Z("design:type",Boolean)],Cm.prototype,"overQuestionCharacterLimit",void 0);_.r([_.K("data.pollEditorInfo"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Cm.prototype,"pollEditorInfoWithDefaults",null);_.r([_.E({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Z("design:type",Number)],Cm.prototype,"currentNumPollOptions",void 0);
_.r([_.E({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Cm.prototype,"hasMaxNumPollOptions",void 0);_.r([_.K("pollEditorInfoWithDefaults","pollOptionsData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Cm.prototype,"shouldInitializePoll",null);_.r([_.E(),_.Z("design:type",Object)],Cm.prototype,"isValidPoll",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Cm.prototype,"createPollRequestInFlight",void 0);_.r([_.E(),_.Z("design:type",Object)],Cm.prototype,"selected",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Z("design:type",Boolean)],Cm.prototype,"showQuestionErrorMessage",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cm.prototype,"dataChanged",null);_.r([_.XX("shouldInitializePoll"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cm.prototype,"shouldInitializePollChanged",null);_.r([_.XX("isValidPoll"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cm.prototype,"isValidPollChanged",null);
_.r([_.XX("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cm.prototype,"selectedChanged",null);_.r([_.R_("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Cm.prototype,"handleTextInputChanged",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cm.prototype,"handleServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Cm.prototype,"handleServiceRequestCompleted",null);
_.r([_.R_("yt-live-chat-poll-editor-input-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Cm.prototype,"handlePollEditorInputClosed",null);_.r([_.R_("picker-cancelled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cm.prototype,"onPickerCancelled",null);Cm=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Cm);
_.F(Cm,"yt-live-chat-poll-editor-panel-renderer",function(){if(Ghj===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;N5N===void 0&&(N5N=document.createElement("template"));var e=N5N;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Ghj=B}B=Ghj;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var SKN;var HB4;var PY=function(){return _.c.apply(this,arguments)||this};
_.l(PY,_.c);PY.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
PY.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.mh.Object.defineProperties(PY.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var B,R;return(B=this.data)==null?void 0:(R=B.title)==null?void 0:R.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var B;return _.dl((B=this.data)==null?void 0:B.onTapCommand)}}});
_.r([_.v(_.VR.YtEndpointBehavior),_.Z("design:type",Object)],PY.prototype,"ytEndpointBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],PY.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PY.prototype,"itemId",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],PY.prototype,"hasPromotion",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PY.prototype,"innertubeCommand",null);PY=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],PY);
_.F(PY,"yt-live-chat-product-picker-panel-item-view-model",function(){if(HB4===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;SKN===void 0&&(SKN=document.createElement("template"));var e=SKN;V.call(R,e.content.cloneNode(!0),B.content.firstChild);HB4=B}B=HB4;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var M34;var kh6;var nm=function(){var B=_.c.apply(this,arguments)||this;B.id="product-picker";B.selected=!1;B.closeButtonId="close-button";B.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return B};
_.l(nm,_.c);_.p=nm.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 B=_.w(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");B.length&&B[0].focus()};
_.p.onCloseBuyFlow=function(){_.OI(this.hostElement,"picker-cancelled")};
_.p.onCloseClick=function(){_.OI(this.hostElement,"picker-cancelled");var B;((B=this.data)==null?0:B.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.D(this.data.closeButton,_.Tr))};
_.p.onCloseEngageWithAudienceEditorPanels=function(){_.OI(this.hostElement,"picker-cancelled")};
nm.prototype.observeSelected=nm.prototype.observeSelected;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],nm.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],nm.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nm.prototype,"id",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nm.prototype,"selected",void 0);_.r([_.E(),_.Z("design:type",Object)],nm.prototype,"closeButtonId",void 0);_.r([_.XX("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nm.prototype,"observeSelected",null);
nm=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],nm);
_.F(nm,"yt-live-chat-product-picker-panel-view-model",function(){if(kh6===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;M34===void 0&&(M34=document.createElement("template"));var e=M34;V.call(R,e.content.cloneNode(!0),B.content.firstChild);kh6=B}B=kh6;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Dz7;var fi4;var ub=function(){var B=_.c.apply(this,arguments)||this;B.iconId="";B.icon="";B.disabled=!1;B.systemIcons=_.k("kevlar_system_icons");return B};
_.l(ub,_.c);_.p=ub.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.p.computeIconId=function(B){return B&&B.icon&&B.icon.iconType?B.icon.iconType.toLowerCase():""};
_.p.computeIcon=function(B){return B&&B.icon&&B.icon.iconType?(B=B.icon.iconType.toLowerCase(),(B.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+B):""};
_.p.computeDisabled=function(B){return!!B};
_.p.computeCommand=function(B,R){return R?void 0:B};
_.p.computeTooltip=function(B,R){return R&&B?B:""};
_.p.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.r([_.v(_.VR.YtEndpointBehavior),_.Z("design:type",Object)],ub.prototype,"ytEndpointBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ub.prototype,"data",void 0);_.r([_.E({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],ub.prototype,"iconId",void 0);
_.r([_.E({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],ub.prototype,"icon",void 0);_.r([_.E({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Z("design:type",Object)],ub.prototype,"disabled",void 0);_.r([_.E({computed:"computeCommand(data.command, disabled)"}),_.Z("design:type",Object)],ub.prototype,"command",void 0);_.r([_.E({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Z("design:type",String)],ub.prototype,"tooltip",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ub.prototype,"systemIcons",void 0);ub=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],ub);
_.F(ub,"yt-live-chat-product-button-renderer",function(){if(fi4===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Dz7===void 0&&(Dz7=document.createElement("template"));var e=Dz7;V.call(R,e.content.cloneNode(!0),B.content.firstChild);fi4=B}B=fi4;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var lio;var zcz;var Oa=function(){var B=_.c.apply(this,arguments)||this;B.selected=!1;B.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return B};
_.l(Oa,_.c);_.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(B){return B.id||""};
_.p.onCloseClick=function(){_.OI(this.hostElement,"picker-cancelled")};
_.p.observeSelected=function(){this.selected&&this.hostElement.focus();var B=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");B.length&&B[0].focus()};
_.p.onCloseBuyFlow=function(){_.OI(this.hostElement,"picker-cancelled")};
_.p.onCloseEngageWithAudienceEditorPanels=function(){_.OI(this.hostElement,"picker-cancelled")};
Oa.prototype.observeSelected=Oa.prototype.observeSelected;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Oa.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Oa.prototype,"data",void 0);
_.r([_.E({computed:"computeId(data)",reflectToAttribute:!0}),_.Z("design:type",String)],Oa.prototype,"id",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Oa.prototype,"selected",void 0);_.r([_.XX("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oa.prototype,"observeSelected",null);Oa=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Oa);
_.F(Oa,"yt-live-chat-product-picker-renderer",function(){if(zcz===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;lio===void 0&&(lio=document.createElement("template"));var e=lio;V.call(R,e.content.cloneNode(!0),B.content.firstChild);zcz=B}B=zcz;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var aiz;var dzr;var wNm;var T5n;var og=function(){return _.c.apply(this,arguments)||this};
_.l(og,_.c);og.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()};
og.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
og.prototype.created=function(){this.ids={background:_.dw(),maskOne:_.dw(),maskTwo:_.dw(),gradient:_.dw(),largeBackground:_.dw(),largeGradientOne:_.dw(),largeGradientTwo:_.dw(),largeGradientPath:_.dw()}};
og.prototype.maybeLoadAnimationBackground=og.prototype.maybeLoadAnimationBackground;_.r([_.E({value:!1}),_.Z("design:type",Boolean)],og.prototype,"useLargeBackground",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],og.prototype,"useAnimationBackground",void 0);_.r([_.E({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Z("design:type",Boolean)],og.prototype,"useRegularBackground",void 0);
_.r([_.E(),_.Z("design:type",Object)],og.prototype,"ids",void 0);_.r([_.E(),_.Z("design:type",Object)],og.prototype,"lottieAnimation",void 0);_.r([_.Yp("#animation-background"),_.Z("design:type",HTMLDivElement)],og.prototype,"animationBackground",void 0);_.r([_.XX("useAnimationBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],og.prototype,"maybeLoadAnimationBackground",null);
og=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],og);
_.F(og,"yt-live-interactivity-component-background",function(){if(T5n===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;wNm===void 0&&(wNm=document.createElement("template"));var e=wNm;V.call(R,e.content.cloneNode(!0),B.content.firstChild);T5n=B}B=T5n;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Bj=function(){var B=_.c.apply(this,arguments)||this;B.characterCount=0;B.showInputErrorMessage=!1;B.startQnaRequestInFlight=!1;B.modern=_.k("web_button_rework_with_live");B.buttonOverrides={style:"mono",type:"filled"};B.closeButtonOverrides={iconPosition:"icon-only"};B.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return B};
_.l(Bj,_.c);_.p=Bj.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(B){var R,V,e,X,Y=(V=_.D(this==null?void 0:(R=this.data)==null?void 0:R.creatorCallForQuestions,hp6))==null?void 0:(e=V.inputField)==null?void 0:(X=e.liveChatTextInputFieldRenderer)==null?void 0:X.maxCharacterLimit,t,b;Y!=null&&(B==null?void 0:(t=B.detail)==null?void 0:t.characterCount)!=null&&_.D(this==null?void 0:(b=this.data)==null?void 0:b.startButton,_.Ii)&&(R=B.detail.characterCount>Y,this.set("data.startButton.buttonRenderer.isDisabled",B.detail.characterCount===
0||R),this.showInputErrorMessage=R)};
_.p.onCloseClick=function(){_.OI(this.hostElement,"picker-cancelled");_.oF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.onPickerCancelled=function(){var B=_.w(this.hostElement).querySelector("#qna-creator-text-input-field");B&&B.setLiveChatRichMessageInput(null)};
_.p.handleOpenQnaStartPanel=function(){var B=_.w(this.hostElement).querySelector("#qna-creator-text-input-field");B&&B.focus()};
_.p.handleStartButtonAction=function(B){var R=this;if(B.detail.actionName==="yt-service-request"&&(B.stopPropagation(),B=B.detail.args[1])){var V=_.w(this.hostElement).querySelector("#qna-creator-text-input-field"),e;(V==null?0:(e=V.liveChatRichMessageInput)==null?0:e.textSegments)&&V.liveChatRichMessageInput.textSegments.length!==0&&(e={rich_message:_.KD(V.liveChatRichMessageInput)},_.VD(this.hostElement,[B,e]).then(function(){_.OI(R.hostElement,"picker-cancelled")}))}};
_.p.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.p.handleServiceRequestCompleted=function(B){var R;B=B==null?void 0:(R=B.detail)==null?void 0:R.data;(B==null?0:B.actions)&&B.actions.length>0?this.startQnaRequestInFlight=!1:_.oF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Bj.prototype.handleServiceRequestError=Bj.prototype.handleServiceRequestError;Bj.prototype.handleServiceRequestCompleted=Bj.prototype.handleServiceRequestCompleted;Bj.prototype.handleServiceRequestSent=Bj.prototype.handleServiceRequestSent;Bj.prototype.onPickerCancelled=Bj.prototype.onPickerCancelled;Bj.prototype.onCharacterCountChanged=Bj.prototype.onCharacterCountChanged;_.r([_.E(),_.Z("design:type",Object)],Bj.prototype,"characterCount",void 0);
_.r([_.E(),_.Z("design:type",Object)],Bj.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Bj.prototype,"showInputErrorMessage",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Bj.prototype,"startQnaRequestInFlight",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Bj.prototype,"modern",void 0);_.r([_.E(),_.Z("design:type",Object)],Bj.prototype,"buttonOverrides",void 0);
_.r([_.E(),_.Z("design:type",Object)],Bj.prototype,"closeButtonOverrides",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],Bj.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.v(_.xE.YtLiveChatItemBehavior),_.Z("design:type",_.Lj)],Bj.prototype,"ytLiveChatItemBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Bj.prototype,"ytActionHandlerBehavior",void 0);_.r([_.R_("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Bj.prototype,"onCharacterCountChanged",null);_.r([_.R_("picker-cancelled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Bj.prototype,"onPickerCancelled",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Bj.prototype,"handleServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Bj.prototype,"handleServiceRequestCompleted",null);
_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Bj.prototype,"handleServiceRequestError",null);Bj=_.r([_.A({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Bj);
_.F(Bj,"yt-live-chat-qna-start-panel-renderer",function(){if(dzr===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;aiz===void 0&&(aiz=document.createElement("template"));var e=aiz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);dzr=B}B=dzr;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var xze;var Lr7;var Rg=function(){return _.c.apply(this,arguments)||this};
_.l(Rg,_.c);Rg.prototype.dismiss=function(){_.OI(this.hostElement,"yt-live-chat-error-message-dismiss")};
Rg.prototype.edit=function(){_.OI(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.r([_.E(),_.Z("design:type",Object)],Rg.prototype,"data",void 0);Rg=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Rg);
_.F(Rg,"yt-live-chat-text-actions-error-message-renderer",function(){if(Lr7===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;xze===void 0&&(xze=document.createElement("template"));var e=xze;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Lr7=B}B=Lr7;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var vsn;var Kri;var Iii;var Eso;var Vz=function(){var B=_.c.apply(this,arguments)||this;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.newnessDotEligible=!1;return B};
_.l(Vz,_.c);Vz.prototype.sendReaction=function(){var B,R,V=((B=this.data)==null?void 0:B.emojiId)||((R=this.data)==null?void 0:R.emoteId),e;V&&((e=this.data)==null?0:e.shouldTriggerAnimation)&&_.oF(this.hostElement,"yt-create-user-reaction-animation",[V]);var X;(B=_.dl((X=this.data)==null?void 0:X.onTap))&&_.Xc(B,this.hostElement);this.showNewnessDot&&_.oF(this.hostElement,"yt-hide-newness-dot")};
Vz.prototype.onClick=function(B){(!B||B.clientX||B.clientY)&&this.sendReaction()};
Vz.prototype.onKeyDown=function(B){B.key!=="Enter"&&B.key!==" "||B.repeat||this.sendReaction()};
_.mh.Object.defineProperties(Vz.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var B,R;return!!(((B=this.data)==null?0:B.emojiId)||((R=this.data)==null?0:R.emoteId))}}});
_.r([_.E(),_.Z("design:type",Object)],Vz.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Vz.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],Vz.prototype,"newnessDotEligible",void 0);_.r([_.K("data.maybeShowNewnessDot"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Vz.prototype,"showNewnessDot",null);_.r([_.K("data.emojiId","data.emoteId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Vz.prototype,"useYtImage",null);
Vz=_.r([_.fJ({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Vz);
_.F(Vz,"yt-reaction-control-panel-button-view-model",function(){if(Eso===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Iii===void 0&&(Iii=document.createElement("template"));var e=Iii;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Eso=B}B=Eso;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var QM2;var qK4;var es=function(){var B=_.c.apply(this,arguments)||this;B.reactionControlPanelExpanded=!1;B.isDarkTheme=document.documentElement.hasAttribute("dark");B.newnessDotEligible=!1;return B};
_.l(es,_.c);_.p=es.prototype;_.p.expandedButtonsChanged=function(){var B,R;_.o_(this.hostElement,{"--expanded-buttons-height":((R=(B=this.expandedButtonsData)==null?void 0:B.length)!=null?R: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 B=this;this.collapseTimer=setTimeout(function(){B.reactionControlPanelExpanded=!1},500)};
_.p.onFocusIn=function(){this.onMouseEnter()};
_.p.onFocusOut=function(){this.onMouseLeave()};
_.p.onCollapsedButtonFocusIn=function(){var B=this;setTimeout(function(){var R;(R=B.expandedButtons.querySelector("button"))==null||R.focus()},100)};
_.p.onCollapsedButtonFocusOut=function(B){B.stopPropagation()};
_.mh.Object.defineProperties(es.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var B,R;return _.M_.unsafeClone((B=this.liveReactionsData)==null?void 0:B.emojiButtonData)||((R=this.data)==null?void 0:R.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var B;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((B=this.data)==null||!B.maybeShowNewnessDot)}}});
es.prototype.expandedButtonsChanged=es.prototype.expandedButtonsChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],es.prototype,"ytLiveChatReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],es.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],es.prototype,"reactionControlPanelExpanded",void 0);_.r([_.E({selectorArgs:["data.liveReactionsDataEntityKey"],selector:rV4}),_.Z("design:type",Object)],es.prototype,"liveReactionsData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],es.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],es.prototype,"newnessDotEligible",void 0);
_.r([_.K("liveReactionsData","data.expandedButtons"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],es.prototype,"expandedButtonsData",null);_.r([_.K("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.E({reflectToAttribute:!0}),_.Z("design:type",Object),_.Z("design:paramtypes",[])],es.prototype,"showNewnessDot",null);_.r([_.Yp("#expanded-buttons"),_.Z("design:type",HTMLElement)],es.prototype,"expandedButtons",void 0);
_.r([_.XX("expandedButtonsData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],es.prototype,"expandedButtonsChanged",null);es=_.r([_.fJ({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],es);
_.F(es,"yt-reaction-control-panel-view-model",function(){if(qK4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;QM2===void 0&&(QM2=document.createElement("template"));var e=QM2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);qK4=B}B=qK4;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var XL=new _.vf("yt-live-chat"),cYj=Date.parse("2024-7-24"),pz=function(){var B=_.c.apply(this,arguments)||this;B.emojiManager=_.Tx;B.newnessDotEligible=!1;B.newnessDotImpressionCounted=!1;B.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return B};
_.l(pz,_.c);_.p=pz.prototype;_.p.emojiCustomizationEnabledChanged=function(){var B;((B=this.data)==null?0:B.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((B=XL.getCreationTime("emoji-customization-count"))&&B<cYj&&XL.set("emoji-customization-count","0"),B=Number(XL.get("emoji-customization-count"))||0,B<3&&(this.newnessDotEligible=!0,XL.set("emoji-customization-count",(B+1).toString())),this.newnessDotImpressionCounted=!0)};
_.p.hideNewnessDot=function(){this.newnessDotEligible=!1;XL.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.p.handleReactionsMute=function(B){var R=_.TE(),V=_.kB(206221),e={checkboxData:{state:B?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};R&&_.iF(R,V,e);this.reactionsMuted=B};
_.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}}};
_.mh.Object.defineProperties(pz.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var B;return(!((B=this.liveReactionsData)==null||!B.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
pz.prototype.liveReactionsSettingChanged=pz.prototype.liveReactionsSettingChanged;pz.prototype.emojiCustomizationEnabledChanged=pz.prototype.emojiCustomizationEnabledChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dM),_.Z("design:type",Object)],pz.prototype,"ytLiveChatReduxBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],pz.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],pz.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",_.ao)],pz.prototype,"emojiManager",void 0);_.r([_.E(),_.Z("design:type",Object)],pz.prototype,"newnessDotEligible",void 0);_.r([_.E(),_.Z("design:type",Object)],pz.prototype,"newnessDotImpressionCounted",void 0);
_.r([_.E({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:gCr}),_.Z("design:type",Boolean)],pz.prototype,"liveReactionsSetting",void 0);_.r([_.E({selectorArgs:["data.liveReactionsDataEntityKey"],selector:rV4}),_.Z("design:type",Object)],pz.prototype,"liveReactionsData",void 0);_.r([_.E({value:function(){var B=_.k("enable_lwe_web_mute"),R=XL.get("allow-reactions");return R===void 0?!1:!R&&B}}),
_.Z("design:type",Boolean)],pz.prototype,"reactionsMuted",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pz.prototype,"liveReactionsEnabled",null);_.r([_.XX("data.emojiCustomizationEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pz.prototype,"emojiCustomizationEnabledChanged",null);
_.r([_.XX("liveReactionsEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pz.prototype,"liveReactionsSettingChanged",null);pz=_.r([_.fJ({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],pz);
_.F(pz,"yt-reaction-control-panel-overlay-view-model",function(){if(Kri===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;vsn===void 0&&(vsn=document.createElement("template"));var e=vsn;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Kri=B}B=Kri;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var AY4={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(B){var R=this.$.pickers.selected;if(R){_.w(this.hostElement).removeAttribute(R+"-open");var V="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(V="#picker-buttons",R==="emoji"&&_.w(this.hostElement).querySelector("#emoji-picker-button")&&(V="#emoji-picker-button"));if(V=_.w(this.hostElement).querySelector(V).querySelector("#"+R))V.active=!1}V=B;R==B&&(V=null);R!=B&&
_.w(this.hostElement).setAttribute(B+"-open","");this.$.pickers.selected=V;_.oF(this.hostElement,"yt-live-chat-picker-changed",[V])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Yw=function(){var B=_.c.apply(this,arguments)||this;B.numSentMessages=0;B.timeoutDurationMs=0;B.timeoutMs=0;B.lastTimeoutTimeMs=0;B.pendingMessageId="";B.hasFiredInitialFocusActions=!1;B.isBeforeFocusEnabled=!0;B.id="";B.characterCount=0;B.maxCharacterLimit=0;B.remainingCharacterCount=0;B.inputExpanded=!1;B.buttonOverrides={iconPosition:"icon-only"};B.inReplyPanel=!1;B.countdownRatio=0;B.isTooltipVisible=!1;B.tooltipTimeout=1E4;B.systemIcons=_.k("kevlar_system_icons");B.tallerEmojiPicker=_.k("live_chat_taller_emoji_picker");
B.blockSendMessageWithCountdown=!_.k("live_chat_enable_send_button_in_slow_mode");B.sendReplyMessageInFlight=!1;B.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"};B.onResize=function(){B.maybeToggleCharacterCount()};
return B};
_.l(Yw,_.c);_.p=Yw.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 B=this,R,V,e,X;return _.W(function(Y){if(B.sendDisabled)return Y.return();B.isTooltipVisible&&_.oF(B.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(B.data.sendButton&&B.data.sendButton.buttonRenderer){B.input.completeEmojis();R=B.data.sendButton.buttonRenderer.serviceEndpoint;if(!R)return Y.return();e=((V=_.D(R,_.dE5))==null?void 0:V.clientIdPrefix)||"";X={client_message_id:e+String(B.numSentMessages++),rich_message:_.KD(B.input.liveChatRichMessageInput)};
B.pendingMessageId=X.client_message_id;B.inReplyPanel&&(B.sendReplyMessageInFlight=!0);_.VD(B.hostElement,[R,X]);B.input.setLiveChatRichMessageInput(null)}_.b3(Y)})};
_.p.handleSendButtonAction=function(B){B.detail.actionName==="yt-service-request"&&(B.stopPropagation(),this.sendMessage())};
_.p.onSendCompleted=function(B,R){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(B=this.get("timeoutDurationUsec",R.data))&&this.handleTimeout(Number(B)/1E3);this.errorMessage=this.get("errorMessage",R.data);this.pendingMessageId=""};
_.p.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.oF(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.p.handlePickerButtonToggle=function(B){B=B.detail.targetId;this.ytPickerBehavior.togglePicker_(B);if(B==="emoji")this.input.focus();else if(B==="qna-start-panel"){var R,V;(R=_.w(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(V=R.querySelector("#qna-creator-text-input-field"))==null||V.focus()}};
_.p.onComponentReplaced=function(B){var R,V;B.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((R=B.replacement.liveChatMessageInputRenderer)==null?0:(V=R.headerRenderer)==null?0:V.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.p.onEmojiSelect=function(B){this.input.focus();this.input.insertEmoji(B.detail)};
_.p.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.p.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.oF(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.oF(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.p.onOpenPopupAction=function(B,R){var V=this;R===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.oF(V.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 B=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",B>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.p.computeId=function(){return this.data&&this.data.targetId||""};
_.p.computeSendDisabled=function(B,R,V,e){B=!!(this.blockSendMessageWithCountdown&&V||!B||R&&B>R||e);(R=_.w(this.hostElement).querySelector("#send-button"))&&R.children.length&&(R.children[0].disabled=B);return B};
_.p.handleTimeout=function(B){this.timeoutDurationMs=this.timeoutMs=B;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.p.updateTimeout=function(B){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(B-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=B,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.p.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.p.onErrorMessageEdit=function(B){this.input.setLiveChatRichMessageInput(B.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.p.errorMessageChanged=function(){var B=this;_.xp(function(){_.oF(B.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.p.computeAuthorNameColor=function(B){var R;if(_.k("live_chat_author_name_color_usernames")&&(B==null?0:(R=B.authorName)==null?0:R.simpleText))return _.LuK(_.v4o(B.authorName.simpleText));if(_.k("live_chat_seed_color_usernames")&&(B==null?0:B.authorSeedColorArgb))return _.LuK(_.oT(B.authorSeedColorArgb));if(_.k("live_chat_colored_usernames"))return"#cc0000";var V;return _.k("live_chat_simple_color_usernames")&&(B==null?0:(V=B.authorName)==null?0:V.simpleText)&&(B==null?0:B.authorUsernameColorLight)&&
(B==null?0:B.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.oT(B.authorUsernameColorDark):_.oT(B.authorUsernameColorLight):""};
_.p.onIsTooltipVisibleChanged=function(){var B=_.w(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){B.hidden=!1;B.setAttribute("role","alert")},0):(B.hidden=!0,B.removeAttribute("role"))};
_.p.onFocusedChanged=function(B){this.inputFocused=B.detail.value};
_.mh.Object.defineProperties(Yw.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 B;return!((B=this.data)==null||!B.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:(R=B.pickers)==null?void 0:R.find(function(V){return V.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var B=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return B?this.ytRendererBehavior.getSimpleString(B):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Yw.prototype.onIsTooltipVisibleChanged=Yw.prototype.onIsTooltipVisibleChanged;Yw.prototype.errorMessageChanged=Yw.prototype.errorMessageChanged;Yw.prototype.onErrorMessageEdit=Yw.prototype.onErrorMessageEdit;Yw.prototype.onErrorMessageDismiss=Yw.prototype.onErrorMessageDismiss;Yw.prototype.focusChanged=Yw.prototype.focusChanged;Yw.prototype.characterCountChanged=Yw.prototype.characterCountChanged;Yw.prototype.onEmojiSelect=Yw.prototype.onEmojiSelect;Yw.prototype.handlePickerButtonToggle=Yw.prototype.handlePickerButtonToggle;
Yw.prototype.onSendError=Yw.prototype.onSendError;Yw.prototype.onSendCompleted=Yw.prototype.onSendCompleted;Yw.prototype.sendMessage=Yw.prototype.sendMessage;Yw.prototype.dataChanged=Yw.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Yw.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(AY4.YtPickerBehavior),_.Z("design:type",Object)],Yw.prototype,"ytPickerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.wM.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],Yw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"hasFiredInitialFocusActions",void 0);
_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"isBeforeFocusEnabled",void 0);_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"data",void 0);_.r([_.E({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",Object)],Yw.prototype,"id",void 0);_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"characterCount",void 0);_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"maxCharacterLimit",void 0);
_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"remainingCharacterCount",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Yw.prototype,"inputExpanded",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Yw.prototype,"inputFocused",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Yw.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.r([_.E(),_.Z("design:type",_.Io)],Yw.prototype,"participantsManager",void 0);
_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"buttonOverrides",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Yw.prototype,"inReplyPanel",void 0);_.r([_.K("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Yw.prototype,"sendDisabled",null);_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"countdownRatio",void 0);
_.r([_.K("countdownRatio"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Yw.prototype,"countdownStrokeDashOffset",null);_.r([_.K("countdownRatio"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Yw.prototype,"countdownActive",null);_.r([_.K("data.interactionMessage"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Yw.prototype,"hasInteractionMessage",null);
_.r([_.K("data.emojiPickerButton"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Yw.prototype,"hasEmojiPickerButton",null);_.r([_.K("data, characterCount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Yw.prototype,"showAvatar",null);_.r([_.K("data.pickers"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Yw.prototype,"hasProductPickerPanelViewModel",null);
_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"errorMessage",void 0);_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"genericErrorMessage",void 0);_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"isTooltipVisible",void 0);_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"tooltipTimeout",void 0);_.r([_.K("data.onInitialFocusCommand"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Yw.prototype,"tooltipMessage",null);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Yw.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Yw.prototype,"tallerEmojiPicker",void 0);_.r([_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Yw.prototype,"authorNameColor",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Yw.prototype,"blockSendMessageWithCountdown",void 0);_.r([_.E(),_.Z("design:type",Object)],Yw.prototype,"sendReplyMessageInFlight",void 0);
_.r([_.Yp("#input"),_.Z("design:type",_.rbT)],Yw.prototype,"input",void 0);_.r([_.Yp("#count"),_.Z("design:type",HTMLElement)],Yw.prototype,"count",void 0);_.r([_.Yp("#input-container"),_.Z("design:type",HTMLElement)],Yw.prototype,"inputContainer",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"dataChanged",null);
_.r([_.R_("yt-live-chat-send-message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],Yw.prototype,"sendMessage",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,_.r1]),_.Z("design:returntype")],Yw.prototype,"onSendCompleted",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"onSendError",null);
_.r([_.R_("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Yw.prototype,"handlePickerButtonToggle",null);_.r([_.R_("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Yw.prototype,"onEmojiSelect",null);
_.r([_.XX("characterCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"characterCountChanged",null);_.r([_.XX("inputFocused"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"focusChanged",null);_.r([_.R_("yt-live-chat-error-message-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"onErrorMessageDismiss",null);
_.r([_.R_("yt-live-chat-error-message-edit"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Yw.prototype,"onErrorMessageEdit",null);_.r([_.XX("errorMessage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"errorMessageChanged",null);_.r([_.XX("isTooltipVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yw.prototype,"onIsTooltipVisibleChanged",null);
Yw=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Yw);
_.F(Yw,"yt-live-chat-message-input-renderer",function(){if(hci===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;YKn===void 0&&(YKn=document.createElement("template"));var e=YKn;V.call(R,e.content.cloneNode(!0),B.content.firstChild);hci=B}B=hci;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var iB6;var sMm;var hi=function(){var B=_.c.apply(this,arguments)||this;B.systemIcons=_.k("kevlar_system_icons");B.firedOnClickCommand=!1;B.inReplyPanel=!1;return B};
_.l(hi,_.c);
hi.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"}}}};
hi.prototype.onButtonToggle=function(B){B.target.disabled||this.ytPickerBehavior.togglePicker_(B.detail.targetId)};
hi.prototype.onClick=function(){var B=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.oF(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return B.firedOnClickCommand=!1},5E3))};
_.mh.Object.defineProperties(hi.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:(R=B.panels)==null?void 0:R.find(function(V){return V.liveChatProductPickerPanelViewModel}))!==void 0}}});
hi.prototype.onButtonToggle=hi.prototype.onButtonToggle;_.r([_.v(AY4.YtPickerBehavior),_.Z("design:type",Object)],hi.prototype,"ytPickerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],hi.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],hi.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!1}),_.Z("design:type",Object)],hi.prototype,"firedOnClickCommand",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],hi.prototype,"inReplyPanel",void 0);_.r([_.K("data.pickers"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hi.prototype,"hasProductPickerPanelViewModel",null);
_.r([_.R_("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],hi.prototype,"onButtonToggle",null);hi=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],hi);
_.F(hi,"yt-live-chat-restricted-participation-renderer",function(){if(sMm===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;iB6===void 0&&(iB6=document.createElement("template"));var e=iB6;V.call(R,e.content.cloneNode(!0),B.content.firstChild);sMm=B}B=sMm;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var ti=function(){var B=_.c.apply(this,arguments)||this;B.genericErrorMessage=_.s$("Error, try again.");B.inReplyPanel=!1;B.hideBorder=!1;return B};
_.l(ti,_.c);ti.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}}}}}};
_.mh.Object.defineProperties(ti,{template:{configurable:!0,enumerable:!0,get:function(){return Rcr()}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ti.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],ti.prototype,"genericErrorMessage",void 0);_.r([_.E(),_.Z("design:type",Object)],ti.prototype,"inReplyPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ti.prototype,"hideBorder",void 0);
ti=_.r([_.fJ({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],ti);_.F(ti,"yt-live-chat-engagement-panel-input-renderer",function(){return Rcr()},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Frz,rYe;Frz=_.kB(115994);rYe=_.kB(115993);_.Wj=function(B,R,V){var e=this;var X=V.dragDownAction;this.layer=0;this.JSC$19850_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return e.dragDownAction()}}}};
this.JSC$19850_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return e.dragDownAction()}}}};
this.fullscreen=!1;var Y=_.WK();_.hy(Y,Frz,this.layer);_.hy(Y,rYe,this.layer);this.dragDownAction=function(){X();_.Es(Y,{visualElement:e.fullscreen?Frz:rYe})};
this.gesture=new _.hx(B,R,this.JSC$19850_watchConfig,"pandown");this.attach()};
_.Wj.prototype.attach=function(){this.gesture.attach()};
_.Wj.prototype.detach=function(){this.gesture.detach()};
_.Wj.prototype.update=function(B){this.fullscreen=B;this.gesture.config=B?this.JSC$19850_watchFullScreenConfig:this.JSC$19850_watchConfig};var gs6={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(B){if(B&&B.length==1&&Array.isArray(B[0].loggingUrls)){B=_.M_.unsafeClone(B[0]);var R=this.macros||{},V=this.getAdModuleClient_();if(!V)return _.XT();B.loggingUrls.forEach(function(e){if(e.baseUrl){var X=e.baseUrl;var Y=R;Y=Y===void 0?{}:Y;X=V.getOptions().includes("replaceUrlMacros")?_.UL5(V,"replaceUrlMacros",{url:X,additionalMapping:Y}):X;e.baseUrl=X}},this);
B=[B]}return _.VD(this.hostElement,B)},
getAdModuleClient_:function(){var B=_.Pr(this);return B?(B=B.getPlayer())?new _.jF(B):null:null}}]};var ZBn;var bB=function(){var B=_.c.apply(this,arguments)||this;B.isCollapsed=!1;B.modernPanels=_.k("kevlar_watch_modern_panels");B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return B};
_.l(bB,_.c);_.p=bB.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 B=this.get("data.donateButton.buttonRenderer.command");if(B){var R=_.TE(),V=this.get("data.donateButton.buttonRenderer.trackingParams");R&&V&&_.iF(R,_.U5(V));this.ytOpenPopupBehavior.openPopup(B)}};
_.p.onShowMore=function(){this.isCollapsed=!1;var B=_.TE(),R=this.get("data.expandButton.buttonRenderer.trackingParams");B&&R&&_.iF(B,_.U5(R))};
_.p.onShowLess=function(){this.isCollapsed=!0};
_.p.dataChanged=function(){_.o_(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.p.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.p.handleUpdate=function(B){if(B=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",B))this.set("data.startLabel",B.startLabel),this.set("data.endLabel",B.endLabel),this.set("data.progress",B.progress),this.set("data.amountRaisedLabel",B.amountRaisedLabel),this.dataChanged()};
_.p.handleOpenPopupAction=function(B){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",B)&&_.oF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.p.computeHeaderBackgroundUrl=function(B,R){if(B)return R?B.headerBackgroundDarkUrl:B.headerBackgroundUrl};
_.p.isProgressBarVisible=function(B){return!(!B||B.progress===void 0)};
_.p.headerBackgroundClass=function(){return _.vE("HTML_DIR")==="rtl"?"flip":""};
bB.prototype.dataChanged=bB.prototype.dataChanged;_.r([_.v(_.Ro.YtOpenPopupBehavior),_.Z("design:type",Object)],bB.prototype,"ytOpenPopupBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],bB.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],bB.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],bB.prototype,"isCollapsed",void 0);_.r([_.E({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Z("design:type",String)],bB.prototype,"headerBackgroundUrl",void 0);_.r([_.E(),_.Z("design:type",Boolean)],bB.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bB.prototype,"modernPanels",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bB.prototype,"dataChanged",null);bB=_.r([_.A({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],bB);
_.F(bB,"ytd-donation-shelf-renderer",function(){if(ZBn!==void 0)return ZBn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ZBn=B},{mode:1});var mzi;var Ji=function(){return _.c.apply(this,arguments)||this};
_.l(Ji,_.c);_.r([_.E(),_.Z("design:type",Object)],Ji.prototype,"data",void 0);Ji=_.r([_.A({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Ji);
_.F(Ji,"ytd-donation-unavailable-renderer",function(){if(mzi!==void 0)return mzi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return mzi=B},{mode:1});var $zm;var js=function(){return _.c.apply(this,arguments)||this};
_.l(js,_.c);js.prototype.computeIconType=function(B){return B?"yt-icons:"+B.toLowerCase():null};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],js.prototype,"data",void 0);js=_.r([_.A({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],js);
_.F(js,"ytd-limited-state-message-renderer",function(){if($zm!==void 0)return $zm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return $zm=B},{mode:1});var Ctn;var Uk=function(){return _.c.apply(this,arguments)||this};
_.l(Uk,_.c);Uk.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Uk.prototype.onTap=function(B){var R=this.data&&this.data.endpoint;R&&!_.g1(_.Az(B),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.OI(this.hostElement,"yt-navigate",{endpoint:R})};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Uk.prototype,"data",void 0);Uk=_.r([_.A({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Uk);
_.F(Uk,"ytd-autotagging-metadata-renderer",function(){if(Ctn!==void 0)return Ctn;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Ctn=B},{mode:1});var Pt6;var NH=function(){return _.c.apply(this,arguments)||this};
_.l(NH,_.c);NH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],NH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],NH.prototype,"data",void 0);NH=_.r([_.A({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],NH);
_.F(NH,"ytd-autotagging-metadata-row-renderer",function(){if(Pt6!==void 0)return Pt6;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Pt6=B},{mode:1});var nsi;var u92;var GV=function(){var B=_.c.apply(this,arguments)||this;B.engagementPanelContent=!1;return B};
_.l(GV,_.c);GV.prototype.computeHasDividerLine=function(B,R){return B&&!R};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],GV.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Z("design:type",Boolean)],GV.prototype,"hasDividerLine",void 0);_.r([_.E(),_.Z("design:type",Object)],GV.prototype,"engagementPanelContent",void 0);
GV=_.r([_.A({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],GV);
_.F(GV,"ytd-metadata-row-header-renderer",function(){if(u92!==void 0)return u92;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return u92=B},{mode:1});var OBz;var yz=function(){return _.c.apply(this,arguments)||this};
_.l(yz,_.c);yz.prototype.computeHasDividerLine=function(B){return B};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yz.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Z("design:type",Boolean)],yz.prototype,"hasDividerLine",void 0);yz=_.r([_.A({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],yz);
_.F(yz,"ytd-metadata-row-renderer",function(){if(OBz!==void 0)return OBz;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return OBz=B},{mode:1});var ohi;var Ss=function(){return _.c.apply(this,arguments)||this};
_.l(Ss,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ss.prototype,"data",void 0);Ss=_.r([_.A({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Ss);
_.F(Ss,"ytd-metadata-with-image-row-renderer",function(){if(ohi!==void 0)return ohi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ohi=B},{mode:1});var BWn;var Hj=function(){var B=_.c.apply(this,arguments)||this;B.rounded=!0;B.fixie=!1;B.fullWidth=!1;return B};
_.l(Hj,_.c);_.p=Hj.prototype;_.p.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.onDataChanged=function(){var B=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(R){B.onEndpointLinkKeyPress(R)}))};
_.p.onEndpointLinkKeyPress=function(B){B.target===this.endpointLink&&B.keyCode===13&&_.OI(this.hostElement,"click")};
_.p.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var B;if((B=this.data)==null?0:B.endpoint)_.eO(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.p.onYtNavigate=function(B){this.endpointHref||(B.stopPropagation(),B.preventDefault())};
_.p.onInformationButtonContainerClick=function(B){B.target.id!=="information-button-container"&&(B.stopPropagation(),B.preventDefault())};
_.p.computeStyle=function(B){return B};
_.p.computeIsThumbnailStyle=function(B){return B==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.p.computeThumbnailWidth=function(B){switch(B){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(B){switch(B){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.mh.Object.defineProperties(Hj.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?0:B.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Hj.prototype.onYtNavigate=Hj.prototype.onYtNavigate;Hj.prototype.onClick=Hj.prototype.onClick;Hj.prototype.onDataChanged=Hj.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Hj.prototype,"componentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Hj.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],Hj.prototype,"componentStyle",void 0);_.r([_.E({computed:"computeIsThumbnailStyle(data.style)"}),_.Z("design:type",Boolean)],Hj.prototype,"isThumbnailStyle",void 0);_.r([_.E({computed:"computeThumbnailObjectFit(data.style)"}),_.Z("design:type",String)],Hj.prototype,"thumbnailObjectFit",void 0);
_.r([_.E({computed:"computeThumbnailWidth(data.style)"}),_.Z("design:type",Number)],Hj.prototype,"thumbnailWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Hj.prototype,"rounded",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Hj.prototype,"fixie",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Hj.prototype,"fullWidth",void 0);_.r([_.Yp("#endpoint-link"),_.Z("design:type",HTMLAnchorElement)],Hj.prototype,"endpointLink",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hj.prototype,"onDataChanged",null);_.r([_.K("data.endpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Hj.prototype,"endpointHref",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Hj.prototype,"onClick",null);
_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Hj.prototype,"onYtNavigate",null);Hj=_.r([_.A({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Hj);
_.F(Hj,"ytd-rich-metadata-renderer",function(){if(BWn!==void 0)return BWn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return BWn=B},{mode:_.up("kevlar_poly_si_batch_j075")?1:2});var Rhz;var MH=function(){var B=_.c.apply(this,arguments)||this;B.fixie=!1;B.fullWidth=!1;return B};
_.l(MH,_.c);MH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
MH.prototype.computeHasDividerLine=function(B){return B};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],MH.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Z("design:type",Boolean)],MH.prototype,"hasDividerLine",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],MH.prototype,"fixie",void 0);_.r([_.E(),_.Z("design:type",Object)],MH.prototype,"fullWidth",void 0);
MH=_.r([_.A({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],MH);
_.F(MH,"ytd-rich-metadata-row-renderer",function(){if(Rhz!==void 0)return Rhz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Rhz=B},{mode:1});var kw=function(){var B=_.c.apply(this,arguments)||this;B.engagementPanelContent=!1;B.fixie=!1;B.fullWidth=!1;return B};
_.l(kw,_.c);
kw.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"}}}};
kw.prototype.computeCollapsibleItems=function(B,R,V){return B===void 0||R===void 0||V===void 0||V?[]:B.slice(R)};
kw.prototype.computeAlwaysShownItems=function(B,R){return B&&B.length?B.slice(0,R):[]};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],kw.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],kw.prototype,"collapsed",void 0);
_.r([_.E({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Z("design:type",Array)],kw.prototype,"alwaysShownItems",void 0);_.r([_.E({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Z("design:type",Array)],kw.prototype,"collapsibleItems",void 0);_.r([_.E(),_.Z("design:type",Object)],kw.prototype,"engagementPanelContent",void 0);_.r([_.E(),_.Z("design:type",Object)],kw.prototype,"fixie",void 0);
_.r([_.E(),_.Z("design:type",Object)],kw.prototype,"fullWidth",void 0);kw=_.r([_.A({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],kw);
_.F(kw,"ytd-metadata-row-container-renderer",function(){if(nsi!==void 0)return nsi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return nsi=B},{mode:1});var VU6;var DT=function(){var B=_.c.apply(this,arguments)||this;B.currentPageUrl="";B.baseUrl="";B.isHiddenByUser=null;B.hidden=!1;B.showAboveScrim=!1;B.watchNextGrid=_.k("kevlar_watch_grid");B.modernButtons=_.k("web_modern_buttons");B.roundedContainer=!0;B.noBorder=!1;B.roundBackground=!_.k("live_chat_round_background_killswitch");B.overflowHideChat=_.k("live_chat_overflow_hide_chat");B.forceDarkTheme=!1;B.theaterWatchWhile=!1;B.isListeningForPlayerProgress=!1;B.JSC$19886_playerEvents=new Map;B.isFrameReady=
!1;B.player=null;B.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 B};
_.l(DT,_.c);_.p=DT.prototype;_.p.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Bz(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.p.created=function(){var B=this;this.handleIframeEventListener=function(R){B.handleIframeEvent(R)};
this.handleKeyboardEventListener=function(R){B.handleKeyboardEvent(R)};
this.JSC$19886_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19886_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19886_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19886_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19886_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(B){var R="/live_chat";this.isChatReplay()&&(R="/live_chat_replay");return _.BT(_.oj(_.On(_.q2(B),R),null),"").toString()};
_.p.dataChanged=function(){_.k("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.p.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var B=this.url;if(this.isChatReplay()&&this.player){var R=Math.floor(this.player.getProgressState().current*1E3);B=_.A4(_.q2(B),"playerOffsetMs",R.toString()).toString()}R=this.chatframe;try{var V=B==="about:blank"?_.Mql:_.ym(B),e=R.contentDocument.location,X=_.kq(V);X!==void 0&&e.replace(X)}catch(Y){R.src=B}}};
_.p.collapsedChanged=function(){_.OI(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.p.handleIframeEvent=function(B){if(B&&this.baseUrl.startsWith(B.origin)&&B.source===this.chatframe.contentWindow&&_.Xa(B.data))if(B.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(B);else if(B.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(B.data["yt-show-feedback-dialog"]){var R=_.Oz().resolve(_.uj(_.ejo));if(R){var V=B.ports,e;V&&V.length&&(e=function(){V[0].postMessage({})});
B=B.data["yt-show-feedback-dialog"];R.showFeedbackDialog(B.customProductData,B.feedbackContent,e,B.bucket)}}else if(B.data["yt-show-survey"])_.OI(this.hostElement,"yt-show-survey",B.data["yt-show-survey"]);else if(B.data["yt-purchase-membership"])_.Oz().resolve(_.oC).resolveCommand(B.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(B.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(B.data["yt-tunnel-out-live-service-request"]);else if(B.data["yt-user-activity"])_.oq();
else if(B.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(B.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(B.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(B.data["yt-open-popup"]);else if(B.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(B.data["yt-log-flow-logging-event-command"]);else if(B.data["yt-hide-live-chat"])this.onShowHideChat();else B.data["yt-report-moderation-state-log"]&&
this.player&&(R={cpn:this.player.getVideoData().cpn},_.dn("liveChatBeingModerated",R))};
_.p.attachLiveChatResponseVeTrackingParams=function(B){B=_.U5(B);var R=_.TE(),V=_.qN("liveChatRenderer.trackingParams",this.data);R&&V&&_.EV(R,_.U5(V),B)};
_.p.handleBuyflowMessages=function(B){var R=B.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,V=B.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,e=B.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.MUY(_.hn(_.c$),R.replace(/-/g,"+").replace(/_/g,"/"),function(X){B.ports[0].postMessage({success:!0,buyFlowResponse:X})},void 0,function(X){B.ports[0].postMessage({success:!1,
error:X&&X.message||"Buyflow rejected without error."})},_.UV().get("hl"),void 0,function(){B.ports[0].postMessage({closed:!0})},V,e)};
_.p.setupPlayerProgressRelay=function(){var B=this;if(!this.isListeningForPlayerProgress){var R=_.nD();R!=null&&R.getPlayerPromise&&(R.getPlayerPromise().then(function(V){B.playerApiReady(V)}),this.isListeningForPlayerProgress=!0)}};
_.p.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.p.playerApiReady=function(B){this.setPlayer(B)};
_.p.playerProgressHandler=function(){if(this.player){var B=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":B.current})}};
_.p.playerAdStartHandler=function(B){this.postToContentWindow({"yt-player-ad-start":B})};
_.p.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.p.playerStateChangeHandler=function(B){this.postToContentWindow({"yt-player-state-change":B})};
_.p.setPlayer=function(B){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19886_playerEvents);B&&(this.player=B,this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$19886_playerEvents),_.OI(this.hostElement,"player-api-ready"))};
_.p.liveChatPageUrl=function(B,R,V,e){return!V||R?"about:blank":V.liveChatRenderer?(R=_.q2(this.currentPageUrl).JSC$7940_queryData_,qPj(R),B=_.q2(B),R.add("continuation",V.liveChatRenderer.continuations[0].reloadContinuationData.continuation),V=_.Lk()==="USER_INTERFACE_THEME_DARK",(e||V)&&R.add("dark_theme","true"),_.oj(B,R),e=_.q2(B.toString()),V=e.JSC$7940_queryData_,"SESSION_INDEX"in _.xj&&(V.add("authuser",_.vE("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.xj&&V.add("pageId",_.vE("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.xj&&V.add("sdc",_.vE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),e.toString()):""};
_.p.isCollapsed=function(B,R){return R!==null?R:this.isChatReplay()||B&&B.conversationBarRenderer&&B.conversationBarRenderer.availabilityMessage?!0:B?B.liveChatRenderer?B.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.k("live_chat_hide_premiere_replay_message")||B.conversationBarRenderer&&B.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.p.isHidden=function(B,R,V){var e=R&&R.conversationBarRenderer&&R.conversationBarRenderer.availabilityMessage,X=R&&R.liveChatRenderer&&R.liveChatRenderer.showHideButton,Y=R&&R.liveChatRenderer&&R.liveChatRenderer.showButton;return V&&B&&!e&&!Y||!V&&B&&!e&&!X?!0:R&&R.liveChatRenderer&&R.liveChatRenderer.initialDisplayState?R.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.p.computeButtonOverride=function(B,R){if(B&&R)return{type:"outline"}};
_.p.setCollapsedState=function(B){_.D(B,_.jj_)&&(this.isHiddenByUser=!!_.D(B,_.jj_).collapsed,!this.isHiddenByUser&&_.k("enable_teaser_framework_web_client")&&_.oF(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.p.forwardReduxActionToIframe=function(B){this.postToContentWindow({"yt-live-chat-forward-redux-action":B})};
_.p.onLoopRangeChange=function(B){this.showAboveScrim=!(B==null||!B.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(B){this.postToContentWindow({"yt-live-chat-set-dark-theme":B})};
_.p.onLiveChatBuyFlowCallback=function(B){this.postToContentWindow({"yt-live-chat-buy-flow-callback":B})};
_.p.handleKeyboardEvent=function(B){(0,_.M_.containsValue)(Qxz,B.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:B.type,keyCode:B.keyCode}})};
_.p.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.p.postToContentWindow=function(B){if(this.isFrameReady)try{var R=window.location.protocol+"//"+window.location.host,V;(V=this.chatframe)!=null&&V.contentWindow?this.chatframe.contentWindow.postMessage(B,R):_.KE(new _.H8("Tried posting a message to an iframe with no content window",B))}catch(e){_.Tn(e)}};
_.p.shouldHideChatFrame=function(B){return B&&_.k("hide_live_chat_button_when_collapsed")};
_.mh.Object.defineProperties(DT.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.k("live_chat_overflow_hide_chat")||_.k("web_watch_chat_hide_button_killswitch"))return _.k("live_chat_overflow_hide_chat");var B,R,V,e;return!!((B=this.data)==null?0:(R=B.liveChatRenderer)==null?0:(V=R.header)==null?0:(e=V.liveChatHeaderRenderer)==null?0:e.collapseButton)}}});
DT.prototype.collapsedChanged=DT.prototype.collapsedChanged;DT.prototype.urlChanged=DT.prototype.urlChanged;DT.prototype.dataChanged=DT.prototype.dataChanged;DT.prototype.onShowHideChat=DT.prototype.onShowHideChat;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],DT.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],DT.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],DT.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.v(_.Ro.YtOpenPopupBehavior),_.Z("design:type",Object)],DT.prototype,"ytOpenPopupBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],DT.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],DT.prototype,"currentPageUrl",void 0);
_.r([_.E({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Z("design:type",Object)],DT.prototype,"baseUrl",void 0);_.r([_.E({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Z("design:type",String)],DT.prototype,"url",void 0);_.r([_.E(),_.Z("design:type",Object)],DT.prototype,"isHiddenByUser",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Z("design:type",Object)],DT.prototype,"hidden",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Z("design:type",Boolean)],DT.prototype,"collapsed",void 0);_.r([_.E({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Z("design:type",Boolean)],DT.prototype,"hideChatFrame",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DT.prototype,"showAboveScrim",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DT.prototype,"watchNextGrid",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],DT.prototype,"modernButtons",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DT.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DT.prototype,"noBorder",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],DT.prototype,"roundBackground",void 0);
_.r([_.E({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Z("design:type",Object)],DT.prototype,"toggleButtonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],DT.prototype,"overflowHideChat",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DT.prototype,"forceDarkTheme",void 0);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],DT.prototype,"enableShowWithoutHideChatButton",null);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DT.prototype,"theaterWatchWhile",void 0);_.r([_.Yp("#chatframe"),_.Z("design:type",HTMLIFrameElement)],DT.prototype,"chatframe",void 0);_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DT.prototype,"onShowHideChat",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DT.prototype,"dataChanged",null);
_.r([_.XX("url"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DT.prototype,"urlChanged",null);_.r([_.XX("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DT.prototype,"collapsedChanged",null);DT=_.r([_.A({is:"ytd-live-chat-frame",disableElementRegistration:!0})],DT);
_.F(DT,"ytd-live-chat-frame",function(){if(VU6!==void 0)return VU6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return VU6=B},{mode:1});var ehj;var fz=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("web_modern_buttons");B.buttonOverrides={style:"call-to-action",type:"filled"};return B};
_.l(fz,_.c);fz.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=_.li(this.data.backgroundColor)))};
fz.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var B=this.getFormattedStringLoggingDirectives(this.data.headline);B&&this.rendererBehavior.logExplicitClick(B)}};
fz.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var B=this.getFormattedStringLoggingDirectives(this.data.description);B&&this.rendererBehavior.logExplicitClick(B)}};
fz.prototype.getFormattedStringLoggingDirectives=function(B){return B&&B.runs&&B.runs.length>0&&B.runs[0]&&B.runs[0].loggingDirectives?B.runs[0].loggingDirectives:null};
fz.prototype.dataChanged=fz.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fz.prototype,"rendererBehavior",void 0);_.r([_.v(gs6.YtMacroReplacementBehavior),_.Z("design:type",Object)],fz.prototype,"macroReplacementBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fz.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],fz.prototype,"navigationEndpoint",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],fz.prototype,"enableColors",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],fz.prototype,"modern",void 0);_.r([_.E(),_.Z("design:type",Object)],fz.prototype,"buttonOverrides",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fz.prototype,"dataChanged",null);fz=_.r([_.A({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],fz);
_.F(fz,"ytd-action-basic-immersive-content-renderer",function(){if(ehj!==void 0)return ehj;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return ehj=B},{mode:1});var XpU;var pp6;var lB=function(){return _.c.apply(this,arguments)||this};
_.l(lB,_.c);lB.prototype.dataChanged=function(){var B;((B=this.data)==null?void 0:B.backgroundColor)!==void 0&&_.o_(this.hostElement,{"--bgu-color":_.li(this.data.backgroundColor)})};
lB.prototype.onImageTileClick=function(){var B;((B=this.data)==null?0:B.navigationEndpoint)&&_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var R;((R=this.data)==null?0:R.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.mh.Object.defineProperties(lB.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var B;if(((B=this.data)==null?void 0:B.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 B;return((B=this.data)==null?void 0:B.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var B,R,V;if(((B=this.data)==null?void 0:(R=B.detailsLine)==null?void 0:R.texts)!=null&&((V=this.data)==null?void 0:V.detailsLine.texts.length)>0){var e;return(e=this.data)==null?void 0:e.detailsLine.texts.map(function(X){return X.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var B,R,V;if(((B=this.data)==null?void 0:(R=B.optionalDetailsLine)==null?void 0:R.texts)!=null&&((V=this.data)==null?void 0:V.optionalDetailsLine.texts.length)>0){var e;return(e=this.data)==null?void 0:e.optionalDetailsLine.texts.map(function(X){return X.text}).join("")}return null}}});
lB.prototype.dataChanged=lB.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lB.prototype,"rendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],lB.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lB.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data.backgroundColor"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],lB.prototype,"hasBackgroundColor",null);
_.r([_.K("data.objectFit"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lB.prototype,"getObjectFit",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.tileRenderingStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],lB.prototype,"hasTileMetadata",null);_.r([_.K("data.detailsLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lB.prototype,"getSecondaryDetails",null);
_.r([_.K("data.optionalDetailsLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lB.prototype,"getOptionalDetails",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lB.prototype,"dataChanged",null);lB=_.r([_.A({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],lB);
_.F(lB,"ytd-image-tile-renderer",function(){if(pp6!==void 0)return pp6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return pp6=B},{mode:1});var YR4;var zV=function(){return _.c.apply(this,arguments)||this};
_.l(zV,_.c);zV.prototype.getOpenLinkIcon=function(){return _.k("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
zV.prototype.onSitelinkTap=function(){_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.k("kevlar_command_handler_migration_killswitch"))_.eO(this.hostElement,this.data.clickCommands,this.hostElement);else for(var B=_.h(this.data.clickCommands),R=B.next();!R.done;R=B.next())this.ytComponentBehavior.resolveCommand(R.value)};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],zV.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zV.prototype,"rendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zV.prototype,"data",void 0);zV=_.r([_.A({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],zV);
_.F(zV,"ytd-sitelink-renderer",function(){if(YR4!==void 0)return YR4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return YR4=B},{mode:1});var ag=function(){var B=_.c.apply(this,arguments)||this;B.paddingFix=_.k("enable_ads_web_ep_buenos_aires_and_padding_fix");return B};
_.l(ag,_.c);ag.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"}}}};
ag.prototype.dataChanged=function(){var B=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(R){R.clickTrackingParams&&delete R.clickTrackingParams;B.ytMacroReplacementBehavior.sendServiceRequestAction([R])})};
ag.prototype.shouldHideFooter=function(B){return!(B&&_.k("use_ads_engagement_panel_desktop_footer_cta"))};
_.mh.Object.defineProperties(ag.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:B.imageTileRenderers)===void 0||((R=this.data)==null?void 0:R.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(V){var e;return(e=_.D(V,F$4))==null?void 0:e.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:B.imageTileRenderers)===void 0||((R=this.data)==null?void 0:R.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(V){var e;return((e=_.D(V,F$4))==null?void 0:e.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
ag.prototype.dataChanged=ag.prototype.dataChanged;_.r([_.v(gs6.YtMacroReplacementBehavior),_.Z("design:type",Object)],ag.prototype,"ytMacroReplacementBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ag.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ag.prototype,"paddingFix",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data.imageTileRenderers"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ag.prototype,"removeBorderFromImageTiles",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.imageTileRenderers"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ag.prototype,"useFooteredMetadataRenderingStyle",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ag.prototype,"dataChanged",null);ag=_.r([_.A({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],ag);
_.F(ag,"ytd-action-engagement-panel-content-renderer",function(){if(XpU!==void 0)return XpU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return XpU=B},{mode:1});var hhi;var tUU=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;B=_.Zh();_.P7(B,function(){return R().interaction},V);
_.Od(B,{visibilityCallback:function(e){var X,Y=(X=R().interaction)==null?void 0:X.onFirstVisible;e&&Y&&_.Lc(Y)},
showOption:_.FP});return _.N("ad-grid-card-image-full-metadata-view-model",{class:function(){var e;return((e=R().interaction)==null?0:e.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:B,"aria-label":function(){var e,X;return(e=R().interaction)==null?void 0:(X=e.accessibility)==null?void 0:X.label}},_.N("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.N(_.wb,{data:function(){return R().adImage}},{adImageViewModel:function(e){return _.N(_.VY,{data:e.data,
customCommandResolver:V})}})),_.N("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.N(_.H,{cond:function(){return R().headline},
then:function(e){return _.N(_.Hr,{text:e,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.N(_.H,{cond:function(){return R().detailsLine},
then:function(e){return _.N("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.N(_.wb,{data:e},{adDetailsLineViewModel:function(X){return _.N(_.P0,{data:X.data,customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.N(_.H,{cond:function(){return R().secondaryDetailsLine},
then:function(e){return _.N("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.N(_.wb,{data:e},{adDetailsLineViewModel:function(X){return _.N(_.P0,{data:X.data,customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Bi");var WUo=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;B=_.Zh();_.P7(B,function(){return R().interaction},V);
_.Od(B,{visibilityCallback:function(e){var X,Y=(X=R().interaction)==null?void 0:X.onFirstVisible;e&&Y&&_.Lc(Y)},
showOption:_.FP});return _.N("ad-grid-card-image-view-model",{class:function(){var e;return((e=R().interaction)==null?0:e.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:B,"aria-label":function(){var e,X;return(e=R().interaction)==null?void 0:(X=e.accessibility)==null?void 0:X.label}},_.N(_.wb,{data:function(){return R().adImage}},{adImageViewModel:function(e){return _.N(_.VY,{data:e.data,
customCommandResolver:V})}}),_.N("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.N(_.wb,{data:function(){return R().adCardBadge}},{adCardBadgeViewModel:_.Qdb})))},"Ci");var b5e=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;B=_.Zh();_.P7(B,function(){return R().interaction},V);
_.Od(B,{visibilityCallback:function(e){var X,Y=(X=R().interaction)==null?void 0:X.onFirstVisible;e&&Y&&_.Lc(Y)},
showOption:_.FP});return _.N("ad-grid-card-text-view-model",{class:function(){var e;return((e=R().interaction)==null?0:e.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:B,"aria-label":function(){var e,X;return(e=R().interaction)==null?void 0:(X=e.accessibility)==null?void 0:X.label}},_.N("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.N(_.H,{cond:function(){return R().title},
then:function(e){return _.N(_.Hr,{text:e,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.N("div",{class:function(){return _.k("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.N(_.yh,{each:function(){var e;
return((e=R())==null?void 0:e.descriptions)||[]},
keyBy:"INDEX"},function(e){return _.N(_.Hr,{text:e,className:function(){return _.k("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.N("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.N(_.wb,{data:function(){return R().moreInfoButton}},{adButtonViewModel:function(e){return _.N(_.go,{data:e.data,
customCommandResolver:V})}})))},"Di");var J9i=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;var e=B.adGridCardCollectionStyle;B=_.Zh();_.Od(B,{visibilityCallback:function(X){var Y,t=(Y=R().interaction)==null?void 0:Y.onFirstVisible;X&&t&&_.Lc(t)},
showOption:_.FP});return _.N("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:B,style:function(){return"grid-template-columns: repeat("+Rvo(e?e():R().style)+", minmax(0, 1fr));"}},_.N(_.wb,{data:function(){var X;
return(X=R())==null?void 0:X.gridCards}},{adGridCardImageViewModel:function(X){return _.N(WUo,{data:X.data,
customCommandResolver:V})},
adGridCardImageFullMetadataViewModel:function(X){return _.N(tUU,{data:X.data,customCommandResolver:V})},
adGridCardTextViewModel:function(X){return _.N(b5e,{data:X.data,customCommandResolver:V})}}))},"Ei");_.mR(_.sx(function(B){var R=B.data;B=_.Zh();_.P7(B,function(){return R().interaction},V02);
_.Od(B,{visibilityCallback:function(V){var e,X=(e=R().interaction)==null?void 0:e.onFirstVisible;V&&X&&_.Lc(X)},
showOption:_.FP});return _.N("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:B},_.N("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.N(_.H,{cond:_.oHd("(min-width: "+((0,_.ww)()+_.QE)+"px)"),then:function(){return _.N(_.wb,{data:function(){return R().adGridCardCollection}},{adGridCardCollectionViewModel:function(V){return _.N(J9i,{data:V.data,
customCommandResolver:V02})}})},
else:function(){return _.N(_.wb,{data:function(){return R().adGridCardCollection}},{adGridCardCollectionViewModel:function(V){return _.N(J9i,{data:V.data,
customCommandResolver:V02,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.N("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.N(_.wb,{data:function(){return R().adButton}},{adButtonViewModel:function(V){return _.N(_.go,{data:V.data,
customCommandResolver:V02})}})))},"Fi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;B=_.Zh();_.P7(B,function(){return R().interaction},eve);
_.Od(B,{visibilityCallback:function(V){var e,X=(e=R().interaction)==null?void 0:e.onFirstVisible;V&&X&&_.Lc(X)},
showOption:_.FP});return _.N("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:B},_.N("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.N(_.wb,{data:function(){if(_.oHd("(min-width: "+((0,_.ww)()+_.QE)+"px)")())var V=R().adGridCardCollection;else{V=Object.assign({},_.D(R().adGridCardCollection,rt2));var e;V.gridCards!==void 0&&((e=V.gridCards)==null?void 0:e.length)>1?V.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":V.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";V={adGridCardCollectionViewModel:V}}return V}},{adGridCardCollectionViewModel:function(V){return _.N(J9i,{data:V.data,
customCommandResolver:eve})}})),_.N("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.N(_.wb,{data:function(){return R().adButton}},{adButtonViewModel:function(V){return _.N(_.go,{data:V.data,
customCommandResolver:eve})}})))},"Gi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.qq}});var dC=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return B};
_.l(dC,_.c);_.p=dC.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 B=this,R=_.Pr(this.hostElement);R&&R.getPlayerPromise().then(function(V){B.getCachedDataAndListen(V)})};
_.p.getCachedDataAndListen=function(B){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(B,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(B,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=B)};
_.p.resolveCachedActions=function(){var B=_.qN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(B=B&&B())&&!_.M_.isEmpty(B)&&this.sendUpdateEngagementPanelAction(B);(B=(B=_.qN("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&B())&&!_.M_.isEmpty(B)&&this.sendChangeEngagementPanelVisibilityAction(B);(B=(B=_.qN("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&B())&&!_.M_.isEmpty(B)&&this.sendScrollToEngagementPanelCommand(B)};
_.p.sendUpdateEngagementPanelAction=function(B){var R;_.oF(this.hostElement,"yt-update-engagement-panel-action",[(R=_.M_.get(B,"action"))!=null?R:B])};
_.p.sendChangeEngagementPanelVisibilityAction=function(B){_.oF(this.hostElement,"yt-change-engagement-panel-visibility-action",[B])};
_.p.sendScrollToEngagementPanelCommand=function(B){_.oF(this.hostElement,"yt-scroll-to-engagement-panel-command",[B])};
_.p.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.k("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.KE(Error("gm"))};
dC.prototype.dataChanged=dC.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],dC.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],dC.prototype,"componentBehavior",void 0);_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],dC.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],dC.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],dC.prototype,"player",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dC.prototype,"dataChanged",null);dC=_.r([_.A({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],dC);
_.F(dC,"ytd-ads-engagement-panel-content-renderer",function(){if(hhi!==void 0)return hhi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return hhi=B},{mode:1});var jle;var wC=function(){var B=_.c.apply(this,arguments)||this;B.player=null;B.JSC$19923_playerEvents=new Map;B.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return B};
_.l(wC,_.c);_.p=wC.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$19923_playerEvents=new Map;this.JSC$19923_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19923_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19923_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19923_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.p.attached=function(){var B=this,R=_.Pr();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));R&&R.getPlayerPromise().then(function(V){B.setPlayer(V);B.set("isPageLoad",!1)})};
_.p.setPlayer=function(B){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19923_playerEvents);this.set("player",B);B&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$19923_playerEvents),B.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.p.onLoopRangeChange=function(B){var R=_.Oz().resolve(_.uj(_.$B));if((!R||R.isOnWatch())&&this.hostElement.clientHeight){var V;!B&&((V=this.data)==null?0:V.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.p.onVideoProgress=function(B){var R,V,e=((R=this.player)==null?void 0:(V=R.getPresentingPlayerType)==null?void 0:V.call(R))===2;this.isAdPlaying!==e&&this.set("isAdPlaying",e);var X;if(!e&&(X=this.player)!=null&&X.getLoopRange()){V=this.player.getLoopRange();R=V.startTimeMs;V=V.endTimeMs;e=this.player.getProgressState(1).seekableStart;var Y;R<e*1E3&&((Y=this.data)==null?0:Y.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
B=V<B*1E3;var t;((t=this.player)==null?0:t.getLoopRange())&&B&&this.player.seekTo(R/1E3)}};
_.p.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.p.onYtDeleteClipEngagementPanelCommand=function(B){_.D(B,Xvz).command&&this.ytComponentBehavior.resolveCommand(_.D(B,Xvz).command)};
_.mh.Object.defineProperties(wC.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.voteCount)||_.s$("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],wC.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],wC.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],wC.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],wC.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],wC.prototype,"isAdPlaying",void 0);_.r([_.E({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],wC.prototype,"isPageLoad",void 0);_.r([_.E({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],wC.prototype,"isDarkTheme",void 0);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wC.prototype,"voteCount",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wC.prototype,"channelEndpoint",null);_.r([_.K("channelEndpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wC.prototype,"channelHref",null);wC=_.r([_.A({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],wC);
_.F(wC,"ytd-clip-attribution-renderer",function(){if(jle!==void 0)return jle;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return jle=B},{mode:1});var UFU;var TV=function(){var B=_.c.apply(this,arguments)||this;B.player=null;B.JSC$19928_playerEvents=new Map;return B};
_.l(TV,_.c);_.p=TV.prototype;_.p.created=function(){this.player=null;this.JSC$19928_playerEvents=new Map;this.JSC$19928_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19928_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19928_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.p.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.p.attached=function(){var B=this,R=_.Pr();R&&R.getPlayerPromise().then(function(V){B.setPlayer(V);B.set("isPageLoad",!1)})};
_.p.setPlayer=function(B){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19928_playerEvents);this.set("player",B);if(B){this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$19928_playerEvents);var R;(B==null?void 0:(R=B.getPresentingPlayerType)==null?void 0:R.call(B))===2&&this.playerAdStartHandler()}};
_.p.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.p.onVideoProgress=function(){var B,R,V=((B=this.player)==null?void 0:(R=B.getPresentingPlayerType)==null?void 0:R.call(B))===2;this.isAdPlaying!==V&&this.set("isAdPlaying",V)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],TV.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],TV.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],TV.prototype,"isAdPlaying",void 0);
_.r([_.E({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],TV.prototype,"isPageLoad",void 0);TV=_.r([_.A({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],TV);
_.F(TV,"ytd-clip-section-footer-renderer",function(){if(UFU!==void 0)return UFU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return UFU=B},{mode:1});var NWU;var GCm;var xw=function(){return _.c.apply(this,arguments)||this};
_.l(xw,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],xw.prototype,"data",void 0);xw=_.r([_.A({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],xw);
_.F(xw,"ytd-clip-ad-state-renderer",function(){if(GCm!==void 0)return GCm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return GCm=B},{mode:1});var y9e;var Lz=function(){var B=_.c.apply(this,arguments)||this;B.value="";B.valid=!1;B.userChangedValue=!1;B.disabled=!1;B.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return B};
_.l(Lz,_.c);_.p=Lz.prototype;_.p.detached=function(){this.userChangedValue=!1};
_.p.handleKeyDown=function(B){if(_.to)var R=13;else _.LT_&&_.Wb?R=13:R=13;B.keyCode===R&&B.preventDefault()};
_.p.handleInput=function(){var B=_.w(this.hostElement).querySelector("#title");if(B){var R=(B.value||"").replace(/\r|\n/g," ");this.set("value",R);B.value=R;this.valid=B.validate();this.userChangedValue=!0}};
_.p.handleBlur=function(){this.valid=_.w(this.hostElement).querySelector("#title").validate()};
_.p.onValueChanged=function(){_.OI(this.hostElement,"title-changed",{title:this.value})};
_.p.onValidChanged=function(){_.OI(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.p.setInput=function(B,R){var V=_.w(this.hostElement).querySelector("#title");V&&(V.value=B,this.handleInput(),R&&(V.invalid=!1,this.valid=!0))};
_.p.onClipCreationDisable=function(){this.set("disabled",!0)};
_.p.onClipCreationEnable=function(){this.set("disabled",!1)};
_.p.onClipCreationVisibilityChange=function(B){var R=this;B.visible?requestAnimationFrame(function(){var V;((V=_.w(R.hostElement).querySelector("#title"))==null?void 0:V.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Lz.prototype.onValidChanged=Lz.prototype.onValidChanged;Lz.prototype.onValueChanged=Lz.prototype.onValueChanged;Lz.prototype.handleBlur=Lz.prototype.handleBlur;Lz.prototype.handleInput=Lz.prototype.handleInput;Lz.prototype.handleKeyDown=Lz.prototype.handleKeyDown;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Lz.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Lz.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Lz.prototype,"value",void 0);_.r([_.E(),_.Z("design:type",Object)],Lz.prototype,"valid",void 0);_.r([_.E(),_.Z("design:type",Object)],Lz.prototype,"userChangedValue",void 0);_.r([_.E(),_.Z("design:type",Object)],Lz.prototype,"disabled",void 0);_.r([_.R_("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],Lz.prototype,"handleKeyDown",null);
_.r([_.R_("input"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lz.prototype,"handleInput",null);_.r([_.R_("blur"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lz.prototype,"handleBlur",null);_.r([_.XX("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lz.prototype,"onValueChanged",null);
_.r([_.XX("valid"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lz.prototype,"onValidChanged",null);Lz=_.r([_.A({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Lz);
_.F(Lz,"ytd-clip-creation-text-input-renderer",function(){if(y9e!==void 0)return y9e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return y9e=B},{mode:1});var SRe;var H54;var MUj;var kC4;var DF4;var vj=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};B.pendingStoryboardImages_={};B.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];B.tickLabelInterval=30;B.mediumTickInterval=5;B.largeTickInterval=15;B.aboveRulerHeight=32;B.rulerHeight=50;B.smallTickHeight=4;B.mediumTickHeight=8;B.largeTickHeight=16;B.mediaListeners_=
{};return B};
_.l(vj,_.c);_.p=vj.prototype;_.p.attached=function(){var B=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(R){R=_.h(["screen and (min-resolution: "+R+")","screen and (max-resolution: "+R+")"]);for(var V=R.next();!V.done;V=R.next()){V=V.value;var e=window.matchMedia(V);e&&(B.mediaListeners_[V]=B.updatePixelRatio_.bind(B),e.addEventListener?e.addEventListener("change",B.mediaListeners_[V]):e.addListener?e.addListener(B.mediaListeners_[V]):delete B.mediaListeners_[V])}})};
_.p.detached=function(){this.setPlayer(null);for(var B=_.h(Object.keys(this.mediaListeners_)),R=B.next();!R.done;R=B.next()){var V=R.value;R=this.mediaListeners_[V];(V=window.matchMedia(V))&&(V.removeEventListener?V.removeEventListener("change",R):V.removeListener&&V.removeListener(R))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.p.onVisibilityChangedAction_=function(B){var R=this;B.visible&&!this.player_&&(B=_.Pr())&&B.getPlayerPromise().then(function(V){R.setPlayer(V)})};
_.p.setPlayer=function(B){B&&this.set("player_",B)};
_.p.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.p.setUpCanvas_=function(){var B=this.rulerWidth,R=this.devicePixelRatio_,V=this.visible;this.set("canvasReady_",!1);if(V&&R!==0){V=this.aboveRulerHeight+this.rulerHeight;var e=_.w(this.hostElement).querySelector("#ticks");e.width=B*R;e.height=V*R;e.style.width=B+"px";e.style.height=V+"px";e.getContext("2d").scale(R,R);this.set("canvasReady_",!0)}};
_.p.drawRuler_=function(B,R,V,e,X,Y,t,b,J,G,y,S){B&&V&&R&&(B=_.w(this.hostElement).querySelector("#ticks"),R=B.getContext("2d"),R.clearRect(0,0,B.width,B.height),R.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),R.lineWidth=2,R.beginPath(),R.moveTo(0,this.aboveRulerHeight),R.lineTo(B.width,this.aboveRulerHeight),R.moveTo(0,B.height),R.lineTo(B.width,B.height),R.stroke(),this.drawRulerTicks_(B,Y,X,e),this.drawStoryboardImages_(B,V,Y,X,e),R.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
R.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(t-Y,e,!1),this.rulerHeight),V=this.timeToPixels_(b-Y,e,!1),R.fillRect(V,this.aboveRulerHeight,B.width-V,this.rulerHeight),this.drawSpeedLines_(B,Y,S))};
_.p.drawRulerTicks_=function(B,R,V,e){var X=B.getContext("2d");X.save();X.lineWidth=1;for(var Y=Math.floor(Math.max(0,R-this.tickLabelInterval));Y<R+V;Y++){X.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var t=(Y-R)*e;X.beginPath();X.moveTo(t,B.height);var b=this.smallTickHeight;Y%this.largeTickInterval===0?b=this.largeTickHeight:Y%this.mediumTickInterval===0&&(b=this.mediumTickHeight);X.lineTo(t,B.height-b);X.stroke();Y%this.tickLabelInterval===0&&(X.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),X.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),X.fillText(wu(Y),t+4,12),X.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),X.moveTo(t,0),X.lineTo(t,this.aboveRulerHeight),X.stroke())}X.restore()};
_.p.percentToHex_=function(B){B=Math.round(B*255).toString(16);B.length<2&&(B="0"+B);return B};
_.p.drawSpeedLines_=function(B,R,V){var e=B.getContext("2d");e.save();var X=Math.min(25,Math.abs(V)-15)/25,Y=B.width*.3*X,t=B.width*-.3,b=B.width*1.3,J=this.aboveRulerHeight;B=B.height;var G=Math.round(4*X),y=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");y.length<7&&(y="#"+y.substring(1,4).repeat(2));var S=this.percentToHex_(.5+X/2);S=y+S;y+="00";if(X>0)for(X=0;X<G;X++){var M=t+Math.random()*(b-t),f=J+Math.random()*(B-J),z=Y+R%Y,T=e.createLinearGradient(M,f,M+z,f);
V<0?(T.addColorStop(0,S),T.addColorStop(.4,S),T.addColorStop(.9,y)):(T.addColorStop(.1,y),T.addColorStop(.6,S),T.addColorStop(1,S));e.strokeStyle=T;e.lineWidth=1;e.beginPath();e.moveTo(M,f);e.lineTo(M+z,f);e.stroke()}e.restore()};
_.p.getStoryboardForTime_=function(B,R,V){V===void 0&&(V=R.getNumberOfStoryboardLevels()-1);B=R.getStoryboardFrameIndex(B,V);return R.getStoryboardFrame(B,V)};
_.p.drawStoryboardImages_=function(B,R,V,e,X){if(!this.disabled){B=B.getContext("2d");var Y=this.getStoryboardForTime_(0,R);if(Y){var t=Y.width/Y.columns;Y=Y.height/Y.rows;var b=t/Y,J=this.rulerHeight*b;J=this.tickLabelInterval*(b<this.tickLabelInterval*X/this.rulerHeight?1/Math.floor(this.tickLabelInterval*X/J):Math.round(J/(this.tickLabelInterval*X)));var G=J*X,y=this.rulerHeight,S=G/this.rulerHeight,M=Math.floor(Math.max(0,V-J));for(M-=M%J;M<V+e;M+=J){var f=this.getStoryboardForTime_(M,R),z=this.getPreloadedStoryboard_(f.url);
if(z){var T=(M-V)*X,L=this.aboveRulerHeight,Q=f.column*t,q=f.row*Y;if(b<S){var m=y/(G/b);f=t;m*=Y;q+=(Y-m)/2}else f=G/(y*b)*t,m=Y,Q+=(t-f)/2;B.drawImage(z,Q,q,f,m,T,L,G,y)}else this.fetchStoryboardImage_(f)}}}};
_.p.getPreloadedStoryboard_=function(B){return this.storyboardImages_.find(function(R){if(R.src==B)return!0;var V=R.src.indexOf(B);return V!=-1&&V==R.src.length-B.length})};
_.p.fetchStoryboardImage_=function(B){var R=this,V=this.getPreloadedStoryboard_(B.url),e=this.pendingStoryboardImages_[B.url];V||e!==void 0||(V=new Promise(function(X){var Y=new Image(B.width,B.height);Y.src=B.url;Y.onload=function(){X(Y)};
Y.onerror=function(){X(null)}}),this.pendingStoryboardImages_[B.url]=V,V.then(function(X){X&&R.push("storyboardImages_",X);
return X}).finally(function(){delete R.pendingStoryboardImages_[B.url]}))};
_.p.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.p.timeToPixels_=function(B,R,V){B*=R;return V===void 0||V?B+"px":B};
_.p.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
vj.prototype.drawRuler_=vj.prototype.drawRuler_;vj.prototype.setUpCanvas_=vj.prototype.setUpCanvas_;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],vj.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],vj.prototype,"start",void 0);_.r([_.E({value:30}),_.Z("design:type",Number)],vj.prototype,"end",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],vj.prototype,"visible",void 0);_.r([_.E(),_.Z("design:type",Object)],vj.prototype,"player_",void 0);_.r([_.E(),_.Z("design:type",Number)],vj.prototype,"tickSpacing",void 0);_.r([_.E(),_.Z("design:type",Number)],vj.prototype,"windowSizeSec",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],vj.prototype,"rulerWidth",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],vj.prototype,"rulerShift",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],vj.prototype,"canvasReady_",void 0);_.r([_.E({value:function(){return[]}}),
_.Z("design:type",Array)],vj.prototype,"storyboardImages_",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],vj.prototype,"disabled",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],vj.prototype,"forceRender_",void 0);_.r([_.E({value:1}),_.Z("design:type",Number)],vj.prototype,"devicePixelRatio_",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],vj.prototype,"windowSpeed",void 0);
_.r([_.XX("visible","devicePixelRatio_","rulerWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vj.prototype,"setUpCanvas_",null);
_.r([_.XX("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")],vj.prototype,"drawRuler_",null);vj=_.r([_.fJ({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],vj);
_.F(vj,"yt-clip-creation-scrubber-canvas",function(){if(DF4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);DF4=B}B=DF4;return B},
{mode:2});var fei;var le6;var Kz=function(){var B=_.c.apply(this,arguments)||this;B.start=0;B.end=30;B.visible=!1;B.draggingLeft_=!1;B.draggingRight_=!1;B.draggingRuler_=!1;B.draggingWindow_=!1;B.seekableStart=0;B.seekableEnd=0;B.rulerWidth_=0;B.rulerShift_=0;B.windowSlideSpeed=0;B.disabled=!1;B.initialized=!1;B.durationAccessibilityLabel="";B.activeLoopRange_=!1;B.rulerDragMouseStart_=0;B.rulerDragRulerStart_=0;B.rulerDragStartTime_=0;B.rulerDragEndTime_=0;B.dragMouseLastX_=0;B.scrollInterval_=null;B.scrubberVe_=null;B.boundHandlers_=
{};B.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return B};
_.l(Kz,_.c);_.p=Kz.prototype;
_.p.created=function(){var B=this;this.JSC$19941_playerEvents=new Map;this.JSC$19941_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19941_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19941_playerEvents.set("onStateChange",this.onStateChange_);var R={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(R).forEach(function(V){B.boundHandlers_[V]=R[V].bind(B)})};
_.p.attached=function(){this.activeLoopRange_=!1;_.w(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.w(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.kB(156731)};
_.p.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.w(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.w(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.p.onVisibilityChangedAction_=function(B){var R=this;B.visible&&!this.player_&&(B=_.Pr())&&B.getPlayerPromise().then(function(V){R.setPlayer(V)})};
_.p.setPlayer=function(B){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19941_playerEvents);B&&(this.set("player_",B),this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$19941_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(B){this.disabled||(B.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=B.clientX,B.target===_.w(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():B.target===_.w(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(B){this.disabled||(B.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=B.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 B=this;this.scrollInterval_=setInterval(function(){var R=B.windowSlideSpeed;if(R=_.DBj(B.start,B.boundedRulerStartLimit_())?R-.1:_.DBj(B.end,B.boundedRulerEndLimit_())?R+.1:0){var V=B.capRulerOffset_(B.rulerShift_+R);V==B.rulerShift_?R=0:(B.set("rulerShift_",V),_.OI(B.hostElement,"set-fixed-length-range",{start:B.start+R,duration:B.end-B.start}))}B.set("windowSlideSpeed",R)},33)};
_.p.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.p.endDrag_=function(){this.logClick();var B=void 0;this.draggingRight_?B=this.end-1:this.draggingLeft_&&(B=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,B);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_",_.w(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.p.handleMouseDrag_=function(B){B.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(B):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(B):this.draggingWindow_&&this.handleWindowDrag_(B))};
_.p.handleRulerDrag_=function(B){B=this.pixelsToTime_(B.clientX-this.rulerDragMouseStart_);B=this.capRulerOffset_(this.rulerDragRulerStart_-B);this.set("rulerShift_",B);var R=this.rulerDragStartTime_-(this.rulerDragRulerStart_-B);_.OI(this.hostElement,"set-fixed-length-range",{start:R,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-B)-R})};
_.p.handleWindowDrag_=function(B){var R=B.clientX-this.dragMouseLastX_;this.dragMouseLastX_=B.clientX;B=this.pixelsToTime_(R);_.OI(this.hostElement,"set-fixed-length-range",{start:this.start+B,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.p.capRulerOffset_=function(B){var R=this.seekableStart-this.pixelsToTime_(16),V=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(R,B),V)};
_.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(B){var R=B.clientX-this.dragMouseLastX_;this.dragMouseLastX_=B.clientX;B=this.pixelsToTime_(R);if(this.draggingLeft_){var V=this.start+B;var e=this.end}else this.draggingRight_&&(V=this.start,e=this.end+B);_.OI(this.hostElement,"set-range",{start:V,end:e,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.p.onVideoProgress_=function(B){this.disabled||(B=this.timeToPixels_(B-this.rulerShift_,this.tickSpacing_),_.w(this.hostElement).querySelector("#playhead").style.transform="translateX("+B+")")};
_.p.onClipCreationDisable_=function(){this.endDrag_()};
_.p.timeToPixels_=function(B,R,V){B*=R;return V===void 0||V?B+"px":B};
_.p.pixelsToTime_=function(B){return B/this.tickSpacing_};
_.p.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.p.centerRuler_=function(B,R,V){this.set("rulerShift_",this.capRulerOffset_(B+(R-B)/2-V/2))};
_.p.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.p.updateLoopRange_=function(B,R,V,e,X,Y,t){B&&(R&&e&&!V?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(B.pauseVideo(),B.seekTo(X,!1,void 0,void 0,50)):this.draggingRight_?(B.pauseVideo(),B.seekTo(Y-.1,!1,void 0,void 0,50)):(t!==void 0?B.seekTo(t,!0,void 0,void 0,50):(R=B.getCurrentTime(),R<X||R>Y?B.seekTo(X,!0,void 0,void 0,50):B.seekTo(R,!0,void 0,void 0,50)),B.playVideo()),B.setLoopRange({startTimeMs:X*1E3,endTimeMs:Y*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(B.getCurrentTime())):
this.activeLoopRange_&&(B.setLoopRange(null),this.activeLoopRange_=!1))};
_.p.updateHandles_=function(){_.w(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.w(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.p.updateRuler_=function(){var B=this.end,R=this.start,V=this.draggableStartLimit_(),e=this.draggableEndLimit_();(R<V-.001||B>e+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.p.computeDurationLabel_=function(B,R){return B?B.replace("$clip_length",parseFloat(R).toFixed(1)):""};
_.p.computeDuration_=function(B,R){return this.isValidTime_(B)&&this.isValidTime_(R)&&B<R?R-B:0};
_.p.isValidTime_=function(B){return isNaN(parseFloat(B))||B<0?!1:this.player_?B>=this.seekableStart&&B<=this.seekableEnd:!0};
_.p.computeWindowSizeSec_=function(B,R,V){return Math.min((B||12E4)/1E3,V-R)};
_.p.computeTickSpacing_=function(B,R){return R?R/B:1};
_.p.onDragStateChanged_=function(){_.OI(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.p.centerRangeOnTime_=function(B){var R=this.duration;B=pFr(B-R/2,R,this.seekableStart,this.seekableEnd);_.OI(this.hostElement,"set-fixed-length-range",{start:B.start,duration:B.end-B.start})};
_.p.nearlyLessThan_=function(B,R,V){return B+(V===void 0?1E-6:V)<R};
_.p.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var B=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(B,this.start)||this.nearlyLessThan_(this.end,B))&&this.centerRangeOnTime_(B)}};
_.p.onStateChange_=function(B){this.visible&&!this.disabled&&B==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.p.computeDragState_=function(B,R,V,e){return B?"left":R?"right":V?"ruler":e?"window":"none"};
_.p.logClick=function(){var B=_.TE(),R=_.wT();B&&R&&this.scrubberVe_&&(_.k("combine_ve_grafts")?_.YJ(_.WK(),this.scrubberVe_,R):_.EV(B,R,this.scrubberVe_),_.iF(B,this.scrubberVe_))};
Kz.prototype.onDragStateChanged_=Kz.prototype.onDragStateChanged_;Kz.prototype.updateRuler_=Kz.prototype.updateRuler_;Kz.prototype.updateHandles_=Kz.prototype.updateHandles_;Kz.prototype.onUpdateLoopRange=Kz.prototype.onUpdateLoopRange;Kz.prototype.onInitializedChanged_=Kz.prototype.onInitializedChanged_;Kz.prototype.onVisibleChanged_=Kz.prototype.onVisibleChanged_;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Kz.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",Object)],Kz.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"start",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"end",void 0);_.r([_.E({computed:"computeDuration_(start, end)"}),_.Z("design:type",Number)],Kz.prototype,"duration",void 0);
_.r([_.E(),_.Z("design:type",String)],Kz.prototype,"lengthTemplate",void 0);_.r([_.E({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Z("design:type",String)],Kz.prototype,"durationLabel",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"visible",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"player_",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"draggingLeft_",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"draggingRight_",void 0);
_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"draggingRuler_",void 0);_.r([_.E({value:!1}),_.Z("design:type",Object)],Kz.prototype,"draggingWindow_",void 0);_.r([_.E({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Z("design:type",Number)],Kz.prototype,"tickSpacing_",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"seekableStart",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"seekableEnd",void 0);
_.r([_.E(),_.Z("design:type",Number)],Kz.prototype,"windowSizeMs",void 0);_.r([_.E({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Z("design:type",Number)],Kz.prototype,"windowSizeSec_",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"rulerWidth_",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"rulerShift_",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"windowSlideSpeed",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Kz.prototype,"disabled",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"initialized",void 0);_.r([_.E(),_.Z("design:type",Object)],Kz.prototype,"durationAccessibilityLabel",void 0);_.r([_.E({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Z("design:type",String)],Kz.prototype,"dragState",void 0);
_.r([_.XX("visible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kz.prototype,"onVisibleChanged_",null);_.r([_.XX("initialized"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kz.prototype,"onInitializedChanged_",null);_.r([_.XX("player_","visible","disabled","initialized","start","end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kz.prototype,"onUpdateLoopRange",null);
_.r([_.XX("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kz.prototype,"updateHandles_",null);_.r([_.XX("start","end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kz.prototype,"updateRuler_",null);
_.r([_.XX("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kz.prototype,"onDragStateChanged_",null);Kz=_.r([_.fJ({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Kz);
_.F(Kz,"yt-clip-creation-scrubber-view",function(){if(le6===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;fei===void 0&&(fei=document.createElement("template"));var e=fei;V.call(R,e.content.cloneNode(!0),B.content.firstChild);le6=B}B=le6;return B},{mode:2});var Ig=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};B.startHighlightTimeout=0;B.endHighlightTimeout=0;return B};
_.l(Ig,_.c);_.p=Ig.prototype;_.p.attached=function(){var B=this;this.startInput.addEventListener("input",function(R){return B.handleStartInput_(R)});
this.endInput.addEventListener("input",function(R){return B.handleEndInput_(R)});
this.startInput.addEventListener("focusout",function(R){return B.handleStartBlur_(R)});
this.endInput.addEventListener("focusout",function(R){return B.handleEndBlur_(R)})};
_.p.setPlayer=function(B){this.set("player_",B)};
_.p.onSetFixedLengthRange_=function(B){var R=B.detail;B=R.start;var V=R.duration,e=R.startLimit;R=R.endLimit;e||(e=this.seekableStart_);R||(R=this.seekableEnd_);B=pFr(B,V,e,R);this.start=B.start;this.end=B.end};
_.p.onSetRange_=function(B){var R=B.detail;B=R.start;var V=R.end,e=R.startLimit;R=R.endLimit;e||(e=this.seekableStart_);R||(R=this.seekableEnd_);if(B=YPz(B,V,e,R,this.minLengthSec,this.maxLengthSec))this.start=B.start,this.end=B.end};
_.p.updateInputs_=function(){var B=this.end,R=this.start;this.startInput.focused||(this.startInput.value=wu(R,!0));this.endInput.focused||(this.endInput.value=wu(B,!0))};
_.p.handleStartInput_=function(B){B=XFe(B.target.value);if(B===null)this.set("startValid",!1);else{var R=this.end,V=YPz(B,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);V?(this.set("endWillUpdate",V.end!==R),this.set("startValid",V.start===B)):this.set("startValid",!1)}};
_.p.handleEndInput_=function(B){B=XFe(B.target.value);if(B===null)this.set("endValid",!1);else{var R=this.start,V=hve(this.start,B,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);V?(this.set("startWillUpdate",V.start!==R),this.set("endValid",V.end===B)):this.set("endValid",!1)}};
_.p.handleStartBlur_=function(B){B=XFe(B.target.value);B===null?this.startInput.value=wu(this.start,!0):this.forceUpdateInputs_(YPz(B,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.p.handleEndBlur_=function(B){B=XFe(B.target.value);B===null?this.endInput.value=wu(this.end,!0):this.forceUpdateInputs_(hve(this.start,B,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.p.forceUpdateInputs_=function(B){B&&(this.start=B.start,this.end=B.end);this.startInput.value=wu(this.start,!0);this.endInput.value=wu(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.p.initializeClipRange_=function(){var B=this.seekableEnd_,R=this.seekableStart_,V=this.visible_,e=this.player_;if(!e||!V||R===null||!B)this.set("initialized",!1);else if(!this.initialized){var X=e.getCurrentTime(),Y=this.getDefaultLengthSec_();V=e.getVideoData();var t=e.getPlayerState()==1,b=V.isLive;Y=Math.min(Y,B-R);X=Math.max(0,X);B=b?hve(X-Y,X,R,B,this.minLengthSec,this.maxLengthSec):t?pFr(X-Y/2,Y,R,B):pFr(X,Y,R,B);this.start=B.start;this.end=B.end;this.set("initialized",!0);V.isLive&&e.seekTo(B.start);
this.startInput.value=wu(this.start,!0);this.endInput.value=wu(this.end,!0)}};
_.p.onStartChanged_=function(){var B=this;_.OI(this.hostElement,"start-changed",{start:this.start});var R;isNaN((R=this.oldStart)!=null?R:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){B.set("highlightStart",!1);B.startHighlightTimeout=0;B.oldStart=B.start},3E3))};
_.p.onEndChanged_=function(){var B=this;_.OI(this.hostElement,"end-changed",{end:this.end});var R;isNaN((R=this.oldEnd)!=null?R:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){B.set("highlightEnd",!1);B.endHighlightTimeout=0;B.oldEnd=B.end},3E3))};
_.p.onVisibilityChangedAction_=function(B){var R=this;this.set("visible_",B.visible);this.visible_&&!this.player_&&(B=_.Pr())&&B.getPlayerPromise().then(function(V){R.setPlayer(V)})};
_.p.computeMinLengthSec_=function(B){return B/1E3||5};
_.p.computeMaxLengthSec_=function(B){return B/1E3||60};
_.p.computeDefaultLengthSec_=function(B){return B/1E3};
_.p.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.p.computeSeekableStart_=function(B,R){return B&&R?B.getProgressState(1).seekableStart:0};
_.p.computeSeekableEnd_=function(B,R){return B&&R?B.getProgressState(1).seekableEnd:0};
_.p.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.p.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.p.onDragState_=function(B){this.set("highlightStart",B.detail.startChanging);this.set("highlightEnd",B.detail.endChanging)};
Ig.prototype.onDragState_=Ig.prototype.onDragState_;Ig.prototype.onEndChanged_=Ig.prototype.onEndChanged_;Ig.prototype.onStartChanged_=Ig.prototype.onStartChanged_;Ig.prototype.initializeClipRange_=Ig.prototype.initializeClipRange_;Ig.prototype.updateInputs_=Ig.prototype.updateInputs_;Ig.prototype.onSetRange_=Ig.prototype.onSetRange_;Ig.prototype.onSetFixedLengthRange_=Ig.prototype.onSetFixedLengthRange_;
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ig.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ig.prototype,"data",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],Ig.prototype,"start",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],Ig.prototype,"startValid",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ig.prototype,"startWillUpdate",void 0);_.r([_.E({value:30}),_.Z("design:type",Number)],Ig.prototype,"end",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],Ig.prototype,"endValid",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ig.prototype,"endWillUpdate",void 0);_.r([_.E({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Z("design:type",Number)],Ig.prototype,"minLengthSec",void 0);
_.r([_.E({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Z("design:type",Number)],Ig.prototype,"maxLengthSec",void 0);_.r([_.E({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Z("design:type",Number)],Ig.prototype,"defaultLengthSec",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Ig.prototype,"visible_",void 0);_.r([_.E(),_.Z("design:type",Object)],Ig.prototype,"player_",void 0);
_.r([_.E({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Z("design:type",Number)],Ig.prototype,"seekableStart_",void 0);_.r([_.E({computed:"computeSeekableEnd_(player_, visible_)"}),_.Z("design:type",Number)],Ig.prototype,"seekableEnd_",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Ig.prototype,"initialized",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ig.prototype,"disabled",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ig.prototype,"highlightStart",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ig.prototype,"highlightEnd",void 0);_.r([_.Yp("#start"),_.Z("design:type",HTMLInputElement)],Ig.prototype,"startInput",void 0);_.r([_.Yp("#end"),_.Z("design:type",HTMLInputElement)],Ig.prototype,"endInput",void 0);
_.r([_.R_("set-fixed-length-range"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ig.prototype,"onSetFixedLengthRange_",null);_.r([_.R_("set-range"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ig.prototype,"onSetRange_",null);_.r([_.XX("start","end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ig.prototype,"updateInputs_",null);
_.r([_.XX("player_","visible_","seekableStart_","seekableEnd_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ig.prototype,"initializeClipRange_",null);_.r([_.XX("start"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ig.prototype,"onStartChanged_",null);_.r([_.XX("end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ig.prototype,"onEndChanged_",null);
_.r([_.R_("clips-drag-state"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ig.prototype,"onDragState_",null);Ig=_.r([_.fJ({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Ig);
_.F(Ig,"yt-clip-creation-scrubber-renderer",function(){if(kC4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;MUj===void 0&&(MUj=document.createElement("template"));var e=MUj;V.call(R,e.content.cloneNode(!0),B.content.firstChild);kC4=B}B=kC4;return B},{mode:2});var Ek=function(){var B=_.c.apply(this,arguments)||this;B.player_=null;B.JSC$19955_playerEvents=new Map;B.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return B};
_.l(Ek,_.c);_.p=Ek.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$19955_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19955_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19955_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19955_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.p.detached=function(){this.setPlayer(null)};
_.p.onVisibilityChangedAction_=function(B){var R=this,V;if((V=this.data)==null?0:V.externalVideoId){var e;this.videoId=(e=this.data)==null?void 0:e.externalVideoId}this.getPlayer().then(function(X){if(B.visible)R.returnTime=X.getCurrentTime(),R.isAtLiveHead=X.getProgressState().isAtLiveHead;else{var Y=R.returnTime;R.isAtLiveHead&&(Y=Number.POSITIVE_INFINITY);X.seekTo(Y,void 0,void 0,void 0,51)}})};
_.p.getPlayer=function(){var B=this;if(!this.player_){var R=_.Pr();if(R)return R.getPlayerPromise().then(function(V){B.setPlayer(V);return V})}return Promise.resolve(this.player_)};
_.p.setPlayer=function(B){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19955_playerEvents);if(B){this.player_=B;var R;((R=this.data)==null?0:R.externalVideoId)||this.set("videoId",B.getVideoData().video_id||"");var V;(B==null?void 0:(V=B.getPresentingPlayerType)==null?void 0:V.call(B))===2&&(this.set("isAdPlaying",!0),_.oF(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(B,this.JSC$19955_playerEvents)}};
_.p.ready=function(){_.w(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.p.onTitleChanged_=function(B){this.set("titleValue",B.detail.title)};
_.p.onStartChanged_=function(B){this.set("start",B.detail.start)};
_.p.onEndChanged_=function(B){this.set("end",B.detail.end)};
_.p.onTitleValidChanged_=function(B){this.set("titleValid",B.detail.valid)};
_.p.onStartValidChanged_=function(B){this.set("startValid",B.detail.valid)};
_.p.onEndValidChanged_=function(B){this.set("endValid",B.detail.valid)};
_.p.onVideoDataChange_=function(){var B;if((B=this.data)==null||!B.externalVideoId){var R;this.set("videoId",((R=this.player_)==null?void 0:R.getVideoData().video_id)||"")}};
_.p.computeFormValid_=function(B,R,V,e){return!!(B&&R&&V&&e)};
_.p.computeCancelButton_=function(B,R,V){return B&&_.D(B,_.Ii)?{buttonRenderer:Object.assign({},_.D(B,_.Ii),{isDisabled:R||V})}:null};
_.p.computeSubmitButton_=function(B,R,V){return B&&_.D(B,_.Ii)?{buttonRenderer:Object.assign({},_.D(B,_.Ii),{command:void 0,isDisabled:!this.formValid||R||V})}:null};
_.p.computeSubmitCommand_=function(B){return B||null};
_.p.onSubmit_=function(B){var R=this;B.stopPropagation();B.preventDefault();this.submitCommand_&&(B={},B.comment_text=this.titleValue,B.clip_external_video_id=this.videoId,B.clip_offset_ms=parseInt(this.start*1E3,10),B.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.VD(this.hostElement,[this.submitCommand_,B]).then(function(){R.set("isLoading_",!1)},function(){R.set("isLoading_",!1)}))};
_.p.playerAdStartHandler_=function(){_.oF(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler_=function(){_.oF(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.p.onVideoProgress_=function(){var B=this;this.getPlayer().then(function(R){var V,e=(R==null?void 0:(V=R.getPresentingPlayerType)==null?void 0:V.call(R))===2;B.isAdPlaying!==e&&(e?B.playerAdStartHandler_():B.playerAdEndHandler_())})};
Ek.prototype.onEndValidChanged_=Ek.prototype.onEndValidChanged_;Ek.prototype.onStartValidChanged_=Ek.prototype.onStartValidChanged_;Ek.prototype.onTitleValidChanged_=Ek.prototype.onTitleValidChanged_;Ek.prototype.onEndChanged_=Ek.prototype.onEndChanged_;Ek.prototype.onStartChanged_=Ek.prototype.onStartChanged_;Ek.prototype.onTitleChanged_=Ek.prototype.onTitleChanged_;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ek.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",Object)],Ek.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ek.prototype,"data",void 0);_.r([_.E({value:""}),_.Z("design:type",String)],Ek.prototype,"titleValue",void 0);
_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Ek.prototype,"titleValid",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],Ek.prototype,"start",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],Ek.prototype,"startValid",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],Ek.prototype,"end",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],Ek.prototype,"endValid",void 0);_.r([_.E({value:""}),_.Z("design:type",String)],Ek.prototype,"videoId",void 0);
_.r([_.E({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Z("design:type",Boolean)],Ek.prototype,"formValid",void 0);_.r([_.E({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Z("design:type",Object)],Ek.prototype,"submitButton_",void 0);_.r([_.E({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Z("design:type",Object)],Ek.prototype,"submitCommand_",void 0);
_.r([_.E({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Z("design:type",Object)],Ek.prototype,"cancelButton_",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Ek.prototype,"isLoading_",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ek.prototype,"isAdPlaying",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],Ek.prototype,"returnTime",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Ek.prototype,"isAtLiveHead",void 0);
_.r([_.R_("title-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ek.prototype,"onTitleChanged_",null);_.r([_.R_("start-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ek.prototype,"onStartChanged_",null);_.r([_.R_("end-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ek.prototype,"onEndChanged_",null);
_.r([_.R_("title-valid-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ek.prototype,"onTitleValidChanged_",null);_.r([_.R_("start-valid-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ek.prototype,"onStartValidChanged_",null);_.r([_.R_("end-valid-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Ek.prototype,"onEndValidChanged_",null);
Ek=_.r([_.fJ({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Ek);
_.F(Ek,"yt-clip-creation-renderer",function(){if(H54===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;SRe===void 0&&(SRe=document.createElement("template"));var e=SRe;V.call(R,e.content.cloneNode(!0),B.content.firstChild);H54=B}B=H54;return B},{mode:2});var Qz=function(){return _.c.apply(this,arguments)||this};
_.l(Qz,_.c);Qz.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"}}}};
Qz.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(B){return B.hasOwnProperty("clipCreationRenderer")})&&_.oF(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Qz.prototype.onPanelContentVisibleChanged=Qz.prototype.onPanelContentVisibleChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.vD.YtVisibilityBehavior),_.Z("design:type",Object)],Qz.prototype,"ytVisibilityBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Qz.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Qz.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Qz.prototype,"panelContentVisible",void 0);_.r([_.XX("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qz.prototype,"onPanelContentVisibleChanged",null);Qz=_.r([_.A({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Qz);
_.F(Qz,"ytd-clip-section-renderer",function(){if(NWU!==void 0)return NWU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return NWU=B},{mode:1});var zhr;var qH=function(){return _.c.apply(this,arguments)||this};
_.l(qH,_.c);_.p=qH.prototype;
_.p.onKeyDown=function(B){if(this.snippetElements.length!==0&&(B=B.keyCode,B===38||B===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);B===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.IH(this.highlightedIndex,-1,this.snippetElements.length);B=this.snippetElements.length;var R=this.highlightedIndex%B;this.highlightedIndex=R*B<0?R+B:R;B=this.snippetElements[this.highlightedIndex];this.highlightSnippet(B);this.ensureVisible(B)}};
_.p.onKeyUp=function(B){var R=this;i94(B)&&(B.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.dV.cancelJob(this.inputTimerId),this.inputTimerId=_.dV.addLowPriorityJob(function(){R.typedValue&&(R.fetchSnippets(R.typedValue),R.logInputGesture(R.data))},1E3))};
_.p.onClick=function(B){(B=_.jNv(B.target,null,"snippet-item"))&&this.selectSnippet(B)};
_.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 B=this;this.inputElement.addEventListener("focus",function(){B.snippetsWrapper.style.removeProperty("display")})};
_.p.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.p.getSourceTimelines=function(){if(!this.data)return[];var B=[];if(this.data.searchInVideoSources)for(var R=_.h(this.data.searchInVideoSources),V=R.next();!V.done;V=R.next())V=V.value,V==="SEARCH_IN_VIDEO_SOURCE_ASR"?B.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):V==="SEARCH_IN_VIDEO_SOURCE_OCR"&&B.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return B};
_.p.fetchSnippets=function(B){var R=_.oF(this.hostElement,"yt-get-current-video-id-action")[0],V=this.getSourceTimelines();B={getSearchInVideoCommand:{externalVideoId:R,query:B!=null?B:"",sourceTimelines:V},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}})};
_.p.filterSnippets=function(B,R){var V=this;if(R){this.filteredSnippets=(0,_.M_.unsafeClone)(B);var e=RegExp(_.C8_(R),"i");this.filteredSnippets=this.filteredSnippets.filter(function(t){return e.test(V.ytRendererBehavior.getSimpleString(t.snippet))});
B=_.h(this.filteredSnippets);for(var X=B.next();!X.done;X=B.next()){X=X.value;var Y=this.ytRendererBehavior.getSimpleString(X.snippet);X.snippet={runs:[{text:Y.substring(0,Y.toLowerCase().indexOf(R))},{text:Y.substring(Y.toLowerCase().indexOf(R),Y.toLowerCase().indexOf(R)+R.length),bold:!0},{text:Y.substring(Y.toLowerCase().indexOf(R)+R.length,Y.length)}]}}}else this.filteredSnippets=B};
_.p.onUpdateSearchInVideoResults=function(B){if(!(this.snippets.length>0)){var R,V,e;if((e=(R=_.D(B,O9n))==null?void 0:(V=R.results)==null?void 0:V.length)!=null&&e){var X;this.filteredSnippets=this.snippets=((X=_.D(B,O9n))==null?void 0:X.results).map(function(Y){var t,b,J;return{startMs:Y==null?void 0:(t=Y.searchInVideoResultRenderer)==null?void 0:t.startMs,startTimeText:Y==null?void 0:(b=Y.searchInVideoResultRenderer)==null?void 0:b.startTimeText,snippet:Y==null?void 0:(J=Y.searchInVideoResultRenderer)==
null?void 0:J.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(B){B.classList.add("highlighted")};
_.p.removeSnippetHighlight=function(B){B.classList.remove("highlighted")};
_.p.selectSnippet=function(B){this.typedValue=String(B.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(B);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.p.ensureVisible=function(B){var R=this.snippetsWrapper.scrollTop,V=R+this.snippetsWrapper.clientHeight,e=B.offsetTop-this.snippetsWrapper.offsetTop;B=e+B.clientHeight;e<R?this.snippetsWrapper.scrollTop-=R-e:B>V&&(this.snippetsWrapper.scrollTop+=B-V)};
_.p.seekPlayer=function(B){var R,V;return _.W(function(e){if(e.nextAddress==1){if(!B)return e.jumpTo(0);R=Number(B.dataset.startOffset);return _.U(e,_.nD().getPlayerPromise(),3)}V=e.yieldResult;V.seekTo(R/1E3,!0);V.wakeUpControls();_.b3(e)})};
_.p.logInputGesture=function(B){var R=_.TE();R&&(B==null?0:B.trackingParams)&&_.sV(R,_.U5(B.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.p.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("typed-value-changed",this.typedValue))};
_.p.updateTypedValueFromBinding=function(B){this.typedValue=B.currentTarget.value};
qH.prototype.typedValueChangedForBinding=qH.prototype.typedValueChangedForBinding;qH.prototype.dataChanged=qH.prototype.dataChanged;qH.prototype.panelContentVisibleChanged=qH.prototype.panelContentVisibleChanged;qH.prototype.onClick=qH.prototype.onClick;qH.prototype.onKeyUp=qH.prototype.onKeyUp;qH.prototype.onKeyDown=qH.prototype.onKeyDown;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],qH.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qH.prototype,"data",void 0);_.r([_.E({value:[]}),_.Z("design:type",Array)],qH.prototype,"snippets",void 0);_.r([_.E({value:[]}),_.Z("design:type",Array)],qH.prototype,"filteredSnippets",void 0);_.r([_.E({value:[]}),_.Z("design:type",Array)],qH.prototype,"snippetElements",void 0);
_.r([_.Yp("#siv-input"),_.Z("design:type",HTMLElement)],qH.prototype,"inputElement",void 0);_.r([_.Yp("#siv-snippets-wrapper"),_.Z("design:type",HTMLElement)],qH.prototype,"snippetsWrapper",void 0);_.r([_.E(),_.Z("design:type",String)],qH.prototype,"typedValue",void 0);_.r([_.E({value:-1}),_.Z("design:type",Number)],qH.prototype,"highlightedIndex",void 0);_.r([_.R_("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[_.Nu]),_.Z("design:returntype")],qH.prototype,"onKeyDown",null);
_.r([_.R_("keyup"),_.Z("design:type",Function),_.Z("design:paramtypes",[_.Nu]),_.Z("design:returntype")],qH.prototype,"onKeyUp",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],qH.prototype,"onClick",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qH.prototype,"panelContentVisible",void 0);
_.r([_.XX("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qH.prototype,"panelContentVisibleChanged",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qH.prototype,"dataChanged",null);_.r([_.XX("typedValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qH.prototype,"typedValueChangedForBinding",null);
qH=_.r([_.A({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],qH);
_.F(qH,"ytd-search-in-video-renderer",function(){if(zhr!==void 0)return zhr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return zhr=B},{mode:1});var aeU;var cj=function(){return _.c.apply(this,arguments)||this};
_.l(cj,_.c);cj.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
cj.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]]"}}}}}};
cj.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var B,R,V,e,X=(R=_.D((B=this.data)==null?void 0:B.onClickCommand,_.MYl))==null?void 0:(V=R.item)==null?void 0:(e=V.notificationTextRenderer)==null?void 0:e.successResponseText;X&&_.VT5(this.hostElement,X)}};
_.mh.Object.defineProperties(cj.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e;return this.isProductPlaceholder&&((B=this.data)==null?void 0:(R=B.hiddenProductOptions)==null?void 0:R.showDropCountdown)&&!!((V=this.data)==null?0:(e=V.hiddenProductOptions)==null?0:e.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var B;return!this.isProductPlaceholder&&!((B=this.data)==null?0:B.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null?0:B.priceReplacementText)&&!((R=this.data)==null||!R.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],cj.prototype,"componentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],cj.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cj.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("isProductPlaceholder"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cj.prototype,"useCenterLayoutContainer",null);_.r([_.E({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],cj.prototype,"buttonOverride",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cj.prototype,"isProductPlaceholder",null);
_.r([_.K("isProductPlaceholder"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cj.prototype,"showDropCountdown",null);_.r([_.K("isProductPlaceholder","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cj.prototype,"showBrandName",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cj.prototype,"showPriceReplacementText",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cj.prototype,"showPrice",null);
_.r([_.K("isProductPlaceholder"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cj.prototype,"showMetadata",null);cj=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],cj);
_.F(cj,"ytd-product-list-item-renderer",function(){if(aeU!==void 0)return aeU;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return aeU=B},{mode:1});var dFn;var Ai=function(){return _.c.apply(this,arguments)||this};
_.l(Ai,_.c);Ai.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Ai.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Ai.prototype.panelContentVisibleChanged=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return B.playerApi?V.jumpTo(2):_.U(V,_.nD().getPlayerPromise(),3);V.nextAddress!=2&&(B.playerApi=V.yieldResult);(R=B.playerApi)==null||R.productsInVideoVisibilityUpdated(!!B.panelContentVisible);_.b3(V)})};
Ai.prototype.panelContentVisibleChanged=Ai.prototype.panelContentVisibleChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ai.prototype,"panelContentVisible",void 0);_.r([_.E(),_.Z("design:type",Object)],Ai.prototype,"data",void 0);
_.r([_.XX("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],Ai.prototype,"panelContentVisibleChanged",null);Ai=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Ai);
_.F(Ai,"ytd-product-list-renderer",function(){if(dFn!==void 0)return dFn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return dFn=B},{mode:1});var wp7;var iB=function(){var B=_.c.apply(this,arguments)||this;B.hideTimestamps=!!_.tp("hide-transcript-timestamps");B.currentCueIndex=-1;B.flatCues=[];B.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};B.TEST_ONLY={getFlatCues:function(){return B.flatCues}};
return B};
_.l(iB,_.c);_.p=iB.prototype;_.p.hideTimestampsChanged=function(){_.hp("hide-transcript-timestamps",this.hideTimestamps)};
_.p.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.p.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.p.dataChanged=function(){var B;if((B=this.data)!=null&&B.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;B=_.h(this.data.cueGroups);for(var R=B.next();!R.done;R=B.next()){R=_.h(_.D(R.value,oHo).cues);for(var V=R.next();!V.done;V=R.next())this.flatCues.push(Number(_.D(V.value,BZU).startOffsetMs))}}};
_.p.onYtPlayerTimeChanged=function(B){if(!(B<0)){for(var R=this.currentCueIndex,V=R;;){var e=V>=0?this.flatCues[V]/1E3:-1;if(B+.5<e)--V;else if(e=V+1<this.flatCues.length?this.flatCues[V+1]/1E3:Infinity,B+.5>e)V+=1;else break}V!==R&&(R>=0&&((B=this.getCueElement(R))&&B.classList.remove("active"),(R=this.getCueGroupElement(R))&&R.classList.remove("active")),(R=this.getCueElement(V))&&R.classList.add("active"),(R=this.getCueGroupElement(V))&&R.classList.add("active"),this.currentCueIndex=V,this.isHovered||
this.scrollElementToTop(V))}};
_.p.scrollElementToTop=function(B){B=this.getCueElement(B>=3?B-3:0);this.hostElement.scrollTop=Math.min(B.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.p.getCueElement=function(B){return _.w(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[B]+'"]')};
_.p.getCueGroupElement=function(B){return(B=this.getCueElement(B))&&B.parentElement?B.parentElement.parentElement:null};
_.p.onTap=function(B){var R=_.ii(B);B.target.classList.contains("cue")&&this.seekCueElement(R)};
_.p.onKeyPress=function(B){B.keyCode==13&&(B=_.jNv(B.target,null,"cue"))&&this.seekCueElement(B)};
_.p.seekCueElement=function(B){B=Number(B.getAttribute("start-offset"));_.oF(this.hostElement,"yt-transcript-player-seek",[B/1E3])};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
iB.prototype.onMouseLeave=iB.prototype.onMouseLeave;iB.prototype.onMouseEnter=iB.prototype.onMouseEnter;iB.prototype.onKeyPress=iB.prototype.onKeyPress;iB.prototype.onTap=iB.prototype.onTap;iB.prototype.dataChanged=iB.prototype.dataChanged;iB.prototype.hideTimestampsChanged=iB.prototype.hideTimestampsChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],iB.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],iB.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],iB.prototype,"hideTimestamps",void 0);_.r([_.E(),_.Z("design:type",Boolean)],iB.prototype,"isHovered",void 0);_.r([_.XX("hideTimestamps"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iB.prototype,"hideTimestampsChanged",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iB.prototype,"dataChanged",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],iB.prototype,"onTap",null);_.r([_.R_("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],iB.prototype,"onKeyPress",null);
_.r([_.R_("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iB.prototype,"onMouseEnter",null);_.r([_.R_("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iB.prototype,"onMouseLeave",null);iB=_.r([_.A({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],iB);
_.F(iB,"ytd-transcript-body-renderer",function(){if(wp7!==void 0)return wp7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wp7=B},{mode:1});var TWm;var sk=function(){var B=_.c.apply(this,arguments)||this;B.darkerPanels=_.k("web_watch_darker_panels");return B};
_.l(sk,_.c);sk.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],sk.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],sk.prototype,"darkerPanels",void 0);sk=_.r([_.A({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],sk);
_.F(sk,"ytd-transcript-footer-renderer",function(){if(TWm!==void 0)return TWm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return TWm=B},{mode:1});var xF4;var LUe;var FL=function(){var B=_.c.apply(this,arguments)||this;B.systemIcons=_.k("kevlar_system_icons");B.showClearButton=!1;return B};
_.l(FL,_.c);_.p=FL.prototype;_.p.handleInput=function(B){var R=this;B.target.value.length?_.LJ(this,"ytdTranscriptSearchBoxSearch",function(){R.emitSearchEvent(B)},500):(_.c7x(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=B.target.value.length>0};
_.p.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.p.handleClick=function(){var B,R=(B=this.data)==null?void 0:B.trackingParams;R&&_.WC(_.WK(),R)};
_.p.handleClear=function(){_.c7x(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var B,R,V=(R=_.D((B=this.data)==null?void 0:B.clearButton,_.Ii))==null?void 0:R.trackingParams;V&&_.WC(_.WK(),V);this.clear()};
_.p.emitSearchEvent=function(B){_.OI(this.hostElement,"yt-transcript-search-box-search",{query:B.target.value});var R,V;(B=(V=_.D((R=this.data)==null?void 0:R.searchButton,_.Ii))==null?void 0:V.trackingParams)&&_.WC(_.WK(),B)};
_.p.emitClearEvent=function(){_.OI(this.hostElement,"yt-transcript-search-box-clear")};
_.mh.Object.defineProperties(FL.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.w(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],FL.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],FL.prototype,"systemIcons",void 0);FL=_.r([_.A({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],FL);
_.F(FL,"ytd-transcript-search-box-renderer",function(){if(LUe!==void 0)return LUe;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return LUe=B},{mode:1});var vhi;var KUN;var rC=function(){return _.c.apply(this,arguments)||this};
_.l(rC,_.c);rC.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var B,R;this.sectionHeaderAriaLabel=(B=this.data)==null?void 0:(R=B.accessibility)==null?void 0:R.accessibilityData.label}};
rC.prototype.fireSelectedEvent=function(B){_.OI(this.hostElement,"ytd-transcript-section-header",{startMs:B})};
rC.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
rC.prototype.handleKeyPress=function(B){this.data&&B.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.mh.Object.defineProperties(rC.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=(B=this.data)==null?void 0:B.enableTappableTranscriptHeader)!=null?R:!1}}});
rC.prototype.dataChanged=rC.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],rC.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],rC.prototype,"sectionHeaderAriaLabel",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rC.prototype,"enableTappableTranscriptHeader",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rC.prototype,"dataChanged",null);
rC=_.r([_.A({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],rC);
_.F(rC,"ytd-transcript-section-header-renderer",function(){if(KUN!==void 0)return KUN;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return KUN=B},{mode:1});var Ie4;var Ehz;var gC=function(){var B=_.c.apply(this,arguments)||this;B.isEditMode=!1;B.touchCaptionsEnabled=!1;B.deleteCaptionCorrectionPopupCommand=null;B.voteCaptionCorrectionPopupCommand=null;B.roundedContainer=!0;B.mouseOver=!1;B.textChanged=!1;B.messages={suggest_correction:_.Wz("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Wz("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Wz("submit_correction",void 0,"Submit for review"),cancel_correction:_.Wz("cancel_correction",
void 0,"Cancel"),replay_segment:_.Wz("replay_segment",void 0,"Re-play segment"),delete_correction:_.Wz("delete_correction",void 0,"Delete correction")};B.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return B};
_.l(gC,_.c);_.p=gC.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(B){if(this.deleteCaptionCorrectionPopupCommand){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);R&&this.ytdOpenPopupBehavior.openPopup(R);B.stopPropagation()}};
_.p.handleSubmit=function(B){if(this.data&&this.data.submitCaptionCorrectionCommand&&(B.stopPropagation(),this.textChanged)){var R;B=(R=_.D(this.data.submitCaptionCorrectionCommand,_.ke_))==null?void 0:R.params;R=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:B,correctionText:String(this.ironTextAreaElement.value),originalText:_.FF(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(R);this.isEditMode=!1}};
_.p.handleUpdateSegmentText=function(B){(B=_.D(B,S2i))&&B.targetId&&this.data&&B.targetId===this.data.targetId&&(B.userCorrection&&(this.editedText=B.userCorrection),B.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.FF(this.data.snippet)),B.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=B.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=B.voteCaptionCorrectionPopupCommand?
B.voteCaptionCorrectionPopupCommand:null,B.accessibility&&(this.segmentAriaLabel=B.accessibility.accessibilityData.label))};
_.p.handleCancel=function(B){this.isEditMode=!1;B.stopPropagation();this.logClientVe(159409)};
_.p.handleEditSegmentCommand=function(B){(B=_.D(B,yOo))&&B.targetId&&this.data&&B.targetId===this.data.targetId&&this.handleEdit()};
_.p.handleEditButtonClick=function(B){this.data&&(this.handleEdit(),B.stopPropagation())};
_.p.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var B;(B=this.ironTextAreaElement.textarea)==null||B.focus();this.logClientVe(159407)}};
_.p.handleMouseEnter=function(){this.mouseOver=!0};
_.p.handleMouseLeave=function(){this.mouseOver=!1};
_.p.handleReplay=function(B){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),B.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(B){this.data&&(this.isEditMode?B.stopPropagation():this.isEnterPress(B)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(B)&&this.logClientVe(138758))};
_.p.handleTextboxClick=function(B){B.stopPropagation()};
_.p.handleTextboxKeydown=function(B){this.isControlEnterPress(B)?this.handleSubmit(B):B.key==="Escape"&&this.handleCancel(B)};
_.p.handleTextboxKeyup=function(){this.textChanged=_.FF(this.latestText)!==String(this.ironTextAreaElement.value)};
_.p.fireSelectedEvent=function(B){_.OI(this.hostElement,"yt-transcript-segment-selected",{startMs:B})};
_.p.fireReplayEvent=function(B,R){_.OI(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(B-100,0),endMs:R})};
_.p.fireEditEvent=function(B,R){_.OI(this.hostElement,"yt-transcript-segment-edit",{startMs:B,endMs:R})};
_.p.isEnterPress=function(B){return B.key==="Enter"||B.code==="Enter"||B.code==="NumpadEnter"||B.keyCode===13?!0:!1};
_.p.isControlEnterPress=function(B){var R=B.key==="Enter"||B.code==="Enter"||B.code==="NumpadEnter"||B.keyCode===13;return(B.ctrlKey||B.metaKey)&&R};
_.p.isCopyPress=function(B){var R=B.ctrlKey;return B.key==="c"&&R};
_.p.logClick=function(){var B,R=(B=this.data)==null?void 0:B.trackingParams;R&&_.WC(_.WK(),R)};
_.p.logClientVe=function(B){_.ty(_.WK(),_.kB(B))};
_.mh.Object.defineProperties(gC.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}}});
gC.prototype.handleMouseLeave=gC.prototype.handleMouseLeave;gC.prototype.handleMouseEnter=gC.prototype.handleMouseEnter;gC.prototype.dataChanged=gC.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],gC.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],gC.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],gC.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],gC.prototype,"isEditMode",void 0);_.r([_.E(),_.Z("design:type",Object)],gC.prototype,"touchCaptionsEnabled",void 0);_.r([_.E(),_.Z("design:type",Object)],gC.prototype,"editedText",void 0);_.r([_.E(),_.Z("design:type",Object)],gC.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.r([_.E(),_.Z("design:type",Object)],gC.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.r([_.E(),_.Z("design:type",String)],gC.prototype,"segmentAriaLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],gC.prototype,"roundedContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],gC.prototype,"mouseOver",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],gC.prototype,"textChanged",void 0);_.r([_.E(),_.Z("design:type",Object)],gC.prototype,"messages",void 0);
_.r([_.Yp("#suggestion"),_.Z("design:type",Object)],gC.prototype,"ironTextAreaElement",void 0);_.r([_.K("data","editedText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gC.prototype,"latestText",null);_.r([_.K("touchCaptionsEnabled","isEditMode"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gC.prototype,"enableEditButton",null);
_.r([_.K("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gC.prototype,"enableUndoButton",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gC.prototype,"dataChanged",null);_.r([_.R_("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gC.prototype,"handleMouseEnter",null);
_.r([_.R_("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gC.prototype,"handleMouseLeave",null);gC=_.r([_.A({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],gC);
_.F(gC,"ytd-transcript-segment-renderer",function(){if(Ehz!==void 0)return Ehz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Ehz=B},{mode:1});var ZT=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};B.isError=!1;B.darkerPanels=_.k("web_watch_darker_panels");B.segmentOffsets=[];B.segmentIndex=-1;return B};
_.l(ZT,_.c);_.p=ZT.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(B){for(var R=this.segmentIndex,V=R;;){if(V>=0){var e=this.segmentOffsets[V].start;var X=this.segmentOffsets[V].isAutoScrollable}else e=-1,X=!0;var Y=B+.5;if(!X){e=V+1<this.segmentOffsets.length?this.segmentOffsets[V+1].start:Infinity;if(Y>=e){V+=1;continue}V=-1;break}if(Y<e)e=V-1>=0&&this.segmentOffsets[V-1].isAutoScrollable,X=V===0||e?1:2,V-=X;else if(X=V+1<this.segmentOffsets.length&&this.segmentOffsets[V+1].isAutoScrollable?1:2,e=V+X<this.segmentOffsets.length?
this.segmentOffsets[V+X].start:Infinity,Y>e)V+=X;else{if(V<0)break;V<this.segmentOffsets.length&&Y>this.segmentOffsets[V].end&&(V=-1);break}}if(R!==V){if(R>=0){var t;(t=this.getSegmentElement(R))==null||t.classList.remove("active")}this.segmentIndex=V;if(!(V<0)){var b;(b=this.getSegmentElement(V))==null||b.classList.add("active");this.isHovered||this.scrollElementToTop(V)}}};
_.p.handleSegmentEdit=function(B){B.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=B.target,_.oF(this.hostElement,"yt-transcript-player-edit",[B.detail.startMs/1E3,B.detail.endMs/1E3]))};
_.p.handleSegmentSelected=function(B){_.oF(this.hostElement,"yt-transcript-player-seek",[B.detail.startMs/1E3])};
_.p.handleSegmentReplay=function(B){_.oF(this.hostElement,"yt-transcript-player-replay",[B.detail.startMs/1E3,B.detail.endMs/1E3])};
_.p.handleSectionHeaderSelected=function(B){_.oF(this.hostElement,"yt-transcript-player-seek",[B.detail.startMs/1E3])};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
_.p.onRetryButtonClick=function(){_.OI(this.hostElement,"transcript-retry-button-click")};
_.p.getSegmentElement=function(B){return _.w(this.hostElement).querySelector(":nth-child("+(B+1)+")")};
_.p.scrollElementToTop=function(B){B=this.getSegmentElement(B>=2?B-2:0);this.hostElement.scrollTop=Math.min(B.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.p.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(B){var R,V=(R=B.transcriptSegmentRenderer)!=null?R:B.transcriptSectionHeaderRenderer;return{start:Number(V.startMs)/1E3,end:Number(V.endMs)/1E3,isAutoScrollable:B.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.p.clearHighlightedSegments=function(){var B=_.w(this.hostElement);B=_.h(B.querySelectorAll("ytd-transcript-segment-renderer"));for(var R=B.next();!R.done;R=B.next())R.value.classList.remove("active")};
_.mh.Object.defineProperties(ZT.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:B.searchResultSegments)||((R=this.data)==null?void 0:R.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
ZT.prototype.onMouseLeave=ZT.prototype.onMouseLeave;ZT.prototype.onMouseEnter=ZT.prototype.onMouseEnter;ZT.prototype.handleSectionHeaderSelected=ZT.prototype.handleSectionHeaderSelected;ZT.prototype.handleSegmentReplay=ZT.prototype.handleSegmentReplay;ZT.prototype.handleSegmentSelected=ZT.prototype.handleSegmentSelected;ZT.prototype.handleSegmentEdit=ZT.prototype.handleSegmentEdit;ZT.prototype.segmentsChanged=ZT.prototype.segmentsChanged;
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],ZT.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ZT.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],ZT.prototype,"isError",void 0);
_.r([_.E(),_.Z("design:type",Object)],ZT.prototype,"noResultLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ZT.prototype,"darkerPanels",void 0);_.r([_.K("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],ZT.prototype,"segments",null);_.r([_.K("segments","noResultLabel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ZT.prototype,"displayNoResults",null);
_.r([_.XX("segments"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZT.prototype,"segmentsChanged",null);_.r([_.R_("yt-transcript-segment-edit"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ZT.prototype,"handleSegmentEdit",null);_.r([_.R_("yt-transcript-segment-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ZT.prototype,"handleSegmentSelected",null);
_.r([_.R_("yt-transcript-segment-replay"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ZT.prototype,"handleSegmentReplay",null);_.r([_.R_("ytd-transcript-section-header"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ZT.prototype,"handleSectionHeaderSelected",null);_.r([_.R_("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZT.prototype,"onMouseEnter",null);
_.r([_.R_("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZT.prototype,"onMouseLeave",null);ZT=_.r([_.A({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],ZT);
_.F(ZT,"ytd-transcript-segment-list-renderer",function(){if(Ie4!==void 0)return Ie4;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Ie4=B},{mode:1});var mQ=function(){var B=_.c.apply(this,arguments)||this;B.hideTimestamps=!!_.tp("hide-transcript-timestamps");B.isLoadingTranscripts=!1;B.darkerPanels=_.k("web_watch_darker_panels");B.isError=!1;B.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return B};
_.l(mQ,_.c);_.p=mQ.prototype;_.p.headerChanged=function(){var B,R;this.baseGetTranscriptsCommand=(R=_.D((B=this.data)==null?void 0:B.header,HGe))==null?void 0:R.onTextChangeCommand};
_.p.bodyChanged=function(){var B=this.getBodyRenderer();B&&(B.initialSegments&&(this.initialTranscriptsRenderer=B),B.noResultLabel&&(this.noResultLabel=B.noResultLabel),B.retryLabel&&(this.retryLabel=B.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(B){var R=this;if(B){var V=B.detail.query;if(this.baseGetTranscriptsCommand){var e;B=(e=_.D(this.baseGetTranscriptsCommand,_.tIR))==null?void 0:e.params;var X;e=_.D((X=this.data)==null?void 0:X.footer,Rp2);var Y;if((X=(Y=_.D(e==null?void 0:e.languageMenu,UPo))==null?void 0:Y.subMenuItems)&&X.length>0&&(Y=X.find(function(J){return J.selected}))){var t,b;
B=(t=Y.continuation)==null?void 0:(b=t.reloadContinuationData)==null?void 0:b.continuation}t=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:B,searchQuery:V}});this.ytComponentBehavior.resolveCommand(t,{commandController:{onServerError:function(){R.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});cto(this.ytContinuationHandlerBehavior,function(){return V===R.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 B={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:B}))};
_.p.hideTimestampsChanged=function(){_.hp("hide-transcript-timestamps",this.hideTimestamps)};
_.p.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.p.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.p.handleSignalActionCopyTranscript=function(){var B=this,R=this.getBodyRenderer();R&&(R=((R==null?void 0:R.searchResultSegments)||(R==null?void 0:R.initialSegments)||[]).map(function(V){return _.D(V,kQ4)}).filter(function(V){return!!V}).map(function(V){return{snippet:V.snippet||{runs:[{text:""}]},
startTimeText:V.startTimeText||{simpleText:""}}}).map(function(V){var e=(V.snippet.runs||[]).reduce(function(X,Y){return X+Y.text},"");
return B.hideTimestamps?e:V.startTimeText.simpleText+" "+e}).join("\n"),this.copyToClipboard(R))};
_.p.copyToClipboard=function(B){navigator.clipboard&&navigator.clipboard.writeText(B)};
_.p.getCurrentSearchBoxText=function(){var B;return(B=this.searchBox)==null?void 0:B.value};
_.p.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.p.getBodyRenderer=function(){var B;return _.D((B=this.data)==null?void 0:B.body,MMe)};
_.p.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.mh.Object.defineProperties(mQ.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.w(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
mQ.prototype.hideTimestampsChanged=mQ.prototype.hideTimestampsChanged;mQ.prototype.searchCleared=mQ.prototype.searchCleared;mQ.prototype.fireSearch=mQ.prototype.fireSearch;mQ.prototype.onReloadContinuationFinish=mQ.prototype.onReloadContinuationFinish;mQ.prototype.bodyChanged=mQ.prototype.bodyChanged;mQ.prototype.headerChanged=mQ.prototype.headerChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],mQ.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],mQ.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],mQ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],mQ.prototype,"hideTimestamps",void 0);
_.r([_.E(),_.Z("design:type",Object)],mQ.prototype,"isLoadingTranscripts",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],mQ.prototype,"darkerPanels",void 0);_.r([_.E(),_.Z("design:type",Object)],mQ.prototype,"isError",void 0);_.r([_.XX("data.header"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mQ.prototype,"headerChanged",null);
_.r([_.bp("data.body"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mQ.prototype,"bodyChanged",null);_.r([_.R_("yt-reload-continuation-finish"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mQ.prototype,"onReloadContinuationFinish",null);_.r([_.R_("yt-transcript-search-box-search"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],mQ.prototype,"fireSearch",null);
_.r([_.R_("yt-transcript-search-box-clear"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mQ.prototype,"searchCleared",null);_.r([_.XX("hideTimestamps"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mQ.prototype,"hideTimestampsChanged",null);mQ=_.r([_.A({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],mQ);
_.F(mQ,"ytd-transcript-search-panel-renderer",function(){if(vhi!==void 0)return vhi;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return vhi=B},{mode:1});var $w=function(){var B=_.c.apply(this,arguments)||this;B.player=null;B.playerPollJobId=0;return B};
_.l($w,_.c);_.p=$w.prototype;_.p.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.p.onLoadReloadContinuation=function(B){_.k("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:B.target.data.continuation}}):(B={clickTrackingParams:B.target.data.clickTrackingParams,getTranscriptEndpoint:{params:B.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.Oz().resolve(_.oC).resolveCommand(B,{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 B=this,R;return _.W(function(V){if(V.nextAddress==1)return(R=_.Pr())?_.U(V,R.getPlayerPromise(),2):V.return();B.player=V.yieldResult;B.playerPollJobId=_.dV.addLowPriorityJob(function(){B.getPlayerVideoProgress()},1E3);
B.player.addEventListener("onCueRangeEnter",function(e){B.onCueRangeEnter(e)});
B.player.addEventListener("onCueRangeExit",function(e){B.onCueRangeExit(e)});
B.player.addEventListener("onStateChange",function(e){B.onPlayerStateChange(e)});
B.player.addEventListener("SEEK_TO",function(e){B.onPlayerSeek(e)});
_.b3(V)})};
_.p.getPlayerVideoProgress=function(){var B=this;_.dV.cancelJob(this.playerPollJobId);if(this.player){var R=this.player.getCurrentTime();_.oF(this.hostElement,"yt-player-time-changed",[R])}this.playerPollJobId=_.dV.addLowPriorityJob(function(){B.getPlayerVideoProgress()},1E3)};
_.p.stopPlayerListening=function(){this.player=null;_.dV.cancelJob(this.playerPollJobId)};
_.p.onPlayerStateChange=function(B){B===2&&this.removePendingCue()};
_.p.onPlayerSeek=function(B){var R;if(R=this.pendingReplayCueId)R=this.pendingReplayCueId,R=B===(_.k("web_transcript_cue_id_killswitch")?Number(R):Number(R.split("_")[1]));R||this.removePendingCue()};
_.p.onCueRangeEnter=function(B){W$n(B)&&(this.pendingReplayCueId=B)};
_.p.onCueRangeExit=function(B){W$n(B)&&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(B){this.player&&this.player.seekTo(B,!0)};
_.p.onYtTranscriptPlayerReplay=function(B,R){this.player&&(this.player.addCueRange(t06(B),B,R),this.player.seekTo(B,!0),this.player.playVideo())};
_.p.onYtTranscriptPlayerEdit=function(B,R){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(t06(B),B,R),this.player.seekTo(B,!0))};
$w.prototype.onLoadReloadContinuation=$w.prototype.onLoadReloadContinuation;$w.prototype.panelContentVisibleChanged=$w.prototype.panelContentVisibleChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],$w.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],$w.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$w.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$w.prototype,"panelContentVisible",void 0);_.r([_.XX("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$w.prototype,"panelContentVisibleChanged",null);
_.r([_.R_("yt-load-reload-continuation"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],$w.prototype,"onLoadReloadContinuation",null);$w=_.r([_.A({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],$w);
_.F($w,"ytd-transcript-renderer",function(){if(xF4!==void 0)return xF4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return xF4=B},{mode:1});var Ql4;var qRe;var Cz=function(){return _.c.apply(this,arguments)||this};
_.l(Cz,_.c);Cz.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.eO(this.hostElement,[this.data.clickCommand],this.hostElement))};
Cz.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.ww)()+_.QE)+"px)"};
Cz.prototype.updateShouldHideFromBinding=function(B){this.shouldHide=B.detail.value};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Cz.prototype,"rendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Cz.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],Cz.prototype,"shouldHide",void 0);Cz=_.r([_.A({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Cz);
_.F(Cz,"ytd-ad-engagement-panel-banner-renderer",function(){if(qRe!==void 0)return qRe;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return qRe=B},{mode:_.up("kevlar_poly_si_batch_j070")?1:2});var c9z;var Pj=function(){var B=_.c.apply(this,arguments)||this;B.modernPanels=_.k("kevlar_watch_modern_panels");B.buttonUpdate=_.k("web_modern_buttons");B.adsSemanticText=_.k("enable_ads_web_ep_buenos_aires_and_padding_fix");return B};
_.l(Pj,_.c);Pj.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.r([_.E(),_.Z("design:type",Object)],Pj.prototype,"data",void 0);_.r([_.E({computed:"computeHideDefaultAdBadge(data)"}),_.Z("design:type",Boolean)],Pj.prototype,"hideDefaultAdBadge",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Pj.prototype,"modernPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Pj.prototype,"buttonUpdate",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Pj.prototype,"adsSemanticText",void 0);
Pj=_.r([_.A({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Pj);
_.F(Pj,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(c9z!==void 0)return c9z;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return c9z=B},{mode:1});var A96;var nz=function(){var B=_.c.apply(this,arguments)||this;B.darkerPanels=_.k("web_watch_darker_panels");B.enableSqueezebackPanels=_.k("web_shorts_enable_squeezeback_panels");B.enableAnchoredPanel=_.k("desktop_shorts_v2_anchored_panel");B.modernPanels=_.k("kevlar_watch_modern_panels");B.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return B};
_.l(nz,_.c);_.p=nz.prototype;_.p.computeAdsInfoButton=function(){if(_.k("web_modern_buttons")){var B,R;return(R=_.D((B=this.data)==null?void 0:B.subtitleComplex,VM4))==null?void 0:R.adInfoRenderer}};
_.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 B;(B=this.data)!=null&&B.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.k("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.p.focus=function(B){this.titleElement&&_.rV(this.titleElement,B)};
_.p.computeTitleAriaLabel=function(B){var R=[];if(B.title){var V,e;R.push(this.ytRendererBehavior.getSimpleString(B.title)||((V=B.title.accessibility)==null?void 0:(e=V.accessibilityData)==null?void 0:e.label))}B.contextualInfo&&R.push(this.ytRendererBehavior.getSimpleString(B.contextualInfo));return R.join(" ")};
_.p.onHeaderClick=function(B){this.shouldTriggerHeaderClick(B)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.eO(this.hostElement,[this.data.onClickCommand],this.hostElement)):(B=this.getVisibilityToggleButton())&&B.click())};
_.p.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var B=_.D(this.data.visibilityButton,_.Ii)||_.D(this.data.visibilityButton,_.EN);B&&this.ytRendererBehavior.logExplicitClick(B)}};
_.p.getVisibilityToggleButton=function(){var B=_.w(this.hostElement).querySelector("#visibility-button").firstElementChild;return(B==null?void 0:B.is)==="ytd-toggle-button-renderer"?B:null};
_.p.shouldTriggerHeaderClick=function(B){return!_.g1(_.Az(B),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.p.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(B){B=_.D(B,_.$hU);this.targetId&&(B==null?void 0:B.targetId)===this.targetId&&(B=B.navigationButton)&&this.set("data.navigationButton",B)};
_.mh.Object.defineProperties(nz.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.k("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var B;return!!(((B=this.entity)==null?0:B.isActionButtonHidden)||this.hideActionButton)}}});
nz.prototype.collapsedChanged=nz.prototype.collapsedChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],nz.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],nz.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],nz.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],nz.prototype,"targetId",void 0);_.r([_.E(),_.Z("design:type",Boolean)],nz.prototype,"collapsed",void 0);_.r([_.E(),_.Z("design:type",Boolean)],nz.prototype,"hideActionButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],nz.prototype,"shortsPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],nz.prototype,"liveChatEngagementPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nz.prototype,"darkerPanels",void 0);_.r([_.Yp("#title"),_.Z("design:type",HTMLElement)],nz.prototype,"titleElement",void 0);_.r([_.E({computed:"computeAdsInfoButton(data)"}),_.Z("design:type",Object)],nz.prototype,"adsInfoButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nz.prototype,"enableSqueezebackPanels",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nz.prototype,"enableAnchoredPanel",void 0);_.r([_.E({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(B,R){return _.p7(B.entities,"engagementPanelTitleHeaderEntity",R)}}),
_.Z("design:type",Object)],nz.prototype,"entity",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nz.prototype,"modernPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],nz.prototype,"adsSemanticText",null);_.r([_.bp("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nz.prototype,"collapsedChanged",null);
_.r([_.K("entity","hideActionButton"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],nz.prototype,"isActionButtonHidden",null);nz=_.r([_.A({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],nz);
_.F(nz,"ytd-engagement-panel-title-header-renderer",function(){if(A96!==void 0)return A96;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return A96=B},{mode:1});var i5U;var uB=function(){return _.c.apply(this,arguments)||this};
_.l(uB,_.c);uB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],uB.prototype,"data",void 0);uB=_.r([_.A({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],uB);
_.F(uB,"ytd-macro-markers-info-item-renderer",function(){if(i5U!==void 0)return i5U;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return i5U=B},{mode:1});var slm;var gho=function(B,R,V,e,X,Y){_.Hn.call(this);var t=this;this.JSC$20057_containerElement=B;this.hostElement=R;this.supportedSyncItems=V;this.syncEntityKey=e;this.options=X;this.renderLazyListItems=Y;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;FUn(this);r96(this);this.JSC$20057_scrollAnimation=new _.dQ(function(b){B.scrollTop=b});
_.t4(this,this.JSC$20057_scrollAnimation);this.addOnDisposeCallback(function(){t.exitBrowsingMode(!1);t.activeItem&&t.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.l(gho,_.Hn);var FUn=function(B){var R=_.Ge(_.Oz().resolve(_.zk),function(V){return V.entities.markersEngagementPanelSyncEntity||{}},function(V,e){var X;
V[B.syncEntityKey]!==e[B.syncEntityKey]&&((X=V[B.syncEntityKey])==null?void 0:X.activeItemIndex)!==void 0&&B.updatePanelActiveItem(V[B.syncEntityKey].activeItemIndex)});
B.unsubscribeFromTimedMarkersListSyncEntity=R;B.addOnDisposeCallback(R);Z5N(B)},Z5N=function(B){var R=_.Oz().resolve(_.zk);
R=_.cbd(R.getState(),B.syncEntityKey);(R==null?void 0:R.activeItemIndex)!==void 0&&(R=B.getItemByIndex(R.activeItemIndex))&&B.setActiveItem(R)},r96=function(B){var R=new _.o7(B.onScroll,50,B);
_.t4(B,R);var V=function(){R.fire()};
B.JSC$20057_containerElement.addEventListener("scroll",V);B.addOnDisposeCallback(function(){B.JSC$20057_containerElement.removeEventListener("scroll",V)})};
_.p=gho.prototype;
_.p.updatePanelActiveItem=function(B){var R=this.getItemByIndex(B);if(R){if(this.setActiveItem(R),this.contentVisible)if(this.browsingMode){var V;((V=this.options)==null?void 0:V.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(B=mFe(this),R.offsetTop<this.JSC$20057_containerElement.clientHeight+this.JSC$20057_containerElement.scrollTop&&B&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));$Fm(this)}else this.scrollToItem(R)}else _.KE(new _.H8("Could not find "+this.supportedSyncItems+
" sync child to set active.",B,this.JSC$20057_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.p.getItemByIndex=function(B){var R;(R=this.renderLazyListItems)==null||R.call(this,B);R=this.JSC$20057_containerElement.querySelectorAll(this.supportedSyncItems);if(R.length>B)return R[B]};
_.p.setActiveItem=function(B){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));B.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=B};
_.p.scrollToItem=function(B){B=this.getScrollPositionForItem(B);this.JSC$20057_containerElement.scrollTop!==B&&this.JSC$20057_scrollAnimation.start(this.JSC$20057_containerElement.scrollTop,B,300)};
_.p.getScrollPositionForItem=function(B){if(this.JSC$20057_containerElement.querySelectorAll(this.supportedSyncItems)[0]===B)return 0;var R,V=((R=this.options)==null?0:R.percentOffset)?this.JSC$20057_containerElement.clientHeight*this.options.percentOffset:0;B=_.wk(B).y+this.JSC$20057_containerElement.scrollTop-(_.wk(this.JSC$20057_containerElement).y+V);return Math.max(0,Math.min(B,this.JSC$20057_containerElement.scrollHeight-this.JSC$20057_containerElement.offsetHeight))};
_.p.onScroll=function(){this.activeItemBelowSyncPosition=mFe(this);if(this.activeItem&&!this.JSC$20057_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20057_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var B;switch((B=this.options)==null?void 0:B.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!CVo(this));$Fm(this);break;default:this.enterBrowsingMode(!0)}}};
_.p.enterBrowsingMode=function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1){if(R.browsingMode)return X.return();R.browsingMode=!0;B&&R.hostElement.classList.add("browsing-mode");R.playerExitBrowsingModeListener=function(){R.exitBrowsingMode(!1)};
return _.U(X,_.pO(),2)}V=X.yieldResult;(e=V)==null||e.addEventListener("SEEK_TO",R.playerExitBrowsingModeListener);_.b3(X)})};
_.p.exitBrowsingMode=function(B){B=B===void 0?!0:B;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),B&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.p.removePlayerSeekListener=function(){var B=this,R,V;return _.W(function(e){if(e.nextAddress==1)return B.playerExitBrowsingModeListener?_.U(e,_.pO(),3):e.jumpTo(0);R=e.yieldResult;(V=R)==null||V.removeEventListener("SEEK_TO",B.playerExitBrowsingModeListener);B.playerExitBrowsingModeListener=void 0;_.b3(e)})};
var $Fm=function(B){var R;((R=B.options)==null?void 0:R.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(CVo(B)?B.hostElement.classList.remove("browsing-mode"):B.activeItem&&B.hostElement.classList.add("browsing-mode"))},mFe=function(B){if(!B.activeItem)return!1;
var R,V=((R=B.options)==null?0:R.percentOffset)?B.JSC$20057_containerElement.clientHeight*B.options.percentOffset:0;return B.activeItem.offsetTop>=B.JSC$20057_containerElement.scrollTop+V},CVo=function(B){if(!B.activeItem)return!1;
var R=B.activeItem.offsetTop+14<=B.JSC$20057_containerElement.scrollTop+B.JSC$20057_containerElement.clientHeight;return B.activeItem.offsetTop+B.activeItem.clientHeight-14>=B.JSC$20057_containerElement.scrollTop&&R};
gho.prototype.panelContentVisibleChanged=function(B){(this.contentVisible=B)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var PV4=function(B,R){B.syncEntityKey=R;var V;(V=B.unsubscribeFromTimedMarkersListSyncEntity)==null||V.call(B);FUn(B)},nh2=function(B,R){B.options=R};var Ok=function(){var B=_.c.apply(this,arguments)||this;B.browsingMode=!1;B.modern=_.k("web_button_rework");B.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return B};
_.l(Ok,_.c);_.p=Ok.prototype;_.p.activeItemChanged=function(){if(!_.k("synced_panel_scrolling_controller")){var B;((B=this.syncEntity)==null?void 0:B.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.p.created=function(){var B=this;_.k("synced_panel_scrolling_controller")||(this.JSC$20061_scrollAnimation=new _.dQ(function(R){B.contents.scrollTop=R}),this.boundExitBrowsingMode=function(){B.exitBrowsingMode(!1)})};
_.p.detached=function(){if(_.k("synced_panel_scrolling_controller")){var B;(B=this.scrollController)==null||B.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 B=this;_.k("synced_panel_scrolling_controller")?_.gB(this,function(){if(B.scrollController){var R;(R=B.scrollController)==null||R.exitBrowsingMode(!1);var V,e,X;(e=B.scrollController)==null||PV4(e,(X=(V=B.data)==null?void 0:V.syncModelEntityKey)!=null?X:"default-macro-markers-list-renderer-entity-key");var Y,t,b;(b=B.scrollController)==null||nh2(b,{percentOffset:(Y=B.data)==null?void 0:Y.selectedItemAlignmentPercentOffset,floatingPillType:(t=B.data)==null?void 0:t.floatingPillType})}else{var J,
G,y,S;B.scrollController=new gho(B.contents,B.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(S=(J=B.data)==null?void 0:J.syncModelEntityKey)!=null?S:"default-macro-markers-list-renderer-entity-key",{percentOffset:(G=B.data)==null?void 0:G.selectedItemAlignmentPercentOffset,floatingPillType:(y=B.data)==null?void 0:y.floatingPillType},function(M){B.renderLazyListItems(M)})}B.scrollController.panelContentVisibleChanged(!!B.panelContentVisible)}):this.exitBrowsingMode()};
_.p.computeButtonShape=function(){var B=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){B.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.p.computeSyncEnabled=function(B){return!(B==null||!B.syncButtonLabel)};
_.p.renderLazyListItems=function(B){for(var R=this.contents.children,V=0,e=0;e<R.length;e++){var X=void 0;(X=R[e].ytLazyListBehavior)==null||X.fillRemainingListItems();var Y=void 0,t=void 0;X=_.D((Y=this.data)==null?void 0:(t=Y.contents)==null?void 0:t[e],_.VUI);t=Y=void 0;if((Y=X)==null?0:(t=Y.contents)==null?0:t.length)V+=X.contents.length;if(V>=B)break}};
_.p.getItemByIndex=function(B){this.renderLazyListItems(B);var R=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(R.length>B)return R[B]};
_.p.setActiveItem=function(B){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);B.active!==void 0&&(B.active=!0);this.currentActiveItem=B};
_.p.handleSetActivePanelItemAction=function(B){if((B=_.D(B,Phn))&&this.panelTargetId===B.panelTargetId){B=B.itemIndex;if(_.k("synced_panel_scrolling_controller")){var R,V;var e=(V=(R=this.data)==null?void 0:R.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key"}else{var X;e=(X=this.data)==null?void 0:X.syncModelEntityKey}if(e){var Y;((Y=this.syncEntity)==null?void 0:Y.activeItemIndex)!==B&&this.ytdReduxBehavior.dispatch(_.SX("markersEngagementPanelSyncEntity",e,{key:e,activeItemIndex:B}))}else this.updatePanelActiveItem(B)}};
_.p.updatePanelActiveItem=function(B){var R=this.getItemByIndex(B);R?(this.setActiveItem(R),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(R)):_.KE(new _.H8("Could not find ytd-macro-markers-list-renderer sync child to set active.",B,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.p.scrollToItem=function(B){B=this.getScrollPositionForItem(B);this.contents.scrollTop!==B&&this.JSC$20061_scrollAnimation.start(this.contents.scrollTop,B,300)};
_.p.getScrollPositionForItem=function(B){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===B)return 0;B=_.wk(B).y+this.contents.scrollTop-_.wk(this.contents).y-this.getStickyHeaderHeight(B);return Math.min(B,this.contents.scrollHeight-this.contents.offsetHeight)};
_.p.getStickyHeaderHeight=function(B){if(B.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var R,V,e;return(e=(R=B.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(V=R.header)==null?void 0:V.offsetHeight)!=null?e:0}return 0};
_.p.onScroll=function(){_.k("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20061_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.p.enterBrowsingMode=function(){var B=this;return _.W(function(R){if(R.nextAddress==1){if(B.browsingMode)return R.return();B.browsingMode=!0;return _.U(R,_.nD().getPlayerPromise(),2)}B.player=R.yieldResult;B.player.addEventListener("SEEK_TO",B.boundExitBrowsingMode);_.b3(R)})};
_.p.exitBrowsingMode=function(B){this.browsingMode&&(this.browsingMode=!1,(B===void 0||B)&&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(_.k("synced_panel_scrolling_controller")){var B;(B=this.scrollController)==null||B.exitBrowsingMode()}else this.exitBrowsingMode()};
_.p.panelContentVisibleChanged=function(){if(_.k("synced_panel_scrolling_controller")){var B;(B=this.scrollController)==null||B.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Ok.prototype.panelContentVisibleChanged=Ok.prototype.panelContentVisibleChanged;Ok.prototype.dataChanged=Ok.prototype.dataChanged;Ok.prototype.activeItemChanged=Ok.prototype.activeItemChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ok.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Ok.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ok.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ok.prototype,"useCustomColors",void 0);_.r([_.E({computed:"computeSyncEnabled(data)"}),_.Z("design:type",Boolean)],Ok.prototype,"syncEnabled",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],Ok.prototype,"panelTargetId",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ok.prototype,"panelContentVisible",void 0);_.r([_.Yp("#contents"),_.Z("design:type",HTMLElement)],Ok.prototype,"contents",void 0);_.r([_.Yp("#sync-container"),_.Z("design:type",HTMLElement)],Ok.prototype,"syncContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ok.prototype,"browsingMode",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ok.prototype,"modern",void 0);_.r([_.E({selectorArgs:["data.syncModelEntityKey"],selector:_.cbd}),_.Z("design:type",Object)],Ok.prototype,"syncEntity",void 0);_.r([_.XX("syncEntity.activeItemIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ok.prototype,"activeItemChanged",null);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ok.prototype,"dataChanged",null);_.r([_.XX("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ok.prototype,"panelContentVisibleChanged",null);Ok=_.r([_.A({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Ok);
_.F(Ok,"ytd-macro-markers-list-renderer",function(){if(slm!==void 0)return slm;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return slm=B},{mode:1});var uGi;var oz=function(){return _.c.apply(this,arguments)||this};
_.l(oz,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],oz.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],oz.prototype,"data",void 0);oz=_.r([_.A({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],oz);
_.F(oz,"ytd-error-corrections-section-item-renderer",function(){if(uGi!==void 0)return uGi;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return uGi=B},{mode:1});var O5e;var Bi=function(){return _.c.apply(this,arguments)||this};
_.l(Bi,_.c);Bi.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Bi.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Bi.prototype,"data",void 0);Bi=_.r([_.A({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Bi);
_.F(Bi,"ytd-error-corrections-section-renderer",function(){if(O5e!==void 0)return O5e;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return O5e=B},{mode:1});var of6;var Rz=function(){return _.c.apply(this,arguments)||this};
_.l(Rz,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Rz.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Rz.prototype,"data",void 0);Rz=_.r([_.A({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Rz);
_.F(Rz,"ytd-topic-link-renderer",function(){if(of6!==void 0)return of6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return of6=B},{mode:1});var Bse;var Vw=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("kevlar_modern_sd_v2");B.modernLockupV2=_.k("modernize_structured_description_playlist_lockups_v2");B.modernTypography=_.k("web_modern_typography");return B};
_.l(Vw,_.c);Vw.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Vw.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Vw.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Vw.prototype,"modernLockupV2",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Vw.prototype,"modernTypography",void 0);Vw=_.r([_.A({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Vw);
_.F(Vw,"ytd-video-description-course-section-renderer",function(){if(Bse!==void 0)return Bse;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Bse=B},{mode:1});var R0j;var et=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("kevlar_modern_sd_v2");B.modernTypography=_.k("web_modern_typography");return B};
_.l(et,_.c);et.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],et.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],et.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],et.prototype,"modernTypography",void 0);
et=_.r([_.A({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],et);
_.F(et,"ytd-video-description-files-section-renderer",function(){if(R0j!==void 0)return R0j;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return R0j=B},{mode:1});var Vii;var X_=function(){return _.c.apply(this,arguments)||this};
_.l(X_,_.c);X_.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],X_.prototype,"data",void 0);X_=_.r([_.A({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],X_);
_.F(X_,"ytd-video-description-gaming-section-renderer",function(){if(Vii!==void 0)return Vii;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Vii=B},{mode:1});var e0N;var pK=function(){var B=_.c.apply(this,arguments)||this;B.isExpanded=!1;return B};
_.l(pK,_.c);pK.prototype.computeHasDefaultMetadataEndpoint=function(B){var R;B=B==null?void 0:(R=B.defaultMetadata)==null?void 0:R.runs;return!(!B||B.length!==1||!B[0].navigationEndpoint)};
pK.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.mh.Object.defineProperties(pK.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],pK.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],pK.prototype,"isExpanded",void 0);_.r([_.E({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],pK.prototype,"hasDefaultMetadataEndpoint",void 0);
_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"isExpandable",null);_.r([_.K("data","isExpandable","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"showExpandedMetadata",null);pK=_.r([_.A({is:"ytd-info-row-renderer",disableElementRegistration:!0})],pK);
_.F(pK,"ytd-info-row-renderer",function(){if(e0N!==void 0)return e0N;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return e0N=B},{mode:1});var X36;var YV=function(){var B=_.c.apply(this,arguments)||this;B.currentIndex=0;B.supportComponentResize=!0;B.modern=_.k("kevlar_modern_sd_v2");B.JSC$20087_lastScrollContainerWidth=NaN;return B};
_.l(YV,_.c);_.p=YV.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 B;this.JSC$20087_scrollContainer!==void 0&&(B=this.videoLockups)!=null&&B.length&&(B=this.JSC$20087_scrollContainer.clientWidth,B!==this.JSC$20087_lastScrollContainerWidth&&(this.JSC$20087_lastScrollContainerWidth=B,_.o_(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(B*.8,415)+"px"}),_.OI(this.hostElement,"iron-resize")))};
_.mh.Object.defineProperties(YV.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var B=[],R;if((R=this.data)==null||!R.carouselLockups)return B;R=_.h(this.data.carouselLockups);for(var V=R.next();!V.done;V=R.next()){V=V.value;var e=void 0;((e=_.D(V,zpr))==null?0:e.videoLockup)&&B.push(_.D(V,zpr).videoLockup)}return B}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.videoLockups)==null||!B.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var B=[],R;if((R=this.data)==null||!R.carouselLockups)return B;var V;return(V=_.D(this.data.carouselLockups[this.scrollCount],zpr))==null?void 0:V.infoRows}}});
YV.prototype.dataChanged=YV.prototype.dataChanged;YV.prototype.onIronResize=YV.prototype.onIronResize;YV.prototype.hiddenChanged=YV.prototype.hiddenChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],YV.prototype,"componentBehavior",void 0);_.r([_.v(_.Pu.YtdHorizontalListBehavior),_.Z("design:type",Object)],YV.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],YV.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],YV.prototype,"inlineStructuredDescription",void 0);_.r([_.E({value:2}),_.Z("design:type",Number)],YV.prototype,"initialCount",void 0);_.r([_.E(),_.Z("design:type",Object)],YV.prototype,"currentIndex",void 0);
_.r([_.E(),_.Z("design:type",Number)],YV.prototype,"scrollCount",void 0);_.r([_.E(),_.Z("design:type",Object)],YV.prototype,"supportComponentResize",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],YV.prototype,"contentHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],YV.prototype,"modern",void 0);_.r([_.Yp("#scroll-container"),_.Z("design:type",HTMLDivElement)],YV.prototype,"JSC$20087_scrollContainer",void 0);
_.r([_.XX("contentHidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YV.prototype,"hiddenChanged",null);_.r([_.K("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],YV.prototype,"videoLockups",null);_.r([_.K("videoLockups"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YV.prototype,"hasVideoLockups",null);
_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YV.prototype,"onIronResize",null);_.r([_.K("data","scrollCount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],YV.prototype,"infoRows",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YV.prototype,"dataChanged",null);YV=_.r([_.A({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],YV);
_.F(YV,"ytd-video-description-music-section-renderer",function(){if(X36!==void 0)return X36;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return X36=B},{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var p3z;var h6=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("kevlar_modern_sd_v2");B.modernTypography=_.k("web_modern_typography");return B};
_.l(h6,_.c);h6.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.r([_.E({}),_.Z("design:type",Object)],h6.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],h6.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],h6.prototype,"modernTypography",void 0);
h6=_.r([_.A({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],h6);
_.F(h6,"ytd-video-description-transcript-section-renderer",function(){if(p3z!==void 0)return p3z;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return p3z=B},{mode:1});var Y6m;_.mR(_.sx(function(B){var R=_.No(_.Ytx,function(){return B.data().firstProviderLinkStatusEntityKey}),V=_.No(_.Ytx,function(){return B.data().secondProviderLinkStatusEntityKey}),e=function(){var X,Y;
return((X=R())==null?void 0:X.linked)||((Y=V())==null?void 0:Y.linked)};
return _.N("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.N(_.Hr,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return B.data().sectionTitle}}),_.N(_.Hr,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return e()?B.data().connectedMessage:B.data().notConnectedMessage}}),_.N(_.H,{cond:e,
then:function(){return _.N(_.wb,{data:function(){return B.data().connectedButton}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.N(_.H,{cond:function(){return!e()},
then:function(){return _.N(_.wb,{data:function(){return B.data().notConnectedButton}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Hi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;return _.N("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.N("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.N(_.Hr,{text:function(){return R().sectionTitle}})),_.N("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.N(_.Hr,{text:function(){return R().bodyHeader}})),_.N("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.N(_.Hr,{text:function(){return R().bodyText}})),_.N(_.H,
{cond:function(){return R().attributionText},
then:function(){return _.N("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.N(_.Hr,{text:function(){return R().attributionText}}))}}))},"Ii"),"how-this-was-made-section-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){return _.N("yt-video-description-youchat-section-view-model",{class:_.XE("ytVideoDescriptionYouchatSectionViewModelHost")},_.N("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.N(_.Hr,{text:function(){return B.data().sectionTitle}})),_.N("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.N(_.Hr,{text:function(){return B.data().subHeaderText}})),_.N("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.N(_.qo,{data:function(){return _.D(B.data().primaryButton,
_.Tr)}})))},"Ji"),"yt-video-description-youchat-section-view-model",{props:{data:_.qq}});var t6=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("kevlar_modern_sd_v2");B.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return B};
_.l(t6,_.c);_.p=t6.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 B,R;this.hasDescriptionOnly=!(((B=this.data)==null?void 0:(R=B.items)==null?void 0:R.length)!==1||!_.D(this.data.items[0],a64))};
_.p.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.p.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.p.autoFocusDescription=function(){var B;((B=_.Oz().resolve(_.uj(_.DE)))==null?0:B.isKeyBoardInUse())&&this.description&&_.Zt(this.description)};
_.p.resize=function(){if(_.k("kevlar_disable_sd_resize"))this.JSC$20095_cardList&&_.OI(this.JSC$20095_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.OI(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.OI(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.p.scrollToSection=function(B){if(B=this.getSectionElement(B))_.oF(this.hostElement,"yt-scroll-to-watch-element",[B]),B.focus()};
_.p.getSectionElement=function(B){switch(B){case "infocards-item-section":var R;return(R=this.infocardsSection)!=null?R:null;case "transcript-item-section":var V;return(V=this.transcriptSection)!=null?V:null;case "how-this-was-made-section-item-section":var e;return(e=this.howThisWasMadeSection)!=null?e:null;case "files-item-section":var X;return(X=this.filesSection)!=null?X:null;default:return null}};
_.p.handleSetActiveItemAction=function(B){var R=_.D(B,Phn),V=R&&(R==null?void 0:R.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20095_cardList;if(R&&V){B=this.currentActiveChapter;var e=this.currentActiveProblem;R=V==null?void 0:V.getItemByIndex(R.itemIndex);var X=V=!0;R&&(R.active=!0,R.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(V=B!==R,X=!1,this.currentActiveChapter=R):(R==null?void 0:R.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(V=!1,X=e!==R,this.currentActiveProblem=R));B&&V&&(B.active=!1);e&&X&&(e.active=!1)}};
_.mh.Object.defineProperties(t6.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.k("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
t6.prototype.onYtExpanderMoreTapped=t6.prototype.onYtExpanderMoreTapped;t6.prototype.onHiddenChanged=t6.prototype.onHiddenChanged;t6.prototype.dataChanged=t6.prototype.dataChanged;t6.prototype.panelContentVisibleChanged=t6.prototype.panelContentVisibleChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],t6.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.LC),_.Z("design:type",Object)],t6.prototype,"ironResizableBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],t6.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],t6.prototype,"panelContentVisible",void 0);_.r([_.E(),_.Z("design:type",Boolean)],t6.prototype,"hasDescriptionOnly",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],t6.prototype,"inlineStructuredDescription",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],t6.prototype,"hidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],t6.prototype,"shortsPanel",void 0);_.r([_.E(),_.Z("design:type",Object)],t6.prototype,"videoSummary",void 0);_.r([_.E(),_.Z("design:type",Object)],t6.prototype,"merchShelf",void 0);
_.r([_.K("videoSummary"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],t6.prototype,"showVideoSummary",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],t6.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],t6.prototype,"engagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],t6.prototype,"watchWhileSdp",void 0);
_.r([_.Yp("ytd-expandable-video-description-body-renderer"),_.Z("design:type",Object)],t6.prototype,"description",void 0);_.r([_.Yp("ytd-horizontal-card-list-renderer"),_.Z("design:type",Object)],t6.prototype,"JSC$20095_cardList",void 0);_.r([_.Yp("ytd-horizontal-card-list-renderer[center-items]"),_.Z("design:type",Object)],t6.prototype,"problemWalkthroughCardList",void 0);_.r([_.Yp("ytd-shelf-renderer"),_.Z("design:type",Object)],t6.prototype,"shelfSection",void 0);
_.r([_.Yp("ytd-video-description-music-section-renderer"),_.Z("design:type",Object)],t6.prototype,"musicMetadataSection",void 0);_.r([_.Yp("ytd-video-description-infocards-section-renderer"),_.Z("design:type",Object)],t6.prototype,"infocardsSection",void 0);_.r([_.Yp("ytd-video-description-transcript-section-renderer"),_.Z("design:type",Object)],t6.prototype,"transcriptSection",void 0);
_.r([_.Yp("how-this-was-made-section-view-model"),_.Z("design:type",Object)],t6.prototype,"howThisWasMadeSection",void 0);_.r([_.Yp("ytd-video-description-files-section-renderer"),_.Z("design:type",Object)],t6.prototype,"filesSection",void 0);_.r([_.XX("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t6.prototype,"panelContentVisibleChanged",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t6.prototype,"dataChanged",null);_.r([_.XX("hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t6.prototype,"onHiddenChanged",null);_.r([_.R_("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t6.prototype,"onYtExpanderMoreTapped",null);
t6=_.r([_.A({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],t6);
_.F(t6,"ytd-structured-description-content-renderer",function(){if(Y6m!==void 0)return Y6m;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Y6m=B},{mode:2});var h0o;var ti6;var Wi=function(){return _.c.apply(this,arguments)||this};
_.l(Wi,_.c);Wi.prototype.computeAriaLabel=function(B){var R,V;return(B==null?void 0:(R=B.accessibility)==null?void 0:(V=R.accessibilityData)==null?void 0:V.label)||_.Wz("LOADING",void 0,"Loading")};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Wi.prototype,"data",void 0);_.r([_.E({computed:"computeAriaLabel(data)"}),_.Z("design:type",String)],Wi.prototype,"ariaLabel",void 0);Wi=_.r([_.fJ({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Wi);
_.F(Wi,"yt-content-loading-renderer",function(){if(ti6===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;h0o===void 0&&(h0o=document.createElement("template"));var e=h0o;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ti6=B}B=ti6;return B},{mode:_.up("kevlar_poly_si_batch_j043")?1:2});_.mR(_.sx(function(B){var R=_.h(_.WU(!1,void 0,"WbYeXc")),V=R.next().value,e=R.next().value;R=_.h(_.WU(!1,void 0,"msXkzc"));var X=R.next().value,Y=R.next().value;_.zM(function(){var J=_.D(B.data().collaboratePlaylistCollaborationSetting,NZr);J&&e(J.switchedOnByDefault);var G=_.D(B.data().allowNewCollaboratorsPlaylistCollaborationSetting,NZr);G&&Y(G.switchedOnByDefault);if(!J&&!G||!J&&B.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")e(!0),Y(!0)});
var t=function(J){e(J);Y(J);var G=B.data().playlistCollaborationEntityKey||"";var y=_.QL().getState();(y=_.p7(y.entities,"playlistCollaborationEntity",G))&&(y==null?void 0:y.isCollaborative)===J||_.QL().dispatch(_.SX("playlistCollaborationEntity",G,Object.assign({},y,{isCollaborative:J})))},b=function(J){Y(J)};
return _.N("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.N("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.N(_.wb,{data:function(){return B.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(J){return _.N(_.R0T,{data:J.data,
onSwitch:t})}})),_.N(_.H,{cond:V,
then:function(){return _.N("div",null,_.N("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.N(_.wb,{data:function(){return B.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(J){return _.N(_.R0T,{data:J.data,
onSwitch:b,overrideDisabled:!1})}})),_.N(_.H,{cond:X,
then:function(){return _.N("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.N(_.wb,{data:function(){return B.data().copyLinkButton}},{buttonViewModel:_.qo}))}}),_.N("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.N(_.wb,{data:function(){return B.data().playlistCollaborators}},{contentListItemViewModel:_.TjN})))}}))},"Ki"),"playlist-collaboration-view-model",{props:{data:_.qq}});var W07=_.sx(function(B){var R=B.data;var V=B.customCommandResolver;return _.N(_.OZ,null,_.N("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.N(_.wb,{data:function(){return R().adAvatar}},{adAvatarViewModel:function(e){return _.N(_.iHh,{data:e.data,
customCommandResolver:V})}})),_.N("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.N(_.H,{cond:function(){return R().headline},
then:function(e){return _.N(_.Hr,{text:e,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.N("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.N(_.wb,{data:function(){return R().adBadge}},{adBadgeViewModel:function(e){return _.N(_.Cu,{data:e.data,
hasDot:function(){return R().primaryDetailsLine!==void 0},
customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.N(_.wb,{data:function(){return R().primaryDetailsLine}},{adDetailsLineViewModel:function(e){return _.N(_.P0,{data:e.data,
customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Li"),blo=_.sx(function(B){var R=B.data;
var V=B.customCommandResolver;B=_.Zh();_.P7(B,function(){return R().interaction},V);
_.Od(B,{visibilityCallback:function(e){var X,Y=(X=R().interaction)==null?void 0:X.onFirstVisible;e&&Y&&_.Lc(Y)},
showOption:_.FP});return _.N("ad-avatar-lockup-view-model",{class:function(){var e;return((e=R().interaction)==null?0:e.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:B,"aria-label":function(){var e,X;return(e=R().interaction)==null?void 0:(X=e.accessibility)==null?void 0:X.label}},_.N(_.MN,null,_.N(_.Sv,{when:function(){return R().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.N(W07,{data:R,
customCommandResolver:V})}),_.N(_.HE,null,function(){return null})))},"Mi");_.mR(_.sx(function(B){var R=B.data;var V=B.panelContentVisibility;B=_.Zh();_.P7(B,function(){return R().interaction},b9m);
_.Od(B,{visibilityCallback:function(X){var Y,t=(Y=R().interaction)==null?void 0:Y.onFirstVisible;X&&t&&_.Lc(t)},
showOption:_.FP});_.za(function(){var X,Y;if(Y=_.qN("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var t;Y=(t=Y())==null?void 0:t.onLayoutVisibleCallback}else Y=null;(X=Y)==null||X()});
var e=function(){return V()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.N("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:B},_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.N(_.H,{cond:_.oHd("(min-width: "+((0,_.ww)()+_.QE)+"px) or (max-width: 600px)"),then:function(){return _.N(_.wb,{data:function(){return R().adImage}},{adImageViewModel:function(X){return _.N(_.VY,{data:X.data,
targetHeight:80,customCommandResolver:b9m})}})}})),_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.N(_.wb,{data:function(){return R().adAvatarLockup}},{adAvatarLockupViewModel:function(X){return _.N(blo,{data:X.data,
customCommandResolver:b9m})}})),_.N(_.H,{cond:e,
then:function(){return _.N(_.wb,{data:function(){return R().adButton}},{adButtonViewModel:function(X){return _.N(_.go,{data:X.data,
customCommandResolver:b9m})}})},
else:function(){return _.N(_.wb,{data:function(){return R().menu}},{buttonViewModel:_.qo})}}),_.N("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.N(_.wb,{data:function(){var X=_.D(R().toggleButton,_.xx);
return{toggleButtonViewModel:Object.assign({},X,{isTogglingDisabled:!0,isToggled:e()})}}},{toggleButtonViewModel:_.LO})))))},"Ni"),"panel-ad-header-image-lockup-view-model",{props:{data:_.qq,
panelContentVisibility:_.qq}});_.mR(_.sx(function(B){var R=function(){return _.D(B.data().inputComposerViewModel,GQi)},V=function(){var L;
return((L=R())==null?void 0:L.youchatPendingResponseEntityKey)||""},e=_.No(_.urn,V),X=function(){var L;
return!((L=e())==null||!L.isPendingResponse)},Y=_.h(_.WU(!0,void 0,"DR0q1d")),t=Y.next().value,b=Y.next().value,J=function(){return R().sectionTargetId||"youchat_messages_section"};
Y=_.mA();var G=_.Zh(),y=_.No(oo4,"chat_input_view_model_state"),S=BJe(),M=function(){var L;return!((L=y())==null||!L.value)};
_.zM(function(){var L;!M()&&((L=R())==null?0:L.welcomeFeatureContinuation)&&(L={continuationCommand:{token:R().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.wl(L),S(!0));var Q=J(),q;(q=_.Oz().resolve(_.uj(_.Xk)))==null||q.addEventListener("yt-navigate-start",function(){_.zr.remove(Q);S(!1)},{once:!0})});
var f=_.Wr(function(L){var Q=X()||!1;Jtn(G.value);Q||L.key!=="Enter"||L.shiftKey||(L.preventDefault(),T());return!1}),z=_.Wr(function(){b(G.value.value.length===0);
return!1}),T=function(){var L,Q,q,m,g,Vu,n,Yd,kd;
return _.W(function(a5){L=G.value.value;G.value.value="";Jtn(G.value);Q=jyi(J(),L);_.wl(Q);q=_.Osr(V());_.Lc(((m=R())==null?void 0:m.onSubmitCommand)||{});q(!0);Vu=String(Math.floor(((g=_.Yx())==null?void 0:g.getCurrentTime())||0)*1E3);Yd={continuationCommand:{token:(n=R())==null?void 0:n.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};kd={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:L,playerOffsetMs:Vu}};_.wl(Yd,{form:{formData:kd},commandController:{onSuccess:function(){q(!1)},
onServerError:function(){var lo=J();_.wl({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:lo}}]}}});q(!1)}}});
_.b3(a5)})};
return _.N("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:Y},_.N("div",{class:"chatInputViewModelChatInputWrapper"},_.N("form",{class:"chatInputViewModelChatInputForm"},_.N("textarea",{class:"chatInputViewModelChatInput",el:G,"on:keydown":f,"on:keyup":z,placeholder:function(){var L,Q;var q=_.D((Q=R())==null?void 0:Q.inputFormField,mh4);return q==null?void 0:(L=q.contentProperties)==null?void 0:L.placeholderText},
rows:1}),_.N(_.qo,{data:function(){return _.D(B.data().sendButton,_.Tr)},
onClick:function(L){L.preventDefault();T();b(G.value.value.length===0)},
buttonOverrides:function(){return{disabled:t()||X()}}})),_.N(_.Hr,{className:"chatInputViewModelChatDisclaimer",
text:function(){var L;return(L=_.D(B.data().disclaimer,_.bCT))==null?void 0:L.text}})))},"Oi"),"yt-chat-input-view-model",{props:{data:_.qq}});var J24=["engagement-panel-clip-create","engagement-panel-clip-view"],j9N=0,bQ=function(){var B=_.c.apply(this,arguments)||this;var R;B.headerData=(R=B.data)==null?void 0:R.header;B.darkerPanels=_.k("web_watch_darker_panels");B.matchContentTheme=_.k("web_watch_panel_content_match_theme");B.disableAutoFill=!1;B.isFullscreen=!1;B.isTheaterMode=!1;B.modernPanels=_.k("kevlar_watch_modern_panels");B.liveChatReplyPanel=!1;B.enableAnchoredPanel=_.k("desktop_shorts_v2_anchored_panel");B.disableBackdropFilter=
_.k("web_disable_backdrop_filter");B.trackEngagementPanelVisibility=_.k("web_watch_track_engagement_panel_visibility");B.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 B};
_.l(bQ,_.c);_.p=bQ.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]]"}},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(B){var R;
return(B==null?void 0:(R=B.webComponentHint)==null?void 0:R.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.p.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var B;if((B=this.hostElement.parentElement)==null?0:B.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.p.detached=function(){this.updateTheaterDisablement()};
_.p.showPanel=function(){var B=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.dV.addJob(function(){B.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.p.maybeScrollToItemSection=function(B){var R=this,V,e=B==null?void 0:(V=B.sectionListEngagementPanelExtras)==null?void 0:V.scrollToItemSectionIdentifier;e&&_.dV.addJob(function(){var X;(X=R.sectionListRendererElement)==null||X.scrollToItemSection(e)},8)};
_.p.hidePanel=function(){var B=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.dV.addJob(function(){B.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(B,R,V,e){var X=this;if((B=B==null?void 0:B.engagementPanelSectionListRenderer)||e){if(B){e=B.header;var Y=B.content,t=B.footer;(B=B.targetId)&&this.set("data.targetId",B);e&&this.set("data.header",e);Y&&this.set("data.content",Y);t&&this.set("data.footer",t)}else e&&(B=e.content,Y=e.secondaryHeaderContent,(e=e.targetId)&&this.set("data.targetId",e),B&&this.set("data.content",B),Y&&(this.secondaryHeaderData=Y));this.updateChildVisibilityProperties();if(R){var b;_.k("kevlar_update_panel_focus_scroll_killswitch")||
(b={preventScroll:!0});this.focus(b)}_.gB(this,function(){_.OI(X.hostElement,"yt-refit");X.maybeScrollToItemSection(V)})}};
_.p.computeHeaderData=function(){var B,R=(0,_.M_.unsafeClone)((B=this.data)==null?void 0:B.header);if(R){B=new _.P(Object.keys(R)[0]);var V=_.D(R,B),e=_.D(this.secondaryHeaderData,B);e&&_.D9(R,B,Object.assign({},e,V))}return R};
_.p.getReloadContinuation=function(){var B,R,V,e=_.h(((B=this.data)==null?void 0:(R=B.content)==null?void 0:(V=R.sectionListRenderer)==null?void 0:V.continuations)||[]);for(B=e.next();!B.done;B=e.next())if(B=B.value,B.reloadContinuationData)return B.reloadContinuationData.continuation};
_.p.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var B;((B=this.data)==null?0:B.targetId)&&(B=this.contentElement.firstElementChild)&&B.setAttribute("panel-target-id",this.data.targetId)};
_.p.forwardPopupClosedToFlowRootRenderer=function(){var B=_.w(this.hostElement).querySelector("ytd-flow-root-renderer");if(B)B.onPopupClosed()};
_.p.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var B=_.k("web_watch_imax_theater_mode")&&this.isTheaterMode;B=_.k("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||B;if(_.k("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||B){var R;this.visibility=
(R=this.data)==null?void 0:R.visibility;var V;this.trackEngagementPanelVisibility&&((V=this.data)==null?void 0:V.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var e,X,Y,t;this.contentEmpty=!!(((e=this.data)==null?0:(X=e.content)==null?0:X.structuredDescriptionContentRenderer)&&Object.keys((Y=this.data)==null?void 0:(t=Y.content)==null?void 0:t.structuredDescriptionContentRenderer).length===0);(R=_.Oz().resolve(_.Sf))&&R.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.p.isTheaterModeChanged=function(){_.k("web_watch_imax_theater_mode")&&this.hidePanel()};
_.p.isFullscreenChanged=function(){_.k("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.p.focus=function(B){if(this.header)this.header.focus(B);else{var R;(R=_.w(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||R.focus(B)}};
_.p.visibilityChanged=function(){if(!_.k("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var B=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",V=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",X=e||!this.lastVisibility,Y,t,b=(Y=this.data)==null?void 0:(t=Y.identifier)==null?void 0:t.tag,
J;if(((J=this.data)==null?0:J.onShowCommands)&&B&&X)_.eO(this.hostElement,this.data.onShowCommands,this.hostElement),b&&_.g6().dispatch(_.or({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:b}}));else{var G;((G=this.data)==null?0:G.onHideCommands)&&R&&V&&(_.eO(this.hostElement,this.data.onHideCommands,this.hostElement),b&&_.g6().dispatch(_.or({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:b}})))}B&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*j9N++));_.k("kevlar_watch_focus_on_engagement_panels")&&
B&&e&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.p.notifyVisibilityChanged=function(B){var R;_.Bz(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,B,(R=this.data)==null?void 0:R.targetId])};
_.p.updateTheaterDisablement=function(){if(!_.k("kevlar_watch_theater_disablement_killswitch")){var B=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&J24.includes(B)&&!_.k("watch_next_grid_ignore_disallowed_panels")){var R=_.as(_.g6().getState()),V=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";B!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():V?(this.originalTheaterState===void 0&&(this.originalTheaterState=R,this.theaterDisablementPanelIdentifier=
B),R&&_.oF(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.p.clearTheaterDisablement=function(){_.oF(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.p.updateChildVisibilityProperties=function(){this.hostElement||_.k("kevlar_panel_property_init_killswitch")||this._enableProperties();var B=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=B);var R,V=(R=this.headerElement)==null?void 0:R.firstElementChild;if(V&&!this.adHeaderImageLockupViewModel){R=B==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";V.collapsed=R;V=_.w(V).querySelector("#visibility-button");if(!V)return;(V=V.firstElementChild)&&
V.polymerController.is==="ytd-toggle-button-renderer"&&V.polymerController.data.isToggled!==R&&V.polymerController.set("data.isToggled",R)}var e;if(R=(e=this.contentElement)==null?void 0:e.firstElementChild)if(B&&B!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")R.removeAttribute("panel-content-visible");else{R.setAttribute("panel-content-visible","");var X;(X=R.markDirty)==null||X.call(R)}};
_.p.onYtChangeEngagementPanelVisibilityAction=function(B){var R=this,V,e=(V=this.data)==null?void 0:V.targetId,X,Y,t;V=((X=this.data)==null?void 0:(Y=X.identifier)==null?void 0:Y.tag)||((t=this.data)==null?void 0:t.panelIdentifier);var b=_.D(B,_.HY_),J;B=e&&(b==null?void 0:b.targetId)===e||V&&(b==null?void 0:(J=b.panelIdentifier)==null?void 0:J.tag)===V;this.dialog&&B&&(b==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(e==="engagement-panel-comments-section"?_.oF(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.oF(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",V]));!_.k("kevlar_use_engagement_panel_management_component")&&B&&(e=b.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!e?_.dV.addJob(function(){R.visibility=b.visibility},2,this.hideDelayMs):this.visibility=b.visibility,b.visibility&&this.notifyVisibilityChanged(b.visibility))};
_.p.onYtScrollToEngagementPanelCommand=function(B){var R,V=(R=this.data)==null?void 0:R.targetId,e,X,Y;R=((e=this.data)==null?void 0:(X=e.identifier)==null?void 0:X.tag)||((Y=this.data)==null?void 0:Y.panelIdentifier);B=_.D(B,_.xm5);var t;(V&&(B==null?void 0:B.targetId)===V||R&&(B==null?void 0:(t=B.panelIdentifier)==null?void 0:t.tag)===R)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.oF(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.p.attachVEs=function(B){var R,V;(B==null?0:(R=B.content)==null?0:(V=R.productListRenderer)==null?0:V.trackingParams)&&_.WK().graftServerVe(B.content.productListRenderer.trackingParams);var e,X;(B==null?0:(e=B.content)==null?0:(X=e.transcriptRenderer)==null?0:X.trackingParams)&&_.WK().graftServerVe(B.content.transcriptRenderer.trackingParams)};
_.p.onYtUpdateEngagementPanelAction=function(B){var R,V=(R=this.data)==null?void 0:R.targetId;B=_.D(B,ueN);V&&(B==null?void 0:B.targetId)===V&&(this.updatePanel({engagementPanelSectionListRenderer:{header:B==null?void 0:B.header,content:B==null?void 0:B.content}},!1),this.attachVEs(B))};
_.p.onYtShowEngagementPanelScrimAction=function(B){var R,V=(R=this.data)==null?void 0:R.targetId;B=_.D(B,noe);V&&(B==null?void 0:B.engagementPanelTargetId)===V&&(this.scrimmed=!0)};
_.p.onYtHideEngagementPanelScrimAction=function(B){var R,V=(R=this.data)==null?void 0:R.targetId;B=_.D(B,Ch7);V&&(B==null?void 0:B.engagementPanelTargetId)===V&&(this.scrimmed=!1)};
_.p.getIdentifier=function(){var B,R,V;return((B=this.data)==null?void 0:B.panelIdentifier)||((R=this.data)==null?void 0:(V=R.identifier)==null?void 0:V.tag)};
_.p.getSurface=function(){var B,R;return(B=this.data)==null?void 0:(R=B.identifier)==null?void 0:R.surface};
_.mh.Object.defineProperties(bQ.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var B=this.getIdentifier();return B==="engagement-panel-youchat"||B==="PAyouchat"}}});
bQ.prototype.visibilityChanged=bQ.prototype.visibilityChanged;bQ.prototype.isFullscreenChanged=bQ.prototype.isFullscreenChanged;bQ.prototype.isTheaterModeChanged=bQ.prototype.isTheaterModeChanged;bQ.prototype.dataChanged=bQ.prototype.dataChanged;bQ.prototype.forwardPopupClosedToFlowRootRenderer=bQ.prototype.forwardPopupClosedToFlowRootRenderer;bQ.prototype.onYtRendererstamperFinished=bQ.prototype.onYtRendererstamperFinished;
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],bQ.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],bQ.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],bQ.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bQ.prototype,"data",void 0);
_.r([_.E({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Z("design:type",Object)],bQ.prototype,"headerData",void 0);_.r([_.E(),_.Z("design:type",Object)],bQ.prototype,"secondaryHeaderData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bQ.prototype,"visibility",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bQ.prototype,"contentEmpty",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bQ.prototype,"scrimmed",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bQ.prototype,"dialog",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bQ.prototype,"dropdown",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bQ.prototype,"darkerPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bQ.prototype,"matchContentTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],bQ.prototype,"disableAutoFill",void 0);
_.r([_.E({reflectToAttribute:!0,value:_.k("optimal_reading_width_comments_ep")}),_.Z("design:type",Boolean)],bQ.prototype,"optimalReadingWidthComments",void 0);_.r([_.E(),_.Z("design:type",Number)],bQ.prototype,"hideDelayMs",void 0);_.r([_.E({selector:_.zW,reflectToAttribute:!0}),_.Z("design:type",Object)],bQ.prototype,"isFullscreen",void 0);_.r([_.E({selector:_.as,reflectToAttribute:!0}),_.Z("design:type",Object)],bQ.prototype,"isTheaterMode",void 0);
_.r([_.E(),_.Z("design:type",Number)],bQ.prototype,"showDelayMs",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data.targetId"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bQ.prototype,"targetId",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bQ.prototype,"webSize",null);_.r([_.E(),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bQ.prototype,"hideFooterBorder",null);
_.r([_.E(),_.Z("design:type",Object)],bQ.prototype,"isWatch",void 0);_.r([_.E(),_.Z("design:type",Object)],bQ.prototype,"originalTheaterState",void 0);_.r([_.E(),_.Z("design:type",Object)],bQ.prototype,"theaterDisablementPanelIdentifier",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bQ.prototype,"modernPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bQ.prototype,"isWatchWhilePanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bQ.prototype,"shortsPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bQ.prototype,"liveChatEngagementPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bQ.prototype,"liveChatReplyPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bQ.prototype,"enableAnchoredPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],bQ.prototype,"disableBackdropFilter",void 0);_.r([_.E(),_.Z("design:type",Object)],bQ.prototype,"trackEngagementPanelVisibility",void 0);_.r([_.Yp("#header"),_.Z("design:type",HTMLElement)],bQ.prototype,"headerElement",void 0);_.r([_.Yp("#header > *"),_.Z("design:type",HTMLElement)],bQ.prototype,"header",void 0);_.r([_.Yp("ytd-section-list-renderer"),_.Z("design:type",Object)],bQ.prototype,"sectionListRendererElement",void 0);
_.r([_.Yp("panel-ad-header-image-lockup-view-model"),_.Z("design:type",HTMLElement)],bQ.prototype,"adHeaderImageLockupViewModel",void 0);_.r([_.Yp("#content"),_.Z("design:type",HTMLElement)],bQ.prototype,"contentElement",void 0);_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bQ.prototype,"onYtRendererstamperFinished",null);
_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bQ.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.r([_.bp("data","isFullscreen","isTheaterMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bQ.prototype,"dataChanged",null);_.r([_.XX("isTheaterMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bQ.prototype,"isTheaterModeChanged",null);
_.r([_.XX("isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bQ.prototype,"isFullscreenChanged",null);_.r([_.XX("visibility"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bQ.prototype,"visibilityChanged",null);bQ=_.r([_.A({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],bQ);
_.F(bQ,"ytd-engagement-panel-section-list-renderer",function(){if(Ql4!==void 0)return Ql4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Ql4=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var Ui4;var J6=function(){var B=_.c.apply(this,arguments)||this;B.lastRenderedPanelIds=new Set;B.visiblePanels=[];B.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return B};
_.l(J6,_.c);_.p=J6.prototype;_.p.dataChanged=function(){if(this.data){for(var B=[],R=_.h(this.data),V=R.next();!V.done;V=R.next()){V=V.value;var e=void 0,X=void 0,Y=(e=V)==null?void 0:(X=e.engagementPanelSectionListRenderer)==null?void 0:X.visibility;X=e=void 0;((e=V)==null?0:(X=e.engagementPanelSectionListRenderer)==null?0:X.targetId)&&Y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&B.push(V)}this.visiblePanels=B}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(B){return this.visiblePanels.filter(function(R){var V;return((V=R.engagementPanelSectionListRenderer)==null?void 0:V.targetId)!==B})};
_.p.onYtChangeEngagementPanelVisibilityAction=function(B){var R=this,V=_.D(B,_.HY_);if(this.data&&(V==null?0:V.targetId)&&(V==null?0:V.visibility)){var e,X=(e=this.data.find(function(t){var b;return((b=t.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===V.targetId}))==null?void 0:e.engagementPanelSectionListRenderer;
if(X){var Y=this.withoutVisiblePanelById(V.targetId);V.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(B=this.data.find(function(t){var b;return((b=t.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===V.targetId}))&&(Y=[B].concat(_.MI(Y)));
this.hideDelayMs&&V.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Y.length===0?_.dV.addJob(function(){X.visibility=V.visibility;R.visiblePanels=Y},10,this.hideDelayMs):(X.visibility=V.visibility,this.visiblePanels=Y);
_.Bz(this.hostElement,"yt-engagement-panels-visible-changed",[Y])}}};
_.p.onRendererstamperFinished=function(){var B=new Set(this.visiblePanels.map(function(R){var V;return(V=R.engagementPanelSectionListRenderer)==null?void 0:V.targetId}));
this.handlePanelVisibilityChange(B,this.lastRenderedPanelIds);this.lastRenderedPanelIds=B};
_.p.handlePanelVisibilityChange=function(B,R){B=B===void 0?new Set:B;R=R===void 0?new Set:R;if(this.data)for(var V=_.h(this.data),e=V.next();!e.done;e=V.next()){e=e.value;var X=void 0,Y=void 0,t=(X=e)==null?void 0:(Y=X.engagementPanelSectionListRenderer)==null?void 0:Y.targetId;if(t&&(X=R.has(t),Y=B.has(t),t=void 0,!X&&Y?(Y=X=void 0,t=(X=e)==null?void 0:(Y=X.engagementPanelSectionListRenderer)==null?void 0:Y.onShowCommands):X&&!Y&&(Y=X=void 0,t=(X=e)==null?void 0:(Y=X.engagementPanelSectionListRenderer)==
null?void 0:Y.onHideCommands),t))for(e=_.h(t),t=e.next();!t.done;t=e.next())this.ytComponentBehavior.resolveCommand(t.value)}};
J6.prototype.onRendererstamperFinished=J6.prototype.onRendererstamperFinished;J6.prototype.dataChanged=J6.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],J6.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],J6.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],J6.prototype,"lastRenderedPanelIds",void 0);_.r([_.E(),_.Z("design:type",Number)],J6.prototype,"hideDelayMs",void 0);_.r([_.E(),_.Z("design:type",Array)],J6.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Array)],J6.prototype,"visiblePanels",void 0);_.r([_.E(),_.Z("design:type",Boolean)],J6.prototype,"isWatchWhilePanel",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J6.prototype,"dataChanged",null);_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J6.prototype,"onRendererstamperFinished",null);J6=_.r([_.A({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],J6);
_.F(J6,"ytd-watch-engagement-panels",function(){if(Ui4!==void 0)return Ui4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Ui4=B},{mode:1});var Nsi;var jt=function(){return _.c.apply(this,arguments)||this};
_.l(jt,_.c);jt.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.qV(_.w(this.hostElement).querySelector("#text"),_.dT_(_.xT4,this.data.companionLegalText))};
jt.prototype.computeAutoScrollEnabled=function(B,R){return B&&!R};
jt.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
jt.prototype.onToggleTap=function(){this.expanded=!this.expanded};
jt.prototype.expandedChanged=jt.prototype.expandedChanged;jt.prototype.dataChanged=jt.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Nje),_.Z("design:type",Object)],jt.prototype,"ytdAutoScrollBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],jt.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jt.prototype,"expanded",void 0);
_.r([_.E({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Z("design:type",Boolean)],jt.prototype,"autoScrollEnabled",void 0);_.r([_.E(),_.Z("design:type",String)],jt.prototype,"expanderIcon",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jt.prototype,"dataChanged",null);
_.r([_.XX("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jt.prototype,"expandedChanged",null);jt=_.r([_.A({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],jt);
_.F(jt,"ytd-companion-legal-text-renderer",function(){if(Nsi!==void 0)return Nsi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Nsi=B},{mode:1});var GOi;var UU=function(){var B=_.c.apply(this,arguments)||this;B.buttonUpdate=_.k("web_modern_buttons");B.kevlarWatchGrid=_.k("kevlar_watch_grid");B.centerAlignDescription=_.k("action_companion_center_align_description");B.truncateDomain=_.k("action_companion_truncate_domain");return B};
_.l(UU,_.c);_.p=UU.prototype;_.p.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.p.getOnLayoutVisibleCallback=function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.layoutId:null};
_.p.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",UU.JSC$20141_DEFAULT_AD_BADGE_RENDERER);var B=this.getOnLayoutVisibleCallback();B&&B()}};
_.p.getButtonRenderer=function(B){return B.actionButton&&_.D(B.actionButton,_.Ii)?(delete _.D(B.actionButton,_.Ii).navigationEndpoint,_.D(B.actionButton,_.Ii)):{}};
_.p.onClick=function(B){var R=this;if((!_.k("web_modern_buttons")||!_.g1(_.Az(B),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){B=_.Pr();var V=this.getLayoutId();B&&V&&_.k("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?B.getPlayerPromise().then(function(e){(new _.jF(e)).executeCommand(R.data.navigationEndpoint,V)}):_.k("kevlar_companion_resolve_command_killswitch")?_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.oF(this.hostElement,"yt-companion-ad-clicked",["action-companion",V])}};
_.mh.Object.defineProperties(UU.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.data)==null?0:(R=B.detailsLine)==null?0:(V=R.adRating)==null?0:V.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 B,R,V,e;return((B=this.data)==null?0:(R=B.detailsLine)==null?0:(V=R.adRating)==null?0:(e=V.ratingIcon)==null?0:e.iconType)?_.RT(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e;return((B=this.data)==null?0:(R=B.detailsLine)==null?0:(V=R.texts)==null?0:(e=V[0])==null?0:e.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 B,R;return((B=this.data)==null?0:(R=B.description)==null?0:R.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var B=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return B?B.indexOf("/default_banner")!==-1:!0}}});
UU.prototype.onClick=UU.prototype.onClick;UU.prototype.dataChanged=UU.prototype.dataChanged;UU.JSC$20141_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Wz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],UU.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],UU.prototype,"rendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],UU.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],UU.prototype,"buttonUpdate",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],UU.prototype,"kevlarWatchGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],UU.prototype,"centerAlignDescription",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],UU.prototype,"truncateDomain",void 0);
_.r([_.E({computed:"computeButtonOverride(buttonUpdate)"}),_.Z("design:type",Object)],UU.prototype,"buttonOverride",void 0);_.r([_.K("data.detailsLine.adRating.ratingText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],UU.prototype,"getRating",null);_.r([_.K("getRating"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UU.prototype,"computeRatingHidden",null);
_.r([_.K("data.detailsLine.adRating.ratingIcon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],UU.prototype,"iconType",null);_.r([_.K("data.detailsLine.texts.0.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],UU.prototype,"getDetailsLine",null);_.r([_.K("getDetailsLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UU.prototype,"computeDetailsLineHidden",null);
_.r([_.K("data.description.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],UU.prototype,"getDescriptionText",null);_.r([_.K("getDescriptionText"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UU.prototype,"computeDescriptionTextHidden",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],UU.prototype,"interactionLoggingClientData",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UU.prototype,"hideBanner",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UU.prototype,"dataChanged",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],UU.prototype,"onClick",null);UU=_.r([_.A({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],UU);
_.F(UU,"ytd-action-companion-ad-renderer",function(){if(GOi!==void 0)return GOi;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return GOi=B},{mode:_.up("kevlar_poly_si_batch_j067")?1:2});var y2i;var S62;var NQ=function(){var B=_.c.apply(this,arguments)||this;B.buttonUpdate=_.k("web_modern_buttons");B.hideLegacyBanner=_.k("enable_dsa_one_click_ata_translators_infeed_elements");B.adInfoButtonStyle="mono";B.adInfoButtonType="text";B.noDotAdBadge=!0;return B};
_.l(NQ,_.c);_.p=NQ.prototype;_.p.getOnLayoutVisibleCallback=function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.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 B=this.data.image.thumbnail.thumbnails[0];this.imageSrc=B.url?_.ym(B.url):void 0;this.imageWidth=B.width||0;this.imageHeight=B.height||0}this.data.clickthroughEndpoint&&_.D(this.data.clickthroughEndpoint,_.ie)&&(B=_.D(this.data.clickthroughEndpoint,_.ie).url,_.k("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
B||"":B?(B=_.ym(B),this.clickThroughUrl=_.j4(B)):this.clickThroughUrl=void 0);(B=this.getOnLayoutVisibleCallback())&&B()}};
_.p.onClick=function(B){_.g1(_.Az(B),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(B)};
_.p.handleClick=function(){var B=this;this.data&&this.data.clickthroughEndpoint&&(_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(R){B.macroReplacementBehavior.sendServiceRequestAction([R])}),_.oF(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.p.onLoad=function(){_.Bz(this.hostElement,"yt-refit-popups-action")};
_.mh.Object.defineProperties(NQ.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.interactionLoggingClientData:null}}});
NQ.prototype.onLoad=NQ.prototype.onLoad;NQ.prototype.onClick=NQ.prototype.onClick;NQ.prototype.dataChanged=NQ.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],NQ.prototype,"rendererBehavior",void 0);_.r([_.v(gs6.YtMacroReplacementBehavior),_.Z("design:type",Object)],NQ.prototype,"macroReplacementBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],NQ.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NQ.prototype,"buttonUpdate",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NQ.prototype,"hideLegacyBanner",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NQ.prototype,"adInfoButtonStyle",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NQ.prototype,"adInfoButtonType",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NQ.prototype,"macros",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NQ.prototype,"interactionLoggingClientData",null);_.r([_.E(),_.Z("design:type",String)],NQ.prototype,"clickThroughUrl",void 0);_.r([_.E(),_.Z("design:type",_.WB)],NQ.prototype,"imageSrc",void 0);_.r([_.E(),_.Z("design:type",Number)],NQ.prototype,"imageWidth",void 0);_.r([_.E(),_.Z("design:type",Number)],NQ.prototype,"imageHeight",void 0);_.r([_.E(),_.Z("design:type",Object)],NQ.prototype,"noDotAdBadge",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NQ.prototype,"dataChanged",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],NQ.prototype,"onClick",null);_.r([_.R_("load"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NQ.prototype,"onLoad",null);NQ=_.r([_.A({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],NQ);
_.F(NQ,"ytd-image-companion-renderer",function(){if(S62!==void 0)return S62;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return S62=B},{mode:_.up("kevlar_poly_si_batch_j067")?1:2});var HlN;var Gt=function(){return _.c.apply(this,arguments)||this};
_.l(Gt,_.c);_.p=Gt.prototype;_.p.dataChanged=function(){this.set("data.adBadge",Gt.JSC$20150_DEFAULT_AD_BADGE_RENDERER);if(this.data){var B=this.getOnLayoutVisibleCallback();B&&B()}};
_.p.getOnLayoutVisibleCallback=function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.layoutId:null};
_.p.onCompanionClicked=function(B){this.data&&(B.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.oF(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.p.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var B=_.Pr(),R=this.getLayoutId(),V=this.data.clickToAdvSiteEndpoint;B&&R&&_.k("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?B.getPlayerPromise().then(function(e){(new _.jF(e)).executeCommand(V,R)}):_.OI(this.hostElement,"yt-navigate",{endpoint:V})}};
_.p.sendTrackingPings=function(B){if(B&&B.length!==0&&B[0].loggingUrls&&(B=B[0].loggingUrls.map(this.getBaseUrl)))for(var R=0;R<B.length;R++)_.qC(B[R])};
_.p.getBaseUrl=function(B){return B.baseUrl||""};
_.mh.Object.defineProperties(Gt.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var B=_.qN("yt.www.ads.eventcache.getLastCompanionData");return B?(B=B())&&B.interactionLoggingClientData:null}}});
Gt.prototype.onCompanionClicked=Gt.prototype.onCompanionClicked;Gt.prototype.dataChanged=Gt.prototype.dataChanged;Gt.JSC$20150_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Wz("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Gt.prototype,"data",void 0);_.r([_.Yp("#title"),_.Z("design:type",HTMLElement)],Gt.prototype,"shopTitle",void 0);
_.r([_.bp("data.impressionEndpoints"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gt.prototype,"dataChanged",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Gt.prototype,"interactionLoggingClientData",null);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Gt.prototype,"onCompanionClicked",null);
Gt=_.r([_.A({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Gt);
_.F(Gt,"ytd-shopping-companion-renderer",function(){if(HlN!==void 0)return HlN;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return HlN=B},{mode:1});_.mR(_.sx(function(B){var R=B.data;var V=_.Zh();_.P7(V,function(){return R().interaction},Uhn);
_.Od(V,{visibilityCallback:function(e){var X,Y=(X=R().interaction)==null?void 0:X.onFirstVisible;e&&Y&&_.Lc(Y)},
showOption:_.FP});_.za(function(){var e,X;X=(X=_.qN("yt.www.ads.eventcache.getLastCompanionData"))?(X=X())&&X.onLayoutVisibleCallback:null;(e=X)==null||e()});
B=_.Wr(function(){_.Bz(V.value,"yt-refit-popups-action")});
return _.N("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":B,el:V,"aria-label":function(){var e,X;return(e=R().interaction)==null?void 0:(X=e.accessibility)==null?void 0:X.label}},_.N("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.N(_.wb,{data:function(){return R().adImage}},{adImageViewModel:function(e){return _.N(_.VY,{data:e.data,
targetHeight:80,customCommandResolver:Uhn})}})),_.N("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.N("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.N(_.wb,{data:function(){return R().adBadge}},{adBadgeViewModel:function(e){return _.N(_.Cu,{data:e.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.N("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.N(_.wb,{data:function(){return R().menu}},{buttonViewModel:_.qo}))))},"Pi"),"banner-image-layout-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;B=_.Zh();_.P7(B,function(){return R().interaction},NJr);
_.Od(B,{visibilityCallback:function(V){var e,X=(e=R().interaction)==null?void 0:e.onFirstVisible;V&&X&&_.Lc(X)},
showOption:_.FP});_.za(function(){var V,e;e=(e=_.qN("yt.www.ads.eventcache.getLastCompanionData"))?(e=e())&&e.onLayoutVisibleCallback:null;(V=e)==null||V()});
return _.N("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:B},_.N("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.N(_.wb,{data:function(){return R().adImage}},{adImageViewModel:function(V){return _.N(_.VY,{data:V.data,
targetHeight:80,customCommandResolver:NJr})}})),_.N("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.N("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.N(_.wb,{data:function(){return R().adAvatarLockup}},{adAvatarLockupViewModel:function(V){return _.N(blo,{data:V.data,
customCommandResolver:NJr})}})),_.N(_.wb,{data:function(){return R().adButton}},{adButtonViewModel:function(V){return _.N(_.go,{data:V.data,
customCommandResolver:NJr})}}),_.N("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.N(_.wb,{data:function(){return R().menu}},{buttonViewModel:_.qo}))))},"Qi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.qq}});var Mij={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"},yw=function(){var B=_.c.apply(this,arguments)||this;B.updateCompanionDataJobId=0;B.contentVideoId=null;B.player=null;B.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return B};
_.l(yw,_.c);_.p=yw.prototype;_.p.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Mij}}};
_.p.attached=function(){var B=this,R=_.Pr();R&&R.getPlayerPromise().then(function(V){B.getCachedDataAndListen(V)})};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.p.updateRendererStamper=function(){var B={};if(this.data)for(var R in Mij)if(this.data[R]){B[R]=this.data[R];break}if(this.oneofRenderer!=void 0||Object.keys(B).length)this.oneofRenderer=B};
_.p.getCachedDataAndListen=function(B){var R=this.retrieveCachedCompanionData();R&&Object.keys(R).length&&this.receiveCompanionData(R);this.ytPlayerListenerBehavior.listenToPlayerEvent(B,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=B};
_.p.retrieveCachedCompanionData=function(){return _.R5.yt&&_.R5.yt.www&&_.R5.yt.www.ads&&_.R5.yt.www.ads.eventcache&&_.R5.yt.www.ads.eventcache.getLastCompanionData?_.R5.yt.www.ads.eventcache.getLastCompanionData():null};
_.p.receiveCompanionData=function(B){B&&Object.keys(B).length?(this.contentVideoId=B.contentVideoId,this.setCompanionData(B)):this.setCompanionData(B)};
_.p.setCompanionData=function(B){this.cancelPendingCompanionAdJobs();if(B){this.updateCompanionDataJobId=0;for(var R in Mij)Mij.hasOwnProperty(R)&&(this.data[R]=void 0);B.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",B.shoppingCompanionCarouselRenderer):B.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",B.imageCompanionAdRenderer):B.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",B.actionCompanionAdRenderer),_.Bz(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Bz(this.hostElement,"yt-hide-tvfilm-offer-module")):B.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",B.bannerImageLayoutViewModel):B.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",B.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.p.dataChanged=function(){var B=this,R=_.Pr();R?R.getPlayerPromise().then(function(V){B.contentVideoId&&V.getVideoUrl().includes("v="+B.contentVideoId)||(B.cancelPendingCompanionAdJobs(),B.updateRendererStamper())}):_.cE(Error("hm"))};
_.p.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.dV.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.p.handleCompanionAdClicked=function(B,R){this.player.onAdUxClicked(B,R);this.player.pauseVideo()};
yw.prototype.dataChanged=yw.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],yw.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],yw.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],yw.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yw.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],yw.prototype,"oneofRenderer",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yw.prototype,"dataChanged",null);yw=_.r([_.A({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],yw);
_.F(yw,"ytd-companion-slot-renderer",function(){if(y2i!==void 0)return y2i;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return y2i=B},{mode:_.up("kevlar_poly_si_batch_j067")?
1:2});var kOj;var St=function(){return _.c.apply(this,arguments)||this};
_.l(St,_.c);St.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
St.prototype.dataChanged=St.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],St.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],St.prototype,"companionSlotData",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],St.prototype,"dataChanged",null);
St=_.r([_.A({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],St);
_.F(St,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(kOj!==void 0)return kOj;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return kOj=B},{mode:1});var Di4;var Hi=function(){var B=_.c.apply(this,arguments)||this;B.skinnyMode=!1;B.COMPACT_EVENT_COUNT=4;B.onShelfToggleButtonTap=function(){B.logTap(B.data);B.showingMore=!B.showingMore};
B.onShelfToggleButtonFocus=function(){B.showingMore||(B.logTap(B.data),B.showingMore=!0,_.gB(B,function(){var R=B.COMPACT_EVENT_COUNT-1,V;(V=_.w(B.hostElement).querySelector("#event-"+R))==null||V.focus()}))};
return B};
_.l(Hi,_.c);_.p=Hi.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",_.Bc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Bc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Bc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Bc(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Bc(this.infoTooltip,this.infoTooltip.hide))};
_.p.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Bc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Bc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Bc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Bc(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Bc(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 B;this.showingMoreChanged((B=this.showingMore)!=null?B:!1)};
_.p.showingMoreChanged=function(B){var R=this.get("data.events")||[];this.set("restEvents",R.slice(1,B?R.length:this.COMPACT_EVENT_COUNT).map(function(V){return V.ticketEventRenderer}));
R.slice(0,B?R.length:this.COMPACT_EVENT_COUNT).forEach(function(V){var e=_.TE();V=V.ticketEventRenderer.trackingParams;_.wT()&&e&&V&&(V=_.U5(V),e&&_.qd(e,V))});
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(B){return B.subtitle1+", "+B.subtitle2};
_.p.logTap=function(B){_.wT()&&this.ytRendererBehavior.logExplicitClick(B)};
_.p.isKeyboardAction=function(B){return this.get("detail.x",B)===0&&this.get("detail.y",B)===0};
_.p.onFirstEventTap=function(B){B.target&&this.handleTap(B.target,this.firstEvent,this.isKeyboardAction(B))};
_.p.onTicketLinkTap=function(B){B.target&&this.handleTap(B.target,B.model.item,this.isKeyboardAction(B))};
_.p.handleTap=function(B,R,V){if(R.buttonCommand)if(R.hasMultipleOffers)Object.assign(_.D(R.buttonCommand,_.ai),{properties:{source:V?"keyboard":"tap"}}),this.logTap(R),this.popupPositionTarget=B,_.eO(this.hostElement,[R.buttonCommand],this.hostElement);else{var e;if((e=_.D(R.buttonCommand,_.ie))==null?0:e.url)this.logTap(R),_.xq(window,_.D(R.buttonCommand,_.ie).url)}};
Hi.prototype.onShowingMoreChanged=Hi.prototype.onShowingMoreChanged;Hi.prototype.dataChanged=Hi.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Hi.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Hi.prototype,"firstEvent",void 0);_.r([_.E(),_.Z("design:type",Object)],Hi.prototype,"restEvents",void 0);_.r([_.E(),_.Z("design:type",String)],Hi.prototype,"imageUrl",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Hi.prototype,"showingMore",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Hi.prototype,"canShowMore",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Hi.prototype,"skinnyMode",void 0);_.r([_.E(),_.Z("design:type",HTMLElement)],Hi.prototype,"popupPositionTarget",void 0);_.r([_.Yp("#banner-info-tooltip"),_.Z("design:type",Object)],Hi.prototype,"infoTooltip",void 0);
_.r([_.Yp("#info-container"),_.Z("design:type",HTMLElement)],Hi.prototype,"infoContainer",void 0);_.r([_.Yp("#shelf-toggler"),_.Z("design:type",HTMLElement)],Hi.prototype,"shelfToggleButton",void 0);_.r([_.Yp("#separator"),_.Z("design:type",HTMLDivElement)],Hi.prototype,"separator",void 0);_.r([_.E(),_.Z("design:type",String)],Hi.prototype,"shelfTogglerLabelText",void 0);_.r([_.E(),_.Z("design:type",String)],Hi.prototype,"shelfTogglerIcon",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hi.prototype,"dataChanged",null);_.r([_.bp("showingMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hi.prototype,"onShowingMoreChanged",null);Hi=_.r([_.A({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Hi);
_.F(Hi,"ytd-ticket-shelf-renderer",function(){if(Di4!==void 0)return Di4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Di4=B},{mode:1});var fQU;var lQU;var MQ=function(){return _.c.apply(this,arguments)||this};
_.l(MQ,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],MQ.prototype,"data",void 0);MQ=_.r([_.A({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],MQ);
_.F(MQ,"ytd-comments-entry-point-message-renderer",function(){if(lQU!==void 0)return lQU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return lQU=B},{mode:1});var z0j;var kV=function(){return _.c.apply(this,arguments)||this};
_.l(kV,_.c);_.mh.Object.defineProperties(kV.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.teaserAvatar)}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],kV.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],kV.prototype,"hasAvatar",null);kV=_.r([_.A({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],kV);
_.F(kV,"ytd-comments-entry-point-teaser-renderer",function(){if(z0j!==void 0)return z0j;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return z0j=B},{mode:1});var aQ6;var D5=function(){return _.c.apply(this,arguments)||this};
_.l(D5,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],D5.prototype,"data",void 0);D5=_.r([_.A({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],D5);
_.F(D5,"ytd-comments-simplebox-renderer",function(){if(aQ6!==void 0)return aQ6;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return aQ6=B},{mode:1});var fK=function(){var B=_.c.apply(this,arguments)||this;B.fullHeight=!_.k("comment_teaser_full_height_kill_switch")&&_.k("kevlar_watch_grid");return B};
_.l(fK,_.c);fK.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"}}}};
fK.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
fK.prototype.onTap=function(){var B=this.tapCommand;B&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(B))};
fK.prototype.onKeyUp=function(B){if(B.keyCode===13)this.onTap()};
_.mh.Object.defineProperties(fK.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null?0:B.onTap)return this.data.onTap;var R,V;if(((R=this.data)==null?0:R.teaserContent)||((V=this.data)==null?0:V.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)!=null&&B.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
fK.prototype.onKeyUp=fK.prototype.onKeyUp;fK.prototype.onTap=fK.prototype.onTap;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],fK.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fK.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],fK.prototype,"fullHeight",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],fK.prototype,"tapCommand",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],fK.prototype,"simpleboxPlaceholder",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],fK.prototype,"hasSimpleboxPlaceholder",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],fK.prototype,"simpleboxAvatar",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],fK.prototype,"teaserContent",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],fK.prototype,"hasTeaserContent",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],fK.prototype,"teaserAvatar",null);
_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],fK.prototype,"hasTeaserAvatar",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],fK.prototype,"messageText",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],fK.prototype,"contentRenderer",null);_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],fK.prototype,"hasContents",null);
_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],fK.prototype,"hasContentRenderer",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fK.prototype,"onTap",null);_.r([_.R_("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[_.Nu]),_.Z("design:returntype")],fK.prototype,"onKeyUp",null);fK=_.r([_.A({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],fK);
_.F(fK,"ytd-comments-entry-point-header-renderer",function(){if(fQU!==void 0)return fQU;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return fQU=B},{mode:1});var di2;_.Br(_.t3,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var w3j=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Tse={numberText:"",heightPx:2*w3j,shouldAnimate:!1},lQ=function(){var B=_.c.apply(this,arguments)||this;B.usingAnimatedComponents=!0;B.wasDetailed=!1;B.JSC$20187_browserSupportsAnimation=_.k("web_supports_animations_api");B.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};B.detailed=!1;B.shouldAnimate=!1;B.viewCountProps=Tse;B.dateTextProps=
Tse;B.metadataBadgesInDescription=_.k("web_metadata_badges_in_description");return B};
_.l(lQ,_.c);_.p=lQ.prototype;_.p.resetAnimationState=function(){this.shouldAnimate=!1};
_.p.updateDynamicMetadata=function(){if(this.JSC$20187_browserSupportsAnimation){if(!this.detailed){var B,R,V,e;var X=(B=this.videoPrimaryInfoRenderer)==null?void 0:(R=B.viewCount)==null?void 0:(V=R.videoViewCountRenderer)==null?void 0:(e=V.extraShortViewCount)==null?void 0:e.simpleText;var Y,t,b,J;var G=(Y=this.videoPrimaryInfoRenderer)==null?void 0:(t=Y.viewCount)==null?void 0:(b=t.videoViewCountRenderer)==null?void 0:(J=b.shortViewCount)==null?void 0:J.simpleText}if(!G){var y,S,M,f;X=(y=this.videoPrimaryInfoRenderer)==
null?void 0:(S=y.viewCount)==null?void 0:(M=S.videoViewCountRenderer)==null?void 0:(f=M.unlabeledViewCountValue)==null?void 0:f.simpleText;var z,T,L,Q;G=(z=this.videoPrimaryInfoRenderer)==null?void 0:(T=z.viewCount)==null?void 0:(L=T.videoViewCountRenderer)==null?void 0:(Q=L.viewCount)==null?void 0:Q.simpleText}var q,m,g;B=Number((q=this.videoPrimaryInfoRenderer)==null?void 0:(m=q.viewCount)==null?void 0:(g=m.videoViewCountRenderer)==null?void 0:g.originalViewCount);var Vu,n;q=(Vu=this.videoPrimaryInfoRenderer)==
null?void 0:(n=Vu.relativeDateText)==null?void 0:n.simpleText;var Yd;Vu=!((Yd=this.videoPrimaryInfoRenderer)==null||!Yd.relativeDateText);if(X&&G&&B&&(q||!Vu)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;Yd=G.split(new RegExp("("+X+")"));X=k7e(Yd[0]);var kd;G={numberText:(kd=Yd[1])!=null?kd:"",numberValue:B,heightPx:2*w3j,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var a5;kd=((a5=Yd[2])!=null?a5:"")+"  ";this.setViewCount(G,X,k7e(kd));
if(!this.detailed&&Vu){X=q.split(/(\d+)/);a5=k7e(X[0]);var lo;kd={numberText:(lo=X[1])!=null?lo:"",heightPx:2*w3j,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var io;lo=((io=X[2])!=null?io:"")+"  ";this.setDateText(kd,a5,k7e(lo))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.p.setViewCount=function(B,R,V){_.FF(R)!==_.FF(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=R);this.viewCountProps.numberText!==(B==null?void 0:B.numberText)&&(this.viewCountProps=B||Tse);_.FF(V)!==_.FF(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=V)};
_.p.setDateText=function(B,R,V){_.FF(R)!==_.FF(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=R);this.dateTextProps.numberText!==(B==null?void 0:B.numberText)&&(this.dateTextProps=B||Tse);_.FF(V)!==_.FF(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=V)};
_.p.onYtUpdateViewershipAction=function(B){this.videoPrimaryInfoRenderer&&(_.D(B,l6N).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.D(B,l6N).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.D(B,l6N).viewCount)))};
_.p.onYtUpdateDateTextAction=function(B){if(this.videoPrimaryInfoRenderer){B=_.D(B,_.DP7).dateText;this.shouldAnimate=!0;var R;((R=this.videoPrimaryInfoRenderer)==null?0:R.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",B):this.set("videoPrimaryInfoRenderer.dateText",B)}};
_.mh.Object.defineProperties(lQ.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return M07(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.FF(M07(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
hideDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.FF(this.viewCountPreNumberText),this.viewCountProps.numberText,_.FF(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.FF(this.dateTextPreNumberText),this.dateTextProps.numberText,_.FF(this.dateTextPostNumberText)].join("")}}});
lQ.prototype.updateDynamicMetadata=lQ.prototype.updateDynamicMetadata;lQ.prototype.resetAnimationState=lQ.prototype.resetAnimationState;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],lQ.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],lQ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lQ.prototype,"videoPrimaryInfoRenderer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lQ.prototype,"detailed",void 0);_.r([_.E(),_.Z("design:type",Object)],lQ.prototype,"shouldAnimate",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lQ.prototype,"viewCountPreNumberText",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lQ.prototype,"viewCountProps",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lQ.prototype,"viewCountPostNumberText",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lQ.prototype,"dateTextPreNumberText",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lQ.prototype,"dateTextProps",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lQ.prototype,"dateTextPostNumberText",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lQ.prototype,"metadataBadgesInDescription",void 0);_.r([_.K("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lQ.prototype,"infoText",null);
_.r([_.K("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Z("design:type",String),_.Z("design:paramtypes",[])],lQ.prototype,"descriptionInfoTooltipText",null);_.r([_.K("detailed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],lQ.prototype,"hideDescriptionInfoTooltip",null);
_.r([_.K("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],lQ.prototype,"animatedViewCountAccessibilityLabel",null);_.r([_.K("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],lQ.prototype,"animatedDateTextAccessibilityLabel",null);
_.r([_.XX("videoPrimaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lQ.prototype,"resetAnimationState",null);_.r([_.XX("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lQ.prototype,"updateDynamicMetadata",null);lQ=_.r([_.A({disableElementRegistration:!0,is:"ytd-watch-info-text"})],lQ);
_.F(lQ,"ytd-watch-info-text",function(){if(di2!==void 0)return di2;var B=document.createElement("template");_.a(B,'\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 id="view-count-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<tp-yt-paper-tooltip hidden="[[hideDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return di2=B},{mode:1});var xiz;var L0r=_.sx(function(B){var R=B.data;var V=B.setTapCommand;_.lJ(function(){var e=_.dl(R().onTap);V(e)});
return _.N("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.N(_.wb,{data:function(){return R().avatar}},{avatarViewModel:_.TP}),_.N("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.N("span",null,function(){return R().simpleboxText})))},"Ri");var vfe=_.sx(function(B){return _.N("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.N(_.H,{cond:function(){return _.D(B.data().avatar,_.$x)},
then:function(R){return _.N(_.TP,{data:R,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.N("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.N(_.Hr,{text:function(){return B.data().teaserText}})))},"Si");var K0e=_.sx(function(B){var R=B.data;var V=B.setTapCommand;_.lJ(function(){var e=_.dl(R().onTap);V(e)});
return _.N("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.N(_.wb,{data:function(){return R().teasers}},{commentsEntryPointTeaserViewModel:vfe}))},"Ti");var IQ7=_.sx(function(B){var R=B.data;var V=B.setTapCommand;_.lJ(function(){var e=_.dl(R().onTap);V(e)});
return _.N("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.N(_.Hr,{text:function(){return R().messageText}}))},"Ui");var Ef4=_.sx(function(B){var R=B.data;var V=B.setTapCommand;var e=B.isDisabled;_.lJ(function(){var X=(e==null?0:e())?void 0:_.dl(R().onTap);V(X)});
return _.N("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.N(_.Us,{icon:function(){return R().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.N(_.H,{cond:function(){return R().image},
then:function(X){return _.N(_.ia,{data:X,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.N(_.Hr,{text:function(){return R().text},
className:function(){return R().image||R().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.N(_.wb,{data:function(){return R().button}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:e==null?void 0:e()}}})}}))},"Vi");var Q9i=_.sx(function(B){var R=B.data;var V=B.itemIndex;var e=B.selectedIndex;var X=B.indexUpdatedCallback;var Y=B.observer;B=B.title;var t=_.Zh(),b=function(S){V()===e()&&X(S)},J=_.w1(uVe),G=_.w1(O1r),y=function(){var S,M,f;
return((S=R())==null?void 0:S.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!J()||((M=R())==null?void 0:M.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&G().includes("PAposts_by_host")||((f=R())==null?void 0:f.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&G().includes("PAyouchat")};
_.zM(function(){Y&&Y().observe(t.value)});
return _.N("yt-carousel-item-view-model",{el:t,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":B},_.N(_.wb,{data:function(){var S,M;return(M=(S=_.D(R().carouselItem,Z96))==null?void 0:S.textCarousel)!=null?M:R().carouselItem}},{textCarouselItemViewModel:function(S){return _.N(Ef4,{data:S.data,
setTapCommand:b,isDisabled:y})},
commentTeaserCarouselItemViewModel:function(S){return _.N(K0e,{data:S.data,setTapCommand:b})},
commentInputBoxCarouselItemViewModel:function(S){return _.N(L0r,{data:S.data,setTapCommand:b})},
commentsEntryPointMessageViewModel:function(S){return _.N(IQ7,{data:S.data,setTapCommand:b})}}))},"Wi");var q64=_.sx(function(B){var R=B.numDots;var V=B.activeIndex;return _.N("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.N(_.yh,{each:function(){return Array.from({length:R()})},
keyBy:"INDEX"},function(e,X){return _.N("div",{class:function(){var Y={};return _.YB("ytCarouselDotsShapeDot",(Y.ytCarouselDotsShapeDotActive=X===V(),Y))}})}))},"Xi");var c22=_.sx(function(B){var R=B.data;var V=B.handleCarouselNavigation;var e=B.numItems;var X=B.selectedIndex;var Y=function(){return{disabled:X()===0}},t=function(){return{disabled:X()===e()-1}};
return _.N("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.N("div",null,_.N("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return R().title}),_.N(_.H,{cond:function(){return R().subtitle},
then:function(b){return _.N("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return R().subtitleAccessibilityText}},b)}})),_.N(_.H,{cond:function(){return e()>1},
then:function(){return _.N("div",{class:"ytCarouselTitleViewModelNavigation"},_.N(q64,{numDots:e,activeIndex:X}),_.N(_.H,{cond:function(){return R().previousButton},
then:function(b){return _.N(_.wb,{data:b},{buttonViewModel:function(J){return _.N(_.qo,{data:J.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return V(-1)},
buttonOverrides:Y})}})}}),_.N(_.H,{cond:function(){return R().nextButton},
then:function(b){return _.N(_.wb,{data:b},{buttonViewModel:function(J){return _.N(_.qo,{data:J.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return V(1)},
buttonOverrides:t})}})}}))}}))},"Yi");_.mR(_.sx(function(B){var R=B.data;var V=_.Zh(),e=_.Zh(),X=_.vE("HTML_DIR")==="rtl",Y=!1,t=0,b=0;B=_.h(_.WU(0,void 0,"m0dtIf"));var J=B.next().value,G=B.next().value;B=_.h(_.WU(0,void 0,"fL6I6"));var y=B.next().value,S=B.next().value;B=_.h(_.WU(!1,void 0,"ZPrwNb"));var M=B.next().value,f=B.next().value,z=function(){var Yd,kd,a5;return(a5=(Yd=R())==null?void 0:(kd=Yd.carouselTitles)==null?void 0:kd.length)!=null?a5:0},T=function(){e.value&&e.value.scrollLeft!==t&&G((X?e.value.scrollLeft<t:e.value.scrollLeft>
t)?Math.min(J()+1,z()-1):Math.max(J()-1,0))},L;
window.IntersectionObserver&&(L=new IntersectionObserver(function(Yd){Yd=_.h(Yd);for(var kd=Yd.next();!kd.done;kd=Yd.next())if(kd.value.isIntersecting){if(Y){Y=!1;break}T()}else G(b)},{threshold:.2}));
_.lJ(function(){if(e.value){var Yd=(X?-1:1)*(y()/z()+12)*(M()&&L?b:J());typeof e.value.scrollTo==="function"?e.value.scrollTo({left:Yd,behavior:"smooth"}):e.value.scrollLeft=Yd;t=Yd;b=M()&&L?b:J()}});
var Q,q=function(Yd){Q=Yd};
_.zM(function(){var Yd=function(){var a5=e.value.offsetWidth*z(),lo=24*(z()-1);S(a5+lo)};
Yd();if(window.ResizeObserver){var kd=new ResizeObserver(Yd);kd.observe(e.value);_.aK(function(){kd.disconnect();L&&L.disconnect()})}});
B=_.Wr(function(Yd){if(_.I_S(_.sQ(Yd),V.value,["BUTTON".toString()])||!Q)return!1;_.Oz().resolve(_.oC).resolveCommand(Q,{forceClickLogging:!0});return!1});
var m=function(Yd){Yd=J()+Yd;Yd>=0&&Yd<z()&&(Y=!0,G(Yd))},g=_.Wr(function(){f(!0);
return!1}),Vu=_.Wr(function(){L||T();
f(!1);return!1}),n={};
return _.N("yt-video-metadata-carousel-view-model",{class:_.XE("ytVideoMetadataCarouselViewModelHost",(n.ytVideoMetadataCarouselViewModelShortMode=_.k("mweb_video_metadata_carousel_short_mode"),n)),el:V,"on:click":B,"on:touchstart":g,"on:touchend":Vu,hidden:function(){var Yd,kd;return!((Yd=R())==null?0:(kd=Yd.carouselItems)==null?0:kd.length)}},_.N("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.N(_.H,{cond:function(){return R().carouselTitles},
then:function(Yd){return _.N(_.wb,{data:function(){return Yd()[M()&&L?b:J()]}},{carouselTitleViewModel:function(kd){return _.N(c22,{data:kd.data,
handleCarouselNavigation:m,numItems:z,selectedIndex:J})}})}})),_.N("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:e},_.N("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+y()+"px;"}},_.N(_.H,{cond:function(){return R().carouselItems},
then:function(Yd){return _.N(_.yh,{each:Yd},function(kd,a5){return _.N(_.wb,{data:function(){return kd}},{carouselItemViewModel:function(lo){return _.N(Q9i,{data:lo.data,
itemIndex:a5,selectedIndex:J,indexUpdatedCallback:q,observer:L,title:function(){a:{var io=a5();var vd,cd=(vd=R())==null?void 0:vd.carouselTitles;if(cd&&(io=cd[io])){var ES;io=(ES=_.D(io,goU))==null?void 0:ES.title;break a}io=void 0}return io}})}})})}}))))},"Zi"),"yt-video-metadata-carousel-view-model",{props:{data:_.qq}});var A2e=_.k("web_action_buttons_update_owner_width")?32:12,zt=function(){var B=_.c.apply(this,arguments)||this;B.metadataBadgesInDescription=_.k("web_metadata_badges_in_description");B.descriptionCollapsed=!0;B.useFadedScrimDescription=_.k("kevlar_enable_faded_scrim_on_description");B.skinnyMode=!1;B.playlist=!1;B.isDark=document.documentElement.hasAttribute("dark");B.disableVideoOwnerOnTap=_.k("swatchie_video_owner_on_tap_ks");B.swatcherooDelayLoad=_.k("swatcheroo_enable_ghost_cards");B.primaryMenuWidth=
0;B.videoId="";B.titleHeadlineXs=_.k("web_watch_typography_title_headline_xs");B.titleHeadlineS=_.k("web_watch_typography_title_headline_s");B.titleHeadlineM=_.k("web_watch_typography_title_headline_m");B.titleHashtagBlackLinkified=_.k("web_title_hashtag_black_linkified");B.titleHashtagGreyLinkified=_.k("web_title_hashtag_grey_linkified");B.actionButtonsUpdateOwnerWidth=_.k("web_action_buttons_update_owner_width");B.shouldForceIconOnly=!1;B.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};B.isFullscreen=!1;B.isTheaterMode=!1;return B};
_.l(zt,_.c);_.p=zt.prototype;_.p.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.p.updateOwnerAndDescriptionPosition=function(){_.k("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.I2(this.bottomRowElement,this.ownerElement)):(_.I2(this.bottomRowElement,this.descriptionElement),_.I2(this.topRowElement,this.ownerElement)))};
_.p.titleOnTap=function(B){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.g1(_.Az(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var R;((R=window.getSelection())==null?0:R.toString().length)||this.handleExpandDescriptionCommands()}};
_.p.videoOwnerOnTap=function(B){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.g1(_.Az(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.p.detached=function(){var B=this,R;return _.W(function(V){(R=B.resizeObserver)==null||R.disconnect();_.b3(V)})};
_.p.maybeAttachResizeObserver=function(){var B=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.o7(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){B.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.p.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var B=this.hostElement.clientWidth,R=Math.max(this.largerItemWrap?400:350,B/2-A2e);if(_.k("web_action_buttons_update_owner_width")){var V;R=(((V=document.getElementById("owner"))==null?void 0:V.clientWidth)||0)+A2e}this.actionsOnSeparateLine=this.primaryMenuWidth>B-R?!0:!1}};
_.p.stripAttributedDescription=function(B){return{content:B.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:_.k("web_modern_buttons"),forceIconButton:!_.k("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:_.k("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 B;if((B=this.videoPrimaryInfoRenderer)==null?0:B.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.p.videoSecondaryInfoRendererChanged=function(){var B,R;(R=(B=this.descriptionInlineExpander).collapse)==null||R.call(B);this.descriptionExpandClientVe=_.kB(110509);this.descriptionCollapseClientVe=_.kB(110510);B=_.TE();R=_.wT();B&&R&&(_.k("combine_ve_grafts")?(_.YJ(_.WK(),this.descriptionExpandClientVe,R),_.YJ(_.WK(),this.descriptionCollapseClientVe,R)):_.QD(B,R,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.p.structuredDescriptionContentRendererChanged=function(){_.k("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.p.updateTopLevelIconsOnly=function(){var B=this;_.k("top_level_update_killswitch")||this.menu&&_.dV.addLowPriorityJob(function(){B.menu.topLevelIconsOnly=B.skinnyMode},_.RC("swathceroo_delay_flexible_menu_update",100))};
_.p.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.k("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(!_.k("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var B,R;(R=(B=this.structuredDescriptionContentRendererElement).resize)==null||R.call(B)}};
_.p.onRenderStamperFinished=function(B){(B==null?void 0:B.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.p.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.p.onYtExpanderLessTapped=function(){var B,R=(B=this.videoSecondaryInfoRenderer)==null?void 0:B.showLessCommand;R&&this.ytComponentBehavior.resolveCommand(R)};
_.p.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.p.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.p.onDescriptionClick=function(B){if(!_.g1(_.Az(B)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var R;((R=window.getSelection())==null?0:R.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.k("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 B=_.TE();B&&this.descriptionCollapseClientVe&&_.iF(B,this.descriptionCollapseClientVe)};
_.p.logExpandClick=function(){var B=_.TE();B&&this.descriptionExpandClientVe&&_.iF(B,this.descriptionExpandClientVe)};
_.p.collapseDescription=function(){this.descriptionCollapsed=!0};
_.p.scrollToTopOfContainer=function(){_.oF(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.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.p.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.p.resize=function(){if(this.descriptionInlineExpander){var B,R;(R=(B=this.descriptionInlineExpander).resize)==null||R.call(B)}else _.KE(new _.H8("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var V;(V=this.menu)==null||V.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.k("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.p.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var B,R,V,e,X=_.k("web_action_buttons_update_owner_width")?(V=(B=_.w(this.menu).querySelector("#button-shape"))==null?void 0:B.clientWidth)!=null?V:0:(e=(R=_.w(this.menu).querySelector("#button"))==null?void 0:R.clientWidth)!=null?e:0,Y,t;B=((t=(Y=_.w(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:Y.clientWidth)!=null?t:0)+8+X;var b,J;X=(J=(b=_.w(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:b.children.length)!=null?J:2;B<=8*X||(this.primaryMenuWidth=B)}};
_.p.onYtUpdateTitleAction=function(B){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.D(B,f6U).title)};
_.p.onYtUpdateDescriptionAction=function(B){if(B=_.D(B,_.a0o)){var R,V=!((R=this.videoSecondaryInfoRenderer)==null||!R.attributedDescription);B.isEmpty||!B.description&&!B.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):B.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",B.attributedDescription):B.description&&(V?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.fc(B.description)):this.set("videoSecondaryInfoRenderer.description",B.description))}};
_.p.onYtDarkModeToggledAction=function(B){this.isDark=B};
_.p.registerPanel=function(){if(!_.k("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var B=_.k("web_watch_imax_theater_mode")&&this.isTheaterMode;B=_.k("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||B;var R=_.Oz().resolve(_.Sf);R&&!B&&R.registerPanel("engagement-panel-structured-description",this)}};
_.p.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.p.showPanel=function(B){this.expandDescription();var R=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;R.resize();var V,e=B==null?void 0:(V=B.sectionListEngagementPanelExtras)==null?void 0:V.scrollToItemSectionIdentifier;e?_.dV.addJob(function(){R==null||R.scrollToSection(e)},8):this.scrollToTopOfContainer()};
_.p.isVisible=function(){return!this.descriptionCollapsed};
_.p.getReloadContinuation=function(){};
_.p.hidePanel=function(){};
_.p.updatePanel=function(){};
_.mh.Object.defineProperties(zt.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.structuredDescriptionContentRenderer)!=null&&B.items){var R;B=_.h((R=this.structuredDescriptionContentRenderer)==null?void 0:R.items);for(R=B.next();!R.done;R=B.next())if(R=_.D(R.value,_.TOo))return R}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.videoPrimaryInfoRenderer)==null?0:B.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return!!((B=this.videoSecondaryInfoRenderer)==null?0:(R=B.owner)==null?0:(V=R.videoOwnerRenderer)==null?0:V.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.k("swatchie_sd_new_line_strip_ks")){var B,R;if((B=this.videoSecondaryInfoRenderer)==null?0:(R=B.attributedDescription)==null?0:R.content){var V,e;return(e=this.stripAttributedDescription((V=this.videoSecondaryInfoRenderer)==null?void 0:V.attributedDescription))!=null?e:{runs:[]}}}var X,Y,t,b;return(b=(t=(X=this.videoSecondaryInfoRenderer)==null?void 0:X.description)!=null?t:(Y=this.videoSecondaryInfoRenderer)==null?
void 0:Y.attributedDescription)!=null?b:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=(B=this.videoSecondaryInfoRenderer)==null?void 0:B.headerRuns)!=null?R:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.commentsEntryPointHeaderRenderer)==null||!B.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.videoMetadataCarousel)==null||!B.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.RC("swatchie_desc_lines",3):this.hasTeaserCarousel?_.RC("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var B,R,V=Object.assign({},(B=this.videoSecondaryInfoRenderer)==null?void 0:(R=B.metadataRowContainer)==null?void 0:R.metadataRowContainerRenderer);if(V&&V.rows&&V.collapsedItemCount!==void 0&&!(V.rows.length<=V.collapsedItemCount))return V.rows=V.rows.slice(V.collapsedItemCount),V.collapsedItemCount=0,V}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var B,R,V=Object.assign({},(B=this.videoSecondaryInfoRenderer)==null?void 0:(R=B.metadataRowContainer)==null?void 0:R.metadataRowContainerRenderer);if(V&&V.rows&&V.collapsedItemCount!==void 0)return V.rows=V.rows.slice(0,V.collapsedItemCount),V.collapsedItemCount=V.rows.length,V}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var B,R;return!!((B=this.structuredDescriptionContentRenderer)==null?0:(R=B.items)==null?0:R.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var B;return(B=this.videoSecondaryInfoRenderer)==null?void 0:B.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.videoSecondaryInfoRenderer)==null?0:(R=B.owner)==null?0:(V=R.videoOwnerRenderer)==null?0:V.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e;return!!((B=this.videoPrimaryInfoRenderer)==null?0:(R=B.videoActions)==null?0:(V=R.menuRenderer)==null?0:(e=V.flexibleItems)==null?0:e.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.QM(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.QM(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var B=this;if(_.k("web_title_hashtag_grey_delinkified")){var R,V=_.M_.unsafeClone((R=this.videoPrimaryInfoRenderer)==null?void 0:R.title);(R=V==null?void 0:V.runs)&&R.forEach(function(e){if(e==null?0:e.navigationEndpoint)e.textColor=4284506208,B.isDark&&(e.textColor=4289374890)});
return V}return(V=this.videoPrimaryInfoRenderer)==null?void 0:V.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.k("web_title_hashtag_black_delinkified")||_.k("web_title_hashtag_grey_delinkified")}}});
zt.prototype.resetDescriptionState=zt.prototype.resetDescriptionState;zt.prototype.registerPanel=zt.prototype.registerPanel;zt.prototype.onYtExpanderLessTapped=zt.prototype.onYtExpanderLessTapped;zt.prototype.onYtExpanderMoreTapped=zt.prototype.onYtExpanderMoreTapped;zt.prototype.onRenderStamperFinished=zt.prototype.onRenderStamperFinished;zt.prototype.onYtTextInlineExpanderExpandedChanged=zt.prototype.onYtTextInlineExpanderExpandedChanged;zt.prototype.onYtTextInlineExpanderCollapseClicked=zt.prototype.onYtTextInlineExpanderCollapseClicked;
zt.prototype.onYtTextInlineExpanderExpandClicked=zt.prototype.onYtTextInlineExpanderExpandClicked;zt.prototype.moveActionsElement=zt.prototype.moveActionsElement;zt.prototype.updateShouldForceIconOnly=zt.prototype.updateShouldForceIconOnly;zt.prototype.updateTopLevelIconsOnly=zt.prototype.updateTopLevelIconsOnly;zt.prototype.structuredDescriptionContentRendererChanged=zt.prototype.structuredDescriptionContentRendererChanged;zt.prototype.videoSecondaryInfoRendererChanged=zt.prototype.videoSecondaryInfoRendererChanged;
zt.prototype.videoPrimaryInfoRendererChanged=zt.prototype.videoPrimaryInfoRendererChanged;zt.prototype.maybeUpdateActionsOnSeparateLine=zt.prototype.maybeUpdateActionsOnSeparateLine;zt.prototype.updateOwnerAndDescriptionPosition=zt.prototype.updateOwnerAndDescriptionPosition;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],zt.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],zt.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],zt.prototype,"ytdReduxBehavior",void 0);_.r([_.Yp("#above-the-fold"),_.Z("design:type",HTMLElement)],zt.prototype,"aboveTheFoldContainer",void 0);_.r([_.Yp("#menu ytd-menu-renderer"),_.Z("design:type",Object)],zt.prototype,"menu",void 0);
_.r([_.Yp("#description-inline-expander"),_.Z("design:type",Object)],zt.prototype,"descriptionInlineExpander",void 0);_.r([_.Yp("#faded-structured-description"),_.Z("design:type",Object)],zt.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.r([_.Yp("#structured-description"),_.Z("design:type",Object)],zt.prototype,"structuredDescriptionContentRendererElement",void 0);_.r([_.Yp("#title"),_.Z("design:type",HTMLElement)],zt.prototype,"titleElement",void 0);
_.r([_.Yp("#description"),_.Z("design:type",HTMLElement)],zt.prototype,"descriptionElement",void 0);_.r([_.Yp("#description-interaction"),_.Z("design:type",Object)],zt.prototype,"descriptionInteraction",void 0);_.r([_.Yp("#owner"),_.Z("design:type",HTMLElement)],zt.prototype,"ownerElement",void 0);_.r([_.Yp("#top-row"),_.Z("design:type",HTMLElement)],zt.prototype,"topRowElement",void 0);_.r([_.Yp("#bottom-row"),_.Z("design:type",HTMLElement)],zt.prototype,"bottomRowElement",void 0);
_.r([_.Yp("#actions"),_.Z("design:type",HTMLElement)],zt.prototype,"actionsElement",void 0);_.r([_.Yp("#bottom-actions"),_.Z("design:type",HTMLElement)],zt.prototype,"bottomActionsElement",void 0);_.r([_.Yp("#ytd-watch-info-text"),_.Z("design:type",Object)],zt.prototype,"watchInfoTextElement",void 0);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"videoPrimaryInfoRenderer",void 0);
_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"videoSecondaryInfoRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"commentsEntryPointHeaderRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"videoMetadataCarousel",void 0);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"structuredDescriptionContentRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"videoSummary",void 0);
_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"merchShelf",void 0);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"infoPanelBelowMetadata",void 0);_.r([_.K("structuredDescriptionContentRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"productShelf",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"metadataBadgesInDescription",void 0);
_.r([_.K("videoPrimaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"shouldHideBadges",null);_.r([_.K("productShelf","descriptionCollapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zt.prototype,"shouldShowProductShelf",null);_.r([_.E(),_.Z("design:type",Boolean)],zt.prototype,"isWatchFlexy",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"descriptionCollapsed",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zt.prototype,"useFadedScrimDescription",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"skinnyMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("videoSecondaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"largerItemWrap",null);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"playlist",void 0);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"clarifyBox",void 0);
_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"playerAds",void 0);_.r([_.E(),_.Z("design:type",Boolean)],zt.prototype,"isDark",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zt.prototype,"actionsOnSeparateLine",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"disableVideoOwnerOnTap",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"swatcherooDelayLoad",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],zt.prototype,"suppressTopLevelMetadataRows",void 0);_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"primaryMenuWidth",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"videoId",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"titleHeadlineXs",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"titleHeadlineS",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"titleHeadlineM",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"titleHashtagBlackLinkified",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"titleHashtagGreyLinkified",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.r([_.E(),_.Z("design:type",Object)],zt.prototype,"shouldForceIconOnly",void 0);_.r([_.bp("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"updateOwnerAndDescriptionPosition",null);_.r([_.bp("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.r([_.K("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"descriptionText",null);_.r([_.K("videoSecondaryInfoRenderer.headerRuns"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],zt.prototype,"headerRuns",null);_.r([_.E({value:!1}),_.K("commentsEntryPointHeaderRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"hasTeaser",null);
_.r([_.E({value:!1,reflectToAttribute:!0}),_.K("videoMetadataCarousel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"hasTeaserCarousel",null);_.r([_.E({value:3}),_.K("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"descriptionMaxLines",null);_.r([_.K("videoSecondaryInfoRenderer.metadataRowContainer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"collapsibleMetadataRows",null);
_.r([_.K("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"alwaysVisibleMetadataRows",null);_.r([_.K("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zt.prototype,"hasInlineStructuredDescription",null);
_.r([_.K("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zt.prototype,"showInlineStructuredDescription",null);_.r([_.K("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"descriptionExpandCommand",null);
_.r([_.K("videoSecondaryInfoRenderer.owner"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"videoOwnerCommand",null);_.r([_.E({reflectToAttribute:!0}),_.K("videoPrimaryInfoRenderer.videoActions"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zt.prototype,"flexMenuEnabled",null);_.r([_.E({selector:_.zW,reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"isFullscreen",void 0);
_.r([_.E({selector:_.as,reflectToAttribute:!0}),_.Z("design:type",Object)],zt.prototype,"isTheaterMode",void 0);_.r([_.K("descriptionText","useFadedScrimDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zt.prototype,"showAttributedStringDescription",null);_.r([_.K("descriptionText","useFadedScrimDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zt.prototype,"showFormattedStringDescription",null);
_.r([_.K("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zt.prototype,"showFadedStructuredDescription",null);_.r([_.bp("videoPrimaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"videoPrimaryInfoRendererChanged",null);_.r([_.K("videoPrimaryInfoRenderer.title"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"videoTitle",null);
_.r([_.K("videoPrimaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zt.prototype,"noEndpoints",null);_.r([_.bp("videoSecondaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"videoSecondaryInfoRendererChanged",null);
_.r([_.XX("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"structuredDescriptionContentRendererChanged",null);_.r([_.XX("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"updateTopLevelIconsOnly",null);
_.r([_.XX("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"updateShouldForceIconOnly",null);_.r([_.XX("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"moveActionsElement",null);_.r([_.R_("yt-text-inline-expander-expand-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.r([_.R_("yt-text-inline-expander-collapse-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.r([_.R_("yt-text-inline-expander-expanded-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],zt.prototype,"onRenderStamperFinished",null);_.r([_.R_("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"onYtExpanderMoreTapped",null);_.r([_.R_("yt-expander-less-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"onYtExpanderLessTapped",null);
_.r([_.XX("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"registerPanel",null);_.r([_.XX("videoSecondaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zt.prototype,"resetDescriptionState",null);zt=_.r([_.A({disableElementRegistration:!0,is:"ytd-watch-metadata"})],zt);
_.F(zt,"ytd-watch-metadata",function(){if(xiz!==void 0)return xiz;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return xiz=B},{mode:2});_.$i4=function(B){_.Hn.call(this);this.JSC$20210_watchApi=B;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;ilr(this);s9N(this);F0z(this);r24(this);gfo(this);Zlr(this);mi7(this)};
_.l(_.$i4,_.Hn);var F0z=function(B){var R=function(){_.k("kevlar_is_pupi_enabled")||az(B)};
B.JSC$20210_watchApi.getRoot().addEventListener("yt-player-updated",R);B.addOnDisposeCallback(function(){B.JSC$20210_watchApi.getRoot().removeEventListener("yt-player-updated",R)})},gfo=function(B){if(_.k("kevlar_endscreen_auto_theater_mode")){var R=B.JSC$20210_watchApi.subscribeToActiveChanged(function(){Cmj(B)},!1);
B.addOnDisposeCallback(R)}},ilr=function(B){var R,V,e,X,Y;
_.W(function(t){if(t.nextAddress==1)return _.U(t,B.JSC$20210_watchApi.playerApi,2);R=t.yieldResult;V=function(b){b=!!b;dy(B)&&(b=b?2:1,_.PL.getInstance().setState(b,!0,!1))};
e=function(b){b&&_.nC4(_.g6().getState())&&(_.oF(B.JSC$20210_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),B.temporaryTheaterMode=!0)};
X=function(b){_.k("kevlar_player_update_autonav_on_new_data")&&b.type==="newdata"&&(_.k("kevlar_is_pupi_enabled")||az(B))};
Y=function(b){B.onPlayerStateChange(b)};
_.k("kevlar_endscreen_auto_theater_mode")&&R.addEventListener("onAutonavCancelled",e);R.addEventListener("onAutonavChangeRequest",V);R.addEventListener("onVideoDataChange",X);R.addEventListener("onStateChange",Y);B.addOnDisposeCallback(function(){R.removeEventListener("onAutonavChangeRequest",V);R.removeEventListener("onVideoDataChange",X);R.removeEventListener("onStateChange",Y);_.k("kevlar_endscreen_auto_theater_mode")&&R.removeEventListener("onAutonavCancelled",e)});
_.b3(t)})},s9N=function(B){B.JSC$20210_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){B.autonavCancelledBySignal=!0;
_.k("kevlar_is_pupi_enabled")||az(B)});
B.JSC$20210_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(R,V,e){V&&az(B,e)});
B.JSC$20210_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){dy(B)&&_.PL.getInstance().setState(2,!0,!0)});
B.JSC$20210_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){dy(B)&&_.PL.getInstance().setState(1,!0,!0)});
B.addOnDisposeCallback(function(){B.JSC$20210_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");B.JSC$20210_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");B.JSC$20210_watchApi.unregisterActionHandler("yt-enable-autoplay-command");B.JSC$20210_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},r24=function(B){var R=B.JSC$20210_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){mi7(B)}),V=B.JSC$20210_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Zlr(B)});
B.addOnDisposeCallback(function(){B.JSC$20210_watchApi.unsubscribeByKey(R);B.JSC$20210_watchApi.unsubscribeByKey(V)})},mi7=function(B){B.autonavCancelledBySignal=!1;
_.k("kevlar_is_pupi_enabled")||az(B)},Zlr=function(B){var R=B.JSC$20210_watchApi.getWatchNextResponse(),V,e;
var X=(R=(e=_.D(R==null?void 0:(X=R.playerOverlays)==null?void 0:(V=X.playerOverlayRenderer)==null?void 0:V.autonavToggle,_.wCh))==null?void 0:e.enabled)?2:1;_.k("kevlar_is_pupi_enabled")?_.PL.getInstance().setState(X,!1,!1):az(B);_.k("web_persist_server_autonav_state_on_client")&&typeof R==="boolean"&&_.TUq(X===2)},dy=function(B){if(B.autonavCancelledBySignal)return!1;
var R,V,e,X;return!!((R=B.JSC$20210_watchApi.getWatchNextResponse())==null?0:(V=R.contents)==null?0:(e=V.twoColumnWatchNextResults)==null?0:(X=e.autoplay)==null?0:X.autoplay)};
_.$i4.prototype.onPlayerStateChange=function(B){if(B===0){B=!_.PL.getInstance().isAutoplaySetExplicitly();var R=this.JSC$20210_watchApi.getWatchNextResponse(),V,e,X,Y;R=_.D(R==null?void 0:(V=R.contents)==null?void 0:(e=V.twoColumnWatchNextResults)==null?void 0:(X=e.autoplay)==null?void 0:(Y=X.autoplay)==null?void 0:Y.autoplayExplicitChoiceDialogRenderer,_.RX4);dy(this)&&B&&R&&_.eR.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:R},popupType:"DIALOG"}})}else Cmj(this)};
var Cmj=function(B){B.temporaryTheaterMode&&(B.temporaryTheaterMode=!1,_.oF(B.JSC$20210_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},az=function(B,R){R=R===void 0?!1:R;
var V;_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20210_watchApi.playerApi,2);V=e.yieldResult;dy(B)?V.setAutonavState(_.PL.getInstance().getState(),R):V.setAutonavState(1,R);_.b3(e)})};var Pm2={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"};_.uui=function(B){_.Hn.call(this);var R=this;this.JSC$20215_watchApi=B;var V=this.JSC$20215_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){nf4(R)});
this.addOnDisposeCallback(function(){R.JSC$20215_watchApi.unsubscribeByKey(V)});
nf4(this)};
_.l(_.uui,_.Hn);var nf4=function(B){var R=B.JSC$20215_watchApi.getPlayerResponse(),V=B.JSC$20215_watchApi.getWatchNextResponse();if(!_.y2_(R==null?void 0:R.playabilityStatus,V==null?void 0:V.playerOverlays)){var e;var X=R==null?void 0:(e=R.playabilityStatus)==null?void 0:e.errorScreen}B.JSC$20215_watchApi.provideRenderingData("ERROR_SCREEN",X)};var Olz=_.sx(function(B){var R=B.data;B=_.Wr(function(){var V=R().onTap;V&&_.Oz().resolve(_.oC).resolveCommand(V)});
return _.N("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":B},_.N("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.N(_.Hr,{text:function(){return R().title}})),_.N("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.N(_.wb,{data:function(){return R().channelAvatar}},{avatarViewModel:_.TP}),_.N(_.Hr,{text:function(){return R().subtitle}})))},"$i");var oNj=_.sx(function(B){return _.N("yt-player-quick-action-buttons",{class:_.XE("ytPlayerQuickActionButtonsHost")},_.N(_.yh,{each:B.data},function(R){return _.N(_.wb,{data:function(){return R}},{buttonViewModel:_.qo,
likeButtonViewModel:function(V){return _.N(_.l6,{data:V.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.fI})}))},"aj");_.RUr=function(B){_.Hn.call(this);var R=this;this.JSC$20218_watchApi=B;B=_.h(_.WU({},void 0,"ufFdVc"));this.quickActionsViewModel=B.next().value;this.setQuickActionsViewModel=B.next().value;B=_.h(_.WU({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=B.next().value;this.setPlayerOverlayVideoDetailsRenderer=B.next().value;var V=this.JSC$20218_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){BGz(R)});
this.addOnDisposeCallback(function(){R.JSC$20218_watchApi.unsubscribeByKey(V)});
BGz(this)};
_.l(_.RUr,_.Hn);
var BGz=function(B){var R,V,e,X,Y,t,b,J,G,y,S,M,f,z;_.W(function(T){if(T.nextAddress==1)return _.U(T,B.JSC$20218_watchApi.playerApi,2);R=T.yieldResult;V=B.JSC$20218_watchApi.getWatchNextResponse();Y=(e=V)==null?void 0:(X=e.playerOverlays)==null?void 0:X.playerOverlayRenderer;b=_.D((t=Y)==null?void 0:t.fullscreenQuickActionsBar,_.QcG);(G=(J=B).setQuickActionsViewModel)==null||G.call(J,b||{});b&&VLz(B,R);M=(y=Y)==null?void 0:(S=y.videoDetails)==null?void 0:S.playerOverlayVideoDetailsRenderer;(z=(f=
B).setPlayerOverlayVideoDetailsRenderer)==null||z.call(f,M||{});M&&eU2(B,R);_.b3(T)})},VLz=function(B,R){if(!B.quickActionButtonsContainer){B.quickActionButtonsContainer=document.createElement("div");
R.setFullscreenQuickActions(B.quickActionButtonsContainer);var V=function(){return B.quickActionsViewModel().quickActionButtons||[]},e=_.Dk(B.quickActionButtonsContainer,function(){return _.N(oNj,{data:V})});
B.addOnDisposeCallback(function(){R.setFullscreenQuickActions(void 0);e()})}},eU2=function(B,R){if(!B.playerOverlayVideoDetailsRendererContainer){B.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
R.setPlayerOverlayVideoDetailsRenderer(B.playerOverlayVideoDetailsRendererContainer);var V=_.Dk(B.playerOverlayVideoDetailsRendererContainer,function(){return _.N(Olz,{data:B.playerOverlayVideoDetailsRenderer})});
B.addOnDisposeCallback(function(){R.setPlayerOverlayVideoDetailsRenderer(void 0);V()})}};_.wy=function(B){_.Hn.call(this);var R=this;this.JSC$20223_watchApi=B;this.JSC$20223_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;B=_.Ge(_.g6(),_.zW,function(V){Xt2(R,V)});
this.addOnDisposeCallback(B);B=_.Ge(_.g6(),_.a2,function(V){R.onWatchScroll(V)});
this.addOnDisposeCallback(B);_.k("kevlar_watch_while_v2")&&(B=_.Ge(_.g6(),_.d6,function(V){ptm(R,V)}),this.addOnDisposeCallback(B));
YF2(this);hUj(this);tL4();this.onWatchScroll(_.a2(_.g6().getState()));_.KQ("START_IN_FULL_WINDOW_MODE")&&this.JSC$20223_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.l(_.wy,_.Hn);var YF2=function(B){B.JSC$20223_watchApi.registerActionHandler("yt-fullscreen-change-action",function(R){var V=B.JSC$20223_watchApi.isActive();R&&!V||_.g6().dispatch(_.or({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!R}}))});
B.addOnDisposeCallback(function(){B.JSC$20223_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},hUj=function(B){var R,V;
_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20223_watchApi.playerApi,2);R=e.yieldResult;V=function(){B.onFullerscreenEduClicked()};
R.addEventListener("onFullerscreenEduClicked",V);B.addOnDisposeCallback(function(){R.removeEventListener("onFullerscreenEduClicked",V)});
_.b3(e)})},Xt2=function(B,R){var V;
_.W(function(e){if(e.nextAddress==1)return B.isFullscreen=!!_.Cp(),_.U(e,B.JSC$20223_watchApi.playerApi,2);V=e.yieldResult;B.JSC$20223_miniplayerActive||V.setFauxFullscreen(B.isFullscreen);if(R&&(B.JSC$20223_watchApi.focusOnPlayer(),!B.fullerscreenEduButtonShownThisPlayback)){B.fullerscreenEduButtonShownThisPlayback=!0;var X=_.tp("yt-fullerscreen-edu-button-shown-count")||0;_.hp("yt-fullerscreen-edu-button-shown-count",X+1,31536E3);B.updateFullerscreenEduButtonSubtleModeState()}_.b3(e)})},ptm=function(B,
R){var V;
_.W(function(e){if(e.nextAddress==1)return B.JSC$20223_miniplayerActive=R,_.U(e,B.JSC$20223_watchApi.playerApi,2);V=e.yieldResult;V.setFauxFullscreen(!B.JSC$20223_miniplayerActive&&B.isFullscreen);_.b3(e)})};
_.wy.prototype.onWatchScroll=function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1)return _.k("external_fullscreen_with_edu")?_.U(X,R.JSC$20223_watchApi.playerApi,2):X.return();V=X.yieldResult;e=B<=0;R.shouldShowFullerscreenEdu!==e&&(R.shouldShowFullerscreenEdu=e,V.updateFullerscreenEduButtonVisibility(!R.shouldShowFullerscreenEdu));_.b3(X)})};
_.wy.prototype.onFullerscreenEduClicked=function(){this.JSC$20223_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var B=_.tp("yt-fullerscreen-edu-button-click-count")||0;_.hp("yt-fullerscreen-edu-button-click-count",B+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.wy.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var B=this,R,V,e,X,Y,t;return _.W(function(b){if(b.nextAddress==1)return R=_.tp("yt-fullerscreen-edu-button-click-count")||0,V=_.tp("yt-fullerscreen-edu-button-shown-count")||0,e=_.RC("external_fullscreen_button_click_threshold"),X=_.RC("external_fullscreen_button_shown_threshold"),Y=R>=e||V>=X,_.U(b,B.JSC$20223_watchApi.playerApi,2);t=b.yieldResult;t.updateFullerscreenEduButtonSubtleModeState(Y);_.b3(b)})};
_.wy.prototype.disposeInternal=function(){_.Hn.prototype.disposeInternal.call(this);var B=_.Cp();_.k("kevlar_exit_fullscreen_leaving_watch")&&B&&_.PJ(B)};
var tL4=function(){if(_.k("web_watch_add_viewport_meta_tag")){var B=document.querySelector("meta[name=viewport]"),R=document.head;R&&!B&&(B=document.createElement("meta"),B.name="viewport",B.content="width=device-width, initial-scale=1.0, viewport-fit=cover",R.appendChild(B))}};_.Tt=function(B){_.Hn.call(this);var R=this;this.JSC$20227_watchApi=B;this.jobId=0;this.pendingRequestId=void 0;var V=this.JSC$20227_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){We7(R)});
this.addOnDisposeCallback(function(){R.JSC$20227_watchApi.unsubscribeByKey(V)});
We7(this)};
_.l(_.Tt,_.Hn);var bP6=function(B){_.dV.cancelJob(B.jobId);B.pendingRequestId=void 0},We7=function(B){bP6(B);
var R=Dh4(B.JSC$20227_watchApi.getWatchNextResponse());if(R){var V=250,e,X=(e=_.D(R,_.qN2))==null?void 0:e.initialDelayMs;_.k("web_watch_updated_metadata_server_initial_delay")&&X&&(V=X);B.jobId=_.dV.addLowPriorityJob(function(){return B.fetchUpdatedMetadata(R)},V)}};
_.Tt.prototype.fetchUpdatedMetadata=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q;return _.W(function(q){switch(q.nextAddress){case 1:R&&(e={continuation:R});if(!_.k("web_get_updated_metadata_fantasy_panel_continuation_params")){q.jumpTo(2);break}X=_.Oz().resolve(_.Sf);Y="PAsports_fantasy";return _.U(q,X.isVisible(Y,!0),3);case 3:q.yieldResult&&(G=(b=(t=X).getUpdatePanelContinuationData)==null?void 0:(J=b.call(t,Y))==null?void 0:J.updatePanelContinuationRequest)&&(e||(e={}),e.clientParams=
{panelContinuationParams:{panelContinuation:G}});case 2:y=_.Oz().resolve(_.M1);if(!y)return _.Tn(Error("im")),q.return();S={};V.pendingRequestId=S;return _.U(q,_.cr(y,B,e),4);case 4:M=q.yieldResult;if(S!==V.pendingRequestId)return q.return();T=(f=M)==null?void 0:(z=f.continuation)==null?void 0:z.timedContinuationData;((L=T)==null?0:L.continuation)&&((Q=T)==null?0:Q.timeoutMs)&&(V.jobId=_.dV.addLowPriorityJob(function(){return V.fetchUpdatedMetadata(B,T.continuation)},T.timeoutMs));
_.b3(q)}})};
_.Tt.prototype.disposeInternal=function(){_.Hn.prototype.disposeInternal.call(this);bP6(this)};var Jxi=_.sx(function(B){var R=_.Wr(function(){var e=B.data().videoId;if(B.active())e=_.Pz(e),_.Oz().resolve(_.oC).resolveCommand(e);else{var X=B.playerApi(),Y=X.getAvailableAudioTracks(),t,b,J=(t=B.sourceVideoConfig().audioTracks)==null?void 0:(b=t.find(function(G){return G.isDefaultForSource}))==null?void 0:b.id;
if(Y=Y.find(function(G){return G.getLanguageInfo().getId()===J}))X.setAudioTrack(Y,!0),X.setCompositeParam({activeVideoId:e}),B.setActiveSourceId(e)}}),V={};
return _.N("ytw-composite-source-video-overlay",{class:_.XE("ytwCompositeSourceVideoOverlayHost",(V.ytwCompositeSourceVideoOverlayActive=B.active,V.ytwCompositeSourceVideoOverlayInteracting=B.interacting,V)),style:_.jQ({left:function(){var e;return((e=B.data().topLeftCornerX)!=null?e:0)*100+"%"},
top:function(){var e;return((e=B.data().topLeftCornerY)!=null?e:0)*100+"%"},
width:function(){var e;return((e=B.data().width)!=null?e:0)*100+"%"},
height:function(){var e;return((e=B.data().height)!=null?e:0)*100+"%"}}),
"on:click":R},_.N("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"bj");var jwn=_.sx(function(B){var R=_.h(_.J3(function(){var b,J=(b=B.data().sources)==null?void 0:b.find(function(G){return G.isActive});
if(J)return J.videoId})),V=R.next().value,e=R.next().value;
R=_.h(_.WU(!1,void 0,"WI4BUb"));var X=R.next().value,Y=R.next().value;R=_.Wr(function(){Y(!0)});
var t=_.Wr(function(){Y(!1)});
return _.N("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":R,"on:mouseout":t},_.N(_.H,{cond:function(){return B.data().sources},
then:function(b){return _.N(_.yh,{each:b},function(J){return _.N(Jxi,{data:J,active:function(){return J.videoId===V()},
setActiveSourceId:e,interacting:X,playerApi:B.playerApi,sourceVideoConfig:function(){return fce(B.compositeVideoConfig(),J.videoId)}})})}}))},"cj");_.G16=function(B){_.Hn.call(this);this.JSC$20243_watchApi=B;B=_.h(_.WU({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=B.next().value;this.setCompositeVideoOverlayRenderer=B.next().value;B=_.h(_.WU({},void 0,"U5hcq"));this.compositeVideoConfig=B.next().value;this.setCompositeVideoConfig=B.next().value;UXo(this);NG4(this)};
_.l(_.G16,_.Hn);var UXo=function(B){var R=B.JSC$20243_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){NG4(B)});
B.addOnDisposeCallback(function(){B.JSC$20243_watchApi.unsubscribeByKey(R)})},yxU=function(B){var R;
return _.W(function(V){if(V.nextAddress==1)return _.U(V,B.JSC$20243_watchApi.playerApi,2);R=V.yieldResult;R.setCompositeVideoOverlayRendererComponent(B.container);_.b3(V)})},SF7=function(B){var R;
return _.W(function(V){if(V.nextAddress==1)return _.U(V,B.JSC$20243_watchApi.playerApi,2);R=V.yieldResult;R.setCompositeVideoOverlayRendererComponent(void 0);_.b3(V)})},HPi=function(B){var R,V;
return _.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20243_watchApi.playerApi,2);R=e.yieldResult;B.container=document.createElement("div");V=_.Dk(B.container,function(){return _.N(jwn,{data:B.compositeVideoOverlayRenderer,compositeVideoConfig:B.compositeVideoConfig,playerApi:R})});
B.addOnDisposeCallback(V);_.b3(e)})},NG4=function(B){var R,V,e,X,Y,t,b,J;
_.W(function(G){return G.nextAddress==1?(R=B.JSC$20243_watchApi.getPlayerResponse(),Y=_.D((V=R)==null?void 0:(e=V.overlay)==null?void 0:(X=e.playerControlsOverlayRenderer)==null?void 0:X.compositeVideoOverlay,jx6),J=(t=R)==null?void 0:(b=t.playerConfig)==null?void 0:b.compositeVideoConfig,Y&&B.setCompositeVideoOverlayRenderer(Y),J&&B.setCompositeVideoConfig(J),Y&&J?B.container?G.jumpTo(6):_.U(G,HPi(B),6):MLi(B)?_.U(G,SF7(B),0):G.jumpTo(0)):MLi(B)?G.jumpTo(0):_.U(G,yxU(B),0)})},MLi=function(B){var R;
return!((R=B.container)==null||!R.parentElement)};
_.G16.prototype.disposeInternal=function(){MLi(this)&&SF7(this);_.Hn.prototype.disposeInternal.call(this)};_.zUU=function(B){_.Hn.call(this);var R=this;this.JSC$20249_watchApi=B;var V=this.JSC$20249_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var e=R.JSC$20249_watchApi.getPlayerResponse();if(e){var X,Y;if(e=_.D((X=e.endscreen)==null?void 0:(Y=X.endscreenRenderer)==null?void 0:Y.hideButton,_.xx)){var t;(t=R.setEndscreenHideButton)==null||t.call(R,e);k1r(R)}}});
this.addOnDisposeCallback(function(){R.JSC$20249_watchApi.unsubscribeByKey(V)});
B=_.h(_.WU({},void 0,"PPHRb"));this.endscreenHideButton=B.next().value;this.setEndscreenHideButton=B.next().value;DXm(this);fHi(this);lHU(this)};
_.l(_.zUU,_.Hn);var k1r=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return B.creatorEndscreenHideButtonContainer?e.return():_.U(e,B.JSC$20249_watchApi.playerApi,2);R=e.yieldResult;B.creatorEndscreenHideButtonContainer=document.createElement("div");_.iy(B.creatorEndscreenHideButtonContainer,!1);R.setCreatorEndscreenHideButton(B.creatorEndscreenHideButtonContainer);V=_.Dk(B.creatorEndscreenHideButtonContainer,function(){return _.N(_.LO,{data:B.endscreenHideButton,useOutlinedIcon:!0})});
B.addOnDisposeCallback(function(){V();R.setCreatorEndscreenHideButton(void 0)});
_.b3(e)})},DXm=function(B){var R,V;
_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20249_watchApi.playerApi,2);R=e.yieldResult;V=function(){B.creatorEndscreenHideButtonContainer&&_.iy(B.creatorEndscreenHideButtonContainer,!0)};
R.addEventListener("endscreenelementshown",V);B.addOnDisposeCallback(function(){R.removeEventListener("endscreenelementshown",V)});
_.b3(e)})},fHi=function(B){var R=function(){B.creatorEndscreenHideButtonContainer&&_.iy(B.creatorEndscreenHideButtonContainer,!1)},V=B.JSC$20249_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",R),e=B.JSC$20249_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",R);
B.addOnDisposeCallback(function(){B.JSC$20249_watchApi.unsubscribeByKey(V);B.JSC$20249_watchApi.unsubscribeByKey(e)})},lHU=function(B){B.JSC$20249_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(R){var V=_.D(R,Y26);
B.JSC$20249_watchApi.playerApi.then(function(e){e==null||e.setCreatorEndscreenVisibility(!!V.hide)})});
B.addOnDisposeCallback(function(){B.JSC$20249_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.dXz=function(B){_.Hn.call(this);this.JSC$20255_watchApi=B;aH2(this)};
_.l(_.dXz,_.Hn);var aH2=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20255_watchApi.playerApi,2);R=e.yieldResult;V=function(X){_.g6().dispatch(_.or({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:X}}))};
R.addEventListener("onRetroModeChanged",V);B.addOnDisposeCallback(function(){R.removeEventListener("onRetroModeChanged",V)});
_.b3(e)})};var Lm=0,xY=0,vY=0;var wti;wti=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.xV=function(B){_.Hn.call(this);this.JSC$20268_watchApi=B;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;TGU(this)};
_.l(_.xV,_.Hn);
var TGU=function(B){var R,V,e;_.W(function(X){if(X.nextAddress==1)return _.U(X,B.JSC$20268_watchApi.playerApi,2);R=X.yieldResult;if(B.isDisposed())return X.return();B.sessionStorage=_.Uj4("yt-sleep-timer");B.sessionStorage||_.KE(new _.H8("SessionStorage for Sleep Timer is undefined."));((V=B.sessionStorage)==null?void 0:V.get("yt-sleep-timer"))==="true"&&(K$n(),(e=B.sessionStorage)==null||e.remove("yt-sleep-timer"),R.syncVolume());xXN(B,R);Le2(B,R);vNe(B,R);_.b3(X)})},xXN=function(B,R){var V=function(G){B.onSleepTimerSettingsChanged(G,
R)},e=function(G){B.onPlayerStateChange(G,R)},X=function(){B.onLoopChange(R)},Y=function(){B.onCloseMiniplayer(R)},t=function(){TJi(R,(0,_.P8)(),Icr(R),B.selectedOption==="End of video",R.getPlayerState()!==1)},b=function(){B.onSeekComplete(R)},J=function(){_.dV.cancelJob(xY);
var G=R.getCurrentTime()>=R.getDuration(),y=B.selectedOption==="End of video"||B.selectedOption==="End of playlist"&&!acN(B.playlistId);G&&y&&KeN(B,R)};
R.addEventListener("onSleepTimerSettingsChanged",V);R.addEventListener("onLoopChange",X);R.addEventListener("onLoopRangeChange",X);R.addEventListener("onStateChange",e);R.addEventListener("onCloseMiniplayer",Y);R.addEventListener("onSleepTimerFeatureAvailable",t);R.addEventListener("SEEK_COMPLETE",b);R.addEventListener("onAdStart",J);B.addOnDisposeCallback(function(){R.removeEventListener("onSleepTimerSettingsChanged",V);R.removeEventListener("onLoopChange",X);R.removeEventListener("onLoopRangeChange",
X);R.removeEventListener("onStateChange",e);R.removeEventListener("onCloseMiniplayer",Y);R.removeEventListener("onSleepTimerFeatureAvailable",t);R.removeEventListener("SEEK_COMPLETE",b);R.removeEventListener("onAdStart",J)})},Le2=function(B,R){var V=B.JSC$20268_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var e=R.getVideoData().video_id,X,Y=(X=lce(B.JSC$20268_watchApi))==null?void 0:X.playlistId;
B.pauseAutonavPlayback&&(R.pauseVideo(),R.syncVolume(),B.pauseAutonavPlayback=!1);if(B.selectedOption==="End of video"&&e!==B.videoId)LK(B,R);else{if(B.selectedOption==="End of playlist"){X=acN(B.playlistId);if(Y!==B.playlistId){LK(B,R);break a}X?X&&IHr(B,R):EN4(B,R)}B.videoId=e;B.playlistId=Y}}});
B.addOnDisposeCallback(function(){B.JSC$20268_watchApi.unsubscribeByKey(V)})},vNe=function(B,R){var V=_.Oz().resolve(_.zk),e=_.Ge(V,_.auq,function(Y){Y&&B.selectedOption!=="Off"&&LK(B,R)}),X=B.JSC$20268_watchApi.subscribeToActiveChanged(function(Y){var t,b;
return _.W(function(J){if(J.nextAddress==1)return _.U(J,_.Up().navigationFinishPromise,2);t=!_.FVJ();b=_.Oz().resolve(_.An).isMiniplayerActive();Y||!TW(B.selectedOption)||b||t||LK(B,R);_.b3(J)})},!1);
V=_.Ge(V,function(Y){return Y.entities.playlistLoopStateEntity||{}},function(Y){Y=Y===void 0?{}:Y;
var t=zvm(B.JSC$20268_watchApi);if(t){var b;((b=Y[t])==null?void 0:b.state)==="PLAYLIST_LOOP_STATE_ALL"&&TW(B.selectedOption)&&LK(B,R)}});
B.addOnDisposeCallback(e);B.addOnDisposeCallback(V);B.addOnDisposeCallback(X)};
_.xV.prototype.onSleepTimerSettingsChanged=function(B,R){switch(B){case "Off":this.selectedOption!=="Off"&&LK(this,R);break;case "End of video":case "End of playlist":Qwj(this,B,R);break;default:Qwj(this,B,R,wti.get(B))}};
_.xV.prototype.onLoopChange=function(B){(B.getLoopVideo()||B.getLoopRange())&&TW(this.selectedOption)&&LK(this,B)};
_.xV.prototype.onCloseMiniplayer=function(B){TW(this.selectedOption)&&LK(this,B)};
var Qwj=function(B,R,V,e){qFj(B,V);B.selectedOption=R;B.videoId=V.getVideoData().video_id;B.playlistId="";var X;(X=B.sessionStorage)==null||X.set("yt-sleep-timer","true");B.adjustmentsCount++;TJi(V,(0,_.P8)(),Icr(V),B.selectedOption==="End of video");if(B.selectedOption==="End of video")EN4(B,V),cxz(B,V);else if(B.selectedOption==="End of playlist"){cxz(B,V);var Y,t;B.playlistId=(t=(Y=lce(B.JSC$20268_watchApi))==null?void 0:Y.playlistId)!=null?t:"";acN(B.playlistId)||EN4(B,V)}else e&&(B.presetFadeSchedulerId=
_.kx(_.dV,function(){L$m(V,15E3)},e-15E3),B.presetPauseSchedulerId=_.kx(_.dV,function(){KeN(B,V)},e),xhi(V,(0,_.P8)(),e))},KeN=function(B,R){if(B.JSC$20268_watchApi.isActive()){var V={dismissDialogEndpoint:{}};
var e={commandExecutorCommand:{commands:[V,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};V={buttonViewModel:{title:_.Wz("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:V}}};e={buttonViewModel:{title:_.Wz("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:e}}};var X={dialogHeaderViewModel:{headline:{content:_.Wz("SLEEP_TIMER_ENDED_TITLE")}}},
Y={basicContentViewModel:{paragraphs:[{text:{content:_.Wz("SLEEP_TIMER_ENDED_TEXT")}}]}};V={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:X,content:Y,footer:{panelFooterViewModel:{primaryButton:V,secondaryButton:e,shouldHideDivider:!0}}}}}}};_.Oz().resolve(_.oC).resolveCommand(V,{form:{element:B}})}else K$n();Ax2(B,!1);iP6(B,R);R.pauseVideo();_.PL.getInstance().getState()===2&&R.getPlayerState()===5&&(B.pauseAutonavPlayback=!0)},LK=function(B,R){Ax2(B,!0);
iP6(B,R);K$n()},iP6=function(B,R){qFj(B,R);
B.selectedOption="Off";B.videoId="";B.playlistId="";B.adjustmentsCount=0;var V;(V=B.sessionStorage)==null||V.remove("yt-sleep-timer");_.dV.cancelJob(Lm);R.resetSleepTimerMenuSettings()},Ax2=function(B,R){R={timer_length_adjustment_times_during_session:B.adjustmentsCount-1,
is_session_cancelled:R};switch(B.selectedOption){case "Off":R.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":R.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":R.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:R.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",R.option_duration_in_minutes=wti.get(B.selectedOption)/6E4}_.dn("sleepTimerSessionFinishEvent",R)};
_.xV.prototype.onPlayerStateChange=function(B,R){B===1?TJi(R,(0,_.P8)(),Icr(R),this.selectedOption==="End of video"):B===0?(_.dV.cancelJob(xY),R.setVideoTimeLeft(wFo(0,0))):B===2&&_.dV.cancelJob(xY);this.selectedOption==="End of video"?B===0?KeN(this,R):B===2&&von(R):this.selectedOption!=="End of playlist"||acN(this.playlistId)||(B===0?KeN(this,R):B===2&&von(R))};
_.xV.prototype.onSeekComplete=function(B){B.getPlayerState()===2&&TJi(B,(0,_.P8)(),Icr(B),this.selectedOption==="End of video",!0)};
_.xV.prototype.onCueRangeEnter=function(B,R){B==="sleep-timer-fade-audio"&&L$m(R,(R.getDuration()-R.getProgressState().current)*1E3)};
_.xV.prototype.onCueRangeExit=function(B,R){B==="sleep-timer-fade-audio"&&R.getPlayerState()!==0&&von(R,!0)};
var EN4=function(B,R){R.addCueRange("sleep-timer-fade-audio",R.getDuration()-15,R.getDuration());R.addEventListener("onCueRangeEnter",function(V){B.onCueRangeEnter(V,R)});
R.addEventListener("onCueRangeExit",function(V){B.onCueRangeExit(V,R)})},IHr=function(B,R){R.removeCueRange("sleep-timer-fade-audio");
R.removeEventListener("onCueRangeEnter",function(V){B.onCueRangeEnter(V,R)});
R.removeEventListener("onCueRangeExit",function(V){B.onCueRangeExit(V,R)})},qFj=function(B,R){TW(B.selectedOption)?IHr(B,R):(_.dV.cancelJob(B.presetPauseSchedulerId),_.dV.cancelJob(B.presetFadeSchedulerId),B.presetPauseSchedulerId=0,B.presetFadeSchedulerId=0);
von(R,!0)},cxz=function(B,R){R.setLoop(!1);
R.setLoopVideo(!1);R.setLoopRange(null);(B=zvm(B.JSC$20268_watchApi))&&_.Oz().resolve(_.zk).dispatch(_.SX("playlistLoopStateEntity",B,{key:B,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.gNe=function(B){_.Hn.call(this);this.JSC$20271_watchApi=B;swj(this);Fe4(this);rxm(this);B=B.getRoot();if(B.is==="ytd-watch-flexy"||B.is==="ytd-watch-grid")B.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.mt4();_.k("web_watch_log_theater_mode_cookie_state")&&_.UB.get("wide","0")==="1"&&_.Mwp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.l(_.gNe,_.Hn);var swj=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20271_watchApi.playerApi,2);R=e.yieldResult;V=function(X){ZPn(B,!!X)};
R.addEventListener("SIZE_CLICKED",V);B.addOnDisposeCallback(function(){R.removeEventListener("SIZE_CLICKED",V)});
_.b3(e)})},Fe4=function(B){B.JSC$20271_watchApi.registerActionHandler("yt-toggle-theater-mode",function(R,V){ZPn(B,R,V===void 0?!0:V)});
B.addOnDisposeCallback(function(){B.JSC$20271_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.gNe.prototype.getState=function(){return _.as(_.g6().getState())};
var ZPn=function(B,R,V){V=V===void 0?!0:V;var e,X,Y,t=_.k("enable_player_resize_transition")&&!!B.JSC$20271_watchApi.getWatchNextResponse()&&!((e=B.JSC$20271_watchApi.getWatchNextResponse())==null?0:(X=e.contents)==null?0:(Y=X.twoColumnWatchNextResults)==null?0:Y.conversationBar);_.yq7(function(){_.g6().dispatch(_.or({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:R}}));_.k("theater_mode_scroll_to_top_killswitch")||B.JSC$20271_watchApi.scrollWatchTo(0,!1);_.Cp()&&_.k("external_fullscreen")&&_.PJ(document.documentElement);
rxm(B);V&&_.Nn("wide",R?"1":"0",-1);_.oF(B.JSC$20271_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);B.JSC$20271_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:R});R&&_.mt4()},{shouldWrap:t})},rxm=function(B){var R;
_.W(function(V){if(V.nextAddress==1)return _.U(V,B.JSC$20271_watchApi.playerApi,2);R=V.yieldResult;R.setSizeStyle(!0,B.getState());_.b3(V)})};var Cri=function(B){_.Hn.call(this);var R=this;this.playerApi=B;this.timeToPanelSyncKeyMap={};var V;if(B==null?0:(V=B.isReady)==null?0:V.call(B)){V=_.Ge(_.Oz().resolve(_.zk),function(X){return X.entities.timedMarkersListSyncEntity||{}},function(X,Y){X=X===void 0?{}:X;
Y=Y===void 0?{}:Y;for(var t=_.h(Object.keys(Y)),b=t.next();!b.done;b=t.next())b=b.value,X[b]!==Y[b]&&mXi(R,Y[b]);Y=_.h(Object.keys(X));for(t=Y.next();!t.done;t=Y.next())t=t.value,b=X[t],R.timeToPanelSyncKeyMap[t]&&$X7(R,b)});
this.addOnDisposeCallback(V);var e=function(X){R.onCueRangeEnter(X)};
B.addEventListener("onCueRangeEnter",e);this.addOnDisposeCallback(function(){var X;(X=B.removeEventListener)==null||X.call(B,"onCueRangeEnter",e)})}};
_.l(Cri,_.Hn);
var $X7=function(B,R){var V,e;if((V=B.playerApi)==null?0:(e=V.isReady)==null?0:e.call(V)){var X;if((V=R==null?void 0:(X=R.timedListData)==null?void 0:X.sections)&&R!=null&&R.key)for(X=_.h(V),V=X.next();!V.done;V=X.next())if(V=V.value,V.timedSyncDataList&&V.sectionId)for(e=0;e<V.timedSyncDataList.length;e++){var Y=V.timedSyncDataList[e];Y.syncItemId&&B.playerApi.addCueRange(V.sectionId+"_"+R.key+"_"+Y.syncItemId,Number(Y.videoTimeMs)/1E3,e===V.timedSyncDataList.length-1?0x8000000000000:Number(V.timedSyncDataList[e+
1].videoTimeMs)/1E3)}}},mXi=function(B,R){var V,e;
if((V=B.playerApi)==null?0:(e=V.isReady)==null?0:e.call(V)){var X;if((V=R==null?void 0:(X=R.timedListData)==null?void 0:X.sections)&&R!=null&&R.key)for(X=_.h(V),V=X.next();!V.done;V=X.next())if(V=V.value,V.timedSyncDataList&&V.sectionId){e=_.h(V.timedSyncDataList);for(var Y=e.next();!Y.done;Y=e.next())Y=Y.value,Y.syncItemId&&B.playerApi.removeCueRange(V.sectionId+"_"+R.key+"_"+Y.syncItemId)}}};
Cri.prototype.onCueRangeEnter=function(B){for(var R=_.h(Object.keys(this.timeToPanelSyncKeyMap)),V=R.next();!V.done;V=R.next()){V=V.value;var e=_.h(B.split("_"+V+"_")),X=e.next().value;e=e.next().value;if(X&&e){B=_.Oz().resolve(_.zk);R=this.timeToPanelSyncKeyMap[V];var Y=_.cbd(B.getState(),R);V=Prr(V,X,e);if(V===-1)break;V={activeSyncId:e,activeItemIndex:V,activeSectionInfo:{sectionIdentifier:X}};Y?B.dispatch(_.v7("markersEngagementPanelSyncEntity",R,V)):B.dispatch(_.SX("markersEngagementPanelSyncEntity",
R,Object.assign({},{key:R},V)));break}}};
var Prr=function(B,R,V){var e=_.Oz().resolve(_.zk),X,Y;B=(X=FSm(e.getState(),B))==null?void 0:(Y=X.timedListData)==null?void 0:Y.sections;if(!B)return-1;X=0;Y=_.h(B);for(B=Y.next();!B.done;B=Y.next()){B=B.value;e=B.timedSyncDataList||[];if(B.sectionId===R)return R=e.findIndex(function(t){return t.syncItemId===V}),R===-1?R:X+R;
X+=e.length}return-1};_.OPm=function(B){_.Hn.call(this);var R=this;this.JSC$20283_watchApi=B;this.unresolvedCommands=[];this.JSC$20283_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(V){nNm(R,V)});
this.addOnDisposeCallback(function(){R.JSC$20283_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
uZi(this)};
_.l(_.OPm,_.Hn);var uZi=function(B){var R;_.W(function(V){if(V.nextAddress==1)return _.U(V,B.JSC$20283_watchApi.playerApi,2);R=V.yieldResult;if(B.isDisposed())return V.return();B.timedSyncObserver=new Cri(R);B.unresolvedCommands.length&&(B.unresolvedCommands.forEach(function(e){return nNm(B,e)}),B.unresolvedCommands=[]);
_.t4(B,B.timedSyncObserver);_.b3(V)})},nNm=function(B,R){if(B.timedSyncObserver){var V=_.D(R,tMU);
if(V&&V.timedSyncEntityKey&&V.panelSyncEntityKey){B=B.timedSyncObserver;R=V.timedSyncEntityKey;var e=V.panelSyncEntityKey;V=!!V.isEnabled;V=V===void 0?!0:V;var X=_.Oz().resolve(_.zk);X=FSm(X.getState(),R);V?B.timeToPanelSyncKeyMap[R]||(B.timeToPanelSyncKeyMap[R]=e,$X7(B,X)):(delete B.timeToPanelSyncKeyMap[R],mXi(B,X))}}else B.unresolvedCommands.push(R)};var oO4=_.sx(function(B){var R=B.data,V=B.maybeLogSmartSkipClientData,e=_.Zh();_.gb(e,function(){return R().rendererContext},{onTap:function(y,S){S({disableClickTracking:!0})}});
var X=null,Y=null,t=_.k("web_enable_auto_focus_for_timely_action_button"),b=function(){X=document.activeElement},J=function(){R().smartSkipMetadata&&(X=document.activeElement,_.cco(function(){return Y}))},G=function(y){if(R().smartSkipMetadata&&(!y||y.key!=="Enter")){X&&X.isConnected&&(_.cco(function(){return X}),X=null);
var S;(S=Y)==null||S.blur()}};
B=_.Wr(function(){V==null||V(!0,R());return!1});
_.Od(e,{visibilityCallback:function(y){if(t)y?Y&&R().smartSkipMetadata&&(J(),document.addEventListener("focusin",b)):(document.removeEventListener("focusin",b),G());else if(y&&_.k("web_ephemeral_actions")){y=_.Ft(R().rendererContext);var S=Number(R().maxVisibleDurationMilliseconds),M,f=(M=_.D(R().rendererContext,_.mJ))==null?void 0:M.label;y&&S&&f&&(M={label:f,command:y,durationMs:S},_.Oz().resolve(_.tc).enqueue(M))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.fQ(function(){if(t){var y;if((Y=(y=e.value)==null?void 0:y.querySelector("button"))&&R().smartSkipMetadata){var S;(S=e.value)==null||S.addEventListener("keydown",G)}}});
_.aK(function(){t&&(Y&&R().smartSkipMetadata&&Y.removeEventListener("keydown",G),document.removeEventListener("focusin",b),G())});
return _.N("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:e,"on:click":B},_.N(_.wb,{data:function(){return R().content}},{buttonViewModel:_.qo}))},"dj");var BDn=_.sx(function(B){var R=B.data,V=B.playerApi,e=_.Oz().resolve(_.MtS);B=_.h(_.J3(function(){R()}));
var X=B.next().value,Y=B.next().value,t=function(){return Qy2(R(),X())},b=function(G,y){var S,M,f=(S=_.D(y==null?void 0:y.rendererContext,_.n4Z))==null?void 0:(M=S.loggingDirectives)==null?void 0:M.trackingParams;
if((y=y==null?void 0:y.smartSkipMetadata)&&y.loggingData&&(M=y.loggingData,y=M.algorithmId,S=M.startMilliseconds,M=M.endMilliseconds,y&&S!==void 0&&M!==void 0)){var z,T;G={smartSkipData:Object.assign({},{versionName:y,startMediaTimeMs:S,endMediaTimeMs:M},G&&{userInteractionMediaTimeMs:(Math.floor(((z=_.Pr())==null?void 0:(T=z.getPlayer())==null?void 0:T.getCurrentTime())||0)*1E3).toString()})};z=_.TE();var L;f&&(L=_.U5(f));z&&L&&_.FT(z,L,G)}},J=function(G,y){var S=Qy2(R(),G);
if(S){var M=_.D(S,Km),f;if(f=y)f=V(),S=_.D(S,Km),f=S!=null&&S.smartSkipMetadata?!(f==null?0:f.isSameMarkerTypeVisible((S==null?void 0:S.smartSkipMetadata.markerKey)||"")):!0;if(f){var z,T;(M==null?0:(z=M.smartSkipMetadata)==null?0:(T=z.loggingData)==null?0:T.isCounterfactual)||(b(!1,M),Y(G))}else y||X()!==G||Y(void 0)}};
_.lJ(function(){var G=R().timelyActions;if(G){G=_.h(G);for(var y=G.next();!y.done;y=G.next()){y=_.D(y.value,Km);var S=void 0;(S=y)!=null&&S.cueRangeId&&e.timelyActionsMap.set(y.cueRangeId,J)}_.aK(function(){e.timelyActionsMap.clear()})}});
return _.N("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.N(_.wb,{data:t},{timelyActionViewModel:function(G){return _.N(oO4,{data:G.data,maybeLogSmartSkipClientData:function(){b(!0,_.D(t(),Km))}})}}))},"ej");_.Vxi=function(B){_.Hn.call(this);this.JSC$20295_watchApi=B;B=_.h(_.WU({},void 0,"pLDp2"));this.timelyActionsOverlay=B.next().value;this.setTimelyActionsOverlay=B.next().value;Rmn(this)};
_.l(_.Vxi,_.Hn);var Rmn=function(B){var R,V,e,X;_.W(function(Y){if(Y.nextAddress==1)return em6(B),XQ4(B),B.timelyActionsContainer=document.createElement("div"),_.U(Y,B.JSC$20295_watchApi.playerApi,2);R=Y.yieldResult;(e=(V=R).insertTimelyActionUi)==null||e.call(V,B.timelyActionsContainer);X=_.Dk(B.timelyActionsContainer,function(){return _.N(BDn,{data:B.timelyActionsOverlay,playerApi:R})});
B.addOnDisposeCallback(X);_.b3(Y)})},XQ4=function(B){var R=B.JSC$20295_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){em6(B)});
B.addOnDisposeCallback(function(){B.JSC$20295_watchApi.unsubscribeByKey(R)})},em6=function(B){var R=B.JSC$20295_watchApi.getWatchNextResponse();
if(R){var V,e;if(R=_.D((V=R.playerOverlays)==null?void 0:(e=V.playerOverlayRenderer)==null?void 0:e.timelyActionsOverlayViewModel,Wdr)){var X;(X=B.setTimelyActionsOverlay)==null||X.call(B,R)}}};_.YEn=function(B){_.Hn.call(this);this.JSC$20299_watchApi=B;pQn(this)};
_.l(_.YEn,_.Hn);var pQn=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20299_watchApi.playerApi,2);R=e.yieldResult;V=function(X){_.eR.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.D(X,_.lJm)},popupType:"TOAST"}})};
R.addEventListener("onYtShowToast",V);B.addOnDisposeCallback(function(){R.removeEventListener("onYtShowToast",V)});
_.b3(e)})};var hm6,bVj,txn,Wve,ND6,jU2,Uvm,yPn,SE4;hm6=!1;_.JPz=function(B){_.Hn.call(this);this.JSC$20302_watchApi=B;this.fullscreen=this.theater=!1;txn(this);Wve(this);bVj(this)};
_.l(_.JPz,_.Hn);bVj=function(B){var R,V,e;_.W(function(X){if(X.nextAddress==1)return _.U(X,B.JSC$20302_watchApi.playerApi,2);R=X.yieldResult;if(B.isDisposed())return X.return();V=B.JSC$20302_watchApi.getElement("CINEMATICS");if(!V)return X.return();B.JSC$20302_cinematicController=new _.Xg(V,R);_.t4(B,B.JSC$20302_cinematicController);_.mBi(B.JSC$20302_cinematicController);jU2(B,_.fbS());e=B.JSC$20302_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(Y){Uvm(B,Y)});
B.addOnDisposeCallback(function(){B.JSC$20302_watchApi.unsubscribeByKey(e)});
ND6(B);Uvm(B,B.JSC$20302_cinematicController.isAllowed());_.GS4(B,B.fullscreen,B.theater);yPn(B);_.b3(X)})};
txn=function(B){var R=B.JSC$20302_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ND6(B)});
B.addOnDisposeCallback(function(){B.JSC$20302_watchApi.unsubscribeByKey(R)})};
Wve=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20302_watchApi.playerApi,2);R=e.yieldResult;V=function(X){jU2(B,X)};
R.addEventListener("cinematicSettingsToggleChange",V);B.addOnDisposeCallback(function(){R.removeEventListener("cinematicSettingsToggleChange",V)});
_.b3(e)})};
ND6=function(B){var R=B.JSC$20302_watchApi.getWatchNextResponse(),V;R=_.D(R==null?void 0:(V=R.pageVisualEffects)==null?void 0:V[0],_.MX);var e;(e=B.JSC$20302_cinematicController)==null||_.CXU(e,R)};
jU2=function(B,R){var V;(V=B.JSC$20302_cinematicController)==null||_.$Br(V,R);SE4(B)};
Uvm=function(B,R){var V;_.W(function(e){if(e.nextAddress==1)return _.k("kevlar_watch_cinematics_invisible")&&(R=!1),_.U(e,B.JSC$20302_watchApi.playerApi,2);V=e.yieldResult;V.updateCinematicSettings(R);SE4(B);_.b3(e)})};
yPn=function(B){var R=_.UV();if(_.k("kevlar_measure_ambient_mode_idle")&&!R.getFlag(192)&&!hm6){hm6=!0;var V=_.kD(_.dV,function(){_.Oz().resolve(_.Jr4).start(1E4)},5E3);
B.addOnDisposeCallback(function(){_.dV.cancelJob(V);_.Oz().resolve(_.Jr4).stop()})}};
_.GS4=function(B,R,V){B.fullscreen=R;B.theater=V;var e;(e=B.JSC$20302_cinematicController)==null||e.setFullscreen(B.fullscreen,B.theater);if(_.k("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(B.theater||B.fullscreen){var X;(X=B.JSC$20302_cinematicController)==null||_.PX4(X)}else if((B=B.JSC$20302_cinematicController)!=null){var Y;(Y=B.currentCinematicEffect)==null||Y.pause()}};
SE4=function(B){if(_.k("web_cinematic_theater_mode")||_.k("web_cinematic_fullscreen")){var R;B.JSC$20302_watchApi.getRoot().toggleCinematicsActive(!((R=B.JSC$20302_cinematicController)==null||!R.isEnabled()))}};_.Dvr=function(B){_.Hn.call(this);var R=this;this.JSC$20305_watchApi=B;this.commentsReady=!1;this.setCommentsJobId=0;B=_.Ge(_.g6(),_.a2,function(){HV4(R)});
this.addOnDisposeCallback(B);var V=this.JSC$20305_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Mx6(R)}),e=this.JSC$20305_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Mx6(R)});
this.addOnDisposeCallback(function(){R.JSC$20305_watchApi.unsubscribeByKey(V);R.JSC$20305_watchApi.unsubscribeByKey(e)});
var X=function(){_.k("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&kSn(R,"false")};
this.JSC$20305_watchApi.getRoot().addEventListener("yt-page-data-will-update",X);this.addOnDisposeCallback(function(){R.JSC$20305_watchApi.getRoot().removeEventListener("yt-page-data-will-update",X)});
Mx6(this)};
_.l(_.Dvr,_.Hn);var Mx6=function(B){B.commentsReady=!1;_.dV.cancelJob(B.setCommentsJobId);B.setCommentsJobId=_.kD(_.dV,function(){HV4(B)},1E3)},HV4=function(B){if(!B.commentsReady){_.zp("cmi");
_.dV.cancelJob(B.setCommentsJobId);var R,V,e,X,Y=(R=B.JSC$20305_watchApi.getWatchNextResponse())==null?void 0:(V=R.contents)==null?void 0:(e=V.twoColumnWatchNextResults)==null?void 0:(X=e.results)==null?void 0:X.results.contents;R=void 0;if(Y&&Y.length)for(Y=_.h(Y),V=Y.next();!V.done;V=Y.next())if(V=V.value,X=e=void 0,((e=V)==null?void 0:(X=e.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section"){_.k("web_watch_provide_undefined_comments")?R=V.itemSectionRenderer:B.JSC$20305_watchApi.provideRenderingData("COMMENTS",
V.itemSectionRenderer);kSn(B,"true");break}_.k("web_watch_provide_undefined_comments")&&B.JSC$20305_watchApi.provideRenderingData("COMMENTS",R);B.commentsReady=!0;B.JSC$20305_watchApi.dispatchEvent("yt-watch-comments-ready")}},kSn=function(B,R){var V;
(V=B.JSC$20305_watchApi.getElement("COMMENTS"))==null||V.setAttribute("canScheduleJobs",R)};_.EU=function(B){_.Hn.call(this);var R=this;this.JSC$20308_watchApi=B;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.k("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.k("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.k("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.RC("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)fRm(this);
else{var V=this.JSC$20308_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){vi(R);KK(R)}),e=this.JSC$20308_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Iz(R);
KK(R)});
this.JSC$20308_watchApi.getRoot().is==="ytd-watch-grid"&&_.k("swatcheroo_pbs_load_grid")&&(lRN(this),zme(this));this.addOnDisposeCallback(function(){R.JSC$20308_watchApi.unsubscribeByKey(V);R.JSC$20308_watchApi.unsubscribeByKey(e);_.dV.cancelJob(R.provideRichGridJobId)});
vi(this);Iz(this)}};
_.l(_.EU,_.Hn);var fRm=function(B){var R=B.JSC$20308_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){B.providePlayerJobId=_.db(_.dV,function(){vi(B);KK(B)},B.provideAllDataDelayMs)}),V=B.JSC$20308_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){B.provideWatchNextJobId=_.db(_.dV,function(){Iz(B);
KK(B)},B.provideAllDataDelayMs)}),e=B.JSC$20308_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){B.provideWatchNextJobId=_.db(_.dV,function(){Iz(B);
KK(B)},B.provideAllDataDelayMs)});
B.JSC$20308_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.kD(_.dV,function(){vi(B);Iz(B);KK(B)},100)});
B.JSC$20308_watchApi.addPageDisposeJob(function(){_.dV.cancelJob(B.provideWatchNextJobId);_.dV.cancelJob(B.providePlayerJobId)});
B.addOnDisposeCallback(function(){B.JSC$20308_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");B.JSC$20308_watchApi.unsubscribeByKey(R);B.JSC$20308_watchApi.unsubscribeByKey(V);B.JSC$20308_watchApi.unsubscribeByKey(e);_.dV.cancelJob(B.providePlayerJobId);_.dV.cancelJob(B.provideWatchNextJobId)});
vi(B);Iz(B)},vi=function(B){var R=B.JSC$20308_watchApi.getPlayerResponse(),V,e,X=(e=R==null?void 0:(V=R.playabilityStatus)==null?void 0:V.messageRenderers)!=null?e:[],Y,t;
R=(t=R==null?void 0:(Y=R.playabilityStatus)==null?void 0:Y.messages)!=null?t:[];Y=_.h(R);for(t=Y.next();!t.done;t=Y.next())X.push({alertRenderer:{text:_.s$(t.value),type:"WARNING"}});B.JSC$20308_watchApi.provideRenderingData("ALERTS",X)},Iz=function(B){var R=[],V,e,X,Y=B.JSC$20308_watchApi.getWatchNextResponse(),t,b,J,G,y=Y==null?void 0:(t=Y.contents)==null?void 0:(b=t.twoColumnWatchNextResults)==null?void 0:(J=b.results)==null?void 0:(G=J.results)==null?void 0:G.contents;
if(y)for(t=_.h(y),b=t.next();!b.done;b=t.next())if(b=b.value,b.videoPrimaryInfoRenderer)var S=b;else if(b.videoSecondaryInfoRenderer){var M=b;G=J=void 0;b=Object.assign({},(J=b.videoSecondaryInfoRenderer)==null?void 0:(G=J.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer);if(b.rows&&b.collapsedItemCount!==void 0){b.rows=b.rows.slice(0,b.collapsedItemCount).filter(function(ZS){return!!ZS.richMetadataRowRenderer});
b.collapsedItemCount=b.rows.length;var f={metadataRowContainerRenderer:b}}}else if(b.merchandiseShelfRenderer)var z=b;else if(b.ticketShelfRenderer)var T=b;else if(b.expandableMetadataRenderer)var L=b;else if(b.itemSectionRenderer)if(J=b.itemSectionRenderer.contents,G=void 0,B.directlyProvideComments&&((G=b.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section")_.zp("cmi"),B.JSC$20308_watchApi.provideRenderingData("COMMENTS",b.itemSectionRenderer);else if(J)for(b=_.h(J),J=
b.next();!J.done;J=b.next())if(J=J.value,J.commentsEntryPointHeaderRenderer)var Q=J;else if(J.clarificationRenderer||J.infoPanelContainerRenderer||J.infoPanelContentRenderer||J.emergencyOneboxRenderer){R.push(J);var q=q||!!M}else J.limitedStateMessageRenderer?e=J:J.videoMetadataCarouselViewModel&&(X=J);if(_.k("web_watch_merch_in_sd_when_ticket_shelf_present")&&z&&T){var m=z;z=void 0}if(B.provideWatchNextSecondaryResults){var g,Vu,n;B.JSC$20308_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
Y==null?void 0:(g=Y.contents)==null?void 0:(Vu=g.twoColumnWatchNextResults)==null?void 0:(n=Vu.secondaryResults)==null?void 0:n.secondaryResults)}if(B.JSC$20308_watchApi.getRoot().is==="ytd-watch-grid"){var Yd,kd;B.JSC$20308_watchApi.provideRenderingData("LIVE_CHAT",Y==null?void 0:(Yd=Y.contents)==null?void 0:(kd=Yd.twoColumnWatchNextResults)==null?void 0:kd.conversationBar)}var a5,lo,io,vd;(g=Y==null?void 0:(a5=Y.contents)==null?void 0:(lo=a5.twoColumnWatchNextResults)==null?void 0:(io=lo.secondaryResults)==
null?void 0:(vd=io.secondaryResults)==null?void 0:vd.offerModule)&&(g.donationShelfRenderer||g.donationUnavailableRenderer)&&B.JSC$20308_watchApi.getRoot().is!=="ytd-watch-grid"&&(V=g);a5=B.JSC$20308_watchApi.getPlayerResponse();if(!a5||!_.y2_(a5.playabilityStatus,Y==null?void 0:Y.playerOverlays)){var cd;if(Y==null?0:(cd=Y.contents)==null?0:cd.singleColumnWatchNextResults){var ES,$d;var Eo=Y==null?void 0:(ES=Y.contents.singleColumnWatchNextResults.results)==null?void 0:($d=ES.results)==null?void 0:
$d.contents}else{var GG,eJ,pR,d4;cd=!!(y==null?0:(GG=y[0])==null?0:(eJ=GG.itemSectionRenderer)==null?0:(pR=eJ.contents)==null?0:(d4=pR[0])==null?0:d4.backgroundPromoRenderer);var W2,By;GG=!!(Y==null?0:(W2=Y.contents)==null?0:(By=W2.twoColumnWatchNextResults)==null?0:By.secondaryResults);cd&&!GG&&(Eo=y)}}y=R[0];W2=R[1];q&&R.length===1&&(W2=y,y=void 0);B.JSC$20308_watchApi.provideRenderingData("PRIMARY_INFO",S);B.JSC$20308_watchApi.provideRenderingData("SECONDARY_INFO",M);B.JSC$20308_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
Q);B.JSC$20308_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",X);B.JSC$20308_watchApi.provideRenderingData("CLARIFICATION",y);B.JSC$20308_watchApi.provideRenderingData("RICH_METADATA",f);B.JSC$20308_watchApi.provideRenderingData("MERCH_SHELF",z);_.k("web_watch_merch_in_sd_when_ticket_shelf_present")&&B.JSC$20308_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",m);B.JSC$20308_watchApi.provideRenderingData("TICKET_SHELF",T);B.JSC$20308_watchApi.provideRenderingData("LIMITED_STATE",e);B.JSC$20308_watchApi.getRoot().is!==
"ytd-watch-grid"&&B.JSC$20308_watchApi.provideRenderingData("DONATION_SHELF",V);B.JSC$20308_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Eo);B.JSC$20308_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",W2);B.JSC$20308_watchApi.provideRenderingData("EXPANDABLE_METADATA",L);if(B.swatcherooProvideAllDataOnScheduledJob){var DY,hA,fR,Qv,i4,TG;S=Y==null?void 0:(DY=Y.contents)==null?void 0:(hA=DY.twoColumnWatchNextResults)==null?void 0:(fR=hA.secondaryResults)==null?void 0:(Qv=fR.secondaryResults)==
null?void 0:(i4=Qv.results)==null?void 0:(TG=i4[0])==null?void 0:TG.richGridRenderer;B.JSC$20308_watchApi.provideRenderingData("RICH_GRID_RENDERER",S)}};
_.EU.prototype.hasCompanionAds=function(B){var R,V;return(V=B==null?void 0:(R=B.adPlacements)==null?void 0:R.some(function(e){var X,Y,t,b;return(e==null?void 0:(X=e.adPlacementRenderer)==null?void 0:(Y=X.renderer)==null?void 0:Y.actionCompanionAdRenderer)||(e==null?void 0:(t=e.adPlacementRenderer)==null?void 0:(b=t.renderer)==null?void 0:b.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?V:!1};
var KK=function(B){if(!_.k("swaterdoo_ps_wn_handle_ks")){B.swatcherooProvideAllDataOnScheduledJob||zme(B,3E3);var R=B.JSC$20308_watchApi.getPlayerResponse(),V,e,X,Y,t,b=(V=B.JSC$20308_watchApi.getWatchNextResponse())==null?void 0:(e=V.contents)==null?void 0:(X=e.twoColumnWatchNextResults)==null?void 0:(Y=X.secondaryResults)==null?void 0:(t=Y.secondaryResults)==null?void 0:t.offerModule;R=B.hasCompanionAds(R);var J,G;V=(b==null?void 0:(J=b.tvfilmOfferModuleRenderer)==null?void 0:J.clientShouldSuppressIfCompanionAdDisplayed)||
(b==null?void 0:(G=b.unlimitedOfferModuleRenderer)==null?void 0:G.suppressIfCompanionAds);J=R&&V;B.JSC$20308_watchApi.getRoot().is==="ytd-watch-grid"&&B.JSC$20308_watchApi.provideRenderingData("OFFER_MODULE",J?void 0:b)}},zme=function(B,R){_.k("swatcheroo_pbs_load_grid")&&(B.provideRichGridJobId&&_.dV.cancelJob(B.provideRichGridJobId),B.provideRichGridJobId=_.db(_.dV,function(){B.provideRichGridJobId=0;
var V,e,X,Y,t,b,J,G=(V=B.JSC$20308_watchApi.getWatchNextResponse())==null?void 0:(e=V.contents)==null?void 0:(X=e.twoColumnWatchNextResults)==null?void 0:(Y=X.secondaryResults)==null?void 0:(t=Y.secondaryResults)==null?void 0:(b=t.results)==null?void 0:(J=b[0])==null?void 0:J.richGridRenderer;G&&B.JSC$20308_watchApi.provideRenderingData("RICH_GRID_RENDERER",G)},R))},lRN=function(B){var R,V;
_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20308_watchApi.playerApi,2);R=e.yieldResult;V=function(){B.onPlaybackStart()};
R.addEventListener("onPlaybackStartExternal",V);B.addOnDisposeCallback(function(){R.removeEventListener("onPlaybackStartExternal",V)});
_.b3(e)})};
_.EU.prototype.onPlaybackStart=function(){zme(this)};_.dvj=function(B){_.Hn.call(this);var R=this;this.JSC$20318_watchApi=B;B.playerApi.then(function(V){R.player=V});
this.gestures=new _.Wj(this.JSC$20318_watchApi.getRoot(),B.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.CSn(_.g6().getState())&&_.a2(_.g6().getState())<=0)if(_.zW(_.g6().getState())){var V;(V=R.player)==null||V.toggleFullscreen()}else _.oF(R.JSC$20318_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
aR6(this)};
_.l(_.dvj,_.Hn);var aR6=function(B){var R=_.Ge(_.g6(),_.zW,function(V){B.gestures&&B.gestures.update(V)});
B.addOnDisposeCallback(R);R=_.Ge(_.g6(),_.a2,function(V){B.gestures&&(V>0?B.gestures.detach():B.gestures.attach())});
B.addOnDisposeCallback(R)};_.TD7=function(B){_.Hn.call(this);var R=this;this.JSC$20321_watchApi=B;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(B.subscribeToActiveChanged(function(V){R.onActiveChanged(V)}));
wQe(this)};
_.l(_.TD7,_.Hn);var xv2=function(B){if(_.k("swatcheroo_page_dispose_all_watch_data"))B.pageDisposalDataTypes=Object.values(Pm2).filter(function(V){return V!=="PLAYLIST"});
else if(_.k("swatcheroo_page_dispose_rich_grid")){var R;(R=B.pageDisposalDataTypes)==null||R.push("RICH_GRID_RENDERER")}},wQe=function(B){_.k("swatcheroo_enable_ghost_cards")&&(xv2(B),B.JSC$20321_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.dV.cancelJob(B.clearDataJobId);
B.clearDataJobId=0}),B.runPageDisposeJob=function(){var R=_.Oz().resolve(_.$B).getDestinationPageType()==="watch";
B.clearDataJobId=_.db(_.dV,B.runClearDataJob,R?0:_.RC("web_watch_delay_page_dispose_ms",1E4))},B.runClearDataJob=function(){Lvz(B)},B.runOnYtNavigateAwayFinish=function(){B.clearDataJobId&&(_.dV.cancelJob(B.clearDataJobId),B.clearDataJobId=0,Lvz(B))},document.addEventListener("yt-navigate-finish",B.runOnYtNavigateAwayFinish),B.JSC$20321_watchApi.addPageDisposeJob(B.runPageDisposeJob),B.addOnDisposeCallback(function(){B.JSC$20321_watchApi.removePageDisposeJob(B.runPageDisposeJob);
B.JSC$20321_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",B.runOnYtNavigateAwayFinish)}))},Lvz=function(B){B.pageDisposalDataTypes.forEach(function(R){B.JSC$20321_watchApi.provideRenderingData(R,void 0)});
B.clearDataJobId=0};
_.TD7.prototype.onActiveChanged=function(B){B&&((B=document.querySelector("#watch-page-skeleton"))&&_.UJ(B),vOm(this),document.body.removeAttribute("no-y-overflow"),_.KQ("IS_SHELL_LOAD")&&_.i42())};
var vOm=function(B){_.W(function(R){if(R.nextAddress==1)return _.U(R,B.JSC$20321_watchApi.playerApi,2);_.uH();_.b3(R)})};var Kv4;Kv4=_.k("kevlar_watch_while_counterfactual")?0:.25;_.Qw=function(B){_.Hn.call(this);this.JSC$20324_watchApi=B;this.JSC$20324_watchWhileEnabled=_.k("kevlar_watch_while_v2");this.pipEnabled=_.k("web_enable_pip_on_miniplayer");IR7(this);EOU(this);QUo(this)};
_.l(_.Qw,_.Hn);var IR7=function(B){B.JSC$20324_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){qE4(B)});
B.addOnDisposeCallback(function(){B.JSC$20324_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},EOU=function(B){var R,V;
_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20324_watchApi.playerApi,2);R=e.yieldResult;V=function(){qE4(B)};
R.addEventListener("onCollapseMiniplayer",V);B.addOnDisposeCallback(function(){R.removeEventListener("onCollapseMiniplayer",V)});
_.b3(e)})},QUo=function(B){var R=B.JSC$20324_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&R&&B.JSC$20324_watchWhileEnabled&&(B.playerIntersectionObserver=new IntersectionObserver(function(V){B.handleIntersect(V)},{threshold:[Kv4]}),B.playerIntersectionObserver.observe(R),B.addOnDisposeCallback(function(){var V;
(V=B.playerIntersectionObserver)==null||V.disconnect()}))},qE4=function(B){var R,V,e;
_.W(function(X){if(X.nextAddress==1){R=_.Oz().resolve(_.$B);V=R.data;e=_.G1I(V.response,V.playerResponse);_.Up().miniplayerButtonActivation=!0;if(B.pipEnabled)return _.Up().watchPipActivation=!0,X.jumpTo(2);_.Oz().resolve(_.An).collapse();return _.U(X,_.Up().navigationFinishPromise,2)}if(X.nextAddress!=4)return _.Up().currentEndpoint=e.watchEndpoint||null,_.U(X,_.Oz().resolve(_.An).activate(B.JSC$20324_watchApi.getElement("PLAYER"),e,V),4);_.Up().userActivation=!0;_.b3(X)})};
_.Qw.prototype.handleIntersect=function(B){cPi(this,B[B.length-1])};
var cPi=function(B,R){B.watchWhileJobId&&_.dV.cancelJob(B.watchWhileJobId);B.watchWhileJobId=_.dV.addLowPriorityJob(function(){var V,e;return _.W(function(X){if(X.nextAddress==1)return B.watchWhileJobId=void 0,V=_.Oz().resolve(_.An),R.intersectionRatio>Kv4?V.isMiniplayerActive()?_.U(X,V.deactivate(),0):X.jumpTo(0):(e=!V.isMiniplayerActive())?_.U(X,APm(B),5):X.jumpTo(4);X.nextAddress!=4&&(e=X.yieldResult);if(!e)return X.jumpTo(0);_.Up().watchWhileActivation=!0;return _.U(X,iVm(B),0)})},100)},APm=function(B){return _.W(function(R){return R.nextAddress==
1?_.k("kevlar_watch_while_paused")?R.return(!0):_.U(R,B.isPlayerPlaying(),2):R.return(R.yieldResult)})};
_.Qw.prototype.isPlayerPlaying=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,B.JSC$20324_watchApi.playerApi,2);R=V.yieldResult;return V.return(R.getPlayerStateObject().isPlaying)})};
var iVm=function(B){var R,V;return _.W(function(e){R=_.Oz().resolve(_.$B).data;V=_.G1I(R.response,R.playerResponse);_.Up().currentEndpoint=V.watchEndpoint||null;return _.U(e,_.Oz().resolve(_.An).activate(B.JSC$20324_watchApi.getElement("PLAYER"),V,R),0)})};_.rPU=function(B){_.Hn.call(this);this.JSC$20328_watchApi=B;sU6(this);Fv4(this)};
_.l(_.rPU,_.Hn);var Fv4=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20328_watchApi.playerApi,2);R=e.yieldResult;V=function(X){var Y;X.sessionData&&X.sessionData.itct&&(Y=X.sessionData.itct);var t=X.watchEndpoint;if(t&&X.sessionData&&X.sessionData.autonav)t=_.PLx(t,Y);else{var b;t=_.Pz(X.videoId,(b=X.listId)!=null?b:void 0,Y)}Y={endpoint:t};X.sessionData&&(Y.tempData=X.sessionData);B.JSC$20328_watchApi.dispatchEvent("yt-navigate",Y)};
R.addEventListener("onPlayVideo",V);B.addOnDisposeCallback(function(){R.removeEventListener("onPlayVideo",V)});
_.b3(e)})},sU6=function(B){var R=function(V){B.onYtNavigate(V)};
B.JSC$20328_watchApi.getRoot().addEventListener("yt-navigate",R);B.addOnDisposeCallback(function(){B.JSC$20328_watchApi.getRoot().removeEventListener("yt-navigate",R)})};
_.rPU.prototype.onYtNavigate=function(B){var R=this,V,e,X,Y,t,b,J,G,y;return _.W(function(S){if(S.nextAddress==1){if(!((V=B.detail)==null?0:(e=V.endpoint)==null?0:e.watchEndpoint))return S.return();X=B.detail.endpoint.watchEndpoint;Y=R.JSC$20328_watchApi.getWatchNextResponse();b=_.D((t=Y)==null?void 0:t.currentVideoEndpoint,_.sI);if(!b)return S.return();if(X.videoId!==b.videoId||X.playlistId&&X.playlistId!==b.playlistId||typeof X.startTimeSeconds!=="number")return S.jumpTo(0);B.stopPropagation();
(J=_.k("kevlar_watch_while_v2")&&!_.k("kevlar_watch_while_counterfactual"))&&_.Oz().resolve(_.An).isMiniplayerActive()||R.JSC$20328_watchApi.scrollWatchTo(0,!0);return _.U(S,R.JSC$20328_watchApi.playerApi,3)}G=S.yieldResult;y=X.startTimeSeconds;G.seekTo(y,void 0,void 0,void 0,84);G.wakeUpControls();y<G.getDuration()&&G.playVideo();_.b3(S)})};_.ZVr=function(B){_.Hn.call(this);var R=this;this.JSC$20331_watchApi=B;var V=this.JSC$20331_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gON(R)});
this.addOnDisposeCallback(function(){R.JSC$20331_watchApi.unsubscribeByKey(V)});
gON(this)};
_.l(_.ZVr,_.Hn);var gON=function(B){var R=B.JSC$20331_watchApi.getWatchNextResponse();if(R){var V,e=[].concat(_.MI((V=R==null?void 0:R.engagementPanels)!=null?V:[]));e.unshift.apply(e,_.MI(mvn(R)));B.JSC$20331_watchApi.provideRenderingData("ENGAGEMENT_PANELS",e)}},$v7=function(B){var R,V,e,X=(R=B.engagementPanels)==null?void 0:(V=R.find(function(f){var z;
return((z=f.engagementPanelSectionListRenderer)==null?void 0:z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(e=V.engagementPanelSectionListRenderer.content)==null?void 0:e.structuredDescriptionContentRenderer,Y;
if(_.D(X==null?void 0:(Y=X.items)==null?void 0:Y.find(function(f){return!!_.D(f,dP4)}),dP4))return!0;
var t,b,J,G;if(B=(((t=B.contents)==null?void 0:(b=t.twoColumnWatchNextResults)==null?void 0:(J=b.results)==null?void 0:(G=J.results)==null?void 0:G.contents)||[]).find(function(f){return f.videoPrimaryInfoRenderer})){var y,S,M;
return(((y=B.videoPrimaryInfoRenderer)==null?void 0:(S=y.videoActions)==null?void 0:(M=S.menuRenderer)==null?void 0:M.flexibleItems)||[]).some(function(f){f=_.D(f,_.eX2);if(!f)return!1;var z,T;f=(z=f.topLevelButton)==null?void 0:(T=z.buttonViewModel)==null?void 0:T.onTap;if(!f)return!1;z=_.dl(f);if(!z)return!1;var L;return((L=_.D(z,_.vS))==null?void 0:L.panelIdentifier)==="PAyouchat"})}return!1},mvn=function(B){var R=[];
if(!_.k("web_watch_inject_placeholder_fantasy_panel_killswitch")){var V,e,X,Y=(V=B.engagementPanels)==null?void 0:(e=V.find(function(b){var J;return((J=b.engagementPanelSectionListRenderer)==null?void 0:J.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(X=e.engagementPanelSectionListRenderer.content)==null?void 0:X.structuredDescriptionContentRenderer,t;
_.D(Y==null?void 0:(t=Y.items)==null?void 0:t.find(function(b){return!!_.D(b,epo)}),epo)&&(V=_.ppI("PAsports_fantasy"),V.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R.push(V))}$v7(B)&&(B=_.ppI("PAyouchat"),B.engagementPanelSectionListRenderer.targetId="PAyouchat",B.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R.push(B));
return R};_.Pn7=function(B){_.Hn.call(this);this.JSC$20334_watchApi=B;Cnj(this)};
_.l(_.Pn7,_.Hn);var Cnj=function(B){B.JSC$20334_watchApi.registerActionHandler("yt-loop-command",function(R){nOz(B,R)});
B.JSC$20334_watchApi.registerActionHandler("yt-repeat-chapter-command",function(R){uQU(B,R)});
B.addOnDisposeCallback(function(){B.JSC$20334_watchApi.unregisterActionHandler("yt-loop-command");B.JSC$20334_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},nOz=function(B,R){var V;
_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20334_watchApi.playerApi,2);V=e.yieldResult;_.D(R,pvj).loop?(V.setLoopRange({startTimeMs:Number(_.D(R,pvj).startTimeMs),endTimeMs:Number(_.D(R,pvj).endTimeMs),postId:_.D(R,pvj).postId,type:"clips"}),V.playVideo()):V.setLoopRange(null);_.b3(e)})},uQU=function(B,R){var V,e;
_.W(function(X){if(X.nextAddress==1)return _.U(X,B.JSC$20334_watchApi.playerApi,2);V=X.yieldResult;e=_.D(R,bGN).repeat;e==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(V.setLoopRange({startTimeMs:Number(_.D(R,bGN).startTimeMs),endTimeMs:Number(_.D(R,bGN).endTimeMs),type:"repeatChapter"}),V.playVideo()):e==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&V.setLoopRange(null);_.b3(X)})};_.oYz=function(B){_.Hn.call(this);this.JSC$20339_watchApi=B;OV4(this)};
_.l(_.oYz,_.Hn);var OV4=function(B){B.JSC$20339_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(R){Bun(B,R)});
B.addOnDisposeCallback(function(){B.JSC$20339_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Bun=function(B,R){var V,e,X,Y,t,b,J,G,y,S,M;
_.W(function(f){if(f.nextAddress==1)return _.U(f,B.JSC$20339_watchApi.playerApi,2);V=f.yieldResult;if(Y=(X=(e=_.D(R,JO4))==null?void 0:e.highlightedMenuItemKey)!=null?X:"")(b=(t=V).highlightSettingsMenuItem)==null||b.call(t,Y);if(y=(G=(J=_.D(R,JO4))==null?void 0:J.openMenuItemKey)!=null?G:"")(M=(S=V).openSettingsMenuItem)==null||M.call(S,y);_.b3(f)})};var RG2=_.XF("/youtube/app/watch/player_state","playerStateEntity");_.eG4=function(B){_.Hn.call(this);this.JSC$20342_watchApi=B;Vh2(this)};
_.l(_.eG4,_.Hn);var XYU=function(B){switch(B){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"}},Vh2=function(B){var R,V;
_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20342_watchApi.playerApi,2);R=e.yieldResult;V=function(X){B.onPlayerStateChange(X)};
R.addEventListener("onStateChange",V);B.addOnDisposeCallback(function(){R.removeEventListener("onStateChange",V)});
_.b3(e)})};
_.eG4.prototype.onPlayerStateChange=function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1)return _.U(X,R.JSC$20342_watchApi.playerApi,2);V=X.yieldResult;e=V.getVideoData().video_id;_.QL().dispatch(_.SX("playerStateEntity",RG2,{key:RG2,playerState:XYU(B),videoId:e}));_.b3(X)})};_.pYo=function(B){_.Hn.call(this);var R=this;this.JSC$20346_watchApi=B;_.Oz().resolve(_.Ky).setPlayer(this.JSC$20346_watchApi.getElement("PLAYER"));B=this.JSC$20346_watchApi.subscribeToActiveChanged(function(V){R.onActiveChanged(V)});
this.addOnDisposeCallback(B)};
_.l(_.pYo,_.Hn);_.pYo.prototype.onActiveChanged=function(B){var R=this,V=_.Oz().resolve(_.Ky),e=function(){Ya2(R)};
B?(B=this.JSC$20346_watchApi.getElement("PLAYLIST_PANEL"))?(V.setPlaylistComponent(B),V.addEventListener("yt-playlist-data-updated",e),this.addOnDisposeCallback(function(){V.removeEventListener("yt-playlist-data-updated",e)}),Ya2(this)):_.cE(Error("jm")):(V.removeEventListener("yt-playlist-data-updated",e),V.cancelVideoSkip())};
var Ya2=function(B){var R=_.Oz().resolve(_.Ky);B.JSC$20346_watchApi.provideRenderingData("PLAYLIST",R.getPlaylistData())};_.qQ=function(B){_.Hn.call(this);var R=this;this.JSC$20349_watchApi=B;this.onPageScroll=function(){R.scrollThrottle.fire();R.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.o7(this.onThrottledScroll,200,this);_.t4(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.o7(this.onMastheadThrottledScroll,50,this);_.t4(this,this.mastheadScrollThrottle);this.animation=new _.dQ(function(V){R.JSC$20349_watchApi.getRoot().setScrollTop(V)});
B=_.Ge(_.g6(),_.zW,function(){hG4(R)});
this.addOnDisposeCallback(B);thz(this);WTU(this);this.onThrottledScroll()};
_.l(_.qQ,_.Hn);
var hG4=function(B){var R=B.JSC$20349_watchApi.getRoot();!B.pageScrollElement&&R.pageScrollElement?(B.pageScrollElement=R.pageScrollElement,R.pageScrollElement.addEventListener("scroll",B.onPageScroll),B.addOnDisposeCallback(function(){B.pageScrollElement&&B.pageScrollElement.removeEventListener("scroll",B.onPageScroll)})):B.pageScrollElement&&!R.pageScrollElement&&(B.pageScrollElement.removeEventListener("scroll",B.onPageScroll),B.pageScrollElement=void 0)},thz=function(B){window.addEventListener("scroll",B.onPageScroll);
B.addOnDisposeCallback(function(){window.removeEventListener("scroll",B.onPageScroll)})},WTU=function(B){B.JSC$20349_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(R){a:{var V;
if(V=B.JSC$20349_watchApi.getRoot().contains(R)&&!B.animation.isAnimating()){V=R.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var e,X,Y=(R==null?void 0:(e=R.parentElement)==null?void 0:(X=e.parentElement)==null?void 0:X.id)==="fixed-secondary";V=!(V&&Y)}if(V){if(_.k("kevlar_watch_scroll_manager_absolute_offset_killswitch"))e=R.offsetTop;else for(e=0,X=R;X!==null;)e+=X.offsetTop,e-=X.scrollTop,X=X.offsetParent;X=e;e=X-24;R=X+R.offsetHeight+24;X=B.JSC$20349_watchApi.getRoot().getPageScrollingElement();
V=B.JSC$20349_watchApi.getRoot().getScrollTop();Y=V+X.clientHeight-56;if(e<V+56)R=e-56;else if(R>Y)R-=X.clientHeight;else break a;B.scrollWatchTo(Math.max(0,R),!0)}}});
B.addOnDisposeCallback(function(){B.JSC$20349_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.qQ.prototype.onThrottledScroll=function(){var B=_.g6(),R=B.dispatch,V=this.JSC$20349_watchApi.getRoot().getScrollTop();R.call(B,_.or({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:V}}))};
_.qQ.prototype.onMastheadThrottledScroll=function(){this.JSC$20349_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20349_watchApi.getRoot().getScrollTop())};
_.qQ.prototype.scrollWatchTo=function(B,R){(R===void 0?0:R)?this.animation.start(this.JSC$20349_watchApi.getRoot().getScrollTop(),Math.max(0,B),500):this.JSC$20349_watchApi.getRoot().setScrollTop(B)};_.j2o=function(B){_.Hn.call(this);var R=this;this.JSC$20352_watchApi=B;var V=this.JSC$20352_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){bmU(R)}),e=this.JSC$20352_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Jar(R)});
this.addOnDisposeCallback(function(){R.JSC$20352_watchApi.unsubscribeByKey(V);R.JSC$20352_watchApi.unsubscribeByKey(e)});
bmU(this);Jar(this)};
_.l(_.j2o,_.Hn);
var bmU=function(B){var R,V,e,X=(e=(R=B.JSC$20352_watchApi.getPlayerResponse())==null?void 0:(V=R.videoDetails)==null?void 0:V.title)!=null?e:"";B.JSC$20352_watchApi.dispatchEvent("yt-update-title",X)},Jar=function(B){var R,V,e,X,Y,t,b,J=(b=((t=(R=B.JSC$20352_watchApi.getWatchNextResponse())==null?void 0:(V=R.contents)==null?void 0:(e=V.twoColumnWatchNextResults)==null?void 0:(X=e.results)==null?void 0:(Y=X.results)==null?void 0:Y.contents)!=null?t:[]).find(function(G){return!!G.videoPrimaryInfoRenderer}))==null?
void 0:b.videoPrimaryInfoRenderer;
(R=_.FF(J==null?void 0:J.title))&&B.JSC$20352_watchApi.dispatchEvent("yt-update-title",R)};_.NuN=function(B){_.Hn.call(this);this.JSC$20355_watchApi=B;UAU(this)};
_.l(_.NuN,_.Hn);var UAU=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$20355_watchApi.playerApi,2);R=e.yieldResult;V=function(){B.onYpcContentRequest()};
R.addEventListener("onYpcContentRequest",V);B.addOnDisposeCallback(function(){R.removeEventListener("onYpcContentRequest",V)});
_.b3(e)})};
_.NuN.prototype.onYpcContentRequest=function(){var B,R,V,e,X,Y=(B=this.JSC$20355_watchApi.getWatchNextResponse())==null?void 0:(R=B.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(e=V.secondaryResults)==null?void 0:(X=e.secondaryResults)==null?void 0:X.offerModule,t,b,J,G;B=(G=(J=(b=(t=Y==null?void 0:Y.episodeOfferModuleRenderer)!=null?t:Y==null?void 0:Y.movieOfferModuleRenderer)!=null?b:Y==null?void 0:Y.unlimitedOfferModuleRenderer)!=null?J:Y==null?void 0:Y.liveOfferModuleRenderer)!=
null?G:Y==null?void 0:Y.tvfilmOfferModuleRenderer;var y,S,M;Y=(M=Y==null?void 0:(y=Y.tvfilmOfferModuleRenderer)==null?void 0:(S=y.actionButtons)==null?void 0:S.length)!=null?M:0;S=Math.max(Y-1,0);var f,z,T;y=(T=B==null?void 0:(f=B.offerButton)==null?void 0:f.buttonRenderer)!=null?T:B==null?void 0:(z=B.actionButtons)==null?void 0:z[S].buttonRenderer;var L,Q;(f=(Q=(L=y==null?void 0:y.navigationEndpoint)!=null?L:y==null?void 0:y.serviceEndpoint)!=null?Q:y==null?void 0:y.command)&&_.eR.instance.resolveCommand(f)};
}catch(e){_._DumpException(e)}
try{
var QCj,Kkr,LkN;_.vz4=function(){var B=_.M_.clone(xnn),R;return(new _.be(function(V,e){B.onSuccess=function(X){_.qqd(X)?V(new LkN(X)):e(new _.Z_("Request failed, status="+_.X0(X),"net.badstatus",X))};
B.onError=function(X){e(new _.Z_("Unknown request error","net.unknown",X))};
B.onTimeout=function(X){e(new _.Z_("Request timed out","net.timeout",X))};
R=_.W8("//googleads.g.doubleclick.net/pagead/id",B)})).thenCatch(function(V){if(V instanceof _.Cw){var e;
(e=R)==null||e.abort()}return _.SR(V)})};
_.IN6=function(B){a:{var R="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(R="EMBEDDED_PLAYER_MODE_PFL");var V=B.raw_embedded_player_response;if(!V&&(B=B.embedded_player_response))try{V=JSON.parse(B)}catch(X){break a}if(V)b:for(var e in Kkr)if(Kkr[e]==V.embeddedPlayerMode){R=Kkr[e];break b}}return R==="EMBEDDED_PLAYER_MODE_PFL"};
_.Ezr=function(){if(_.k("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.WHI())return Error("pf");var B=_.vE("PLAYER_VARS",{});if(_.M_.get(B,"privembed",!1)=="1")return Error("qf");if(_.IN6(B))return Error("rf")};
QCj=function(B){switch(B){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:_.Ym(B,"unknown result type")}};
_.qBr=function(B,R,V){R=_.h$I[R];V={detected:B===0,source:R.oxv,detectionResult:QCj(B),contentCpn:V};_.dn("biscottiBasedDetection",V);_.KZo.increment(R.oxv,B);R.pml!==void 0&&_.LQ("CATSTAT",_.pPu(B,R))};
_.m7=function(B,R){var V={};V.key=B;V.value=R;return _.IbZ().then(function(e){return new Promise(function(X,Y){try{var t=e.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(V);t.onsuccess=function(){X()};
t.onerror=function(){Y()}}catch(b){Y(b)}})})};
_.Au6=function(){var B=_.RC("user_engagement_experiments_rate_limit_ms"),R=cu4.get("last-user-engagement-exp-trigger-timestamp");return!R||(0,_.P8)()>=R+B?(cu4.set("last-user-engagement-exp-trigger-timestamp",(0,_.P8)()),!0):!1};
_.$k=function(B,R,V,e,X){R=R===void 0?null:R;V=V===void 0?null:V;e=e===void 0?null:e;X=X===void 0?null:X;B={youThereEventType:B};V&&(B.lactThresholdMs=V.lactThresholdMs,B.mediaPosSec=V.promptDelaySec,B.lactServerRequestMs=V.lactServerRequestMs,B.triggerReason=V.triggerReason);X!=null&&(B.renderingMediaPosSec=Math.round(X));R||(R=_.TE());R&&(B.clientScreenNonce=R);e&&(B.clientPlaybackNonce=e);_.dn("youThere",B)};
Kkr={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"};LkN=function(B){this.xhr=B};
_.Z_=function(B,R,V){_.o5.call(this,B+", errorCode="+R);this.errorCode=R;this.xhr=V;this.name="PromiseAjaxError"};
_.l(_.Z_,_.o5);var xnn={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var cu4=new _.vf("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.jJo=function(B){return _.or({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:B})};
}catch(e){_._DumpException(e)}
try{
var sU,a8m,wYo,Tu7,xAr,LTi,I8n,FTe,ra2,gYo,vYn,KTj,dAU,cae,qa2,$Ae;_.zGo=function(){var B=window.location.hash;B.charAt(0)==="#"&&(B=B.charAt(1)==="!"?B.substring(2):B.substring(1));return _.sz(B)};
sU=function(B,R,V){var e;return _.W(function(X){if(X.nextAddress==1)return _.U(X,R(),2);e=X.yieldResult;V(e,B);_.b3(X)})};
a8m=function(){return _.W(function(B){return B.nextAddress==1?_.U(B,(_.Ezr()!==void 0?_.SR(Error("sf")):_.vz4()).then(function(){return 1},function(R){if(R.message==="Biscotti id is disabled")return 3;
_.KE("Failed fetching bid");return 0}),2):B.return(B.yieldResult)})};
wYo=function(){var B=_.C7("YXZlbi1lbWJlZC1wbGF5ZXIjY3QyYnV0dmFnM2sxeXQtaA=="),R=_.C7("dHA1aWZyYW1lI3k0eTZ1Z2h6eA==");return document.querySelector(R+dAU+B)?0:1};
Tu7=function(){return _.$qq(_.sp)};
xAr=function(){return _.CG_()===0?0:_.PGo()};
LTi=function(){return _.Apu(_.GkY([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
I8n=function(){for(var B=function(X){return _.C7(X)},R=[vYn,
KTj],V=2,e=0;e<R.length&&(V=_.Apu(_.GkY(R[e],B)),V!==0);e++);return V};
_.EY7=function(B){_.W(function(R){switch(R.nextAddress){case 1:return _.U(R,sU("b.f_",a8m,B),2);case 2:return _.U(R,sU("j.s_",_.qb5,B),3);case 3:return _.U(R,sU("r.s_",_.I2d,B),4);case 4:return _.U(R,sU("e.h_",I8n,B),5);case 5:if(!_.k("ab_det_sc_inj")){R.jumpTo(6);break}return _.U(R,sU("s.i_",_.ZFZ,B),6);case 6:if(_.k("ab_deg_unex_thr")){R.jumpTo(8);break}return _.U(R,sU("a.o_",_.rpZ,B),8);case 8:if(_.k("ks_get_o_pp")){R.jumpTo(10);break}return _.U(R,sU("g.o_",_.FD_,B),10);case 10:if(_.k("ks_det_gpbl")){R.jumpTo(12);
break}return _.U(R,sU("p.i_",_.sDA,B),12);case 12:return _.U(R,sU("f.i_",_.f2u,B),14);case 14:return _.U(R,sU("a.b_",_.vZN,B),15);case 15:return _.U(R,sU("p.m_",_.a2d,B),16);case 16:if(!_.k("ab_det_el_h_v2")){R.jumpTo(17);break}return _.U(R,sU("n.h_",LTi,B),17);case 17:return _.U(R,sU("o.p_",Tu7,B),19);case 19:if(!_.k("ab_det_em_inj")){R.jumpTo(20);break}return _.U(R,sU("e.i_",wYo,B),20);case 20:if(_.k("ab_det_apm"))return _.U(R,sU("o.a_",xAr,B),0);R.jumpTo(0)}})};
_.Q2r=function(B,R){B={videoId:B};R&&(B.playlistId=R);return B};
_.Aam=function(){if(_.WHI()){var B=_.vE("PLAYER_VARS",{});if(_.M_.get(B,"privembed",!1)!="1"&&!_.IN6(B)){var R=function(){qa2=!0;"google_ad_status"in window?_.LQ("DCLKSTAT",1):_.LQ("DCLKSTAT",2)};
try{_.IL("//static.doubleclick.net/instream/ad_status.js",R)}catch(V){}cae.push(_.dV.addLowPriorityJob(function(){if(!(qa2||"google_ad_status"in window)){try{_.R5u("//static.doubleclick.net/instream/ad_status.js",R)}catch(V){}qa2=!0;_.LQ("DCLKSTAT",3)}},5E3))}}};
_.F_=function(B,R,V){V=V===void 0?!1:V;var e=Math.max(B.width,_.TZn);if(_.k("kevlar_watch_feed_big_thumbs")&&B.width>=1550-_.ww()&&B.height>=800)e-=_.EHU;else if(B.width>=_.QE){var X=_.xPm+_.Ld4+_.Ea;_.k("kevlar_watch_feed_big_thumbs")&&(X=_.I6o);e-=X}else e-=_.xPm;e=Math.min(e,_.vHi);X=240;V&&(X=380);R<.5624||(!_.k("kevlar_watch_flexy_disable_small_window_sizing")&&(B.height<630&&B.width>=657||B.height>=630&&B.width>=_.QE&&B.width<1327)?X=360:!_.k("kevlar_watch_flexy_disable_large_window_sizing")&&
B.height>=630&&B.width>=1327&&(X=480));var Y=Math.min(e*R,B.height-(56+_.wvU+_.Kdm));Y=Math.max(Y,X);R<1?e=Y/R:B.width>=_.QE&&(e=_.F_(B,.5625,V).width);return new _.Yl(Math.round(e),Math.round(Y))};
_.ime=function(B){var R=0;B.indexOf("h")!=-1&&(B=B.split("h"),R=B[0]*60*60,B=B[1]);B.indexOf("m")!=-1&&(B=B.split("m"),R=B[0]*60+R,B=B[1]);B.indexOf("s")!=-1?(B=B.split("s"),R=B[0]*1+R):R=B*1+R;return R};
_.s24=function(){_.RC("service_worker_push_logged_out_prompt_watches")!=-1&&_.Cs("WatchCount").then(function(B){B>=100||_.m7("WatchCount",B+1)})};
FTe=function(B){var R=B.externalVideoId||"";return R?(_.k("webfe_watch_shorts_canonical_url_fix")||_.vE("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&B.isShortsEligible?"https://www.youtube.com/shorts/"+R:"https://www.youtube.com/watch?v="+R:""};
ra2=function(B){var R=[];B.viewCount&&R.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:B.viewCount});B.likeCount&&R.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:B.likeCount});return R};
gYo=function(B){var R,V,e={"@context":"https://schema.org","@type":"VideoObject",description:_.FF(B.description),duration:"PT"+(B.lengthSeconds||"0")+"S",embedUrl:B.embed?B.embed.iframeUrl:"",name:_.FF(B.title),thumbnailUrl:((R=B.thumbnail)==null?void 0:(V=R.thumbnails)==null?void 0:V.map(function(y){return y&&y.url||""}))||[],
uploadDate:B.publishDate};_.k("mweb_video_schema_id_killswitch")||(e["@id"]=FTe(B));R=ra2(B);R.length&&(e.interactionStatistic=R);B.category&&(e.genre=B.category);B.ownerChannelName&&(e.author=B.ownerChannelName);B.liveBroadcastDetails&&(e.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:B.liveBroadcastDetails.startTimestamp,endDate:B.liveBroadcastDetails.endTimestamp}]);if(B.learningResource){B=B.learningResource;e["@type"]=["VideoObject","LearningResource"];var X;if((X=B.learningResourceType)==
null?0:X.length)e.learningResourceType=B.learningResourceType[0];var Y;if((Y=B.educationalAlignment)==null?0:Y.length)e.educationalAlignment={"@type":"AlignmentObject",targetName:B.educationalAlignment[0]};var t;if((t=B.educationalLevel)==null?0:t.length){X=B.educationalLevel[0];var b;if((b=B.educationalLevelCountry)==null?0:b.length)X+=" ("+B.educationalLevelCountry+")";e.educationalLevel=X}var J,G;if(((J=B.learningResourceType)==null?0:J.length)&&B.learningResourceType[0]==="Problem walkthrough"&&
((G=B.problemDescriptions)==null?0:G.length))for(e.hasPart=[],b=_.h(B.problemDescriptions),J=b.next();!J.done;J=b.next())X=J.value,J=X.problemDescriptionText,G=X.startOffset,X=X.url,J&&G!==void 0&&X&&e.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:J,text:J,startOffset:G,url:X})}return e};
_.ZmU=function(B){return _.or({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:B}})};
vYn=[["aW1hcnkjdjJtOThvNDNhMGEycHI=",null],[null,["dHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNld2swemc0NXZ3NzJ5dGQt","MWZzdHlsZS1zY29wZSNhamQzNnpkYnVq"]],["d2JtYXN0aGVhZC1hZCMxNHdpdXVlM3ds",["aC1ncmlkLXJlbmRlcmVyI3MybG90dXhtMGdwN3l0ZC1yaWM="]],[null,["aC1ncmlkLXJlbmRlcmVyI2pvajM2b2c0NG12eHl0ZC1yaWM=","azJzdHlsZS1zY29wZSNqY3kzaGpzOW8x"]],[null,["LXJlbmRlcmVyIzF1ZzZxZ2lwMjR5ZXl0ZC1iYW5uZXItcHJvbW8=","N2Z1aHI5c3R5bGUtc2NvcGUjM3c2YW0="]],[null,["dGQtYWQtc2xvdC1yZW5kZXJlciNvMjNuNGRibGJ4dWx5"]]];
KTj=[["M2d1Y2NycGxheWVyLWFkcyNrdzdtdDk=",null]];dAU="#";cae=[];qa2=!1;_.mA6=["engagement-panel-ads"];$Ae=new _.P("updateSentimentBarStateCommand");_.Cbe=new _.P("showSurveyCommand");_.ry=new _.P("changeMarkersVisibilityCommand");var nYN,ugz,Rj2,BC7,own,gy;_.Pb2=function(B,R){this.playerProvider_=B;this.actionSenderElement_=R;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Pb2.prototype.reset=function(){nYN(this);this.isUserPredictedAbsent_=!1};
nYN=function(B,R){!B.youThereData_||B.showWarningJob_||R!==void 0&&R||(_.$k("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.TE(),B.youThereData_,B.clientPlaybackNonce_),_.wn());_.dV.cancelJob(B.showWarningJob_);B.showWarningJob_=0;_.dV.cancelJob(B.showBlockingWarningJob_);B.showBlockingWarningJob_=0;_.dV.cancelJob(B.pausePlaybackJob_);B.pausePlaybackJob_=0;B.youThereData_=null;B.clientPlaybackNonce_=void 0;B.inYouThereFlow_=!1};
_.Omm=function(B,R){var V,e,X;_.W(function(Y){if(Y.nextAddress==1)return B.reset(),_.U(Y,B.playerProvider_().getPlayerPromise(),2);V=Y.yieldResult;B.clientPlaybackNonce_=V.getVideoData().cpn;B.youThereData_=R.configData.youThereData;if(!B.youThereData_)return Y.return();if(B.youThereData_.triggerReason&&B.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Au6())return _.$k("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.TE(),B.youThereData_,B.clientPlaybackNonce_),Y.return();e=B.youThereData_.promptDelaySec;
X=V.getCurrentTime();B.showWarningJob_=_.dV.addLowPriorityJob(function(){return _.W(function(t){B.showWarningJob_=0;return _.U(t,ugz(B),0)})},Math.max(e-X,0)*1E3);
_.b3(Y)})};
ugz=function(B){var R,V,e,X,Y,t;return _.W(function(b){if(b.nextAddress==1)return _.U(b,B.playerProvider_().getPlayerPromise(),2);if(b.nextAddress!=3)return R=b.yieldResult,V=R.getCurrentTime(),_.U(b,own(B),3);e=b.yieldResult;if(!e||!B.youThereData_)return b.return();if(_.k("check_user_lact_at_prompt_shown_time_on_web")&&(X=parseInt(B.youThereData_.lactThresholdMs,10),_.B5()<X))return _.$k("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.TE(),B.youThereData_,B.clientPlaybackNonce_),b.return();if(B.youThereData_.playbackPauseDelayMs<=
0)return BC7(B),b.return();!_.k("external_fullscreen")&&(Y=_.Cp())&&(B.ignoreFullscreenExitUserActivity_=!0,_.dV.addLowPriorityJob(function(){B.ignoreFullscreenExitUserActivity_=!1},2E3),_.PJ(Y));
B.youThereData_.showToastWarningPrompt&&(gy(B,B.youThereData_.showWarningActions),B.inYouThereFlow_=!0,_.$k("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.TE(),B.youThereData_,B.clientPlaybackNonce_,V),_.$k("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.TE(),B.youThereData_,B.clientPlaybackNonce_,V));t=0;B.youThereData_.blockingPromptDelayMs&&(t=B.youThereData_.blockingPromptDelayMs);B.showBlockingWarningJob_=_.dV.addLowPriorityJob(function(){return _.W(function(J){B.showBlockingWarningJob_=0;return _.U(J,
Rj2(B),0)})},t);
_.b3(b)})};
Rj2=function(B){var R,V,e;return _.W(function(X){if(X.nextAddress==1)return _.U(X,own(B),2);R=X.yieldResult;if(!B.youThereData_)return X.return();R&&(B.youThereData_.showBlockingWarningAction&&(_.$k("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.TE(),B.youThereData_,B.clientPlaybackNonce_),(V=_.D(B.youThereData_.showBlockingWarningAction,_.p0))?gy(B,V.commands):gy(B,[B.youThereData_.showBlockingWarningAction]),B.inYouThereFlow_=!0),e=B.youThereData_.playbackPauseDelayMs,B.pausePlaybackJob_=
_.dV.addLowPriorityJob(function(){return _.W(function(Y){B.pausePlaybackJob_=0;return _.U(Y,BC7(B),0)})},e));
_.b3(X)})};
BC7=function(B){var R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,own(B),2);R=V.yieldResult;if(!B.youThereData_)return V.return();R&&(_.$k("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.TE(),B.youThereData_,B.clientPlaybackNonce_),gy(B,B.youThereData_.showPausedActions),B.inYouThereFlow_=!0);_.b3(V)})};
_.Pb2.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var B=_.D(this.youThereData_.userActiveDuringFlowAction,_.p0);B?gy(this,B.commands):gy(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.$k("YOU_THERE_EVENT_TYPE_LACT_RESET",_.TE(),this.youThereData_,this.clientPlaybackNonce_),_.wn());nYN(this,!0)}_.VsN(this,!1)};
_.ej4=function(B){_.$k("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.TE(),B.youThereData_,B.clientPlaybackNonce_)};
own=function(B){var R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,B.playerProvider_().getPlayerPromise(),2);R=e.yieldResult;V=R.getPlayerState();return e.return(V==-1||V==1||V==3)})};
_.VsN=function(B,R){var V;_.W(function(e){if(e.nextAddress==1){if(B.isUserPredictedAbsent_==R)return e.jumpTo(0);B.isUserPredictedAbsent_=R;return _.U(e,B.playerProvider_().getPlayerPromise(),3)}V=e.yieldResult;V.setUserEngagement(R);R&&_.$k("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.TE(),B.youThereData_,B.clientPlaybackNonce_);_.b3(e)})};
gy=function(B,R){if(_.k("handle_service_request_actions")||_.k("kevlar_youthere_service_endpoint_actions_killswitch"))_.eO(B.actionSenderElement_,R,B.actionSenderElement_);else{R=_.h(R);for(var V=R.next();!V.done;V=R.next())V=V.value,V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.sendPost?_.VD(B.actionSenderElement_,[V]):_.eO(B.actionSenderElement_,[V],B.actionSenderElement_)}};var Xj4;var pjo;var Z5=function(){var B=_.c.apply(this,arguments)||this;B.systemIcons=_.k("kevlar_system_icons");B.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return B};
_.l(Z5,_.c);Z5.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var B=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(B=this.data.percentIfLiked||0,this.activated=!0):(B=this.data.percentIfIndifferent||0,this.activated=!1);_.w(this.hostElement).querySelector("#like-bar").style.width=B+"%"}};
Z5.prototype.handleUpdateSentimentBarStateCommand=function(B){this.data&&this.set("data.likeStatus",_.D(B,$Ae).likeStatus)};
Z5.prototype.observeLikeStatus=Z5.prototype.observeLikeStatus;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Z5.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Z5.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Z5.prototype,"activated",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Z5.prototype,"systemIcons",void 0);_.r([_.XX("data.likeStatus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Z5.prototype,"observeLikeStatus",null);Z5=_.r([_.A({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Z5);
_.F(Z5,"ytd-sentiment-bar-renderer",function(){if(pjo!==void 0)return pjo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return pjo=B},{mode:1});var Yk6;var mX=function(){var B=_.c.apply(this,arguments)||this;B.small=!0;return B};
_.l(mX,_.c);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],mX.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],mX.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],mX.prototype,"small",void 0);mX=_.r([_.A({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],mX);
_.F(mX,"ytd-video-view-count-renderer",function(){if(Yk6!==void 0)return Yk6;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Yk6=B},{mode:_.up("kevlar_poly_si_batch_j080")?1:2});var $V=function(){var B=_.c.apply(this,arguments)||this;B.infoFormattedStrings=[];B.wrapVideoActions=_.k("kevar_watch_wrap_video_actions");B.hideSentimentBar=_.k("kevlar_watch_hide_sentiment_bar");B.actionMap={};return B};
_.l($V,_.c);_.p=$V.prototype;_.p.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.k("web_modern_buttons"),forceIconButton:!_.k("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.p.dataChanged=function(){_.k("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.p.computeInfoFormattedStrings=function(B){if(!B)return[];var R=[];B.dateText&&R.push(B.dateText);B.stationName&&R.push(B.stationName);B.rating&&R.push(B.rating);B.startEndTimeTemplate&&B.startTimeUtcMillis&&B.endTimeUtcMillis&&R.push(_.s$(_.$tz(_.FF(B.startEndTimeTemplate),Number(B.startTimeUtcMillis),Number(B.endTimeUtcMillis))));B.upNextProgramText&&R.push(B.upNextProgramText);return R};
_.p.scheduleInitialUpdatedMetadataRequest=function(){var B,R=(B=this.data)==null?void 0:B.updatedMetadataEndpoint;if(R){var V;B=Number((V=_.D(R,_.qN2))==null?void 0:V.initialDelayMs);V=isNaN(B)?250:B;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),V)}};
_.p.setSentimentBarWidth=function(){var B=this;_.gB(this,function(){var R=_.w(B.hostElement).querySelector("ytd-menu-renderer");if(R){R=R.topLevelButtons;for(var V=0,e=0;e<R.length;e++){var X=R[e],Y=B.get("toggleButtonSupportedData.toggleButtonIdData.id",X.data);if(Y==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||Y==="TOGGLE_BUTTON_ID_TYPE_LIKE")V+=X.clientWidth+8;else break}V&&(B.sentiment.style.width=V-8+" px")}})};
_.p.fetchUpdatedMetadata=function(B){var R;B&&(R={continuation:B});var V;(B=(V=this.data)==null?void 0:V.updatedMetadataEndpoint)&&_.Oz().resolve(_.oC).resolveCommand(B,{form:Object.assign({},R,{element:this.hostElement})})};
_.p.onYtServiceRequestSent=function(B,R){R.endpoint&&_.D(R.endpoint,_.$1)&&(this.hasUpdateSentimentBarStateCommands()&&!_.k("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.D(R.endpoint,_.$1).status),this.setSentimentBarWidth())};
_.p.hasUpdateSentimentBarStateCommands=function(){var B,R,V,e,X=(e=(B=this.data)==null?void 0:(R=B.videoActions)==null?void 0:(V=R.menuRenderer)==null?void 0:V.topLevelButtons)!=null?e:[];B=_.h(X);for(R=B.next();!R.done;R=B.next()){R=R.value;X=e=V=void 0;var Y=(V=R.toggleButtonRenderer)==null?void 0:(e=V.toggleButtonSupportedData)==null?void 0:(X=e.toggleButtonIdData)==null?void 0:X.id;if(Y==="TOGGLE_BUTTON_ID_TYPE_LIKE"||Y==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){e=V=void 0;R=(e=_.D((V=R.toggleButtonRenderer)==
null?void 0:V.defaultServiceEndpoint,_.p0))==null?void 0:e.commands;if(!R)break;R=_.h(R);for(V=R.next();!V.done;V=R.next())if(_.D(V.value,$Ae))return!0}}return!1};
_.p.onYtServiceRequestCompleted=function(B,R){var V;(B=(V=R.data)==null?void 0:V.loggingDirectives)&&_.e9Z(_.WK(),B);this.get("continuation.timedContinuationData",R.data)&&this.data&&this.data.updatedMetadataEndpoint&&(R=R.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,R.continuation),R.timeoutMs))};
_.p.computeHasDateText=function(B){return!!B&&!!B.dateText};
_.mh.Object.defineProperties($V.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e;return!((e=(B=this.data)==null?void 0:(R=B.videoActions)==null?void 0:(V=R.menuRenderer)==null?void 0:V.flexibleItems)==null||!e.length)}}});
$V.prototype.onYtServiceRequestCompleted=$V.prototype.onYtServiceRequestCompleted;$V.prototype.onYtServiceRequestSent=$V.prototype.onYtServiceRequestSent;$V.prototype.dataChanged=$V.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],$V.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Fk.YtTaskEmitterBehavior),_.Z("design:type",Object)],$V.prototype,"ytTaskEmitterBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$V.prototype,"data",void 0);_.r([_.E({computed:"computeInfoFormattedStrings(data)"}),_.Z("design:type",Array)],$V.prototype,"infoFormattedStrings",void 0);
_.r([_.E({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],$V.prototype,"hasDateText",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],$V.prototype,"wrapVideoActions",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],$V.prototype,"hideSentimentBar",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$V.prototype,"flexMenuEnabled",null);
_.r([_.Yp("#sentiment"),_.Z("design:type",Object)],$V.prototype,"sentiment",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$V.prototype,"dataChanged",null);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],$V.prototype,"onYtServiceRequestSent",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],$V.prototype,"onYtServiceRequestCompleted",null);
_.F($V,"ytd-video-primary-info-renderer",function(){if(Xj4===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);Xj4=B}B=Xj4;return B},{mode:1});var hje;var CK=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return B};
_.l(CK,_.c);_.p=CK.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 B;this.descriptionToggled=!((B=this.data)==null||!B.defaultExpanded);var R;this.collapsed=this.descriptionAlwaysCollapsed||!((R=this.data)==null?0:R.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.kB(110509);this.showLessClientVe=_.kB(110510);B=_.TE();R=_.wT();B&&R&&_.QD(B,R,[this.showMoreClientVe,this.showLessClientVe])};
_.p.onYtExpanderMoreTapped=function(){var B,R=(B=this.data)==null?void 0:B.showMoreCommand;R&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(R);(B=_.TE())&&this.showMoreClientVe&&_.iF(B,this.showMoreClientVe)};
_.p.onYtExpanderLessTapped=function(){var B=_.TE();B&&this.showLessClientVe&&_.iF(B,this.showLessClientVe);var R;(B=(R=this.data)==null?void 0:R.showLessCommand)&&this.componentBehavior.resolveCommand(B)};
_.p.handleUpdateDateTextAction=function(B){this.data&&this.data.dateText&&this.set("data.dateText",_.D(B,_.DP7).dateText)};
_.p.handleUpdateDescriptionAction=function(B){if(B=_.D(B,_.a0o))B.isEmpty||!B.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.fc(B.description)):this.set("data.description",B.description)};
_.p.onYtChangeEngagementPanelVisibilityAction=function(B){if(_.k("web_structured_description_show_more")||_.k("web_engagement_panel_open_description")){var R,V=(R=_.D(B,_.HY_))==null?void 0:R.targetId,e;B=((e=_.D(B,_.HY_))==null?void 0:e.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";V==="engagement-panel-structured-description"&&B&&(this.descriptionToggled=!0)}};
_.p.updateCollapsedFromBinding=function(B){this.collapsed=B.detail.value};
_.p.updateDescriptionToggledFromBinding=function(B){this.descriptionToggled=B.detail.value};
_.p.updateCanCollapseFromBinding=function(B){this.canCollapse=B.detail.value};
_.mh.Object.defineProperties(CK.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(B=this.data)==null?void 0:(R=B.metadataRowContainer)==null?void 0:R.metadataRowContainerRenderer;return!!V&&!!V.rows&&V.rows.length>V.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.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}}});
CK.prototype.onYtExpanderLessTapped=CK.prototype.onYtExpanderLessTapped;CK.prototype.onYtExpanderMoreTapped=CK.prototype.onYtExpanderMoreTapped;CK.prototype.dataChanged=CK.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],CK.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],CK.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],CK.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],CK.prototype,"collapsed",void 0);_.r([_.E(),_.Z("design:type",Boolean)],CK.prototype,"descriptionToggled",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],CK.prototype,"canCollapse",void 0);_.r([_.E(),_.Z("design:type",Object)],CK.prototype,"subscribeButtonData",void 0);_.r([_.E(),_.Z("design:type",Number)],CK.prototype,"descriptionCollapsedHeight",void 0);_.r([_.E(),_.Z("design:type",Object)],CK.prototype,"structuredDescriptionContentRenderer",void 0);_.r([_.E({value:function(){return _.k("web_watch_description_always_collapsed")}}),
_.Z("design:type",Boolean)],CK.prototype,"descriptionAlwaysCollapsed",void 0);_.r([_.Yp("#description"),_.Z("design:type",HTMLDivElement)],CK.prototype,"description",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"dataChanged",null);_.r([_.R_("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"onYtExpanderMoreTapped",null);
_.r([_.R_("yt-expander-less-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"onYtExpanderLessTapped",null);_.r([_.K("data.metadataRowContainer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CK.prototype,"metadataCollapsible",null);_.r([_.K("data","structuredDescriptionContentRenderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CK.prototype,"hasInlineStructuredDescription",null);
_.r([_.K("data.attributedDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CK.prototype,"hasAttributedDescription",null);_.r([_.K("hasInlineStructuredDescription","collapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CK.prototype,"loadStructuredDescription",null);_.r([_.K("data","structuredDescriptionContentRenderer","collapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CK.prototype,"showInlineStructuredDescription",null);
_.r([_.K("data","hasInlineStructuredDescription","metadataCollapsible"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CK.prototype,"descriptionAlwaysCollapsible",null);
_.F(CK,"ytd-video-secondary-info-renderer",function(){if(hje===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);hje=B}B=hje;return B},{mode:2});var tsz;var Pi=function(){return _.c.apply(this,arguments)||this};
_.l(Pi,_.c);Pi.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:_.k("web_modern_buttons"),forceIconButton:!_.k("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Pi.prototype.activate=function(B){B.appendTo(this.player);B.getPlayerPromise().then(function(R){R.setMinimized(!0)});
this.active=!0};
Pi.prototype.deactivate=function(){var B=this.player.firstElementChild;B.getPlayerPromise().then(function(R){R.setMinimized(!1)});
this.active=!1;return B};
Pi.prototype.onScrollUpTap=function(){var B=_.Oz().resolve(_.$B).getCurrentPage();B&&B.setScrollTop(0)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Pi.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Pi.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Pi.prototype,"active",void 0);
_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Z("design:type",Boolean)],Pi.prototype,"darkLaunch",void 0);_.r([_.Yp("#player"),_.Z("design:type",HTMLDivElement)],Pi.prototype,"player",void 0);Pi=_.r([_.A({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Pi);
_.F(Pi,"ytd-miniplayer-bar-renderer",function(){if(tsz!==void 0)return tsz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return tsz=B},{mode:1});_.mR(_.sx(function(B){var R=_.Zh();_.lJ(function(){var V;if(V=JSON)V=gYo(B.data()),V=_.K$(JSON.stringify(V).replace(/</g,"\\u003C"));var e=B.data(),X=_.FF(e.title).trim().length===0,Y=!e.publishDate||e.publishDate.trim().length===0,t,b,J,G,y=!((t=e.thumbnail)==null?0:(b=t.thumbnails)==null?0:b.length)||!((J=e.thumbnail)==null?0:J.thumbnails[0].url)||((G=e.thumbnail)==null?void 0:G.thumbnails[0].url.trim().length)===0;R.value&&V&&!(X||Y||y)&&_.E8(R.value,V)});
return _.N("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.N("script",{el:R,type:"application/ld+json"}))},"fj"),"player-microformat-renderer",{props:{data:_.Z9}});
}catch(e){_._DumpException(e)}
try{
var DA7;_.GWi=function(B){return B.watch.watchWindowSize};
_.yan=function(B){return _.or({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:B}})};
DA7=function(B){_.Hn.call(this);var R=this;this.JSC$20359_watchApi=B;B=_.Ge(_.g6(),_.z9p,function(){Saz(R)});
this.addOnDisposeCallback(B);B=_.Ge(_.g6(),_.GWi,function(){Saz(R)});
this.addOnDisposeCallback(B);Hm6(this);MhN(this);kW7()};
_.l(DA7,_.Hn);var Hm6=function(B){var R=function(e){_.g6().dispatch(_.sye(e.matches))},V=window.matchMedia("(max-width: "+(999+_.ww())+"px)");
V.addListener(R);B.addOnDisposeCallback(function(){V.removeListener(R)});
R(V)},MhN=function(B){B.JSC$20359_watchApi.registerActionHandler("yt-window-resized",function(){kW7()});
B.addOnDisposeCallback(function(){B.JSC$20359_watchApi.unregisterActionHandler("yt-window-resized")})},kW7=function(){var B=_.N1();
_.g6().dispatch(_.or({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:B.width,height:B.height}}}))},Saz=function(B){var R;
_.W(function(V){if(V.nextAddress==1)return _.U(V,B.JSC$20359_watchApi.playerApi,2);R=V.yieldResult;R.setSize(NaN,NaN);_.b3(V)})};_.ci=function(B){_.P4.call(this);var R=this;this.rootElement=B;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return R.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(V){R.initOrDisposeActiveModules(V)}));
this.onAttached()};
_.l(_.ci,_.P4);_.p=_.ci.prototype;_.p.getRoot=function(){return this.rootElement};
_.p.getElement=function(B){return this.rootElement.getElement(B)};
_.p.setPlayerResponse=function(B){this.playerResponse=B;this.publish("PLAYER_RESPONSE_UPDATED",B)};
_.p.getPlayerResponse=function(){return this.playerResponse};
_.p.setWatchNextResponse=function(B){this.watchNextResponse===B?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=B,this.publish("WATCH_NEXT_RESPONSE_UPDATED",B))};
_.p.getWatchNextResponse=function(){return this.watchNextResponse};
_.p.registerActionHandler=function(B,R){var V=this;if(_.k("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.Fo(_.sd.getInstance(),(e[B]=R,e),this.getRoot())}else this.actionHandlers.has(B)||(this.actionHandlers.set(B,[]),e={},_.Fo(_.sd.getInstance(),(e[B]=function(){var X=_.HB.apply(0,arguments);return(V.actionHandlers.get(B)||[]).map(function(Y){return Y.apply(null,_.MI(X))})},e),this.getRoot())),this.actionHandlers.get(B).push(R)};
_.p.unregisterActionHandler=function(B){if(_.k("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.rn(_.sd.getInstance(),(R[B]=!0,R),this.getRoot())}else(R=this.actionHandlers.get(B))?(R.pop(),R.length===0&&(R={},_.rn(_.sd.getInstance(),(R[B]=!0,R),this.getRoot()),this.actionHandlers.delete(B))):_.KE(new _.H8("Attempted to unregister an action handler which is not registered.",B))};
_.p.addPageDisposeJob=function(B){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.ZK(this.rootElement.pageDisposeJobs,B)};
_.p.removePageDisposeJob=function(B){this.rootElement.pageDisposeJobs&&_.uo(this.rootElement.pageDisposeJobs,B)};
_.p.dispatchEvent=function(B,R){_.OI(this.rootElement,B,R)};
_.p.provideRenderingData=function(B,R){this.rootElement.provideRenderingData(B,R)};
_.p.scrollWatchTo=function(B,R){var V;(V=this.watchScrollManager)==null||V.scrollWatchTo(B,R)};
_.p.focusOnPlayer=function(){var B=this.getElement("PLAYER");_.gB(B,function(){if(B&&B.firstElementChild){var R=B.querySelector(".html5-video-player");R&&(_.ZF(_.Oz().resolve(_.fD)),R.focus())}else _.KE(Error("km"))})};
_.p.updateCinematicFullscreenConfig=function(){var B=!!this.rootElement.theater,R=!!this.rootElement.fullscreen,V;(V=this.watchCinematicManager)==null||_.GS4(V,R,B)};
_.p.subscribeToActiveChanged=function(B,R){R=R===void 0?!0:R;var V=_.Ge(_.g6(),_.CSn,function(e){B(e)});
R&&B(_.CSn(_.g6().getState()));return V};
_.p.isActive=function(){return _.CSn(_.g6().getState())};
_.p.onAttached=function(){var B=_.k("external_fullscreen");_.k("use_unified_flag_accessor")&&(B=_.Oz().resolve(_.C_7).retriever.getFlag(_.o0h));(B||_.KQ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var f8N=function(B){return B.getRoot().is==="ytd-watch-flexy"||B.getRoot().is==="ytd-watch-grid"},A6=function(B){return B.getRoot().is==="ytd-watch-fixie"};
_.ci.prototype.initPersistentModules=function(){if(A6(this)||f8N(this)&&_.k("kevlar_watch_flexy_theater_manager")){var B=new _.gNe(this);_.t4(this,B)}B=new _.TD7(this);_.t4(this,B);B=new _.wy(this);_.t4(this,B);B=new _.EU(this);_.t4(this,B);B=new _.eG4(this);_.t4(this,B);B=new _.xV(this);_.t4(this,B);if(A6(this)||f8N(this)&&_.k("kevlar_watch_flexy_playlist_manager"))B=new _.pYo(this),_.t4(this,B)};
_.ci.prototype.initOrDisposeActiveModules=function(B){B?(this.watchScrollManager=new _.qQ(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.rPU(this)),this.activeModules.push(new _.$i4(this)),A6(this)&&this.activeModules.push(new DA7(this)),this.activeModules.push(new _.j2o(this)),this.activeModules.push(new _.Qw(this)),(A6(this)||_.k("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.uui(this)),this.activeModules.push(new _.Pn7(this)),
(A6(this)||_.k("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.NuN(this)),(A6(this)||_.k("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.YEn(this)),_.k("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.JPz(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.k("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.oYz(this)),_.k("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.dvj(this)),
B=_.k("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.k("kevlar_watch_flexy_comments_manager")&&!B&&this.activeModules.push(new _.Dvr(this)),_.k("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Tt(this)),this.activeModules.push(new _.OPm(this)),this.activeModules.push(new _.ZVr(this)),_.k("web_enable_timely_actions")&&this.activeModules.push(new _.Vxi(this)),_.k("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.zUU(this)),
_.k("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.G16(this)),_.k("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.RUr(this)),_.k("web_player_rtr_ctrls")&&this.activeModules.push(new _.dXz(this))):(_.PH(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.ci.prototype.disposeInternal=function(){_.P4.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.mh.Object.defineProperties(_.ci.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var F7j,DH,r1e,gkz,mMr,$Mi,Z44,Ck4;F7j=function(){var B=_.Gp();B.info||(B.info={});return B.info};
DH=function(B){return Math.round(_.SO()+B)};
r1e=function(){var B;if(_.k("csi_use_performance_navigation_timing")){var R,V,e,X=_.yD==null?void 0:(B=_.yD.getEntriesByType)==null?void 0:(R=B.call(_.yD,"navigation"))==null?void 0:(V=R[0])==null?void 0:(e=V.toJSON)==null?void 0:e.call(V);X?(X.requestStart=DH(X.requestStart),X.responseEnd=DH(X.responseEnd),X.redirectStart=DH(X.redirectStart),X.redirectEnd=DH(X.redirectEnd),X.domainLookupEnd=DH(X.domainLookupEnd),X.connectStart=DH(X.connectStart),X.connectEnd=DH(X.connectEnd),X.responseStart=DH(X.responseStart),
X.secureConnectionStart=DH(X.secureConnectionStart),X.domainLookupStart=DH(X.domainLookupStart),X.isPerformanceNavigationTiming=!0,B=X):B=_.yD.timing}else B=_.k("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.yD.timing)):_.yD.timing;return B};
gkz=function(){if(_.yD.getEntriesByType){var B=_.yD.getEntriesByType("paint");if(B=_.AA(B,function(V){return V.name==="first-paint"}))return DH(B.startTime)}var R;
_.k("csi_use_performance_navigation_timing")?R=_.yD.getEntriesByType("first-paint")[0].startTime:R=_.yD.timing.msFirstPaint;return R?Math.max(0,R):0};
mMr=function(){var B=window.location.protocol,R=_.yD.getEntriesByType("resource");R=_.pU(R,function(V){return V.name.indexOf(B+"//fonts.gstatic.com/s/")===0});
(R=Z44(R,function(V,e){return e.duration>V.duration?e:V}))&&R.startTime>0&&R.responseEnd>0&&(_.Hz("wffs",DH(R.startTime)),_.Hz("wffe",DH(R.responseEnd)))};
$Mi=function(B,R){B=document.querySelector(B);if(!B)return!1;var V="",e=B.nodeName;e==="SCRIPT"?(V=B.src,V||(V=B.getAttribute("data-timing-href"))&&(V=window.location.protocol+V)):e==="LINK"&&(V=B.href);_.L$(document)&&B.setAttribute("nonce",_.L$(document));return V?(B=_.yD.getEntriesByName(V))&&B[0]&&(B=B[0],V=_.SO(),_.Hz("rsf_"+R,V+Math.round(B.fetchStart)),_.Hz("rse_"+R,V+Math.round(B.responseEnd)),B.transferSize!==void 0&&B.transferSize===0)?!0:!1:!1};
_.fP=function(B,R){_.Qh(function(){_.iax("").info.actionType=B;R&&_.LQ("TIMING_AFT_KEYS",R);_.LQ("TIMING_ACTION",B);var V=_.VPq(_.vE("TIMING_INFO",{}));Object.keys(V).length>0&&_.Md(V);V={isNavigation:!0,actionType:_.rHA(_.vE("TIMING_ACTION"))};var e=_.vE("PREVIOUS_ACTION");e&&(V.previousAction=_.rHA(e));if(e=_.vE("CLIENT_PROTOCOL"))V.httpProtocol=e;if(e=_.vE("CLIENT_TRANSPORT"))V.transportProtocol=e;(e=_.TE())&&e!=="UNDEFINED_CSN"&&(V.clientScreenNonce=e);e=_.RM_();if(e===1||e===-1)V.isVisible=!0;
e=_.KHI().loadType==="cold";var X=F7j();e||(e=X.yt_lt==="cold");if(e){V.loadType="cold";e=F7j();X=r1e();var Y=_.SO(),t=_.vE("CSI_START_TIMESTAMP_MILLIS",0);t>0&&!_.k("embeds_web_enable_csi_start_override_killswitch")&&(Y=t);Y&&(_.Hz("srt",X.responseStart),e.prerender!==1&&_.C0o(Y));e=gkz();e>0&&_.Hz("fpt",e);e=r1e();e.isPerformanceNavigationTiming&&_.Md({performanceNavigationTiming:!0},void 0);_.Hz("nreqs",e.requestStart,void 0);_.Hz("nress",e.responseStart,void 0);_.Hz("nrese",e.responseEnd,void 0);
e.redirectEnd-e.redirectStart>0&&(_.Hz("nrs",e.redirectStart,void 0),_.Hz("nre",e.redirectEnd,void 0));e.domainLookupEnd-e.domainLookupStart>0&&(_.Hz("ndnss",e.domainLookupStart,void 0),_.Hz("ndnse",e.domainLookupEnd,void 0));e.connectEnd-e.connectStart>0&&(_.Hz("ntcps",e.connectStart,void 0),_.Hz("ntcpe",e.connectEnd,void 0));e.secureConnectionStart>=_.SO()&&e.connectEnd-e.secureConnectionStart>0&&(_.Hz("nstcps",e.secureConnectionStart,void 0),_.Hz("ntcpe",e.connectEnd,void 0));_.yD&&"getEntriesByType"in
_.yD&&mMr();e=[];if(document.querySelector&&_.yD&&_.yD.getEntriesByName)for(var b in Ck4)Ck4.hasOwnProperty(b)&&(X=Ck4[b],$Mi(b,X)&&e.push(X));if(e.length>0)for(V.resourceInfo=[],b=_.h(e),e=b.next();!e.done;e=b.next())V.resourceInfo.push({resourceCache:e.value})}_.Md(V);V=_.E$N();V.preLoggedGelInfos||(V.preLoggedGelInfos=[]);b=V.preLoggedGelInfos;V=_.Qjd();e=void 0;for(X=0;X<b.length;X++)if(Y=b[X],Y.loadType){e=Y.loadType;break}if(_.KHI().loadType==="cold"&&(V.loadType==="cold"||e==="cold")){e=_.I$S();
X=_.E$N();X=X.gelTicks?X.gelTicks:X.gelTicks={};for(var J in e)if(!(J in X))if(typeof e[J]==="number")_.Hz(J,_.k8(J));else if(_.k("log_repeated_ytcsi_ticks"))for(Y=_.h(e[J]),t=Y.next();!t.done;t=Y.next())t=t.value,_.Hz(J.slice(1),t);J={};e=!1;b=_.h(b);for(X=b.next();!X.done;X=b.next())e=X.value,_.QBx(V,e),_.QBx(J,e),e=!0;e&&_.Md(J)}_.XWu(!0);J=_.vE("TIMING_ACTION");_.qN("ytglobal.timingready_")&&J&&_.NOd()&&_.eMx()&&_.oXp()})()};
Z44=function(B,R){return Array.prototype.reduce.call(B,R,{duration:0})};
Ck4={'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 PkN={};PkN.YtVisibilityRootBehavior=[_.k52.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Cx(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.vE("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var B=_.vE("INNERTUBE_CLIENT_NAME")!=="WEB";_.k("kevlar_use_vimio_behavior")&&B&&_.aFG()}}];_.lr={};_.lr.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(B){B.detail.contextProvider=this;B.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
PkN.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.A3();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(B){var R=this;this.pageCount+=1;_.k("kevlar_use_vimio_behavior")&&(_.vE("INNERTUBE_CLIENT_NAME")==="WEB"?_.dV.addJob(function(){R.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(B)},
loadPage_:function(B){this.data=B},
ytPageBehaviorActiveObserver_:function(B){var R=this;_.k("kevlar_use_vimio_behavior")&&(B?_.vE("INNERTUBE_CLIENT_NAME")==="WEB"?_.dV.addJob(function(){R.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(B){if(!this.setScrollTopJobId_){var R=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){R.setScrollTopJobId_=0;var V=_.Oz().resolve(_.uj(_.fD));V&&_.ZF(V);this.getPageScrollingElement().scrollTop=B}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.l9(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var sS4;var kN=function(){var B=_.c.apply(this,arguments)||this;B.playerListenerConfig=null;B.actionMap={"yt-show-watch-page-survey":"openSurvey"};return B};
_.l(kN,_.c);_.p=kN.prototype;_.p.dataChanged=function(){var B=this,R=_.Pr();R&&R.getPlayerPromise().then(function(e){B.maybeRemovePlayerListeners(e)});
var V=this.data&&this.data.survey;V&&((V=(V=V.singleOptionSurveyRenderer||V.checkboxSurveyRenderer||V.multiStageSurveyRenderer)&&V.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(R,V):this.openSurvey())};
_.p.triggerWatchPageSurvey=function(B,R){var V=this,e,X,Y,t,b,J,G,y,S;return _.W(function(M){if(M.nextAddress==1)return B?_.U(M,B.getPlayerPromise(),2):M.return();V.player=M.yieldResult;if(!V.player)return M.return();e={};X=_.h(R);for(Y=X.next();!Y.done;Y=X.next())t=Y.value,b=_.h(V.createEventListenerPair(t)),J=b.next().value,G=b.next().value,y=J,S=G,y&&S&&(e[y]=S,V.ytPlayerListenerBehavior.listenToPlayerEvent(V.player,y,S));V.playerListenerConfig=e;_.b3(M)})};
_.p.createEventListenerPair=function(B){var R=B.playbackEventTrigger;return R?this.handlePlaybackTrigger(R):(B=B.watchTimeTrigger)?this.handleWatchTimeTrigger(B):[void 0,void 0]};
_.p.handleWatchTimeTrigger=function(B){var R=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var V=B.videoWatchFraction,e=B.watchTimeSec;return e&&V?["onVideoProgress",function(){R.player&&R.isWatchTimeConditionMet(R.player,V,e)&&R.showSurvey()}]:[void 0,
void 0]};
_.p.isWatchTimeConditionMet=function(B,R,V){var e=B.getProgressState(),X=e.current-this.lastKnownPlaybackPosition;X<5&&(this.accumulatedMediaTime+=X);this.lastKnownPlaybackPosition=e.current;e=Math.round(this.accumulatedMediaTime/e.duration*1E3)/1E3;return B.getPresentingPlayerType&&B.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>V||e>R)};
_.p.handlePlaybackTrigger=function(B){var R=this;B=B.playbackEvent;if(B==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var V="onStateChange";var e=function(X){X===0&&R.showSurvey()}}else B==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(V="onVideoProgress",e=function(X){R.player&&R.player.getPresentingPlayerType&&R.player.getPresentingPlayerType()===1&&X&&R.showSurvey()}):B==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(V="onAdEnd",e=this.showSurvey);
return[V,e]};
_.p.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.p.openSurvey=function(){var B=this,R=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.jJo(!!R));_.dV.addJob(function(){B.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:R}})},0,0)};
_.p.maybeRemovePlayerListeners=function(B){if(this.playerListenerConfig){for(var R=_.h(Object.keys(this.playerListenerConfig)),V=R.next();!V.done;V=R.next())V=V.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(B,V,this.playerListenerConfig[V]);this.playerListenerConfig=null}};
kN.prototype.dataChanged=kN.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],kN.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],kN.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],kN.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],kN.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],kN.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],kN.prototype,"playerListenerConfig",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],kN.prototype,"lastKnownPlaybackPosition",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],kN.prototype,"accumulatedMediaTime",void 0);_.r([_.E(),_.Z("design:type",Object)],kN.prototype,"player",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kN.prototype,"dataChanged",null);kN=_.r([_.A({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],kN);
_.F(kN,"ytd-survey-trigger-renderer",function(){if(sS4!==void 0)return sS4;var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return sS4=B},{mode:1});
}catch(e){_._DumpException(e)}
try{
var xtz=new _.P("promotedSparklesWebRenderer");var LS7=new _.P("relatedChipCommand");var vC6;var KS7;var GW=function(){return _.c.apply(this,arguments)||this};
_.l(GW,_.c);GW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],GW.prototype,"data",void 0);GW=_.r([_.A({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],GW);
_.F(GW,"ytd-compact-tvfilm-entry-point-renderer",function(){if(KS7!==void 0)return KS7;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return KS7=B},{mode:1});var InN;var EC4;var QX6;var yE=function(){return _.c.apply(this,arguments)||this};
_.l(yE,_.c);yE.prototype.ready=function(){this.initializeDefs()};
yE.prototype.initializeDefs=function(){var B=this.meta.byKey("yt-icons"),R=_.w(B).querySelector("#star"),V=_.w(B).querySelector("#star_half");B=_.w(B).querySelector("#star_border");R&&this.defs.appendChild(R.cloneNode(!0));V&&this.defs.appendChild(V.cloneNode(!0));B&&this.defs.appendChild(B.cloneNode(!0))};
yE.prototype.percentChanged=function(){for(var B=this.rating;B.firstChild;)B.removeChild(B.firstChild);var R=Math.round(this.percent/10);B=Math.floor(R/2);R%=2;var V=5-B-R;this.appendStars("star",B,0);this.appendStars("star_half",R,B);this.appendStars("star_border",V,B+R)};
yE.prototype.appendStars=function(B,R,V){for(var e=0;e<R;e++){var X=(18+this.spacing)*(e+V),Y=document.createElementNS("http://www.w3.org/2000/svg","use");_.U_4(Y,"#"+B);Y.setAttribute("x",""+X);Y.setAttribute("y","0");this.rating.appendChild(Y)}};
yE.prototype.percentChanged=yE.prototype.percentChanged;_.r([_.Yp("#defs"),_.Z("design:type",HTMLElement)],yE.prototype,"defs",void 0);_.r([_.Yp("#rating"),_.Z("design:type",HTMLElement)],yE.prototype,"rating",void 0);_.r([_.E(),_.Z("design:type",Number)],yE.prototype,"percent",void 0);_.r([_.E({value:6}),_.Z("design:type",Number)],yE.prototype,"spacing",void 0);_.r([_.E({value:_.k6.create("iron-meta",{type:"iconset"})}),_.Z("design:type",_.ah)],yE.prototype,"meta",void 0);
_.r([_.XX("percent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yE.prototype,"percentChanged",null);yE=_.r([_.A({disableElementRegistration:!0,is:"ytd-ratings"})],yE);
_.F(yE,"ytd-ratings",function(){if(QX6!==void 0)return QX6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return QX6=B},{mode:1});var Sh=function(){return _.c.apply(this,arguments)||this};
_.l(Sh,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Sh.prototype,"data",void 0);Sh=_.r([_.A({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Sh);
_.F(Sh,"ytd-offer-review-renderer",function(){if(EC4!==void 0)return EC4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return EC4=B},{mode:1});var HY=function(){var B=_.c.apply(this,arguments)||this;B.badges=[{textBadge:{label:_.s$("CC")}}];return B};
_.l(HY,_.c);_.p=HY.prototype;_.p.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.p.dataChanged=function(){var B=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(B&&B.commandMetadata&&_.D(B.commandMetadata,_.df)&&_.D(B.commandMetadata,_.df).fireAutomatically)_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}});else{var R;B&&((R=_.D(B,_.df))==null?0:R.fireAutomatically)&&_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}})}};
_.p.isEmptyContent=function(B){return this.isStorefrontEntryPointEmpty(B)&&this.shouldHideOfferModule(B)};
_.p.isStorefrontEntryPointEmpty=function(B){return!B||!B.storefrontEntryPoint};
_.p.shouldHideOfferModule=function(B){return!!B.hideVideoDetails};
_.p.isOfferModuleNavigationInactive=function(B){return!B.navigationEndpoint&&!B.serviceEndpoint};
_.p.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.Oz().resolve(_.oC).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
HY.prototype.dataChanged=HY.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],HY.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Z("design:type",Boolean)],HY.prototype,"hidden",void 0);
_.r([_.E(),_.Z("design:type",Object)],HY.prototype,"badges",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HY.prototype,"dataChanged",null);HY=_.r([_.A({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],HY);
_.F(HY,"ytd-movie-offer-module-renderer",function(){if(InN!==void 0)return InN;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return InN=B},{mode:1});var qG2;var MA=function(){return _.c.apply(this,arguments)||this};
_.l(MA,_.c);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],MA.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],MA.prototype,"data",void 0);MA=_.r([_.A({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],MA);
_.F(MA,"ytd-media-masthead-renderer",function(){if(qG2!==void 0)return qG2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return qG2=B},{mode:1});var cVe;_.mR(_.xil,"course-metadata-view-model",{props:{data:_.Z9,isOverlay:_.Z9}});var kY=function(){var B=_.c.apply(this,arguments)||this;B.isMetadataVisible=!1;B.modernPanels=_.k("kevlar_watch_modern_panels");B.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return B};
_.l(kY,_.c);_.p=kY.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 B;if((B=this.data)==null?0:B.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.p.isExpandButtonToggled=function(){var B,R;return(R=_.D((B=this.data)==null?void 0:B.expandMetadataButton,_.xx))==null?void 0:R.isToggled};
_.p.onVisibilityButtonClick=function(){var B;if((B=this.data)==null?0:B.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.p.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
kY.prototype.expanderChanged=kY.prototype.expanderChanged;kY.prototype.dataChanged=kY.prototype.dataChanged;kY.prototype.descriptionChanged=kY.prototype.descriptionChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v([_.$Z.YtActionHandlerBehavior]),_.Z("design:type",Object)],kY.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],kY.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],kY.prototype,"isMetadataVisible",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],kY.prototype,"modernPanels",void 0);_.r([_.Yp("#expander"),_.Z("design:type",Object)],kY.prototype,"expander",void 0);_.r([_.XX("data.description"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kY.prototype,"descriptionChanged",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kY.prototype,"dataChanged",null);_.r([_.XX("isMetadataVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kY.prototype,"expanderChanged",null);kY=_.r([_.A({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],kY);
_.F(kY,"ytd-tvfilm-offer-module-renderer",function(){if(cVe!==void 0)return cVe;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return cVe=B},{mode:2});var AVi;var D8=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return B};
_.l(D8,_.c);D8.prototype.dataChanged=function(){this.hostElement.hidden=!1};
D8.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
D8.prototype.onThumbnailTap=function(B){this.data&&this.data.serviceEndpoint&&(_.Oz().resolve(_.oC).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),B.stopPropagation())};
D8.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
D8.prototype.dataChanged=D8.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],D8.prototype,"rendererBehaviors",void 0);_.r([_.v([_.$Z.YtActionHandlerBehavior]),_.Z("design:type",Object)],D8.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],D8.prototype,"data",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],D8.prototype,"dataChanged",null);D8=_.r([_.A({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],D8);
_.F(D8,"ytd-unlimited-offer-module-renderer",function(){if(AVi!==void 0)return AVi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return AVi=B},{mode:1});var i1r;var sX4;var fm=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return B};
_.l(fm,_.c);fm.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
fm.prototype.handleRelatedChipCommand=function(B){B=_.D(B,LS7);var R=B.contents;R?_.Bz(this.hostElement,"yt-item-section-replace-action",[R,B.targetSectionIdentifier]):_.Bz(this.hostElement,"yt-item-section-continuation-action",[B.continuationData,B.targetSectionIdentifier])};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],fm.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fm.prototype,"data",void 0);fm=_.r([_.fJ({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],fm);
_.F(fm,"yt-related-chip-cloud-renderer",function(){if(sX4===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;i1r===void 0&&(i1r=document.createElement("template"));var e=i1r;V.call(R,e.content.cloneNode(!0),B.content.firstChild);sX4=B}B=sX4;return B},{mode:2});var lb=function(){var B=_.c.apply(this,arguments)||this;B.isTwoColumns=!0;B.hideOfferModules=!1;B.watchFeedBigThumbs=_.k("kevlar_watch_feed_big_thumbs");B.watchNextGridHideChips=_.k("kevlar_watch_grid_hide_chips");B.eligibleToSwitchToGrid=_.k("web_watch_eligible_to_switch_to_grid");B.disableShortsShelfHeightOverride=_.k("web_shorts_wn_shelf_ratio_tuning");B.isWatchNextGrid=!1;B.reuseComponents=!_.k("kevlar_watch_grid");B.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return B};
_.l(lb,_.c);_.p=lb.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]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.k("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(){_.o_(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 B=this.data.results,R=null,V=null,e=0;e<B.length;e++)B[e].relatedChipCloudRenderer?R=B[e].relatedChipCloudRenderer:B[e].itemSectionRenderer&&(V=B[e].itemSectionRenderer);if(R&&V)for(this.set("data.continuations",[]),B=_.D(R.content,_.Yr4).chips,R=0;R<B.length;R++)if(e=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",B[R]),e.loadCached||!e.contents){e.contents=V.contents;break}}};
_.p.dataChanged=function(){var B=this,R;if((R=this.data)!=null&&R.results&&this.hasAllowedInstreamAd(this.playerData)){if(R=this.data.results.filter(function(b){return!!b.promotedSparklesWebRenderer})){for(var V=0;V<R.length;V++){var e=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",R[V]);
if(e)for(var X=0;X<e.length;X++)e[X]&&e[X].baseUrl&&_.qC(e[X].baseUrl)}this.set("data.results",this.data.results.filter(function(b){return!b.promotedSparklesWebRenderer}))}if(R=this.data.results.filter(function(b){return!!B.getSparklesAd(b)})){R=_.h(R);
for(X=R.next();!X.done;X=R.next())if(e=V=void 0,X=(V=this.getSparklesAd(X.value))==null?void 0:(e=V.errorCommand)==null?void 0:e.loggingUrls)for(V=_.h(X),e=V.next();!e.done;e=V.next())(e=e.value)&&e.baseUrl&&_.qC(e.baseUrl);var Y,t;this.set("data.results",(Y=this.data)==null?void 0:(t=Y.results)==null?void 0:t.filter(function(b){return!b.adSlotRenderer}))}}};
_.p.getSparklesAd=function(B){var R,V;B=_.D((R=B.adSlotRenderer)==null?void 0:(V=R.fulfillmentContent)==null?void 0:V.fulfilledLayout,_.d64);return _.D(B==null?void 0:B.renderingContent,xtz)};
_.p.hasAllowedInstreamAd=function(B){B=this.get("adPlacements",B)||[];for(var R=0;R<B.length;R++){var V=this.get("adPlacementRenderer.config.adPlacementConfig",B[R]);if(V&&V.suppressDisplayAd)return!0}return!1};
_.p.computeHideUnlimitedOfferModule=function(B,R){return B&&B.offerModule&&R&&B.offerModule.unlimitedOfferModuleRenderer&&B.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(R)?!0:!1};
_.p.hideUnlimitedOfferModuleChanged=function(){var B=_.w(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");B&&(B.hidden=this.hideUnlimitedOfferModule)};
_.p.updateLockupContainerTypes=function(B){if(this.eligibleToSwitchToGrid){var R;(R=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||R.forEach(function(V){V.containerType=B})}};
_.p.computeHideTvfilmOfferModule=function(B,R){var V,e;return!!((B==null?0:(V=B.offerModule)==null?0:(e=V.tvfilmOfferModuleRenderer)==null?0:e.clientShouldSuppressIfCompanionAdDisplayed)&&R&&this.hasCompanionAds(R))};
_.p.hideTvfilmOfferModuleChanged=function(){var B=_.w(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");B&&(B.hidden=this.hideTvfilmOfferModule)};
_.p.hasCompanionAds=function(B){B=this.get("adPlacements",B)||[];for(var R=0;R<B.length;R++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",B[R]))return!0;var V=void 0,e=void 0,X=void 0;if(!_.k("web_watch_top_banner_companion_check_killswitch")&&((V=B[R])==null?0:(e=V.adPlacementRenderer)==null?0:(X=e.renderer)==null?0:X.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.p.hasSuppressedResults=function(B){return B==null?!0:B.filter(function(R){return!R.continuationItemRenderer&&!R.compactPromotedVideoRenderer&&!R.promotedSparklesWebRenderer}).length===0};
_.p.computeShowButton=function(B,R){return this.isWatchNextGrid?B:B||this.hasSuppressedResults(R)};
_.p.showButtonChanged=function(){if(this.isWatchNextGrid){var B=_.w(this.hostElement).querySelector("ytd-rich-grid-renderer");B&&this.showButton!==null&&(B.continuationShowButton=this.showButton)}else{B=_.w(this.hostElement).querySelector("yt-next-continuation");var R=_.w(this.hostElement).querySelector("ytd-continuation-item-renderer"),V=_.w(this.hostElement).querySelector("ytd-item-section-renderer");B&&(B.showButton=this.showButton);R&&(R.showButton=this.showButton);V&&(V.continuationShowButton=
this.showButton)}};
_.p.continuationTap=function(B){var R;if(((R=this.data)==null?void 0:R.continuations)!=null&&B.target.tagName==="TP-YT-PAPER-BUTTON")for(B=this.data.continuations,R=0;R<B.length;R++)B[R].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(B[R].nextContinuationData||{})};
_.p.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("shown-items-changed",this.shownItems))};
_.mh.Object.defineProperties(lb.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.shownItems)==null||!B.some(function(R){return!!R.lockupViewModel}))}}});
lb.prototype.shownItemsChangedForBinding=lb.prototype.shownItemsChangedForBinding;lb.prototype.showButtonChanged=lb.prototype.showButtonChanged;lb.prototype.hideTvfilmOfferModuleChanged=lb.prototype.hideTvfilmOfferModuleChanged;lb.prototype.updateLockupContainerTypes=lb.prototype.updateLockupContainerTypes;lb.prototype.hideUnlimitedOfferModuleChanged=lb.prototype.hideUnlimitedOfferModuleChanged;lb.prototype.dataChanged=lb.prototype.dataChanged;lb.prototype.resultsChanged=lb.prototype.resultsChanged;
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.CL.YtLazyListBehavior),_.Z("design:type",Object)],lb.prototype,"ytLazyListBehavior",void 0);_.r([_.v(_.vM.YtNextContinuationBehavior),_.Z("design:type",Object)],lb.prototype,"ytNextContinuationBehavior",void 0);
_.r([_.v(_.L_),_.Z("design:type",Object)],lb.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],lb.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lb.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],lb.prototype,"playerData",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],lb.prototype,"autoFill",void 0);_.r([_.E({value:60}),_.Z("design:type",Number)],lb.prototype,"targetFramerate",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"isTwoColumns",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"hideOfferModules",void 0);_.r([_.E(),_.Z("design:type",Object)],lb.prototype,"shownItems",void 0);_.r([_.E({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Z("design:type",Boolean)],lb.prototype,"hideUnlimitedOfferModule",void 0);
_.r([_.E({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Z("design:type",Boolean)],lb.prototype,"hideTvfilmOfferModule",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"watchFeedBigThumbs",void 0);_.r([_.E(),_.Z("design:type",Object)],lb.prototype,"watchNextGridHideChips",void 0);_.r([_.E(),_.Z("design:type",Object)],lb.prototype,"eligibleToSwitchToGrid",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"disableShortsShelfHeightOverride",void 0);_.r([_.E({selector:_.Av}),_.Z("design:type",Object)],lb.prototype,"isGridViewEnabled",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],lb.prototype,"showMoreButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lb.prototype,"isWatchNextGrid",void 0);
_.r([_.E({computed:"computeShowButton(showMoreButton, data.results)"}),_.Z("design:type",Boolean)],lb.prototype,"showButton",void 0);_.r([_.bp("data.results.*"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lb.prototype,"resultsChanged",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lb.prototype,"dataChanged",null);
_.r([_.XX("hideUnlimitedOfferModule"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lb.prototype,"hideUnlimitedOfferModuleChanged",null);_.r([_.K("isGridViewEnabled","containsLockupViewModel","data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],lb.prototype,"lockupContainerType",null);
_.r([_.XX("lockupContainerType","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[Number]),_.Z("design:returntype")],lb.prototype,"updateLockupContainerTypes",null);_.r([_.XX("hideTvfilmOfferModule"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lb.prototype,"hideTvfilmOfferModuleChanged",null);_.r([_.XX("showButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lb.prototype,"showButtonChanged",null);
_.r([_.XX("shownItems"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lb.prototype,"shownItemsChangedForBinding",null);_.r([_.K("shownItems"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],lb.prototype,"containsLockupViewModel",null);
_.F(lb,"ytd-watch-next-secondary-results-renderer",function(){if(vC6===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);vC6=B}B=vC6;return B},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.WQ7={};
_.WQ7.YtdWatchBehavior=[_.O.YtRendererBehavior,_.cu.YtPlayerListenerBehavior,_.mD.YtRendererstamperBehavior,_.$Z.YtActionHandlerBehavior,_.lr.YtPageBehavior,_.VR.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.KQ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.k("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.k("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 _.KQ("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.k("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)"},
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, fullscreen, theater)"},richItemMinWidth:{type:Number,value:function(){return _.RC("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.RC("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!_.k("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.k("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 _.k("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.k("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.k("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.k("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("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 _.k("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("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 _.k("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 B={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:_.Ls(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Ls(["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"||_.k("swa_prov_panels_ks")?B.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(B.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},B.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return B},
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 B=this;this.watchController=void 0;this.pageDisposeJobs=[function(){B.showMetadataPlaceholder_()},
function(){_.k("web_watch_dont_clear_comments")||B.clearComments_()},
function(){B.clearPlayerAds_()},
function(){B.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;_.k("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.k("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Pb2(function(){return _.CD(B)},this.hostElement);
this.pageDisposeJobs.push(function(){B.youThereManager_.reset()});
_.k("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){B.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.YI;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;_.k("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.k("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));_.k("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Bc(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(B){B&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:B}),B.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(B){_.k("kevlar_watch_flexy_theater_manager")&&(this.theater=B,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(B){!_.k("kevlar_watch_while_v2")&&!_.k("web_watch_pip")||B||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(B){this.active!==void 0&&(this.fullscreen=B,_.k("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(B){this.active!==void 0&&(_.OI(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.k("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.k("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(B>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(B){this.initCsi_();this.updatePageData_(B)},
updatePageData_:function(B){var R=this;if(B)if(this.data===B){this.onPageLoadWithSameData_();var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data)}else this.data=B;this.playlist&&_.f0({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.zp("nw");this.loading=!1;_.kD(_.dV,function(){R.initDclkstatus_();var e,X=((e=R.player)==null?void 0:e.getVideoData().cpn)||"";_.EY7(function(Y,t){_.qBr(Y,t,X)})})},
onPageLoadWithSameData_:function(){_.k("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 B=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!B);this.set("loadingData.playlistLoading",B&&B!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),B=this.watchNextSkeletonEl_.firstElementChild;B;)B.classList.remove("hidden"),B=B.nextElementSibling;if(_.k("kevlar_watch_frame0_loading_state")){var R,V,e;B=(R=this.loadingData)==null?void 0:(V=R.endpoint)==null?void 0:(e=V.watchEndpoint)==null?void 0:e.videoId;var X;B&&(X="https://i.ytimg.com/vi/"+B+"/frame0.jpg");_.w(this.hostElement).querySelector("#player").style.backgroundImage=X?"url("+X+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var B=_.w(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&B&&(B.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var R,V;(V=(R=this.watchMetadata).updateSentimentBarWidth)==
null||V.call(R);var e,X;(X=(e=this.watchMetadata).resize)==null||X.call(e)}_.k("kevlar_watch_frame0_loading_state")&&(_.w(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(B){var R=_.w(this.hostElement).querySelector(B);R?_.np(R,!1):_.KE(new _.H8("Overscroll monitor not found for component: ",B))},
removeSplitScrollMouseTrap:function(B){var R=_.w(this.hostElement).querySelector(B);R?_.us(R):_.KE(new _.H8("Disposal component for  overscroll monitoring not found: ",B))},
onLoadingChanged_:function(B){B?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(B){var R=this;B?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.dV.addLowPriorityJob(function(){R.onWindowResized_(_.N1(!0))})},
updateTheaterModeState_:function(B){if(!_.k("kevlar_watch_flexy_theater_manager")){B=B||this.fullWindowMode_;if(this.theater!==void 0||B)this.theater=B;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();B&&_.mt4()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var B=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.k("external_fullscreen")&&this.fullscreen&&(B=!0);B=B?_.w(this.hostElement).querySelector("#player-full-bleed-container"):_.w(this.hostElement).querySelector("#player-container-inner");var R=this.getPlayerContainer(),V=_.k("kevlar_watch_while_v2")||_.k("web_watch_pip");R.parentElement!==B&&(V&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.CD(this).appendTo(B,
R),B.appendChild(_.w(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var B=this;return _.W(function(R){if(R.nextAddress==1)return _.U(R,_.Oz().resolve(_.An).deactivate(),2);B.updatePlayerLocation();_.b3(R)})},
updateCinematicsLocation:function(){var B=this.getElement("CINEMATICS");if(B){var R=this.getCinematicsLocationContainer();B.parentElement!==R&&R.appendChild(B);var V;(V=this.watchController)==null||V.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.w(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.w(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(B,R){var V=document.documentElement.hasAttribute("dark"),e=V&&_.k("web_cinematic_theater_mode"),X=V&&_.k("web_cinematic_fullscreen");V=!V&&this.cinematicLightTheme;return B&&e||R&&X||(R||B)&&V},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var B=this,R;(R=this.watchController)==null||R.setWatchNextResponse(this.data);_.k("kevlar_watch_flexy_comments_manager")||this.initComments_();_.k("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Oz().resolve(_.Ky).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,_.k("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.dV.addLowPriorityJob(function(){_.Bz(B.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.k("web_watch_start_chat_in_theater_mode")){var V,e,X;if((V=this.data)==null?0:(e=V.contents)==null?0:(X=e.twoColumnWatchNextResults)==null?0:X.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Y,t;((Y=this.data)==null?0:(t=Y.contents)==null?0:t.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(B){var R;(R=this.watchController)==null||R.setPlayerResponse(this.playerData);B&&B.playabilityStatus&&(R=this.isVideoPlayable_(B.playabilityStatus,this.getPlayerOverlays_(this.data)),B=this.isLiveStreamOffline_(B.playabilityStatus),R&&!B||_.gB(this,function(){_.zp("pbu")}));
this.setPlayerAds_();_.Bz(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(B,R){if((_.k("kevlar_watch_while_v2")||_.k("web_watch_pip"))&&this.playerData&&R)return this.playerData.videoDetails},
watchPageActiveChanged_:function(B){_.g6().dispatch(_.yan(this.active));B?this.activate_():this.deactivate_()},
attached:function(){var B=this;this.watchController=new _.ci(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);_.k("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var R=_.CD(this);_.k("kevlar_disable_prepare_player")||
R.preparePlayer();_.k("kevlar_watch_flexy_playlist_manager")||_.Oz().resolve(_.Ky).setPlayer(R);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();R={"--ytd-watch-flexy-scrollbar-width":_.ww()+"px"};this.is==="ytd-watch-grid"&&(R["--ytd-watch-flexy-sidebar-width"]=_.Ld4+"px",R["--ytd-watch-grid-horizontal-page-margins"]=_.Ea+"px",R["--ytd-watch-grid-columns-top-margins"]=_.wvU+"px",R["--ytd-watch-grid-min-player-height-medium"]="360px");!_.RC("kv_pl_mx_sz_ks")&&
_.RC("kevlar_watch_max_player_width")&&(R["--ytd-watch-flexy-max-player-width-wide-screen"]=_.vHi+"px");_.RC("kevlar_watch_flexy_metadata_height")&&(R["--ytd-watch-flexy-space-below-player"]=_.Kdm+"px");this.safeUpdateStyles(R);_.k("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Wj(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return B.onPlayerTouchPanDown_()}}));
_.k("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.w(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var B=_.ww(),R=_.QE+B,V=R;this.fixedPanels&&(R+=_.Ld4);var e=657+B;B=1327+B;_.w(this.hostElement).querySelector("#two-column-query").query="(min-width: "+R+"px)";_.w(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(e+"px), (min-height: 630px) and (min-width: ")+(R+"px) and (max-width: ")+(B+"px)");_.w(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(B+"px)");_.w(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+V+"px)"},
calculateCurrentPlayerSize_:function(){var B=_.w(this.hostElement).querySelector("#miniplayer-bar").firstChild,R=this.squeezeback&&!_.k("web_watch_squeezeback_player_size_killswitch");return B&&B.active||this.theater||_.k("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||R||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.Yl(NaN,NaN):_.F_(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.F_(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Cx(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var B=this;this.onWindowResized_(_.N1());_.k("browse_skeleton_removal_on_watch_killswitch")||_.KQ("IS_SHELL_LOAD")&&_.i42();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var R=_.CD(this);R.addEventListener("yt-player-updated",_.Bc(this,this.onPlayerUpdated_));R.getPlayerPromise().then(function(V){B.playerApiReady_(V)});
_.k("kevlar_watch_flexy_playlist_manager")||(R=_.Oz().resolve(_.Ky),_.k("kevlar_watch_observe_playlist_navigations_killswitch")&&R.addEventListener("yt-navigate",_.Bc(this,this.onYtNavigate_)),R.setPlaylistComponent(_.w(this.hostElement).querySelector("#playlist")),R.addEventListener("yt-playlist-data-updated",_.Bc(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.dV.addLowPriorityJob(function(){_.OI(B.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.CD(this).removeEventListener("yt-player-updated",_.Bc(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.k("kevlar_watch_flexy_playlist_manager")){var B=_.Oz().resolve(_.Ky);_.k("kevlar_watch_observe_playlist_navigations_killswitch")&&B.removeEventListener("yt-navigate",_.Bc(this,this.onYtNavigate_));
B.cancelVideoSkip();B.removeEventListener("yt-playlist-data-updated",_.Bc(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.k("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.OI(this.hostElement,"yt-autonav-pause-player",!1);B=_.Cp();_.k("kevlar_exit_fullscreen_leaving_watch")&&B&&_.PJ(B)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(B){this.player&&this.player.updateVideoData({rvs:B.rvs})},
getPageContents:function(B){return B&&B.contents&&B.contents.twoColumnWatchNextResults&&B.contents.twoColumnWatchNextResults.results&&B.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(B){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B)},
onRetrieveLocation_:function(B,R){R.hasComments?R.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):R.locationRetrieved("/related_ajax",void 0);B.stopPropagation()},
onSubscriptionChanged_:function(B,R){this.player&&(R?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fP("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.w(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.w(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(B){this.player=B;this.setPlayerState(B.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.k("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.k("kevlar_unified_player")||_.k("kevlar_player_new_bootstrap_adoption"))&&_.uH()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(B,R){R=R===void 0?!0:R;_.Cp()&&_.k("external_fullscreen")&&_.PJ(document.documentElement);this.theaterRequested_=B;R&&_.Nn("wide",B?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.oF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.OI(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(B){_.Iq(B,typeof this.player),this.player&&_.Iq(B,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var B;((B=this.player)==null?0:B.isFullscreen())?this.player.toggleFullscreen():_.oF(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(B,R){return this.loading?R:!!Object.keys(B).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(B){if(B){B=_.h(B);for(var R=B.next();!R.done;R=B.next())R=R.value,R.youThereRenderer&&_.Omm(this.youThereManager_,R.youThereRenderer)}},
setPlaylistData_:function(B){return B||{}},
userEngagementConfigDataChanged_:function(B){if(B)if(B.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var R=this.youThereManager_;_.B5()<B.lowEngagementThresholdMs||_.VsN(R,!0)}else B.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.oF(this.hostElement,"yt-autonav-pause-user-engagement",[B])},
isPlayerUnavailable_:function(B,R,V){return!!B&&!this.isVideoPlayable_(B,V)&&!R},
getPlayerOverlays_:function(B){return(B==null?void 0:B.playerOverlays)||null},
isVideoPlayable_:function(B,R){if(!B)return!1;var V=B.status==="OK"||B.status==="LIVE_STREAM_OFFLINE",e=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",B)||this.get("errorScreen.ypcTrailerRenderer",B);B=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",B);var X;R=R==null?void 0:(X=R.playerOverlayRenderer)==null?void 0:X.gatedActionsOverlayRenderer;return!!V||!!e||!!B||!!R},
hasWatchNextResponseErrorRenderer:function(B){var R=this.getPageContents(B),V,e,X,Y,t;return!(B==null?0:(V=B.contents)==null?0:(e=V.twoColumnWatchNextResults)==null?0:e.secondaryResults)&&!!((X=R[0])==null?0:(Y=X.itemSectionRenderer)==null?0:(t=Y.contents[0])==null?0:t.backgroundPromoRenderer)},
isLiveStreamOffline_:function(B){return B?B.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(B,R,V){var e=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",R),X=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];X=_.k("web_no_skip_video_on_verification_checks")?(B==null?void 0:B.status)&&X.includes(B.status):B&&B.status==="AGE_CHECK_REQUIRED";var Y=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",B);Y==void 0&&(Y=!0);!V||this.isVideoPlayable_(B,this.getPlayerOverlays_(R))||
e||X||!Y||_.Oz().resolve(_.Ky).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.s24()},
onPlayerFeedbackStartRequest_:function(B){_.oF(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:B}])},
onPlayerFeedbackArticleRequest_:function(B){_.oF(this.hostElement,"yt-help-dialog-requested",[B])},
onPlayerYpcContentRequest_:function(){var B,R,V,e,X,Y,t,b,J=((B=this.data)==null?NaN:(R=B.contents)==null?NaN:(V=R.twoColumnWatchNextResults)==null?NaN:(e=V.secondaryResults)==null?NaN:(X=e.secondaryResults)==null?NaN:(Y=X.offerModule)==null?NaN:(t=Y.tvfilmOfferModuleRenderer)==null?NaN:(b=t.actionButtons)==null?NaN:b.length)-1;B=[".offerButton.buttonRenderer.",".actionButtons."+(J>=0?J:0)+".buttonRenderer."];R=_.h(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(V=R.next();!V.done;V=R.next())for(V=V.value,e=_.h(B),X=e.next();!X.done;X=e.next())if(X="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+V+X.value,X=this.get(X+"navigationEndpoint",this.data)||this.get(X+"serviceEndpoint",this.data)||this.get(X+"command",this.data)){_.Xc(X,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(B){_.OI(this.hostElement,"yt-autonav-pause-player",B)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(B){B()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(B){switch(B){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(B){switch(B){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.OI(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(B)},
setPlayerState:function(B){_.g6().dispatch(_.AQh(B))},
onPlayerSubscribe_:function(B){_.oF(this.hostElement,"yt-player-subscribe",[B])},
onPlayerUnsubscribe_:function(B){_.oF(this.hostElement,"yt-player-unsubscribe",[B])},
onPlayerAdYtShowToast_:function(B){_.oF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:B.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(B){if(B)return B},
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(B){return!_.k("web_watch_move_summary_to_sd")&&!!B},
computeWatchMetadataRefresh:function(){return _.k("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.k("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var B,R,V,e;this.watchNextSecondaryResults=(B=this.data)==null?void 0:(R=B.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(e=V.secondaryResults)==null?void 0:e.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.k("swatcheroo_pbs_load_grid")&&!_.k("swatcheroo_provide_all_data_on_scheduled_job")){_.dV.cancelJob(this.setRichGridJobId_);var B,R,V,e,X,Y,t;this.setRichGridRendererData((B=this.data)==null?void 0:(R=B.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(e=V.secondaryResults)==null?void 0:(X=e.secondaryResults)==null?void 0:(Y=X.results)==null?void 0:(t=Y[0])==null?
void 0:t.richGridRenderer)}},
setRichGridRendererData:function(B){this.richGridRendererData=B},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var B,R=(B=this.data)==null?void 0:B.engagementPanels;if(R==null?0:R.length){B=null;R=_.h(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;var e=void 0;if(((e=V.engagementPanelSectionListRenderer)==null?void 0:e.targetId)==="engagement-panel-structured-description"){B=V;break}}var X,Y,t;B=(X=B)==null?void 0:(Y=X.engagementPanelSectionListRenderer)==null?void 0:(t=Y.content)==null?void 0:t.structuredDescriptionContentRenderer;if(B==null?0:B.items){X=
[];Y=_.h(B.items);for(t=Y.next();!t.done;t=Y.next()){t=t.value;if(!_.k("sd_horizontal_list_show_nav_killswitch")){var b=e=V=R=B=void 0,J=void 0,G=(B=t.horizontalCardListRenderer)==null?void 0:(R=B.header)==null?void 0:(V=R.richListHeaderRenderer)==null?void 0:(e=V.navigationButton)==null?void 0:(b=e.buttonRenderer)==null?void 0:(J=b.command)==null?void 0:J.commandExecutorCommand;G&&G.commands&&(G.commands=G.commands.filter(function(y){return!_.D(y,_.$hU)}))}t.expandableVideoDescriptionBodyRenderer||
t.videoDescriptionHeaderRenderer||X.push(t)}return{items:X}}}},
constructWarning_:function(B){return{text:_.s$(B),type:"WARNING"}},
isPlaShelfEnabled_:function(B){if((this.get("adPlacements",B)||[]).length)return!0;B=this.get("playerAds",B)||[];return!(!B.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",B[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var B=this;_.OI(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.k("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var R=this.getScrollTop()>0;this.gestures_&&(R?this.gestures_.detach():this.gestures_.attach());R!==this.showFullerscreenEdu_&&_.k("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=R,_.CD(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonVisibility(B.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.OI(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var B=this;this.commentsReady=!1;_.dV.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.kD(_.dV,function(){B.setComments_()},1E3)},
setComments_:function(){if(!_.k("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.zp("cmi");_.dV.cancelJob(this.setCommentsJobId_);var B=this.getPageContents(this.data);if(B&&B.length){B=_.h(B);for(var R=B.next();!R.done;R=B.next())if(R=R.value,this.get("itemSectionRenderer.sectionIdentifier",R)==="comment-item-section"){this.comments=R.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.OI(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.k("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.k("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.zp("cmc")},
doRemoveComments_:function(){this.comments={};_.k("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.dV.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.dV.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(B,R){var V=_.D(R.endpoint,_.sI);V&&(!(R=this.get("data.currentVideoEndpoint.watchEndpoint"))||V.videoId!==R.videoId||V.playlistId&&V.playlistId!==R.playlistId||V.index!==void 0&&V.index!==R.index||typeof V.startTimeSeconds!=="number"||(B.stopPropagation(),this.setScrollTop(0),_.CD(this).getPlayerPromise().then(function(e){var X=V.startTimeSeconds;e.seekTo(X);e.wakeUpControls();X<e.getDuration()&&e.playVideo()})))},
updatePlayerStartTime_:function(){var B=_.zGo();"t"in B&&(B=_.ime(B.t),this.player.seekTo(B,!0))},
updateTitleFromWatchNext:function(B){B=this.getPageContents(B);var R,V;(B=_.FF(B==null?void 0:(R=B[0])==null?void 0:(V=R.videoPrimaryInfoRenderer)==null?void 0:V.title))&&_.OI(this.hostElement,"yt-update-title",B)},
updateTitle_:function(B){B=this.get("videoDetails.title",B)||"";_.OI(this.hostElement,"yt-update-title",B)},
syncWithRemoteVideo_:function(B,R,V){if(this.active&&this.player){var e=this.player.getVideoData();if(e.video_id===V&&(V=e.list,_.k("polymer_enable_mdx_queue")&&V&&V.startsWith("RQ")&&(V=void 0),e.video_id!==B||V!=R)){var X;_.k("kevlar_player_watch_endpoint_navigation")?X=_.PLx(_.Q2r(B,R)):X=this.buildWatchEndpoint_(B,R);_.OI(this.hostElement,"yt-navigate",{endpoint:X,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(B,R,V){return _.Pz(B,R,V)},
initDclkstatus_:function(){_.Aam()},
attachWatchPageSkeleton_:function(){var B=document.querySelector("#watch-page-skeleton");if(B){var R=B.querySelector("#primary-info"),V=B.querySelector("#secondary-info"),e=B.querySelector("#related");R&&_.w(this.hostElement).querySelector("#info-skeleton").appendChild(R);V&&_.w(this.hostElement).querySelector("#meta-skeleton").appendChild(V);e&&(_.w(this.hostElement).querySelector("#related-skeleton").appendChild(e),this.watchNextSkeletonEl_=e);_.UJ(B)}},
handlePlayerUpdated_:function(){_.CD(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(B,R){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof R!=="undefined"){var V=this.watchNextSkeletonEl_.children,e=B&&B.indexSplices.length?B.indexSplices[0].index:0;B=Math.min(this.watchNextShownItems.length,V.length);R||(e=0,B=V.length);for(R=e;R<B;R++)V[R].classList.add("hidden")}},
onPlayerFullscreenChange_:function(B){_.k("external_fullscreen")||_.oF(this.hostElement,"yt-player-fullscreen",[B.fullscreen])},
onFullscreenChange_:function(B){this.fullscreen=B;this.gestures_&&this.gestures_.update(this.fullscreen);var R=_.CD(this);R.getPlayerPromise().then(function(V){V.setFauxFullscreen(!!_.Cp())});
this.updateFullBleedElementLocations();B&&(R.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(B,R){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!R},
computeIsDonationShelfCollapsed_:function(B){return B},
computeShouldShowMerchShelf:function(B,R){return R&&!!B},
computeResponseHasComments:function(B){var R,V,e,X,Y;return!!(B==null?0:(R=B.contents)==null?0:(V=R.twoColumnWatchNextResults)==null?0:(e=V.results)==null?0:(X=e.results)==null?0:(Y=X.contents)==null?0:Y.some(function(t){var b;return(t==null?void 0:(b=t.itemSectionRenderer)==null?void 0:b.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(B,R,V,e){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&e?!1:!!B&&!!Object.keys(B).length&&!R},
identity:_.sS,onWindowResized_:function(B){this.windowSize_=B;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.k("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(B){var R=this;B&&B.type!=="dataloaded"&&B.type!=="dataupdated"||_.CD(this).getPlayerPromise().then(function(V){var e=V.getPlayerState();e!==5&&e!==0&&(V=1/V.getVideoAspectRatio(),R.videoHeightToWidthRatio_!==V&&(R.videoHeightToWidthRatio_=V))})},
schedulePlayerSizeUpdate_:function(B){var R=this,V=_.k("kevlar_watch_while_v2")||_.k("web_watch_pip"),e=function(){if(R.watchMetadata){var X,Y;(Y=(X=R.watchMetadata).resize)==null||Y.call(X)}_.CD(R).getPlayerPromise().then(function(t){if(_.k("kevlar_set_internal_player_size")){if(!V||!R.isMiniplayerActive()){var b=R.calculateCurrentPlayerSize_();t.setInternalSize(b.width,b.height)}}else t.setSize(NaN,NaN);_.k("kevlar_watch_while")&&R.updateWatchWhileScrollThreshold_()})};
B?e():_.db(_.dV,e)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(B){this.set("data.survey",B.detail)},
onYtShowSurveyCommand_:function(B){this.set("data.survey",_.D(B,_.Cbe).survey)},
onDownloadedVideoDeleted:function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1){if(!R.active||(V=R.playerData)==null||!V.offlineState||R.videoId!==B)return X.return();(e=R.player)==null||e.stopVideo();_.Up().navigatingAwayFromWatchDeletedVideo=!0;_.Xc(_.QXI,R.hostElement);return _.U(X,_.Up().navigationFinishPromise,2)}_.Up().navigatingAwayFromWatchDeletedVideo=!1;_.b3(X)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var B;this.theater?B=_.IH(.5625*this.windowSize_.width,480,this.windowSize_.height-185):B=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==B&&(this.watchWhileScrollThreshold_=B,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var B=_.w(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&B){var R=this.windowSize_.height>=624,V=this.active?this.getScrollTop():0;!B.active&&R&&V>=this.watchWhileScrollThreshold_?(B.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):B.active&&(!R||V<this.watchWhileScrollThreshold_&&!_.Cp())&&(B.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var B=_.w(this.hostElement).querySelector("#secondary-inner");if(B){var R=_.w(this.hostElement).querySelector("#below"),V=_.w(this.hostElement).querySelector("#secondary"),e=_.w(this.hostElement).querySelector("#comments");e&&V&&R&&(this.defaultTwoColumnLayout?(B.appendChild(e),V.appendChild(B)):(R.appendChild(e),_.I2(R,B)))}}},
isTwoColumnsChanged_:function(B,R){if(B!==!0||R!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(B=_.w(this.hostElement).querySelector("#secondary-inner"))){R=_.w(this.hostElement).querySelector("#below");var V=_.w(this.hostElement).querySelector("#secondary"),e=_.w(this.hostElement).querySelector("#comments");e&&V&&R&&(this.isTwoColumns_?(B.appendChild(e),V.appendChild(B)):(R.appendChild(e),
_.I2(R,B)))}}else{B=!_.k("live_chat_over_engagement_panels");R=_.w(this.hostElement).querySelector("#chat-container");V=_.w(this.hostElement).querySelector("#panels");var X=_.w(this.hostElement).querySelector("#alerts");e=_.w(this.hostElement).querySelector("#playlist");var Y=_.w(this.hostElement).querySelector("#related"),t=_.w(this.hostElement).querySelector("#donation-shelf"),b=_.w(this.hostElement).querySelector("#comments");this.isTwoColumns_?(X=_.w(this.hostElement).querySelector("#secondary-inner"),
B&&X.appendChild(V),X.appendChild(e),_.k("web_watch_theater_chat")||X.appendChild(R),B||X.appendChild(V),X.appendChild(t),X.appendChild(Y)):(B&&_.Tw(V,X),_.Tw(e,X),_.k("web_watch_theater_chat")||_.Tw(R,X),B||_.Tw(V,X),_.Tw(t,X),b&&_.Tw(Y,b));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.k("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.k("web_watch_theater_chat")){var B=_.w(this.hostElement).querySelector("#chat-container"),R=this.theater&&!this.fullscreen||_.k("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&R?_.k("web_watch_theater_chat_beside_player")?(R=_.w(this.hostElement).querySelector("#panels-full-bleed-container"),(B==null?void 0:B.parentElement)!==R&&R.append(B),this.panelsBesidePlayer=!0):
_.k("web_watch_theater_fixed_chat")&&(R=_.w(this.hostElement).querySelector("#columns"),(B==null?void 0:B.parentElement)!==R&&R.append(B),this.fixedPanels=!0):(_.k("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.k("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),R=_.w(this.hostElement).querySelector("#playlist"),B&&R?_.xP(B,R):_.KE(new _.H8("Missing element when updating chat location",{"chatContainer defined":!!B,"playlist defined":!!R})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(B,R){return _.k("sw_metadata_vis_toggle_ks")?!0:!!B||!!R},
computeForceDarkPanelTheme:function(B){return _.k("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&B:!1},
safeUpdateStyles:function(B){try{_.o_(this.hostElement,B)}catch(R){_.KE(R)}},
videoHeightToWidthRatioChanged_:function(B,R){R&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(B){this.videoHeightToWidthRatio_=1/B},
computeIsVerticalVideo_:function(B){return B>=1},
computeIsFourThreeToSixteenNineVideo_:function(B){return B<=.7501&&B>=.5624},
computeIsExtraWideVideo_:function(B){return B<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.CD(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.CD(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ej4(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(B){var R=_.tp(B)||0;_.hp(B,R+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var B=_.tp("yt-fullerscreen-edu-button-click-count")||0,R=_.tp("yt-fullerscreen-edu-button-shown-count")||0,V=_.RC("external_fullscreen_button_shown_threshold"),e=B>=_.RC("external_fullscreen_button_click_threshold")||R>=V;_.CD(this).getPlayerPromise().then(function(X){X.updateFullerscreenEduButtonSubtleModeState(e)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(B,R){return R},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Oz().resolve(_.Ky).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var B=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.dV.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.dV.addLowPriorityJob(function(){B.fullHeightPanelPositionUpdateJobId=0;var R=_.w(B.hostElement).querySelector("#secondary"),V=_.w(B.hostElement).querySelector("#fixed-secondary");R=R.getBoundingClientRect();var e=R.width;B.swatcherooSqueezeback&&
(e+=_.Ea);if(B.swatcherooSqueezeback){var X=_.w(B.hostElement).querySelector("#squeezeback-constraining-container");X.style.width=e+"px";X.style.flex="0 0 "+e+"px"}V.style.width=e+"px";V.style.left=R.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var B=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.dV.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.dV.addLowPriorityJob(function(){B.panelMaxHeightUpdateJob_=0;var R;!B.isTwoColumns_||B.theater||B.fullscreen?R=460:R=B.calculateNormalPlayerSize_().height;var V=R+"px";_.k("live_chat_taller_height")&&!B.theater&&(V="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.k("live_chat_medium_height")&&!B.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.k("live_chat_scaled_height")&&!B.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 238px)");B.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":R+"px","--ytd-watch-flexy-chat-max-height":V,"--ytd-watch-flexy-structured-description-max-height":R+"px","--ytd-watch-flexy-comments-panel-max-height":R+"px","--ytd-comments-engagement-panel-content-height":R+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(B){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",B)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.eO(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(B){var R=_.w(this.hostElement).querySelector("#engagement-panel-scrim");B?R.addEventListener("tap",_.Bc(this,this.onEngagementPanelScrimClick_)):R.removeEventListener("tap",_.Bc(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(B){if(this.hostElement.contains(B)&&!this.scrollToAnimation_.isAnimating()){var R=B.offsetTop-24;B=B.offsetTop+B.offsetHeight+24;var V=this.getPageScrollingElement(),e=this.getScrollTop(),X=e+V.clientHeight-56;if(R<e+56)R-=56;else if(B>X)R=B-V.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,R),500)}},
onYtSignalActionScrollToComments:function(){var B=this.hostElement.querySelector("#comments");if(B&&!this.scrollToAnimation_.isAnimating()){B=B.offsetTop-56-24;if(_.k("kevlar_comment_teaser_scroll_to_midpoint")&&(B-=_.hF().height/3,B<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,B),500)}},
onYtEngagementPanelVisibleChanged:function(B,R,V){if(this.active&&this.trackEngagementPanelVisibility&&!_.mA6.includes(V)){if(R==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.Bz(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.k("kevlar_single_panel_fullscreen")){var e=_.Oz().resolve(_.Sf);this.visiblePanelIdentifiers_.forEach(function(X){X!==V&&e.hidePanel(X)})}this.visiblePanelIdentifiers_.add(V)}R!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&R!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(V);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(B){return B?"":"watch-active-metadata"},
computeNewMetadataClass:function(B){return B?"watch-active-metadata":""},
computeFullBleedPlayer:function(B,R,V){return B||R||this.enableFullBleedSingleColumnDefaultPlayer&&!V},
computeDefaultLayout:function(B){return!B},
computeDefaultTwoColumnLayout:function(B,R){return!B&&R},
updatePanelsLocation:function(){if(_.k("web_watch_enable_fs_squeezeback_panels")){var B=_.w(this.hostElement).querySelector("#below"),R=_.w(this.hostElement).querySelector("#panels"),V=_.w(this.hostElement).querySelector("#panels-full-bleed-container"),e=_.w(this.hostElement).querySelector("#secondary-inner");this.fullscreen||this.theater&&this.iMaxTheaterMode?V.appendChild(R):this.isTwoColumns_?_.I2(e,R):B.appendChild(R)}},
swatcherooUpdatePanelsLocation:function(B,R,V,e,X,Y){if(this.is==="ytd-watch-grid"){R=B&&!R;this.swatcherooSplitScroll&&(R?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));V=_.w(this.hostElement).querySelector("#panels");var t=_.w(this.hostElement).querySelector("#playlist"),b=_.w(this.hostElement).querySelector("#fixed-secondary"),J=_.w(this.hostElement).querySelector("#fixed-below"),
G=_.w(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),y=_.w(this.hostElement).querySelector("#chat-container");Y&&(B?b.appendChild(V):J.appendChild(V));X?B?b.appendChild(y):J.appendChild(y):_.xP(y,G);e?B?b.appendChild(t):J.appendChild(t):_.xP(t,G);this.swatcherooSplitScroll&&(B=_.w(this.hostElement).querySelector("#secondary"),e=_.w(this.hostElement).querySelector("#columns"),X=_.w(this.hostElement).querySelector("#fixed-columns-secondary"),R?X.appendChild(B):
e.appendChild(B))}},
computeMetadataSkinnyMode:function(B,R,V){return this.is!=="ytd-watch-grid"?!1:B?V:R},
computeWatchWhilePanelsActive:function(B,R){return B||R},
computeNoBorderOnChat:function(B){return _.k("web_watch_theater_chat_no_border")&&B},
computeLiveChatPresentAndExpanded:function(B,R){return B&&!R},
computePanelExpanded:function(B,R,V){return B||R||V},
computeSqueezeback:function(B,R){if(_.k("web_watch_enable_fs_squeezeback_panels")){var V=this.iMaxTheaterMode&&this.theater;return B&&(R||V)}},
computeSwatcherooSqueezeback:function(B,R,V){return this.is!=="ytd-watch-grid"||_.k("ww_squeezeback_killswitch")?!1:B&&R&&V},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(B){_.CD(this).getPlayerPromise().then(function(R){var V;(V=R.changeMarkerVisibility)==null||V.call(R,_.D(B,_.ry).isVisible||!1,_.D(B,_.ry).entityKeys||[],_.D(B,_.ry).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(B){this.liveChatCollapsed=B.detail;_.g6().dispatch(_.ZmU(B.detail))},
onSetPlaylistCollapsed:function(B){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!B)},
provideRenderingData:function(B,R){switch(B){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=R;break;case "PRIMARY_INFO":_.k("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=R);this.videoPrimaryInfoRendererValue=R==null?void 0:R.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.k("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=R);this.videoSecondaryInfoRendererValue=R==null?void 0:R.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
R;break;case "CLARIFICATION":this.clarifyBoxValue=R;break;case "LIVE_CHAT":this.conversationBar=R;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=R;break;case "PLAYLIST":this.externalPlaylistData_=R!=null?R:{};break;case "MERCH_SHELF":this.merchShelfValue=R==null?void 0:R.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=R;break;case "TICKET_SHELF":this.ticket=R;break;case "OFFER_MODULE":this.offerModule=R;break;case "LIMITED_STATE":this.limitedStateValue=
R;break;case "DONATION_SHELF":this.donation=R;break;case "ALERTS":this.alertsValue=R;break;case "COMMENTS":this.comments=R;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=R;break;case "ENGAGEMENT_PANELS":this.engagementPanels=R;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=R;break;case "RICH_GRID_RENDERER":this.richGridRendererData=R;break;case "EXPANDABLE_METADATA":this.expandableMetadata=R;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
R}},
toggleCinematicsActive:function(B){this.cinematicsActive=B},
isMiniplayerActive:function(){return _.Oz().resolve(_.An).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var sCU;_.iqe=function(B){return B.shorts.isShortsActive};
_.Fkn=function(B){return B.findIndex(function(R){return sCU.indexOf(R.tagName)>-1})>-1};
_.ruj=function(B){return _.or({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:B}})};
_.gzz=function(){var B=_.Oz().resolve(_.BD);_.rzS(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(B.isFullscreenEnabled()?_.PJ(document.documentElement):_.SeK(document.documentElement))};
sCU=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.n4=new Map;_.n4.set(32,59972);_.n4.set(27,50765);_.n4.set(70,60102);_.n4.set(76,60221);_.n4.set(77,60222);_.n4.set(74,60223);_.n4.set(84,60224);_.n4.set(38,61941);_.n4.set(40,61942);_.n4.set(73,62521);_.n4.set(67,62522);_.n4.set(80,63390);_.n4.set(78,63397);_.n4.set(75,59972);_.n4.set(188,63385);_.n4.set(190,63384);_.n4.set(36,63387);
_.n4.set(35,63386);_.n4.set(37,63388);_.n4.set(39,63389);_.n4.set(79,63423);_.n4.set(87,63424);_.n4.set(107,63426);_.n4.set(109,63425);_.n4.set(65,63428);_.n4.set(83,63430);_.n4.set(68,63429);_.n4.set(221,63431);_.n4.set(219,63432);_.n4.set(97,63439);_.n4.set(98,63440);_.n4.set(99,63441);_.n4.set(100,63442);_.n4.set(101,63443);_.n4.set(102,63444);_.n4.set(103,63445);_.n4.set(104,63446);_.n4.set(105,63447);_.uk=new Map;_.uk.set(80,63390);_.uk.set(78,63397);_.uk.set(188,63400);_.uk.set(190,63401);
_.uk.set(191,60765);_.uk.set(13,247917);_.Ot=new Map;_.ov=new Map;
}catch(e){_._DumpException(e)}
try{
var FCj,Zr6,mIi,$Iz;_.cq4=function(B){return B.ui.guideIsVisibleButNotPersistent};
_.Aq7=function(B){return B.ui.tabGesturesIsActive};
_.ir2=function(){var B=_.V_("service_worker_scope");try{return navigator.serviceWorker.getRegistration(B)}catch(R){return Promise.reject(R)}};
_.sbe=function(B){return!(!B||!B.pushManager)};
FCj=function(){return _.ir2().then(_.sbe).catch(function(){return!1})};
_.rqo=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?FCj():Promise.resolve(!1)};
_.gb2=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Zr6=function(){var B,R,V;return _.W(function(e){switch(e.nextAddress){case 1:return _.U(e,_.fy.getInstance(),2);case 2:B=e.yieldResult;if(!B){R=void 0;e.jumpTo(3);break}return _.U(e,B.get("lmqf"),4);case 4:R=e.yieldResult;case 3:switch((V=R)||(V="SD"),V){case "HD":return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
mIi=function(B){var R,V,e;return _.W(function(X){if(X.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.k("disable_av1_setting")){var Y=window.localStorage["yt-player-av1-pref"];Y=Y==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":Y==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else Y="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(R=B===Y)return X.jumpTo(2);e=V=B;return _.U(X,Zr6(),3)}X.nextAddress!=2&&(R=e===X.yieldResult);return X.return(R)})};var C3e;var P37=_.lv.IronButtonState,nb4=(0,_.M7)(HTMLElement);
_.Sm({_template:function(){if(C3e!==void 0)return C3e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;$Iz===void 0&&($Iz=document.createElement("template"));var e=$Iz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return C3e=B},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[P37,_.DV,_.z0,_.wv],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(B){var R=(0,_.NK)(this);R.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:B});R.shadowRoot.appendChild(B);return nb4.prototype._attachDom.call(this,B)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var B=this.contentElement;B&&B.selectedItem&&this._setSelectedItem(B.selectedItem)},
get contentElement(){for(var B=_.Mr(this.$.content).getDistributedNodes(),R=0,V=B.length;R<V;R++)if(B[R].nodeType===Node.ELEMENT_NODE)return B[R]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(B){this._setSelectedItem(B.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(B){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(B)===this&&this.open()},
_selectedItemChanged:function(B){var R="";B?R=B.label||B.getAttribute("label")||B.textContent.trim():R="";this.value=R;this._setSelectedItemLabel(R)},
_computeMenuVerticalOffset:function(B,R){return R?R:B?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var B=this.opened?"true":"false",R=this.contentElement;R&&R.setAttribute("aria-expanded",B)}});_.cA=new _.P("navigateAction");var ufz=new _.P("formRenderer");var Ac=function(){var B=_.tM.apply(this,arguments)||this;B.showInput=!1;return B};
_.l(Ac,_.tM);_.p=Ac.prototype;_.p.detached=function(){this.showInput&&window.removeEventListener("click",_.Bc(this,this.closeOnOutsideClick_))};
_.p.stopPropagation_=function(B){this.showInput&&B.stopPropagation()};
_.p.closeOnOutsideClick_=function(B){this.closeOnOutsideClickCondition(B)&&(this.showInput=!1,window.removeEventListener("click",_.Bc(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.p.closeOnOutsideClickCondition=function(){return!0};
_.p.closeOnOutsideClickHandler=function(){};
_.p.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Bc(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.p.openOnClickHandler=function(){};
_.p.showInputChanged=function(){};
_.p.setShowInput=function(B){this.showInput=B};
Ac.prototype.setShowInput=Ac.prototype.setShowInput;Ac.prototype.showInputChanged=Ac.prototype.showInputChanged;Ac.prototype.openOnClickHandler=Ac.prototype.openOnClickHandler;Ac.prototype.openOnClick_=Ac.prototype.openOnClick_;Ac.prototype.closeOnOutsideClickHandler=Ac.prototype.closeOnOutsideClickHandler;Ac.prototype.closeOnOutsideClickCondition=Ac.prototype.closeOnOutsideClickCondition;Ac.prototype.closeOnOutsideClick_=Ac.prototype.closeOnOutsideClick_;Ac.prototype.stopPropagation_=Ac.prototype.stopPropagation_;
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ac.prototype,"showInput",void 0);_.r([_.R_("click"),_.R_("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Ac.prototype,"stopPropagation_",null);_.r([_.XX("showInput"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean]),_.Z("design:returntype")],Ac.prototype,"showInputChanged",null);Ac=_.r([_.Wc()],Ac);_.Or4=[Ac.prototype];var ol4;var Bk4;var iu=function(){return _.c.apply(this,arguments)||this};
_.l(iu,_.c);_.p=iu.prototype;_.p.computePreselectedOption=function(B,R){return R===this.itemSelected_?B:void 0};
_.p.dataChanged_=function(){var B=this;this.preselectedSubreason=this.itemSelected_=-1;var R;(R=this.data)!=null&&R.key&&_.gB(this,function(){var V,e=Number((V=B.data)==null?void 0:V.key);!Number.isNaN(e)&&(B.itemSelected_=e,V=(V=(B.data.items||[])[e])&&V.optionSelectableItemRenderer&&V.optionSelectableItemRenderer.preselectedIndex)&&(B.preselectedSubreason=V)})};
_.p.isSubReasonHidden_=function(B,R){return B!=R};
_.p.onTopItemSelected_=function(B,R){for(var V=_.w(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),e=0,X=V.length;e<X;e++)V[e].select(0);_.oF(this.hostElement,"yt-report-form-update",[R.item.value]);B.stopPropagation()};
_.p.onItemSelected_=function(B,R){_.oF(this.hostElement,"yt-report-form-update",[R.item.value]);B.stopPropagation()};
_.p.getItem_=function(B){return B.serviceItem?B.serviceItem:B.navigationItem?B.navigationItem:B.optionSelectableItemRenderer?B.optionSelectableItemRenderer:null};
_.p.computeText_=function(B){return(B=this.getItem_(B))?this.ytRendererBehavior.getSimpleString(B.text):null};
_.p.validate=function(){return this.itemSelected_!==-1};
_.p.computeAriaLabel_=function(B){var R=_.FF(B.text);(B=B.accessibility&&B.accessibility.accessibilityData&&B.accessibility.accessibilityData.label)&&(R+=". "+B);return R};
_.p.computeItemSelected_=function(B){return B};
_.p.preventSelection_=function(B){B.stopPropagation();this.tooltipTapped=!0};
_.p.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.p.updateItemSelectedFromBinding=function(B){this.itemSelected_=B.detail.value};
_.p.save=function(){var B;this.validate()&&(B=this.data)!=null&&B.items&&(B=this.data.items[this.itemSelected_],B!=null&&B.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(B.optionSelectableItemRenderer.submitEndpoint)||_.VD(this.hostElement,[B.optionSelectableItemRenderer.submitEndpoint])))};
iu.prototype.onPaperRippleTransitionEnd_=iu.prototype.onPaperRippleTransitionEnd_;iu.prototype.dataChanged_=iu.prototype.dataChanged_;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],iu.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],iu.prototype,"data",void 0);_.r([_.E({value:-1}),_.Z("design:type",Number)],iu.prototype,"itemSelected_",void 0);
_.r([_.E({computed:"computeItemSelected_(itemSelected_)"}),_.Z("design:type",Number)],iu.prototype,"value",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],iu.prototype,"restoreFocusOnClose",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],iu.prototype,"tooltipTapped",void 0);_.r([_.E({value:-1}),_.Z("design:type",Number)],iu.prototype,"preselectedSubreason",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iu.prototype,"dataChanged_",null);_.r([_.R_("transitionend"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iu.prototype,"onPaperRippleTransitionEnd_",null);iu=_.r([_.fJ({is:"yt-options-renderer",disableElementRegistration:!0})],iu);
_.F(iu,"yt-options-renderer",function(){if(Bk4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;ol4===void 0&&(ol4=document.createElement("template"));var e=ol4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Bk4=B}B=Bk4;return B},{mode:2});var RC2;var VDz;var eC2;var XH4;var pHe;var Yhj;var sf=function(){return _.c.apply(this,arguments)||this};
_.l(sf,_.c);sf.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
sf.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
sf.prototype.onTap=function(B){if(this.hostElement.classList.contains("selected")||_.RF(this.hostElement,"yt-share-panel-can-select-contact-action"))B&&B.detail&&(B.detail.x||B.detail.y)&&_.w(this.hostElement).querySelector("#target").blur(),(B=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),B={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:B?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.oF(this.hostElement,"yt-share-panel-select-contact-action",[B])};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.r([_.E({observer:"onDataChanged"}),_.Z("design:type",Object)],sf.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Z("design:type",String)],sf.prototype,"componentTitle",void 0);_.r([_.Yp("#thumbnail"),_.Z("design:type",Object)],sf.prototype,"thumbnail",void 0);sf=_.r([_.fJ({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],sf);
_.F(sf,"yt-enrolled-contact-renderer",function(){if(Yhj===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;pHe===void 0&&(pHe=document.createElement("template"));var e=pHe;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Yhj=B}B=Yhj;return B},{mode:2});var hC4;var tDz;var Fr=function(){return _.c.apply(this,arguments)||this};
_.l(Fr,_.c);Fr.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Fr.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Fr.prototype.onTap=function(B){if(this.hostElement.classList.contains("selected")||_.RF(this.hostElement,"yt-share-panel-can-select-contact-action"))B&&B.detail&&(B.detail.x||B.detail.y)&&_.w(this.hostElement).querySelector("#target").blur(),(B=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),B={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:B?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.oF(this.hostElement,"yt-share-panel-select-contact-action",[B])};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.r([_.E({observer:"onDataChanged"}),_.Z("design:type",Object)],Fr.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Z("design:type",String)],Fr.prototype,"componentTitle",void 0);_.r([_.Yp("#thumbnail"),_.Z("design:type",Object)],Fr.prototype,"thumbnail",void 0);Fr=_.r([_.fJ({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Fr);
_.F(Fr,"yt-suggested-contact-renderer",function(){if(tDz===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;hC4===void 0&&(hC4=document.createElement("template"));var e=hC4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);tDz=B}B=tDz;return B},{mode:2});var rw=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-share-panel-reset-action":"onReset"};return B};
_.l(rw,_.c);rw.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"}}}}}};
rw.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.oF(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
rw.prototype.onReset=function(){for(var B=_.w(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),R=B.length-1;R>=0;R--)B[R].classList.toggle("selected")};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],rw.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({observer:"onDataChanged"}),_.Z("design:type",Object)],rw.prototype,"data",void 0);
rw=_.r([_.fJ({is:"yt-contact-section-renderer",disableElementRegistration:!0})],rw);
_.F(rw,"yt-contact-section-renderer",function(){if(XH4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;eC2===void 0&&(eC2=document.createElement("template"));var e=eC2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);XH4=B}B=XH4;return B},{mode:2});var gw=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return B};
_.l(gw,_.c);_.p=gw.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(B){var R;(B=_.D((R=_.D(B,_.wx2))==null?void 0:R.formRenderer,ufz))&&this.set("data",B)};
_.p.reset=function(){var B=_.w(this.hostElement).querySelector("#fields").children;B=_.h(B);for(var R=B.next();!R.done;R=B.next())R=R.value,R.reset&&R.reset()};
_.p.getForm=function(){var B={},R=_.w(this.hostElement).querySelector("#fields").children;R=_.h(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;if(!V.validate())return null;B[V.data.key]=V.value}return B};
_.p.submitFormFields=function(){if(this.fields)for(var B=_.h(this.fields),R=B.next();!R.done;R=B.next())R=R.value,R.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?R.save():R.nodeName==="YT-OPTIONS-RENDERER"&&R.save()};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],gw.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],gw.prototype,"data",void 0);_.r([_.hM("#fields > *"),_.Z("design:type",Array)],gw.prototype,"fields",void 0);
gw=_.r([_.fJ({is:"yt-form-renderer",disableElementRegistration:!0})],gw);
_.F(gw,"yt-form-renderer",function(){if(VDz===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;RC2===void 0&&(RC2=document.createElement("template"));var e=RC2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);VDz=B}B=VDz;return B},{mode:2});var WOz;var Z3=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return B};
_.l(Z3,_.c);Z3.prototype.onCheckboxChange=function(B){this.data&&(B=(this.checked=_.ii(B).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}})};
Z3.prototype.handleUpdateCheckboxCommand=function(B){(B=_.D(B,_.r_v))&&this.data&&this.data.id===B.id&&(this.set("data.disabled",B.disabled),this.set("data.title",B.title))};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Z3.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Z3.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],Z3.prototype,"checked",void 0);Z3=_.r([_.A({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Z3);
_.F(Z3,"ytd-settings-checkbox-renderer",function(){if(WOz!==void 0)return WOz;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return WOz=B},{mode:1});var bx6;var mF=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return B};
_.l(mF,_.c);mF.prototype.dataChanged=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return B.radio.removeAttribute("checked"),!B.data||!B.data.id||B.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.gb2()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(R=B.data&&B.data.id)?_.U(V,mIi(B.data.id),4):V.jumpTo(3):(B.set("data.hidden",!0),V.jumpTo(0));V.nextAddress!=3&&(R=V.yieldResult);R&&_.oF(B.hostElement,"yt-select-settings-radio-option",[B.data.id]);_.b3(V)})};
mF.prototype.onButtonChanged=function(B){_.ii(B).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.Oz().resolve(_.oC).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.oF(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
mF.prototype.onSelectOption=function(B){this.data&&this.data.id&&(this.data.id===B?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
mF.prototype.dataChanged=mF.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],mF.prototype,"ytActionHandlerBehavior",void 0);_.r([_.Yp("#radio"),_.Z("design:type",Object)],mF.prototype,"radio",void 0);_.r([_.E(),_.Z("design:type",Object)],mF.prototype,"data",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],mF.prototype,"dataChanged",null);mF=_.r([_.A({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],mF);
_.F(mF,"ytd-settings-radio-option-renderer",function(){if(bx6!==void 0)return bx6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return bx6=B},{mode:1});var JFo;var $L=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return B};
_.l($L,_.c);
$L.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"}}}};
$L.prototype.handleUpdateTextCommand=function(B){(B=_.D(B,_.gP_))&&this.data&&this.data.id===B.id&&this.set("data",B)};
$L.prototype.handleUpdateConnectedAppRendererCommand=function(B){if(_.D(B,_.$mS)&&this.data){var R,V;if(B=(R=_.D(B,_.$mS))==null?void 0:(V=R.newConnectedAppRenderer)==null?void 0:V.connectedAppRenderer)this.data=B}};
$L.prototype.computeConnectedAppStyle=function(B){return B.style?B.style.toLowerCase().replace(/_/g,"-"):""};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],$L.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$L.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Z("design:type",String)],$L.prototype,"connectedAppStyle",void 0);$L=_.r([_.A({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],$L);
_.F($L,"ytd-connected-app-renderer",function(){if(JFo!==void 0)return JFo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return JFo=B},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.aI("iuT5Oc");

_.wz();
}catch(e){_._DumpException(e)}
try{
_.aI("L3n37");
var yie=function(B){return B.watch.isLearningJourneyActive},Ske=_.kB(115994),Hzr=_.kB(115993),MsN=function(B,R,V){var e=this;
var X=V.dragDownAction;this.layer=0;this.JSC$20422_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return e.dragDownAction()}}}};
this.JSC$20422_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return e.dragDownAction()}}}};
this.fullscreen=!1;var Y=_.WK();_.hy(Y,Ske,this.layer);_.hy(Y,Hzr,this.layer);this.dragDownAction=function(){X();_.Es(Y,{visualElement:e.fullscreen?Ske:Hzr})};
this.gesture=new _.hx(B,R,this.JSC$20422_watchConfig,"pandown");this.attach()};
MsN.prototype.attach=function(){this.gesture.attach()};
MsN.prototype.detach=function(){this.gesture.detach()};
MsN.prototype.update=function(B){this.fullscreen=B;this.gesture.config=B?this.JSC$20422_watchFullScreenConfig:this.JSC$20422_watchConfig};var kVU=function(B){_.P4.call(this);var R=this;this.rootElement=B;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return R.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(V){R.initOrDisposeActiveModules(V)}));
this.onAttached()};
_.l(kVU,_.P4);_.p=kVU.prototype;_.p.getRoot=function(){return this.rootElement};
_.p.getElement=function(B){return this.rootElement.getElement(B)};
_.p.setPlayerResponse=function(B){this.playerResponse=B;this.publish("PLAYER_RESPONSE_UPDATED",B)};
_.p.getPlayerResponse=function(){return this.playerResponse};
_.p.setWatchNextResponse=function(B){this.watchNextResponse===B?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=B,this.publish("WATCH_NEXT_RESPONSE_UPDATED",B))};
_.p.getWatchNextResponse=function(){return this.watchNextResponse};
_.p.registerActionHandler=function(B,R){var V=this;if(_.k("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.Fo(_.sd.getInstance(),(e[B]=R,e),this.getRoot())}else this.actionHandlers.has(B)||(this.actionHandlers.set(B,[]),e={},_.Fo(_.sd.getInstance(),(e[B]=function(){var X=_.HB.apply(0,arguments);return(V.actionHandlers.get(B)||[]).map(function(Y){return Y.apply(null,_.MI(X))})},e),this.getRoot())),this.actionHandlers.get(B).push(R)};
_.p.unregisterActionHandler=function(B){if(_.k("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.rn(_.sd.getInstance(),(R[B]=!0,R),this.getRoot())}else(R=this.actionHandlers.get(B))?(R.pop(),R.length===0&&(R={},_.rn(_.sd.getInstance(),(R[B]=!0,R),this.getRoot()),this.actionHandlers.delete(B))):_.KE(new _.H8("Attempted to unregister an action handler which is not registered.",B))};
_.p.addPageDisposeJob=function(B){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.ZK(this.rootElement.pageDisposeJobs,B)};
_.p.removePageDisposeJob=function(B){this.rootElement.pageDisposeJobs&&_.uo(this.rootElement.pageDisposeJobs,B)};
_.p.dispatchEvent=function(B,R){_.OI(this.rootElement,B,R)};
_.p.provideRenderingData=function(B,R){this.rootElement.provideRenderingData(B,R)};
_.p.scrollWatchTo=function(B,R){var V;(V=this.watchScrollManager)==null||V.scrollWatchTo(B,R)};
_.p.focusOnPlayer=function(){var B=this.getElement("PLAYER");_.gB(B,function(){if(B&&B.firstElementChild){var R=B.querySelector(".html5-video-player");R&&(_.ZF(_.Oz().resolve(_.fD)),R.focus())}else _.KE(Error("km"))})};
_.p.updateCinematicFullscreenConfig=function(){var B=!!this.rootElement.theater,R=!!this.rootElement.fullscreen,V;(V=this.watchCinematicManager)==null||_.GS4(V,R,B)};
_.p.subscribeToActiveChanged=function(B,R){R=R===void 0?!0:R;var V=_.Ge(_.g6(),yie,function(e){B(e)});
R&&B(yie(_.g6().getState()));return V};
_.p.isActive=function(){return yie(_.g6().getState())};
_.p.onAttached=function(){var B=_.k("external_fullscreen");_.k("use_unified_flag_accessor")&&(B=_.Oz().resolve(_.C_7).retriever.getFlag(_.o0h));(B||_.KQ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.p.initPersistentModules=function(){if(_.k("kevlar_watch_flexy_theater_manager")){var B=new _.gNe(this);_.t4(this,B)}B=new _.TD7(this);_.t4(this,B);B=new _.wy(this);_.t4(this,B);B=new _.EU(this);_.t4(this,B);B=new _.eG4(this);_.t4(this,B);B=new _.xV(this);_.t4(this,B);_.k("kevlar_watch_flexy_playlist_manager")&&(B=new _.pYo(this),_.t4(this,B))};
_.p.initOrDisposeActiveModules=function(B){B?(this.watchScrollManager=new _.qQ(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.rPU(this)),this.activeModules.push(new _.$i4(this)),this.activeModules.push(new _.j2o(this)),this.activeModules.push(new _.Qw(this)),_.k("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.uui(this)),this.activeModules.push(new _.Pn7(this)),_.k("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.NuN(this)),
_.k("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.YEn(this)),_.k("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.JPz(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.k("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.oYz(this)),_.k("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.dvj(this)),B=_.k("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.k("kevlar_watch_flexy_comments_manager")&&!B&&this.activeModules.push(new _.Dvr(this)),_.k("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Tt(this)),this.activeModules.push(new _.OPm(this)),this.activeModules.push(new _.ZVr(this)),_.k("web_enable_timely_actions")&&this.activeModules.push(new _.Vxi(this)),_.k("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.zUU(this)),_.k("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.G16(this)),
_.k("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.RUr(this)),_.k("web_player_rtr_ctrls")&&this.activeModules.push(new _.dXz(this))):(_.PH(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.p.disposeInternal=function(){_.P4.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.mh.Object.defineProperties(kVU.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var DHe={},fTe=["learning-journey-engagement-panel","PAlearning_chat"];
DHe.YtdLearningJourneyWatchBehavior=[_.O.YtRendererBehavior,_.cu.YtPlayerListenerBehavior,_.mD.YtRendererstamperBehavior,_.$Z.YtActionHandlerBehavior,_.lr.YtPageBehavior,_.VR.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 _.KQ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.k("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 _.KQ("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 _.k("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.k("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 _.RC("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.RC("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!_.k("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.k("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 _.k("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("web_watch_rounded_player_large")||_.k("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 _.k("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.k("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("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 _.k("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.k("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 _.k("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.Ls(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Ls(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var B=this;this.watchController=void 0;this.pageDisposeJobs=[function(){B.showMetadataPlaceholder_()},
function(){_.k("web_watch_dont_clear_comments")||B.clearComments_()},
function(){B.clearPlayerAds_()},
function(){B.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;_.k("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.k("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.Pb2(function(){return _.CD(B)},this.hostElement);
this.pageDisposeJobs.push(function(){B.youThereManager_.reset()});
_.k("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){B.resetFullerscreenEduButtonForNewPlayback_()}));
_.k("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.YI;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;_.k("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.k("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));_.k("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Bc(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(B){B&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:B}),B.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(B){_.k("kevlar_watch_flexy_theater_manager")&&(this.theater=B,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.k("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(B){!_.k("kevlar_watch_while_v2")&&!_.k("web_watch_pip")||B||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(B){this.active!==void 0&&(this.fullscreen=B,_.k("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(B){this.active!==void 0&&(_.OI(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.k("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.k("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(B>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(B){this.initCsi_();this.updatePageData_(B)},
updatePageData_:function(B){var R=this;if(B)if(this.data===B){this.onPageLoadWithSameData_();var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data)}else this.data=B;this.playlist&&_.f0({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.zp("nw");this.loading=!1;_.kD(_.dV,function(){R.initDclkstatus_();var e,X=((e=R.player)==null?void 0:e.getVideoData().cpn)||"";_.EY7(function(Y,t){_.qBr(Y,t,X)})})},
onPageLoadWithSameData_:function(){_.k("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 B=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!B);this.set("loadingData.playlistLoading",B&&B!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),B=this.watchNextSkeletonEl_.firstElementChild;B;)B.classList.remove("hidden"),B=B.nextElementSibling;if(_.k("kevlar_watch_frame0_loading_state")){var R,V,e;B=(R=this.loadingData)==null?void 0:(V=R.endpoint)==null?void 0:(e=V.watchEndpoint)==null?void 0:e.videoId;var X;B&&(X="https://i.ytimg.com/vi/"+B+"/frame0.jpg");_.w(this.hostElement).querySelector("#player").style.backgroundImage=X?"url("+X+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var B=_.w(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&B&&(B.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var R,V;(V=(R=this.watchMetadata).updateSentimentBarWidth)==
null||V.call(R);var e,X;(X=(e=this.watchMetadata).resize)==null||X.call(e)}_.k("kevlar_watch_frame0_loading_state")&&(_.w(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(B){var R=_.w(this.hostElement).querySelector(B);R?_.np(R,!1):_.KE(new _.H8("Overscroll monitor not found for component: ",B))},
removeSplitScrollMouseTrap:function(B){var R=_.w(this.hostElement).querySelector(B);R?_.us(R):_.KE(new _.H8("Disposal component for  overscroll monitoring not found: ",B))},
onLoadingChanged_:function(B){B?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(B){var R=this;B?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.dV.addLowPriorityJob(function(){R.onWindowResized_(_.N1(!0))})},
updateTheaterModeState_:function(B){if(!_.k("kevlar_watch_flexy_theater_manager")){B=B||this.fullWindowMode_;if(this.theater!==void 0||B)this.theater=B;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();B&&_.mt4()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var B=this.theater;_.k("external_fullscreen")&&this.fullscreen&&(B=!0);B=B?_.w(this.hostElement).querySelector("#player-full-bleed-container"):_.w(this.hostElement).querySelector("#player-container-inner");var R=this.getPlayerContainer(),V=_.k("kevlar_watch_while_v2")||_.k("web_watch_pip");R.parentElement!==B&&(V&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.CD(this).appendTo(B,R),B.appendChild(_.w(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var B=this;return _.W(function(R){if(R.nextAddress==1)return _.U(R,_.Oz().resolve(_.An).deactivate(),2);B.updatePlayerLocation();_.b3(R)})},
updateCinematicsLocation:function(){var B=this.getElement("CINEMATICS");if(B){var R=this.getCinematicsLocationContainer();B.parentElement!==R&&R.appendChild(B);var V;(V=this.watchController)==null||V.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.w(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.w(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(B,R){var V=document.documentElement.hasAttribute("dark"),e=V&&_.k("web_cinematic_theater_mode"),X=V&&_.k("web_cinematic_fullscreen");V=!V&&this.cinematicLightTheme;return B&&e||R&&X||(R||B)&&V},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var B;(B=this.watchController)==null||B.setWatchNextResponse(this.data);_.k("kevlar_watch_flexy_comments_manager")||this.initComments_();_.k("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Oz().resolve(_.Ky).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.k("web_watch_start_chat_in_theater_mode")){var R,
V,e;if((R=this.data)==null?0:(V=R.contents)==null?0:(e=V.twoColumnWatchNextResults)==null?0:e.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var X,Y;((X=this.data)==null?0:(Y=X.contents)==null?0:Y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(B){var R;(R=this.watchController)==null||R.setPlayerResponse(this.playerData);B&&B.playabilityStatus&&(R=this.isVideoPlayable_(B.playabilityStatus,this.getPlayerOverlays_(this.data)),B=this.isLiveStreamOffline_(B.playabilityStatus),R&&!B||_.gB(this,function(){_.zp("pbu")}));
this.setPlayerAds_();_.Bz(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(B){_.g6().dispatch(_.or({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));B?this.activate_():this.deactivate_()},
attached:function(){var B=this;this.watchController=new kVU(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.k("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var R=_.CD(this);_.k("kevlar_disable_prepare_player")||R.preparePlayer();_.k("kevlar_watch_flexy_playlist_manager")||_.Oz().resolve(_.Ky).setPlayer(R);this.updatePageMediaQueries();R={"--ytd-watch-flexy-scrollbar-width":_.ww()+
"px"};!_.RC("kv_pl_mx_sz_ks")&&_.RC("kevlar_watch_max_player_width")&&(R["--ytd-watch-flexy-max-player-width-wide-screen"]=_.vHi+"px");_.RC("kevlar_watch_flexy_metadata_height")&&(R["--ytd-watch-flexy-space-below-player"]=_.Kdm+"px");this.safeUpdateStyles(R);_.k("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new MsN(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return B.onPlayerTouchPanDown_()}}));
_.k("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.w(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var B=_.ww(),R=_.QE+B,V=R;this.fixedPanels&&(R+=_.Ld4);var e=657+B;B=1327+B;_.w(this.hostElement).querySelector("#two-column-query").query="(min-width: "+R+"px)";_.w(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(e+"px), (min-height: 630px) and (min-width: ")+(R+"px) and (max-width: ")+(B+"px)");_.w(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(B+"px)");_.w(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+V+"px)"},
calculateCurrentPlayerSize_:function(){var B=_.w(this.hostElement).querySelector("#miniplayer-bar").firstChild;return B&&B.active||this.theater||_.k("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Yl(NaN,NaN):_.F_(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.F_(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Cx(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var B=this;this.onWindowResized_(_.N1());_.k("browse_skeleton_removal_on_watch_killswitch")||_.KQ("IS_SHELL_LOAD")&&_.i42();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var R=_.CD(this);R.addEventListener("yt-player-updated",_.Bc(this,this.onPlayerUpdated_));R.getPlayerPromise().then(function(V){B.playerApiReady_(V)});
_.k("kevlar_watch_flexy_playlist_manager")||(R=_.Oz().resolve(_.Ky),_.k("kevlar_watch_observe_playlist_navigations_killswitch")&&R.addEventListener("yt-navigate",_.Bc(this,this.onYtNavigate_)),R.setPlaylistComponent(_.w(this.hostElement).querySelector("#playlist")),R.addEventListener("yt-playlist-data-updated",_.Bc(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.dV.addLowPriorityJob(function(){_.OI(B.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.CD(this).removeEventListener("yt-player-updated",_.Bc(this,this.onPlayerUpdated_));if(!_.k("kevlar_watch_flexy_playlist_manager")){var B=_.Oz().resolve(_.Ky);_.k("kevlar_watch_observe_playlist_navigations_killswitch")&&B.removeEventListener("yt-navigate",_.Bc(this,this.onYtNavigate_));B.cancelVideoSkip();B.removeEventListener("yt-playlist-data-updated",_.Bc(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.k("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.OI(this.hostElement,"yt-autonav-pause-player",!1);B=_.Cp();_.k("kevlar_exit_fullscreen_leaving_watch")&&B&&_.PJ(B)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(B){this.player&&this.player.updateVideoData({rvs:B.rvs})},
getPageContents:function(B){return B&&B.contents&&B.contents.twoColumnWatchNextResults&&B.contents.twoColumnWatchNextResults.results&&B.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(B){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",B)},
onRetrieveLocation_:function(B,R){R.hasComments?R.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):R.locationRetrieved("/related_ajax",void 0);B.stopPropagation()},
onSubscriptionChanged_:function(B,R){this.player&&(R?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fP("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.w(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.w(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(B){this.player=B;this.setPlayerState(B.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.k("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.k("kevlar_unified_player")||_.k("kevlar_player_new_bootstrap_adoption"))&&_.uH()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(B,R){R=R===void 0?!0:R;_.Cp()&&_.k("external_fullscreen")&&_.PJ(document.documentElement);this.theaterRequested_=B;R&&_.Nn("wide",B?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.k("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.oF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.OI(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(B){_.Iq(B,typeof this.player),this.player&&_.Iq(B,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var B;((B=this.player)==null?0:B.isFullscreen())?this.player.toggleFullscreen():_.oF(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(B,R){return this.loading?R:!!Object.keys(B).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(B){if(B){B=_.h(B);for(var R=B.next();!R.done;R=B.next())R=R.value,R.youThereRenderer&&_.Omm(this.youThereManager_,R.youThereRenderer)}},
setPlaylistData_:function(B){return B||{}},
userEngagementConfigDataChanged_:function(B){if(B)if(B.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var R=this.youThereManager_;_.B5()<B.lowEngagementThresholdMs||_.VsN(R,!0)}else B.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.oF(this.hostElement,"yt-autonav-pause-user-engagement",[B])},
isPlayerUnavailable_:function(B,R,V){return!!B&&!this.isVideoPlayable_(B,V)&&!R},
getPlayerOverlays_:function(B){return(B==null?void 0:B.playerOverlays)||null},
isVideoPlayable_:function(B,R){if(!B)return!1;var V=B.status==="OK"||B.status==="LIVE_STREAM_OFFLINE",e=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",B)||this.get("errorScreen.ypcTrailerRenderer",B);B=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",B);var X;R=R==null?void 0:(X=R.playerOverlayRenderer)==null?void 0:X.gatedActionsOverlayRenderer;return!!V||!!e||!!B||!!R},
hasWatchNextResponseErrorRenderer:function(B){var R=this.getPageContents(B),V,e,X,Y,t;return!(B==null?0:(V=B.contents)==null?0:(e=V.twoColumnWatchNextResults)==null?0:e.secondaryResults)&&!!((X=R[0])==null?0:(Y=X.itemSectionRenderer)==null?0:(t=Y.contents[0])==null?0:t.backgroundPromoRenderer)},
isLiveStreamOffline_:function(B){return B?B.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(B,R,V){var e=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",R),X=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];X=_.k("web_no_skip_video_on_verification_checks")?(B==null?void 0:B.status)&&X.includes(B.status):B&&B.status==="AGE_CHECK_REQUIRED";var Y=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",B);Y==void 0&&(Y=!0);!V||this.isVideoPlayable_(B,this.getPlayerOverlays_(R))||
e||X||!Y||_.Oz().resolve(_.Ky).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.s24()},
onPlayerFeedbackStartRequest_:function(B){_.oF(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:B}])},
onPlayerFeedbackArticleRequest_:function(B){_.oF(this.hostElement,"yt-help-dialog-requested",[B])},
onPlayerYpcContentRequest_:function(){var B,R,V,e,X,Y,t,b,J=((B=this.data)==null?NaN:(R=B.contents)==null?NaN:(V=R.twoColumnWatchNextResults)==null?NaN:(e=V.secondaryResults)==null?NaN:(X=e.secondaryResults)==null?NaN:(Y=X.offerModule)==null?NaN:(t=Y.tvfilmOfferModuleRenderer)==null?NaN:(b=t.actionButtons)==null?NaN:b.length)-1;B=[".offerButton.buttonRenderer.",".actionButtons."+(J>=0?J:0)+".buttonRenderer."];R=_.h(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(V=R.next();!V.done;V=R.next())for(V=V.value,e=_.h(B),X=e.next();!X.done;X=e.next())if(X="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+V+X.value,X=this.get(X+"navigationEndpoint",this.data)||this.get(X+"serviceEndpoint",this.data)||this.get(X+"command",this.data)){_.Xc(X,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(B){_.OI(this.hostElement,"yt-autonav-pause-player",B)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(B){B()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(B){switch(B){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(B){switch(B){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.OI(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(B)},
setPlayerState:function(B){_.g6().dispatch(_.AQh(B))},
onPlayerSubscribe_:function(B){_.oF(this.hostElement,"yt-player-subscribe",[B])},
onPlayerUnsubscribe_:function(B){_.oF(this.hostElement,"yt-player-unsubscribe",[B])},
onPlayerAdYtShowToast_:function(B){_.oF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:B.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(B){if(B)return B},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(B){return!_.k("web_watch_move_summary_to_sd")&&!!B},
computeWatchMetadataRefresh:function(){return _.k("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var B,R,V,e;this.watchNextSecondaryResults=(B=this.data)==null?void 0:(R=B.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(e=V.secondaryResults)==null?void 0:e.secondaryResults}},
setRichGridRendererData:function(B){this.richGridRendererData=B},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var B,R=(B=this.data)==null?void 0:B.engagementPanels;if(R==null?0:R.length){B=null;R=_.h(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;var e=void 0;if(((e=V.engagementPanelSectionListRenderer)==null?void 0:e.targetId)==="engagement-panel-structured-description"){B=V;break}}var X,Y,t;B=(X=B)==null?void 0:(Y=X.engagementPanelSectionListRenderer)==null?void 0:(t=Y.content)==null?void 0:t.structuredDescriptionContentRenderer;if(B==null?0:B.items){X=
[];Y=_.h(B.items);for(t=Y.next();!t.done;t=Y.next()){t=t.value;if(!_.k("sd_horizontal_list_show_nav_killswitch")){var b=e=V=R=B=void 0,J=void 0,G=(B=t.horizontalCardListRenderer)==null?void 0:(R=B.header)==null?void 0:(V=R.richListHeaderRenderer)==null?void 0:(e=V.navigationButton)==null?void 0:(b=e.buttonRenderer)==null?void 0:(J=b.command)==null?void 0:J.commandExecutorCommand;G&&G.commands&&(G.commands=G.commands.filter(function(y){return!_.D(y,_.$hU)}))}t.expandableVideoDescriptionBodyRenderer||
t.videoDescriptionHeaderRenderer||X.push(t)}return{items:X}}}},
constructWarning_:function(B){return{text:_.s$(B),type:"WARNING"}},
isPlaShelfEnabled_:function(B){if((this.get("adPlacements",B)||[]).length)return!0;B=this.get("playerAds",B)||[];return!(!B.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",B[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var B=this;_.OI(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.k("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var R=this.getScrollTop()>0;this.gestures_&&(R?this.gestures_.detach():this.gestures_.attach());R!==this.showFullerscreenEdu_&&_.k("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=R,_.CD(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonVisibility(B.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.OI(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var B=this;this.commentsReady=!1;_.dV.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.kD(_.dV,function(){B.setComments_()},1E3)},
setComments_:function(){if(!_.k("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.zp("cmi");_.dV.cancelJob(this.setCommentsJobId_);var B=this.getPageContents(this.data);if(B&&B.length){B=_.h(B);for(var R=B.next();!R.done;R=B.next())if(R=R.value,this.get("itemSectionRenderer.sectionIdentifier",R)==="comment-item-section"){this.comments=R.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.OI(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.k("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.k("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.zp("cmc")},
doRemoveComments_:function(){this.comments={};_.k("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.dV.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.dV.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(B,R){var V=_.D(R.endpoint,_.sI);V&&(!(R=this.get("data.currentVideoEndpoint.watchEndpoint"))||V.videoId!==R.videoId||V.playlistId&&V.playlistId!==R.playlistId||V.index!==void 0&&V.index!==R.index||typeof V.startTimeSeconds!=="number"||(B.stopPropagation(),this.setScrollTop(0),_.CD(this).getPlayerPromise().then(function(e){var X=V.startTimeSeconds;e.seekTo(X);e.wakeUpControls();X<e.getDuration()&&e.playVideo()})))},
updatePlayerStartTime_:function(){var B=_.zGo();"t"in B&&(B=_.ime(B.t),this.player.seekTo(B,!0))},
updateTitleFromWatchNext:function(B){B=this.getPageContents(B);var R,V;(B=_.FF(B==null?void 0:(R=B[0])==null?void 0:(V=R.videoPrimaryInfoRenderer)==null?void 0:V.title))&&_.OI(this.hostElement,"yt-update-title",B)},
updateTitle_:function(B){B=this.get("videoDetails.title",B)||"";_.OI(this.hostElement,"yt-update-title",B)},
syncWithRemoteVideo_:function(B,R,V){if(this.active&&this.player){var e=this.player.getVideoData();if(e.video_id===V&&(V=e.list,_.k("polymer_enable_mdx_queue")&&V&&V.startsWith("RQ")&&(V=void 0),e.video_id!==B||V!=R)){var X;_.k("kevlar_player_watch_endpoint_navigation")?X=_.PLx(_.Q2r(B,R)):X=this.buildWatchEndpoint_(B,R);_.OI(this.hostElement,"yt-navigate",{endpoint:X,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(B,R,V){return _.Pz(B,R,V)},
initDclkstatus_:function(){_.Aam()},
attachWatchPageSkeleton_:function(){var B=document.querySelector("#watch-page-skeleton");if(B){var R=B.querySelector("#primary-info"),V=B.querySelector("#secondary-info"),e=B.querySelector("#related");R&&_.w(this.hostElement).querySelector("#info-skeleton").appendChild(R);V&&_.w(this.hostElement).querySelector("#meta-skeleton").appendChild(V);e&&(_.w(this.hostElement).querySelector("#related-skeleton").appendChild(e),this.watchNextSkeletonEl_=e);_.UJ(B)}},
handlePlayerUpdated_:function(){_.CD(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(B,R){if(this.watchNextSkeletonEl_&&typeof R!=="undefined"){var V=this.watchNextSkeletonEl_.children,e=B&&B.indexSplices.length?B.indexSplices[0].index:0;B=Math.min(this.watchNextShownItems.length,V.length);R||(e=0,B=V.length);for(R=e;R<B;R++)V[R].classList.add("hidden")}},
onPlayerFullscreenChange_:function(B){_.k("external_fullscreen")||_.oF(this.hostElement,"yt-player-fullscreen",[B.fullscreen])},
onFullscreenChange_:function(B){this.fullscreen=B;this.gestures_&&this.gestures_.update(this.fullscreen);var R=_.CD(this);R.getPlayerPromise().then(function(V){V.setFauxFullscreen(!!_.Cp())});
this.updateFullBleedElementLocations();B&&(R.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(B,R){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!R},
computeIsDonationShelfCollapsed_:function(B){return B},
computeShouldShowMerchShelf:function(B,R){return R&&!!B},
computeResponseHasComments:function(B){var R,V,e,X,Y;return!!(B==null?0:(R=B.contents)==null?0:(V=R.twoColumnWatchNextResults)==null?0:(e=V.results)==null?0:(X=e.results)==null?0:(Y=X.contents)==null?0:Y.some(function(t){var b;return(t==null?void 0:(b=t.itemSectionRenderer)==null?void 0:b.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(B,R){this.responseHasComments=this.computeResponseHasComments(this.data);return!!B&&!!Object.keys(B).length&&!R},
identity:_.sS,onWindowResized_:function(B){this.windowSize_=B;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.k("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.k("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(B){var R=this;B&&B.type!=="dataloaded"&&B.type!=="dataupdated"||_.CD(this).getPlayerPromise().then(function(V){var e=V.getPlayerState();e!==5&&e!==0&&(V=1/V.getVideoAspectRatio(),R.videoHeightToWidthRatio_!==V&&(R.videoHeightToWidthRatio_=V))})},
schedulePlayerSizeUpdate_:function(B){var R=this,V=_.k("kevlar_watch_while_v2")||_.k("web_watch_pip"),e=function(){if(R.watchMetadata){var X,Y;(Y=(X=R.watchMetadata).resize)==null||Y.call(X)}_.CD(R).getPlayerPromise().then(function(t){if(_.k("kevlar_set_internal_player_size")){if(!V||!R.isMiniplayerActive()){var b=R.calculateCurrentPlayerSize_();t.setInternalSize(b.width,b.height)}}else t.setSize(NaN,NaN);_.k("kevlar_watch_while")&&R.updateWatchWhileScrollThreshold_()})};
B?e():_.db(_.dV,e)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(B){this.set("data.survey",B.detail)},
onYtShowSurveyCommand_:function(B){this.set("data.survey",_.D(B,_.Cbe).survey)},
onDownloadedVideoDeleted:function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1){if(!R.active||(V=R.playerData)==null||!V.offlineState||R.videoId!==B)return X.return();(e=R.player)==null||e.stopVideo();_.Up().navigatingAwayFromWatchDeletedVideo=!0;_.Xc(_.QXI,R.hostElement);return _.U(X,_.Up().navigationFinishPromise,2)}_.Up().navigatingAwayFromWatchDeletedVideo=!1;_.b3(X)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var B;this.theater?B=_.IH(.5625*this.windowSize_.width,480,this.windowSize_.height-185):B=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==B&&(this.watchWhileScrollThreshold_=B,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var B=_.w(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&B){var R=this.windowSize_.height>=624,V=this.active?this.getScrollTop():0;!B.active&&R&&V>=this.watchWhileScrollThreshold_?(B.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):B.active&&(!R||V<this.watchWhileScrollThreshold_&&!_.Cp())&&(B.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(B,R){if(B!==!0||R!==void 0){B=!_.k("live_chat_over_engagement_panels");R=_.w(this.hostElement).querySelector("#chat-container");var V=_.w(this.hostElement).querySelector("#plj-sidebar"),e=_.w(this.hostElement).querySelector("#panels"),X=_.w(this.hostElement).querySelector("#plj-panels"),Y=_.w(this.hostElement).querySelector("#plj-playlist"),t=_.w(this.hostElement).querySelector("#alerts"),b=_.w(this.hostElement).querySelector("#playlist"),J=_.w(this.hostElement).querySelector("#related"),
G=_.w(this.hostElement).querySelector("#donation-shelf"),y=_.w(this.hostElement).querySelector("#comments");this.isTwoColumns_?(t=_.w(this.hostElement).querySelector("#secondary-inner"),t.appendChild(V),V.appendChild(Y),Y.appendChild(b),V.appendChild(X),B&&t.appendChild(e),_.k("web_watch_theater_chat")||t.appendChild(R),B||t.appendChild(e),t.appendChild(G),t.appendChild(J)):(B&&_.Tw(e,t),_.Tw(b,t),_.k("web_watch_theater_chat")||_.Tw(R,t),B||_.Tw(e,t),_.Tw(G,t),y&&(X&&_.Tw(X,y),_.Tw(J,y)));_.k("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.k("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.k("web_watch_theater_chat")){var B=_.w(this.hostElement).querySelector("#chat-container"),R=this.theater&&!this.fullscreen||_.k("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&R?_.k("web_watch_theater_chat_beside_player")?(R=_.w(this.hostElement).querySelector("#panels-full-bleed-container"),(B==null?void 0:B.parentElement)!==R&&R.append(B),this.panelsBesidePlayer=!0):_.k("web_watch_theater_fixed_chat")&&
(R=_.w(this.hostElement).querySelector("#columns"),(B==null?void 0:B.parentElement)!==R&&R.append(B),this.fixedPanels=!0):(_.k("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.k("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),R=_.w(this.hostElement).querySelector("#playlist"),B&&R?_.xP(B,R):_.KE(new _.H8("Missing element when updating chat location",{"chatContainer defined":!!B,"playlist defined":!!R})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(B,R){return _.k("sw_metadata_vis_toggle_ks")?!0:!!B||!!R},
computeForceDarkPanelTheme:function(B){return _.k("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&B:!1},
safeUpdateStyles:function(B){try{_.o_(this.hostElement,B)}catch(R){_.KE(R)}},
videoHeightToWidthRatioChanged_:function(B,R){R&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.k("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(B){this.videoHeightToWidthRatio_=1/B},
computeIsVerticalVideo_:function(B){return B>=1},
computeIsFourThreeToSixteenNineVideo_:function(B){return B<=.7501&&B>=.5624},
computeIsExtraWideVideo_:function(B){return B<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.CD(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.CD(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ej4(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(B){var R=_.tp(B)||0;_.hp(B,R+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var B=_.tp("yt-fullerscreen-edu-button-click-count")||0,R=_.tp("yt-fullerscreen-edu-button-shown-count")||0,V=_.RC("external_fullscreen_button_shown_threshold"),e=B>=_.RC("external_fullscreen_button_click_threshold")||R>=V;_.CD(this).getPlayerPromise().then(function(X){X.updateFullerscreenEduButtonSubtleModeState(e)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(B,R){return R},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Oz().resolve(_.Ky).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var B=this;this.panelMaxHeightUpdateJob_&&_.dV.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.dV.addLowPriorityJob(function(){B.panelMaxHeightUpdateJob_=0;var R;!B.isTwoColumns_||B.theater||B.fullscreen?R=460:R=B.calculateNormalPlayerSize_().height;var V=R+"px";_.k("live_chat_taller_height")&&!B.theater&&(V="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.k("live_chat_medium_height")&&
!B.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.k("live_chat_scaled_height")&&!B.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 238px)");B.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":R+"px","--ytd-watch-flexy-chat-max-height":V,"--ytd-watch-flexy-structured-description-max-height":R+"px","--ytd-watch-flexy-comments-panel-max-height":R+"px","--ytd-comments-engagement-panel-content-height":R+"px"})})},
onYtShowEngagementPanelScrimAction_:function(B){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",B)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.eO(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(B){var R=_.w(this.hostElement).querySelector("#engagement-panel-scrim");B?R.addEventListener("tap",_.Bc(this,this.onEngagementPanelScrimClick_)):R.removeEventListener("tap",_.Bc(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(B){if(this.hostElement.contains(B)&&!this.scrollToAnimation_.isAnimating()){var R=B.offsetTop-24;B=B.offsetTop+B.offsetHeight+24;var V=this.getPageScrollingElement(),e=this.getScrollTop(),X=e+V.clientHeight-56;if(R<e+56)R-=56;else if(B>X)R=B-V.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,R),500)}},
onYtSignalActionScrollToComments:function(){var B=this.hostElement.querySelector("#comments");if(B&&!this.scrollToAnimation_.isAnimating()){B=B.offsetTop-56-24;if(_.k("kevlar_comment_teaser_scroll_to_midpoint")&&(B-=_.hF().height/3,B<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,B),500)}},
onYtEngagementPanelVisibleChanged:function(B,R,V){this.active&&this.trackEngagementPanelVisibility&&!_.mA6.includes(V)&&(R==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(V),R!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&R!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(V),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(B){return B?"":"watch-active-metadata"},
computeNewMetadataClass:function(B){return B?"watch-active-metadata":""},
computeFullBleedPlayer:function(B,R){return B||R},
computeDefaultLayout:function(B){return!B},
computeDefaultTwoColumnLayout:function(B,R){return!B&&R},
computeWatchWhilePanelsActive:function(B,R){return B||R},
computeNoBorderOnChat:function(B){return _.k("web_watch_theater_chat_no_border")&&B},
computeLiveChatPresentAndExpanded:function(B,R){return B&&!R},
computePanelExpanded:function(B,R,V){return B||R||V},
onChangeMarkersVisibility:function(B){_.CD(this).getPlayerPromise().then(function(R){var V;(V=R.changeMarkerVisibility)==null||V.call(R,_.D(B,_.ry).isVisible||!1,_.D(B,_.ry).entityKeys||[],_.D(B,_.ry).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(B){this.liveChatCollapsed=B.detail;_.g6().dispatch(_.ZmU(B.detail))},
provideRenderingData:function(B,R){switch(B){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=R;break;case "PRIMARY_INFO":_.k("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=R);this.videoPrimaryInfoRendererValue=R==null?void 0:R.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.k("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=R);this.videoSecondaryInfoRendererValue=R==null?void 0:R.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
R;break;case "CLARIFICATION":this.clarifyBoxValue=R;break;case "LIVE_CHAT":this.conversationBar=R;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=R;break;case "PLAYLIST":this.externalPlaylistData_=R!=null?R:{};break;case "MERCH_SHELF":this.merchShelfValue=R==null?void 0:R.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=R;break;case "OFFER_MODULE":this.offerModule=R;break;case "LIMITED_STATE":this.limitedStateValue=R;break;case "DONATION_SHELF":this.donation=R;break;
case "ALERTS":this.alertsValue=R;break;case "COMMENTS":this.comments=R;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=R;break;case "ENGAGEMENT_PANELS":this.engagementPanels=R;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=R;break;case "RICH_GRID_RENDERER":this.richGridRendererData=R;break;case "EXPANDABLE_METADATA":this.expandableMetadata=R;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=R}},
toggleCinematicsActive:function(B){this.cinematicsActive=B},
isMiniplayerActive:function(){return _.Oz().resolve(_.An).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(B){return fTe.map(function(R){return B.find(function(V){var e;return(V==null?void 0:(e=V.engagementPanelSectionListRenderer)==null?void 0:e.targetId)===R})}).filter(function(R){return R!==void 0})},
getNonLearningJourneyEngagementPanels:function(B){return B.filter(function(R){var V;return!fTe.includes((R==null?void 0:(V=R.engagementPanelSectionListRenderer)==null?void 0:V.targetId)||"")})}}];var lTn;var OU=function(){var B=_.c.apply(this,arguments)||this;B.flexy=!0;B.learningJourney=!0;B.roundedInfoPanel=!0;B.viewTransitionEnabled=_.k("enable_player_resize_transition");B.smallerChatMinHeight=_.k("live_chat_smaller_min_height");B.cinematicTheaterMode=_.k("web_cinematic_theater_mode");B.transparentTheaterMode=_.k("web_transparent_theater_mode");B.cinematicFullscreen=_.k("web_cinematic_fullscreen");B.useLargerMaxPlayerValue=_.k("kevlar_flexy_use_larger_player_value");B.cinematicFullscreenV2=_.k("web_cinematic_fullscreen_v2");
B.isDarkTheme=document.documentElement.hasAttribute("dark");B.theaterLargerPlayer=_.k("web_watch_theater_larger_player");B.defaultCollapsePlaylist=_.k("web_watch_default_collapse_playlist");return B};
_.l(OU,_.c);_.p=OU.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 B=this,R=function(){B.onColumnScroll()};
this.primary.addEventListener("scroll",R);this.secondary.addEventListener("scroll",R)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(B){_.k("web_watch_update_narrow_width_killswitch")||_.g6().dispatch(_.sye(!B.detail.value));this.ytdWatchBehavior.isTwoColumns_=B.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(B){this.ytdWatchBehavior.flexySmallWindow_=B.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(B){this.ytdWatchBehavior.flexyLargeWindow_=B.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(B){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=B.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(B){this.ytdWatchBehavior.watchNextCanShowMore=B.detail.value};
_.p.updateShownItemsFromBinding=function(B){B.detail.path?this.set(B.detail.path,B.detail.value):this.ytdWatchBehavior.watchNextShownItems=B.detail.value};
_.p.getElement=function(B){switch(B){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20431_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20431_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.mh.Object.defineProperties(OU.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.pageVisualEffects)return!1;for(var R=0;R<this.data.pageVisualEffects.length;R++)if(B=_.D(this.data.pageVisualEffects[R],_.MX))return R=void 0,(R=B.config)==null?void 0:R.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.learningJourneyEngagementPanels)==null?void 0:B.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){window.history.back()}}}}});
_.mh.Object.defineProperties(OU,{template:{configurable:!0,enumerable:!0,get:function(){if(lTn===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" 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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);lTn=B}B=lTn;return B}}});
OU.prototype.updateMiniplayerIsActiveValue=OU.prototype.updateMiniplayerIsActiveValue;OU.prototype.updateScrollTopValue=OU.prototype.updateScrollTopValue;OU.prototype.updateFullscreenValue=OU.prototype.updateFullscreenValue;OU.prototype.updateTheaterValue=OU.prototype.updateTheaterValue;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],OU.prototype,"ytComponentBehavior",void 0);
_.r([_.v(DHe.YtdLearningJourneyWatchBehavior),_.Z("design:type",Object)],OU.prototype,"ytdWatchBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],OU.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],OU.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],OU.prototype,"playerData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"flexy",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"learningJourney",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"roundedInfoPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"viewTransitionEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"smallerChatMinHeight",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"cinematicTheaterMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"transparentTheaterMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"cinematicFullscreen",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"useLargerMaxPlayerValue",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"cinematicFullscreenV2",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"isDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],OU.prototype,"theaterLargerPlayer",void 0);_.r([_.E(),_.Z("design:type",Object)],OU.prototype,"defaultCollapsePlaylist",void 0);_.r([_.E({selector:_.as}),_.Z("design:type",Object)],OU.prototype,"theaterValue",void 0);
_.r([_.E({selector:_.zW}),_.Z("design:type",Object)],OU.prototype,"fullscreenValue",void 0);_.r([_.E({selector:_.a2}),_.Z("design:type",Object)],OU.prototype,"scrollTopValue",void 0);_.r([_.E({selector:_.d6}),_.Z("design:type",Object)],OU.prototype,"miniplayerIsActiveValue",void 0);_.r([_.Yp("#ytd-plj-player"),_.Z("design:type",HTMLElement)],OU.prototype,"ytdPlayer",void 0);_.r([_.Yp("#playlist"),_.Z("design:type",HTMLElement)],OU.prototype,"JSC$20431_ytdPlaylistPanelRenderer",void 0);
_.r([_.C4("ytd-comments"),_.Z("design:type",HTMLElement)],OU.prototype,"ytdComments",void 0);_.r([_.Yp("#primary"),_.Z("design:type",HTMLElement)],OU.prototype,"primary",void 0);_.r([_.Yp("#secondary"),_.Z("design:type",HTMLElement)],OU.prototype,"secondary",void 0);_.r([_.Yp("#player-container"),_.Z("design:type",HTMLElement)],OU.prototype,"playerContainer",void 0);_.r([_.Yp("#cinematics"),_.Z("design:type",HTMLElement)],OU.prototype,"JSC$20431_cinematics",void 0);
_.r([_.XX("theaterValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OU.prototype,"updateTheaterValue",null);_.r([_.XX("fullscreenValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OU.prototype,"updateFullscreenValue",null);_.r([_.XX("scrollTopValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OU.prototype,"updateScrollTopValue",null);
_.r([_.XX("miniplayerIsActiveValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OU.prototype,"updateMiniplayerIsActiveValue",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OU.prototype,"cinematicLightTheme",null);_.r([_.E({reflectToAttribute:!0}),_.K("learningJourneyEngagementPanels"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OU.prototype,"hasLearningJourneyPanels",null);
OU=_.r([_.A({is:"ytd-watch-learning-journey"})],OU);_.Db.registerService(_.GSS,OU);
_.wz();
}catch(e){_._DumpException(e)}
try{
_.aI("Tm0L3c");
var Jio;var jgU;var UHz=function(){return _.c.apply(this,arguments)||this};
_.l(UHz,_.c);UHz=_.r([_.A({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],UHz);
_.F(UHz,"ytd-ghost-comments-renderer",function(){if(jgU===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);jgU=B}B=jgU;return B},{mode:1});var NCe;var GVj=function(){return _.c.apply(this,arguments)||this};
_.l(GVj,_.c);GVj=_.r([_.A({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],GVj);
_.F(GVj,"ytd-ghost-watch-metadata-renderer",function(){if(NCe===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);NCe=B}B=NCe;return B},{mode:1});var uQ=function(){var B=_.c.apply(this,arguments)||this;B.ghostGridRenderer={rows:6};B.roundedInfoPanel=!0;B.hideOfferModules=!0;B.smallerChatMinHeight=_.k("live_chat_smaller_min_height");B.cinematicTheaterMode=_.k("web_cinematic_theater_mode");B.transparentTheaterMode=_.k("web_transparent_theater_mode");B.darkerPanels=_.k("web_watch_darker_panels");B.cinematicFullscreen=_.k("web_cinematic_fullscreen");B.cinematicFullscreenV2=_.k("web_cinematic_fullscreen_v2");B.isDarkTheme=document.documentElement.hasAttribute("dark");
return B};
_.l(uQ,_.c);_.p=uQ.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 B=this,R=function(){B.onColumnScroll()};
this.primary.addEventListener("scroll",R);this.secondary.addEventListener("scroll",R)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(B){this.ytdWatchBehavior.isTwoColumns_=B.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(B){this.ytdWatchBehavior.flexySmallWindow_=B.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(B){this.ytdWatchBehavior.flexyLargeWindow_=B.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(B){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=B.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(B){this.ytdWatchBehavior.watchNextCanShowMore=B.detail.value};
_.p.updateShownItemsFromBinding=function(B){_.k("swatcheroo_direct_use_rich_grid")||(B.detail.path?this.set(B.detail.path,B.detail.value):this.ytdWatchBehavior.watchNextShownItems=B.detail.value)};
_.p.getElement=function(B){switch(B){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20419_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20419_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.mh.Object.defineProperties(uQ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.pageVisualEffects)return!1;for(var R=0;R<this.data.pageVisualEffects.length;R++)if(B=_.D(this.data.pageVisualEffects[R],_.MX))return R=void 0,(R=B.config)==null?void 0:R.enableInLightTheme;return!1}}});
uQ.prototype.updateMiniplayerIsActiveValue=uQ.prototype.updateMiniplayerIsActiveValue;uQ.prototype.updateScrollTopValue=uQ.prototype.updateScrollTopValue;uQ.prototype.updateFullscreenValue=uQ.prototype.updateFullscreenValue;uQ.prototype.updateTheaterValue=uQ.prototype.updateTheaterValue;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],uQ.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.WQ7.YtdWatchBehavior),_.Z("design:type",Object)],uQ.prototype,"ytdWatchBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],uQ.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],uQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],uQ.prototype,"ghostGridRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],uQ.prototype,"playerData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uQ.prototype,"roundedInfoPanel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uQ.prototype,"hideOfferModules",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uQ.prototype,"smallerChatMinHeight",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uQ.prototype,"cinematicTheaterMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uQ.prototype,"transparentTheaterMode",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uQ.prototype,"darkerPanels",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uQ.prototype,"cinematicFullscreen",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uQ.prototype,"cinematicFullscreenV2",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uQ.prototype,"isDarkTheme",void 0);_.r([_.E({selector:_.as}),_.Z("design:type",Object)],uQ.prototype,"theaterValue",void 0);
_.r([_.E({selector:_.zW}),_.Z("design:type",Object)],uQ.prototype,"fullscreenValue",void 0);_.r([_.E({selector:_.a2}),_.Z("design:type",Object)],uQ.prototype,"scrollTopValue",void 0);_.r([_.E({selector:_.d6}),_.Z("design:type",Object)],uQ.prototype,"miniplayerIsActiveValue",void 0);_.r([_.Yp("#ytd-player"),_.Z("design:type",HTMLElement)],uQ.prototype,"ytdPlayer",void 0);_.r([_.Yp("#playlist"),_.Z("design:type",HTMLElement)],uQ.prototype,"JSC$20419_ytdPlaylistPanelRenderer",void 0);
_.r([_.Yp("#ytd-comments"),_.Z("design:type",HTMLElement)],uQ.prototype,"ytdComments",void 0);_.r([_.Yp("#primary"),_.Z("design:type",HTMLElement)],uQ.prototype,"primary",void 0);_.r([_.Yp("#secondary"),_.Z("design:type",HTMLElement)],uQ.prototype,"secondary",void 0);_.r([_.Yp("#player-container"),_.Z("design:type",HTMLElement)],uQ.prototype,"playerContainer",void 0);_.r([_.Yp("#cinematics"),_.Z("design:type",HTMLElement)],uQ.prototype,"JSC$20419_cinematics",void 0);
_.r([_.XX("theaterValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uQ.prototype,"updateTheaterValue",null);_.r([_.XX("fullscreenValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uQ.prototype,"updateFullscreenValue",null);_.r([_.XX("scrollTopValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uQ.prototype,"updateScrollTopValue",null);
_.r([_.XX("miniplayerIsActiveValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uQ.prototype,"updateMiniplayerIsActiveValue",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uQ.prototype,"cinematicLightTheme",null);
_.F(uQ,"ytd-watch-grid",function(){if(Jio===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);Jio=B}B=Jio;return B},{mode:2});_.Db.registerService(_.NDI,uQ);
_.wz();
}catch(e){_._DumpException(e)}
try{
_.aI("CF909");
var bze;var nK=function(){var B=_.c.apply(this,arguments)||this;B.flexy=!0;B.roundedInfoPanel=!0;B.viewTransitionEnabled=_.k("enable_player_resize_transition");B.smallerChatMinHeight=_.k("live_chat_smaller_min_height");B.cinematicTheaterMode=_.k("web_cinematic_theater_mode");B.transparentTheaterMode=_.k("web_transparent_theater_mode");B.cinematicFullscreen=_.k("web_cinematic_fullscreen");B.useLargerMaxPlayerValue=_.k("kevlar_flexy_use_larger_player_value");B.cinematicFullscreenV2=_.k("web_cinematic_fullscreen_v2");
B.isDarkTheme=document.documentElement.hasAttribute("dark");B.defaultCollapsePlaylist=_.k("web_watch_default_collapse_playlist");B.retroModeReduxValue=!1;return B};
_.l(nK,_.c);_.p=nK.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(){_.k("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.p.ready=function(){var B=this,R=function(){B.onColumnScroll()};
this.primary.addEventListener("scroll",R);this.secondary.addEventListener("scroll",R)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(B){_.k("web_watch_update_narrow_width_killswitch")||_.g6().dispatch(_.sye(!B.detail.value));this.ytdWatchBehavior.isTwoColumns_=B.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(B){this.ytdWatchBehavior.flexySmallWindow_=B.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(B){this.ytdWatchBehavior.flexyLargeWindow_=B.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(B){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=B.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(B){this.ytdWatchBehavior.watchNextCanShowMore=B.detail.value};
_.p.updateShownItemsFromBinding=function(B){B.detail.path?this.set(B.detail.path,B.detail.value):this.ytdWatchBehavior.watchNextShownItems=B.detail.value};
_.p.getElement=function(B){switch(B){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20414_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20414_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.mh.Object.defineProperties(nK.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.pageVisualEffects)return!1;for(var R=0;R<this.data.pageVisualEffects.length;R++)if(B=_.D(this.data.pageVisualEffects[R],_.MX))return R=void 0,(R=B.config)==null?void 0:R.enableInLightTheme;return!1}}});
_.mh.Object.defineProperties(nK,{template:{configurable:!0,enumerable:!0,get:function(){if(bze===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);bze=B}B=bze;return B}}});
nK.prototype.updateRetroModeReduxValue=nK.prototype.updateRetroModeReduxValue;nK.prototype.updateScrollTopValue=nK.prototype.updateScrollTopValue;nK.prototype.updateFullscreenValue=nK.prototype.updateFullscreenValue;nK.prototype.updateTheaterValue=nK.prototype.updateTheaterValue;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],nK.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.WQ7.YtdWatchBehavior),_.Z("design:type",Object)],nK.prototype,"ytdWatchBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],nK.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],nK.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],nK.prototype,"playerData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"flexy",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"roundedInfoPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"viewTransitionEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"smallerChatMinHeight",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"cinematicTheaterMode",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"transparentTheaterMode",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"cinematicFullscreen",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"useLargerMaxPlayerValue",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"cinematicFullscreenV2",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"isDarkTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],nK.prototype,"defaultCollapsePlaylist",void 0);_.r([_.E({selector:_.as}),_.Z("design:type",Object)],nK.prototype,"theaterValue",void 0);_.r([_.E({selector:_.zW}),_.Z("design:type",Object)],nK.prototype,"fullscreenValue",void 0);_.r([_.E({selector:_.a2}),_.Z("design:type",Object)],nK.prototype,"scrollTopValue",void 0);
_.r([_.E({selector:_.d6}),_.Z("design:type",Object)],nK.prototype,"miniplayerIsActive",void 0);_.r([_.E({selector:function(B){return B.watch.isWatchRetroMode}}),
_.Z("design:type",Object)],nK.prototype,"retroModeReduxValue",void 0);_.r([_.C4("ytd-player"),_.Z("design:type",HTMLElement)],nK.prototype,"ytdPlayer",void 0);_.r([_.Yp("#playlist"),_.Z("design:type",HTMLElement)],nK.prototype,"JSC$20414_ytdPlaylistPanelRenderer",void 0);_.r([_.C4("ytd-comments"),_.Z("design:type",HTMLElement)],nK.prototype,"ytdComments",void 0);_.r([_.Yp("#primary"),_.Z("design:type",HTMLElement)],nK.prototype,"primary",void 0);
_.r([_.Yp("#secondary"),_.Z("design:type",HTMLElement)],nK.prototype,"secondary",void 0);_.r([_.Yp("#player-container"),_.Z("design:type",HTMLElement)],nK.prototype,"playerContainer",void 0);_.r([_.Yp("#cinematics"),_.Z("design:type",HTMLElement)],nK.prototype,"JSC$20414_cinematics",void 0);_.r([_.XX("theaterValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nK.prototype,"updateTheaterValue",null);
_.r([_.XX("fullscreenValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nK.prototype,"updateFullscreenValue",null);_.r([_.XX("scrollTopValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nK.prototype,"updateScrollTopValue",null);_.r([_.XX("retroModeReduxValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nK.prototype,"updateRetroModeReduxValue",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nK.prototype,"cinematicLightTheme",null);nK=_.r([_.A({is:"ytd-watch-flexy"})],nK);_.Db.registerService(_.Uvd,nK);
_.wz();
}catch(e){_._DumpException(e)}
try{
_.aI("nmfa2d");
var l8e;var iQ=function(){var B=_.c.apply(this,arguments)||this;B.hidden=!1;B.errorScreen=null;B.playlistData={};return B};
_.l(iQ,_.c);_.p=iQ.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:_.Ls(["aa","eocs"])}}};
_.p.onActiveChanged=function(){_.g6().dispatch(_.yan(this.ytPageBehavior.active))};
_.p.playerDataChanged=function(){var B;(B=this.watchController)==null||B.setPlayerResponse(this.playerData)};
_.p.dataChanged=function(){var B;(B=this.watchController)==null||B.setWatchNextResponse(this.data)};
_.p.sizeChanged=function(){var B,R;(R=(B=this.metadata).resize)==null||R.call(B)};
_.p.attached=function(){this.watchController=new _.ci(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.p.detached=function(){_.Cx(this.watchController);this.watchController=void 0};
_.p.getPlayerContainer=function(){return this.playerContainer};
_.p.getElement=function(B){switch(B){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20366_playlistPanel}};
_.p.provideRenderingData=function(B,R){switch(B){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=R;break;case "ERROR_SCREEN":this.errorScreen=R!=null?R:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=R;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=R;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=R;break;case "RICH_METADATA":this.richMetadataRowContainer=R;break;case "CLARIFICATION":this.clarificationData=R;break;case "PLAYLIST":this.playlistData=
R!=null?R:{};break;case "MERCH_SHELF":this.merchShelf=R;break;case "TICKET_SHELF":this.ticketShelf=R;break;case "LIMITED_STATE":this.limitedState=R;break;case "DONATION_SHELF":this.donationShelf=R;break;case "ALERTS":this.alerts=R}};
_.mh.Object.defineProperties(iQ.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return!this.hidden&&!!((B=this.data)==null?0:(R=B.contents)==null?0:(V=R.twoColumnWatchNextResults)==null?0:V.conversationBar)}}});
iQ.prototype.sizeChanged=iQ.prototype.sizeChanged;iQ.prototype.dataChanged=iQ.prototype.dataChanged;iQ.prototype.playerDataChanged=iQ.prototype.playerDataChanged;iQ.prototype.onActiveChanged=iQ.prototype.onActiveChanged;_.r([_.v(_.lr.YtPageBehavior),_.Z("design:type",Object)],iQ.prototype,"ytPageBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],iQ.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],iQ.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"playerData",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],iQ.prototype,"hidden",void 0);_.r([_.Yp("#ytd-player"),_.Z("design:type",HTMLElement)],iQ.prototype,"ytdPlayer",void 0);_.r([_.Yp("#player-container"),_.Z("design:type",HTMLElement)],iQ.prototype,"playerContainer",void 0);_.r([_.Yp("#metadata"),_.Z("design:type",Object)],iQ.prototype,"metadata",void 0);_.r([_.Yp("#playlist"),_.Z("design:type",HTMLElement)],iQ.prototype,"JSC$20366_playlistPanel",void 0);
_.r([_.E({selector:_.nC4,reflectToAttribute:!0}),_.Z("design:type",Object)],iQ.prototype,"fixie",void 0);_.r([_.E({selector:_.PSm,reflectToAttribute:!0}),_.Z("design:type",Object)],iQ.prototype,"singleColumn",void 0);_.r([_.E({selector:function(B){return _.as(B)&&!_.zW(B)},
reflectToAttribute:!0}),_.Z("design:type",Object)],iQ.prototype,"theater",void 0);_.r([_.E({selector:_.zW,reflectToAttribute:!0}),_.Z("design:type",Object)],iQ.prototype,"fullscreen",void 0);_.r([_.E({selector:_.GWi}),_.Z("design:type",Object)],iQ.prototype,"windowSize",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"singleColumnContents",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"errorScreen",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"playlistData",void 0);
_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"videoPrimaryInfoRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"videoSecondaryInfoRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"richMetadataRowContainer",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"clarificationData",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"commentsEntryPointHeaderRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"ticketShelf",void 0);
_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"merchShelf",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"donationShelf",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"limitedState",void 0);_.r([_.E(),_.Z("design:type",Object)],iQ.prototype,"alerts",void 0);_.r([_.K("playlistData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iQ.prototype,"hasPlaylistData",null);
_.r([_.K("data","hidden"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iQ.prototype,"hasChat",null);_.r([_.XX("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iQ.prototype,"onActiveChanged",null);_.r([_.XX("playerData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iQ.prototype,"playerDataChanged",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iQ.prototype,"dataChanged",null);_.r([_.XX("windowSize","singleColumn"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iQ.prototype,"sizeChanged",null);
_.F(iQ,"ytd-watch-fixie",function(){if(l8e===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);l8e=B}B=l8e;return B},{mode:1});_.Db.registerService(_.jUq,iQ);
_.wz();
}catch(e){_._DumpException(e)}
try{
_.aI("xwEKAe");
var nM4=function(B){var R=_.UV();if(R.getFlag(202))R=R.getFlag(201);else{var V;R=(B==null?void 0:(V=B.config)==null?void 0:V.settingOnByDefault)!==void 0?B.config.settingOnByDefault:!_.k("web_shorts_cinematics_disabled_by_default")}return R},uvz=function(B){var R=_.UV();
_.Nd(0,201,B);_.Nd(0,202,!0);R.save()},Ovn=function(B){return(B=_.lwd(B))?_.awI(B):0},oCm=function(B){return B.shorts.isSmallScreenSqueezeback},B9i=function(B){return B.shorts.isPlaybackStarted},R3i=function(B,R,V,e){B=R-B;
V=e-V;return Math.sqrt(B*B+V*V)},Vl2=function(B,R){B&&_.Oz().resolve(_.oC).resolveCommand(B,{forceClickLogging:!0,
form:{element:R}})},e3e=function(B){B.unsubscribeFromStore=_.Ge(B.storeWithShorts,_.iqe,function(R){B.initOrDisposeActiveModules(R);
!R&&B.storeWithShorts.getState().shorts.isFullscreen&&(_.PJ(document.documentElement),B.storeWithShorts.dispatch(_.ruj(!1)))});
B.initOrDisposeActiveModules(_.iqe(B.storeWithShorts.getState()))},Xme=function(B){var R=_.Oz().resolve(_.BD);
R.rootElement=B;e3e(R)},pmU=function(){return _.Oz().resolve(_.BD).dismissedIndices},YGm=function(B){return _.or({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:B}})},h3n=function(B){return _.or({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:B}})},pm=function(B){return _.or({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:B}})},YY=function(B,R){if(B instanceof YY)this.array_=B.array_;
else{var V;if(V=_.R4(B))a:{for(var e=V=0;e<B.length;e++){if(!_.R4(B[e])||V>0&&B[e].length!=V){V=!1;break a}for(var X=0;X<B[e].length;X++)if(typeof B[e][X]!=="number"){V=!1;break a}V==0&&(V=B[e].length)}V=V!=0}if(V)this.array_=_.OS(B);else if(B instanceof _.Yl)this.array_=tl7(B.height,B.width);else if(typeof B==="number"&&typeof R==="number"&&B>0&&R>0)this.array_=tl7(B,R);else throw Error("Yl");}this.size_=new _.Yl(this.array_[0].length,this.array_.length)},WSN=function(B,R,V){for(var e=0;e<B.getSize().height;e++)for(var X=
0;X<B.getSize().width;X++)R.call(V,B.array_[e][X],e,X,B)},b1i=function(B,R){var V=new YY(B.getSize());
WSN(B,function(e,X,Y){V.array_[X][Y]=R.call(void 0,e,X,Y,B)});
return V},tl7=function(B,R){for(var V=[],e=0;e<B;e++){V[e]=[];
for(var X=0;X<R;X++)V[e][X]=0}return V};
YY.prototype.add=function(B){if(!_.fJ2(this.size_,B.getSize()))throw Error("Zl");return b1i(this,function(R,V,e){return R+B.array_[V][e]})};
YY.prototype.equals=function(B,R){if(this.size_.width!=B.size_.width||this.size_.height!=B.size_.height)return!1;R=R||0;for(var V=0;V<this.size_.height;V++)for(var e=0;e<this.size_.width;e++)if(!_.DBj(this.array_[V][e],B.array_[V][e],R))return!1;return!0};
YY.prototype.getSize=function(){return this.size_};
var ha=function(B,R,V){return R>=0&&R<B.size_.height&&V>=0&&V<B.size_.width?B.array_[R][V]:null};
YY.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var JV4=function(B,R,V,e){if(!(R>=0&&R<B.size_.height&&V>=0&&V<B.size_.width))throw Error("$l`"+R+"`"+V+"`"+B.size_.height+"`"+B.size_.width);B.array_[R][V]=e};
YY.prototype.multiply=function(B){if(B instanceof YY){if(this.size_.width!=B.getSize().height)throw Error("am");return jXN(this,B)}if(typeof B==="number")return Utz(this,B);throw Error("bm");};
var jXN=function(B,R){var V=new YY(B.size_.height,R.getSize().width);WSN(V,function(e,X,Y){for(var t=e=0;t<this.size_.width;t++)e+=ha(this,X,t)*ha(R,t,Y);JV4(V,X,Y,e)},B);
return V},Utz=function(B,R){return b1i(B,function(V){return V*R})};var N9N=new _.P("inlineSurveyRenderer");var GZ4=new _.P("interstitialViewModel");var yVe=new _.P("reelNavigateCommand");var SG7=new _.P("reelNonVideoContentDismissalCommand");var H1N=new _.P("showReelsCommentsOverlayCommand");var MlU=new _.P("shortsSuggestedActionViewModel");var kZn=new _.P("videoInteractionPopUpRenderer");var DtN;var fnn;var lne;var ta=function(){var B=_.c.apply(this,arguments)||this;B.ctaVisualElement=null;B.currentCsn=null;return B};
_.l(ta,_.c);_.p=ta.prototype;_.p.onDataChanged=function(){this.maybeLogShows()};
_.p.computeButtonShape=function(){var B=this;if(this.data)return{buttonText:_.FF(this.data.text),state:"active",onTap:function(){B.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.p.maybeCreateCtaVe=function(){var B;if((B=this.data)!=null&&B.badgeInteractionLogging){var R;if(B=(R=this.data.badgeInteractionLogging)==null?void 0:R.trackingParams)this.ctaVisualElement=_.U5(B)}};
_.p.maybeLogClicks=function(){this.currentCsn=_.TE(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.iF(this.currentCsn,this.ctaVisualElement)};
_.p.maybeLogShows=function(){this.currentCsn=_.TE(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.cz(this.currentCsn,[this.ctaVisualElement])};
_.p.onTap=function(){var B;if((B=this.data)!=null&&B.onClickCommand){var R;this.ytComponentBehavior.resolveCommand((R=this.data)==null?void 0:R.onClickCommand);this.maybeLogClicks()}};
ta.prototype.onDataChanged=ta.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ta.prototype,"ytComponentBehavior",void 0);_.r([_.E({}),_.Z("design:type",Object)],ta.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ta.prototype,"onDataChanged",null);
ta=_.r([_.A({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],ta);
_.F(ta,"ytd-shopping-overlay-badge-renderer",function(){if(lne!==void 0)return lne;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return lne=B},{mode:1});_.mR(_.yhr,"reel-sound-metadata-view-model",{props:{data:_.Z9,overlayDensity:_.Z9}});_.mR(_.XB4,"player-disclosure-view-model",{props:{data:_.qq}});_.mR(_.sdh,"pivot-button-view-model",{props:{data:_.Z9,className:_.Z9}});_.mR(_.Fiv,"reel-action-bar-view-model",{props:{data:_.qq,buttonShapeOverrideables:_.qq}});_.mR(_.sx(function(B){function R(){var cd,ES,$d,Eo,GG=(ES=_.D((cd=m())==null?void 0:cd.command,_.MYl))==null?void 0:($d=ES.item)==null?void 0:(Eo=$d.notificationTextRenderer)==null?void 0:Eo.successResponseText;if(GG)_.oF(e.value,"yt-open-popup-action",[_.mP(GG),e.value]);else if(g())Vl2(g(),z.value);else{var eJ;Vl2((eJ=m())==null?void 0:eJ.command,z.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var V=B.data;var e=_.Zh();B=_.h(_.WU("0px",void 0,"O1N7Ce"));var X=B.next().value,Y=B.next().value;B=_.h(_.WU("0px",void 0,"tTDBdb"));var t=B.next().value,b=B.next().value;B=_.h(_.WU(0,void 0,"fh8Zkc"));var J=B.next().value,G=B.next().value;B=_.h(_.WU(0,void 0,"CUjqGd"));var y=B.next().value,S=B.next().value,M=function(){var cd;if(((cd=_.Yx())==null?void 0:cd.getPlayerState())!==-1){e.value.style.display="inherit";var ES;(ES=_.Yx())==null||ES.removeEventListener("onStateChange",M)}f()},f=function(){var cd=
document.querySelector("video");
if(cd){G(cd.getBoundingClientRect().width);S(cd.getBoundingClientRect().height);var ES;Y((cd==null?void 0:(ES=cd.style)==null?void 0:ES.left)||"0px");var $d;b((cd==null?void 0:($d=cd.style)==null?void 0:$d.top)||"0px")}};
_.lJ(function(){var cd,ES,$d;if(((cd=_.Yx())==null?void 0:cd.getPlayerState())===-1&&Math.round((($d=(ES=_.Yx())==null?void 0:ES.getVideoAspectRatio())!=null?$d:0)*100)!==Math.round(J()/y()*100)){e.value.style.display="none";var Eo,GG;S(J()/((GG=(Eo=_.Yx())==null?void 0:Eo.getVideoAspectRatio())!=null?GG:1))}},"VB5m5");
_.fQ(function(){var cd;(cd=_.Yx())==null||cd.addEventListener("onStateChange",M);window.addEventListener("resize",f);f();var ES,$d,Eo;if((Eo=(ES=V())==null?void 0:($d=ES.regions)==null?void 0:$d[0])==null||!Eo.transformationMatrix)throw Error("fm");var GG;if((GG=V())==null?0:GG.trackingParams){var eJ;_.WK().graftServerVe((eJ=V().trackingParams)!=null?eJ:"")}_.aK(function(){var pR;(pR=_.Yx())==null||pR.removeEventListener("onStateChange",M);window.removeEventListener("resize",f)})});
var z=_.Zh(),T=_.h(_.WU(!1,void 0,"TPsTce"));B=T.next().value;var L=T.next().value,Q=_.h(_.WU(!1,void 0,"Uz6CHf"));T=Q.next().value;var q=Q.next().value,m=function(){var cd;return _.D((cd=V())==null?void 0:cd.popUp,kZn)},g=function(){var cd;
return(cd=V())==null?void 0:cd.command},Vu=function(){return _.D(g(),_.H7)!==void 0};
Q=_.Wr(function(){Vu()&&L(!0);q(!0);return!1});
var n=_.Wr(function(){L(!1);q(!1);return!1}),Yd=_.Wr(function(){Vu()&&L(!0);
return!1}),kd=_.Wr(function(){Vu()&&L(!1);
return!1}),a5=_.Wr(function(){R();
return!1}),lo=_.Wr(function(cd){cd.key==="Enter"&&R();
return!1}),io={},vd={};
return _.N("yt-player-overlay-video-interactions",{el:e},_.N("svg",{"on:mouseover":Q,"on:mouseout":n,"on:keydown":lo,"on:focus":Yd,"on:blur":kd,el:z,tabindex:0,"aria-label":function(){var cd;return(cd=V())==null?void 0:cd.a11yString},
id:"player-overlay-video-interaction-svg",class:_.XE("yt-player-overlay-video-interactions__interactions-svg",(io["yt-player-overlay-video-interactions__interactions-svg-hover"]=B,io),(vd["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=T,vd)),role:"button",style:function(){var cd,ES,$d,Eo=($d=(cd=V())==null?void 0:(ES=cd.regions)==null?void 0:ES[0].transformationMatrix)!=null?$d:[];cd=J();ES=y();$d=[];for(var GG=0,eJ=-1;GG<Eo.length;GG++)GG%3===0&&(eJ++,$d[eJ]=[]),$d[eJ].push(Eo[GG]);
Eo=new YY($d);$d=new YY([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);$d=Eo.multiply($d);Eo=new YY([[0,0],[0,0],[0,0],[0,0]]);for(GG=0;GG<$d.getSize().width;GG++){eJ=ha($d,0,GG);var pR=ha($d,1,GG);if(eJ===null||pR===null)throw Error("em`"+(GG+1).toString());JV4(Eo,GG,0,eJ*cd);JV4(Eo,GG,1,pR*ES)}cd=ha(Eo,0,0);GG=ha(Eo,1,0);ES=ha(Eo,0,1);eJ=ha(Eo,1,1);if(cd===null||GG===null||ES===null||eJ===null)throw Error("cm");$d=R3i(cd,GG,ES,eJ);pR=ha(Eo,3,0);Eo=ha(Eo,3,1);if(pR===null||Eo===null)throw Error("dm");Eo=R3i(cd,
pR,ES,Eo);eJ=(Number((eJ*-1).toFixed(2))-Number((ES*-1).toFixed(2)))/(Number(GG.toFixed(2))-Number(cd.toFixed(2)));pR=Math.atan(eJ)*180/Math.PI;GG=eJ===Number.POSITIVE_INFINITY?-90:eJ===Number.NEGATIVE_INFINITY?90:Object.is(eJ,-0)?180:eJ===0?0:eJ>0?pR*-1:cd<GG?pR*-1:Math.abs(pR)+180;return"left:calc("+cd+"px + "+X()+"); top:calc("+(ES+"px + "+t()+"); width:")+($d+"px; height:")+(Eo+"px; transform:rotate(")+(GG+"deg);")},
"on:click":a5}))},"zi"),"yt-player-overlay-video-interactions",{props:{data:_.qq}});_.mR(_.WLe,"yt-reel-metapanel-view-model",{props:{data:_.qq,overlayDensity:_.qq}});var WY=function(){var B=_.c.apply(this,arguments)||this;B.showScrubber=!1;B.isWatchWhileMode=!1;B.enableAnchoredPanel=_.k("desktop_shorts_v2_anchored_panel");B.anchoredPanelActive=!1;B.enableLivingroomLayout=_.k("reels_enable_livingroom_layout");B.enablePlayerMetadataContainer=_.k("reels_web_enable_metadata_container");B.enableSqueezebackPanels=_.k("web_shorts_enable_squeezeback_panels");B.isSqueezebackActive=!1;B.smallScreenSqueezeback=!1;B.isPlayerStarted=!1;B.overlayDensity=0;B.isOverlay=!1;B.isImmersive=
!1;B.isImmersiveHorizontal=!1;B.isFullscreen=!1;B.onWindowResized=function(){var R;B.set("isImmersive",((R=window.getComputedStyle(B.hostElement))==null?void 0:R.getPropertyValue("--immersive-mode-on"))==="1");B.set("isImmersiveHorizontal",B.isImmersive&&B.enableLivingroomLayout&&!B.isWatchWhileMode)};
return B};
_.l(WY,_.c);_.p=WY.prototype;_.p.updateIsOverlay=function(B){this.isOverlay=B.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(_.k("web_enable_flexible_overlay")||_.k("web_enable_format_first")||_.k("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(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.V_("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.V_("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(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Wz("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Wz("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Wz("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Wz("SHARE_LABEL",
void 0,"Share")}}});_.k("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Wz("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(){_.k("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}))};
_.mh.Object.defineProperties(WY.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.infoPanel)}}});
WY.prototype.onIsActiveChanged=WY.prototype.onIsActiveChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],WY.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],WY.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],WY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],WY.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],WY.prototype,"isActive",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],WY.prototype,"hidden",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],WY.prototype,"useShortsIcon",void 0);_.r([_.E({value:"left"}),_.Z("design:type",String)],WY.prototype,"buttonTooltipPosition",void 0);
_.r([_.E({value:_.k("reels_enable_livingroom_layout")?"top":"left"}),_.Z("design:type",String)],WY.prototype,"likeButtonTooltipPosition",void 0);_.r([_.E({value:"none"}),_.Z("design:type",String)],WY.prototype,"textTransform",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"showScrubber",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"isWatchWhileMode",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data.infoPanel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],WY.prototype,"hasInfoPanel",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"enableAnchoredPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"anchoredPanelActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"enableLivingroomLayout",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WY.prototype,"enablePlayerMetadataContainer",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"enableSqueezebackPanels",void 0);_.r([_.E({selector:_.cBY,reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"isSqueezebackActive",void 0);_.r([_.E({selector:oCm,reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"smallScreenSqueezeback",void 0);
_.r([_.E({selector:B9i}),_.Z("design:type",Object)],WY.prototype,"isPlayerStarted",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"overlayDensity",void 0);_.r([_.E(),_.Z("design:type",Object)],WY.prototype,"isOverlay",void 0);_.r([_.E({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.Z("design:type",Boolean)],WY.prototype,"isShortsOverlay",void 0);_.r([_.E(),_.Z("design:type",Object)],WY.prototype,"isImmersive",void 0);
_.r([_.E(),_.Z("design:type",Object)],WY.prototype,"isImmersiveHorizontal",void 0);_.r([_.E({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Z("design:type",Boolean)],WY.prototype,"isShortsImmersive",void 0);_.r([_.E({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.Z("design:type",Object)],WY.prototype,"buttonOverride",void 0);
_.r([_.E({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.Z("design:type",Object)],WY.prototype,"actionBarButtonOverride",void 0);_.r([_.E({selector:_.GP,reflectToAttribute:!0}),_.Z("design:type",Object)],WY.prototype,"isFullscreen",void 0);_.r([_.XX("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WY.prototype,"onIsActiveChanged",null);WY=_.r([_.A({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],WY);
_.F(WY,"ytd-reel-player-overlay-renderer",function(){if(fnn!==void 0)return fnn;var B=document.createElement("template");_.a(B,'\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-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 is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return fnn=B},{mode:1});var z3e;var bb=function(){var B=_.c.apply(this,arguments)||this;B.videoDuration=0;B.playedTime=0;B.isActive=!1;B.JSC$19629_playerEvents=new Map;return B};
_.l(bb,_.c);_.p=bb.prototype;_.p.created=function(){this.JSC$19629_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19629_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.p.attached=function(){this.getPlayerAndInitializeListeners()};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19629_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Bc(this,this.onPageChanged))};
_.p.getPlayerAndInitializeListeners=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return R=_.Pr(),R?_.U(V,R.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Bc(B,B.onPageChanged)),V.jumpTo(0));B.player=V.yieldResult;B.initializePlayerListeners();_.b3(V)})};
_.p.onPageChanged=function(B){var R=this;return _.W(function(V){if(V.nextAddress==1)return B.detail.newPageType!=="ytd-shorts"?V.return():_.U(V,_.nD().getPlayerPromise(),2);R.player=V.yieldResult;R.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Bc(R,R.onPageChanged));_.b3(V)})};
_.p.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19629_playerEvents)};
_.p.onVideoDataChange=function(B){var R=this;return _.W(function(V){if(!R.player||B.type!=="newdata")return V.return();R.videoDuration=_.k("web_shorts_use_progress_state_for_gapless")?R.player.getProgressState(B.playertype).seekableEnd:R.player.getDuration(B.playertype);R.playedTime=0;_.b3(V)})};
_.p.onVideoProgress=function(B){var R=this,V,e;return _.W(function(X){if(!R.player)return X.return();V=R.player.getPresentingPlayerType();e=R.player.getPlayerState();R.videoDuration=_.k("web_shorts_use_progress_state_for_gapless")?R.player.getProgressState(V).seekableEnd:R.player.getDuration(V);R.playedTime=e===0?R.videoDuration:B;_.b3(X)})};
_.p.getPercentPlayed=function(B,R){return B?_.IH(R/B,0,1):0};
_.mh.Object.defineProperties(bb.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 B="";return B=this.videoDuration&&this.playedTime?B+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):B+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],bb.prototype,"componentBehavior",void 0);_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],bb.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bb.prototype,"player",void 0);_.r([_.E(),_.Z("design:type",Object)],bb.prototype,"videoDuration",void 0);_.r([_.E(),_.Z("design:type",Object)],bb.prototype,"playedTime",void 0);_.r([_.E(),_.Z("design:type",Object)],bb.prototype,"isActive",void 0);
_.r([_.K("videoDuration","playedTime"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],bb.prototype,"percentPlayed",null);_.r([_.K("videoDuration","playedTime"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bb.prototype,"percentPlayedStyle",null);_.r([_.K("videoDuration","isActive"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bb.prototype,"hideProgressBar",null);
_.F(bb,"ytd-progress-bar-line",function(){if(z3e===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);z3e=B}B=z3e;return B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var anj;_.Br(_.BDu,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var Ja=function(){var B=_.c.apply(this,arguments)||this;B.playerState=null;B.isMuted=!1;B.shortsModernControlsEnabled=_.k("web_shorts_modern_controls");B.volumeControlsOrientationState="vertical_down";B.JSC$19632_playerEvents=new Map;return B};
_.l(Ja,_.c);_.p=Ja.prototype;_.p.created=function(){this.JSC$19632_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19632_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.p.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.kB(28662);this.playPauseButtonClientVE=_.kB(36842);this.fullscreenButtonToggleOffClientVE=_.kB(222256);this.fullscreenButtonToggleOnClientVE=_.kB(222257);var B=_.TE(),R=_.wT();B&&R&&(_.k("combine_ve_grafts")?(_.YJ(_.WK(),this.muteButtonClientVE,R),_.YJ(_.WK(),this.playPauseButtonClientVE,R)):_.QD(B,R,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19632_playerEvents),this.player=null)};
_.p.getPlayerAndInitializeListeners=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return R=_.Pr(),R?_.U(V,R.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Bc(B,B.onPageChanged)),V.jumpTo(0));B.player=V.yieldResult;B.initializePlayerListeners();_.b3(V)})};
_.p.onPageChanged=function(B){var R=this;return _.W(function(V){if(V.nextAddress==1)return B.detail.newPageType!=="ytd-shorts"?V.return():_.U(V,_.nD().getPlayerPromise(),2);R.player=V.yieldResult;R.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Bc(R,R.onPageChanged));_.b3(V)})};
_.p.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19632_playerEvents)};
_.p.onPlayerStateChange=function(B){this.playerState=B};
_.p.onPlayerVolumeChange=function(B){this.isMuted=B.muted};
_.p.onPlayPauseButtonClick=function(){var B=this,R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,_.nD().getPlayerPromise(),2);R=e.yieldResult;(V=_.TE())&&B.playPauseButtonClientVE&&_.iF(V,B.playPauseButtonClientVE);R.getPlayerState()!==1?R.playVideo():R.pauseVideo();_.b3(e)})};
_.p.computePlayPauseIcon=function(B){return B===2||B===-1||B===5?"PLAY_ARROW_FILLED":_.k("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.p.computeFullscreenLabel=function(B){return B?_.Wz("FULLSCREEN_EXIT_LABEL"):_.Wz("FULLSCREEN_ENTER_LABEL")};
_.p.computePlayPauseLabel=function(B){return B===1||B===3?_.Wz("PLAYER_LABEL_PAUSE"):_.Wz("PLAYER_LABEL_PLAY")};
_.p.onMuteButtonClick=function(){var B=this,R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,_.nD().getPlayerPromise(),2);R=e.yieldResult;(V=_.TE())&&B.muteButtonClientVE&&_.iF(V,B.muteButtonClientVE);R.isMuted()?R.unMute(!0):R.mute(!0);_.b3(e)})};
_.p.computeMuteIcon=function(B){return B?"miniplayer:volume-off":"miniplayer:volume-up"};
_.p.computeMuteLabel=function(B){return B?_.Wz("PLAYER_LABEL_UNMUTE"):_.Wz("PLAYER_LABEL_MUTE")};
_.p.onFullscreenButtonClick=function(){var B=_.TE();B&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.iF(B,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.iF(B,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.gzz()};
_.mh.Object.defineProperties(Ja.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var B=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(){B.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?_.k("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.k("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Ja.prototype,"componentBehavior",void 0);_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],Ja.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Ja.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ja.prototype,"player",void 0);_.r([_.E(),_.Z("design:type",Object)],Ja.prototype,"playerState",void 0);_.r([_.E(),_.Z("design:type",Object)],Ja.prototype,"isMuted",void 0);
_.r([_.E({computed:"computePlayPauseIcon(playerState)"}),_.Z("design:type",String)],Ja.prototype,"playPauseIcon",void 0);_.r([_.E({computed:"computeMuteIcon(isMuted)"}),_.Z("design:type",String)],Ja.prototype,"muteIcon",void 0);_.r([_.E({selector:_.GP}),_.Z("design:type",Boolean)],Ja.prototype,"isFullscreen",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ja.prototype,"shortsModernControlsEnabled",void 0);
_.r([_.E(),_.Z("design:type",Object)],Ja.prototype,"volumeControlsOrientationState",void 0);_.r([_.K("playerState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ja.prototype,"playPauseButtonData",null);_.r([_.K("isFullscreen"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ja.prototype,"fullscreenButtonData",null);_.r([_.K("isFullscreen"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ja.prototype,"fullscreenIcon",null);
_.F(Ja,"ytd-shorts-player-controls",function(){if(anj===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);anj=B}B=anj;return B},{mode:1});var dt7;_.mR(_.bzR,"yt-interstitial-view-model",{props:{data:_.qq}});var wme=_.sx(function(B){var R=B.data;return _.N("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.N("h1",{class:"reelWatchBreakViewModelHostTitle"},_.N(_.Hr,{text:function(){return R().title}})),_.N("h2",{class:"reelWatchBreakViewModelHostBody"},_.N(_.Hr,{text:function(){return R().body},
isOverlay:!0})),_.N(_.wb,{data:function(){return R().buttons}},{buttonViewModel:function(V,e){return _.N("div",{class:function(){return e()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.N(_.qo,{data:V.data}))}}))},"Ai");
wme.idomCompat=!0;_.mR(wme,"reel-watch-break-view-model",{props:{data:_.qq}});var jh=function(){return _.c.apply(this,arguments)||this};
_.l(jh,_.c);jh.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}}};
_.mh.Object.defineProperties(jh.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.D((B=this.data)==null?void 0:B.renderer,N9N)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.D((B=this.data)==null?void 0:B.renderer,GZ4)}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],jh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],jh.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],jh.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],jh.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data.renderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],jh.prototype,"isSurvey",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.renderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],jh.prototype,"isInterstitialViewModel",null);jh=_.r([_.A({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],jh);
_.F(jh,"ytd-reel-non-video-content-renderer",function(){if(dt7!==void 0)return dt7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return dt7=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var T94;_.mR(_.eJU,"desktop-shorts-player-controls",{});var Ua=function(){var B=_.c.apply(this,arguments)||this;B.isPlayerPaused=!1;B.isPlayerStarted=!1;B.showPlayerControls=!1;B.showScrubber=!1;B.autoHideJobId=0;B.modern=_.k("web_button_rework");B.overlayType=_.V_("web_shorts_expanded_overlay_type");B.panelData=void 0;B.isWatchWhileMode=!1;B.hasError=!1;B.panelShowDelayMs=1;B.scrubberComponent={};B.useStamper=_.k("web_shorts_enable_title_deflation");B.isFullscreen=!1;B.shouldHideOverlay=!1;B.enableAnchoredPanel=_.k("desktop_shorts_v2_anchored_panel");
B.enablePersistentAnchoredPanel=_.k("desktop_shorts_v2_persistent_anchored_panel");B.hideWatchWhilePanel=_.k("web_shorts_hide_watch_while_panel");B.isPersistentPanelActive=!1;B.anchoredPanelActive=!1;B.isShortsPipActive=!1;B.smallScreenSqueezeback=!1;B.enableFlexibleOverlay=_.k("web_enable_flexible_overlay");B.overlayDensity=0;B.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
B.onWindowResized=function(){_.LJ(B,"calculateOverlayDensity",function(){B.calculateOverlayDensity()},100)};
return B};
_.l(Ua,_.c);_.p=Ua.prototype;_.p.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.p.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.p.shouldRenderOverlayControl=function(B){return!this.useStamper&&this.isVideoContent(B)};
_.p.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var B=_.Oz().resolve(_.Sf);this.isWatchWhileMode&&(_.k("web_enable_shorts_new_carousel")?_.dV.addJob(function(){B.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):B.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.p.handleShowReelsCommentsOverlayCommand=function(B){B=_.D(B,H1N);this.isActive&&(B==null?0:B.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(B,R){B&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:R?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:B}})};
_.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&&(_.Oz().resolve(_.BD).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.p.handleWatchWhilePanelScrimClick=function(){var B=_.Oz().resolve(_.Sf);this.activeWatchWhilePanel&&(B.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:_.k("web_enable_shorts_new_carousel")?0:void 0}}};
_.p.handlePlayerClick=function(B){var R=this,V,e;if((e=(V=window).matchMedia)!=null&&e.call(V,"(any-pointer: coarse)").matches||!B)this.showPlayerControls=!0,_.dV.cancelJob(this.autoHideJobId),this.autoHideJobId=_.kD(_.dV,function(){R.showPlayerControls=!1},4E3)};
_.p.isFirstReel=function(){return this.index===0};
_.p.handleMouseenter=function(){_.dV.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 B;(B=this.data)!=null&&B.thumbnail&&this.isActive&&.5625!==Ovn(this.data.thumbnail)&&_.Mwp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.p.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var B=document.querySelector("#shorts-container");if(B){B=B.offsetWidth/2-this.playerContainer.offsetWidth/2;B=B>=368?1:B>=168?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&B===1&&(B=0);this.isPersistentPanelActive&&(B=0);this.overlayDensity=B;var R;(R=this.onOverlayDensityChanged)==null||R.call(this,this.index,this.overlayDensity)}}};
_.p.onOverlayDensityChange=function(){var B;(B=this.onOverlayDensityChanged)==null||B.call(this,this.index,this.overlayDensity);(B=_.w(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&B.set("overlayDensity",this.overlayDensity);if(B=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))B.overlayDensity=this.overlayDensity};
_.p.isVideoContent=function(B){_.Oz().resolve(_.BD);return!!_.D(B,_.GF)};
_.p.isNonVideoContent=function(B){_.Oz().resolve(_.BD);return!!_.D(B,_.vL)};
_.p.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.mh.Object.defineProperties(Ua.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var B,R;return _.k("web_enable_format_first")||((B=this.data)==null?void 0:B.adsOverlay)&&_.k("web_enable_format_first_ads_only")||((R=this.data)==null?void 0:R.reelPlayerOverlayRenderer)&&_.k("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var B;return!this.isActive||!this.isPlayerStarted||(B=this.data)!=null&&B.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var B;if(this.useStamper&&((B=this.data)==null?0:B.command)&&this.isVideoContent(this.data.command)){var R,V;if(((R=this.data)==null?0:R.adsOverlay)&&Object.keys((V=this.data)==null?void 0:V.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var e,X;if(((e=this.data)==null?0:e.reelPlayerOverlayRenderer)&&Object.keys((X=this.data)==null?void 0:X.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Ua.prototype.onOverlayDensityChange=Ua.prototype.onOverlayDensityChange;Ua.prototype.calculateOverlayDensity=Ua.prototype.calculateOverlayDensity;Ua.prototype.maybeLogNonDefaultAspectRatio=Ua.prototype.maybeLogNonDefaultAspectRatio;Ua.prototype.onEngagementPanelsChanged=Ua.prototype.onEngagementPanelsChanged;Ua.prototype.onScrubberDataChange=Ua.prototype.onScrubberDataChange;Ua.prototype.updateShouldHideOverlay=Ua.prototype.updateShouldHideOverlay;
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Ua.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Ua.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ua.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Number)],Ua.prototype,"index",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ua.prototype,"isActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ua.prototype,"isHiddenInDom",void 0);_.r([_.E(),_.Z("design:type",Object)],Ua.prototype,"isPlayerPaused",void 0);_.r([_.E({selector:B9i}),_.Z("design:type",Object)],Ua.prototype,"isPlayerStarted",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"showPlayerControls",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"showScrubber",void 0);_.r([_.E(),_.Z("design:type",Object)],Ua.prototype,"autoHideJobId",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"overlayType",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Ua.prototype,"ytdReduxBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ua.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ua.prototype,"watchWhileEngagementPanels",void 0);_.r([_.E(),_.Z("design:type",Object)],Ua.prototype,"panelData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"isWatchWhileMode",void 0);_.r([_.E(),_.Z("design:type",String)],Ua.prototype,"activeWatchWhilePanel",void 0);
_.r([_.E(),_.Z("design:type",Object)],Ua.prototype,"hasError",void 0);_.r([_.E(),_.Z("design:type",Object)],Ua.prototype,"panelShowDelayMs",void 0);_.r([_.E(),_.Z("design:type",Object)],Ua.prototype,"scrubberComponent",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"useStamper",void 0);_.r([_.E({selector:_.GP,reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"isFullscreen",void 0);
_.r([_.E(),_.Z("design:type",Object)],Ua.prototype,"shouldHideOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"enableAnchoredPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"enablePersistentAnchoredPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"hideWatchWhilePanel",void 0);
_.r([_.E({selector:_.cBY,reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"isPersistentPanelActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"anchoredPanelActive",void 0);_.r([_.E({selector:_.yN,reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"isShortsPipActive",void 0);_.r([_.E({selector:oCm,reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"smallScreenSqueezeback",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ua.prototype,"enableFormatFirst",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"enableFlexibleOverlay",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ua.prototype,"overlayDensity",void 0);_.r([_.E(),_.Z("design:type",Function)],Ua.prototype,"onOverlayDensityChanged",void 0);
_.r([_.E(),_.K("isActive","hasError"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ua.prototype,"shouldRenderPlayerElements",null);_.r([_.E(),_.K("isActive","isWatchWhileMode"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ua.prototype,"watchWhileOrPersistentActive",null);_.r([_.XX("isActive","hasError","showingExpandedOverlay"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ua.prototype,"updateShouldHideOverlay",null);
_.r([_.E({reflectToAttribute:!0}),_.K("isActive","isPlayerStarted","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ua.prototype,"shouldRenderScrubber",null);_.r([_.XX("shouldRenderScrubber"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ua.prototype,"onScrubberDataChange",null);_.r([_.K("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ua.prototype,"overlayComponent",null);
_.r([_.XX("watchWhileEngagementPanels"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ua.prototype,"onEngagementPanelsChanged",null);_.r([_.Yp("#player-container"),_.Z("design:type",HTMLElement)],Ua.prototype,"playerContainer",void 0);_.r([_.Yp("#cinematic-container"),_.Z("design:type",HTMLElement)],Ua.prototype,"cinematicContainer",void 0);
_.r([_.XX("isPersistentPanelActive","data.thumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ua.prototype,"maybeLogNonDefaultAspectRatio",null);_.r([_.XX("isPersistentPanelActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ua.prototype,"calculateOverlayDensity",null);_.r([_.XX("overlayDensity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ua.prototype,"onOverlayDensityChange",null);
Ua=_.r([_.A({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Ua);
_.F(Ua,"ytd-reel-video-renderer",function(){if(T94!==void 0)return T94;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return T94=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var NA=function(){var B=_.c.apply(this,arguments)||this;B.isPreviousPageShorts=!1;B.index=0;B.delayedActiveIndex=0;B.playablePreviousIndex=null;B.isPlayerPaused=!1;B.isPlayerStarted=!1;B.intersectionObserverThreshold=.6;B.fitToVisibleBounds=!1;B.pageSubtype="shorts";B.enablePreviousContinuation=_.k("shorts_in_playlists_web");B.shortsPipEnabled=_.k("web_shorts_pip");B.isDark=document.documentElement.hasAttribute("dark");B.shortsViewTransitions=_.k("web_shorts_view_transitions");B.isFullscreen=!1;B.isShortsPipActive=
!1;B.buttonOverride={iconPosition:"icon-only",size:"XL"};B.anchoredPanelActive=!1;B.isActive=!1;B.smallScreenPersistentPanel=!1;B.isPersistentPanelActive=!1;B.smallScreenSqueezeBack=!1;B.enableScrollIntoViewCenter=_.k("web_scroll_into_view_center");B.formatFirst=_.k("web_enable_format_first")||_.k("web_enable_format_first_ads_only")||_.k("web_enable_format_first_organic_only");B.enableFlexibleOverlay=_.k("web_enable_flexible_overlay");B.isShortsInitialized=!1;B.hidePreviousButtonImmediately=!1;B.showPreviousButtonImmediately=
!1;B.endOfNextContinuation=!1;B.currentPlayerIndex=0;B.nextReelVe=_.kB(56921);B.prevReelVe=_.kB(56922);B.loopToggleOffVe=_.kB(198013);B.loopToggleOnVe=_.kB(198014);B.ambientModeToggleVe=_.kB(227860);B.reelPlayerPausedStateRendererVe=_.kB(141313);B.storedPlaybackSpeed=null;B.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"};
B.onOverlayDensityChanged=function(R,V){var e;(e=B.getActiveReelVideo(R))==null||e.setAttribute("overlay-density",String(V))};
return B};
_.l(NA,_.c);_.p=NA.prototype;
_.p.deflateInactivePreviousSlides=function(){var B=_.RC("web_shorts_deflate_inactive_slides_aggressive_distance");if(B>0&&this.shortsProcessedSequence&&this.activeIndex){B=this.activeIndex-B;for(var R=0;R<=B;R++){var V=void 0;((V=this.shortsProcessedSequence[R].reelPlayerOverlayRenderer)==null?0:V.likeButton)&&this.set("shortsProcessedSequence."+R+".reelPlayerOverlayRenderer",{});V=void 0;((V=this.shortsProcessedSequence[R].adsOverlay)==null?0:V.adSlotMetadata)&&this.set("shortsProcessedSequence."+R+
".adsOverlay",{})}}};
_.p.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.p.onResize=function(){var B=_.g6(),R=B.dispatch,V=this.calculateIsSmallWidth();R.call(B,_.or({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:V}}));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:_.k("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 B=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,R=B,V=0;B<250&&(R=B+this.shortsInnerContainer.clientWidth,V=24);_.o_(this.hostElement,{"--ytd-shorts-header-width":R+"px","--ytd-shorts-top-spacing":V+"px"})}};
_.p.isFirstShorts=function(B){return B?this.index===-B.length:this.index===0};
_.p.isActiveReel=function(B,R,V){V&&(R=this.calculatePrevIndex(R,V));return B===R};
_.p.onFullscreenChange=function(){if(_.k("web_fullscreen_shorts")){var B;(B=this.getActiveReelVideo(this.activeIndex))==null||B.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.Oz().resolve(_.An).close(!0)}};
_.p.engagementPanelsChanged=function(){var B;this.watchWhileEngagementPanels=(B=this.data)==null?void 0:B.engagementPanels};
_.p.unregisterPanels=function(){var B=_.Oz().resolve(_.Sf);if(this.watchWhileEngagementPanels)for(var R=_.h(this.watchWhileEngagementPanels),V=R.next();!V.done;V=R.next()){var e=void 0,X=void 0;V=(e=V.value.engagementPanelSectionListRenderer)==null?void 0:(X=e.identifier)==null?void 0:X.tag;B&&V&&B.panelMap.delete(V)}};
_.p.isVideoContent=function(B){return this.isVideoContentCommand(B==null?void 0:B.command)};
_.p.getActiveReelVideo=function(B){return _.w(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+B+'"]')};
_.p.calculatePrevIndex=function(B,R){return R?B-((R==null?void 0:R.length)||0):-1};
_.p.onKeydown=function(B){var R=_.Az(B)||[];if(!_.Fkn(R))if(B.code==="ArrowUp")B.preventDefault(),this.handlePrevButtonClick();else if(B.code==="ArrowDown")B.preventDefault(),this.handleNextButtonClick();else if(B.code==="KeyM")this.toggleMuteUnmuteVideo();else if(B.code==="KeyK"||B.code==="Space")this.togglePlayPauseVideo();else if((B.code==="KeyA"||B.code==="ArrowLeft")&&_.k("web_shorts_keyboard_enable_seek_shortcuts")){var V;(V=this.player)==null||V.seekBy(-5)}else if((B.code==="KeyD"||B.code===
"ArrowRight")&&_.k("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var e;(e=this.player)==null||e.seekBy(5)}};
_.p.onServiceRequestCompleted=function(B,R){B=R.data;B.continuationEndpoint&&B.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:B.entries,continuationEndpoint:B.continuationEndpoint}}):B.prevContinuationEndpoint&&B.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:B.prevEntries,prevContinuationEndpoint:B.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.p.handleEngagementPanelVisibilityChanged=function(B,R){var V=_.Oz().resolve(_.Sf);if(B&&V){var e,X=((e=B.identifier)==null?void 0:e.tag)||B.panelIdentifier||B.targetId;if(R==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==X){V.hidePanel(this.activePanel);var Y;this.activePanel=((Y=B.identifier)==null?void 0:Y.tag)||B.panelIdentifier}else this.isPersistentPanelActive=!0,_.g6().dispatch(YGm(!0)),this.anchoredPanelActive=!0,this.activePanel=X;else R==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===X&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.g6().dispatch(YGm(!1)))}};
_.p.handlePanelScrimClick=function(){var B=_.Oz().resolve(_.Sf);this.activePanel&&(B.hidePanel(this.activePanel),_.g6().dispatch(YGm(!1)))};
_.p.getShortsLoopSetting=function(){var B,R,V,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:return _.k("kevlar_shorts_auto_advance")?_.U(Y,_.fy.getInstance(),2):Y.return(!0);case 2:return(B=Y.yieldResult)?_.U(Y,B.get("sfvles"),3):Y.return(!0);case 3:return V=(R=Y.yieldResult)!=null?R:!1,_.U(Y,B.get("sfvle"),4);case 4:return X=(e=Y.yieldResult)!=null?e:!0,V?Y.return(X):Y.return(!0)}})};
_.p.handleSignalActionToggleLoopShortsOff=function(){var B=this,R,V,e;return _.W(function(X){switch(X.nextAddress){case 1:if(!B.player)return X.return();B.player.setLoopVideo(!1);R=_.WK();_.ty(R,B.loopToggleOffVe);return _.U(X,_.fy.getInstance(),2);case 2:return(V=X.yieldResult)?_.U(X,V.set("sfvle",!1),3):X.return();case 3:return _.U(X,V.set("sfvles",!0),4);case 4:e=_.UV(),_.Nd(0,203,!1),_.Nd(0,204,!0),e.save(),_.b3(X)}})};
_.p.handleSignalActionToggleLoopShortsOn=function(){var B=this,R,V,e;return _.W(function(X){switch(X.nextAddress){case 1:if(!B.player)return X.return();B.player.setLoopVideo(!0);R=_.WK();_.ty(R,B.loopToggleOnVe);return _.U(X,_.fy.getInstance(),2);case 2:return(V=X.yieldResult)?_.U(X,V.set("sfvle",!0),3):X.return();case 3:return _.U(X,V.set("sfvles",!0),4);case 4:e=_.UV(),_.Nd(0,203,!0),_.Nd(0,204,!0),e.save(),_.b3(X)}})};
_.p.handleSignalActionToggleCinematicShortsOn=function(){uvz(!0);var B;(B=this.JSC$19656_cinematicController)==null||_.$Br(B,!0);_.ty(_.WK(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.p.handleSignalActionToggleCinematicShortsOff=function(){uvz(!1);var B;(B=this.JSC$19656_cinematicController)==null||_.$Br(B,!1);_.ty(_.WK(),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 B=this.overlayContainer.querySelector("#experiment-overlay");B&&_.dV.addLowPriorityJob(function(){B.style.display="unset"},100)}};
_.p.getCurrentShort=function(){if(this.currentEndpoint){var B=this.currentEndpoint;if(this.isNonVideoContentCommand(B)){var R=_.D(B,_.vL);return{reelNonVideoContentRenderer:_.D(R==null?void 0:R.renderer,_.Pxb),command:B}}if(this.data){var V;R=(V=_.D(this.currentEndpoint,_.GF))==null?void 0:V.thumbnail;var e;V=(e=this.data.overlay)==null?void 0:e.reelPlayerOverlayRenderer;_.Oz().resolve(_.BD);B=this.data;var X,Y;e=(X=B.overlay)==null?void 0:(Y=X.shortsAdsRenderer)==null?void 0:Y.adSlots;if(e!==void 0)e.length===
0?(_.R7("Shorts ads returned no ad slots."),B=void 0):(e.length>1&&_.R7("Shorts ads has more than one ad slots."),B=_.D(e[0],_.TXl));else{var t,b;B=_.D((t=B.overlay)==null?void 0:(b=t.shortsAdsRenderer)==null?void 0:b.overlay,_.TXl)}t=B;B=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.D(this.currentEndpoint,_.GF),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:V,thumbnail:R,command:B,adsOverlay:t}}}};
_.p.created=function(){var B=this;this.scrollToVideoThrottle=new _.o7(function(R){var V;(V=B.getActiveReelVideo(R))==null||V.scrollIntoView({behavior:"smooth",block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.o7(function(R){var V;(V=B.getActiveReelVideo(R))==null||V.scrollIntoView({behavior:"auto",block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.p.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.p.attached=function(){var B=this;Xme(this);this.pageScrollElement=_.w(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Bc(this,this.processResetAction));_.k("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.k("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var R=B.getActiveReelVideo(B.activeIndex);
B.maybeCreateIntersectionObserver();R==null||R.scrollIntoView({behavior:"instant",block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"});B.shortsContainer.style.overflowY="scroll"}))};
_.p.calculateSqueezebackPanelSize=function(){var B=this,R=window.innerWidth-456-(window.innerHeight-106)*.5625;_.dV.addLowPriorityJob(function(){R<360?_.g6().dispatch(h3n(!0)):(B.hostElement.style.setProperty("--anchored-panel-width",Math.min(R,480)+"px"),_.g6().dispatch(h3n(!1)))})};
_.p.detached=function(){var B=_.Oz().resolve(_.BD);B.rootElement=void 0;var R;(R=B.unsubscribeFromStore)==null||R.call(B);B.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Bc(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.p.onResizeFinished=function(B,R){var V=this,e=new ResizeObserver(function(){V.shortsContainer.style.overflowY="hidden";_.dV.addLowPriorityJob(function(){R()},100)});
e.observe(B);return e};
_.p.resetDocumentScrollTop=function(){var B,R;if((B=document)==null?0:(R=B.scrollingElement)==null?0:R.scrollTop)document.scrollingElement.scrollTop=0};
_.p.loadPage_=function(B){var R=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),B){var V;if((V=_.D(this.currentEndpoint,_.GF))==null?0:V.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=B;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){R.isPlayerStarted&&
(R.handleOnPlaybackCommand(),R.afterPlayerStarted=function(){})};
this.registerPanel(B)}};
_.p.afterPlayerStarted=function(){};
_.p.handleOnPlaybackCommand=function(){if(_.k("web_shorts_comment_stickers")&&this.isPlayerStarted){var B,R=(B=_.D(this.currentEndpoint,_.GF))==null?void 0:B.onPlaybackCommand;R&&this.ytComponentBehavior.resolveCommand(R)}};
_.p.maybeCreateIntersectionObserver=function(){var B=this,R=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==R){this.intersectionObserverThreshold=R;var V={rootMargin:"0px",threshold:R},e;(e=this.intersectionObserver)==null||e.disconnect();this.intersectionObserver=new IntersectionObserver(function(X){X=_.h(X);for(var Y=X.next();!Y.done;Y=X.next())if(Y=Y.value,Y.intersectionRatio>R){Y=Number(Y.target.id);if(isNaN(Y))break;if(Y===B.index)break;
_.bgY();B.loadVideo(Y);_.di("r_vtc")}},V);
this.observeShorts()}};
_.p.observeShorts=function(){var B=[].concat(_.MI(_.w(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));B=_.h(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;var V=void 0;(V=this.intersectionObserver)==null||V.observe(R)}};
_.p.initCsi=function(){_.fP("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var B={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},R,V;if((R=this.playerData)==null?0:(V=R.cacheMetadata)==null?0:V.isCacheHit)B.isCacheHit=!0;var e;if(R=(e=_.D(this.currentEndpoint,_.GF))==null?void 0:
e.prefetchTaskId)B.prefetchInfo={taskId:R};_.f0(B)};
_.p.isAd=function(){var B,R;return!!((B=_.D(this.currentEndpoint,_.GF))==null?0:(R=B.adClientParams)==null?0:R.isAd)};
_.p.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.p.getPlayerContainer=function(){var B;return(B=_.w(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:B.playerContainer};
_.p.onPlayerStateChange=function(B){var R=this;this.isPlayerPaused=B===2;B!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?B===1&&this.index===0&&(this.isPlayerStarted||_.g6().dispatch(pm(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.g6().dispatch(pm(!0)));this.player&&!this.player.getLoopVideo()&&_.dV.addLowPriorityJob(function(){R.getShortsLoopSetting().then(function(V){var e;(e=R.player)==null||e.setLoopVideo(V)})});
this.isPlayerPaused&&_.k("web_shorts_paused_state_logging")&&_.cz(_.TE(),[this.reelPlayerPausedStateRendererVe])};
_.p.isInBackground=function(){var B=window.document.visibilityState;return!(!B||B==="visible")};
_.p.isShortPlayable=function(){if(_.k("kevlar_playable_short_killswitch"))return!0;var B;return(B=this.playerData)!=null&&B.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.p.setNormalPlaybackSpeed=function(){var B=this,R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,B.getPlayer().getPlayerPromise(),2);R=e.yieldResult;V=R.getPlaybackRate();V!==1&&(B.storedPlaybackSpeed=V,R.setPlaybackRate(1));_.b3(e)})};
_.p.restorePlaybackSpeed=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1)return B.storedPlaybackSpeed===null?V.jumpTo(0):_.U(V,B.getPlayer().getPlayerPromise(),3);R=V.yieldResult;R.setPlaybackRate(B.storedPlaybackSpeed);B.storedPlaybackSpeed=null;_.b3(V)})};
_.p.playerDataChanged=function(){var B=this,R,V,e,X,Y,t,b,J,G;return _.W(function(y){if(y.nextAddress==1){R=B.getPlayer();_.k("web_shorts_dynamic_intersection_observer_threshold")&&((V=B.intersectionObserver)==null||V.disconnect());if(B.playerData){if(((e=B.playerData.videoDetails)==null?void 0:e.videoId)!==((X=R.getPlayer())==null?void 0:X.getVideoData().video_id)){Y={};if(t=_.D(B.currentEndpoint,_.GF))Y.watch_endpoint=t,t.endTimeSeconds&&(Y.end=t.endTimeSeconds);R.loadVideoWithPlayerResponse(B.playerData,
Y)}}else return y.return();return B.player?y.jumpTo(2):_.U(y,R.getPlayerPromise(),3)}y.nextAddress!=2&&(B.player=y.yieldResult,B.JSC$19656_playerStateChangeListener=B.onPlayerStateChange.bind(B),B.player.addEventListener("onStateChange",B.JSC$19656_playerStateChangeListener),_.k("kevlar_client_enable_shorts_player_bootstrap")&&_.uH(),B.scrollToVideoThrottle.fire(B.index),B.movePlayerToVideo(B.index),_.dV.addLowPriorityJob(function(){B.getShortsLoopSetting().then(function(S){var M;(M=B.player)==null||
M.setLoopVideo(S)})}),_.Lml.resolve(B.player),B.player.syncVolume(),B.getPlayer().focusOnPlayer());
_.k("web_shorts_caption_language_entity_killswitch")||_.dV.addLowPriorityJob(function(){var S=_.Oz().resolve(_.BD),M,f=(M=B.player)==null?void 0:M.getOption("captions","track");M=_.XF("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(f){var z;((z=_.No(_.NhK,M)())==null?void 0:z.value)!==f.displayName&&S.store.dispatch(_.SX("stringEntity",M,{key:M,value:f.displayName||""}))}else S.store.dispatch(_.SX("stringEntity",M,{key:M,value:"CAPTIONS_UNAVAILABLE"}))});
_.dV.addLowPriorityJob(function(){B.observeShorts()},100);
b=B.player.getPlayerState(B.player.getPresentingPlayerType());b!==1||B.isPlayerStarted||_.g6().dispatch(pm(!0));B.updateBackNavContainerWidth();J=_.D(B.currentEndpoint,_.GF);((G=J)==null?0:G.startTimeSeconds)&&B.player.seekTo(J.startTimeSeconds);if(B.JSC$19656_cinematicController||B.cinematicsInitializeJobId)return y.return();B.cinematicsInitializeJobId=_.dV.addLowPriorityJob(function(){B.initCinematicController();B.cinematicsInitializeJobId=void 0});
_.b3(y)})};
_.p.onShortUndoDismiss=function(){var B=this,R=pmU().pop();R!==void 0&&(_.gB(this,function(){B.showCardWithIndex(R)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.p.onShortsDismiss=function(B){if(B=B.detail.reelDismissalActionRenderer)(B=_.D(B.onDismissalCompletionRenderer,_.lJm))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:B}}}),this.scrollAndDismissCard()};
_.p.processReelNonVideoContentDismissalCommand=function(B){var R=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);B=_.D(B,SG7);this.activeDimissalTimeout=setTimeout(function(){R.scrollAndDismissCard()},Number(B==null?void 0:B.delayMs))};
_.p.scrollAndDismissCard=function(){var B=this,R=this.index;pmU().push(R);_.gB(this,function(){var V=B.getPlayableNextIndex();V!==null&&(V=B.getActiveReelVideo(V),B.hideCardWithIndex(R),V==null||V.scrollIntoView({behavior:"smooth",block:"nearest",inline:B.enableScrollIntoViewCenter?"center":"start"}))})};
_.p.hideCardWithIndex=function(B){if(B=this.getActiveReelVideo(B))B.hidden=!0};
_.p.showCardWithIndex=function(B){if(B=this.getActiveReelVideo(B))B.hidden=!1};
_.p.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.p.activeChanged=function(B){_.g6().dispatch(_.or({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:B}}));if(B)document.addEventListener("keydown",_.Bc(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var R;(R=this.player)==null||R.sendAbandonmentPing()}var V;(V=this.player)==null||V.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Bc(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.p.graftClientVisualElements=function(){if(this.data){var B=_.WK();_.xah(B,_.XT({response:this.reelWatchSequenceResponse}));_.YJ(B,this.nextReelVe);_.YJ(B,this.prevReelVe);_.k("kevlar_shorts_auto_advance")&&(_.YJ(B,this.loopToggleOffVe),_.YJ(B,this.loopToggleOnVe));_.YJ(B,this.ambientModeToggleVe);_.cz(_.TE(),[this.nextReelVe,this.prevReelVe]);_.k("web_shorts_paused_state_logging")&&_.YJ(B,this.reelPlayerPausedStateRendererVe)}};
_.p.graftNvcRenderer=function(){var B,R,V,e,X=this.index<0?(B=this.shortsProcessedPrevSequence)==null?void 0:(R=B[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:R.command:(V=this.shortsProcessedSequence)==null?void 0:(e=V[this.index])==null?void 0:e.command;if(X&&this.isNonVideoContentCommand(X)){B=_.D(X,_.vL);var Y,t;(B=(Y=_.D(B==null?void 0:B.renderer,_.Pxb))==null?void 0:(t=Y.loggingDirectives)==null?void 0:t.trackingParams)&&_.WK().graftServerVe(B)}};
_.p.setActiveIndex=function(){_.Oz().resolve(_.BD).setActiveIndex(this.index)};
_.p.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.p.lazyUpdateMiniplayerData=function(){var B=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.dV.addLowPriorityJob(function(){B.updateMiniplayerData();B.updateMiniplayerDataJobId=void 0}))};
_.p.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.dV.cancelJob(this.updateMiniplayerDataJobId)};
_.p.updateMiniplayerData=function(){var B,R,V,e=_.Oz().resolve(_.An),X={shortsData:this.getCurrentShort(),previousButtonDisabled:!((B=this.prevButtonData)==null||!B.isDisabled),nextButtonDisabled:!((R=this.nextButtonData)==null||!R.isDisabled),playabilityStatus:(V=this.playerData)==null?void 0:V.playabilityStatus};_.D3(e,X)};
_.p.resetPlayerLocation=function(){var B=this.getPlayer();this.initialPlayerContainer&&(B.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.p.movePlayerToVideo=function(B,R){var V=this;R=R===void 0?!0:R;var e=this.getActiveReelVideo(B),X=this.getPlayer();if(e){this.overlayContainer||(this.overlayContainer=_.w(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||X.appendTo(this.overlayContainer.playerContainer,void 0,!0));e.appendChild(this.overlayContainer);var Y;(Y=this.player)==null||Y.setSize(NaN,NaN);this.isActive||_.kD(_.dV,function(){V.isActive=!0});
X.style.visibility="visible";_.k("reels_web_disable_rtr_tick")||_.k("reels_web_use_pbs_first_shorts")&&B===0||_.zp("r_tr");this.currentPlayerIndex=B;e.appendChild(this.errorScreenContainer);var t;(t=this.JSC$19656_cinematicController)==null||_.PX4(t)}else R?_.dV.addLowPriorityJob(function(){V.movePlayerToVideo(V.index,!1)}):Math.random()<=_.RC("web_shorts_error_logging_threshold")&&_.v5(new _.H8("Trying to movePlayerToVideo with undefined container.",{firstAttempt:R,
index:B}))};
_.p.enableFormatFirst=function(B){return _.k("web_enable_format_first")||B.adsOverlay&&_.k("web_enable_format_first_ads_only")||B.reelPlayerOverlayRenderer&&_.k("web_enable_format_first_organic_only")};
_.p.getAspectRatio=function(B){if(B!=null&&B.thumbnail&&this.enableFormatFirst(B))return"--ytd-shorts-player-ratio: "+Ovn(B.thumbnail)};
_.p.getBackgroundImage=function(B){if(B!=null&&B.thumbnail)return(B=_.Cc(B.thumbnail.thumbnails))?'background-image:url("'+B+'");':"background-color:black;"};
_.p.onPersistentPanelActiveChanged=function(){var B=this.getCurrentShort();if(B&&this.enableFormatFirst(B)&&(B==null?0:B.thumbnail)&&Ovn(B.thumbnail)!==.5625){var R;(R=this.player)==null||R.setSize(NaN,NaN)}};
_.p.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.p.moveCinematicsToVideo=function(){var B=_.w(this.hostElement).querySelector("ytd-reel-video-renderer");(B==null?0:B.cinematicContainer)&&B.cinematicContainer!==this.shortsCinematicContainer.parentElement&&B.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.p.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.p.updatePrevButtonData=function(){var B=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(B){var R;this.prevButtonData=B=Object.assign({},B,{accessibility:{label:_.Wz("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:B.isDisabled||this.index===-(((R=this.shortsProcessedPrevSequence)==null?void 0:R.length)||0),tooltip:this.isUpArrowHidden?"":_.Wz("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=B=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.p.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.p.updateNextButtonData=function(){var B=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(B){var R;this.nextButtonData=B=Object.assign({},B,{accessibility:{label:_.Wz("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:B.isDisabled||this.index===((R=this.shortsProcessedSequence)==null?void 0:R.length),tooltip:_.Wz("NEXT_VIDEO_LABEL")||""})}};
_.p.getPlayablePreviousIndex=function(){for(var B,R=this.index-1;R>=-(((B=this.prevShortsSequence)==null?void 0:B.length)||0);R--)if(!pmU().includes(R))return R;return null};
_.p.getIndexInSequence=function(B,R){return B.findIndex(function(V){var e;return((e=_.D(V.command,_.GF))==null?void 0:e.videoId)===R})};
_.p.handlePrevButtonClick=function(B){var R=this,V,e;return _.W(function(X){V=R.getPlayablePreviousIndex();if(V===null)return X.return();R.gestureType=((e=B)==null?void 0:e.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";V===0&&(R.hidePreviousButtonImmediately=!0);if(R.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){R.transitionToVideoThrottle.fire(V)}),X.return();
R.scrollToVideoThrottle.fire(V);_.b3(X)})};
_.p.getPlayableNextIndex=function(){for(var B,R=this.index+1;R<(((B=this.shortsProcessedSequence)==null?void 0:B.length)||0);R++)if(!pmU().includes(R))return R;return null};
_.p.handleNextButtonClick=function(B,R){var V=this,e,X;return _.W(function(Y){e=V.getPlayableNextIndex();if(e===null)return Y.return();e===1&&(V.showPreviousButtonImmediately=!0);V.gestureType=((X=B)==null?void 0:X.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";R&&(V.gestureType=R);if(V.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){V.transitionToVideoThrottle.fire(e)}),Y.return();
V.scrollToVideoThrottle.fire(e);_.b3(Y)})};
_.p.handleReelNavigateCommand=function(B,R,V){(B=_.D(B,yVe))&&R&&B.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(V)};
_.p.loadVideo=function(B,R){R=R===void 0?!1:R;if(B!==this.currentPlayerIndex){_.g6().dispatch(pm(!1));if(this.isAd()&&!R){var V;(V=this.player)==null||V.notifyShortsAdSwipeEvent()}if((R=this.JSC$19656_cinematicController)!=null){var e;(e=R.currentCinematicEffect)==null||e.pause()}if((e=this.JSC$19656_cinematicController)!=null){var X;(X=e.currentCinematicEffect)==null||X.clear()}e=B>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(e));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var Y,t,b,J;X=B<0?(Y=this.shortsProcessedPrevSequence)==null?void 0:(t=Y[this.shortsProcessedPrevSequence.length+B])==null?void 0:t.command:(b=this.shortsProcessedSequence)==null?void 0:(J=b[B])==null?void 0:J.command;this.index=B;this.gestureType||(this.gestureType=e?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
X&&this.isVideoContentCommand(X)&&(this.ytComponentBehavior.resolveCommand(X,{form:{createScreenConfig:{clickedVisualElement:e?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(X&&this.isNonVideoContentCommand(X)){this.currentEndpoint=X;this.data=void 0;Y=_.WK();t=_.D(X,_.vL);var G,y;(t=(G=_.D(t==null?void 0:t.renderer,_.Pxb))==null?void 0:(y=G.screenLoggingData)==null?void 0:y.screenVeType)&&_.py(Y,t);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo()}var S,M;if(((S=this.reelWatchSequenceResponse)==null?0:S.continuationEndpoint)&&((M=this.reelWatchSequenceResponse)==null?0:M.entries)&&B===this.reelWatchSequenceResponse.entries.length-1){var f,z;G={contentPlaybackContext:_.yV({},(z=_.D((f=this.currentEndpoint)==null?void 0:f.commandMetadata,_.$a))==null?void 0:z.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:G})}var T,L,Q;((T=this.reelWatchSequenceResponse)==
null?0:T.prevContinuationEndpoint)&&B===-(((L=this.reelWatchSequenceResponse)==null?void 0:(Q=L.prevEntries)==null?void 0:Q.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.p.setMiniplayerPreview=function(B){B=(B===void 0?0:B)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var R,V,e=_.Oz().resolve(_.An),X={shortsData:void 0,shortsPreviewThumbnail:B?(R=this.shortsProcessedSequence)==null?void 0:(V=R[B])==null?void 0:V.thumbnail:void 0};_.D3(e,X)};
_.p.updateTitle=function(B){var R,V;B=(B==null?0:B.adPlacements)?"":(V=B==null?void 0:(R=B.videoDetails)==null?void 0:R.title)!=null?V:"";_.OI(this.hostElement,"yt-update-title",B)};
_.p.registerPanel=function(B){var R=_.Oz().resolve(_.Sf);if(R){B=_.h(B.engagementPanels||[]);for(var V=B.next();!V.done;V=B.next()){V=V.value;var e=V.engagementPanelSectionListRenderer,X=void 0,Y=void 0,t=void 0,b=void 0,J=((X=e)==null?void 0:X.targetId)||((Y=e)==null?void 0:Y.panelIdentifier)||((t=e)==null?void 0:(b=t.identifier)==null?void 0:b.tag);X=e=void 0;(X=(e=R).registerPanelContent)==null||X.call(e,J,V)}}};
_.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;_.g6().dispatch(pm(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.g6().dispatch(YGm(!1));var B=_.Oz().resolve(_.BD);B.dismissedIndices=[];B.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.Oz().resolve(_.An).close(!0)};
_.p.processAppendReelWatchSequenceContinuationEntriesAction=function(B){var R=this,V;(V=this.intersectionObserver)==null||V.disconnect();B=B.appendReelWatchSequenceContinuationEntriesAction;if(B==null?0:B.entries){var e;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.MI(((e=this.reelWatchSequenceResponse)==null?void 0:e.entries)||[]),_.MI(B.entries)),continuationEndpoint:B.continuationEndpoint})}else if(B==null?0:B.prevEntries){var X;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.MI(((X=this.reelWatchSequenceResponse)==null?void 0:X.prevEntries)||[]),_.MI(B.prevEntries)),prevContinuationEndpoint:B.prevContinuationEndpoint});_.dV.addLowPriorityJob(function(){R.movePlayerToVideo(R.index);var Y;(Y=R.getActiveReelVideo(R.index))==null||Y.scrollIntoView({block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.dV.addLowPriorityJob(function(){R.observeShorts()},100)};
_.p.processWatchSequence=function(B){var R=this;return B.map(function(V){V=V.command;if(R.isVideoContentCommand(V)){var e=_.D(V,_.GF);return{reelPlayerOverlayRenderer:_.D(e==null?void 0:e.overlay,_.n6a),thumbnail:e.thumbnail,command:V}}return R.isNonVideoContentCommand(V)?(e=_.D(V,_.vL),{reelNonVideoContentRenderer:_.D(e==null?void 0:e.renderer,_.Pxb),command:V}):{command:V}})};
_.p.calculateIntersectionObserverThreshold=function(){if(!_.k("web_shorts_dynamic_intersection_observer_threshold"))return.6;var B=_.w(this.hostElement).querySelector("ytd-reel-video-renderer"),R=1;(B==null?0:B.offsetHeight)&&(B==null?0:B.offsetWidth)&&(R=Math.min(B.offsetHeight,this.shortsContainer.offsetHeight)/B.offsetHeight*(Math.min(B.offsetWidth,this.shortsContainer.offsetWidth)/B.offsetWidth));return Math.round(R*.6*10)/10};
_.p.isVideoContentCommand=function(B){_.Oz().resolve(_.BD);return!!_.D(B,_.GF)};
_.p.isNonVideoContentCommand=function(B){_.Oz().resolve(_.BD);return!!_.D(B,_.vL)};
_.p.initCinematicController=function(){var B=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19656_cinematicController=new _.Xg(this.shortsCinematicContainer,this.player);var R,V=_.D((R=this.data)==null?void 0:R.background,_.MX);_.CXU(this.JSC$19656_cinematicController,V);_.$Br(this.JSC$19656_cinematicController,nM4(V));_.mBi(this.JSC$19656_cinematicController);_.dV.addLowPriorityJob(function(){B.moveCinematicsToVideo()})}};
_.p.handleMiniplayerNavigateShorts=function(B){B==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():B==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.p.handleSignalActionToggleShortsPictureInPicture=function(){if(_.Oz().resolve(_.An).pictureInPictureSupported()){var B=_.Oz().resolve(_.BD);if(_.k("web_shorts_pip")){var R=_.Oz().resolve(_.An);B.isShortsPipActive()?R.deactivate():R.isMiniplayerActive()||(_.Up().shortsPipActivation=!0,_.UVN(R))}}};
_.p.shouldDisplayReelVideoOverlay=function(B,R){return _.k("web_enable_shorts_new_carousel")?Math.abs(B-R)<2:!0};
_.mh.Object.defineProperties(NA.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.reelWatchSequenceResponse)!=null&&B.prevEntries)return this.processWatchSequence([].concat(_.MI(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var B=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!B)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var R=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.MI(this.prevShortsSequence.slice(0,R)),[B],_.MI(this.prevShortsSequence.slice(R+
1)))}R=this.index+this.shortsProcessedPrevSequence.length;B.thumbnail=this.shortsProcessedPrevSequence[R].thumbnail;return[].concat(_.MI(this.shortsProcessedPrevSequence.slice(0,R)),[B],_.MI(this.shortsProcessedPrevSequence.slice(R+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.reelWatchSequenceResponse)!=null&&B.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var B=this.getCurrentShort();if(!B||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[B];if(B==null||!B.reelNonVideoContentRenderer){var R=this.getIndexInSequence(this.shortsSequence,_.D(this.currentEndpoint,_.GF).videoId);if(this.index===0&&R!==-1)return this.currentPlayerIndex=this.index=R,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.MI(this.shortsSequence.slice(0,this.index)),[B],_.MI(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){B.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var V,e,X,Y;R=((e=_.D((V=this.shortsProcessedSequence[0])==null?void 0:V.command,_.GF))==null?void 0:e.videoId)===((Y=_.D((X=this.shortsSequence[0])==null?void 0:X.command,_.GF))==null?void 0:Y.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.MI(this.shortsProcessedSequence.slice(0,
this.index)),[B],_.MI(this.shortsSequence.slice(R)))}return[B].concat(_.MI(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var B=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;B&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(B)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 B,R;return this.index===((B=this.reelWatchSequenceResponse)==null?void 0:(R=B.entries)==null?void 0:R.length)}var V;return!((V=this.reelWatchSequenceResponse)==null?0:V.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var B;(B=this.delayedActiveIndexUpdateDebouncer)==null||B.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return this.isShortPlayable()||((R=_.D((B=this.data)==null?void 0:B.watchStatus,_.p6l))==null?void 0:(V=R.style)==null?void 0:V.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var B=this,R=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),V;if((this.data||R)&&(((V=this.data)==null?0:V.engagementPanels)||this.isAd()||R)){R=!1;this.activePanel="shorts-comments-panel";var e;V=_.h(((e=this.data)==null?void 0:e.engagementPanels)||[]);for(e=V.next();!e.done;e=V.next()){e=e.value.engagementPanelSectionListRenderer;var X=void 0,Y=void 0,t=void 0,b=void 0;if((((X=e)==null?void 0:(Y=X.identifier)==
null?void 0:Y.tag)||((t=e)==null?void 0:t.targetId)||((b=e)==null?void 0:b.panelIdentifier))===this.activePanel){R=!0;break}}if(this.isPersistentPanelActive){var J=_.Oz().resolve(_.Sf);_.kD(_.dV,function(){J.showPanel(B.activePanel,void 0,void 0,void 0,null)},100)}var G;
V=[].concat(_.MI(Object.values(((G=this.data)==null?void 0:G.engagementPanels)||{})));if(_.k("enable_preview_panel_for_shorts_search_suggested_action")){var y,S,M,f,z;((f=_.D((y=this.data)==null?void 0:(S=y.overlay)==null?void 0:(M=S.reelPlayerOverlayRenderer)==null?void 0:M.metapanel,_.Cxl))==null?void 0:(z=f.metadataItems)==null?void 0:z.find(function(T){var L,Q;return((L=_.D(T,MlU))==null?void 0:(Q=L.icon)==null?void 0:Q.iconType)==="SEARCH"}))!==void 0&&V.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}G=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);y=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return G===void 0&&y===void 0||(G==null?0:G.isDisabled)||(y==null?void 0:y.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!R?(R=V==null?void 0:V.findIndex(function(T){var L,
Q;return((L=T.engagementPanelSectionListRenderer)==null?void 0:(Q=L.identifier)==null?void 0:Q.tag)==="shorts-comments-panel"}),R===-1||R===void 0||V!=null&&V.splice(R,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Wz("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Wz("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:_.Wz("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Wz("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(_.MI(Object.values(V||
{})))):V}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.shortsProcessedSequence)==null?void 0:B[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var B=this,R,V,e;if((R=this.playerData)==null?0:(V=R.playabilityStatus)==null?0:(e=V.errorScreen)==null?0:e.playerInterstitialRenderer)return _.dV.addLowPriorityJob(function(){B.movePlayerToVideo(B.index)}),this.playerData.playabilityStatus.errorScreen;
var X,Y;return((X=this.data)==null?void 0:X.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((Y=this.data)==null?0:Y.watchStatus)&&_.D(this.data.watchStatus,_.Yeh)?(_.dV.addLowPriorityJob(function(){B.movePlayerToVideo(B.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.mh.Object.defineProperties(NA,{template:{configurable:!0,enumerable:!0,get:function(){if(DtN===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);DtN=B}B=DtN;return B}}});
NA.prototype.onNextButtonDataChange=NA.prototype.onNextButtonDataChange;NA.prototype.onPrevButtonDataChange=NA.prototype.onPrevButtonDataChange;NA.prototype.onPersistentPanelActiveChanged=NA.prototype.onPersistentPanelActiveChanged;NA.prototype.lazyUpdateMiniplayerData=NA.prototype.lazyUpdateMiniplayerData;NA.prototype.onShortsPipActiveChanged=NA.prototype.onShortsPipActiveChanged;NA.prototype.setActiveIndex=NA.prototype.setActiveIndex;NA.prototype.graftNvcRenderer=NA.prototype.graftNvcRenderer;
NA.prototype.graftClientVisualElements=NA.prototype.graftClientVisualElements;NA.prototype.onActiveChanged=NA.prototype.onActiveChanged;NA.prototype.onShortsDismiss=NA.prototype.onShortsDismiss;NA.prototype.onShortUndoDismiss=NA.prototype.onShortUndoDismiss;NA.prototype.playerDataChanged=NA.prototype.playerDataChanged;NA.prototype.afterPlayerStarted=NA.prototype.afterPlayerStarted;NA.prototype.unhideCurrentOverlay=NA.prototype.unhideCurrentOverlay;NA.prototype.onServiceRequestCompleted=NA.prototype.onServiceRequestCompleted;
NA.prototype.engagementPanelsChanged=NA.prototype.engagementPanelsChanged;NA.prototype.onFullscreenChange=NA.prototype.onFullscreenChange;NA.prototype.onResize=NA.prototype.onResize;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.lr.YtPageBehavior),_.Z("design:type",Object)],NA.prototype,"ytPageBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],NA.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.LC),_.Z("design:type",Object)],NA.prototype,"ironResizableBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],NA.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],NA.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],NA.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"playerData",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"reelWatchSequenceResponse",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"cachedReelWatchSequenceResponse",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"currentEndpoint",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"nextButtonData",void 0);
_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"prevButtonData",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"isPreviousPageShorts",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"index",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"delayedActiveIndex",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"playablePreviousIndex",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"player",void 0);
_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"isPlayerPaused",void 0);_.r([_.E({selector:B9i}),_.Z("design:type",Object)],NA.prototype,"isPlayerStarted",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"intersectionObserver",void 0);_.r([_.E(),_.Z("design:type",Number)],NA.prototype,"cinematicsInitializeJobId",void 0);_.r([_.E(),_.Z("design:type",Number)],NA.prototype,"updateMiniplayerDataJobId",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"fitToVisibleBounds",void 0);
_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"pageSubtype",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],NA.prototype,"enablePreviousContinuation",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"shortsPipEnabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"isDark",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"shortsViewTransitions",void 0);
_.r([_.E({selector:_.GP,reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"isFullscreen",void 0);_.r([_.E({selector:_.yN,reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"isShortsPipActive",void 0);_.r([_.Yp("#shorts-inner-container"),_.Z("design:type",HTMLElement)],NA.prototype,"shortsInnerContainer",void 0);_.r([_.Yp("#back-nav-button ytd-button-renderer"),_.Z("design:type",_.sH)],NA.prototype,"backNavButton",void 0);
_.r([_.Yp("#shorts-container"),_.Z("design:type",HTMLElement)],NA.prototype,"shortsContainer",void 0);_.r([_.C4("error-screen"),_.Z("design:type",HTMLElement)],NA.prototype,"errorScreenContainer",void 0);_.r([_.C4("player"),_.Z("design:type",Object)],NA.prototype,"playerElement",void 0);_.r([_.C4("shorts-cinematic-container"),_.Z("design:type",HTMLElement)],NA.prototype,"shortsCinematicContainer",void 0);
_.r([_.C4("initial-player-container"),_.Z("design:type",HTMLElement)],NA.prototype,"initialPlayerContainer",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"buttonOverride",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"anchoredPanelActive",void 0);_.r([_.E(),_.Z("design:type",String)],NA.prototype,"activePanel",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"isActive",void 0);
_.r([_.E({selector:oCm,reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"smallScreenPersistentPanel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"isPersistentPanelActive",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"smallScreenSqueezeBack",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"enableScrollIntoViewCenter",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"formatFirst",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],NA.prototype,"enableFlexibleOverlay",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"panelContainer",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"overlayContainer",void 0);_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"isShortsInitialized",void 0);_.r([_.K("reelWatchSequenceResponse"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NA.prototype,"prevShortsSequence",null);
_.r([_.K("data","prevShortsSequence"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NA.prototype,"shortsProcessedPrevSequence",null);_.r([_.K("reelWatchSequenceResponse"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NA.prototype,"shortsSequence",null);_.r([_.K("data","shortsSequence"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NA.prototype,"shortsProcessedSequence",null);
_.r([_.E({reflectToAttribute:!0}),_.K("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NA.prototype,"isUpArrowHidden",null);_.r([_.E({reflectToAttribute:!0}),_.K("reelWatchSequenceResponse","index","endOfNextContinuation"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NA.prototype,"isDownArrowHidden",null);
_.r([_.E(),_.K("index"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],NA.prototype,"activeIndex",null);_.r([_.K("isShortPlayable","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NA.prototype,"shouldRenderOfflineContent",null);_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"onResize",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NA.prototype,"anchoredEngagementPanels",null);
_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"watchWhileEngagementPanels",void 0);_.r([_.XX("isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"onFullscreenChange",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"engagementPanelsChanged",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],NA.prototype,"onServiceRequestCompleted",null);_.r([_.K("data","shortsSequence","index"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NA.prototype,"activeReel",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"unhideCurrentOverlay",null);
_.r([_.XX("isPlayerStarted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"afterPlayerStarted",null);_.r([_.K("playerData","reelWatchSequenceResponse","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NA.prototype,"errorScreen",null);_.r([_.K("errorScreen"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NA.prototype,"hasError",null);
_.r([_.XX("playerData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],NA.prototype,"playerDataChanged",null);_.r([_.R_("yt-dismissible-item-undo-feedback"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"onShortUndoDismiss",null);_.r([_.R_("yt-disable-lockup-interaction"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],NA.prototype,"onShortsDismiss",null);
_.r([_.bp("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"onActiveChanged",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"graftClientVisualElements",null);_.r([_.XX("currentPlayerIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"graftNvcRenderer",null);
_.r([_.XX("index"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"setActiveIndex",null);_.r([_.XX("isShortsPipActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"onShortsPipActiveChanged",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"lazyUpdateMiniplayerData",null);
_.r([_.E(),_.Z("design:type",Object)],NA.prototype,"onOverlayDensityChanged",void 0);_.r([_.XX("isPersistentPanelActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"onPersistentPanelActiveChanged",null);_.r([_.XX("index","data","isUpArrowHidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"onPrevButtonDataChange",null);
_.r([_.XX("index","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NA.prototype,"onNextButtonDataChange",null);NA=_.r([_.A({is:"ytd-shorts"})],NA);_.Db.registerService(_.JPN,NA);
_.wz();
}catch(e){_._DumpException(e)}
try{
_.aI("JzFVk");
var u$e=function(B){return _.N("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},nKj(B.data.ctaButton,{buttonViewModel:{}}),_.N(_.Hr,{text:B.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var OMn;var oMU;var KV=function(){return _.c.apply(this,arguments)||this};
_.l(KV,_.c);KV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
KV.prototype.computeBlueBottomLink=function(B){return B};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],KV.prototype,"data",void 0);_.r([_.E({computed:"computeIcon_(data.bottomIcon)"}),_.Z("design:type",String)],KV.prototype,"bottomIcon",void 0);
_.r([_.E({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],KV.prototype,"enableBlueBottomLink",void 0);KV=_.r([_.A({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],KV);
_.F(KV,"ytd-web-answer-renderer",function(){if(oMU!==void 0)return oMU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return oMU=B},{mode:_.up("kevlar_poly_si_batch_j035")?1:2});var BRj;var IU=function(){var B=_.c.apply(this,arguments)||this;B.hasChipBar=!1;return B};
_.l(IU,_.c);IU.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}}};
IU.prototype.computeHasChipBar=function(B){return!(B==null||!B.chipBar)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],IU.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Z("design:type",Object)],IU.prototype,"hasChipBar",void 0);IU=_.r([_.A({is:"ytd-search-header-renderer",disableElementRegistration:!0})],IU);
_.F(IU,"ytd-search-header-renderer",function(){if(BRj!==void 0)return BRj;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return BRj=B},{mode:1});var RK4;var EE=function(){return _.c.apply(this,arguments)||this};
_.l(EE,_.c);EE.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],EE.prototype,"data",void 0);EE=_.r([_.A({disableElementRegistration:!0,is:"ytd-page-continuation"})],EE);
_.F(EE,"ytd-page-continuation",function(){if(RK4!==void 0)return RK4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return RK4=B},{mode:1});var VTN;var eKz;var Xl4;var Qd=function(){return _.c.apply(this,arguments)||this};
_.l(Qd,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Qd.prototype,"data",void 0);Qd=_.r([_.A({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Qd);
_.F(Qd,"ytd-watch-card-one-vs-one-event",function(){if(Xl4!==void 0)return Xl4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Xl4=B},{mode:1});var qv=function(){return _.c.apply(this,arguments)||this};
_.l(qv,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qv.prototype,"data",void 0);qv=_.r([_.A({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],qv);
_.F(qv,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(eKz!==void 0)return eKz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return eKz=B},{mode:1});var plj;var cQ=function(){return _.c.apply(this,arguments)||this};
_.l(cQ,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cQ.prototype,"data",void 0);cQ=_.r([_.A({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],cQ);
_.F(cQ,"ytd-banner-and-box-hero-image-renderer",function(){if(plj!==void 0)return plj;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return plj=B},{mode:1});var YC4;var AP=function(){var B=_.c.apply(this,arguments)||this;B.modern=_.k("web_modern_buttons");return B};
_.l(AP,_.c);AP.prototype.computeIcon=function(){var B,R,V=(B=this.data)==null?void 0:(R=B.icon)==null?void 0:R.iconType;if(V)return _.RT(V)};
AP.prototype.computeButtonShape=function(){var B;return{buttonText:_.FF((B=this.data)==null?void 0:B.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.mh.Object.defineProperties(AP.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"}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],AP.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],AP.prototype,"modern",void 0);_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.style"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AP.prototype,"buttonColor",null);
AP=_.r([_.A({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],AP);
_.F(AP,"ytd-call-to-action-button-renderer",function(){if(YC4!==void 0)return YC4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return YC4=B},{mode:1});var hKe;var sE=function(){return _.c.apply(this,arguments)||this};
_.l(sE,_.c);sE.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.w(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.$T(this.data.leftThumbnail.thumbnails,216)+")")};
sE.prototype.onLeftThumbnailChanged=sE.prototype.onLeftThumbnailChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],sE.prototype,"data",void 0);_.r([_.XX("data.leftThumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sE.prototype,"onLeftThumbnailChanged",null);sE=_.r([_.A({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],sE);
_.F(sE,"ytd-collage-hero-image-renderer",function(){if(hKe!==void 0)return hKe;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return hKe=B},{mode:1});var tT4;var FQ=function(){return _.c.apply(this,arguments)||this};
_.l(FQ,_.c);FQ.prototype.computeStyle=function(B){return B};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],FQ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],FQ.prototype,"componentStyle",void 0);FQ=_.r([_.A({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],FQ);
_.F(FQ,"ytd-single-hero-image-renderer",function(){if(tT4!==void 0)return tT4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return tT4=B},{mode:1});var Wio;var rD=function(){return _.c.apply(this,arguments)||this};
_.l(rD,_.c);_.p=rD.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:_.k("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.p.computeSubtitle=function(B){if(this.data){var R;if(this.data.upcomingEventData){B=_.FF(B.subtitle);var V=Number(this.data.upcomingEventData.startTime);isNaN(V)||(R=_.s$(_.c7(B,V)))}else R=B.subtitle;return R}};
_.p.onHeroTap=function(B){B.preventDefault();var R=this.data&&this.data.navigationEndpoint;!R||!_.g1(_.Az(B),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.g1(_.Az(B),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.k("kevlar_watchcard_hero_video_renderer_killswitch")?_.OI(this.hostElement,"yt-navigate",{navigationEndpoint:R}):this.ytComponentBehavior.resolveCommand(R))};
_.p.computeHeroTabIndex=function(B){return B&&B.simpleText?-1:0};
_.p.computeHeroRole=function(B){return B&&B.simpleText?"":"link"};
_.p.computeIsReminderButtonPresent=function(B){return!(!B||!B.reminderButton)};
_.p.computeHideBottomItems=function(B){return!(this.computeIsReminderButtonPresent(B)||B.subtitle)};
_.p.dataChanged=function(){var B=this.get("data.buttons.buttonRenderer.serviceEndpoint"),R;((R=_.D(B==null?void 0:B.commandMetadata,_.df))==null?0:R.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(B)};
rD.prototype.dataChanged=rD.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],rD.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],rD.prototype,"data",void 0);
_.r([_.E({computed:"computeSubtitle(data)"}),_.Z("design:type",String)],rD.prototype,"subtitle",void 0);_.r([_.E({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],rD.prototype,"isReminderButtonPresent",void 0);_.r([_.E({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],rD.prototype,"hideBottomItems",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rD.prototype,"dataChanged",null);rD=_.r([_.A({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],rD);
_.F(rD,"ytd-watch-card-hero-video-renderer",function(){if(Wio!==void 0)return Wio;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Wio=B},{mode:1});var bvn;var gD=function(){return _.c.apply(this,arguments)||this};
_.l(gD,_.c);_.p=gD.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(B){return B?[B]:[]};
_.p.computeHeaderStyle=function(B){return B?B.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.p.computeAvatarAriaLabel=function(B){if(B){var R,V,e,X;return(X=(R=B.avatar)==null?void 0:(V=R.accessibility)==null?void 0:(e=V.accessibilityData)==null?void 0:e.label)!=null?X:_.FF(B==null?void 0:B.title)}};
_.p.computeAvatarHeight=function(B){return B==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.p.computeBadgeRowClass=function(B){return(B==null?0:B[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],gD.prototype,"data",void 0);_.r([_.E({computed:"computeTitleBadges(data.titleBadge)"}),_.Z("design:type",Array)],gD.prototype,"titleBadges",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Z("design:type",String)],gD.prototype,"headerStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Z("design:type",String)],gD.prototype,"badgeRowClass",void 0);gD=_.r([_.A({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],gD);
_.F(gD,"ytd-watch-card-rich-header-renderer",function(){if(bvn!==void 0)return bvn;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return bvn=B},{mode:1});var JBe;var jd4;var ZR=function(){return _.c.apply(this,arguments)||this};
_.l(ZR,_.c);ZR.prototype.onMetadataTap=function(B){var R=this.data&&this.data.navigationEndpoint;R&&!_.g1(_.Az(B),this.hostElement,["A".toString()])&&_.OI(this.hostElement,"yt-navigate",{endpoint:R})};
_.mh.Object.defineProperties(ZR.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 B;if(this.data.upcomingEventData){var R=_.FF(this.data.subtitle),V=Number(this.data.upcomingEventData.startTime);isNaN(V)||(B=_.s$(_.c7(R,V)))}else B=this.data.subtitle;return B}}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ZR.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data.style"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ZR.prototype,"isCondensed",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZR.prototype,"subtitle",null);
ZR=_.r([_.A({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],ZR);
_.F(ZR,"ytd-watch-card-compact-video-renderer",function(){if(jd4!==void 0)return jd4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return jd4=B},{mode:1});var UBi;var mv=function(){return _.c.apply(this,arguments)||this};
_.l(mv,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],mv.prototype,"data",void 0);mv=_.r([_.A({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],mv);
_.F(mv,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(UBi!==void 0)return UBi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return UBi=B},{mode:1});var $O=function(){return _.c.apply(this,arguments)||this};
_.l($O,_.c);$O.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}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$O.prototype,"ytRendererStamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$O.prototype,"data",void 0);$O=_.r([_.A({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],$O);
_.F($O,"ytd-vertical-watch-card-list-renderer",function(){if(JBe!==void 0)return JBe;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return JBe=B},{mode:1});var NR7;var CV=function(){var B=_.c.apply(this,arguments)||this;B.ariaExpanded="false";return B};
_.l(CV,_.c);_.p=CV.prototype;_.p.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.p.dataChanged=function(){var B;this.currentSeasonIndex=((B=this.data)==null?void 0:B.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.p.computeEpisodesInfo=function(B,R,V){if(B!==void 0&&R.length===B.length)return B[V]};
_.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(B){return this.ytRendererBehavior.getSimpleString(B).toUpperCase()};
_.p.updateCurrentSeasonIndexFromBinding=function(B){this.currentSeasonIndex=B.detail.value};
CV.prototype.onIronOverlayClosed=CV.prototype.onIronOverlayClosed;CV.prototype.currentSeasonIndexChanged=CV.prototype.currentSeasonIndexChanged;CV.prototype.dataChanged=CV.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],CV.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",String)],CV.prototype,"label",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],CV.prototype,"currentSeasonIndex",void 0);_.r([_.E({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Z("design:type",Object)],CV.prototype,"episodesInfo",void 0);_.r([_.E({value:"false"}),_.Z("design:type",Object)],CV.prototype,"ariaExpanded",void 0);_.r([_.Yp("#lists"),_.Z("design:type",Object)],CV.prototype,"lists",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CV.prototype,"dataChanged",null);_.r([_.bp("currentSeasonIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CV.prototype,"currentSeasonIndexChanged",null);_.r([_.R_("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],CV.prototype,"onIronOverlayClosed",null);
CV=_.r([_.A({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],CV);
_.F(CV,"ytd-watch-card-section-dropdown-renderer",function(){if(NR7!==void 0)return NR7;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return NR7=B},{mode:1});var GIN;var PQ=function(){var B=_.c.apply(this,arguments)||this;B.isSearch=!1;return B};
_.l(PQ,_.c);PQ.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}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],PQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],PQ.prototype,"isSearch",void 0);PQ=_.r([_.A({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],PQ);
_.F(PQ,"ytd-watch-card-section-sequence-renderer",function(){if(GIN!==void 0)return GIN;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return GIN=B},{mode:1});var nKj=_.ll({buttonViewModel:_.qo});_.oA(u$e);_.Br(u$e,"ytd-button-banner-view-model",{propNames:["data"]});var nV=function(){var B=_.c.apply(this,arguments)||this;B.isSearch=!1;return B};
_.l(nV,_.c);
nV.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"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],nV.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],nV.prototype,"rounded",void 0);_.r([_.E(),_.Z("design:type",Object)],nV.prototype,"isSearch",void 0);
nV=_.r([_.A({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],nV);
_.F(nV,"ytd-universal-watch-card-renderer",function(){if(VTN!==void 0)return VTN;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return VTN=B},{mode:1});var yBn;_.mR(_.sx(function(B){var R=B.data;var V;B=!((V=_.Oz().resolve(_.uj(_.E5)))==null||!V());V={};return _.N("overview-message-view-model",{class:_.XE("ytwOverviewMessageViewModelHost",(V.ytwOverviewMessageViewModelDarkBackground=B,V.ytwOverviewMessageViewModelLightBackground=!B,V))},_.N(_.H,{cond:function(){return R().primaryImage},
then:function(e){return _.N(_.ia,{data:e,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.N(_.H,{cond:function(){return R().primaryText},
then:function(){return _.N("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.N(_.Hr,{text:function(){return R().primaryText}}))}}),_.N(_.H,{cond:function(){return R().secondaryText},
then:function(){return _.N("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.N(_.Hr,{text:function(){return R().secondaryText}}))}}))},"yi"),"overview-message-view-model",{props:{data:_.qq}});_.Br(_.ilh,"ytd-overview-answer-view-model",{propNames:["data"]});var un=function(){return _.c.apply(this,arguments)||this};
_.l(un,_.c);un.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"}}}};
un.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],un.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],un.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],un.prototype,"isSearch",void 0);
un=_.r([_.A({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],un);
_.F(un,"ytd-secondary-search-container-renderer",function(){if(yBn!==void 0)return yBn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return yBn=B},{mode:1});var SC2;var OE=function(){var B=_.c.apply(this,arguments)||this;B.renderSecondarySearchContainer=!1;B.isSearch=!1;B.isSearchDova=_.k("dova_on_search");return B};
_.l(OE,_.c);_.p=OE.prototype;_.p.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.p.created=function(){var B=this;this.boundStampSecondarySearchContainerIfFits=function(){B.stampSecondarySearchContainerIfFits()};
_.LQ("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.p.computeIsSearchFrictionPage=function(B){var R,V,e,X,Y;B=B==null?void 0:(R=B.primaryContents)==null?void 0:(V=R.sectionListRenderer)==null?void 0:(e=V.contents)==null?void 0:(X=e[0])==null?void 0:(Y=X.itemSectionRenderer)==null?void 0:Y.contents;if(!B)return!1;R=_.h(B);for(V=R.next();!V.done;V=R.next())if(e=void 0,(e=V.value)==null?0:e.searchFrictionViewModel)return!0;return!1};
_.p.computeShowSecondaryColumn=function(B,R){return!!(R&&R.secondaryContents&&B)};
_.p.activeChanged=function(){var B=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Bc(this,this.debounceStampSecondarySearchContainerIfFits)),_.xp(function(){B.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Bc(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(){_.LJ(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.p.onRetrieveLocation=function(B,R){R.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);B.stopPropagation()};
_.p.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
OE.prototype.dataChanged=OE.prototype.dataChanged;OE.prototype.onRetrieveLocation=OE.prototype.onRetrieveLocation;OE.prototype.persistentGuideChanged=OE.prototype.persistentGuideChanged;OE.prototype.activeChanged=OE.prototype.activeChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],OE.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.v(_.LC),_.Z("design:type",Object)],OE.prototype,"ironResizableBehavior",void 0);_.r([_.E(),_.Z("design:type",Boolean)],OE.prototype,"active",void 0);_.r([_.E(),_.Z("design:type",Object)],OE.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.k("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],OE.prototype,"useBiggerThumbs",void 0);_.r([_.E({reflectToAttribute:!0,value:function(){return _.V_("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],OE.prototype,"biggerThumbsStyle",void 0);_.r([_.E(),_.Z("design:type",Object)],OE.prototype,"renderSecondarySearchContainer",void 0);_.r([_.E({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Z("design:type",Boolean)],OE.prototype,"showSecondaryColumn",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Z("design:type",Boolean)],OE.prototype,"isSearchFrictionPage",void 0);
_.r([_.E(),_.Z("design:type",Object)],OE.prototype,"isSearch",void 0);_.r([_.E(),_.Z("design:type",Object)],OE.prototype,"isSearchDova",void 0);_.r([_.XX("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OE.prototype,"activeChanged",null);_.r([_.XX("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OE.prototype,"persistentGuideChanged",null);
_.r([_.R_("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],OE.prototype,"onRetrieveLocation",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OE.prototype,"dataChanged",null);OE=_.r([_.A({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],OE);
_.F(OE,"ytd-two-column-search-results-renderer",function(){if(SC2!==void 0)return SC2;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return SC2=B},{mode:1});var o2=function(){var B=_.c.apply(this,arguments)||this;B.hasSearchHeader=!1;B.hasSecondaryContent=!1;B.hasBiggerThumbs=_.k("enable_desktop_search_bigger_thumbs");B.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return B};
_.l(o2,_.c);_.p=o2.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:_.Ls(["aa","eocs"])}}};
_.p.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.loadPage_=function(B){this.initCsi();B&&(this.data=B,_.LQ("REFINEMENTS_TUPLE",["FromSearchResponse",B.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Zt(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.p.initCsi=function(){_.fP("results",["ol","cpt"])};
_.p.updateTitle=function(){var B=_.EJ(window.location.href,"q");B||(B=_.EJ(window.location.href,"search_query"));_.OI(this.hostElement,"yt-update-title",B||"")};
_.p.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.p.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.k("web_srp_data_changed_terminate_imp_killswitch")||_.oF(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(B){var R;B=B==null?void 0:(R=B.header)==null?void 0:R.searchHeaderRenderer;return!!B&&(!!B.searchFilterButton||!!B.chipBar)};
_.p.computeHasSecondaryContent=function(B){var R,V;return!!(B==null?0:(R=B.contents)==null?0:(V=R.twoColumnSearchResultsRenderer)==null?0:V.secondaryContents)};
_.mh.Object.defineProperties(o2,{template:{configurable:!0,enumerable:!0,get:function(){if(OMn===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);OMn=B}B=OMn;return B}}});
o2.prototype.onReloadContinuationFinish=o2.prototype.onReloadContinuationFinish;o2.prototype.dataChanged=o2.prototype.dataChanged;_.r([_.v(_.lr.YtPageBehavior),_.Z("design:type",Object)],o2.prototype,"ytPageBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],o2.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],o2.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],o2.prototype,"data",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],o2.prototype,"monitorScroll",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],o2.prototype,"hasSearchHeader",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],o2.prototype,"hasSecondaryContent",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],o2.prototype,"hasBiggerThumbs",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],o2.prototype,"dataChanged",null);
_.r([_.R_("yt-reload-continuation-finish"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],o2.prototype,"onReloadContinuationFinish",null);o2=_.r([_.A({is:"ytd-search"})],o2);_.Db.registerService(_.bVY,o2);
_.wz();
}catch(e){_._DumpException(e)}
try{
_.aI("h8y2qb");
var nke=function(B){if(B=_.lwd(B)){var R;(R=B.sources)!=null&&R[0]?(R=_.awI(B),R=R<1?"VERTICAL":R>1?"HORIZONTAL":"SQUARE"):R=void 0;return R}},z1=function(B){_.ME.call(this,"upload");
this.opts.query=B},O4N=function(B,R){return _.N(uNi,{data:B,
onYtNavigate:R})},BNi=function(B,R){return B.map(function(V){if(V.tabRenderer)return oum(V.tabRenderer);
if(V.expandableTabRenderer&&R){var e=V.expandableTabRenderer;return{customTabRenderable:function(){return R(e)}}}return{}})},oum=function(B){return{identifier:B.tabIdentifier,
aTagConfig:_.T2({innertubeCommand:B.endpoint,forceNewState:!0}),title:B.title,selected:B.selected,disabled:B.unselectable,icon:B.icon}},R8N=function(B,R){return _.p7(B.entities,"pageHeaderEntity",R)},Vde=function(B){return _.or({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:B})},e84=function(B){if(!_.uP(document,"gtm-noscript")){var R=document.createElement("noscript");
R.id="gtm-noscript";R.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+B+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(R)}};_.eY(z1,_.ME);z1.prototype.JSC$7982_setLabel=function(B){z1.superClass_.JSC$7982_setLabel.call(this,B);return this};
z1.prototype.addUploadMetadata=function(B,R){z1.superClass_.addUploadMetadata.call(this,B,R);return this};var XV7=function(B){if(B!=="youtubebanner"&&B!=="youtube-channel-banner")throw Error("Ul");z1.call(this,B)};
_.l(XV7,z1);XV7.prototype.JSC$7982_setLabel=function(B){z1.prototype.JSC$7982_setLabel.call(this,B);return this};
XV7.prototype.addUploadMetadata=function(B,R){z1.prototype.addUploadMetadata.call(this,B,R);return this};var pVz=[_.LC,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(B){_.Mr(B).path[0]!==this&&(this.resetLayout(),B.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var B=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.p8(this._layoutDebouncer,_.yM,B);_.Y6(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var B=this;requestAnimationFrame(function(){B.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(B){this.resizerShouldNotify(B)&&this._notifyDescendant(B)},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 Y3N=[_.Uxv,{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(B,R){var V=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[B];if(!V)throw new ReferenceError(this._getUndefinedMsg(B));B=this._boundEffect(V,R||{});B.setUp();return B},
_effectsChanged:function(B,R,V){this._tearDownEffects();B&&V&&(B.split(" ").forEach(function(e){var X;e!==""&&((X=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[e])?this._effects.push(this._boundEffect(X,R[e])):console.warn(this._getUndefinedMsg(e)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(B,R){R=R||{};var V=parseFloat(R.startsAt||0),e=parseFloat(R.endsAt||1),X=e-V,Y=function(){};
e=V===0&&e===1?B.run:function(t,b){B.run.call(this,Math.max(0,(t-V)/X),b)};
return{setUp:B.setUp?B.setUp.bind(this,R):Y,run:B.run?e.bind(this):Y,tearDown:B.tearDown?B.tearDown.bind(this):Y}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(B){B.setUp()!==!1&&this._effectsRunFn.push(B.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(B){B.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(B,R){this._effectsRunFn&&this._effectsRunFn.forEach(function(V){V(B,R)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var B=this._clampedScrollTop;this._updateScrollState(B);this.threshold>0&&this._setThresholdTriggered(B>=this.threshold)}},
_getDOMRef:function(B){console.warn("_getDOMRef","`"+B+"` is undefined")},
_getUndefinedMsg:function(B){return"Scroll effect `"+B+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+B+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Vl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(B){var R={};B=parseFloat(B.scalar);R.background=this._getDOMRef("background");R.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");R.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");R.deltaBg=R.backgroundFrontLayer.offsetHeight-R.background.offsetHeight;R.deltaBg===0?(isNaN(B)&&(B=.8),R.deltaBg=(this._dHeight||0)*B):(isNaN(B)&&(B=
1),R.deltaBg*=B);this._fxParallaxBackground=R},
run:function(B){var R=this._fxParallaxBackground;this.transform("translate3d(0px, "+R.deltaBg*Math.min(1,B)+"px, 0px)",R.backgroundFrontLayer);R.backgroundRearLayer&&this.transform("translate3d(0px, "+R.deltaBg*Math.min(1,B)+"px, 0px)",R.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var h8z;var tdn;var Ww7=function(){};
_.p=Ww7.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(){};
Ww7=_.Sm({_template:function(){if(tdn!==void 0)return tdn;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;h8z===void 0&&(h8z=document.createElement("template"));var e=h8z;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return tdn=B},
is:"tp-yt-app-header",behaviors:[Y3N,pVz],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 B=_.Mr(this.$.slot).getDistributedNodes(),R=0,V;V=B[R];R++)if(V.nodeType===Node.ELEMENT_NODE)if(V.hasAttribute("sticky")){this._stickyElRef=V;break}else this._stickyElRef||(this._stickyElRef=V);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var B=this._clampedScrollTop,R=this._height===0||B===0,V=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;R||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();R?this._updateScrollState(B,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=V}},
_updateScrollState:function(B,R){if(this._height!==0){var V=0,e=this._top;var X=this._maxHeaderTop;var Y=B-this._lastScrollTop,t=Math.abs(Y),b=B>this._lastScrollTop,J=performance.now();this._mayMove()&&(V=this._clamp(this.reveals?e+Y:B,0,X));B>=this._dHeight&&(V=this.condenses&&!this.fixed?Math.max(this._dHeight,V):V,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&t<100){if(J-this._initTimestamp>300||this._wasScrollingDown!==b)this._initScrollTop=B,this._initTimestamp=J;B>=X&&
(Math.abs(this._initScrollTop-B)>30||t>10?(b&&B>=X?V=X:!b&&B>=this._dHeight&&(V=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((V-e)/(Y/(J-this._lastTimestamp)),0,300)+"ms"):V=this._top)}X=this._dHeight===0?B>0?1:0:V/this._dHeight;R||(this._lastScrollTop=B,this._top=V,this._wasScrollingDown=b,this._lastTimestamp=J);if(R||X!==this._progress||e!==V||B===0)this._progress=X,this._runEffects(X,V),this._transformHeader(V)}},
_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(B){this.translate3d(0,-B+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&B>=this._stickyElTop?Math.min(B,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(B,R,V){return Math.min(V,Math.max(R,B))},
_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),_.Mr(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(B){switch(B){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Mr(this).querySelector("[main-title]");case "condensedTitle":return _.Mr(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var bHr;var Jg4;_.Sm({_template:function(){if(Jg4!==void 0)return Jg4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;bHr===void 0&&(bHr=document.createElement("template"));var e=bHr;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return Jg4=B},
is:"tp-yt-app-header-layout",behaviors:[pVz],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Mr(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var B=this.header;if(this.isAttached&&B){this.$.wrapper.classList.remove("initializing");B.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)B.style.left=
"",B.style.right="";else{var R=this.getBoundingClientRect(),V=document.documentElement.clientWidth-R.right;B.style.left=R.left+"px";B.style.right=V+"px"}R=this.$.contentContainer.style;V=B.offsetHeight;B.fixed&&!B.condenses&&this.hasScrollingRegion?(R.marginTop=V+"px",R.paddingTop=""):(R.paddingTop=V+"px",R.marginTop="")}}});var jvz=new _.P("replaceFeedContentAction");var Uwi=new _.P("alertCommand");var NN4=new _.P("manageLabsStateCommand");var GNU=new _.P("channelBannerEditorRenderer");var yg4=new _.P("inlineFormRenderer");var aw=new _.P("playlistSidebarPrimaryInfoRenderer");var S37=new _.P("productDetailsThumbnailRenderer"),HHi=new _.P("productDetailsVariantRenderer"),Mdn=new _.P("productDetailsVariantOptionRenderer"),kNn=new _.P("productDetailsOffersContainerRenderer"),Dw2=new _.P("productDetailsOfferRenderer");var fB2=new _.P("shoppingFlaggingRenderer");var lBe=new _.P("playlistBylineRenderer");var z8m=new _.P("insertChannelTabCommand");var dG=function(){return _.tM.apply(this,arguments)||this};
_.l(dG,_.tM);_.p=dG.prototype;_.p.activeChanged=function(){if(this.active){var B=_.w(this.hostElement).querySelector("#header");B&&_.OI(B,"iron-resize");window.addEventListener("scroll",_.Bc(this,this.onScroll))}else window.removeEventListener("scroll",_.Bc(this,this.onScroll)),_.OI(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.p.guideVisibleChanged=function(){var B=_.w(this.hostElement).querySelector("#header");B&&_.OI(B,"iron-resize")};
_.p.onScroll=function(){var B=this;_.LJ(this,"onScroll",function(){var R=_.w(B.hostElement).querySelector("#header");R&&R.polymerController&&(R=R.polymerController.getScrollState().progress===1?"standard":"seamed",_.OI(B.hostElement,"yt-request-panel-mode-change",{mode:R}))},10)};
_.p.tabsChanged=function(){if(this.tabs){for(var B=null,R=0,V=this.tabs.length;R<V;++R){var e=this.tabs[R].tabRenderer;if(e&&e.selected){B=R;break}}this.selected=B}};
_.p.onTabsActivate=function(B){_.OI(this.hostElement,"yt-navigate",{endpoint:this.tabs[B.detail.selected].tabRenderer.endpoint})};
dG.prototype.tabsChanged=dG.prototype.tabsChanged;dG.prototype.guideVisibleChanged=dG.prototype.guideVisibleChanged;dG.prototype.activeChanged=dG.prototype.activeChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],dG.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.E(),_.Z("design:type",Array)],dG.prototype,"tabs",void 0);
_.r([_.E(),_.Z("design:type",Object)],dG.prototype,"selected",void 0);_.r([_.E(),_.Z("design:type",Boolean)],dG.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],dG.prototype,"disableHeaderFluidWidth",void 0);_.r([_.XX("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dG.prototype,"activeChanged",null);
_.r([_.XX("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dG.prototype,"guideVisibleChanged",null);_.r([_.XX("tabs"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dG.prototype,"tabsChanged",null);dG=_.r([_.Wc()],dG);var aB6=[_.O.YtRendererBehavior,_.KL.YtdGuideStateAwareBehavior,dG.prototype];var dwe=2/3,wVo=_.kB(130749),TNN=function(B,R){var V=this;this.element=B;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){V.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:dwe,moveAction:function(e){V.moveAction(e)},
triggerAction:function(){V.element.isReloading=!0;_.Es(_.WK(),{visualElement:wVo});_.eR.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:V.element}})}}}};
_.hy(_.WK(),wVo,this.layer);this.gesture=new _.hx(B,R,this.refreshConfig,"pan-down");this.attach()};
_.p=TNN.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(B){this.element.rotation=B*360};var xwm=_.kB(130750),wG=function(B,R,V,e,X){var Y=this;this.element=B;this.parent=V;this.channelHeader=e;this.ytdReduxDispatch=X;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){Y.tabsStartAtInPx=Y.channelHeader.clientHeight-48;var t;(t=Y.selectedTab)!=null&&t.title&&(t=_.Oz().resolve(_.uj(_.$B)))&&(t=t.getCurrentPage(),Y.lastVisitedTabScrollPosition=t.getScrollTop(),Y.previousTab&&
((Y.lastVisitedTabScrollPosition===void 0?0:Y.lastVisitedTabScrollPosition<Y.channelHeader.clientHeight-48)?Y.scrollPositionForTabs.has(Y.selectedTab.title)&&Y.scrollPositionForTabs.delete(Y.selectedTab.title):Y.scrollPositionForTabs.set(Y.selectedTab.title,t.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Lwo(),triggerAction:function(){Y.navigate(Y.previousTab)},
moveAction:function(t,b){Y.moveAction(t,b)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Lwo(),triggerAction:function(){Y.navigate(Y.nextTab)},
moveAction:function(t,b){Y.moveAction(t,b)}}}};
_.hy(_.WK(),xwm,this.layer);this.gesture=new _.hx(B,R,this.tabConfig);this.attach()};
wG.prototype.attach=function(){this.gesture.attach()};
wG.prototype.detach=function(){this.gesture.detach()};
wG.prototype.tabsChanged=function(B){if(B){var R=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;B=_.h(B);for(var V=B.next();!V.done;V=B.next()){V=V.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=V);var e=void 0;if((e=V)==null?0:e.selected)this.previousTab=R,this.selectedTab=V;R=V}R=this.gesture;B=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
R.config=B;this.scrollPositionNeedsUpdate=!0}};
wG.prototype.moveAction=function(B,R){if(!this.tabsElement){var V;this.tabsElement=(V=this.parent.header)==null?void 0:V.tabsElement;R==="right"&&this.previousTab?_.GfJ(_.Vf.instance,this.previousTab.endpoint,{},""):R==="left"&&this.nextTab&&_.GfJ(_.Vf.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}V=this.tabsElement._pos;R==="right"&&(B*=-1);this.tabsElement._positionBar(V.width,V.left*1+V.width*B)};
var Lwo=function(){var B,R;return(R=(B=_.Oz().resolve(_.$B).getCurrentPage())==null?void 0:B.clientWidth)!=null?R:0};
wG.prototype.navigate=function(B){this.element.data=void 0;if(B=B==null?void 0:B.endpoint)this.ytdReduxDispatch(Vde(!0)),_.Es(_.WK(),{visualElement:xwm}),_.eR.instance.resolveCommand({navigateAction:{endpoint:B}},{form:{element:this.element}})};var vuz;var Kw4;var T1=function(){return _.c.apply(this,arguments)||this};
_.l(T1,_.c);T1.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],T1.prototype,"data",void 0);T1=_.r([_.A({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],T1);
_.F(T1,"ytd-labs-edit-renderer",function(){if(Kw4!==void 0)return Kw4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Kw4=B},{mode:1});var IBj;var xN=function(){var B=_.c.apply(this,arguments)||this;B.dark=!1;B.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";B.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(xN,_.c);xN.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xN.prototype.ready=function(){var B=document.documentElement.hasAttribute("dark");this.setBackgroundImage(B);this.dark=B};
xN.prototype.onDarkModeToggledAction=function(B){this.setBackgroundImage(B);this.dark=B};
xN.prototype.setBackgroundImage=function(B){_.o_(this.hostElement,{"--yt-labs-header-background":"url("+(B?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],xN.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],xN.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],xN.prototype,"dark",void 0);
xN=_.r([_.A({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],xN);
_.F(xN,"ytd-labs-header-renderer",function(){if(IBj!==void 0)return IBj;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return IBj=B},{mode:1});var Eue;var LP=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return B};
_.l(LP,_.c);LP.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"}}}}}};
LP.prototype.onYtToggleButton=function(B){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",B.detail.toggled)};
LP.prototype.onManageLabsState=function(B){if(B=_.D(B,NN4))B.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?B.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&B.labsItemId===this.data.labsItemId&&(B.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.oF(this.hostElement,"yt-check-labs-opted-in-state").some(function(R){return R})&&this.data.confirmationDialogCommand?_.eO(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.Oz().resolve(_.oC).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&B.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.Oz().resolve(_.oC).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
LP.prototype.onCheckLabsOptedInState=function(){var B=this.get("data.primaryButton.toggleButtonRenderer");return B?B.isToggled:!1};
_.mh.Object.defineProperties(LP.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
LP.prototype.onYtToggleButton=LP.prototype.onYtToggleButton;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],LP.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],LP.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],LP.prototype,"itemStyle",null);_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],LP.prototype,"onYtToggleButton",null);LP=_.r([_.A({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],LP);
_.F(LP,"ytd-labs-item-renderer",function(){if(Eue!==void 0)return Eue;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Eue=B},{mode:1});var Qvr;var q3o;var vt=function(){return _.c.apply(this,arguments)||this};
_.l(vt,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],vt.prototype,"data",void 0);vt=_.r([_.A({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],vt);
_.F(vt,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(q3o!==void 0)return q3o;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return q3o=B},{mode:1});var cgU;var KP=function(){return _.c.apply(this,arguments)||this};
_.l(KP,_.c);KP.prototype.observeSuperchatChip=function(){if(this.data){var B={"--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)};_.o_(this.hostElement,B)}};
KP.prototype.colorFromDecimal=function(B){return _.zF(Number(B||0))};
KP.prototype.observeSuperchatChip=KP.prototype.observeSuperchatChip;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],KP.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KP.prototype,"observeSuperchatChip",null);KP=_.r([_.A({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],KP);
_.F(KP,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(cgU!==void 0)return cgU;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return cgU=B},{mode:1});var Iw=function(){return _.c.apply(this,arguments)||this};
_.l(Iw,_.c);Iw.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"}}}};
_.mh.Object.defineProperties(Iw.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.TY),_.Z("design:type",Object)],Iw.prototype,"ytdDismissibleItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Iw.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Iw.prototype,"hideMessageBlock",null);
Iw=_.r([_.A({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Iw);
_.F(Iw,"ytd-live-chat-history-entry-renderer",function(){if(Qvr!==void 0)return Qvr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Qvr=B},{mode:1});var AgN;var EF=function(){return _.c.apply(this,arguments)||this};
_.l(EF,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],EF.prototype,"data",void 0);EF=_.r([_.A({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],EF);
_.F(EF,"ytd-channel-options-renderer",function(){if(AgN!==void 0)return AgN;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return AgN=B},{mode:1});var iHr;var Qb=function(){return _.c.apply(this,arguments)||this};
_.l(Qb,_.c);Qb.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Qb.prototype,"data",void 0);Qb=_.r([_.A({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Qb);
_.F(Qb,"ytd-settings-email-item-renderer",function(){if(iHr!==void 0)return iHr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return iHr=B},{mode:1});var svm;var qX=function(){return _.c.apply(this,arguments)||this};
_.l(qX,_.c);qX.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"}}}};
qX.prototype.getExpansionIcon=function(B){return B?"arrow_drop_up":"arrow_drop_down"};
qX.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.mh.Object.defineProperties(qX.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qX.prototype,"data",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],qX.prototype,"expanded",void 0);_.r([_.K("expanded"),_.Z("design:type",String),_.Z("design:paramtypes",[])],qX.prototype,"emailListExpanded",null);
_.r([_.Yp("#options"),_.Z("design:type",Object)],qX.prototype,"options",void 0);qX=_.r([_.A({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],qX);
_.F(qX,"ytd-settings-email-list-renderer",function(){if(svm!==void 0)return svm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return svm=B},{mode:1});var Fw2;var ct=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return B};
_.l(ct,_.c);ct.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"}}}};
ct.prototype.handleSignalActionSubmitForm=function(){var B,R=(B=this.formRenderer)==null?void 0:B.getForm();R&&this.data.serviceEndpoint&&_.Oz().resolve(_.oC).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},R,{element:this.hostElement})})};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],ct.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ct.prototype,"data",void 0);_.r([_.Yp("yt-form-renderer"),_.Z("design:type",Object)],ct.prototype,"formRenderer",void 0);
ct=_.r([_.A({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],ct);
_.F(ct,"ytd-settings-gaia-link-renderer",function(){if(Fw2!==void 0)return Fw2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Fw2=B},{mode:1});var rg2;var Ax=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return B};
_.l(Ax,_.c);Ax.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.gb2()&&this.set("data.hidden",!1)};
Ax.prototype.onSwitchReady=function(){var B=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.k("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.rqo().then(function(R){R&&(Notification.permission==="default"?B.set("data.hidden",!1):Notification.permission==="granted"&&_.Cs("NotificationsDisabled").then(function(V){V||_.oF(B.hostElement,"yt-toggle-settings-switch",[B.data.id,!V]);B.set("data.hidden",!1)}).catch(function(){}))})})};
Ax.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}}}}};
Ax.prototype.handleUpdateOptionsCommand=function(B){(B=_.D(B,_.ZY4))&&this.data&&this.data.id===B.id&&(this.set("data.hidden",B.hidden),B.text!==void 0&&this.set("data.text",B.text),B.clearOptions&&this.set("data.options",[]))};
Ax.prototype.onSwitchReady=Ax.prototype.onSwitchReady;Ax.prototype.dataChanged=Ax.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Ax.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ax.prototype,"data",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ax.prototype,"dataChanged",null);_.r([_.R_("yt-settings-switch-ready"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ax.prototype,"onSwitchReady",null);Ax=_.r([_.A({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Ax);
_.F(Ax,"ytd-settings-options-renderer",function(){if(rg2!==void 0)return rg2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return rg2=B},{mode:1});var guN;var ir=function(){return _.c.apply(this,arguments)||this};
_.l(ir,_.c);ir.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ir.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
ir.prototype.onYtExpanderMoreTapped=ir.prototype.onYtExpanderMoreTapped;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ir.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ir.prototype,"data",void 0);
_.r([_.R_("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ir.prototype,"onYtExpanderMoreTapped",null);ir=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],ir);
_.F(ir,"ytd-product-details-description-renderer",function(){if(guN!==void 0)return guN;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return guN=B},{mode:1});var ZHi;var sF=function(){var B=_.c.apply(this,arguments)||this;B.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";B.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";B.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";B.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return B};
_.l(sF,_.c);sF.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.mh.Object.defineProperties(sF.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:(R=B.offerData)==null?void 0:R.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?void 0:B.purchaseButtonRenderers)!==void 0&&((R=this.data)==null?void 0:R.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null||!B.formattedFromMerchantText)&&(!((R=this.data)==null||!R.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],sF.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],sF.prototype,"data",void 0);
_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],sF.prototype,"shippingIcon",void 0);_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],sF.prototype,"shippingAddressIcon",void 0);_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],sF.prototype,"googleGuaranteeIcon",void 0);
_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],sF.prototype,"returnPolicyIcon",void 0);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],sF.prototype,"showAdditionalFees",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],sF.prototype,"showMultiPurchaseButtons",null);
_.r([_.K("data","showMultiPurchaseButtons"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],sF.prototype,"showPurchaseData",null);sF=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],sF);
_.F(sF,"ytd-product-details-hero-offer-renderer",function(){if(ZHi!==void 0)return ZHi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ZHi=B},{mode:1});var mwe;var $wn;var FZ=function(){return _.c.apply(this,arguments)||this};
_.l(FZ,_.c);_.p=FZ.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(B){B=B.keyCode;B!==13&&B!==32||this.handleSelection()};
_.p.onMouseEnterImage=function(){var B;((B=this.data)==null?void 0:B.thumbnailDetails)!==void 0&&_.Bz(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.p.onMouseLeaveImage=function(){_.Bz(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.p.handleSelection=function(){this.data&&_.OI(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.mh.Object.defineProperties(FZ.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.isSelected)}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],FZ.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],FZ.prototype,"isSelected",null);FZ=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],FZ);
_.F(FZ,"ytd-product-details-thumbnail-renderer",function(){if($wn!==void 0)return $wn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return $wn=B},{mode:1});var rG=function(){var B=_.c.apply(this,arguments)||this;var R={};B.actionMap=(R["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",R["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",R);B.selectedThumbnailIndex=0;B.selectItem=function(V){V.target.onKeyDown(V)};
return B};
_.l(rG,_.c);_.p=rG.prototype;_.p.handlePreviewImageSelect=function(B){this.hoverThumbnail=B};
_.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(B,R){this.selectedThumbnailIndex=R};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.p.updateOffset=function(){var B=_.w(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-B));this.ytdHorizontalListBehavior.reposition_()};
_.mh.Object.defineProperties(rG.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null?0:B.imageRenderer){var R,V;return((R=this.data)==null?void 0:(V=R.imageRenderer)==null?void 0:V.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var B;if((B=this.data)==null?0:B.imageRenderer){var R;return(R=_.D(this.data.imageRenderer[this.selectedThumbnailIndex],S37))==null?void 0:R.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var B=this,R,V,e,X=(e=(R=this.data)==null?void 0:(V=R.imageRenderer)==null?void 0:V.map(function(Y,t){return{productDetailsThumbnailRenderer:Object.assign({},_.D(Y,S37),{index:t,isSelected:t===B.selectedThumbnailIndex})}}))!=null?e:[];
return Object.assign({},this.data,{imageRenderer:X})}}});
rG.prototype.updateOffset=rG.prototype.updateOffset;rG.prototype.dataChanged=rG.prototype.dataChanged;rG.prototype.onThumbnailSelected=rG.prototype.onThumbnailSelected;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Pu.YtdHorizontalListBehavior),_.Z("design:type",Object)],rG.prototype,"ytdHorizontalListBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],rG.prototype,"componentBehavior",void 0);_.r([_.v([_.$Z.YtActionHandlerBehavior]),_.Z("design:type",Object)],rG.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],rG.prototype,"data",void 0);_.r([_.E({value:"$.items.children"}),_.Z("design:type",String)],rG.prototype,"itemsPath",void 0);_.r([_.E({value:3}),_.Z("design:type",Number)],rG.prototype,"initialCount",void 0);
_.r([_.Yp("#items"),_.Z("design:type",Object)],rG.prototype,"items",void 0);_.r([_.E(),_.Z("design:type",Object)],rG.prototype,"selectedThumbnailIndex",void 0);_.r([_.E(),_.Z("design:type",Object)],rG.prototype,"hoverThumbnail",void 0);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rG.prototype,"showThumbnails",null);
_.r([_.R_("ytd-product-details-thumbnail-renderer-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Number]),_.Z("design:returntype")],rG.prototype,"onThumbnailSelected",null);_.r([_.K("data","selectedThumbnailIndex","hoverThumbnail"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rG.prototype,"thumbnailDetails",null);_.r([_.K("data","selectedThumbnailIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rG.prototype,"populatedData",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rG.prototype,"dataChanged",null);_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rG.prototype,"updateOffset",null);rG=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],rG);
_.F(rG,"ytd-product-details-image-carousel-renderer",function(){if(mwe!==void 0)return mwe;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return mwe=B},{mode:_.up("kevlar_poly_si_batch_j079")?1:2});var CUm;var gG=function(){return _.c.apply(this,arguments)||this};
_.l(gG,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],gG.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],gG.prototype,"data",void 0);gG=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],gG);
_.F(gG,"ytd-product-details-offer-renderer",function(){if(CUm!==void 0)return CUm;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return CUm=B},{mode:1});var PUr;var ZH=function(){var B=_.c.apply(this,arguments)||this;B.isOffersHidden=!0;return B};
_.l(ZH,_.c);ZH.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var B,R=_.D((B=this.data)==null?void 0:B.viewOffersButton,_.Ii);R&&this.ytRendererBehavior.logExplicitClick(R)};
ZH.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.mh.Object.defineProperties(ZH.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e;return(V=_.D((B=this.data)==null?void 0:(R=B.offers)==null?void 0:R[0],Dw2))==null?void 0:(e=V.offerData)==null?void 0:e.vendorLogoUrl}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ZH.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ZH.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],ZH.prototype,"isOffersHidden",void 0);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZH.prototype,"firstOfferVendorLogoUrl",null);ZH=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],ZH);
_.F(ZH,"ytd-product-details-offers-container-renderer",function(){if(PUr!==void 0)return PUr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return PUr=B},{mode:1});var nu7;var u7e;var me=function(){return _.c.apply(this,arguments)||this};
_.l(me,_.c);me.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
me.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Bz(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
me.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Bz(this,"ytd-product-details-variant-image-unselect")};
_.mh.Object.defineProperties(me.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 B;return((B=this.data)==null?void 0:B.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.data)==null?void 0:B.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((R=this.data)==null?void 0:R.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((V=this.data)==null?void 0:V.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var B;if(((B=this.data)==null?void 0:B.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var B,R;return this.isUnavailable?(B=this.data)==null?void 0:B.variantOptionUnavailableAccessibilityLabel:(R=this.data)==null?void 0:R.variantOptionAccessibilityLabel}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],me.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],me.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],me.prototype,"displayType",void 0);
_.r([_.K("displayType","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],me.prototype,"isImageButton",null);_.r([_.K("displayType","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],me.prototype,"isPillButton",null);_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],me.prototype,"isActive",null);
_.r([_.K("data"),_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],me.prototype,"isUnavailable",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],me.prototype,"thumbnailDetails",null);_.r([_.K("isUnavailable","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],me.prototype,"accessibilityLabel",null);me=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],me);
_.F(me,"ytd-product-details-variant-option-renderer",function(){if(u7e!==void 0)return u7e;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return u7e=B},{mode:1});var OH4;var $N=function(){var B=_.c.apply(this,arguments)||this;B.variantsExpanded=!1;B.hideShowMoreLessVariantButton=!0;B.initialized=!1;B.computeVariantsDebouncer=null;B.computeVariants=function(R){R=R===void 0?!1:R;B.variantsExpanded||B.showOptions()||!R||(B.variantsExpanded=!0);if(B.variantsExpanded){R=_.h(B.items.children);for(var V=R.next();!V.done;V=R.next())V.value.hidden=!1}B.initialized=!0};
return B};
_.l($N,_.c);_.p=$N.prototype;_.p.ready=function(){var B=this;setTimeout(function(){B.computeVariants(!0)})};
_.p.showOptions=function(){for(var B=_.h(this.items.children),R=B.next();!R.done;R=B.next())R.value.hidden=!0;var V=this.container.getBoundingClientRect().width,e=0,X=B=0;R=!1;for(var Y=_.h(this.items.children),t=Y.next();!t.done;t=Y.next()){t=t.value;t.hidden=!1;var b=t.getBoundingClientRect().width;if(e+b<V)e+=b;else if(++X<2)e=b;else break;B+=1;t.hasAttribute("is-active")&&(R=!0)}for(V=B;V<this.items.children.length;V++)this.items.children[V].hidden=!0;this.hideShowMoreLessVariantButton=B===this.items.children.length;
return R};
_.p.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.p8(this.computeVariantsDebouncer,_.mB.after(100),this.computeVariants)};
_.p.onShowMoreLessVariantsButtonClick=function(){var B;(B=this.data)!=null&&B.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]]"}}}}}};
_.mh.Object.defineProperties($N.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(B=this.data)==null?void 0:(R=B.variantOptionRenderers)==null?void 0:R.find(function(Y){return _.D(Y,Mdn).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),e,X;
return(X=(e=_.D(V,Mdn))==null?void 0:e.name)!=null?X:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.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"}}}});
$N.prototype.debouncedComputeVariants=$N.prototype.debouncedComputeVariants;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],$N.prototype,"componentBehavior",void 0);_.r([_.v(_.LC),_.Z("design:type",Object)],$N.prototype,"ironResizableBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],$N.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],$N.prototype,"variantsExpanded",void 0);_.r([_.E(),_.Z("design:type",Object)],$N.prototype,"hideShowMoreLessVariantButton",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],$N.prototype,"initialized",void 0);_.r([_.Yp("#items"),_.Z("design:type",HTMLDivElement)],$N.prototype,"items",void 0);_.r([_.Yp("#container"),_.Z("design:type",HTMLDivElement)],$N.prototype,"container",void 0);
_.r([_.Yp("#more-variants-button"),_.Z("design:type",HTMLElement)],$N.prototype,"moreVariantsButton",void 0);_.r([_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],$N.prototype,"selectedOptionName",null);_.r([_.XX("data","variantsExpanded"),_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$N.prototype,"debouncedComputeVariants",null);
_.r([_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],$N.prototype,"displayType",null);_.r([_.K("displayType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$N.prototype,"variantItemsClassname",null);$N=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],$N);
_.F($N,"ytd-product-details-variant-renderer",function(){if(OH4!==void 0)return OH4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return OH4=B},{mode:1});var CP=function(){return _.c.apply(this,arguments)||this};
_.l(CP,_.c);
CP.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"}}}};
_.mh.Object.defineProperties(CP.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(R=_.D((B=this.data)==null?void 0:B.offersContainerRenderer,kNn))==null?void 0:R.offers;return V!==void 0&&(V==null?void 0:V.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 B,R,V;return((V=(B=this.data)==null?void 0:(R=B.variants)==null?void 0:R.map(function(e){var X,Y;e=(Y=(X=_.D(e,HHi))==null?void 0:X.variantOptionRenderers)==null?void 0:Y.find(function(b){var J;return((J=_.D(b,Mdn))==null?void 0:J.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var t;return(t=_.D(e,Mdn))==null?void 0:t.name}).filter(function(e){return typeof e==="string"}))!=null?V:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e=(R=_.D((B=this.data)==null?void 0:B.shoppingFlaggingRenderer,fB2))==null?void 0:(V=R.reportButton)==null?void 0:V.buttonRenderer;if(e)return{text:e.text,command:e.command,icon:{iconType:"FLAG"},accessibilityData:e.accessibilityData,trackingParams:e.trackingParams,loggingDirectives:e.loggingDirectives}}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],CP.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],CP.prototype,"data",void 0);_.r([_.Yp("#image-carousel-renderer"),_.Z("design:type",Object)],CP.prototype,"imageCarouselRenderer",void 0);
_.r([_.Yp("#hero-offer-renderer"),_.Z("design:type",Object)],CP.prototype,"productDetailsHeroOfferRenderer",void 0);_.r([_.Yp("#variants"),_.Z("design:type",Object)],CP.prototype,"productDetailsVariantRenderer",void 0);_.r([_.Yp("#offers"),_.Z("design:type",Object)],CP.prototype,"productDetailsOffersContainerRenderer",void 0);_.r([_.Yp("#description-renderer"),_.Z("design:type",Object)],CP.prototype,"productDetailsDescriptionRenderer",void 0);
_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CP.prototype,"showPurchaseData",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CP.prototype,"showHeroOfferRenderer",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CP.prototype,"showBrandText",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CP.prototype,"showOffers",null);
_.r([_.K("showOffers","showPurchaseData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CP.prototype,"showBuySeparator",null);_.r([_.K("showOffers","showPurchaseData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],CP.prototype,"showBuyCard",null);_.r([_.K("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],CP.prototype,"selectedVariantsText",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],CP.prototype,"shoppingReportingButtonData",null);
CP=_.r([_.A({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],CP);
_.F(CP,"ytd-product-details-renderer",function(){if(nu7!==void 0)return nu7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return nu7=B},{mode:1});var oKj;var B8j;var RRe;var Pt=function(){return _.c.apply(this,arguments)||this};
_.l(Pt,_.c);Pt.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.mh.Object.defineProperties(Pt.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Pt.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],Pt.prototype,"formattedAmount",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Pt.prototype,"ariaLabel",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data.style"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Pt.prototype,"vcBalanceWidgetStyle",null);Pt=_.r([_.fJ({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Pt);
_.F(Pt,"yt-vc-balance-renderer",function(){if(RRe===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;B8j===void 0&&(B8j=document.createElement("template"));var e=B8j;V.call(R,e.content.cloneNode(!0),B.content.firstChild);RRe=B}B=RRe;return B},{mode:2});_.aO("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var nP=function(){return _.c.apply(this,arguments)||this};
_.l(nP,_.c);_.mh.Object.defineProperties(nP.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:""}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],nP.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],nP.prototype,"data",void 0);_.r([_.E({selectorArgs:["data.vcBalanceEntityKey"],selector:function(B,R){return _.p7(B.entities,"vcBalanceEntity",R)}}),
_.Z("design:type",Object)],nP.prototype,"vcBalanceEntity",void 0);_.r([_.K("vcBalanceEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],nP.prototype,"formattedAmount",null);_.r([_.K("vcBalanceEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],nP.prototype,"vcBalanceAriaLabel",null);nP=_.r([_.A({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],nP);
_.F(nP,"ytd-vc-balance-renderer",function(){if(oKj!==void 0)return oKj;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return oKj=B},{mode:1});var V76;var ur=function(){var B=_.c.apply(this,arguments)||this;B.rotation=0;B.isReloading=!1;return B};
_.l(ur,_.c);ur.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
ur.prototype.reset=function(){this.hostElement.style.opacity=""};
ur.prototype.close=function(){var B=this;return _.W(function(R){if(R.nextAddress==1)return _.U(R,B.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);B.hostElement.style.opacity="0";_.b3(R)})};
ur.prototype.rotationChanged=ur.prototype.rotationChanged;_.r([_.E(),_.Z("design:type",Object)],ur.prototype,"rotation",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ur.prototype,"isReloading",void 0);_.r([_.Yp("#icon"),_.Z("design:type",HTMLElement)],ur.prototype,"icon",void 0);_.r([_.XX("rotation"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ur.prototype,"rotationChanged",null);
ur=_.r([_.A({disableElementRegistration:!0,is:"ytd-refresh"})],ur);
_.F(ur,"ytd-refresh",function(){if(V76!==void 0)return V76;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return V76=B},{mode:1});var eRo;var XXU;var pXe=function(B,R,V,e,X,Y,t,b){this.minWidth=B;this.minHeight=R;this.recommendedWidth=V;this.recommendedHeight=e;this.JSC$19362_maxFileSize=X;this.title=Y;this.bannerGalleryTitle=t;this.channelId=b;this.picker_=null;B=_.z$I("yt-banner");R=B.addView;V=(new XV7("youtubebanner")).addUploadMetadata("silo_id","19");V.opts.ytMaxFileSize=this.JSC$19362_maxFileSize;e=this.recommendedHeight;V.opts.ytRecWidth=this.recommendedWidth;V.opts.ytRecHeight=e;R.call(B,V);B.addView(new _.fa);R=B.addView;V=new _.fa;
V.opts.type="ytbanner";R.call(B,V.JSC$7982_setLabel(this.bannerGalleryTitle));R=B.setTitle(this.title).setSize(1E3);R.urlParamMap_.set("thumbs","orig");V=this.minWidth;e=this.minHeight;if(isNaN(V)||isNaN(e))throw Error("kb`"+V+"`"+e);R.urlParamMap_.set("minSize",V+"x"+e);R.urlParamMap_.set("cropMode","ytcb");this.builder_=B};
pXe.prototype.open=function(){var B=this;return new _.be(function(R,V){_.Wno(B.builder_,function(e){e.action=="picked"?R(e):e.action=="cancel"&&V(Error("Wl"))});
B.picker_&&B.picker_.dispose();B.picker_=B.builder_.build();B.picker_.setVisible(!0)})};
pXe.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Yve=function(B){this.channelId=B},hRn=function(B,R){var V="";
R.viewToken&&(V=R.viewToken[2].type);var e=R.docs[0];R=e.crop;B={channel_id:B.channelId,fife_url:e.thumbnails[0].url,photo_id:e.id,is_gallery_image:V=="ytbanner"};R&&(B.crop_top=R.top,B.crop_right=R.right,B.crop_bottom=R.bottom,B.crop_left=R.left);return _.V3u("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:B})};var OF=function(){var B=_.c.apply(this,arguments)||this;B.ariaLabel=null;return B};
_.l(OF,_.c);_.p=OF.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(B){return B};
_.p.onTap=function(){var B=this,R;if((R=this.data)==null||!R.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new pXe(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 V;(V=this.picker)==null||V.open().then(function(e){B.handleBannerPicked(e)},function(){})}};
_.p.handleBannerPicked=function(B){var R=this;this.uploader||(this.uploader=new Yve(this.data.channelId||""));this.message=this.data.uploadingText;hRn(this.uploader,B).then(function(V){R.handleBannerUploadSucceeded(V)},function(V){R.handleBannerUploadFailed(V)})};
_.p.handleBannerUploadSucceeded=function(B){B&&B.errors?this.handleBannerUploadFailed(B):(_.OI(this.hostElement,"yt-banner-updated",B),this.message=null)};
_.p.handleBannerUploadFailed=function(B){this.message=B&&B.errors&&B.errors.length?B.errors[0]:null};
OF.prototype.dataChanged=OF.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],OF.prototype,"componentBehavior",void 0);_.r([_.v(_.KC),_.Z("design:type",Object)],OF.prototype,"ironButtonState",void 0);_.r([_.E(),_.Z("design:type",Object)],OF.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Z("design:type",Object)],OF.prototype,"ariaLabel",void 0);
_.r([_.E(),_.Z("design:type",Object)],OF.prototype,"message",void 0);_.r([_.E(),_.Z("design:type",Object)],OF.prototype,"picker",void 0);_.r([_.E(),_.Z("design:type",Object)],OF.prototype,"uploader",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OF.prototype,"dataChanged",null);OF=_.r([_.A({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],OF);
_.F(OF,"ytd-channel-banner-editor-renderer",function(){if(XXU!==void 0)return XXU;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return XXU=B},{mode:1});var t76;var Wjo=_.$Q(["#"]),oU=function(){return _.c.apply(this,arguments)||this};
_.l(oU,_.c);oU.prototype.computeHrefWithDefault=function(B){return this.ytComponentBehavior.computeHref_(B,!0)||_.MV(Wjo)};
oU.prototype.dataChanged=function(){var B=this.data;B&&B.targetId&&_.vnl(_.pF(),B.targetId,this.moreIcon)};
oU.prototype.dataChanged=oU.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],oU.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],oU.prototype,"data",void 0);_.r([_.Yp("#more-icon"),_.Z("design:type",Object)],oU.prototype,"moreIcon",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oU.prototype,"dataChanged",null);
oU=_.r([_.A({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],oU);
_.F(oU,"ytd-channel-tagline-renderer",function(){if(t76!==void 0)return t76;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return t76=B},{mode:1});var bMe;var BQ=function(){return _.c.apply(this,arguments)||this};
_.l(BQ,_.c);_.p=BQ.prototype;_.p.ready=function(){var B=this;_.w(this.hostElement).querySelector("#form").addEventListener("submit",function(R){B.onSubmit(R)})};
_.p.onDataChanged=function(){var B;((B=this.data)==null?0:B.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.p.onIconButtonKeydown=function(B){B.keyCode===13&&this.iconButton.click()};
_.p.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.p.openOnClickHandler=function(){this.input.focus()};
_.p.onSubmit=function(B){B.preventDefault();return!1};
_.p.submitOnEnterKeyUp=function(B){var R;if(B.keyCode===13&&((R=this.data)==null?0:R.expandedText)){B=this.data.endpoint;R=_.M_.unsafeClone(B);var V;((V=_.D(R==null?void 0:R.commandMetadata,_.$a))==null?0:V.url)?(_.D(R.commandMetadata,_.$a).url=_.QU(_.D(R.commandMetadata,_.$a).url,"query",this.data.expandedText),_.D(R,_.Jz)&&(_.D(R,_.Jz).query=this.data.expandedText),_.OI(this.hostElement,"yt-navigate",{endpoint:R,tempData:{disableCache:!0}})):(V=new _.H8("Error: Trying to navigate to an endpoint without url",
B),_.Tn(V))}};
_.p.updateDataExpandedTextFromBinding=function(B){this.set("data.expandedText",B.detail.value)};
BQ.prototype.onDataChanged=BQ.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Or4),_.Z("design:type",Object)],BQ.prototype,"ytdExpandableInputBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],BQ.prototype,"data",void 0);_.r([_.Yp("#input"),_.Z("design:type",Object)],BQ.prototype,"input",void 0);_.r([_.Yp("#icon-button"),_.Z("design:type",HTMLElement)],BQ.prototype,"iconButton",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BQ.prototype,"onDataChanged",null);BQ=_.r([_.A({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],BQ);
var uNi=_.nJ()(BQ,"ytd-expandable-tab-renderer",function(){if(bMe===void 0){var B=document.createElement("template");_.a(B,'\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="yt-icons:search" 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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);bMe=B}B=bMe;return B},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var JCU;var jtj=_.$Q(["#"]),RU=function(){return _.c.apply(this,arguments)||this};
_.l(RU,_.c);RU.prototype.computeHrefWithDefault=function(B){return this.ytComponentBehavior.computeHref_(B,!0)||_.MV(jtj)};
_.mh.Object.defineProperties(RU.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var B;return _.dl((B=this.data)==null?void 0:B.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var B;return _.dl((B=this.data)==null?void 0:B.moreOnTap)}}});
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],RU.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],RU.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],RU.prototype,"usePageHeaderStyle",void 0);_.r([_.K("data.primaryOnTap"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],RU.prototype,"primaryLinkEndpoint",null);
_.r([_.K("data.moreOnTap"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],RU.prototype,"moreEndpoint",null);RU=_.r([_.A({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],RU);
_.F(RU,"ytd-channel-header-links-view-model",function(){if(JCU!==void 0)return JCU;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-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-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return JCU=B},{mode:1});var ULm;var Vd=function(){var B=_.c.apply(this,arguments)||this;B.avatarSize=80;B.ariaLabel=_.Wz("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return B};
_.l(Vd,_.c);Vd.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Vd.prototype.computeHref=function(B){var R;return((R=_.D(B,_.ie))==null?0:R.url)?this.componentBehavior.computeHref_(B):null};
Vd.prototype.onTap=function(){var B,R;(B=this.data)==null||!B.editAvatarServiceEndpoint||((R=_.D(this.data.editAvatarServiceEndpoint,_.ie))==null?0:R.url)||_.Oz().resolve(_.oC).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.r([_.v(_.KC),_.Z("design:type",Object)],Vd.prototype,"ironButtonState",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Vd.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Vd.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Vd.prototype,"avatarSize",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],Vd.prototype,"ariaLabel",void 0);Vd=_.r([_.A({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Vd);
_.F(Vd,"ytd-channel-avatar-editor",function(){if(ULm!==void 0)return ULm;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return ULm=B},{mode:1});_.mR(_.uuG,"yt-tab-group-shape",{props:{shape:_.qq}});var ex=function(){var B=_.c.apply(this,arguments)||this;B.expandableCustomTabRenderable=function(R){return O4N(R,function(){return void B.onSearchNavigate()})};
B.isRichGrid=!1;B.richGridMiniMode=!1;B.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return B};
_.l(ex,_.c);_.p=ex.prototype;_.p.areAllFalse=function(B,R,V){return!B&&!R&&!V};
_.p.updateJoinButtonOverrides=function(){var B;(B=_.w(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||B.set("overrides",this.joinButtonOverrides)};
_.p.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.p.attached=function(){this.data&&this.dataChanged();if(!_.k("web_c4_tabbed_header_error_ks")&&Math.random()<.05){var B=new _.H8("Rendered C4TabbedHeaderRenderer",window.location.href);_.Tn(B)}};
_.p.computeHeaderDisabled=function(B,R){return R||!B};
_.p.handleButtonRefreshAction=function(B){(B=_.D(B,_.D6_))&&this.set("data.sponsorButton",B.membershipButton)};
_.p.handleInsertTabCommand=function(B){var R=_.D(B,z8m);R&&R.externalChannelId===this.data.channelId&&(R.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(V){return V.tabRenderer&&V.tabRenderer.tabIdentifier===R.tabIdentifier})||this.splice("tabs",R.tabIndex||-1,0,R.tab))};
_.p.handleRefreshChannelTabAction=function(B){var R,V=(R=this.tabs)==null?void 0:R.filter(function(Y){var t;return(t=Y.tabRenderer)==null?void 0:t.selected});
R=(V==null?void 0:V.length)===1?V[0]:void 0;var e;if((R==null?void 0:(e=R.tabRenderer)==null?void 0:e.tabIdentifier)===B){var X;_.OI(this.hostElement,"yt-navigate",{endpoint:(X=R.tabRenderer)==null?void 0:X.endpoint,tempData:{disableCache:!0}})}};
_.p.onWindowResize=function(){_.w(this.hostElement).querySelector("#header").fire("iron-resize")};
_.p.dataChanged=function(){var B=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var R=_.$T(this.data.banner.thumbnails,this.hostElement.clientWidth);R&&(R.indexOf("//")===0&&(R="https:"+R),this.hasChannelArt=!0,_.o_(this.hostElement,{"--yt-channel-banner":"url("+R+")"}))}this.hasChannelArt!==B&&_.w(this.hostElement).querySelector("#header").fire("iron-resize")};
_.p.onBannerUpdated=function(B,R){B=window.devicePixelRatio>1?R.hq_url:R.url;B.indexOf("//")===0&&(B="https:"+B);this.hasChannelArt=!0;_.o_(this.hostElement,{"--yt-channel-banner":"url("+B+")"})};
_.p.observeLightsourcePalette=function(){var B,R,V=(B=this.data)==null?void 0:(R=B.headerColorPalette)==null?void 0:R.lightsourceColorPaletteData;V&&_.lP(this.hostElement,V)};
_.p.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.o_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.p.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.p.handleUnsubscribeAction=function(){var B,R;((R=_.D((B=this.data)==null?void 0:B.sponsorButton,_.Ii))==null?void 0:R.style)==="STYLE_PRIMARY"&&_.w(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.p.onFocusedChanged=function(B){(B=_.ii(B))&&B.is==="tp-yt-paper-tab"&&B.hasRipple()&&(B.getRipple().holdDown=!B.pointerDown&&B.focused)};
_.p.updateSelectedFromBinding=function(B){this.ytdTabbedHeaderBehavior.selected=B.detail.value};
_.mh.Object.defineProperties(ex.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:BNi(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var B,R;return!!((B=this.data)==null?0:(R=B.headerLinks)==null?0:R.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.subscriptionStateEntity)==null||!B.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var B=this.channelHandleDisplayStyle;return B==="MODERN"||B==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var B;return this.usePageHeaderStyle||!((B=this.data)==null?0:B.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var B;return this.usePageHeaderStyle||!((B=this.data)==null||!B.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var B;return!!_.D((B=this.data)==null?void 0:B.bannerEditor,GNU)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var B;return _.k("enable_view_pronouns_on_main_app")&&!((B=this.data)==null||!B.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var B;return(this.useModernStyle||this.usePageHeaderStyle)&&!((B=this.data)==null||!B.videosCountText)}}});
ex.prototype.observerRichGridItemsPerRow=ex.prototype.observerRichGridItemsPerRow;ex.prototype.observeLightsourcePalette=ex.prototype.observeLightsourcePalette;ex.prototype.onBannerUpdated=ex.prototype.onBannerUpdated;ex.prototype.dataChanged=ex.prototype.dataChanged;ex.prototype.updateJoinButtonOverrides=ex.prototype.updateJoinButtonOverrides;_.r([_.v(_.LL),_.Z("design:type",Object)],ex.prototype,"ytdGridStateAwareBehavior",void 0);
_.r([_.v(aB6),_.Z("design:type",Object)],ex.prototype,"ytdTabbedHeaderBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],ex.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],ex.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],ex.prototype,"ytdReduxBehavior",void 0);_.r([_.Yp("#tabs"),_.Z("design:type",Object)],ex.prototype,"tabsElement",void 0);_.r([_.E(),_.Z("design:type",Array)],ex.prototype,"tabs",void 0);_.r([_.K("tabs.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ex.prototype,"tabGroupShape",null);_.r([_.E(),_.Z("design:type",Object)],ex.prototype,"expandableCustomTabRenderable",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],ex.prototype,"isRichGrid",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Object)],ex.prototype,"richGridMiniMode",void 0);_.r([_.E({selector:_.ar}),_.Z("design:type",Number)],ex.prototype,"richGridItemsPerRow",void 0);_.r([_.E(),_.Z("design:type",Object)],ex.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ex.prototype,"hasChannelArt",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"hasChannelHeaderLinks",null);_.r([_.E({selector:_.cq4,reflectToAttribute:!0}),_.Z("design:type",Boolean)],ex.prototype,"guideIsVisibleButNotPersistent",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ex.prototype,"subscribeKey",null);
_.r([_.E({selectorArgs:["subscribeKey"],selector:_.Xt}),_.Z("design:type",Object)],ex.prototype,"subscriptionStateEntity",void 0);_.r([_.K("subscriptionStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ex.prototype,"subscribed",null);_.r([_.K("subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ex.prototype,"joinButtonOverrides",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"useModernStyle",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"usePageHeaderStyle",null);_.r([_.K("useModernStyle","usePageHeaderStyle"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],ex.prototype,"avatarSize",null);
_.r([_.K("channelHandleDisplayStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"shouldInlineChannelName",null);_.r([_.K("data","usePageHeaderStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"hideBannerEndpoint",null);_.r([_.K("data","usePageHeaderStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"hideBannerVisibleArea",null);
_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"showBannerEditor",null);_.r([_.K("usePageHeaderStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ex.prototype,"bannerEffects",null);_.r([_.K("usePageHeaderStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ex.prototype,"effectsConfig",null);_.r([_.K("usePageHeaderStyle","hasChannelArt"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"shouldShowPageHeaderBanner",null);
_.r([_.K("data.channelHandleText"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"isChannelHandlePresent",null);_.r([_.K("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],ex.prototype,"channelHandleDisplayStyle",null);_.r([_.K("data.channelPronouns"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"shouldShowChannelPronouns",null);
_.r([_.K("data.subscriberCountText"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"shouldShowSubscriberCount",null);_.r([_.K("useModernStyle","data.videosCountText"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ex.prototype,"shouldShowVideosCount",null);_.r([_.XX("joinButtonOverrides"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ex.prototype,"updateJoinButtonOverrides",null);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ex.prototype,"dataChanged",null);_.r([_.R_("yt-banner-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],ex.prototype,"onBannerUpdated",null);_.r([_.XX("data.headerColorPalette.lightsourceColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ex.prototype,"observeLightsourcePalette",null);
_.r([_.XX("richGridItemsPerRow","isRichGrid"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ex.prototype,"observerRichGridItemsPerRow",null);ex=_.r([_.A({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],ex);
_.F(ex,"ytd-c4-tabbed-header-renderer",function(){if(eRo!==void 0)return eRo;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-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-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return eRo=B},{mode:1});var N8o;var XQ=function(){return _.c.apply(this,arguments)||this};
_.l(XQ,_.c);XQ.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"}}}};
XQ.prototype.dataChanged=function(){if(this.data){var B=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var R=_.$T(this.data.banner.thumbnails,this.hostElement.clientWidth);R&&(R.indexOf("//")===0&&(R="https:"+R),this.hasBannerArt=!0,_.o_(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+R+")"}))}this.hasBannerArt!==B&&_.w(this.hostElement).querySelector("#header").fire("iron-resize")}};
XQ.prototype.updateSelectedFromBinding=function(B){this.selected=B.detail.value};
XQ.prototype.dataChanged=XQ.prototype.dataChanged;_.r([_.v(aB6),_.Z("design:type",Object)],XQ.prototype,"ytdTabbedHeaderBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.LL),_.Z("design:type",Object)],XQ.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],XQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],XQ.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],XQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Number)],XQ.prototype,"selected",void 0);_.r([_.E(),_.Z("design:type",Boolean)],XQ.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],XQ.prototype,"hasBannerArt",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XQ.prototype,"dataChanged",null);XQ=_.r([_.A({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],XQ);
_.F(XQ,"ytd-interactive-tabbed-header-renderer",function(){if(N8o!==void 0)return N8o;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return N8o=B},{mode:1});var Gdo;var pV=function(){return _.c.apply(this,arguments)||this};
_.l(pV,_.c);pV.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
pV.prototype.computeActionsAlignment=function(B){return(B==null?void 0:B.actionsAlignment)||""};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],pV.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Z("design:type",String)],pV.prototype,"actionsAlignment",void 0);
pV=_.r([_.A({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],pV);
_.F(pV,"ytd-page-footer-renderer",function(){if(Gdo!==void 0)return Gdo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Gdo=B},{mode:1});var yCU;var Svo;var YO=function(){var B=_.c.apply(this,arguments)||this;B.isEditing=!1;B.useSlot=!1;B.isMultiline=!1;return B};
_.l(YO,_.c);_.p=YO.prototype;_.p.onKeydown=function(B){if(B.keyCode===13&&!this.isMultiline)this.onSave();else if(B.keyCode===27)this.onCancel()};
_.p.computeComponentStyle=function(B){return(B==null?0:B.style)?B.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.p.computeisMultiline=function(B){if(this.multilineOverride!==void 0)return this.multilineOverride;var R,V;return!!(B==null?0:(R=B.formField)==null?0:(V=R.textInputFormFieldRenderer)==null?0:V.isMultiline)};
_.p.computeTextDisplayed=function(B,R){if(B)return B;if(R)return R};
_.p.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.p.onSave=function(){if(this.textForm.validate()){this.textForm.save();var B=this.textForm.value;if(B)this.set("data.textDisplayed",_.s$(B));else{var R;((R=this.data)==null?0:R.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Kj("inline-form-changed",this.data));this.isEditing=!1}};
_.p.onCancel=function(){var B=_.FF(this.data.textDisplayed);B===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(B);this.isEditing=!1};
YO.prototype.onKeydown=YO.prototype.onKeydown;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],YO.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],YO.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],YO.prototype,"isEditing",void 0);_.r([_.E(),_.Z("design:type",Object)],YO.prototype,"useSlot",void 0);_.r([_.E(),_.Z("design:type",Boolean)],YO.prototype,"multilineOverride",void 0);_.r([_.E(),_.Z("design:type",Boolean)],YO.prototype,"enableOverlayTheme",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Z("design:type",String)],YO.prototype,"componentStyle",void 0);
_.r([_.E({computed:"computeisMultiline(data)"}),_.Z("design:type",Object)],YO.prototype,"isMultiline",void 0);_.r([_.Yp("#text-form"),_.Z("design:type",Object)],YO.prototype,"textForm",void 0);_.r([_.R_("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],YO.prototype,"onKeydown",null);YO=_.r([_.A({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],YO);
_.F(YO,"ytd-inline-form-renderer",function(){if(Svo!==void 0)return Svo;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Svo=B},{mode:1});var HMe;var hP=function(){var B=_.c.apply(this,arguments)||this;B.previousSelectValue=void 0;B.selectedItemMessage=void 0;return B};
_.l(hP,_.c);hP.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
hP.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var B,R,V,e,X=(B=this.data)==null?void 0:(R=B.dropdown)==null?void 0:(V=R.dropdownRenderer)==null?void 0:(e=V.entries)==null?void 0:e.map(function(b){return b.privacyDropdownItemRenderer});
B=_.h(X!=null?X:[]);for(R=B.next();!R.done;R=B.next())if((R=R.value)&&R.int32Value===this.selectedValue){this.selectedItemMessage=R.itemMessage;break}}else this.selectedItemMessage=void 0;var Y;(Y=this.onValueChanged)==null||Y.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var t;(t=this.data)!=null&&t.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
hP.prototype.onValueChangedForSelectedValue=function(B){this.selectedValue=B.detail.value};
hP.prototype.selectedValueChanged=hP.prototype.selectedValueChanged;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],hP.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],hP.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],hP.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],hP.prototype,"theme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Number)],hP.prototype,"selectedValue",void 0);_.r([_.E(),_.Z("design:type",Function)],hP.prototype,"onValueChanged",void 0);
_.r([_.bp("selectedValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hP.prototype,"selectedValueChanged",null);hP=_.r([_.A({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],hP);
_.F(hP,"ytd-dropdown-form-field-renderer",function(){if(HMe!==void 0)return HMe;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return HMe=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var M7e;var tP=function(){return _.c.apply(this,arguments)||this};
_.l(tP,_.c);_.mh.Object.defineProperties(tP.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var B=[],R=_.h(this.data||[]),V=R.next();!V.done;V=R.next())(V=_.D(V.value,lBe))&&B.push(V);return B}}});
_.r([_.E(),_.Z("design:type",Array)],tP.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],tP.prototype,"byline",null);tP=_.r([_.A({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],tP);
_.F(tP,"ytd-playlist-byline-renderer",function(){if(M7e!==void 0)return M7e;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return M7e=B},{mode:1});var kd2;var WQ=function(){var B=_.c.apply(this,arguments)||this;B.rtlBullet=_.k("web_playlist_stats_rtl_bullet_icon_killswitch");B.modern=_.k("web_modern_buttons");B.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return B};
_.l(WQ,_.c);_.p=WQ.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(B){return B?!!B.playlistCustomThumbnailRenderer:!1};
_.p.onYtNavigate=function(B,R){if(R&&R.actions&&R.actions.indexOf("shuffle")>-1){B=_.Oz().resolve(_.Ky);var V=R.tempData||{};V.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);R.tempData=V;B.isShuffleNextPlaylist=!0}};
_.p.onUpdatePlaylistAction=function(B){var R;B=(R=_.D(B,_.f1b))==null?void 0:R.updatedRenderer;if(R=_.D(B,aw))this.data=R};
_.p.computeStyleType=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.p.computeThumbnailWidth=function(B){return B==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.p.computeHideThumbnailAria=function(B){if(B==null?0:B.thumbnailOverlays)for(var R=0;R<B.thumbnailOverlays.length;R++){var V=void 0;if((V=B.thumbnailOverlays[R])==null?0:V.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
WQ.prototype.onYtNavigate=WQ.prototype.onYtNavigate;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],WQ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],WQ.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],WQ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WQ.prototype,"rtlBullet",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Z("design:type",String)],WQ.prototype,"styleType",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Z("design:type",Number)],WQ.prototype,"thumbnailWidth",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WQ.prototype,"modern",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Z("design:type",Boolean)],WQ.prototype,"isCustomThumbnail",void 0);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Object]),_.Z("design:returntype")],WQ.prototype,"onYtNavigate",null);
WQ=_.r([_.A({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],WQ);
_.F(WQ,"ytd-playlist-sidebar-primary-info-renderer",function(){if(kd2!==void 0)return kd2;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return kd2=B},{mode:1});var DLi;var bn=function(){return _.c.apply(this,arguments)||this};
_.l(bn,_.c);bn.prototype.computeOwnerVisibility=function(B){return!(!B.videoOwner&&!B.button)};
bn.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bn.prototype,"data",void 0);bn=_.r([_.A({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],bn);
_.F(bn,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(DLi!==void 0)return DLi;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return DLi=B},{mode:1});var fLz;var JP=function(){var B=_.c.apply(this,arguments)||this;B.expanded=!1;B.isCompact=!1;return B};
_.l(JP,_.c);_.p=JP.prototype;_.p.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.p.dataChanged=function(){this.data&&_.qV(_.w(this.text),_.dT_(_.xT4,_.FF(this.data.text||null)))};
_.p.computeAutoScrollEnabled=function(B,R){return B&&!R};
_.p.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.p.toggleOnTap=function(){this.expanded=!this.expanded};
JP.prototype.expandedChanged=JP.prototype.expandedChanged;JP.prototype.dataChanged=JP.prototype.dataChanged;_.r([_.v(_.Nje),_.Z("design:type",Object)],JP.prototype,"ytdAutoScrollBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],JP.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],JP.prototype,"expanded",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],JP.prototype,"isCompact",void 0);_.r([_.E({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Z("design:type",Boolean)],JP.prototype,"autoScrollEnabled",void 0);_.r([_.Yp("#text"),_.Z("design:type",Object)],JP.prototype,"text",void 0);_.r([_.Yp("#expander-icon"),_.Z("design:type",Object)],JP.prototype,"expanderIcon",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JP.prototype,"dataChanged",null);_.r([_.XX("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JP.prototype,"expandedChanged",null);JP=_.r([_.A({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],JP);
_.F(JP,"ytd-channel-legal-info-renderer",function(){if(fLz!==void 0)return fLz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return fLz=B},{mode:1});var lLU;var zRm=_.Wz("DOWNLOAD",{},"Download"),aL6=_.Wz("DOWNLOADING",{},"Downloading"),dLr=_.Wz("DOWNLOADED",{},"Downloaded"),jx=function(){var B=_.c.apply(this,arguments)||this;B.downloadProgress=0;B.isDownloadComplete=!1;B.transferState="TRANSFER_STATE_UNKNOWN";return B};
_.l(jx,_.c);_.p=jx.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.dataChanged=function(){var B;(B=this.data)!=null&&B.tooltip||(B=_.xG(_.g6().getState(),this.playlistId),this.updateButtonState(B))};
_.p.computePlaylistId=function(B){return B};
_.p.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.p.updateButtonState=function(B){if(this.data&&(this.data.tooltip!==aL6||!_.NR(B))){this.isDownloadComplete=!1;switch(B){case "TRANSFER_STATE_UNKNOWN":B=zRm;var R="OFFLINE_DOWNLOAD";var V="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":B=dLr;R="OFFLINE_PIN";V="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":B=aL6;R="OFFLINE_DOWNLOADING_ZERO";V="ACTION_REMOVE_WITH_PROMPT";
break;default:B=zRm,R="OFFLINE_DOWNLOAD",V="ACTION_ADD"}var e=Object.assign({},this.data);e.tooltip=B;e.accessibilityData={accessibilityData:{label:B}};e.icon={iconType:R};e.size="SIZE_DEFAULT";_.D(e.command,_.jX)&&(_.D(e.command,_.jX).action=V);this.set("data",e)}};
_.p.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var B="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?B="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?B="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?B="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?B="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?B="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(B="OFFLINE_PIN",this.isDownloadComplete=!0);var R;B!==((R=this.data.icon)==null?void 0:R.iconType)&&(R=Object.assign({},this.data),R.tooltip=aL6,R.accessibilityData={accessibilityData:{label:aL6}},R.icon={iconType:B},_.D(R.command,_.jX)&&(_.D(R.command,_.jX).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",R))}};
jx.prototype.updateProgress=jx.prototype.updateProgress;jx.prototype.onTransferStateChanged=jx.prototype.onTransferStateChanged;jx.prototype.dataChanged=jx.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],jx.prototype,"ytdReduxBehavior",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],jx.prototype,"forceIconButton",void 0);
_.r([_.E({value:!0}),_.Z("design:type",Boolean)],jx.prototype,"forceIconOnly",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],jx.prototype,"overrides",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],jx.prototype,"buttonTooltipPosition",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],jx.prototype,"styleActionButton",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],jx.prototype,"disableTextTransform",void 0);
_.r([_.E({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Z("design:type",String)],jx.prototype,"playlistId",void 0);_.r([_.E(),_.Z("design:type",Object)],jx.prototype,"data",void 0);_.r([_.E({selector:_.qNd,selectorArgs:["playlistId"]}),_.Z("design:type",Object)],jx.prototype,"downloadProgress",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],jx.prototype,"isDownloadComplete",void 0);
_.r([_.E({selector:_.xG,selectorArgs:["playlistId"]}),_.Z("design:type",String)],jx.prototype,"transferState",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],jx.prototype,"showTooltips",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],jx.prototype,"sendCommandWhenDisabled",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],jx.prototype,"disabled",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jx.prototype,"dataChanged",null);_.r([_.bp("transferState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jx.prototype,"onTransferStateChanged",null);_.r([_.bp("downloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jx.prototype,"updateProgress",null);
jx=_.r([_.A({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],jx);
_.F(jx,"ytd-download-playlist-button-renderer",function(){if(lLU!==void 0)return lLU;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return lLU=B},{mode:1});var wXz;_.mR(_.i2,"thumbnail-overlay-button-view-model",{props:{data:_.qq,lockupExperiments:_.qq}});var UE=function(){var B=_.c.apply(this,arguments)||this;B.isSquare=!1;B.isVertical=!1;return B};
_.l(UE,_.c);UE.prototype.computeIsSquare=function(B){return B!=null&&B.thumbnail?nke(B.thumbnail)==="SQUARE":!1};
UE.prototype.computeIsVertical=function(B){return B!=null&&B.thumbnail?nke(B.thumbnail)==="VERTICAL":!1};
UE.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Z("design:type",Object)],UE.prototype,"isSquare",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Z("design:type",Object)],UE.prototype,"isVertical",void 0);
_.r([_.E(),_.Z("design:type",Object)],UE.prototype,"data",void 0);UE=_.r([_.A({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],UE);
_.F(UE,"ytd-hero-playlist-thumbnail-renderer",function(){if(wXz!==void 0)return wXz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wXz=B},{mode:1});var Nv=function(){var B=_.c.apply(this,arguments)||this;B.isDarkTheme=!1;B.isUltraWide=!1;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return B};
_.l(Nv,_.c);_.p=Nv.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.Oz();var B;(B=_.Oz().resolve(_.uj(_.iw)))!=null&&(B.headerElement=this.hostElement)};
_.p.detached=function(){var B;(B=_.Oz().resolve(_.uj(_.iw)))!=null&&(B.headerElement=void 0)};
_.p.onUpdateHeader=function(B){(B=B.detail)&&this.set("data",B)};
_.p.computeTextDisplayed=function(B){if(B)return B.textDisplayed?B.textDisplayed:B.placeholder};
_.p.gradientColorToLinearGradientStop=function(B){var R=this.isDarkTheme?B.darkThemeColor:B.lightThemeColor;return R?_.zF(R)+" "+((B==null?void 0:B.startLocation)||0)*100+"%":"transparent"};
_.p.onWindowResize=function(){var B;((B=this.data)==null?0:B.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.p.onIronResize=function(B){this.isUltraWide=!B.detail.value};
_.p.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.p.onUpdatePlaylistName=function(B){var R=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},B.detail.value));_.gB(this,function(){var V;(V=R.editableTitle)==null||V.resize()})};
_.p.onUpdatePlaylistDescription=function(B){var R=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},B.detail.value));_.gB(this,function(){var V;(V=R.editableDescriptionInlineExpander)==null||V.resize()})};
_.p.getCinematicData=function(B){return _.D(B==null?void 0:B.cinematicContainer,_.MX)};
_.mh.Object.defineProperties(Nv.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 B,R=(B=this.getCinematicData(this.data))==null?void 0:B.config;return(B=this.isDarkTheme?R==null?void 0:R.darkThemeBackgroundColor:R==null?void 0:R.lightThemeBackgroundColor)?"background-color:"+_.li(B)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var B;return _.D((B=this.data)==null?void 0:B.descriptionForm,yg4)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var B=this,R,V,e;return"background:linear-gradient(to bottom, "+(((e=(R=this.getCinematicData(this.data))==null?void 0:(V=R.gradientColorConfig)==null?void 0:V.map(function(X){return B.gradientColorToLinearGradientStop(X)}))==null?void 0:e.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var B;return _.FF((B=this.data)==null?void 0:B.descriptionTapText)}}});
Nv.prototype.onUpdateHeader=Nv.prototype.onUpdateHeader;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Nv.prototype,"actionHandlerBehavior",void 0);_.r([_.Yp("#description-inline-expander"),_.Z("design:type",Object)],Nv.prototype,"descriptionInlineExpander",void 0);
_.r([_.Yp("#editable-description-inline-expander"),_.Z("design:type",Object)],Nv.prototype,"editableDescriptionInlineExpander",void 0);_.r([_.E(),_.Z("design:type",Object)],Nv.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Nv.prototype,"isUltraWide",void 0);_.r([_.Yp("#editable-title-display"),_.Z("design:type",Object)],Nv.prototype,"editableTitle",void 0);_.r([_.K("isUltraWide"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nv.prototype,"maxDescriptionLines",null);
_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nv.prototype,"noCinematicData",null);_.r([_.R_("yt-new-playlist-header"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Nv.prototype,"onUpdateHeader",null);_.r([_.K("data","isDarkTheme"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nv.prototype,"backgroundStyle",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nv.prototype,"descriptionFormData",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nv.prototype,"getDropdownTheme",null);_.r([_.K("data","isDarkTheme"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Nv.prototype,"gradientStyle",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nv.prototype,"descriptionTapText",null);
Nv=_.r([_.A({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Nv);
_.F(Nv,"ytd-playlist-header-renderer",function(){if(yCU!==void 0)return yCU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return yCU=B},{mode:_.up("kevlar_poly_si_batch_j078")?1:2});var T8U;var xLe;var GS=function(){return _.c.apply(this,arguments)||this};
_.l(GS,_.c);GS.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],GS.prototype,"data",void 0);GS=_.r([_.A({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],GS);
_.F(GS,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(xLe!==void 0)return xLe;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return xLe=B},{mode:1});var yd=function(){return _.c.apply(this,arguments)||this};
_.l(yd,_.c);
yd.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}}}}};
yd.prototype.computeUsePremiumShowStyle=function(B){if(!B||!B.items)return!1;for(var R=0;R<B.items.length;R++)if(_.D(B.items[R],aw)){var V=void 0;return((V=_.D(B.items[R],aw))==null?void 0:V.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yd.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Z("design:type",Boolean)],yd.prototype,"usePremiumShowStyle",void 0);
yd=_.r([_.A({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],yd);
_.F(yd,"ytd-playlist-sidebar-renderer",function(){if(T8U!==void 0)return T8U;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return T8U=B},{mode:1});var Lj2;var vKi=_.sx(function(B){var R=B.data;var V=B.noPadding;var e=B.enableBanner;var X=B.cinematicContainerTopbarOffset;var Y=B.allowCinematicContainerOverflow;var t=B.displayAsSidebar;B=B.className;_.lJ(function(){R().tagManagerId&&(_.Nq(R().tagManagerId,_.vE("GL")),e84(R().tagManagerId))});
var b=_.No(R8N,function(){return R().pageHeaderEntityKey});
return _.N("yt-page-header-renderer",{class:_.XE("page-header-renderer-wiz",B)},_.N(_.wb,{data:function(){var J;return((J=b())==null?0:J.header)?b().header:(t==null?0:t())&&R().sidebarContent?R().sidebarContent:R().content}},{pageHeaderViewModel:function(J){return _.N(_.Efo,{data:J.data,
noPadding:V,enableBanner:e,cinematicContainerTopbarOffset:X,allowCinematicContainerOverflow:Y,displayAsSidebar:function(){return(t==null?void 0:t())&&R().enableSidebarView}})}}))},"wi");
vKi.idomCompat=!0;_.mR(vKi,"yt-page-header-renderer",{props:{data:_.qq,noPadding:_.qq,enableBanner:_.qq,cinematicContainerTopbarOffset:_.qq,allowCinematicContainerOverflow:_.qq,displayAsSidebar:_.qq,className:_.qq}});_.mR(_.K04,"yt-image-banner-view-model",{props:{data:_.qq,isPositionRelative:_.qq}});var Sx=function(){var B=_.c.apply(this,arguments)||this;B.expandableCustomTabRenderable=function(R){return O4N(R,function(){return void B.onSearchNavigate()})};
B.isRichGrid=!1;B.isConstrainedList=!1;B.richGridMiniMode=!1;B.richGridStyle="RICH_GRID_STYLE_UNKNOWN";B.isRichGridShorts=!1;B.responsiveSizing="COMPACT";B.disableGridStateAware=!1;B.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return B};
_.l(Sx,_.c);_.p=Sx.prototype;_.p.computeHeaderDisabled=function(B,R){return R||!B||this.tabsHidden};
_.p.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.p.computeIsRichGridShorts=function(B){return B==="RICH_GRID_STYLE_SHORTS_GRID"||B==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.p.computeImageBannerViewModel=function(){var B,R;return _.D((R=_.D((B=this.data)==null?void 0:B.content,_.JyT))==null?void 0:R.banner,_.Ypo)};
_.p.computeHasCinematicContainer=function(){var B,R;return!((R=_.D((B=this.data)==null?void 0:B.content,_.JyT))==null||!R.background)};
_.p.handleHeaderResize=function(){var B=_.w(this.hostElement).querySelector("#header");B&&_.OI(B,"iron-resize")};
_.p.handleInsertTabCommand=function(B){var R=_.D(B,z8m);R&&(R.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(V){return V.tabRenderer&&V.tabRenderer.tabIdentifier===R.tabIdentifier})||this.splice("tabs",R.tabIndex||-1,0,R.tab))};
_.p.handleRefreshChannelTabAction=function(B){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===B&&_.OI(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.p.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.o_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.p.observerRichGridSlimItemsPerRow=function(){_.o_(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.p.updateCssVars=function(){this.richGridItemsPerRow&&_.o_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.RC("rich_grid_max_item_width",500))+16)-16+"px"})};
_.p.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.o_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.p.onDataChanged=function(){this.handleHeaderResize()};
_.p.onWindowResize=function(){this.handleHeaderResize()};
_.p.onFocusedChanged=function(B){(B=_.ii(B))&&B.is==="tp-yt-paper-tab"&&B.hasRipple()&&(B.getRipple().holdDown=!B.pointerDown&&B.focused)};
_.p.updateSelectedFromBinding=function(B){this.ytdTabbedHeaderBehavior.selected=B.detail.value};
_.p.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.mh.Object.defineProperties(Sx.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:BNi(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.imageBannerViewModel)==null?void 0:B.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Sx.prototype.onDataChanged=Sx.prototype.onDataChanged;Sx.prototype.updateCssVarsForResponsiveGrid=Sx.prototype.updateCssVarsForResponsiveGrid;Sx.prototype.updateCssVars=Sx.prototype.updateCssVars;Sx.prototype.observerRichGridSlimItemsPerRow=Sx.prototype.observerRichGridSlimItemsPerRow;Sx.prototype.observerRichGridItemsPerRow=Sx.prototype.observerRichGridItemsPerRow;_.r([_.v(_.LL),_.Z("design:type",Object)],Sx.prototype,"ytdGridStateAwareBehavior",void 0);
_.r([_.v(aB6),_.Z("design:type",Object)],Sx.prototype,"ytdTabbedHeaderBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Sx.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Sx.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],Sx.prototype,"ytdReduxBehavior",void 0);_.r([_.Yp("#tabs"),_.Z("design:type",Object)],Sx.prototype,"tabsElement",void 0);_.r([_.E(),_.Z("design:type",Array)],Sx.prototype,"tabs",void 0);_.r([_.E(),_.Z("design:type",Object)],Sx.prototype,"expandableCustomTabRenderable",void 0);_.r([_.K("tabs.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Sx.prototype,"tabGroupShape",null);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Sx.prototype,"isRichGrid",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Sx.prototype,"isConstrainedList",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Object)],Sx.prototype,"richGridMiniMode",void 0);_.r([_.E({selector:function(B){return B.ui.richGridStyle}}),
_.Z("design:type",Object)],Sx.prototype,"richGridStyle",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Z("design:type",Object)],Sx.prototype,"isRichGridShorts",void 0);_.r([_.E({selector:_.ar}),_.Z("design:type",Number)],Sx.prototype,"richGridItemsPerRow",void 0);_.r([_.E({selector:function(B){return B.ui.richGridContainerWidth}}),
_.Z("design:type",Number)],Sx.prototype,"richGridContainerWidth",void 0);_.r([_.E({selector:_.fud}),_.Z("design:type",Number)],Sx.prototype,"richGridSlimItemsPerRow",void 0);_.r([_.E(),_.Z("design:type",Object)],Sx.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Sx.prototype,"responsiveSizing",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Sx.prototype,"disableGridStateAware",void 0);
_.r([_.E({computed:"computeImageBannerViewModel(data)"}),_.Z("design:type",Object)],Sx.prototype,"imageBannerViewModel",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Z("design:type",Boolean)],Sx.prototype,"hasCinematicContainer",void 0);_.r([_.E({selector:_.cq4,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sx.prototype,"guideIsVisibleButNotPersistent",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("imageBannerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Sx.prototype,"hasBanner",null);_.r([_.E({reflectToAttribute:!0}),_.K("imageBannerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Sx.prototype,"hasInsetBanner",null);_.r([_.E({computed:"computeTabsHidden(tabs)",value:!0}),_.Z("design:type",Boolean)],Sx.prototype,"tabsHidden",void 0);
_.r([_.XX("richGridItemsPerRow","isRichGrid"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sx.prototype,"observerRichGridItemsPerRow",null);_.r([_.XX("richGridSlimItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sx.prototype,"observerRichGridSlimItemsPerRow",null);
_.r([_.XX("richGridItemsPerRow","richGridMiniMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sx.prototype,"updateCssVars",null);_.r([_.XX("richGridContainerWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sx.prototype,"updateCssVarsForResponsiveGrid",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sx.prototype,"onDataChanged",null);
Sx=_.r([_.A({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Sx);
_.F(Sx,"ytd-tabbed-page-header",function(){if(Lj2!==void 0)return Lj2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Lj2=B},{mode:1});var Kjj;var HQ=function(){return _.c.apply(this,arguments)||this};
_.l(HQ,_.c);HQ.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.o_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.mh.Object.defineProperties(HQ.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var B,R;return this.componentBehavior.computeIcon_(((R=_.D((B=this.data)==null?void 0:B.badge,_.VIv))==null?void 0:R.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=_.D((B=this.data)==null?void 0:B.badge,_.VIv))==null?void 0:R.label}}});
HQ.prototype.observerRichGridItemsPerRow=HQ.prototype.observerRichGridItemsPerRow;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],HQ.prototype,"componentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],HQ.prototype,"ytdReduxBehavior",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.zz}),_.Z("design:type",Boolean)],HQ.prototype,"richGridMiniMode",void 0);
_.r([_.E({selector:_.ar}),_.Z("design:type",Number)],HQ.prototype,"richGridItemsPerRow",void 0);_.r([_.E(),_.Z("design:type",Object)],HQ.prototype,"data",void 0);_.r([_.XX("richGridItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HQ.prototype,"observerRichGridItemsPerRow",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HQ.prototype,"badgeIconName",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HQ.prototype,"badgeLabel",null);HQ=_.r([_.A({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],HQ);
_.F(HQ,"ytd-member-hub-profile-renderer",function(){if(Kjj!==void 0)return Kjj;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Kjj=B},{mode:1});var ILj;var Mv=function(){return _.c.apply(this,arguments)||this};
_.l(Mv,_.c);Mv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Mv.prototype,"data",void 0);Mv=_.r([_.A({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Mv);
_.F(Mv,"ytd-settings-sidebar-renderer",function(){if(ILj!==void 0)return ILj;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ILj=B},{mode:1});var EKN;var kO=function(){var B=_.c.apply(this,arguments)||this;B.expandableCustomTabRenderable=function(R){return O4N(R,function(){return void B.onSearchNavigate()})};
return B};
_.l(kO,_.c);kO.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
kO.prototype.onSearchNavigate=function(){this.selected=void 0};
kO.prototype.onTabsChange=function(){var B,R=(B=this.tabs)==null?void 0:B.findIndex(function(V){var e;return V==null?void 0:(e=V.tabRenderer)==null?void 0:e.selected});
R!==void 0&&(this.selected=R)};
kO.prototype.onTabsActive=function(B){if(this.tabs!==void 0){var R,V;(B=(R=this.tabs[B.detail.selected])==null?void 0:(V=R.tabRenderer)==null?void 0:V.endpoint)&&_.OI(this.hostElement,"yt-navigate",{endpoint:B})}};
_.mh.Object.defineProperties(kO.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:BNi(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
kO.prototype.onTabsChange=kO.prototype.onTabsChange;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.LL),_.Z("design:type",Object)],kO.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],kO.prototype,"ytdGuideStateAwareBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],kO.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Array)],kO.prototype,"tabs",void 0);_.r([_.E(),_.Z("design:type",Number)],kO.prototype,"selected",void 0);_.r([_.K("tabs.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],kO.prototype,"tabGroupShape",null);_.r([_.E(),_.Z("design:type",Object)],kO.prototype,"expandableCustomTabRenderable",void 0);
_.r([_.K("tabs"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],kO.prototype,"tabsEnabled",null);_.r([_.bp("tabs"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kO.prototype,"onTabsChange",null);kO=_.r([_.A({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],kO);
_.F(kO,"ytd-topic-channel-details-renderer",function(){if(EKN!==void 0)return EKN;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return EKN=B},{mode:1});var Qti;var DR=function(){var B=_.c.apply(this,arguments)||this;B.disableGridStateAware=!1;return B};
_.l(DR,_.c);DR.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]]"}}}}}};
DR.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
DR.prototype.updateCssVars=function(){_.o_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.RC("rich_grid_max_item_width",500))+16)-16+"px"})};
DR.prototype.updateCssVars=DR.prototype.updateCssVars;DR.prototype.activeChanged=DR.prototype.activeChanged;_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],DR.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],DR.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],DR.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Array)],DR.prototype,"tabs",void 0);_.r([_.E(),_.Z("design:type",Boolean)],DR.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],DR.prototype,"disableGridStateAware",void 0);
_.r([_.E({selector:_.ar}),_.Z("design:type",Number)],DR.prototype,"richGridItemsPerRow",void 0);_.r([_.E({selector:_.zz}),_.Z("design:type",Boolean)],DR.prototype,"richGridMiniMode",void 0);_.r([_.Yp("ytd-carousel-item-renderer"),_.Z("design:type",Object)],DR.prototype,"carousel",void 0);_.r([_.XX("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DR.prototype,"activeChanged",null);
_.r([_.XX("richGridItemsPerRow","richGridMiniMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],DR.prototype,"updateCssVars",null);DR=_.r([_.A({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],DR);
_.F(DR,"ytd-carousel-header-renderer",function(){if(Qti!==void 0)return Qti;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Qti=B},{mode:1});var qvN;var cC6=_.$Q(["https://www.google-analytics.com/analytics.js"]),fV=function(){var B=_.c.apply(this,arguments)||this;B.scriptAnalyticsAdded=!1;return B};
_.l(fV,_.c);fV.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var B,R=(B=this.data)==null?void 0:B.tagManagerId;R&&(_.Nq(R,_.vE("GL")),e84(R))};
fV.prototype.sendGoogleAnalyticsPageview=function(B){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var V=_.HB.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(V)};
var R=window.ga;R("set","page",window.location.pathname);R.l=+new Date;R("set","forceSSL",!0);R("create",B,"'auto'");R("send","pageview")};
fV.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var B=_.jr("SCRIPT");B.name="ga-analytics";var R=_.u3(cC6);_.Qm(B,R);B.async=!0;_.w(this.hostElement).appendChild(B)};
fV.prototype.dataChanged=fV.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],fV.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fV.prototype,"dataChanged",null);fV=_.r([_.A({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],fV);
_.F(fV,"ytd-channel-metadata-renderer",function(){if(qvN!==void 0)return qvN;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return qvN=B},{mode:1});var AC2;var iM4;var ln=function(){return _.c.apply(this,arguments)||this};
_.l(ln,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ln.prototype,"data",void 0);ln=_.r([_.A({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],ln);
_.F(ln,"ytd-sub-feed-option-renderer",function(){if(iM4!==void 0)return iM4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return iM4=B},{mode:1});var st4;var zS=function(){return _.c.apply(this,arguments)||this};
_.l(zS,_.c);zS.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zS.prototype,"ytRendererStamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zS.prototype,"data",void 0);zS=_.r([_.A({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],zS);
_.F(zS,"ytd-sub-feed-selector-renderer",function(){if(st4!==void 0)return st4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return st4=B},{mode:1});var aU=function(){return _.c.apply(this,arguments)||this};
_.l(aU,_.c);
aU.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}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],aU.prototype,"data",void 0);aU=_.r([_.A({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],aU);
_.F(aU,"ytd-browse-feed-actions-renderer",function(){if(AC2!==void 0)return AC2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return AC2=B},{mode:1});var Fjn;var rC6;var dD=function(){return _.c.apply(this,arguments)||this};
_.l(dD,_.c);dD.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],dD.prototype,"data",void 0);dD=_.r([_.A({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],dD);
_.F(dD,"ytd-mini-channel-renderer",function(){if(rC6!==void 0)return rC6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return rC6=B},{mode:1});var gKe;var wD=function(){return _.c.apply(this,arguments)||this};
_.l(wD,_.c);wD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],wD.prototype,"data",void 0);wD=_.r([_.A({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],wD);
_.F(wD,"ytd-vertical-channel-section-renderer",function(){if(gKe!==void 0)return gKe;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return gKe=B},{mode:1});var TS=function(){return _.c.apply(this,arguments)||this};
_.l(TS,_.c);TS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],TS.prototype,"data",void 0);TS=_.r([_.A({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],TS);
_.F(TS,"ytd-browse-secondary-contents-renderer",function(){if(Fjn!==void 0)return Fjn;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return Fjn=B},{mode:1});var ZMn;var xO=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};B.notActive=!1;B.isConstrainedList=!1;return B};
_.l(xO,_.c);_.p=xO.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(B){var R;return(B==null?void 0:(R=B.webComponentHint)==null?void 0:R.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.p.getPath=function(B,R){var V="data.tabs.#"+R+".";B.tabs[R].tabRenderer?V+="tabRenderer.":B.tabs[R].expandableTabRenderer&&(V+="expandableTabRenderer.");return V+"content.sectionListRenderer"};
_.p.computeDisplayedContent=function(B){this.unlinkPaths("content");if(B&&B.tabs)for(var R=B.tabs.length,V=0;V<R;V++){var e=B.tabs[V].tabRenderer||B.tabs[V].expandableTabRenderer;if(e.selected&&e.content)return this.linkPaths("content",this.getPath(B,V)),e.content}return null};
_.p.computeHasSecondaryColumnData=function(B){return!!B&&!!B.secondaryContents};
_.p.onRetrieveLocation=function(B,R){R.locationRetrieved(R.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);B.stopPropagation()};
_.p.onYtServiceRequestSent=function(B,R){_.k("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(R)};
_.p.onYtServiceRequestCompleted=function(B,R){_.k("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(R)};
_.p.onReplaceFeedContentAction=function(B){if(!_.k("replace_feed_content_action_killswitch")&&!this.notActive){var R;(B=(R=_.D(B,jvz))==null?void 0:R.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(B)}};
_.p.handleServiceRequestActions=function(B){if(B=B.actions){B=_.h(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;var V=void 0;((V=_.D(R,jvz))==null?0:V.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.D(R,jvz).items)}}};
xO.prototype.onYtServiceRequestCompleted=xO.prototype.onYtServiceRequestCompleted;xO.prototype.onYtServiceRequestSent=xO.prototype.onYtServiceRequestSent;xO.prototype.onRetrieveLocation=xO.prototype.onRetrieveLocation;_.r([_.v(_.LL),_.Z("design:type",Object)],xO.prototype,"ytdGridStateAwareBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],xO.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],xO.prototype,"data",void 0);_.r([_.E({computed:"computeDisplayedContent(data)"}),_.Z("design:type",Object)],xO.prototype,"content",void 0);
_.r([_.E({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],xO.prototype,"hasSecondaryColumnData",void 0);_.r([_.E({value:function(){return window.outerHeight>1024?3:2}}),
_.Z("design:type",Number)],xO.prototype,"initialCount",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],xO.prototype,"pageSubtype",void 0);_.r([_.Yp("ytd-section-list-renderer"),_.Z("design:type",Object)],xO.prototype,"listRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],xO.prototype,"notActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],xO.prototype,"isConstrainedList",void 0);
_.r([_.E(),_.Z("design:type",String)],xO.prototype,"responsiveSizing",void 0);_.r([_.R_("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],xO.prototype,"onRetrieveLocation",null);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],xO.prototype,"onYtServiceRequestSent",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],xO.prototype,"onYtServiceRequestCompleted",null);xO=_.r([_.A({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],xO);
_.F(xO,"ytd-two-column-browse-results-renderer",function(){if(ZMn!==void 0)return ZMn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ZMn=B},{mode:2});var mLm;var $LN;var LV=function(){var B=_.c.apply(this,arguments)||this;B.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"]);B.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"]);B.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return B};
_.l(LV,_.c);_.p=LV.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(B){B&&this.elementsPerRow!==B&&(this.elementsPerRow=B)};
_.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(B){return B};
_.p.observerElementsPerRow=function(){this.elementsPerRow&&_.o_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.p.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.p.requestElementsPerRow=function(){_.OI(this.hostElement,"yt-request-elements-per-row")};
LV.prototype.onIsVisibleChanged_=LV.prototype.onIsVisibleChanged_;LV.prototype.observerElementsPerRow=LV.prototype.observerElementsPerRow;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],LV.prototype,"actionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],LV.prototype,"data",void 0);_.r([_.E({value:6,reflectToAttribute:!0}),_.Z("design:type",Number)],LV.prototype,"elementsPerRow",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],LV.prototype,"wrapButtons",void 0);_.r([_.E({value:_.vE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Z("design:type",Boolean)],LV.prototype,"isMusic",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Z("design:type",String)],LV.prototype,"alertStyle",void 0);_.r([_.E({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Z("design:type",Function)],LV.prototype,"dismissBoundButtonTap_",void 0);_.r([_.E({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Z("design:type",Function)],LV.prototype,"acceptBoundButtonTap_",void 0);_.r([_.XX("elementsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LV.prototype,"observerElementsPerRow",null);_.r([_.XX("data.isVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LV.prototype,"onIsVisibleChanged_",null);LV=_.r([_.fJ({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],LV);
_.F(LV,"yt-alert-with-actions-renderer",function(){if($LN===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;mLm===void 0&&(mLm=document.createElement("template"));var e=mLm;V.call(R,e.content.cloneNode(!0),B.content.firstChild);$LN=B}B=$LN;return B},{mode:2});_.mR(_.sx(function(B){function R(q){var m={};return _.N(_.Hr,{text:q,className:_.XE("ytPersonalGreetingViewModelHeadline",(m.ytPersonalGreetingViewModelHeadlineSmall=function(){return b()===48},m))})}
function V(q,m){return _.N("span",{el:q,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},R(m))}
var e=_.Zh(),X=_.Zh(),Y=_.Zh(),t=function(){return B.data().canvasPromoData},b=function(){var q;
return(q=B.data().bannerHeight)!=null?q:56},J=_.h(_.WU({content:""},void 0,"rcUSic")),G=J.next().value,y=J.next().value,S=_.K$u(e,{throttleMs:100}),M=_.K$u(X,{throttleMs:100}),f=_.K$u(Y,{throttleMs:100});
J=_.h(_.WU(!0,void 0,"b0Yv9d"));var z=J.next().value,T=J.next().value;J=_.h(_.WU(!0,void 0,"ByEGnd"));var L=J.next().value,Q=J.next().value;_.lJ(function(){Q(M.width()-S.width()>1);T(f.width()+(B.data().avatar?48:0)-S.width()>1);y(z()?B.data().shorterGreeting:B.data().greeting)},"nSIsDe");
_.gb(e,function(){var q;return(q=B.data())==null?void 0:q.rendererContext},void 0,void 0,void 0,!0);
return _.N("yt-personal-greeting-view-model",{el:e,"aria-hidden":function(){return L()},
class:_.XE(B.className,"ytPersonalGreetingViewModelHost"),style:_.jQ({height:(0,_.M8)(function(){return L()?0:b()})})},_.N(_.H,{cond:function(){return B.data().avatar&&!z()},
then:function(){return _.N(_.wb,{data:function(){return B.data().avatar}},{decoratedAvatarViewModel:function(q){return _.N(_.S_,{data:q.data,
className:_.XE("ytPersonalGreetingViewModelAvatar")})}})}}),_.N("h1",null,R(function(){var q;
return(t==null?void 0:(q=t())==null?void 0:q.headline)||G()})),V(Y,function(){return B.data().greeting}),V(X,function(){return B.data().shorterGreeting}))},"xi"),"yt-personal-greeting-view-model",{props:{data:_.qq,
className:_.qq}});var vQ=function(){var B=_.c.apply(this,arguments)||this;B.hidden=!1;B.isConstrainedList=!1;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.responsiveSizing="COMPACT";B.attachedPlayers=_.k("kevlar_channel_trailer_multi_attach")?[]:void 0;B.player=null;B.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return B};
_.l(vQ,_.c);_.p=vQ.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:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},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 B=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){B.disposeMastheadAd()}]};
_.p.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new TNN(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 B=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=B)};
_.p.tabsChanged=function(){var B=this,R,V,e,X;if(this.pageSubtype==="channels"||_.k("kevlar_tab_gestures_for_tabbed_header_data")&&(((R=this.data)==null?0:(V=R.header)==null?0:V.c4TabbedHeaderRenderer)||((e=this.data)==null?0:(X=e.header)==null?0:X.carouselHeaderRenderer)))this.tabGestures=new wG(this.contents,this.contents,this.hostElement,this.header,function(J){B.ytdReduxBehavior.dispatch(J)});
var Y,t,b;R=(Y=this.data)==null?void 0:(t=Y.contents)==null?void 0:(b=t.twoColumnBrowseResultsRenderer)==null?void 0:b.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=R);this.tabGestures&&this.tabGestures.tabsChanged(R)};
_.p.channelIdChanged=function(){if(this.tabGestures){var B,R,V,e=this.tabGestures,X=(B=this.data)==null?void 0:(R=B.header)==null?void 0:(V=R.c4TabbedHeaderRenderer)==null?void 0:V.channelId;X&&X!==e.currentChannelId&&(e.scrollPositionForTabs.clear(),e.currentChannelId=X,e.lastVisitedTabScrollPosition=void 0,e.tabsStartAtInPx=0)}};
_.p.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.p.engagementPanelsChanged=function(){var B=_.Oz().resolve(_.Sf);if(B){if(this.engagementPanels)for(var R=_.h(this.engagementPanels),V=R.next();!V.done;V=R.next()){var e=void 0;(V=(e=V.value.identifier)==null?void 0:e.tag)&&B.panelMap.delete(V)}this.engagementPanels=[];var X;R=_.h(((X=this.data)==null?void 0:X.panels)||[]);for(X=R.next();!X.done;X=R.next()){X=_.D(X.value,_.Yte);var Y=V=void 0,t=void 0,b=void 0;if(e=((V=X)==null?void 0:V.targetId)||((Y=X)==null?void 0:Y.panelIdentifier)||((t=X)==
null?void 0:(b=t.identifier)==null?void 0:b.tag))Y=V=void 0,(Y=(V=B).registerPanelContent)==null||Y.call(V,e,{engagementPanelSectionListRenderer:X}),this.engagementPanels.push(X)}}};
_.p.onStampFinished=function(){var B=this;_.gB(this,function(){if(B.tabGestures){var R=B.tabGestures;if(R.scrollPositionNeedsUpdate){var V=_.Oz().resolve(_.uj(_.$B)),e;if((e=R.selectedTab)!=null&&e.title&&V&&(e=V.getCurrentPage())){if(R.scrollPositionForTabs.has(R.selectedTab.title)){var X,Y;V=(Y=(X=V.getCurrentPage())==null?void 0:X.clientHeight)!=null?Y:0;X=R.scrollPositionForTabs.get(R.selectedTab.title);e.setScrollTop(X);V>X+100&&(R.scrollPositionNeedsUpdate=!1)}else e.setScrollTop(Math.min(R.lastVisitedTabScrollPosition!==
void 0?R.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,R.tabsStartAtInPx)),R.scrollPositionNeedsUpdate=!1;R.ytdReduxDispatch(Vde(!1))}}}})};
_.p.loadPage_=function(B){this.initCsi();B&&(this.data=B);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.p.getTitle=function(B){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",B))return this.get("microformat.microformatDataRenderer.title",B);if(this.get("header.c4TabbedHeaderRenderer.title",B))return this.get("header.c4TabbedHeaderRenderer.title",B);if(this.get("header.feedTabbedHeaderRenderer.title",B))return _.FF(this.get("header.feedTabbedHeaderRenderer.title",B));if(this.get("header.interactiveTabbedHeaderRenderer.title",B))return this.get("header.interactiveTabbedHeaderRenderer.title",
B);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",B))return _.FF(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
B));var R,V;return _.k("enable_page_header_page_title")&&(B==null?0:(R=B.header)==null?0:(V=R.pageHeaderRenderer)==null?0:V.pageTitle)?B.header.pageHeaderRenderer.pageTitle:""};
_.p.updateTitle=function(B){_.OI(this.hostElement,"yt-update-title",this.getTitle(B))};
_.p.initCsi=function(){_.fP(this.pageSubtype||"browse",["ol","cpt"])};
_.p.getPlayer=function(){if(_.k("kevlar_channel_trailer_multi_attach")){for(var B=_.h(this.attachedPlayers),R=B.next();!R.done;R=B.next())if(R=R.value,R.isConnected||_.II(this.hostElement,R))return R;return null}return this.player};
_.p.getPlayerContainer=function(){return null};
_.p.onPlayerAttached=function(B,R){_.k("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(R):this.player=R};
_.p.onPlayerDetached=function(B,R){_.k("kevlar_channel_trailer_multi_attach")?(B=this.attachedPlayers.indexOf(R),B<0||this.attachedPlayers.splice(B,1)):this.player=null};
_.p.getServiceTrackingParams=function(){var B,R;return((B=this.data)==null?void 0:(R=B.responseContext)==null?void 0:R.serviceTrackingParams)||[]};
_.p.setMastheadAd=function(B){B&&B.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=B&&B.mastheadAd};
_.p.dataChanged=function(){var B=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.i42();_.gB(this,function(){_.Bz(B.hostElement,"ytd-update-grid-state-action")})};
_.p.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.p.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var B=this.data.alerts;return B&&B.find(function(R){return!!R.alertWithActionsRenderer})}};
_.p.computeGreetingData=function(){if(this.data&&this.data.alerts){var B=this.data.alerts;return B&&B.find(function(R){return!!R.personalGreetingViewModel})}};
_.p.computeHasC4TabbedHeaderRenderer=function(B){var R;return!!(B==null?0:(R=B.header)==null?0:R.c4TabbedHeaderRenderer)};
_.p.computeHasMemberHubProfileRenderer=function(B){var R;return!!(B==null?0:(R=B.header)==null?0:R.memberHubProfileRenderer)};
_.p.handleAlertCommand=function(B){this.get("alertCommand.alert.alertWithActionsRenderer",B)&&(B=_.D(B,Uwi),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",B.alert))};
_.p.handleYtPlaylistDeletionRedirect=function(B){B=this.get("playlistDeletionRedirectCommand.redirectEndpoint",B);_.OI(this.hostElement,"yt-navigate",{endpoint:B})};
_.p.computeFluidWidth=function(B,R,V){if(R==="mini_app"||V)return!0;var e,X,Y;B=B==null?void 0:(e=B.contents)==null?void 0:(X=e.twoColumnBrowseResultsRenderer)==null?void 0:(Y=X.tabs)==null?void 0:Y.find(function(J){var G;return J==null?void 0:(G=J.tabRenderer)==null?void 0:G.selected});
if(!B)return!1;var t,b;return!!((t=B.tabRenderer)==null?0:(b=t.content)==null?0:b.richGridRenderer)&&!["channel","channels","playables"].includes(R)};
_.p.computeHeaderFluidWidth=function(B){return B==="hashtag-landing-page"};
_.p.computeHasSidebar=function(B){var R;return!!(B.sidebar||((R=B.header)==null?0:R.playlistHeaderRenderer))};
_.p.computeHasPageHeaderSidebar=function(B){var R,V;return!!((R=B.header)==null?0:(V=R.pageHeaderRenderer)==null?0:V.enableSidebarView)};
_.p.computeUseUnifiedShowPageLayout=function(B){if(!B||this.pageSubtype!=="show"||!B.sidebar||!B.sidebar.playlistSidebarRenderer)return!1;B=B.sidebar.playlistSidebarRenderer;if(!B.items)return!1;for(var R=0;R<B.items.length;R++)if(_.D(B.items[R],aw)){var V=void 0;return((V=_.D(B.items[R],aw))==null?void 0:V.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.p.computeIsConstrainedList=function(B){return _.k("web_enable_constrained_list_subscriptions_channels")&&B==="subscriptions-channels"};
_.p.computeResponsiveSizing=function(B){return B==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.mh.Object.defineProperties(vQ.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var B,R;return((B=this.data)==null?0:(R=B.header)==null?0:R.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var B,R;if(!((B=this.data)==null?0:(R=B.sidebar)==null?0:R.playlistSidebarRenderer))return!1;var V;return(V=this.data)!=null&&V.header?!1:!0}}});
_.mh.Object.defineProperties(vQ,{template:{configurable:!0,enumerable:!0,get:function(){if(vuz===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);vuz=B}B=vuz;return B}}});
vQ.prototype.dataChanged=vQ.prototype.dataChanged;vQ.prototype.onPlayerDetached=vQ.prototype.onPlayerDetached;vQ.prototype.onPlayerAttached=vQ.prototype.onPlayerAttached;vQ.prototype.onStampFinished=vQ.prototype.onStampFinished;vQ.prototype.engagementPanelsChanged=vQ.prototype.engagementPanelsChanged;vQ.prototype.scrollAtTopChanged=vQ.prototype.scrollAtTopChanged;vQ.prototype.channelIdChanged=vQ.prototype.channelIdChanged;vQ.prototype.tabsChanged=vQ.prototype.tabsChanged;
vQ.prototype.activeChanged=vQ.prototype.activeChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],vQ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],vQ.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],vQ.prototype,"ytdReduxBehavior",void 0);
_.r([_.v(_.lr.YtPageBehavior),_.Z("design:type",Object)],vQ.prototype,"ytPageBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],vQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],vQ.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],vQ.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],vQ.prototype,"hidden",void 0);_.r([_.E(),_.Z("design:type",Object)],vQ.prototype,"mastheadAdData",void 0);_.r([_.E({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Z("design:type",Object)],vQ.prototype,"alertBannerData",void 0);_.r([_.E({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Z("design:type",Object)],vQ.prototype,"greetingData",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],vQ.prototype,"pageSubtype",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.Z("design:type",Boolean)],vQ.prototype,"hasC4TabbedHeaderRenderer",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Z("design:type",Boolean)],vQ.prototype,"hasMemberHubProfileRenderer",void 0);
_.r([_.E({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],vQ.prototype,"hasSidebar",void 0);_.r([_.E({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],vQ.prototype,"hasPageHeaderSidebar",void 0);_.r([_.E({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],vQ.prototype,"roundedContainer",void 0);
_.r([_.E({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],vQ.prototype,"useUnifiedShowPageLayout",void 0);_.r([_.E({computed:"computeIsConstrainedList(pageSubtype)"}),_.Z("design:type",Object)],vQ.prototype,"isConstrainedList",void 0);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vQ.prototype,"usePlaylistHeaderRenderer",null);
_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vQ.prototype,"useOldPlaylistSidebarRenderer",null);_.r([_.E({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Z("design:type",Boolean)],vQ.prototype,"fluidWidth",void 0);_.r([_.E({selector:function(B){return B.ui.scrollAtTop}}),
_.Z("design:type",Boolean)],vQ.prototype,"scrollAtTop",void 0);_.r([_.E({selector:_.Aq7}),_.Z("design:type",Boolean)],vQ.prototype,"tabGesturesIsActive",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],vQ.prototype,"darkerDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Z("design:type",Boolean)],vQ.prototype,"disableHeaderFluidWidth",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Z("design:type",String)],vQ.prototype,"responsiveSizing",void 0);_.r([_.Yp("ytd-two-column-browse-results-renderer"),_.Z("design:type",HTMLElement)],vQ.prototype,"contents",void 0);_.r([_.Yp("#header"),_.Z("design:type",HTMLElement)],vQ.prototype,"header",void 0);_.r([_.Yp("ytd-refresh"),_.Z("design:type",Object)],vQ.prototype,"refresh",void 0);
_.r([_.XX("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vQ.prototype,"activeChanged",null);_.r([_.XX("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vQ.prototype,"tabsChanged",null);_.r([_.XX("data.header.c4TabbedHeaderRenderer.channelId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vQ.prototype,"channelIdChanged",null);
_.r([_.XX("scrollAtTop"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vQ.prototype,"scrollAtTopChanged",null);_.r([_.E(),_.Z("design:type",Object)],vQ.prototype,"engagementPanels",void 0);_.r([_.XX("data.panels"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vQ.prototype,"engagementPanelsChanged",null);
_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vQ.prototype,"onStampFinished",null);_.r([_.R_("yt-player-attached"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Element]),_.Z("design:returntype")],vQ.prototype,"onPlayerAttached",null);_.r([_.R_("yt-player-detached"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Element]),_.Z("design:returntype")],vQ.prototype,"onPlayerDetached",null);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vQ.prototype,"dataChanged",null);vQ=_.r([_.A({is:"ytd-browse"})],vQ);_.Db.registerService(_.Wvx,vQ);
_.wz();
}catch(e){_._DumpException(e)}
try{
_.aI("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 BV=function(B){if(!B)return"browse";var R=B.page,V=B.url,e,X,Y,t=(e=B.response)==null?void 0:(X=e.responseContext)==null?void 0:(Y=X.webResponseContextExtensionData)==null?void 0:Y.pageTheme;if(t)R=t.toLowerCase().replace(/_/g,"-");else if(R!=="watch"&&R!=="learning_journey_watch"){var b,J;if((R==="browse"||R==="settings")&&((b=B.response)==null?0:(J=b.sidebar)==null?0:J.settingsSidebarRenderer))R="WEB_PAGE_TYPE_SETTINGS";else{var G,y;R==="browse"&&((G=B.response)==null?0:(y=G.metadata)==null?
0:y.channelMetadataRenderer)?R="channel":V&&(R=_.W$(V)||R)}}return R},$ni=function(){var B=_.qN("yt.aba.att");
return B?B:_.$e.instance!==void 0?_.$e.instance.nwj.bind(_.$e.instance):null},CN4=function(B,R){var V;
return _.W(function(e){return(V=$ni())?e.return(V(B,R,6E4)):e.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},PN2=function(B,R,V,e,X){R=R===void 0?[]:R;
X=X?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:X}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.n0(B),dialogMessages:R.map(function(Y){return _.n0(Y)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.n0(V),serviceEndpoint:X}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.n0(e)}}}}}},nzi=function(B){var R=!!_.cC().queueProxy;
var V,e,X;B=B==null?void 0:(V=B.response)==null?void 0:(e=V.currentVideoEndpoint)==null?void 0:(X=e.watchEndpoint)==null?void 0:X.playlistId;return!(!R&&!B)},u0e=function(B,R){var V=_.Up();
if(nzi(B))return V.playlistWatchPageActivation=!0;switch(BV(R)){case "yts-products":return V.productDetailsPageActivation=!0;case "mini_app":return V.miniAppPageActivation=!0;case "playables":return V.playablesDestPageActivation=!0;default:return!1}},Oq4=function(B,R,V){for(var e=typeof B==="string"?B.split(""):B,X=B.length-1;X>=0;--X)X in e&&R.call(V,e[X],X,B)},oWm=function(B,R){R=_.yAK(B,R);
R>=0&&_.mI(B,R)},BV2=function(B){return Array.prototype.concat.apply([],arguments)},RtU=function(B){var R=0;
R=R===void 0?0:R;if(!_.Ho(B))throw _.yv("uint64");var V=typeof B;switch(R){case 512:switch(V){case "string":return _.WbN(B);case "bigint":return String((0,_.IN)(64,B));default:return _.hlA(B)}case 1024:switch(V){case "string":return _.bRS(B);case "bigint":return _.nR((0,_.IN)(64,B));default:return _.tJI(B)}case 0:switch(V){case "string":return _.WbN(B);case "bigint":return _.nR((0,_.IN)(64,B));default:return _.Yo5(B)}default:return _.Ym(R,"Unknown format requested type for int64")}},VbU=function(B){B!=
null&&(B=B.JSC$6718_value_||"",B=typeof B==="string"?B:new Uint8Array(B));
return B},etm=function(B){for(var R=_.HB.apply(1,arguments),V=B[0],e=0;e<B.length-1;e++)V+=String(R[e]),V+=B[e+1];
R=document.implementation.createHTMLDocument("");e=R.createElement("style");R.head.appendChild(e);R=e.sheet;R.insertRule(V,0);if(R.cssRules.length===1&&(V=R.cssRules[0],V instanceof CSSStyleRule))return new _.iD(V.cssText.replace(/</g,"\\3C "))},Xf6=function(B,R){if(/-[a-z]/.test(R))return null;
if(_.$j2&&B.dataset){if(_.hNZ()&&!(R in B.dataset))return null;B=B.dataset[R];return B===void 0?null:B}return B.getAttribute("data-"+_.JZ(R))},Y7j=function(){var B=pfN;
_.qN("yt.ads.biscotti.getId_")||_.mk("yt.ads.biscotti.getId_",B)},htr=function(B){_.mk("yt.ads.biscotti.lastId_",B)},W42=function(){var B={};
for(_.lN=new tbo(B.handleError===void 0?_.v5:B.handleError,B.logEvent===void 0?_.dn:B.logEvent);_.zK.length>0;)switch(B=_.zK.shift(),B.type){case "ERROR":_.lN.logError(B.payload);break;case "EVENT":_.lN.logEvent(B.eventType,B.payload)}},b6o=function(B,R,V){return _.sL_(function(e){return V?e.userIdentifier!==void 0&&!B.includes(e.userIdentifier)&&V.includes(e.publicName):e.userIdentifier!==void 0&&!B.includes(e.userIdentifier)},R)},J$2=function(B){var R,V;
return _.W(function(e){if(e.nextAddress==1)return R=_.y_("YtIdbMeta hasAnyMeta other"),_.U(e,_.sL_(function(X){return X.userIdentifier!==void 0&&X.userIdentifier!==R},B),2);
V=e.yieldResult;return e.return(V.length>0)})},UCe=function(B,R){ju6||(ju6=_.dV.addLowPriorityJob(function(){var V,e,X,Y,t;
return _.W(function(b){switch(b.nextAddress){case 1:return _.U(b,_.$z(),2);case 2:V=b.yieldResult;if(!V)return b.return();e=!0;_.en(b,3);return _.U(b,b6o(B,V,R),5);case 5:X=b.yieldResult;if(!X.length){e=!1;b.jumpTo(6);break}Y=X[0];return _.U(b,_.Au(Y.actualName),7);case 7:return _.U(b,_.F0(Y.actualName,V),6);case 6:_.c8(b,4);break;case 3:t=_.WR(b),_.aC(t),e=!1;case 4:_.dV.cancelJob(ju6),ju6=0,e&&UCe(B,R),_.b3(b)}})}))},NV7=function(){var B;
return _.W(function(R){return R.nextAddress==1?_.U(R,_.$z(),2):(B=R.yieldResult)?R.return(J$2(B)):R.return(!1)})},GLe=function(B){var R=100;
R=R===void 0?500:R;var V,e,X,Y,t,b;return _.W(function(J){return J.nextAddress==1?(V=_.vE("INNERTUBE_CONTEXT_CLIENT_NAME",0),e=[V,(0,_.P8)()-2592E6],X=[V,(0,_.P8)()],Y=IDBKeyRange.bound(e,X),_.U(J,_.U1Y(B),2)):J.nextAddress!=3?(t=J.yieldResult,b=[],_.U(J,_.sB(t,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(G){b.length=0;return _.nq(G.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:Y,direction:"prev"},function(y){if(y.getValue()&&b.length<R)return b.push(y.getValue()),
y.delete().then(function(){return y.continue()})})}),3)):J.return(b)})},y$n=function(){var B;
return _.W(function(R){if(R.nextAddress==1)return _.U(R,_.$z(),2);B=R.yieldResult;if(!B||!_.SC()&&!_.k("nwl_init_require_datasync_id_killswitch")||!_.QGd())return R.jumpTo(0);_.czo=!0;_.qXI.isNwlInitialized=_.czo;return _.U(R,_.RW4().awaitInitialization(),0)})},Rv=function(B,R){_.BHp[B]=!0;
var V=_.Rq();V&&V.publish.apply(V,arguments);_.BHp[B]=!1},H6e=function(){if(_.T6K()&&!S7n){var B=function(V){V=V.data;
if(V.op==="serializedGelBatch"){var e=_.RIN.get(V.key);e&&(_.eIZ(V.serializedBatch,e.client,e.resolve,e.networklessOptions,e.isIsolated,e.useVSSEndpoint,e.dangerousLogToVisitorSession,e.requestsOutstanding),_.RIN.delete(V.key))}},R=_.wkZ();
R&&(R.addEventListener("message",B),R.onerror=function(){_.RIN.clear()});
S7n=!0}},Vp=function(){this.relativeTimeStart_=_.VG()},Mb2=function(B,R){B!=null&&this.append.apply(this,arguments)},kLN=function(){return _.vJ("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},DCU=function(B,R,V){V=V===void 0?!1:V;
var e,X,Y,t,b;return _.W(function(J){switch(J.nextAddress){case 1:_.Nn("SOCS",B,34128E3,"youtube.com",!0);if(_.Jo)return X=fetch(R,{method:"POST",mode:_.cJ(R),credentials:_.qr(R),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),Y=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.cJ("/upgrade_visitor_cookie?eom=1"),credentials:_.qr("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.U(J,Promise.all([X,Y]).then(function(G){return G[1]}),5);
fetch(R,{method:"POST",mode:_.cJ(R),credentials:_.qr(R),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.U(J,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.cJ("/upgrade_visitor_cookie?eom=1"),credentials:_.qr("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:e=J.yieldResult;J.jumpTo(3);break;case 5:e=t=J.yieldResult;case 3:if(!e.ok)throw Error("nf");return _.U(J,e.text(),7);case 7:b=J.yieldResult,
!b.includes('"state_switch":true')&&!V||b.includes("skip_reload_for_test")||window.location.reload(),_.b3(J)}})},fto=function(B){return _.W(function(R){return R.nextAddress==1?_.U(R,DCU(B.socsCookie,B.savePreferenceUrl,!0),2):R.return()})},lti=function(B){return _.W(function(R){return R.nextAddress==1?_.U(R,DCU(B.socsCookie,B.savePreferenceUrl),2):R.return()})},ate=function(B){B=B.xhr.responseText;
if(!_.pZ(B,")]}'"))throw new ed;B=JSON.parse(B.substr(4));if((B.type||1)>1)throw new ed;B=B.id;htr(B);X7=_.rf(B);zt4(18E5,2);return B},wfm=function(B,R){R=new dCN(R);
htr("");X7=_.Dq4(R);B>0&&zt4(12E4,B-1);throw R;},zt4=function(B,R){_.pq(function(){_.vz4().then(ate,function(V){return wfm(R,V)}).thenCatch(_.ys)},B)},pfN=function(){var B=_.Ezr();
if(B!==void 0)return _.SR(B);X7||(X7=_.vz4().then(ate).thenCatch(function(R){return wfm(2,R)}));
return X7},TVU=function(){var B=document;
return _.AA(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(R){return"on"+R.toLowerCase()in B})},xC4=function(B){B.addEventListener("click",function(R){var V=R.target;
V&&V.getAttribute("href")&&(V=V.getAttribute("href"),_.xq(window,V,"_blank"),R.preventDefault(),R.stopImmediatePropagation())})},L4o=function(B){var R,V,e,X=(e=(V=((R=B.mainDownloadsListEntity)!=null?R:{})[_.yG5])==null?void 0:V.refresh)!=null?e:"",Y;
B=(Y=B.refresh)==null?void 0:Y[X];X=B!=null?B:{};return(X==null?0:X.refreshTime)?Number(X==null?void 0:X.refreshTime):0},vW7=function(B,R){var V=_.MR(B);
return R.every(function(e){var X;e=e==null?void 0:(X=e.playbackDataEntity)==null?void 0:X.key;if(!e)return!1;X=_.XF(_.Rr(e).entityId,"mainVideoEntity");return!!V[X]})},K4r=function(B){B=_.yW(B.entities);
return _.oIo(B).length},Itj=function(B,R){if(R){var V;
B=(V=_.p7(B.entities,"downloadQualityPickerEntity",R))!=null?V:void 0}else B=void 0;return B},q7i=function(){EWo||(_.iz=_.j8d,EWo=new Qun);
return EWo},c$e=function(B){var R=document.getElementsByTagName("ytd-enforcement-message-view-model");
R.length===0||getComputedStyle(R[0]).display==="none"?B(0,"p.h_"):B(1,"p.h_")},A$j=function(){pH=0;
var B=[_.N1(!0)];Yu&&_.Bz(Yu,"yt-window-resized",B)},i6U=function(){pH||(pH=_.dV.addLowPriorityJob(A$j,200))},F4i=function(){hg=0;
suN=_.mT4(document);var B=[suN];Yu&&_.Bz(Yu,"yt-window-scrolled",B)},r$4=function(){hg||(hg=_.dV.addLowPriorityJob(F4i,200))},Z6n=function(B){B=B===void 0?null:B;
gWe.push(_.uf(window,"resize",i6U));gWe.push(_.uf(window,"scroll",r$4));B&&(Yu=B)},mCj=function(B){_.W(function(R){if(R.nextAddress==1)return _.U(R,B.delete("yt-appshell-assets"),2);
_.b3(R)})},$Cr=function(B){return _.iN((0,_.r7a)(),B)},Pfm=function(){var B;
_.W(function(R){return R.nextAddress==1?_.U(R,tg.getInstance(),2):(B=R.yieldResult)?_.U(R,Cf7(B),0):R.jumpTo(0)})},uyj=function(){var B;
_.W(function(R){return R.nextAddress==1?_.U(R,WV.getInstance(),2):(B=R.yieldResult)?_.U(R,nWm(B),0):R.jumpTo(0)})},O64=function(B){mCj(B);
Pfm();uyj()},oDi=function(B){var R,V;
return _.W(function(e){if(e.nextAddress==1)return _.U(e,_.so_(B),2);if(R=e.yieldResult){var X;a:{if(R.headers&&(X=R.headers.get("date"))&&(X=Date.parse(X),!isNaN(X))){X=Math.round((0,_.P8)()-X);break a}X=-1}V=X;if(V>-1)return e.return(V)}return e.return(-1)})},Bnm=function(){var B=_.R5.caches,R=_.KQ("IS_SHELL_LOAD"),V,e;
_.W(function(X){if(X.nextAddress==1)return V=-1,R?_.U(X,oDi(B),3):(e=_.SO(),V=Math.round((0,_.P8)()-e),X.jumpTo(2));X.nextAddress!=2&&(V=X.yieldResult);V>=0&&V<2147483648&&_.f0({appInstallDataAgeMs:V});_.b3(X)})},Rb4=function(B){var R=_.q2(_.R5.location.href),V={};
"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(e){var X=R.JSC$7940_queryData_.getValues(e);if(X==null?0:X.length)V[e]=X});
return _.O0(B,new Map(Object.entries(V)))},VGU=function(B){B=B.match(/(.*)::.*::.*/);
if(B!==null)return B[1]},ebe=function(B){if(_.puu()){var R=Object.keys(window.localStorage);
R=_.h(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;var e=VGU(V);e===void 0||B.includes(e)||self.localStorage.removeItem(V)}}},X5U=function(){if(!_.puu())return!1;
var B=_.y_(),R=Object.keys(window.localStorage);R=_.h(R);for(var V=R.next();!V.done;V=R.next())if(V=VGU(V.value),V!==void 0&&V!==B)return!0;return!1},p54=function(B){return _.m7("NotificationsDisabled",B)},Yd4=function(){return Notification.permission!="granted"?Promise.resolve():_.ir2().then(function(B){return B?B.pushManager.getSubscription().then(function(R){if(R)return Promise.resolve();
R={userVisibleOnly:!0,applicationServerKey:_.Uo("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return B.pushManager.subscribe(R).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},hbn=function(B){return _.ir2().then(function(R){if(!R||!R.active)return Promise.reject(new _.H8("serviceworker.postMessage",B,R));
try{return R.active.postMessage(B),Promise.resolve()}catch(V){return Promise.reject(V)}})},tGe=function(){hbn({type:"notifications_register",
data:_.vE("ID_TOKEN")})},bE7=function(){var B={isWide:_.UB.get("wide","0")==="1"},R=_.UV();
if(R=R.getFlag(165)||R.getFlag(174))B.theme=_.Lk(!0);if(_.lFu()){var V=_.xA()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";B.systemTheme=V}!R&&_.k("parent_tools_enable_app_settings")&&_.FW(window.location.href).theme!==void 0&&(B.theme=_.Lk());if((R=bU)?!_.M_.equals(R,B):B)R={currentValue:B},WAi&&(R.timeSinceLastSnapshotSecs=Math.round(((0,_.P8)()-WAi)/1E3)),bU&&(R.previousValue=bU),_.dn("appSettingsCaptured",R),bU=B,WAi=(0,_.P8)()},JKn=function(){if(!_.KQ("LOGGED_IN"))return Promise.resolve(!1);
var B=_.V_("service_worker_push_force_notification_prompt_tag");return B?_.Cs("PromptTags").then(function(R){if(!R)return!0;var V=[];try{V=JSON.parse(R)}catch(e){return!1}return V&&V.indexOf(B)==-1}):Promise.resolve(!1)},jqo=function(){var B=_.RC("service_worker_push_prompt_delay_microseconds");
return B?_.Cs("PromptTime").then(function(R){return Promise.resolve(Date.now()-B>(R||0))}):Promise.resolve(!0)},Uen=function(){var B=_.RC("service_worker_push_logged_out_prompt_watches");
return B==-1?Promise.resolve(!1):_.Cs("WatchCount").then(function(R){return R>=B})},Nnr=function(){var B=_.uP(document,"yt-push-prompt-modal-bg");
B&&_.UJ(B)},Gn4=function(){return _.RC("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Cs("PromptCount").then(function(B){B||(B=0);
return Promise.resolve(B<_.RC("service_worker_push_prompt_cap"))})},yKN=function(B){return _.KQ("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.KQ("LOGGED_IN")&&(B===void 0?0:B)?JKn().then(function(R){if(R)return!0;
R=[Gn4(),jqo()];_.KQ("LOGGED_IN")||R.push(Uen());return Promise.all(R).then(function(V){return V.every(function(e){return e})})}):Promise.resolve(!1)},Sde=function(){_.Cs("PromptCount").then(function(B){return _.m7("PromptCount",B+1)}).then(function(){return _.m7("PromptTime",Date.now())}).then(function(){var B=_.V_("service_worker_push_force_notification_prompt_tag");
if(B)return _.Cs("PromptTags").then(function(R){var V=[];if(R)try{V=JSON.parse(R)}catch(e){return!1}V||(V=[]);V.push(B);return _.m7("PromptTags",JSON.stringify(V))})})},MG6=function(){HEn||Nnr()},kne=function(B){B.style.zIndex=2147483648;
B.style.pointerEvents="auto";B.style.backgroundColor="rgba(0, 0, 0, 0.6)";B.style.width="100%";B.style.height="100vh";B.style.position="absolute";B.style.top="0";B.style.left="0";B.style.border="none"},Dei=function(){var B=_.uP(document,"yt-push-prompt-modal-bg");
HEn=_.k("service_worker_push_prompt_modal_ignore_click");B?kne(B):(B=_.zw("div",{id:"yt-push-prompt-modal-bg"}),kne(B),document.body.appendChild(B),_.nAo(document,"click",MG6))},fho=function(){var B=arguments;
_.k("service_worker_push_prompt_modal_enable")&&Dei();return Notification.requestPermission().then(function(R){Nnr();var V=document.getElementById("ticker");V&&(V.className=V.classList.remove("show"));if(R=="granted")return Yd4().then(function(){p54(!1);tGe();return Promise.resolve(!0)});
R=="denied"&&tGe();return Promise.resolve(!1)}).catch(function(){Nnr();
return Promise.reject.apply(Promise,_.MI(B))})},lhe=function(B){B=B===void 0?!1:B;
var R=_.TtA().client;if(R&&R.browserVersion){var V=R.browserVersion,e=R.browserName=="CHROME"&&_.NY(V,"50.0.0")<0;R=R.browserName=="OPERA"&&_.NY(V,"42.0.0")<0;if(e||R)return Promise.resolve()}return _.rqo().then(function(X){if(!X)return Promise.resolve();X=Yd4().then(function(){return hbn({type:"notifications_check_registration",data:_.vE("ID_TOKEN")})});
return Notification.permission!="default"?X.catch(function(){}):X.then(function(){return yKN(B)}).then(function(Y){if(Y)return Sde(),fho().then(function(){})}).catch(function(){})})},zbe=function(B){return _.sbe(B)?lhe():Promise.resolve()},ahm=function(B){var R=B.installing||B.waiting;
return B.active||!R?Promise.resolve(B):new Promise(function(V){var e=function(X){X=X.target;if(X.state==="activated"||X.state==="redundant")R.removeEventListener("statechange",e),V(B)};
R.addEventListener("statechange",e)})},de4=function(){var B=new _.Ftp("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.Nl(B,{mainAppWeb:_.EX()});var R=_.WET;_.k("service_worker_forward_exp_params")&&(R=Rb4(R));try{var V=_.vcI(R).catch(function(){_.GT(B,"FAILURE");return new Promise(function(){})});
_.k("service_worker_push_enabled")&&V.then(function(e){_.GT(B,"SUCCESS");return e}).then(ahm).then(zbe)}catch(e){if(_.GT(B,"FAILURE"),e.name!=="SecurityError")throw e;
}},w56=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&de4()},Tnj=function(B,R){var V={};
R&&(V.serializedYpcFamilyCreateLoggingParams=R);_.dn(B,V);_.wn()},xee=function(B,R){var V={};
V.serializedYpcRefundFlowLoggingParams=R;B&&(V.eventType=B);_.dn("ypcRefundFlowEvent",V);_.wn()},LAo=function(B){B&&_.IFS("transactionFlowSucceeded",B)},vD7=function(B){B&&_.xL("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",B,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},KAj=function(B){var R,V,e,X,Y,t,b;
_.W(function(J){if(J.nextAddress==1)return _.U(J,_.Dg5(),2);if(J.nextAddress!=3){if(!J.yieldResult)return J.return(!1);R=[];return _.U(J,_.O5.keys(),3)}V=J.yieldResult;e=_.h(V);for(X=e.next();!X.done;X=e.next())Y=X.value,t=_.Meq(Y),b=t.datasyncId,!b||B.includes(b)||R.push(_.O5.delete(Y));return J.return(Promise.all(R).then(function(G){return G.some(function(y){return y})}))})},Ih6=function(){var B,R,V,e,X,Y,t;
return _.W(function(b){if(b.nextAddress==1)return _.U(b,_.Dg5(),2);if(b.nextAddress!=3){if(!b.yieldResult)return b.return(!1);B=_.y_("cache contains other");return _.U(b,_.O5.keys(),3)}R=b.yieldResult;V=_.h(R);for(e=V.next();!e.done;e=V.next())if(X=e.value,Y=_.Meq(X),(t=Y.datasyncId)&&t!==B)return b.return(!0);return b.return(!1)})},EDn=function(){var B=_.Oz().resolve(_.uj(_.CLT));
return B?B.getCurrentTime():0},Qqz=function(){var B,R,V,e,X,Y,t,b,J,G,y,S,M,f;
return _.W(function(z){switch(z.nextAddress){case 1:B={},R=_.UOA(),V=_.h(Object.entries(R)),e=V.next();case 4:if(e.done){z.jumpTo(3);break}X=e.value;Y=_.h(X);t=Y.next().value;b=Y.next().value;J=t;G=b;if(!G){z.jumpTo(5);break}return _.U(z,G(),8);case 8:B[J]=z.yieldResult;case 5:e=V.next();z.jumpTo(4);break;case 2:y=_.h(void 0),S=y.next();case 9:if(S.done){z.jumpTo(3);break}M=S.value;f=R[M];if(!f){z.jumpTo(10);break}return _.U(z,f(),13);case 13:B[M]=z.yieldResult;case 10:S=y.next();z.jumpTo(9);break;
case 3:return z.return(B)}})},qdN=function(){var B;
_.W(function(R){if(R.nextAddress==1)return _.U(R,Qqz(),2);B=R.yieldResult;return _.U(R,navigator.clipboard.writeText(JSON.stringify(B,null,2)),0)})},cKz=function(B,R){return _.p7(B.entities,"superThanksSelectedTierEntity",R)},AKe=function(B){var R;
return(R=B.sharedUi)==null?void 0:R.currentPageType},iEN=function(B,R){return{popup:{searchSuggestionReportDialog:{searchQuery:B,
title:_.Wz("SBOX_INAPPROPRIATE_TITLE"),suggestions:R,categoryLabel:_.Wz("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Wz("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Wz("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Wz("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Wz("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Wz("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Wz("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Wz("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Wz("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Wz("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},sq2=function(B){var R,V,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m;
return _.W(function(g){switch(g.nextAddress){case 1:return _.U(g,_.ts(),2);case 2:return(R=g.yieldResult)?_.U(g,_.ghd(R),3):g.return();case 3:V=g.yieldResult;if(!V)return g.return();X=((e=V.offlineVideos)==null?void 0:e.length)||0;t=((Y=V.offlinePlaylists)==null?void 0:Y.length)||0;if(X===0&&t===0)return g.return();b=0;if(V.offlineVideos)for(J=_.h(V.offlineVideos),G=J.next();!G.done;G=J.next())y=G.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===y.videoState&&(b+=1);B.offline_videos_count=X.toString();_.k("kevlar_log_offline_current_network_type_ks")||
(B.offline_current_network_type=(S=_.NTZ())!=null?S:"CONN_INVALID");_.k("kevlar_log_updated_time_for_smart_downloads")&&(M=_.g6().getState().entities,f=_.lz(M),z=L4o(M),B.offline_smart_downloads_last_sync_time_ms=f.toString(),B.offline_smart_downloads_next_sync_time_ms=z.toString());B.offline_videos_playable=b.toString();B.offline_playlists_count=t.toString();if(!_.k("woffle_used_state_report")){g.jumpTo(4);break}V.offlineVideos&&(T=V.offlineVideos.reduce(function(Vu,n){n.downloadedBytes&&(Vu+=Number(n.downloadedBytes));
return Vu},0).toString())&&(B.offline_used_disk_space_bytes=T);
if(!((L=navigator)==null?0:(Q=L.storage)==null?0:Q.estimate)){g.jumpTo(4);break}return _.U(g,navigator.storage.estimate(),6);case 6:q=g.yieldResult,B.offline_free_disk_space_bytes=(((m=q)==null?void 0:m.quota)||0).toString();case 4:B.offline_client_state=JSON.stringify(V),_.b3(g)}})},FA4=function(B){B=B.match(/(.*)::.*::.*/);
if(B!==null)return B[1]},rKe=function(B){if(_.gfd()){var R=Object.keys(window.sessionStorage);
R=_.h(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;var e=FA4(V);e===void 0||B.includes(e)||self.sessionStorage.removeItem(V)}}},gD4=function(){if(!_.gfd())return!1;
var B=_.y_(),R=Object.keys(window.sessionStorage);R=_.h(R);for(var V=R.next();!V.done;V=R.next())if(V=FA4(V.value),V!==void 0&&V!==B)return!0;return!1},Jg=function(B,R,V){(_.k("desktop_keyboard_shortcut_usage_log")||V&&_.k("web_shorts_keyboard_shortcut_usage_log"))&&(R?_.uk.get(B):_.n4.get(B))&&(B=R?_.ov.get(B):_.Ot.get(B))&&_.iF(_.TE(),B)},ZE7=function(B){return B.visibility!=="hidden"&&B.display!=="none"},me2=function(B){if(!B.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
B=B.getAttribute("tabindex")||"0";return Number(B)},$e2=function(B){return B.some(function(R){return me2(R)>0})},Ce2=function(B){if(B.textContent)return!0;
if(B instanceof HTMLInputElement){if(!B.labels)return!1;B=_.h(B.labels);for(var R=B.next();!R.done;R=B.next())if(R.value.textContent)return!0}return!1},Pez=function(B){return B.sort(function(R,V){return me2(V)-me2(R)})},nDn=function(B){B=Array.from(B.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(R){return(ZE7(R.style)?
ZE7(window.getComputedStyle(R)):!1)&&Ce2(R)});
return $e2(B)?Pez(B):B},uoo=function(B){B=nDn(B);
B.length>0&&B[0].focus()},OEe=function(B,R){R.stack&&(B.stack+="\n"+R.stack);
return B},RWe=function(B){var R=jd(B,"Content-Type");
if(!R)return null;R=R.toLowerCase();if(R.startsWith("application/json"))return R.startsWith("application/json+protobuf")?new o_U:new _.eo;if(R.startsWith("application/x-protobuf")){B=jd(B,"Content-Transfer-Encoding");if(!B)return new U3;if(B.toLowerCase()=="base64")return new BBe}return null},bnm=function(B,R,V,e){var X=new V6e(function(b,J){return eW4.has(J)?b.sentinel==="gal"&&b.event!==void 0:!1},function(b){b.event?(b=Xw2(b.event),b=!b||pwN(e,b)?!0:_.Hb(B.lastEvent,Nw,2,GN)?!_.Hb(b,yp,1,GN)&&
!_.Hb(b,Nw,2,GN):!_.Hb(b,yp,1,GN)&&!_.Hb(b,Nw,3,GN)):b=!0;
return b});
V=_.O0(B.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Yqn(V)]]));if(B.nestedOrigins!==void 0)for(var Y=_.h(B.nestedOrigins),t=Y.next();!t.done;t=Y.next())V=_.O0(V,new Map([["origin",t.value]]));return hWi(X,V,R).then(function(b){b=t6N(b.event);if(_.Hb(b,yp,1,GN)){var J,G=(J=_.I6(b,yp,1,GN))==null?void 0:_.LU(J,2);G&&e.JSC$17029_logErrorEvent(Who(G));J=_.I6(b,yp,1,GN);_.LU(J,2)===4?(b=_.I6(b,yp,1,GN),b={statusCode:11,statusMessage:_.xU(b,
3)}):(b=_.I6(b,yp,1,GN),b={statusCode:12,statusMessage:_.xU(b,3)});return b}_.Hb(b,Nw,3,GN)?(b=_.I6(b,Nw,3,GN),b={statusCode:1,consentLanguageKeys:_.xU(b,2)}):b={statusCode:1};return b}).catch(function(b){return b.errorCode!==void 0?{statusCode:b.errorCode,
statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},NBU=function(B){var R={};
if(B===void 0||B===null)return R;B.getToken()!==void 0&&Jm4(B.getToken())&&Jm4(B.getToken()).length>0&&(R.scopes=new Set(Jm4(B.getToken())));B.getToken()!==void 0&&jA6(B.getToken())&&jA6(B.getToken()).length>0&&(R.capabilities=new Set(jA6(B.getToken())));_.xU(B,3)!==void 0&&(R.consistencyKey=_.xU(B,3));B.getName()!==void 0&&B.getName()!==""&&(R.linkName=B.getName());_.SY(B,UK4,4)&&(B=_.OB(B,UK4,4),B=Object.assign({},_.xU(B,1)&&{userId:_.xU(B,1)},_.xU(B,2)&&{displayName:_.xU(B,2)},_.xU(B,3)&&{email:_.xU(B,
3)},_.xU(B,5)&&{username:_.xU(B,5)},_.xU(B,4)&&{profilePicture:_.xU(B,4)}),R.profile=B);return R},G8U=function(B,R){var V=B.flowParams;
return{serviceId:V.serviceId,sessionId:V.sessionId,currentFlow:B.currentFlow,googleScopesString:R,linkingSessionSerialized:B.session.serialize(),consentLanguageKeys:V.consentLanguageKeys,callerState:B.callerState,dynamicUrlParameters:V.dynamicUrlParameters,partnerConfigMinReadTimestamp:V.partnerConfigMinReadTimestamp}},k8j=function(B){var R=B.googleScopes!==void 0?Array.from(B.googleScopes).join(","):"";
ymj(G8U(B,R));R=Sqz(B);return R===null?Promise.resolve(Hne):R.start().then(function(V){var e,X=(e=V.link)==null?void 0:e.consistencyKey;return V.statusCode===1&&B.googleScopes!==void 0&&B.googleScopes.size>0&&X!==void 0?(e=B.flowParams,M62(e.serviceId,e.sessionId,B.googleScopes,X,e.galService,B.config,V)):V})},DKn=function(B){var R=Sqz(B);
return R===null?Promise.resolve(Sd({statusCode:7,statusMessage:"Failed to create flow object"},B.callerState)):R.complete().then(function(V){var e,X=(e=V.link)==null?void 0:e.consistencyKey;return V.statusCode===1&&B.googleScopes!==void 0&&B.googleScopes.size>0&&X!==void 0?(e=B.flowParams,M62(e.serviceId,e.sessionId,B.googleScopes,X,e.galService,B.config,V)):Sd(V,B.callerState)},function(V){return Sd({statusCode:12,
statusMessage:"Failed to complete the flow: "+V.message},B.callerState)})},M62=function(B,R,V,e,X,Y,t){return fpr(X,{serviceId:B,
sessionId:R,googleScopes:V,consistencyKey:e}).then(function(){return t},function(b){return X.deleteLink({serviceId:B,
sessionId:R,accountLinkingEntryPoint:Y.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+b.message}},function(J){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+J.message}})})},Sqz=function(B){switch(B.currentFlow){case 1:var R=B.flowParams;
B=_.OB(B.session,lpm,1);return HV.createOAuthFlow(R,B);case 2:case 3:return R=B.flowParams,B=_.OB(B.session,zW7,6),Mw.createStreamlinedFlow(R,B);default:return null}},ap4=function(B,R){B===2&&(B=3);
var V=0;ku.indexOf(B)!==-1&&(V=ku.indexOf(B)+1);for(B=V;B<ku.length;B++)if(R.has(ku[B]))return ku[B]},TB4=function(B){var R=B.serviceId;
var V=B.sessionId;var e=B.config;var X=B.galService;var Y=B.capabilities;var t=B.scopes;var b=B.loginHint;var J=B.callerState;var G=B.consentLanguageKeys;var y=B.linkName;var S=B.dynamicUrlParameters;var M=B.partnerConfigMinReadTimestamp;B=e.dataUsageNoticeConfig?e.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return X.startLinkingSession({serviceId:R,sessionId:V,capabilities:Y,scopes:t,loginHint:b,callerState:J,supportedFlows:dKi(e.supportedFlows),completionUrl:e.completionUrl,accountLinkingEntryPoint:e.accountLinkingEntryPoint,
consentLanguageKeys:G,dataUsageNoticeConfig:B,linkName:y,dynamicUrlParameters:S,partnerConfigMinReadTimestamp:M}).then(function(f){return new ww6(R,V,e,X,f,void 0,J,G,S,M)})},IpN=function(B,R,V){a:{var e=new xK7;
if(e.storage!==null)try{var X=e.storage.get("SAVED_SESSION");if(X===void 0){var Y=null;break a}if(X.serviceId===B){Y=X;break a}}catch(t){}Y=null}if(Y===null)return Promise.resolve({statusCode:2});Lhe(B);e=v_7(Y.linkingSessionSerialized);return Khm(new ww6(B,Y.sessionId,R,V,e,Y.googleScopesString!==""&&Y.googleScopesString!==void 0?new Set(Y.googleScopesString.split(",")):void 0,Y.callerState,Y.consentLanguageKeys,Y.dynamicUrlParameters,Y.partnerConfigMinReadTimestamp),Y.currentFlow,Y.consentLanguageKeys)},
ymj=function(B){var R=new xK7;
R.storage!==null&&R.storage.set("SAVED_SESSION",B)},Lhe=function(B){var R=new xK7;
if(R.storage!==null){var V=R.storage.get("SAVED_SESSION");V!==void 0&&V.serviceId===B&&R.storage.remove("SAVED_SESSION")}},dKi=function(B){var R=new Set;
B=_.h(B);for(var V=B.next();!V.done;V=B.next())V=V.value,V!==1&&E_2.has(V)&&R.add(E_2.get(V));return R},Sd=function(B,R){R!==void 0&&(B.callerState=R);
return B},QA2=function(B){switch(B){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},Ame=function(){var B={timeout:5E3};
B=B===void 0?{}:B;return qqo!=null?qqo:qqo=cmi(B)},in4=function(){return new Promise(function(B,R){window.gapi.load("client",{callback:B,
onerror:R})})},cmi=function(B){B=B===void 0?{}:B;
var R;return _.W(function(V){if(V.nextAddress==1){if((R=window.gapi)&&R.client&&R.client.load)V=V.return(R);else{var e=_.Yq("https://apis.google.com/js/api.js");V=_.U(V,_.T3(e,B),2)}return V}if(V.nextAddress!=3){R=window.gapi;if(!R)throw Error("Yj");return R.client&&R.client.load?V.jumpTo(3):_.U(V,in4(),3)}return V.return(R)})},Fhj=function(B,R){R=R===void 0?0:R;
var V=B.auth2.getAuthInstance().currentUser.get(),e=V.getAuthResponse(!0);if(e&&e.expires_at-Date.now()<R){if(sA7.has(B))return sA7.get(B);R=Promise.resolve(V.reloadAuthResponse()).finally(function(){sA7.delete(B)});
sA7.set(B,R);return R}return Promise.resolve()},rmz=function(B,R){var V;
return B.client.init({apiKey:R.apiKey,clientId:R.clientId,scope:R.scope,discoveryDocs:R.discoveryDocs,hostedDomain:R.hostedDomain,fetchBasicProfile:(V=R.fetchBasicProfile)!=null?V:!0})},g_U=function(B){if(B.queryParams!=null){var R={},V;
for(V in B.queryParams)B.queryParams[V]!==void 0&&(R[V]=B.queryParams[V]);B.queryParams=R}},$Km=function(B){return new Znj(B,new mKz(B))},n_n=function(B,R){R=R===void 0?!1:R;
var V=document.createElement("div");B&&(V.style.transform="scaleX(-1)");V.style.backgroundColor=R?"rgba(138,180,248,.24)":"#e8f0fe";V.style.height="4px";V.style.overflow="hidden";V.style.position="absolute";V.style.top="0";V.style.width="100%";V.style.zIndex="1500";V.setAttribute("aria-label","Loading");V.setAttribute("aria-live","polite");B=document.createElement("style");B.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  }";
V.appendChild(B);B=CAi();B.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";B.style.left="-145.166611%";var e=PAz(R);e.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";B.appendChild(e);V.appendChild(B);B=CAi();B.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";B.style.left="-54.888891%";R=PAz(R);R.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
B.appendChild(R);V.appendChild(B);return V},CAi=function(){var B=document.createElement("div");
B.style.height="100%";B.style.position="absolute";B.style.transformOrigin="top left";B.style.width="100%";return B},PAz=function(B){var R=document.createElement("span");
R.style.borderTop=B?"4px solid #669df6":"4px solid #4285f4";R.style.display="inline-block";R.style.position="absolute";R.style.width="100%";return R},uin=function(B){return B==null?void 0:_.Bq4(B).valueOf()},R64=function(B){var R=document.body,V=!1,e=function(){V||(V=!0,One(X,Y),setTimeout(function(){R.removeChild(Y);
R.removeChild(X)},150))},X=oae(B,getComputedStyle(R).direction==="rtl",e),Y=BTe(e);
One(X,Y);R.appendChild(Y);R.appendChild(X);window.requestAnimationFrame(function(){Y.style.opacity="1";X.style.opacity="1";X.style.transform="translate(-50%, -50%) scale(1)";X.children[0].focus()})},oae=function(B,R,V){var e=document.createElement("div");
e.style.position="fixed";e.style.alignItems="center";e.style.backgroundColor=B?"rgb(32, 33, 36)":"white";e.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";e.style.display="flex";e.style.flexDirection="column";e.style.justifyContent="center";e.style.left="50%";e.style.top="50%";e.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";e.style.zIndex="2002";document.body.clientWidth>=660?(e.style.borderRadius="8px",e.style.minHeight="220px",
e.style.maxHeight="90%",e.style.maxWidth="90%",e.style.minWidth="540px"):(e.style.height="100%",e.style.width="100%");e.setAttribute("aria-label","Error");e.setAttribute("aria-modal","true");e.setAttribute("role","alertdialog");e.addEventListener("keydown",function(Y){Y.key==="Escape"&&V()});
R=Vk4(B,R,V);e.appendChild(e6j(R));e.appendChild(R);var X=document.createElement("img");X.src=B?"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","");e.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=B?"rgb(232,234,237)":"#3c4043";e.appendChild(X);e.appendChild(e6j(R));return e},Vk4=function(B,R,V){var e=document.createElement("button");
e.style.backgroundColor="transparent";e.style.border="none";e.style.borderRadius="50%";e.style.cursor="pointer";e.style.outline="none";e.style.padding="12px";e.setAttribute("aria-label","Close dialog");e.style.position="absolute";e.style.top="0";R?e.style.right="0":e.style.left="0";e.addEventListener("focus",function(){e.style.backgroundColor=B?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
e.addEventListener("blur",function(){e.style.backgroundColor="transparent"});
e.addEventListener("mouseenter",function(){e.style.backgroundColor=B?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
e.addEventListener("mouseleave",function(){e.style.backgroundColor="transparent"});
e.addEventListener("click",V);e.addEventListener("keydown",function(X){X.key!=="Enter"&&X.key!=="Space"||V()});
R=document.createElement("img");R.src=B?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";R.style.display="block";R.style.height="24px";R.style.width="24px";R.setAttribute("alt","");e.appendChild(R);return e},e6j=function(B){var R=document.createElement("div");
R.setAttribute("tabindex","0");R.setAttribute("aria-hidden","true");R.addEventListener("focus",function(){return void B.focus()});
return R},BTe=function(B){var R=document.createElement("div");
R.style.backgroundColor="rgba(32,33,36,0.6)";R.style.bottom="0";R.style.left="0";R.style.position="fixed";R.style.right="0";R.style.top="0";R.style.transition=" opacity 150 ms linear";R.style.zIndex="2001";R.addEventListener("click",B);return R},One=function(B,R){R.style.opacity="0";
B.style.opacity="0";B.style.transform="translate(-50%, -50%) scale(0.8)"},XJr=function(B,R){B.sandbox&&B.sandbox.add&&(B.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),B.sandbox.add("allow-downloads"));
B.src=R},DB=function(B){pJi.call(this,B)},fH=function(B,R){R=R===void 0?!1:R;
this.parsedImageUrl_=null;B instanceof YI7||(h64==void 0&&(h64=new tk7),B=h64.parse(B.toString(),R));B=this.parsedImageUrl_=B;B.JSC$17260_parsedOptions_==void 0&&((R=B.getOptions())||(R=""),B.JSC$17260_parsedOptions_=(new Wce).parse(R));pJi.call(this,B.JSC$17260_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;B=this.parsedImageUrl_;R=B.uri_.JSC$7940_port_;this.JSC$17262_domain_=B.uri_.JSC$7940_domain_+(R?":"+R:"");this.JSC$17262_query_=this.parsedImageUrl_.uri_.JSC$7940_queryData_.toString()},
bpz=function(B){this.mode=4;
this.data=B;this.parsedData=[];B=0;for(var R=this.data.length;B<R;B++){var V=[],e=this.data.charCodeAt(B);e>65536?(V[0]=240|(e&1835008)>>>18,V[1]=128|(e&258048)>>>12,V[2]=128|(e&4032)>>>6,V[3]=128|e&63):e>2048?(V[0]=224|(e&61440)>>>12,V[1]=128|(e&4032)>>>6,V[2]=128|e&63):e>128?(V[0]=192|(e&1984)>>>6,V[1]=128|e&63):V[0]=e;this.parsedData.push(V)}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))},JZe=function(B){this.typeNumber=0;
this.errorCorrectLevel=B===void 0?2:B;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},lU=function(B,R){if(B.length==void 0)throw Error("sk`"+B.length+"`"+R);
for(var V=0;V<B.length&&B[V]==0;)V++;this.num=Array(B.length-V+R);for(R=0;R<B.length-V;R++)this.num[R]=B[R+V]},jLn=function(B,R){this.totalCount=B;
this.dataCount=R},Ur4=function(){this.buffer=[];
this.length=0},NTe=function(){var B=!1;
if(_.JAS()){B=_.G_();var R="";_.Nxo()?(R=/Windows (?:NT|Phone) ([0-9.]+)/,R=(B=R.exec(B))?B[1]:"0.0"):_.I5()?(R=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,R=(B=R.exec(B))&&B[1].replace(/_/g,".")):_.UYp()?(R=/Mac OS X ([0-9_.]+)/,R=(B=R.exec(B))?B[1].replace(/_/g,"."):"10"):_.jq(_.G_(),"KaiOS")?(R=/(?:KaiOS)\/(\S+)/i,R=(B=R.exec(B))&&B[1]):_.JAS()?(R=/Android\s+([^\);]+)(\)|;)/,R=(B=R.exec(B))&&B[1]):_.G_x()&&(R=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,R=(B=R.exec(B))&&B[1]);B=R||""}return B},kEr=function(B,
R){this.JSC$17285__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(R)for(var V in R)this.JSC$17285__htOption[V]=R[V];this.JSC$17285__htOption.useSVG&&(GEm=yZU);this.JSC$17285__android=NTe();this.JSC$17285__el=B;this._oQRCode=null;this._oDrawing=new GEm(this.JSC$17285__el,this.JSC$17285__htOption);this.JSC$17285__htOption.text&&(B=this.JSC$17285__htOption.text,this._oQRCode=new JZe(this.JSC$17285__htOption.correctLevel),SIo(this._oQRCode,B),R=this._oQRCode,Hpr(R,!1,Mkz(R)),this.JSC$17285__el.title=
B,this._oDrawing.draw(this._oQRCode),this.makeImage())},Dro=function(B,R,V,e,X){B.save();
var Y=new Path2D;Y.roundRect(R,V,e*7,e*7,e*2);Y.roundRect(R+e,V+e,e*5,e*5,e*1.3);Y.roundRect(R+2*e,V+2*e,e*3,e*3,e);B.clip(Y,"evenodd");B.fillStyle=X;B.fillRect(0,0,B.canvas.width,B.canvas.height);B.restore()},zN=function(B,R){if(typeof B!=="function")throw Error("vk");
return _.R5.setTimeout(function(){B()},R)},av=function(){},lgi=function(B,R,V,e,X){(new av).debug("TestLoadImageWithRetries: "+X);
if(e==0)V(!1);else{var Y=X||0;e--;fgo(B,R,function(t){t?V(!0):_.R5.setTimeout(function(){lgi(B,R,V,e,Y)},Y)})}},fgo=function(B,R,V){var e=new av;
e.debug("TestLoadImage: loading "+B);var X=new Image;X.onload=function(){try{e.debug("TestLoadImage: loaded"),z64(X),V(!0)}catch(Y){}};
X.onerror=function(){try{e.debug("TestLoadImage: error"),z64(X),V(!1)}catch(Y){}};
X.onabort=function(){try{e.debug("TestLoadImage: abort"),z64(X),V(!1)}catch(Y){}};
X.ontimeout=function(){try{e.debug("TestLoadImage: timeout"),z64(X),V(!1)}catch(Y){}};
_.R5.setTimeout(function(){if(X.ontimeout)X.ontimeout()},R);
X.src=B},z64=function(B){B.onload=null;
B.onerror=null;B.onabort=null;B.ontimeout=null},agm=function(){this.front_=[];
this.back_=[]},drz=function(B,R){_.Hn.call(this);
this.delay_=new _.k0(this.JSC$17411_onTick_,0,this);_.t4(this,this.delay_);this.JSC$17409_interval_=5E3;this.nextTickTime_=0;if(typeof B==="function")R&&(B=(0,_.M2)(B,R));else if(B&&typeof B.handleEvent==="function")B=(0,_.M2)(B.handleEvent,B);else throw Error("Ca");this.JSC$17411_listener_=B},dN=function(B,R,V,e,X,Y,t,b,J,G,y,S,M,f){V=V===void 0?!1:V;
e=e===void 0?function(){return""}:e;
X=X===void 0?!1:X;Y=Y===void 0?!1:Y;t=t===void 0?!1:t;b=b===void 0?function(){return _.XT({})}:b;
J=J===void 0?!1:J;y=y===void 0?!1:y;S=S===void 0?!1:S;M=M===void 0?!1:M;f=f===void 0?!1:f;this.JSC$17412_pathPrefix_=B;this.defaultQueryParams_=R;this.pubsub_=new _.Ju;this.reconnectTimer_=new drz(this.safeReconnect_,this);this.JSC$17412_channel_=null;this.JSC$17412_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17412_pendingMessages_=[];this.enableAsyncTest_=V;this.JSC$17412_getXsrfToken_=e;this.useAsyncBrowserChannelHandler_=Y;this.getAuthorizationHeader_=
b;this.getAuthorizationHeaderSync_=G;this.enableCachedUpdateAuthorizationHeader_=t;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.XT();this.enableLoungeTokenRefresh_=X;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=J;this.disableMdxAuthForNonPlaybackMessages_=y;this.disableMdxAuthForAdMessages_=S;this.enableMdxAuthForConnectionOnly_=M;this.disableMdxAuthForShortsMessages_=f;this.JSC$17412_channelOpenedCounter=new wJ4;this.JSC$17412_channelClosedCounter=new TTe;this.channelMessageSentCounter=
new xre;this.JSC$17412_channelMessageReceivedCounter=new Lce;this.JSC$17412_channelErrorCounter=new vam;this.pendingMapsOnClosedCounter=new KcU;this.undeliveredMapsOnClosedCounter=new Ig7},wN=function(B){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;B=B||document.location.href;var R=Number(_.Zk(B)[4]||null)||"";R&&(this.port=":"+R);this.domain=_.mn(B)||"";B=_.G_();B.search("MSIE")>=0&&_.NY(B.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},TN=function(B){B=B||{};
this.name=B.name||"";this.id=B.id||B.screenId||"";this.token=B.token||B.loungeToken||"";this.uuid=B.uuid||B.dialId||"";this.idType=B.screenIdType||"normal"},Eae=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(B){var R=Math.random()*16|0;
return(B=="x"?R:R&3|8).toString(16)})},QLr=function(B){return _.DO(B,function(R){return{key:R.id,
name:R.name}})},qI4=function(B,R){return _.AA(B,function(V){return V||R?!V!=!R?!1:V.id==R.id:!0})},LH=function(B,R){return _.AA(B,function(V){return xu(V,R)})},Fci=function(){var B=cZ6(),R=AZo();
if(ipe()){var V=B,e=_.k_A(V,R);e<0&&_.MqN(V,-(e+1),0,R)}B=sLi(B);if(B.length==0)try{_.bpN("remote_sid")}catch(X){}else try{_.Nn("remote_sid",B.join(","),-1)}catch(X){}},cZ6=function(){var B=_.tp("yt-remote-connected-devices")||[];
B.sort(_.b_);return B},sLi=function(B){if(B.length==0)return[];
var R=B[0].indexOf("#"),V=R==-1?B[0]:B[0].substring(0,R);return _.DO(B,function(e,X){return X==0?e:e.substring(V.length)})},rZU=function(B){_.hp("yt-remote-connected-devices",B,86400)},AZo=function(){if(gam)return gam;
var B=_.tp("yt-remote-device-id");B||(B=Eae(),_.hp("yt-remote-device-id",B,31536E3));for(var R=cZ6(),V=1,e=B;_.gx(R,e);)V++,e=B+"#"+V;return gam=e},Zpe=function(){return _.tp("yt-remote-session-browser-channel")},ipe=function(){return _.tp("yt-remote-session-screen-id")},CsN=function(B){B.length>5&&(B=B.slice(B.length-5));
var R=_.DO(mrn(),function(e){return e.loungeToken}),V=_.DO(B,function(e){return e.loungeToken});
_.V5p(V,function(e){return!_.gx(R,e)})&&$rz();
_.hp("yt-remote-local-screens",B,31536E3)},mrn=function(){return _.tp("yt-remote-local-screens")||[]},$rz=function(){_.hp("yt-remote-lounge-token-expiration",!0,86400)},vV=function(B){B||(_.WD("yt-remote-session-screen-id"),_.WD("yt-remote-session-video-id"));
Fci();B=cZ6();_.uo(B,AZo());rZU(B)},nan=function(){Psz();
return KH?!!KH.get("yt-remote-use-staging-server"):!1},Psz=function(){if(!KH){var B=_.MkN();
B&&(KH=new _.Mn(B))}},Bie=function(B,R,V,e,X){V=V===void 0?function(){return""}:V;
var Y=function(){return new dN(Iv(B,"/bc"),R,!1,V,e)};
return _.k("enable_mdx_web_channel_desktop")?new uOm(function(){return new Opj(Iv(B,"/wc"),R,V)}):new o84(Y,X)},XzU=function(){var B=ReU;
VOe();E3.push(B);eeN()},Qp=function(B,R){VOe();
var V=pzU(B,String(R));E3.length==0?YV6(V):(eeN(),_.ij(E3,function(e){e(V)}))},qw=function(B){Qp("CP",B)},VOe=function(){E3||(E3=_.qN("yt.mdx.remote.debug.handlers_")||[],_.mk("yt.mdx.remote.debug.handlers_",E3))},YV6=function(B){var R=(cV+1)%50;
cV=R;heN[R]=B;tOo||(tOo=R==49)},eeN=function(){var B=E3;
if(heN[0]){var R=tOo?cV:-1,V={};do V={record$jscomp$13:void 0},R=(R+1)%50,V.record$jscomp$13=heN[R],_.ij(B,function(e){return function(X){X(e.record$jscomp$13)}}(V));
while(R!=cV);heN=Array(50);cV=-1;tOo=!1}},pzU=function(B,R){var V=(Date.now()-Wyn)/1E3;
V.toFixed&&(V=V.toFixed(3));var e=[];e.push("[",V+"s","] ");e.push("[","yt.mdx.remote","] ");e.push(B+": "+R,"\n");return e.join("")},Ag=function(B){_.P4.call(this);
this.JSC$17436_logName_=B;this.screens=[]},s3=function(B){Ag.call(this,"LocalScreenService");
this.JSC$17443_http_=B;this.loungeTokenRefreshTimer_=NaN;iU(this);this.info("Initializing with "+b04(this.screens))},F7=function(B,R){R=R===void 0?!1:R;
Ag.call(this,"ScreenService");this.JSC$17449_http_=B;this.disableAutomaticScreenCache_=R;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};JEi(this)},rN=function(B,R,V){_.P4.call(this);
this.JSC$17453_logName_=V;this.JSC$17453_screenService_=B;this.receiver_=R;this.screen_=null},dd6=function(B,R,V){V.disableCastApi?gN("Cannot initialize because disabled by Mdx config."):jFz()?UdN(B,V)&&(Ni6(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Gpi(R):(window.__onGCastApiAvailable=function(e,X){e?Gpi(R):(ZB("Failed to load cast API: "+X),yEm(!1),Ni6(!1),_.WD("yt-remote-cast-available"),_.WD("yt-remote-cast-receiver"),SV7(),R(!1))},V.loadCastApiSetupScript?_.IL("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?H0r()>=60&&MOj():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?kpj():H0r()>=89?Dd6():(fIe(),lIi(ze4.map(aIo))))):gN("Cannot initialize because not running Chrome")},SV7=function(){gN("dispose");
var B=mw();B&&B.dispose();_.mk("yt.mdx.remote.cloudview.instance_",null);wze(!1);_.R1d(Tim);Tim.length=0},xdU=function(){return!!_.tp("yt-remote-cast-installed")},Lyr=function(){var B=_.tp("yt-remote-cast-receiver");
return B?B.friendlyName:null},v8o=function(){gN("clearCurrentReceiver");
_.WD("yt-remote-cast-receiver")},Kye=function(){return xdU()?mw()?mw().getCastSession():(ZB("getCastSelector: Cast is not initialized."),null):(ZB("getCastSelector: Cast API is not installed!"),null)},E8i=function(B,R){IIi()?mw().setConnectedScreenStatus(B,R):ZB("setConnectedScreenStatus called before ready.")},jFz=function(){var B=_.G_().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.jY||B},UdN=function(B,R){var V=!1;
mw()||(B=new $u(B,R),B.subscribe("yt-remote-cast2-availability-change",function(e){_.hp("yt-remote-cast-available",e);Rv("yt-remote-cast2-availability-change",e)}),B.subscribe("yt-remote-cast2-receiver-selected",function(e){gN("onReceiverSelected: "+e.friendlyName);
_.hp("yt-remote-cast-receiver",e);Rv("yt-remote-cast2-receiver-selected",e)}),B.subscribe("yt-remote-cast2-receiver-resumed",function(e){gN("onReceiverResumed: "+e.friendlyName);
_.hp("yt-remote-cast-receiver",e);Rv("yt-remote-cast2-receiver-resumed",e)}),B.subscribe("yt-remote-cast2-session-change",function(e){gN("onSessionChange: "+QF4(e));
e||_.WD("yt-remote-cast-receiver");Rv("yt-remote-cast2-session-change",e)}),_.mk("yt.mdx.remote.cloudview.instance_",B),V=!0);
gN("cloudview.createSingleton_: "+V);return V},mw=function(){return _.qN("yt.mdx.remote.cloudview.instance_")},Gpi=function(B){yEm(!0);
Ni6(!1);mw().init(!1,function(R){R?(wze(!0),_.VmZ("yt-remote-cast2-api-ready")):(ZB("Failed to initialize cast API."),yEm(!1),_.WD("yt-remote-cast-available"),_.WD("yt-remote-cast-receiver"),SV7());B(R)})},gN=function(B){Qp("cloudview",B)},ZB=function(B){Qp("cloudview",B)},yEm=function(B){gN("setCastInstalled_ "+B);
_.hp("yt-remote-cast-installed",B)},IIi=function(){return!!_.qN("yt.mdx.remote.cloudview.apiReady_")},wze=function(B){gN("setApiReady_ "+B);
_.mk("yt.mdx.remote.cloudview.apiReady_",B)},Ni6=function(B){_.mk("yt.mdx.remote.cloudview.initializing_",B)},CH=function(B){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(B)},qVo=function(){var B,R;
return _.W(function(V){if(V.nextAddress==1)return(_.AzI()||_.k("use_new_nwl"))&&_.EA5().isNetworkAvailable()?_.U(V,_.$z(),2):V.return();if(V.nextAddress!=3)return(B=V.yieldResult)?_.U(V,GLe(B),3):V.return();R=V.yieldResult;if(!R.length)return V.return();R.forEach(function(e){var X={timestamp:e.timestamp};e=e.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:e.appShellAssetLoadReport,options:X}:e.clientError?{payloadName:"clientError",payload:e.clientError,options:X}:void 0;e&&
_.dn(e.payloadName,e.payload,e.options)});
R.length===100&&_.dV.addLowPriorityJob(qVo);_.b3(V)})},cEe=function(B){if(B.playerResponse){if(B=B.playerResponse,B.messages&&B.messages.length>0&&(B=B.messages.find(function(R){return!(!R||!R.mealbarPromoRenderer)}))&&B.mealbarPromoRenderer)return B.mealbarPromoRenderer}else if(B.response&&(B=B.response)&&B.overlay&&B.overlay.mealbarPromoRenderer)return B.overlay.mealbarPromoRenderer},AEj=function(B){if(B.response){var R=B.response;
if(R&&R.overlay&&R.overlay.tooltipRenderer)return R.overlay.tooltipRenderer}if(B.playerResponse&&(B=B.playerResponse,B.messages&&B.messages.length>0&&(B=B.messages.find(function(V){return!(!V||!V.tooltipRenderer)}))&&B.tooltipRenderer))return B.tooltipRenderer},sFz=function(B){if(!i0i&&(B=B||_.vE("ZWIEBACK_PING_URLS"))&&B.length){i0i=!0;
for(var R=0;R<B.length;R++)_.qC(B[R])}},rE6=function(B){if(_.M_.get(_.vE("PLAYER_VARS",{}),"privembed",!1)!="1"){B&&Y7j();
try{FyU().then(function(){},function(){}),_.pq(rE6,18E5)}catch(R){_.IP(R)}}},g82=function(){var B=_.UV(),R=B.getFlag(119),V=window.devicePixelRatio>1;
document.body&&_.A8(document.body,"exp-invert-logo")&&(V&&!_.A8(document.body,"inverted-hdpi")?_.s5(document.body,"inverted-hdpi"):!V&&_.A8(document.body,"inverted-hdpi")&&_.AJ(document.body,"inverted-hdpi"));R!=V&&(_.Nd(0,119,V),B.save())},Z04=function(B){return B.filter(function(R){return"ypcGetCartEndpoint"in R||"ypcFixInstrumentEndpoint"in R})},md4=function(B){return B.filter(function(R){return!_.D(R,_.pDv)})},CFo=function(B){B=_.h(B);
for(var R=B.next(),V={};!R.done;V={setter$jscomp$6:void 0},R=B.next()){var e=R.value;R=e.params;e=e.service;R&&e&&(V.setter$jscomp$6=$dm[e],V.setter$jscomp$6&&R.forEach(function(X){return function(Y){var t=Y.key;Y=Y.value;t&&Y&&(0,X.setter$jscomp$6)(t,Y)}}(V)))}},n8m=function(B,R){var V,e,X,Y,t,b,J;
_.W(function(G){switch(G.nextAddress){case 1:V=_.IG.getInstance();e=_.eR.instance;X=_.QK.instance;if(!X)return PFU(B,e,R),G.return();_.en(G,2);B.onLoadingCommand&&e.resolveCommand(B.onLoadingCommand);return _.U(G,V.getCurrentPositionFromGeolocation(),4);case 4:Y=G.yieldResult;if(!B.resolveLocationCommand){G.jumpTo(5);break}t=V.createLocationInfo(Y);return _.U(G,_.cr(X,B.resolveLocationCommand,{locationInfo:t}),6);case 6:b=G.yieldResult;if(!b||"error"in b&&b.error||b.errorMetadata)return PFU(B,e,R),
G.return();var y;if(b==null?0:(y=b.onResponseReceivedActions)==null?0:y.length){y=_.h(b.onResponseReceivedActions);for(var S=y.next();!S.done;S=y.next())e.resolveCommand(S.value)}(_.D(B.onSuccessCommand,_.sI)||_.D(B.onSuccessCommand,_.Jz))&&_.OI(R.hostElement,"yt-navigate",{endpoint:B.onSuccessCommand,reload:!0});case 5:_.c8(G,0);break;case 2:J=_.WR(G);if(J instanceof GeolocationPositionError&&J.code===GeolocationPositionError.PERMISSION_DENIED)return B.onDeniedCommand&&e.resolveCommand(B.onDeniedCommand),
G.return();PFU(B,e,R);_.b3(G)}})},PFU=function(B,R,V){B.onFailureCommand&&(R.resolveCommand(B.onFailureCommand),_.oF(V.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},O0r=function(B,R){var V=_.D(B,_.l15);
if(V&&R){B=V.videoIds||[V.videoId];var e;R=(e=_.OI(R,"yt-lockup-requested",{videoIds:B}).detail)==null?void 0:e.returnValue;var X;V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?X=R?R:B.map(function(Y){return{videoId:Y,navigationEndpoint:V.videoCommand}}):R&&(X=R);
X&&(e=X.map(function(Y){var t=Object,b=t.assign;var J=Y.navigationEndpoint;if(!_.D(J,_.GF)){var G=_.D(J,_.sI);if(G){if(delete G.index,delete G.playlistId,G=_.D(J==null?void 0:J.commandMetadata,_.$a),G==null?0:G.url){var y=G.url;y=_.mc(y,"list");y=_.mc(y,"index");G.url=y}}else J=void 0}return b.call(t,{},Y,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:J})}),uTr(e,V))}},oG4=function(B){var R=_.cC();
if(B=_.D(B,_.zoJ))B.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&R.clearQueue(),B.closeMiniplayer&&_.Oz().resolve(_.An).close(!0)},RA6=function(B){B6U(_.cC(),B)},Vui=function(B){var R;
(B=(R=_.D(B,_.Dm4))==null?void 0:R.setVideoIds)&&B.forEach(function(V){_.SLv(_.cC(),V)})},Xki=function(B){eAo(_.cC(),B)},pkU=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(B){return!1}},Y$N=function(B){var R=_.Oz().resolve(_.uj(_.yO));
if(R){var V={beforeTransition:function(){B.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){B.style.viewTransitionName=""}};
PV(R,"slide",V);PV(R,"zoom",V)}},hAj=function(B,R,V){return{horizontalAlignment:B.x+V.width/2<R.width/2?"west":"east",
verticalAlignment:B.y+V.height/2<R.height/2?"north":"south"}},b7j=function(B,R,V,e,X){X=X===void 0?new _.fx(0,0):X;
return tu7(WPN(B,R,V,e),X)},WPN=function(B,R,V,e){return new _.fx(B==="west"?16:V.width-e.width-16,R==="north"?16:V.height-e.height-16)},Jsn=function(B,R){var V=0;
B&&(V+=76);R&&(V+=285);return V},jrm=function(B){var R=["h",
"m","s"],V=_.OS(R);V.reverse();var e={};B=(B.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(t){var b=(t.match(/[hms]/)||[""])[0];return b?(e[b]=parseInt(t.match(/\d+/)[0],10),!1):!0});
for(B.reverse();B.length&&V.length;){var X=V.shift();X in e||(e[X]=parseInt(B.shift(),10))}if(B.length||e.s>59||e.m>59||e.h>9)return null;var Y="";R.forEach(function(t){e[t]&&(Y+=""+e[t]+t)});
return Y||null},URo=function(B){B=B.data;
return _.N("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.N("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.N(_.ia,{data:{thumbnails:[{url:B.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.N("div",{class:"profile-badge-view-model-wiz__content"},_.N("div",{class:"profile-badge-view-model-wiz__badge-description"},B.badgeDesc),B.badgeSubtitle?_.N("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},B.badgeSubtitle):null))},N64=function(B){B=
B.data;
var R=_.Zh();_.A1K(R,B.rendererContext);return _.N("yt-comment-interaction-view-model",{el:R,class:"yt-comment-interaction-view-model-wiz"},_.N("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":B.onTapA11yLabel,"on:keydown":_.vkS(),tabindex:0},_.N("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.N("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},B.headerPrefix,' "',B.videoTitle),_.N("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.N("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.N("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},B.commentContent),_.N("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.N(_.ia,{data:{thumbnails:[{url:B.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},ys4=function(B){B=B.data;
return _.N("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},GzU(B.avatar),_.N("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},B.channelName))},H7n=function(B){B=B.data;
var R;return _.N("div",{class:"yt-profile-info-view-model-wiz__activity"},_.N("div",{class:"yt-profile-info-view-model-wiz__header"},_.N("div",{class:"yt-profile-info-view-model-wiz__section-title"},B.commentsInteractionTitle)),(R=B.comments)==null?void 0:R.map(function(V){return _.N("div",{class:"yt-profile-info-view-model-wiz__activity"},S$U(V))}))},MuN=function(B){B=B.data;
var R=_.T2({elementsCommand:B.subscriptionsAccessButtonCommand}),V=_.Zh();_.ygS(V,_.dl(B.subscriptionsAccessButtonCommand));var e=_.Wr(function(Y){if(R==null?0:R.onclick)R.onclick(Y);return!1}),X;
return _.N("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.N("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.N("a",{el:V,"on:click":e,class:"yt-profile-info-view-model-wiz__another-header"},_.N("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},B.sharedSubscriptionsTitle),_.N("div",null,S$U(B.subscriptionsAccessButton)))),_.N("div",{class:"yt-profile-info-view-model-wiz__subs"},(X=B.sharedSubscriptions)==null?void 0:X.slice(0,5).map(function(Y){return _.N("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",S$U(Y))})))},kzr=function(B){B=B.data;
var R;return _.N("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.N("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.N("h2",{class:"yt-profile-info-view-model-wiz__section-title"},B.sharedSubscriptionsTitle)),_.N("div",{class:"yt-profile-info-view-model-wiz__subs"},(R=B.sharedSubscriptions)==null?void 0:R.slice(0,5).map(function(V){return _.N("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",S$U(V))})))},DRo=function(B){B=B.data;
return _.N("div",{class:"yt-profile-info-view-model-wiz__activity"},[B.profileBadgeInfoYtWide,B.profileBadgeInfoChannelWide].map(function(R){var V,e,X,Y,t;return R?_.N(_.OZ,null,_.N("div",{class:"yt-profile-info-view-model-wiz__header"},_.N("div",{class:"yt-profile-info-view-model-wiz__section-title"},R==null?void 0:R.profileSectionTitle),_.N("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.N("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},R==null?void 0:(V=R.commentBadge)==
null?void 0:V.commentDesc),(R==null?0:(e=R.commentBadge)==null?0:e.blackHeartDesc)?_.N("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.N("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.N(_.ia,{data:{thumbnails:[{url:R==null?void 0:(X=R.commentBadge)==null?void 0:X.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.N("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},R==null?void 0:(Y=
R.commentBadge)==null?void 0:Y.blackHeartDesc))),_.N("div",{class:"yt-profile-info-view-model-wiz__badge"},R==null?void 0:(t=R.badges)==null?void 0:t.map(function(b){return _.N(URo,{data:b})}))):null}))},fzN=function(B){B=B.data;
return _.N("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.N(DRo,{data:B}),B.comments?_.N(H7n,{data:B}):null,B.sharedSubscriptionsTitle?B.subscriptionsAccessButtonCommand?_.N(MuN,{data:B}):_.N(kzr,{data:B}):null)},zAm=function(B){var R=B.data;
B=R?lzi(R.profileIdentityInfo):void 0;R=R?lzi(R.profileInfo):void 0;return _.N("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},B,R)},azN=function(B,R){var V=_.efh(R,{},B,!0);
return new Promise(function(e,X){V.listenOnce("n",function(){X(Error("fl`"+V.JSC$25741_getErrorDescription()))});
V.listenOnce("l",function(){var Y=V.getResponseCode();if(Y!==200)X(Error("gl`"+R+"`"+B.type+"`"+B.size+"`"+Y));else try{e(JSON.parse(V.getResponseText()).encryptedBlobId)}catch(t){X(t)}});
V.run()})},dRn=function(B){return B.substring(B.indexOf(":")+1,B.indexOf(";"))},wke=function(B){return new Promise(function(R,V){var e=new FileReader;
e.onloadend=function(){try{var X=new Uint8Array(e.result);X.length<8&&V(void 0);var Y=X.subarray(0,8);X="";for(var t=0;t<Y.length;t++)X+=("0"+Y[t].toString(16)).substr(-2);X.startsWith("ffd8ff")?R("image/jpeg"):X.startsWith("47494638")?R("image/gif"):X.startsWith("89504e470d0a1a0a")?R("image/png"):X.startsWith("424d")?R("image/bmp"):R(void 0)}catch(b){V(b)}};
e.onerror=V;e.readAsArrayBuffer(B)})},T67=function(B){return new Promise(function(R,V){var e=new Image;
e.crossOrigin="anonymous";e.onload=function(){var X=document.createElement("canvas");X.width=e.naturalWidth;X.height=e.naturalHeight;var Y=X.getContext("2d");if(!Y)throw Error("hl");Y.drawImage(e,0,0);Y=dRn(B);X.toBlob(function(t){t?R(t):V()},Y)};
e.src=B})},LPo=function(B,R){var V;
if(((V=_.D(B,_.GF))==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var e;_.OI((e=R.hostElement)!=null?e:R,"yt-shorts-reset");_.J7T(_.Oz().resolve(_.BD),B).then(function(Y){xR6(Y,R,B)})}else{var X;
_.VD((X=R.hostElement)!=null?X:R,[B]).then(function(Y){Y&&xR6(Y.data,R,B)})}},xR6=function(B,R,V){if(B){var e=_.D(B.replacementEndpoint,_.GF);
if(e){B.sequenceContinuation&&(e.sequenceParams=B.sequenceContinuation);var X;_.OI((X=R.hostElement)!=null?X:R,"yt-navigate",{endpoint:B.replacementEndpoint})}else if((B==null?void 0:B.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(B==null?0:B.watchStatus)&&_.D(B.watchStatus,_.Yeh)){var Y;_.OI((Y=R.hostElement)!=null?Y:R,"yt-navigate",{endpoint:V})}}},vG2=function(){var B=_.Oz().resolve(_.zk),R=AKe(B.getState())||"";
B=_.lBx(B.getState())||"";return{disableCache:R==="ytd-browse"&&B==="home"}},KP4=function(B){if(!B)return!1;
try{if(B.host&&B.host.tagName==="YT-FORMATTED-STRING"&&B.host.id==="contenteditable-textarea"||B.nodeType===Node.ELEMENT_NODE&&B.tagName==="YTD-COMMENT-INPUT")return!0}catch(R){return!1}return KP4(B.parentNode)},nH=function(B){return B?B.tagName==="A"&&B.href&&B.classList.contains("yt-simple-endpoint"):!1},Izi=function(B){return B?B.tagName==="IMG"&&B.classList.contains("emoji"):!1},EGN=function(B,R,V){if(!B)return null;
var e=nH(B);if(e&&V)return R=B.pathname.substring(B.pathname.indexOf("/channel/")+9),document.createTextNode("@"+R);if(e&&!V)return document.createTextNode("");if(Izi(B))return V=B.alt,B=B.dataset.emojiId,!B&&R&&(R=_.HI(R,V))&&R.isCustomEmoji&&(B=R.emojiId),B?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+B+">"):document.createTextNode(V);e=B.cloneNode(!1);for(var X=0;X<B.childNodes.length;++X){var Y=EGN(B.childNodes[X],R,V);Y&&e.appendChild(Y)}return e},uU=function(B){return B?nH(B)?B:uU(B.lastChild):
null},QrU=function(B){return B?nH(B)?B:QrU(B.firstChild):null},q$m=function(B){if(!B)return null;
for(var R=B.previousSibling;R;)if(R.nodeType===Node.ELEMENT_NODE&&R.nodeName==="BR")R=R.previousSibling;else if(R.nodeType===Node.TEXT_NODE&&/\s+/.test(R.textContent))R=R.previousSibling;else break;(R=uU(R))?B=R:B=(B=B.parentNode)?uU(B.previousElementSibling):null;return B},cse=function(B){if(!B)return null;
for(var R=B.nextSibling;R;)if(R.nodeType===Node.ELEMENT_NODE&&R.nodeName==="BR")R=R.nextSibling;else if(R.nodeType===Node.TEXT_NODE&&/\s+/.test(R.textContent))R=R.nextSibling;else break;return(R=QrU(R))?R:cse(B.parentNode)},As2=function(B){var R=_.k1(),V=R.JSC$9159_getStartNode();
if(!KP4(V.parentNode))return null;R=R.JSC$9159_getStartOffset();if(V.nodeType===Node.TEXT_NODE){var e=_.xl(V,nH);if(e){if(B&&R===0||!B&&R===V.length)return e}else{if(B&&R===V.length)return!V||V.nodeName==="BR"||V.nextElementSibling&&_.Dd(V.nextElementSibling,"display")==="block"?null:QrU(V.nextElementSibling);if(!B&&R===0)return V?uU(V.previousElementSibling):null}}if(V.nodeType===Node.ELEMENT_NODE)if(B){if(0<=R&&R<V.childNodes.length)return QrU(V.childNodes[R])}else if(0<R&&R<=V.childNodes.length)return uU(V.childNodes[R-
1]);return null},i7N=function(B,R,V){if(!B)return null;
if(B.nodeType===Node.TEXT_NODE)if(V){var e=q$m(B);if(e&&!/^\s+\S/.test(B.wholeText.substr(0,R)))return e}else if((e=cse(B))&&!/\S\s+/.test(B.wholeText.substr(R,B.wholeText.length)))return e;return B.nodeType===Node.ELEMENT_NODE?V?q$m(B.childNodes[R]):cse(B.childNodes[R]):i7N(B.parentNode,R,V)},srm=function(B){if(B.hasChildNodes())switch(B.tagName){case "DIV":case "A":case "SPAN":var R="";
for(B=B.firstChild;B;B=B.nextSibling)R+=srm(B);return R;default:return""}else switch(B.nodeType){case 3:return B.textContent;default:return""}},FPo=function(B){B=B.data;
return _.N("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.N("div",null,_.N(_.Hr,{text:B.title})),B.subtitle?_.N("div",{class:"ytd-menu-title-renderer__subtitle"},_.N(_.Hr,{text:B.subtitle})):null)},rs4=function(B){switch(B){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"}},gGe=function(B){return B.map(function(R){return{settingsRadioOptionRenderer:{title:_.OV(R.name),
asideText:_.OV(R.approximateSize),id:rs4(R.format)}}})},mRe=function(B){if(B&&B.length!==0)return B.filter(Z72()).map(function(R){return{settingsRadioOptionRenderer:{title:R.name,
asideText:R.approximateSize,id:rs4(R.formatType)}}})},O3=function(B){if(B)return B.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},$Rr=function(B,R){B=new Set(B!=null?B:[]);
if(B.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(B.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(B.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(B.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(B.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(R)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},Czo=function(B){var R=B.indexOf("(");
return R!==-1?B.substring(R+1,B.length-1):B},Pz6=function(B){switch(B){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},uFm=function(B,R,V,e,X,Y){var t=_.M_.clone(nG6);
t.locale=_.vE("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;t.report={description:X||"<empty>"};X=_.vE("SBOX_SETTINGS",{});R=R.join(",");var b=Date.now();B={choice_cc:e,choice_id_cc:V,choices_sc:R,gl:X.REQUEST_DOMAIN,hl:X.REQUEST_LANGUAGE,query:B,time:b};Y&&(B.choice_additional_comment_cc=Y);_.Wg5(t,B)},O77=function(B){var R=new Map;
R.set("authuser",_.vE("SESSION_INDEX","0"));return _.O0(B,R)},BrU=function(B){var R;
return _.W(function(V){switch(V.nextAddress){case 1:if(!B||!oAe(B))return V.return(null);R=null;switch(_.vE("INNERTUBE_CLIENT_NAME")){case "WEB":return V.jumpTo(2);case "WEB_REMIX":R=B.getPlayer()}V.jumpTo(3);break;case 2:return _.U(V,B.getPlayerPromise(),4);case 4:R=V.yieldResult;V.jumpTo(3);break;case 3:return V.return(R)}})},oAe=function(B){return["ytd-player",
"ytmusic-player"].includes(String(B.tagName||"").toLowerCase())},RZU=function(B){B=Math.round(B);
return B%2?B-1:B},Vc7=function(B){B=Math.round(B);
return B%2===0?B-1:B},eZe=function(B){var R,V,e;
if(B=(R=B.createPlaylistDialogFormSchema)==null?void 0:(V=R.fieldSchemas)==null?void 0:(e=V.title)==null?void 0:e.validationSchema)for(R=[B.syncStep,B.asyncStep].filter(function(X){return X!==void 0}),R=_.h(R),V=R.next();!V.done;V=R.next()){V=V.value.rules;
if(!V)break;V=_.h(V);for(V=V.next();!V.done;V=V.next())return _.D(V.value,_.trN)}},p$2=function(B){var R,V,e;
if(B=(R=B.createPlaylistDialogFormSchema)==null?void 0:(V=R.fieldSchemas)==null?void 0:(e=V.visibility)==null?void 0:e.validationSchema)for(R=[B.syncStep,B.asyncStep].filter(function(X){return X!==void 0}),R=_.h(R),V=R.next();!V.done;V=R.next()){V=V.value.rules;
if(!V)break;V=_.h(V);for(e=V.next();!e.done;e=V.next())if(e=_.D(e.value,X$m))return R=void 0,(R=e.translations)==null?void 0:R.visibilityNotValidErrorMessage}},YXz=function(){var B,R;
return(R=(B=_.Oz().resolve(_.uj(_.E5)))==null?void 0:B())!=null?R:!1},hZe=function(B,R){a:switch(R){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":R="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:R="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:B,style:R,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},tcr=function(B){var R=21;
if(!B)return R;R+=B.headerTitle?27:0;R+=B.headerTitle&&B.hasHeaderActionHeader?4:0;return R+=B.headerTitle&&B.headerSubtitle?16:0},W57=function(B){var R=0;
if(!B)return R;R+=B.hasFooterPrimaryButton||B.hasFooterSecondaryButton?48:0;R+=B.footerTrailingLabel||B.footerLeadingLabel?30:0;return R+=B.hasFooterPrimaryButton||B.hasFooterSecondaryButton||!B.footerTrailingLabel&&!B.footerLeadingLabel?0:12},bkr=function(B){var R=new _.Ju,V=B;
return{subscribe:function(e){R.subscribe("changed",e)},
dispatch:function(e,X){var Y=V;e==="Touch Start"?V=Object.assign({},Y,{isAnimating:!1,initialY:X.event.touches[0].clientY}):e==="Touch Move"?(e=Math.min(X.fullContentWrapperHeight,X.contentHeightMap[X.contentWrapperId]+tcr(X.header)-W57(X.footer)),V=Object.assign({},Y,{currentY:Math.max(X.contentScrollable?-1*(Y.initialY-24):0,X.event.touches[0].clientY-Y.initialY),maxHeightForContentWrapper:Math.min(e,Math.max(0,(Y.isFullScreen?e:X.contentWrapperHeight)-Y.currentY))})):V=e==="Snap To Full Screen"?
Object.assign({},Y,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:X.maxHeight}):e==="Snap To Neutral Position"?Object.assign({},Y,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:X.maxHeight}):e==="Close Sheet"?Object.assign({},Y,{isAnimating:!0,currentY:X.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:X.maxHeight}):Y;R.publish("changed",V)}}},JzN=function(B){return _.Wr(function(R){B(R);
return!1})},jGo=function(){_.Oz().resolve(_.HO).closeSheet()},U1j=function(B){var R,V,e,X,Y,t,b,J,G,y,S;
return{headerTitle:(R=B.headerTitle)==null?void 0:R.call(B),headerSubtitle:(V=B.headerSubtitle)==null?void 0:V.call(B),headerActionHeader:B.headerActionHeader,footerPrimaryButton:B.footerPrimaryButton,footerSecondaryButton:B.footerSecondaryButton,footerButtonType:(e=B.footerButtonType)==null?void 0:e.call(B),footerLeadingLabel:(X=B.footerLeadingLabel)==null?void 0:X.call(B),footerTrailingLabel:(Y=B.footerTrailingLabel)==null?void 0:Y.call(B),shouldShowIcons:(t=B.shouldShowIcons)==null?void 0:t.call(B),
skipContentClick:(b=B.skipContentClick)==null?void 0:b.call(B),additionalClassName:(J=B.additionalClassName)==null?void 0:J.call(B),onClosedCallback:B.onClosedCallback,focusOnClose:(G=B.focusOnClose)==null?void 0:G.call(B),isDisabled:(y=B.isDisabled)==null?void 0:y.call(B),disabledCommand:(S=B.disabledCommand)==null?void 0:S.call(B),headerFn:B.headerFn,contentFn:B.contentFn,footerFn:B.footerFn,hasHeaderFn:B.hasHeaderFn(),hasContentFn:B.hasContentFn(),hasFooterFn:B.hasFooterFn(),hasFooterPrimaryButton:B.hasFooterPrimaryButton(),
hasFooterSecondaryButton:B.hasFooterSecondaryButton(),hasHeaderActionHeader:B.hasHeaderActionHeader()}},NrU=function(B){switch(B){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""}},GFN=function(B){switch(B){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""}},yzi=function(B){switch(B){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""}},SX4=function(B,R,V){R.forEach(function(e){_.WC(_.Oz().resolve(_.jj),e)});
_.oF(B,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",V])},D1e=function(B,R,V,e){var X=_.D(V,_.AG).commandLifeCycleConfig;
X&&X.onStartCommand&&_.eO(B,[X.onStartCommand],R);_.PI(R);var Y=_.QK.instance;Y&&_.qx(Y,V)?_.cr(Y,V,e).then(function(t){if(!t||(t==null?0:t.error))return t=_.D(V,_.AG).serializedTransactionFlowLoggingParams,_.nw(R),_.SR(new ot("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",t));_.nw(R);return{data:t}}).then(function(t){_.nw(R);
HkN(t.data);var b=t.data.command;b&&_.eO(B,[b],R);b=McN(V,t.data);if(!b){var J=t.data;t=!1;if(J&&J.command&&_.D(J.command,_.p0)){var G;J=((G=_.D(J.command,_.p0))==null?void 0:G.commands)||[];for(G=0;G<J.length;G++)if(_.D(J[G],_.Ff4)){t=!0;break}}t||_.Gk('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!b&&X&&X.onSuccessCommand?_.eO(B,[X.onSuccessCommand],R):b&&X&&X.onFailureCommand&&_.eO(B,[X.onFailureCommand],R)},function(){_.nw(R);
X&&X.onFailureCommand&&_.eO(B,[X.onFailureCommand],R);kF4(V)}):_.Tn(Error("yl"),"ERROR")},fxU=function(B,R,V){var e=[R];
V&&e.push(V);return _.VD(B,e).then(function(X){var Y=_.D(R,_.AG).serializedTransactionFlowLoggingParams,t=X.data,b=McN(R,t);b?X=_.SR(new ot(b,Y)):HkN(t);return X},function(){var X=_.D(R,_.AG).serializedTransactionFlowLoggingParams;
kF4(R);return _.SR(new ot("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",X))})},McN=function(B,R){B=_.D(B,_.AG).serializedTransactionFlowLoggingParams;
var V=null;switch(R.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":V="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":V="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":V="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}V?_.q1(V,B):LAo(B);return V},kF4=function(B){_.q1("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.D(B,_.AG).serializedTransactionFlowLoggingParams)},
HkN=function(B){if(B.trackingParams){var R=_.TE(),V=_.wT();
R&&V&&_.EV(R,V,_.U5(B.trackingParams))}},lxn=function(B,R,V){var e=_.QK.instance,X=_.y9Z(_.vE("YPC_MB_URL")),Y=(new _.NWp).init(),t=_.GCd(),b=_.D(V,_.cy2).languageCode;
b===void 0?_.Tn(Error("Ci"),"ERROR"):_.DG([Y,X]).then(function(){var J={ctk:payments.business.integration.ClientTokenFactory.createClientToken(b,t)};e&&_.qx(e,V)?_.cr(e,V,J).then(function(G){return{data:G}}).then(function(G){_.OI(R,"yt-service-request-completed",G);
G.code!=="ERROR"&&(G=G.data.command)&&_.eO(B,[G],R)}):_.Tn(Error("yl"),"ERROR")})},d1m=function(B,R,V,e){var X=_.QK.instance;
X&&_.qx(X,V)?_.cr(X,V,e).then(function(Y){return{data:Y}}).then(function(Y){zZn(B,R,V,Y)},function(){axn(V)}):(X=_.Oz().resolve(_.uj(_.H$)))&&X.requestDataForServiceEndpoint(V,e).then(function(Y){zZn(B,R,V,Y)},function(){axn(V)})},zZn=function(B,R,V,e){_.OI(R,"yt-service-request-completed",e);
if(e.code&&e.code=="ERROR")axn(V);else{(e=e.data.commands)&&_.eO(B,e,R);var X;(B=(X=_.D(V,_.gJS))==null?void 0:X.serializedYpcPauseFlowLoggingParams)&&B&&_.xL("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",B)}},axn=function(B){var R;
(B=(R=_.D(B,_.gJS))==null?void 0:R.serializedYpcPauseFlowLoggingParams)&&B&&_.xL("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",B,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},x12=function(B,R,V){var e=_.QK.instance;
e&&_.qx(e,V)?_.cr(e,V).then(function(X){return{data:X}}).then(function(X){w$i(B,R,V,X)},function(){Tr4(V)}):(e=_.Oz().resolve(_.uj(_.H$)))&&e.requestDataForServiceEndpoint(V).then(function(X){w$i(B,R,V,X)},function(){Tr4(V)})},w$i=function(B,R,V,e){_.OI(R,"yt-service-request-completed",e);
e.code&&e.code=="ERROR"?Tr4(V):((e=e.data.commands)&&_.eO(B,e,R),(B=_.D(V,_.Zyb).serializedYpcResumeFlowLoggingParams)&&B&&_.xL("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",B))},Tr4=function(B){(B=_.D(B,_.Zyb).serializedYpcResumeFlowLoggingParams)&&B&&_.xL("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",B,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},L56=function(B){B=B===void 0?{}:B;
_.Oz().resolve(_.ejo).showFeedbackDialog(B.customProductData,B.feedbackContent,B.onFeedbackSubmitted,B.bucket)},vAn=function(B){B=B===void 0?{}:B;
_.Oz().resolve(_.ejo).showHelpDialog(B.helpContext,B.articleId,B.productData)},K52=function(){vAn()},Ixm=function(){L56()},QGo=function(B,R,V){var e,X,Y,t,b,J,G;
return _.W(function(y){switch(y.nextAddress){case 1:e=_.D(B,EAN);if((X=e)==null?0:X.productId){J={productId:e.productId,bucket:e.bucket,enableAnonymousFeedback:(b=e.enableAnonymousFeedback)!=null?b:!0,allowNonLoggedInFeedback:!0};G={feedbackChoice:V.feedbackChoice};if(!_.k("web_collect_offline_state")){y.jumpTo(8);break}_.en(y,9);return _.U(y,sq2(G),11)}t={bucket:(Y=e)==null?void 0:Y.bucket};if(!_.k("web_collect_offline_state")){y.jumpTo(4);break}t.customProductData={};_.en(y,5);return _.U(y,sq2(t.customProductData),
7);case 7:_.c8(y,4);break;case 5:_.WR(y);case 4:L56(t);y.jumpTo(0);break;case 11:_.c8(y,8);break;case 9:_.WR(y);case 8:_.Wrp(G),_.t35("GFEEDBACK",G),e.productId==="5295751"&&(G.client_attestation=Number(_.vE("CATSTAT",0))),e.productId==="5295751"&&(G.client_time=Date.now()/1E3/3600),e.productId==="5295751"&&(G.original_playback_id=_.Toh||""),_.Wg5(J,G),_.b3(y)}})},qX6=function(B){if(B=_.D(B,_.oFd)){var R={bucket:B.bucketIdentifier};
B.additionalDatas&&(R.customProductData={},B.additionalDatas.forEach(function(V){if(V=V.userFeedbackEndpointProductSpecificValueData)R.customProductData[V.key]=V.value}));
L56(R)}},cz4=function(B){var R=_.sd.getInstance();
var V=_.Wz("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var e=_.Wz("DELETE",void 0,"Delete"),X=_.Wz("CANCEL",void 0,"Cancel");V=PN2(V,void 0,e,X,{signal:"DELETE_ALL_DOWNLOADS"});_.vW(R,[{openPopupAction:V}],B)},iko=function(){return _.W(function(B){return B.nextAddress==1?_.U(B,_.Oz().resolve(_.nX),2):_.U(B,Az6(),0)})},sGr=function(B){var R,V;
return _.W(function(e){return e.nextAddress==1?(V=(R=_.D(B,_.c5))==null?void 0:R.targetId)?_.U(e,_.Oz().resolve(_.nX),3):e.jumpTo(0):_.U(e,_.Oz().resolve(_.PG).deleteVideo(V),0)})},rz4=function(B){var R,V;
return _.W(function(e){return e.nextAddress==1?(V=(R=_.D(B,_.c5))==null?void 0:R.targetId)?_.U(e,_.Oz().resolve(_.nX),3):e.jumpTo(0):_.U(e,F5r(_.Oz().resolve(_.PG),V),0)})},Zki=function(B){var R,V;
return _.W(function(e){return(V=(R=_.D(B,_.c5))==null?void 0:R.targetId)?_.U(e,gAj(V),0):e.jumpTo(0)})},$1N=function(){_.k("kevlar_woffle_refresh_dl_load_killswitch")||m12()},Pi7=function(){_.k("kevlar_woffle")&&_.Kk.instance&&Cii()},us6=function(B){var R;
if((R=_.D(B,_.Jv))==null||!R.videoId)return!1;nA4(_.Oz().resolve(_.PG),_.D(B,_.Jv),B.clickTrackingParams);return!0},op2=function(B){var R;
if((R=_.D(B,_.jX))==null||!R.playlistId)return!1;Ok2(_.Oz().resolve(_.PG),_.D(B,_.jX),B.clickTrackingParams);return!0},R1o=function(B){var R=_.D(B,_.AGa);
(R==null?void 0:R.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(R==null?void 0:R.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||BHU(_.Oz().resolve(_.PG),_.D(B,_.AGa))},e1N=function(B){B=_.D(B,_.U7b);
var R;(B==null?0:(R=B.actions)==null?0:R.length)&&Vme(B)},Yxe=function(B){var R,V;
return _.W(function(e){R=_.D(B,Xcz);return(V=R)!=null&&V.localWatchHistoryCommandType?_.U(e,pce(R),0):e.return()})},h14=function(B){setTimeout(function(){requestAnimationFrame(B)},80)},tmz=function(B){return Object.entries(B).map(function(R){return R.join(":")}).join(";")},bJn=function(B){var R,V,e;
_.W(function(X){if(X.nextAddress==1)return _.U(X,Wa4(),2);R=X.yieldResult;V=_.eR.instance;switch(R){case "granted":e=B.getLocationCommand;break;case "denied":e=B.openDeniedDialogAction;break;case "prompt":e=B.openCollectionDialogAction;break;default:e=B.openCollectionDialogAction}e&&V.resolveCommand(e);_.b3(X)})},Wa4=function(){var B,R;
return _.W(function(V){if(V.nextAddress==1)return B="prompt",navigator.permissions?_.U(V,navigator.permissions.query({name:"geolocation"}),3):V.jumpTo(2);V.nextAddress!=2&&(R=V.yieldResult,B=R.state);return V.return(B)})},j_2=function(){_.W(function(B){return _.U(B,_.JMm(),0)})},UUi=function(){var B,R,V;
return _.W(function(e){if(e.nextAddress==1)return B=_.Oz().resolve(_.M1),B?_.U(e,_.cr(B,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.KE(Error("Bl")),e.return(void 0));if(R=e.yieldResult){if(R.errorMetadata)return _.KE(Error("Cl`"+R.errorMetadata.status+"`"+R.error)),e.return(void 0);V=R.datasyncIds;_.R_l=V.length;return e.return(V)}_.KE(Error("Dl"));return e.return(void 0)})},NHN=function(){UUi().then(function(B){B&&(UCe(B),KAj(B),ebe(B),rKe(B))})},Gv2=function(B){_.dV.addLowPriorityJob(function(){var R,
V,e,X,Y;
return _.W(function(t){switch(t.nextAddress){case 1:if(_.k("ytidb_clear_optimizations_killswitch")){t.jumpTo(2);break}R=_.y_("clear");if(R.startsWith("V")&&R.endsWith("||")){var b=[R];UCe(b);KAj(b);ebe(b);rKe(b);return t.return()}V=X5U();e=gD4();return _.U(t,Ih6(),3);case 3:return X=t.yieldResult,_.U(t,NV7(),4);case 4:if(Y=t.yieldResult,!(V||e||X||Y))return t.return();case 2:B.isNetworkAvailable()?NHN():B.listenOnce("publicytnetworkstatus-online",NHN),_.b3(t)}})})},BX=function(B){B={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.s$(B)}}}};_.eR.instance&&_.eR.instance.resolveCommand(B)},yM6=function(B){if(B){var R=_.WK();
_.py(R,3854,void 0,{layer:0,parentLayer:4});switch(B){case 1:var V=238708;break;case 2:V=238715;break;case 3:V=238710;break;case 6:V=238709}V&&(B=_.tJ(R,{veType:V}))&&_.ty(R,B)}},Sxj=function(B){if(B){var R=_.WK();
_.py(R,3854,void 0,{layer:0,parentLayer:4});switch(B){case 1:var V=238714;break;case 2:V=238711;break;case 8:V=238709;break;case 7:V=238713;break;case 3:case 4:case 5:V=238712}V&&(B=_.tJ(R,{veType:V}))&&_.ty(R,B)}},HJo=function(B){switch(B.latencyType){case 0:_.lF("consent_primitive_flow");
_.zp("cpit",B.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.zp("cpist",B.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.zp("cprtif",B.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.zp("cprtli",B.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.zp("cprt",B.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.zp("cpdt",B.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.zp("cpjct",B.timestampEpochMillis,"consent_primitive_flow")}},
TH7=function(B,R){var V,e,X,Y,t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g,Vu;
return _.W(function(n){switch(n.nextAddress){case 1:_.en(n,2);(e=(V=_.D(B,MmN))==null?void 0:V.serializedConsentRequest)||(e=(X=_.D(B,kvz))==null?void 0:X.serializedConsentRequest);e&&(Y=DUr(_.Uo(e)));if(Y===void 0)return n.return();t=fq4(Y);t.latencyCallback=HJo;R&&lqe(t,function(){R.then(function(Yd){Yd.pauseVideo();(new z1e).increment()})});
return((b=_.D(B,MmN))==null?void 0:b.consentAction)==="CONSENT_ACTION_PREWARM"||((J=_.D(B,kvz))==null?void 0:J.consentAction)==="CONSENT_ACTION_PREWARM"?_.U(n,aqm(t),5):_.U(n,dUe(t),6);case 6:G=n.yieldResult;y=_.fU(G,Rt);if(y===1){if(((S=_.I6(G,V3,1,Rt))==null?void 0:_.LU(S,1))===1||((M=_.I6(G,V3,1,Rt))==null?void 0:_.LU(M,1))===2||((f=_.I6(G,V3,1,Rt))==null?void 0:_.LU(f,1))===3)_.D(B,kvz)?BX(_.Wz("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
BX(_.Wz("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));yM6((z=_.I6(G,V3,1,Rt))==null?void 0:_.LU(z,1),_.Oh(G,wcN,3,_.oI()))}else y===2?(((T=e7(G))==null?void 0:_.LU(T,1))===5?_.D(B,kvz)?BX(_.Wz("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):BX(_.Wz("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((L=e7(G))==null?void 0:_.LU(L,1))===1||((Q=e7(G))==null?void 0:_.LU(Q,1))===4?BX(_.Wz("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((q=e7(G))==null?void 0:_.LU(q,1))===7&&((m=Y)==null?void 0:(g=_.OB(m,X$,4))==null?void 0:_.LU(g,4))!==1&&BX(_.Wz("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Sxj((Vu=e7(G))==null?void 0:_.LU(Vu,1))):BX(_.Wz("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));n.jumpTo(5);break;case 5:_.c8(n,0);break;case 2:_.WR(n),BX(_.Wz("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.b3(n)}})},La4=function(){if(!xUn.has("Worker")){xUn.set("Worker",
!0);
var B={api:"BROWSER_API_WEB_WORKER"};B.available="Worker"in window?!0:!1;_.dn("apiTest",B)}},vpn=function(B){return typeof B==="undefined"?"-1":String(Math.ceil(B/1048576))},Q_7=function(B,R){Kam(new Iqn(_.D(R,Epz).addToken,_.D(R,Epz).commonToken)).then(function(){_.OI(B,"yt-invoke-instrument-manager-action-completed")},function(V){_.OI(B,"yt-invoke-instrument-manager-action-error",V)})},qxU=function(B){return _.Ao(B)},cM7=function(B){var R=1;
B=B.split(":");for(var V=[];R>0&&B.length;)V.push(B.shift()),R--;B.length&&V.push(B.join(":"));return V},AM4=function(B,R){R=B.aspectRatio()<=R.aspectRatio()?R.width/B.width:R.height/B.height;
B.scale(R)},iJN=function(B,R){R=B.aspectRatio()>R.aspectRatio()?R.width/B.width:R.height/B.height;
return B.scale(R)},s_m=function(B){var R=new _.Y3;
return _.ED(R,11,B)},Faz=function(B){var R={};
B=B.getAllResponseHeaders().split("\r\n");for(var V=0;V<B.length;V++)if(!_.Wd(B[V])){var e=cM7(B[V]),X=e[0];e=e[1];if(typeof e==="string"){e=e.trim();var Y=R[X]||[];R[X]=Y;Y.push(e)}}return _.M_.map(R,function(t){return t.join(", ")})},jd=function(B,R){return B.JSC$7703_xhr_?B.JSC$7703_xhr_.getResponseHeader(R):null},pM=function(B,R,V){Array.isArray(V)||(V=[String(V)]);
_.$2h(B.JSC$7940_queryData_,R,V);return B},Cii=function(){var B=_.Kk.instance;
_.W(function(R){return B.deferredInstallPrompt?_.U(R,B.deferredInstallPrompt.prompt(),0):R.jumpTo(0)})},rM7=function(B,R,V){if(_.R4(B))_.ij(B,R,V);
else for(B=_.Bn5(B);;){var e=B.next();if(e.done)break;R.call(V,e.value,void 0,B)}},gp4={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}"]},ice,sTi,FRj,rJi,gTN,Zce,m94,$9n,Ca2,gAj,F5r,Az6,Pa4,nT4,ucN,Oci,oBe,Ok2,nA4,B1m,Rqm,VQo,m12,BHU,eq7,Vme,XrN,pce,pr2,Ysz,hqU,tQr,W3o,bDN,J3r,PV,jOr,Uxn,
B6U,uTr,N1i,JC,j7,Uv,NL,Gj7,y3e,Sso,HDU,MQ4,kjz,Dx6,fPz,lPN,zq4;gp4={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 ZJj=function(B,R){var V=[];rM7(R,function(e){try{var X=_.RL.prototype.getWrapper.call(this,e,!0)}catch(Y){if(Y=="Storage: Invalid value was encountered")return;throw Y;}X===void 0?V.push(e):_.oDG(X)&&V.push(e)},B);
return V},mU4=function(B,R){ZJj(B,R).forEach(function(V){_.RL.prototype.remove.call(this,V)},B)},$Uz=function(B){var R=_.rv;
R._minimumZ=Math.max(R._minimumZ,B)},Cpz=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],Pp7=function(B,R){_.Cx(B.t3);B.t3=R},npm=function(B,R,V,e){B.setState(5);
var X=!!B.tEx&&Cpz.includes(_.mn(B.tEx)||"");try{var Y=new _.LT({program:R,globalName:V,kK:{disable:!_.k("att_web_record_metrics")||!_.k("att_skip_metrics_for_cookieless_domains_ks")&&X,kq:"aGIf"}});Y.j3j.then(function(){B.setState(6);e&&e(R)});
Pp7(B,Y)}catch(t){B.setState(7),t instanceof Error&&_.KE(t)}},uXi=function(B,R,V,e,X,Y){var t=t===void 0?"trayride":t;
V?(B.setState(2),_.IL(V,function(){if(window[t])npm(B,e,t,X);else{B.setState(3);var b=_.Vp5(V),J=document.getElementById(b);J&&(_.XcN(b),J.parentNode.removeChild(J));_.KE(new _.H8("BL:ULB",V))}},Y)):R?(Y=_.jr("SCRIPT"),R instanceof _.vB?_.E8(Y,R):Y.textContent=R,Y.nonce=_.L$(document),document.head.appendChild(Y),document.head.removeChild(Y),window[t]?npm(B,e,t,X):(B.setState(4),_.KE(new _.H8("BL:ULBJ")))):_.KE(new _.H8("BL:ULV"))},OJm=function(){this.state=1;
this.t3=null;this.tEx=void 0};
_.p=OJm.prototype;_.p.initialize=function(B,R,V,e){this.tEx=e;if(B.program){var X;e=(X=B.interpreterUrl)!=null?X:null;if(B.interpreterSafeScript)X=_.lz_(B.interpreterSafeScript);else{var Y;X=(Y=B.interpreterScript)!=null?Y:null}B.interpreterSafeUrl&&(e=_.wV(B.interpreterSafeUrl).toString());uXi(this,X,e,B.program,R,V)}else _.KE(Error("lf"))};
_.p.isInitialized=function(){return!!this.t3};
_.p.getState=function(){return this.state};
_.p.isLoading=function(){return this.state===2};
_.p.invoke=function(B){B=B===void 0?{}:B;var R;this.t3?R=_.Qbo(this.t3,{m6:B}):R=null;return R};
_.p.dispose=function(){Pp7(this,null);this.setState(8)};
_.p.setState=function(B){this.state=B};
var oTn=function(B,R){return B.t3.snapshot(R)},Bl7=function(B,R){var V=_.RC("botguard_async_snapshot_timeout_ms",3E3);
R=R===void 0?{}:R;V=V===void 0?3E3:V;return B.t3?new Promise(function(e,X){var Y=!1,t=_.dV.addJob(function(){Y=!0;X(Error("mf"))},1,V);
B.t3?oTn(B,{m6:R}).then(function(b){_.dV.cancelJob(t);Y||e(b)}).catch(function(b){_.dV.cancelJob(t);
Y||X(b)}):(_.dV.cancelJob(t),e(null))}):Promise.resolve(null)},RIz=["att/log"],VRn;
VRn={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var eIe={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},XKm=function(B,R){return _.Js(B,{mode:"readwrite",enableRetries:!0},function(V){return _.cf5(V,R,"settingEntity")})},pKe=function(B,R,V){return _.Js(B,{mode:"readonly",
enableRetries:!0},function(e){return _.N0b(e,R,V)})},Y5o=function(B){if(!B.storage)return!1;
a:{if(B.storage){try{var R=B.storage.get("TLPQtimestamp")}catch(V){}B=Number(R);if(!isNaN(B))break a}B=void 0}return B?Date.now()-B<864E5:!1},hI4=function(B){if(B.storage){try{var R=B.storage.get("TLPQindex")}catch(V){}B=Number(R);
if(!isNaN(B))return B}},tRi=function(B,R){B.queueProxy&&R.forEach(function(V){if(V.videoId&&V.trackingParams&&B.queueProxy instanceof _.xJ){var e=_.TE();
B.queueProxy.attributionData.set(V.videoId,{enqueueingVe:_.U5(V.trackingParams).getAsJson(),enqueueingCsn:e?e:void 0,clientEnqueueingTimeMs:Math.floor((0,_.P8)()).toString()})}})},WR4=function(B){var R=_.$DS(B);
R!=B.currentSnapState_&&(B.currentSnapState_=R,B.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},YK=function(B){this.JSC$10883_networkManager_=B;
this.partCallbacks_=[]};
YK.prototype.getCacheKeyForEndpoint=function(B){return _.SHY(B,!1)};
YK.prototype.onPartsCallback_=function(B){this.partCallbacks_.forEach(function(R){B&&R(B)})};
var hC=function(B,R,V){YK.call(this,B);this.player_=R;this.autoplayData_=V};
_.l(hC,YK);hC.prototype.getCacheKeyForEndpoint=function(B){return _.SHY(B,!!this.autoplayData_)};
hC.prototype.getTempData=function(B,R){R=R.timeBeforeNextVideo;B={itct:B.clickTrackingParams,lact:_.B5(),pbis:R,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(B.autonav=1);return B};
hC.prototype.getXhrParams=function(B){return Object.assign({pbj:"prefetch"},B)};
hC.prototype.getParams=function(B){B={frags:B.fragmentsRequested.join(",")};_.k("kevlar_droppable_prefetchable_requests")&&(B.prefetch=1);return B};
var bc6=function(B){B.playerEvents_.forEach(function(R){B.player.removeEventListener(R.eventName,R.callback)});
B.playerEvents_.length=0},tC=function(B,R,V){this.player=B;
this.JSC$10893_taskManager=R;this.prefetchDelay=V;this.completionResolver_=null;this.playerEvents_=[]};
tC.prototype.start=function(){var B=this;this.completionResolver_=_.A3();_.fT(this.completionResolver_.promise,function(){bc6(B);B.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var JJ7=function(B,R,V){B.player.addEventListener(R,V);B.playerEvents_.push({eventName:R,callback:V})},jT6={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},U96={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},NlU=function(B,R,V){tC.call(this,B,R,V);this.cueId_="playbackTrigger-"+Math.random()};
_.l(NlU,tC);
NlU.prototype.prepareTrigger=function(B){var R=this,V=this.player.getDuration(),e=this.player.getVideoData(),X=e.isLive&&e.hasProgressBarBoundaries;if(X&&e.progressBarEndPositionUtcTimeMillis){var Y=e.progressBarEndPositionUtcTimeMillis/1E3;isNaN(Y)||(V=Y)}var t=0;this.prefetchDelay>=0?X?e.progressBarStartPositionUtcTimeMillis&&(e=e.progressBarStartPositionUtcTimeMillis/1E3,isNaN(e)||(t=e+this.prefetchDelay)):t=this.prefetchDelay:t=V+this.prefetchDelay;X?this.player.addUtcCueRange(this.cueId_,t,V):
this.player.addCueRange(this.cueId_,t,V);_.fT(B.promise,function(){R.player.removeCueRange(R.cueId_)});
JJ7(this,"onCueRangeEnter",function(b){b==R.cueId_&&B.resolve(V-t)})};
var G27=function(B,R){B.fragmentConfiguration_[R].requiredKeys.every(function(V){return!!B.prefetchedData_[V]})&&(B.validatedFragments_.push(R),R=B.missingFragments_.indexOf(R),R!==-1&&B.missingFragments_.splice(R,1))},yJ6=function(B){B.prefetchedFragments_.forEach(function(R){G27(B,R)})},S5m=function(B,R,V){this.pageFragments_=B;
this.prefetchedFragments_=R;this.fragmentConfiguration_=U96;this.prefetchedData_=V;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;yJ6(this)},Hce=function(){},MRe=function(B){this.JSC$10907_playlistManager_=B};
_.l(MRe,Hce);MRe.prototype.getPrefetchEndpoint=function(){return this.JSC$10907_playlistManager_.getAutoplayEndpoint()};
var k24=function(B){this.autonavEndpoints_=B};
_.l(k24,Hce);k24.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var D94=function(B,R,V,e,X){this.autonavEndpoints=B;this.foregroundTrigger=R;this.backgroundTrigger=V;this.pageType=e;this.isInPlaylist=X},f9r=function(B,R){if(B.webPrefetchData&&B.webPrefetchData.navigationEndpoints&&B.webPrefetchData.navigationEndpoints.length){B=B.webPrefetchData.navigationEndpoints;
var V=_.D(B[0],_.sI);if(V.watchEndpointSupportedPrefetchConfig&&V.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var e=V.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;V=e.playbackRelativeSecondsPrefetchCondition;V=typeof V==="number"&&Math.abs(V)<R.videoDuration?V:void 0;e=e.countdownUiRelativeSecondsPrefetchCondition;e=typeof e!=="number"||_.k("prefetch_job_config_cleanup_ks")&&R.inPlaylist?void 0:e;if(typeof e==="number")return new D94(B,R.makeUpNextTrigger(e),R.makePlaybackTrigger(e),
"watch",R.inPlaylist);if(typeof V==="number")return new D94(B,R.makePlaybackTrigger(V),null,"watch",R.inPlaylist)}}},l9j=function(B){return B.prefetchJobConfig_.backgroundTrigger?_.Qh(_.RM_)()==0?B.prefetchJobConfig_.backgroundTrigger:B.prefetchJobConfig_.foregroundTrigger:B.prefetchJobConfig_.foregroundTrigger},zIj=function(B){_.SI(document,"visibilitychange",B.onVisibilityChange_,!1,B)},WX=function(B){YK.call(this,B)};
_.l(WX,YK);WX.prototype.getCacheKeyForEndpoint=function(B){return YK.prototype.getCacheKeyForEndpoint.call(this,B)};
WX.prototype.getTempData=function(){return{}};
WX.prototype.getXhrParams=function(B){return B};
WX.prototype.getParams=function(){return{}};
var a9e=function(B,R,V){var e=B.prefetchDelay*1E3;if(Math.abs(e)>R)V.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var X=e,Y=R-e;e<0&&(X=R+e,Y=Math.abs(e));var t=B.JSC$10893_taskManager.addJob(function(){V.resolve(Y/1E3)},10,X);
V.promise.thenCatch(function(){B.JSC$10893_taskManager.cancelJob(t)})}},d9e=function(B,R,V){tC.call(this,B,R,V)};
_.l(d9e,tC);d9e.prototype.prepareTrigger=function(B){var R=this;JJ7(this,"onAutonavCoundownStarted",function(V){a9e(R,V,B)})};
var wKn=function(B){B.pendingPrefetchJob_&&(B.pendingPrefetchJob_.cancel(),B.pendingPrefetchJob_=null)},Tlr=function(B,R,V){if(!B.triggeredTargets.has(R)){var e=_.LMo(B,R);
e.action=V;_.T$G(B,R,e)}},x9n=function(B){_.D04();
_.Upd("cpt")&&_.KE(Error("kh"));_.R5.requestAnimationFrame(function(){_.R5.setTimeout(function(){_.zp("cpt");var R=_.x8("vpl"),V=_.x8("cpt");R&&V&&_.zp("ol",Math.max(R,V))})});
try{_.zp("fr_s"),B()}catch(R){_.Tn(R)}_.R5.requestAnimationFrame(function(){_.zp("bcp")})},LRm=function(B,R){B.serviceEndpointHandlers.push(R)},vTo=function(B,R){R=B.pendingPages_.indexOf(R);
R>-1&&B.pendingPages_.splice(R,1)},KRN=function(B,R){var V=_.QYl.indexOf(R);
V>-1&&_.QYl.splice(V,1);B.targetPage_==R?(B.abort(),_.cj_(B)):vTo(B,R)},I9m=function(B,R,V,e){R={challenge:R};
V&&(R.webResponse=V);return _.vC(B.innertubeTransportService,R,_.Zz(RIz),e)},ETn=function(B,R,V){if(!R.challenge)throw Error("mi");
if(R.botguardData&&R.botguardData.program){var e=new OJm;e.initialize(R.botguardData,function(){Bl7(e,{atr_challenge:R.challenge}).then(function(X){if(!X)throw Error("ni");return I9m(B,R.challenge,X,V)}).catch(function(X){_.KE(X);
return I9m(B,R.challenge,void 0,V)})},void 0)}else I9m(B,R.challenge,void 0,V)},QTU=function(B,R,V){var e={};
R.ids&&(e.ids=[].concat(_.MI(R.ids)));R.engagementType&&(e.engagementType=R.engagementType);return _.vC(B.innertubeTransportService,e,_.Zz(_.LD2),V).then(function(X){if(!X)throw new _.H8("GetAttestationChallenge returned falsy");ETn(B,X,V)}).thenCatch(function(X){_.Tn(X)})},q57=function(B,R,V){return new _.be(function(e,X){var Y;
return _.W(function(t){if(t.nextAddress==1){var b=R.engagementType,J=R.ids,G={};J=_.h(J!=null?J:[]);for(var y=J.next();!y.done;y=J.next())y=y.value,y.encryptedVideoId?G.encryptedVideoId=y.encryptedVideoId:y.externalChannelId?G.externalChannelId=y.externalChannelId:y.commentId?G.commentId=y.commentId:y.externalOwnerId?G.externalOwnerId=y.externalOwnerId:y.artistId?G.artistId=y.artistId:y.playlistId?G.playlistId=y.playlistId:y.externalPostId?G.externalPostId=y.externalPostId:y.shareId&&(G.shareId=y.shareId);
return _.U(t,CN4(b,G),2)}Y=t.yieldResult;if(!Y.challenge)return _.KE(Error("oi")),QTU(B,R,V).then(e,X),t.return();b=Y;G={challenge:b.challenge};G.webResponse=b.webResponse;G.engagementType=R.engagementType;G.ids=R.ids;_.vC(B.innertubeTransportService,G,_.Zz(RIz),V).then(e,X);_.b3(t)})})},eAo=function(B,R){var V,e,X,Y;
_.W(function(t){if(t.nextAddress==1){V=_.D(R,_.dma);if(!(V&&V.listId&&B.response&&B.response.playingVideoId)||B.listId!==V.listId)return t.return();B.index===void 0&&(B.index=0);return _.U(t,_.P6b(B.JSC$10713_playlistNetworkManager,V.listId,B.index,B.response.playingVideoId),2)}e=t.yieldResult;if(!e)return t.return();X=e.playlistId;Y=e.playlistPanelRenderer;B.setPlaylistData(X,Y,e.autoplayRenderer);_.b3(t)})},cJo=function(B,R,V){var e=B.getParams(V),X=_.q5K(R,e),Y=B.getTempData(R,V);
Y.endpoint=JSON.stringify(R);_.k("enable_unknown_lact_fix_on_html5")&&(_.Oz().resolve(_.fD),Y.lact=_.B5());var t={headers:{"X-YouTube-STS":_.vE("STS"),"x-youtube-csoc":1}};_.Zg(X,Y);return new _.be(function(b,J){var G=B.getXhrParams(e),y;_.k("kevlar_cache_on_ttl_player")&&(y=_.Vf.instance);y&&_.h2b(y,R)?_.GfJ(y,R,Y,window.location.href).then(function(S){S?b(S):J()},J):_.Iyo(B.JSC$10883_networkManager_,R,G,B.onPartsCallback_.bind(B),t).then(function(S){S?b(S):J()},J)})},AJr=function(B,R){B.triggerPromise_=
R.start();
B.triggerPromise_.then(function(V){var e=B.prefetchEndpointProvider_.getPrefetchEndpoint();if(e){var X=jT6[B.prefetchJobConfig_.pageType].prefetchedFragments;B.prefetchRequestPromise_=cJo(B.JSC$10919_networkPrefetchRequest_,e,{fragmentsRequested:X,timeBeforeNextVideo:V});B.prefetchResponseCacheKey_=B.JSC$10919_networkPrefetchRequest_.getCacheKeyForEndpoint(e);zIj(B);B.prefetchRequestPromise_.then(function(Y){B.storePrefetchedDataCallback_(B.prefetchResponseCacheKey_,Y);if(_.k("web_prefetch_preload_video")&&
X.length===1&&X[0]==="pl"&&Y&&!Y.playerAds&&!Y.adPlacements){var t=_.D(e,_.GF),b=t!=null,J={raw_player_response:Y,watch_endpoint:t};(Y=_.Oz().resolve(b?_.v24:_.B7))&&e&&Y.then(function(G){b&&_.k("web_queue_preload_video")?(J.prefer_gapless=!0,G.queueNextVideo(J)):G.preloadVideoByPlayerVars(J)})}})}})},bZ=function(B,R,V,e){this.prefetchEndpointProvider_=B;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=R;this.prefetchJobConfig_=V;this.JSC$10919_networkPrefetchRequest_=e;this.prefetchResponseCacheKey_=null};
bZ.prototype.enqueue=function(){this.triggerPromise_||(AJr(this,l9j(this)),_.G2(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
bZ.prototype.resolve=function(){this.cancel()};
bZ.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.");zIj(this)};
bZ.prototype.onVisibilityChange_=function(){var B=this;_.Qh(_.RM_)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){B.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||AJr(this,l9j(this))};
ice=function(B,R,V,e,X){R&&(R==null?0:R.videoId)&&V&&V.entries&&_.k("kevlar_enable_shorts_prefetch_in_sequence")&&(wKn(B),R=V.entries.map(function(Y){var t;return(t=_.D(Y.command,_.GF))==null?void 0:t.videoId}).indexOf(R.videoId),V=V.entries[R+1],V!=null&&V.command&&!_.D(V==null?void 0:V.command,_.vL)&&(e=new D94([V.command],new NlU(e,_.dV,1),null,"shorts",!1),B.pendingPrefetchJob_=new bZ(new k24(e.autonavEndpoints),function(){return!1},e,new WX(X)),B.pendingPrefetchJob_.enqueue()))};
sTi=function(B,R,V,e,X,Y){var t=_.PL.getInstance();if(!_.k("block_all_player_prefetch_requests")){wKn(B);var b=!!V.getPlaylistId(),J=V.getVideoData().isLive&&V.getVideoData().hasProgressBarBoundaries;if((t.getState()==2||b||J)&&(!V.getVideoData().isLive||J)){t={inPlaylist:b,videoDuration:V.getDuration(),makeUpNextTrigger:function(y){return new d9e(V,_.dV,y)},
makePlaybackTrigger:function(y){return new NlU(V,_.dV,y)}};
var G=f9r(R,t);G&&(B.pendingPrefetchJob_=new bZ(G.isInPlaylist?new MRe(X):new k24(G.autonavEndpoints),function(y,S){S=new S5m(jT6[G.pageType].pageFragments,jT6[G.pageType].prefetchedFragments,S);return _.MF_(S)?(B.prefetchCache_.set(y,S),!0):!1},G,new hC(e,V,Y,X)),B.pendingPrefetchJob_.enqueue())}}};
FRj=function(){var B=_.cC();B.signals.parkOrScheduleJob(function(){var R=B.storage;if(R.storage)if(Y5o(R)){var V=R.getPlaylistId();R=hI4(R);V=!!V&&R!==void 0}else R.clear(),V=!1;else V=!1;if(V){V=B.pageManager.isOnWatch();a:{var e=B.storage;if(e.storage&&Y5o(e)&&(R=e.getPlaylistId(),e=hI4(e),R&&e!==void 0)){V={recoverPlaylistCommand:{listId:R,index:e,openMiniplayer:!V,openListPanel:V,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}V=void 0}V&&_.vW(B.JSC$10713_actionRouter,[V],null)}},0,"ma")};
rJi=function(B,R,V,e,X,Y){var t=_.kB(7111);_.YJ(B.JSC$16031_screenManager,t,Y?_.U5(Y):void 0);_.ty(B.JSC$16031_screenManager,t,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:e,offlineId:R,offlineabilityFormatType:V,isDefaultFormatType:X==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:X}})};
gTN=function(B,R,V,e,X){var Y,t,b,J,G;return _.W(function(y){if(y.nextAddress==1)return _.U(y,B.JSC$16031_playerApiPromise,2);Y=y.yieldResult;rJi(B,R,V,"OFFLINE_OBJECT_TYPE_PLAYLIST",e,X);if(b=_.D3S[B.entityTypeMap.listEntityType])G={},t=(G[b]={maximumDownloadQuality:(J=V)!=null?J:void 0},G);return _.U(y,Y.queueOfflineAction(R,B.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",t),0)})};
Zce=function(B,R){var V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return _.U(t,B.JSC$16031_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3){V=t.yieldResult;if(!V)return _.KE(new _.H8("PES is undefined")),t.return();e=_.XF(R,"downloadStatusEntity");return _.U(t,pKe(V,e,"downloadStatusEntity"),3)}X=t.yieldResult;return t.return((Y=X)==null?void 0:Y.downloadState)})};
m94=function(B,R,V,e,X){var Y,t,b,J,G,y;return _.W(function(S){switch(S.nextAddress){case 1:return _.U(S,B.JSC$16031_playerApiPromise,2);case 2:Y=S.yieldResult;rJi(B,R,V,"OFFLINE_OBJECT_TYPE_VIDEO",e,X);if(b=_.D3S[B.entityTypeMap.singleEntityType])G={},t=(G[b]={maximumDownloadQuality:(J=V)!=null?J:void 0},G);return _.U(S,Zce(B,R),3);case 3:y=S.yieldResult;if(y!=="DOWNLOAD_STATE_USER_DELETED"){S.jumpTo(4);break}return _.U(S,B.deleteVideo(R),4);case 4:return _.U(S,Y.queueOfflineAction(R,B.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",t),0)}})};
$9n=function(B,R,V,e,X){return _.W(function(Y){return Y.nextAddress==1?_.U(Y,B.deleteVideo(R,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.U(Y,m94(B,R,V,e,X),0)})};
Ca2=function(B,R,V){var e,X;return _.W(function(Y){if(Y.nextAddress==1)return _.U(Y,B.JSC$16031_playerApiPromise,2);e=Y.yieldResult;X=_.XF(R,"mainVideoDownloadStateEntity");return _.U(Y,e.updateDownloadState(X,V),0)})};
gAj=function(B){var R=_.Oz().resolve(_.PG);return _.W(function(V){if(V.nextAddress==1)return R.previousDownloadStateForVideo[B]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&R.previousDownloadStateForVideo[B]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?V.jumpTo(2):_.U(V,R.resumeVideoDownload(B),2);if(V.nextAddress!=4)return _.U(V,Ca2(R,B,R.previousDownloadStateForVideo[B]),4);delete R.previousDownloadStateForVideo[B];_.b3(V)})};
F5r=function(B,R){var V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$16031_playerApiPromise,2);V=e.yieldResult;return _.U(e,V.queueOfflineAction(R,B.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
Az6=function(){var B=_.Oz().resolve(_.PG),R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$16031_playerApiPromise,2);if(e.nextAddress!=3)return R=e.yieldResult,V={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.U(e,R.queueOfflineAction("!*$_ALL_ENTITIES_!*$",B.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",V),3);var X=B.JSC$16031_commandHandler,Y=X.resolveCommand,t=_.Wz("DELETING_ALL",void 0,"Downloads are being deleted");
Y.call(X,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.n0(t)}},popupType:"TOAST"}});_.b3(e)})};
Pa4=function(B){var R,V;return _.W(function(e){if(e.nextAddress==1)return _.U(e,B.JSC$16031_prefStorage,2);R=e.yieldResult;return e.return((V=R)==null?void 0:V.get("sdois"))})};
nT4=function(B){var R,V,e,X,Y,t;return _.W(function(b){if(b.nextAddress==1)return _.U(b,B.JSC$16031_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3){R=b.yieldResult;if(!R)return _.KE(new _.H8("PES is undefined")),b.return();V=_.XF("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.U(b,pKe(R,V,"settingEntity"),3)}e=b.yieldResult;return b.return((t=(X=e)==null?void 0:(Y=X.settingOptionValue)==null?void 0:Y.boolValue)!=null?t:!1)})};
ucN=function(B,R){var V,e,X,Y;return _.W(function(t){switch(t.nextAddress){case 1:return((V=R)==null?void 0:V.formatType)===void 0?t.return():_.U(t,B.JSC$16031_prefStorage,2);case 2:e=t.yieldResult;if(e===void 0)return t.return();if(((X=R)==null?void 0:X.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.U(t,e.set("lmqf",R.formatType),8);if(((Y=R)==null?void 0:Y.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){t.jumpTo(0);break}return _.U(t,e.set("lmqf",R.formatType),
6);case 6:return _.U(t,e.set("lmqflst",Math.floor((0,_.P8)())),0);case 8:return _.U(t,e.remove("lmqflst"),0)}})};
Oci=function(B){var R,V;return _.W(function(e){switch(e.nextAddress){case 1:return _.U(e,B.JSC$16031_prefStorage,2);case 2:R=e.yieldResult;if(!R){e.jumpTo(3);break}return _.U(e,R.get("lmqflst"),4);case 4:if(V=e.yieldResult,V!==void 0)return e.return(V);case 3:return e.return(0)}})};
oBe=function(B){var R,V;return _.W(function(e){switch(e.nextAddress){case 1:return _.U(e,B.JSC$16031_prefStorage,2);case 2:R=e.yieldResult;if(R===void 0){e.jumpTo(3);break}return _.U(e,R.get("lmqf"),4);case 4:if(V=e.yieldResult,V!==void 0)return e.return(V);case 3:return e.return("SD")}})};
Ok2=function(B,R,V){var e,X,Y,t,b,J,G,y;_.W(function(S){switch(S.nextAddress){case 1:return _.U(S,ucN(B,(e=R)==null?void 0:e.actionParams),2);case 2:X=R.playlistId;if(!X)return S.return();if(R.action==="ACTION_ADD")return((t=R.actionParams)==null?0:t.formatType)?_.U(S,gTN(B,X,R.actionParams.formatType,(y=R.actionParams)==null?void 0:y.settingsAction,V),0):_.U(S,B.offlineWebClientEligibility,14);if(R.action==="ACTION_REMOVE_WITH_PROMPT"){var M=B.JSC$16031_commandHandler,f=M.resolveCommand,z=_.vE("INNERTUBE_CLIENT_NAME");
var T=z==="WEB_REMIX"?_.Wz("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Wz("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var L=z==="WEB_REMIX"?[_.Wz("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];z=z==="WEB_REMIX"?_.Wz("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Wz("DELETE",void 0,"Delete");var Q=_.Wz("CANCEL",void 0,"Cancel");T=PN2(T,L,z,Q,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:X});f.call(M,{openPopupAction:T});
return S.return()}if(R.action==="ACTION_REMOVE")return _.U(S,F5r(B,X),0);if(R.action!=="ACTION_SYNC"){S.jumpTo(0);break}return _.U(S,B.JSC$16031_playerApiPromise,9);case 9:return Y=S.yieldResult,_.U(S,Y.queueOfflineAction(X,B.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return b=S.yieldResult,_.U(S,oBe(B),15);case 15:return J=S.yieldResult,_.U(S,Oci(B),16);case 16:G=S.yieldResult,R.onAddCommand&&B.JSC$16031_commandHandler.resolveCommand(R.onAddCommand,{form:{preferredFormatType:J,
offlineWebClientEligibility:b,lastOfflineQualitySettingsSavedMs:G.toString()}}),S.jumpTo(0)}})};
nA4=function(B,R,V){var e,X,Y,t,b,J,G,y,S,M,f,z,T,L;_.W(function(Q){switch(Q.nextAddress){case 1:return _.U(Q,ucN(B,(e=R)==null?void 0:e.actionParams),2);case 2:X=R.videoId;if(!X)return Q.return();if(R.action==="ACTION_REMOVE_WITH_PROMPT"){var q=B.JSC$16031_commandHandler,m=q.resolveCommand,g=_.vE("INNERTUBE_CLIENT_NAME");var Vu=g==="WEB_REMIX"?_.Wz("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Wz("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var n=g==="WEB_REMIX"?[_.Wz("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];g=g==="WEB_REMIX"?_.Wz("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Wz("DELETE",void 0,"Delete");var Yd=_.Wz("CANCEL",void 0,"Cancel");Vu=PN2(Vu,n,g,Yd,{signal:"DELETE_DOWNLOAD",targetId:X});m.call(q,{openPopupAction:Vu});return Q.return()}if(R.action==="ACTION_ADD")return((M=R.actionParams)==null?0:M.formatType)?_.U(Q,m94(B,X,R.actionParams.formatType,(L=R.actionParams)==null?void 0:L.settingsAction,V),0):_.U(Q,B.offlineWebClientEligibility,
23);if(R.action==="ACTION_RETRY")return _.U(Q,oBe(B),19);if(R.action==="ACTION_PAUSE")return _.U(Q,B.pauseVideoDownload(X),0);if(R.action==="ACTION_RESUME")return _.U(Q,B.resumeVideoDownload(X),0);if(R.action!=="ACTION_REMOVE"){Q.jumpTo(0);break}return _.U(Q,Zce(B,X),13);case 13:return Y=Q.yieldResult,B.previousDownloadStateForVideo[X]=(t=Y)!=null?t:"DOWNLOAD_STATE_UNKNOWN",_.U(Q,Ca2(B,X,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(B.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
B.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){Q.jumpTo(15);break}return _.U(Q,B.pauseVideoDownload(X),15);case 15:q=_.Wz("DELETED_VIDEO",void 0,"Video deleted from downloads.");m=_.Wz("UNDO_ACTION",void 0,"Undo");Vu=_.Wz("CLOSE",void 0,"Close");b={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.n0(q),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.n0(m),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:X}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:q+" "+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:Vu}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};B.JSC$16031_commandHandler.resolveCommand(b);
Q.jumpTo(0);break;case 19:J=Q.yieldResult;J==="UNKNOWN_FORMAT_TYPE"&&(J="SD");G="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((y=R.actionParams)==null?0:y.formatType)J=R.actionParams.formatType,G=(S=R.actionParams)==null?void 0:S.settingsAction;return _.U(Q,$9n(B,X,J,G,V),20);case 20:return Q.return();case 23:return f=Q.yieldResult,_.U(Q,oBe(B),24);case 24:return z=Q.yieldResult,_.U(Q,Oci(B),25);case 25:T=Q.yieldResult,R.onAddCommand&&B.JSC$16031_commandHandler.resolveCommand(R.onAddCommand,
{form:{preferredFormatType:z,offlineWebClientEligibility:f,lastOfflineQualitySettingsSavedMs:T.toString()}}),Q.jumpTo(0)}})};
B1m=function(B,R){var V,e,X,Y,t,b,J;return _.W(function(G){if(G.nextAddress==1)return _.U(G,B.JSC$16031_persistentStorePromiseAccessor(),2);V=G.yieldResult;if(!V)return _.KE(new _.H8("PES is undefined")),G.return();if((e=R)==null||!e.settingItemId)return G.return();X=R;Y=X.settingItemId;t=X.boolValue;b=_.XF(Y,"settingEntity");J={key:b,settingOptionValue:{boolValue:t}};return _.U(G,XKm(V,J),0)})};
Rqm=function(B,R){var V,e,X,Y,t,b,J;return _.W(function(G){switch(G.nextAddress){case 1:return _.U(G,B.JSC$16031_prefStorage,2);case 2:return V=G.yieldResult,e=_.UV(),_.U(G,B.JSC$16031_persistentStorePromiseAccessor(),3);case 3:return X=G.yieldResult,V?X?_.U(G,V.get("sdois"),4):(_.KE(new _.H8("PES is undefined")),G.return()):(_.KE(new _.H8("prefStorage is undefined")),G.return());case 4:Y=G.yieldResult;b=(t=R)==null?void 0:t.boolValue;b===void 0||_.k("kevlar_set_sd_enabled_flag_killswitch")||_.Nd(0,
197,!0);Y===void 0&&b===void 0&&(b=!1);if(b===void 0){G.jumpTo(0);break}return _.U(G,V.set("sdois",b),6);case 6:return _.k("kevlar_set_sd_enabled_flag_killswitch")||(_.Nd(0,196,b),e.save()),J={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:b},_.U(G,B1m(B,J),0)}})};
VQo=function(B,R,V){var e,X,Y,t,b;return _.W(function(J){switch(J.nextAddress){case 1:return _.U(J,Pa4(B),2);case 2:return e=J.yieldResult,_.U(J,Rqm(B,V),3);case 3:return _.U(J,Pa4(B),4);case 4:return X=J.yieldResult,Y=X!==e,_.U(J,nT4(B),5);case 5:t=J.yieldResult&&!_.k("kevlar_modern_downloads_page");if((b=!X&&!t)||Y)return _.U(J,R.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);J.jumpTo(0)}})};
m12=function(){var B=_.Oz().resolve(_.PG),R;_.W(function(V){switch(V.nextAddress){case 1:return _.U(V,B.JSC$16031_playerApiPromise,2);case 2:R=V.yieldResult;if(!_.k("kevlar_force_refresh_smart_downloads")){V.jumpTo(3);break}return _.U(V,R.refreshAllStaleEntities(0),4);case 4:return V.return();case 3:return _.U(V,R.refreshAllStaleEntities(),5);case 5:return _.U(V,VQo(B,R),0)}})};
BHU=function(B,R){var V,e;_.W(function(X){switch(X.nextAddress){case 1:return _.U(X,B.JSC$16031_playerApiPromise,2);case 2:V=X.yieldResult;switch((e=R)==null?void 0:e.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 _.U(X,VQo(B,V,R),6);case 6:X.jumpTo(0);break;case 4:return _.U(X,B1m(B,R),7);case 7:X.jumpTo(0)}})};
eq7=function(B,R){var V,e,X;return _.W(function(Y){if(Y.nextAddress==1)return _.U(Y,B.JSC$16031_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3){V=Y.yieldResult;if(!V)return _.KE(new _.H8("PES is undefined")),Y.return(!1);if(!R)return Y.return(!1);e=_.XF(R,"mainVideoEntity");return _.U(Y,pKe(V,e,"mainVideoEntity"),3)}X=Y.yieldResult;return Y.return(X!==void 0)})};
Vme=function(B){var R=_.Oz().resolve(_.PG),V,e,X,Y,t,b,J,G,y,S,M;_.W(function(f){switch(f.nextAddress){case 1:return _.U(f,R.JSC$16031_playerApiPromise,2);case 2:V=f.yieldResult;X=(e=B)==null?void 0:e.actions;if(!X)return f.return();Y=_.h(X);t=Y.next();case 3:if(t.done){f.jumpTo(0);break}b=t.value;G=J=void 0;if(!(((J=b)==null?0:J.entityKey)&&((G=b)==null?0:G.actionType))){f.jumpTo(4);break}y=_.Rr(b.entityKey);S=y.entityId;M=y.entityType;return _.U(f,V.queueOfflineAction(S,M,b.actionType),4);case 4:t=
Y.next(),f.jumpTo(3)}})};
XrN=function(B,R){var V,e,X,Y,t;return _.W(function(b){if(b.nextAddress==1)return _.U(b,B.JSC$16031_prefStorage,2);if(b.nextAddress!=3)return(V=b.yieldResult)?_.U(b,V.get("psi"),3):b.return();e=b.yieldResult;t={isPaused:R,lastSyncTimestamp:(Y=(X=e)==null?void 0:X.lastSyncTimestamp)!=null?Y:"0"};return _.U(b,V.set("psi",t),0)})};
pce=function(B){var R=_.Oz().resolve(_.PG),V,e,X,Y,t,b,J,G;return _.W(function(y){switch(y.nextAddress){case 1:return _.U(y,R.JSC$16031_playerApiPromise,2);case 2:V=y.yieldResult;X=((e=B)==null?void 0:e.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((b=B)==null?void 0:b.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":Y="!*$_ALL_ENTITIES_!*$";t="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return y.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return y.jumpTo(4)}y.jumpTo(5);break;case 3:return _.U(y,XrN(R,X),6);case 6:y.jumpTo(5);break;case 4:return _.U(y,eq7(R,(J=B)==null?void 0:J.videoId),7);case 7:y.yieldResult&&(Y=(G=B)==null?void 0:G.videoId,t="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");y.jumpTo(5);break;case 5:if(Y&&t)return _.U(y,V.queueOfflineAction(Y,"videoPlaybackPositionEntity",t),0);y.jumpTo(0)}})};
pr2=function(B,R){var V;R!==1||((V=B.currentPersistentToast)==null?0:V.isOpened())?B.openToast():B.currentPersistentToast=void 0};
Ysz=function(){var B,R,V,e;return _.W(function(X){if(X.nextAddress==1)return B=navigator,(R=B.storage)!=null&&R.persisted?_.U(X,(V=B.storage)==null?void 0:V.persisted(),2):X.return("PERSISTED_STATE_NOT_SUPPORTED");e=X.yieldResult;return X.return(e?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
hqU=function(){var B,R,V,e;return _.W(function(X){if(X.nextAddress==1)return B=navigator,(R=B.storage)!=null&&R.persist?_.U(X,(V=B.storage)==null?void 0:V.persist(),2):X.return("PERSISTED_STATE_NOT_SUPPORTED");e=X.yieldResult;return X.return(e?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
tQr=function(){var B,R;return _.W(function(V){switch(V.nextAddress){case 1:return B="PERSISTED_STATE_NOT_SUPPORTED",_.en(V,2),_.U(V,Ysz(),4);case 4:B=V.yieldResult;if(B!=="PERSISTED_STATE_NOT_GRANTED"){V.jumpTo(5);break}return _.U(V,hqU(),6);case 6:B=V.yieldResult;case 5:_.c8(V,3);break;case 2:R=_.WR(V),R instanceof Error&&_.Tn(R);case 3:return _.dn("persistentStorageStateChecked",{persistedState:B}),V.return(B)}})};
W3o=function(B,R){var V=[],e=!1;R=_.h(R);for(var X=R.next();!X.done;X=R.next()){X=B.moduleRegistry[X.value];var Y=void 0,t=void 0;((Y=X)==null?0:Y.isFetching)&&((t=X)==null?0:t.resolver)?(V.push(X.resolver.promise),e=!0):(X=new _.Xs,X.resolve(void 0),V.push(X.promise))}return e?Promise.all(V):void 0};
bDN=function(B,R,V){V=V===void 0?{}:V;var e=B.defaultViewTransitionOptions,X=R.map(function(t){return t.beforeTransition}),Y=R.map(function(t){return t.afterTransition});
return Object.assign({},e,V,{beforeTransition:function(){var t;(t=e.beforeTransition)==null||t.call(e);var b,J;(J=(b=V).beforeTransition)==null||J.call(b);t=_.h(X);for(b=t.next();!b.done;b=t.next())b=b.value,b()},
afterTransition:function(){var t;(t=e.afterTransition)==null||t.call(e);var b,J;(J=(b=V).afterTransition)==null||J.call(b);t=_.h(Y);for(b=t.next();!b.done;b=t.next())b=b.value,b()}})};
J3r=function(B,R,V){var e,X,Y,t,b,J,G;_.W(function(y){if(B.config.disableAllTransitions)return y.return(R());if((e=V)==null||!e.transitionName)return y.return(_.yq7(R,(X=V)==null?void 0:X.viewTransitionOptions));Y=V;t=Y.transitionName;b=Y.viewTransitionOptions;J=B.config.transitionConfigs.get(t);if(!J)return y.return(R());var S;G=(S=B.transitionTasksMap.get(t))!=null?S:[];return y.return(_.yq7(R,bDN(J,G,b)))})};
PV=function(B,R,V){B.transitionTasksMap.has(R)?B.transitionTasksMap.get(R).push(V):(B=new _.H8("Transition task registered for unknown transition name",R),_.Tn(B))};
jOr=function(B,R,V){if(B.isInitialized()){var e=BV(V),X=e==="watch";e=e==="shorts";var Y=BV(R)==="watch";if(X)Y||(B.backgroundPageData=R),B.watchPipMode&&Y||B.deactivate(V.endpoint);else if(e){if(BV(R)!=="shorts"){var t;(t=B.getPlayerElement())==null||t.pause()}}else Y&&!B.watchPipMode&&(u0e(R,V)?(B.watchWhileMode&&_.H$U(B,!1),_.ja7(B,R)):B.isMiniplayerActive()&&B.watchWhileMode&&B.deactivate());Y&&_.kmn(B);B.shortsPipMode&&!e&&(window.focus(),B.deactivate());if(B.pictureInPictureEnabled())if(e&&
B.shortsPipEnabled||X&&B.watchPipEnabled)_.O5Z(B.handleMediaSessionPipActivation);else if(!B.isMiniplayerActive()&&(B.shortsPipEnabled||B.watchPipEnabled)&&window.documentPictureInPicture&&_.xd()&&_.bZS("Chromium")>=120){B=_.uG_().mediaSession;try{B.setActionHandler("enterpictureinpicture",null)}catch(b){}}}};
Uxn=function(B,R){var V,e;_.W(function(X){if(X.nextAddress==1){if(!B||!B.navigationEndpoint)return X.return();_.Up().lockupActivation=!0;var Y;R?Y=_.s$(_.Wz("QUEUE",void 0,"Queue")):Y=B.longBylineText;e=(V=Y)&&B.title?{miniplayerTitle:B.title,miniplayerSubtitle:V,playlistData:null}:void 0;return _.U(X,_.dzh(_.Oz().resolve(_.An),B.navigationEndpoint,!0,e),2)}_.Up().userActivation=!0;_.b3(X)})};
B6U=function(B,R){var V,e,X,Y,t,b;_.W(function(J){if(J.nextAddress==1){V=_.D(R,_.a1J);if(!V||!V.listId)return J.return();B.index=V.index||B.index||0;e=B.response&&B.response.playingVideoId||void 0;return _.U(J,_.P6b(B.JSC$10713_playlistNetworkManager,V.listId,B.index,e),2)}X=J.yieldResult;if(!X)return J.return();Y=X.playlistId;t=X.playlistPanelRenderer;!B.queueProxy&&Y&&t&&Y.startsWith("TLPQ")&&(B.queueProxy=new _.xJ(B.JSC$10713_playlistNetworkManager,Y,B.setPlaylistData.bind(B),B.clearQueue.bind(B),
_.bFu(t),B.storage));if(V.openMiniplayer&&(b=_.Jpq(t))&&!B.pageManager.isOnWatch()){var G=b,y=V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";B.isMiniplayerActive()?B.openToast(G):Uxn(G,y)}B.setPlaylistData(Y,t,X.autoplayRenderer);_.b3(J)})};
uTr=function(B,R){var V=_.cC();V.index===void 0&&(V.index=0);V.temporaryItems.push.apply(V.temporaryItems,_.MI(B));if((R.videoId||R.videoIds)&&V.index!==void 0&&R.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!V.queueProxy){var e=[];if(V.response){var X=_.Oz().resolve(_.An).isMiniplayerActive();if(V.response.playlistPanelRenderer&&V.response.playlistId&&!V.response.playlistId.startsWith("TLPQ")){if(V.pageManager.isOnWatch()||X)e=_.bFu(V.response.playlistPanelRenderer)}else V.response.playingVideoId&&
!R.openMiniplayer?e.push(V.response.playingVideoId):X&&V.response.playingVideoId&&R.openMiniplayer&&e.push(V.response.playingVideoId)}V.queueProxy=new _.xJ(V.JSC$10713_playlistNetworkManager,"",V.setPlaylistData.bind(V),V.clearQueue.bind(V),e,V.storage);V.queueProxy.JSC$10659_setCurrentIndex(V.index)}V.queueProxy.addVideos(R.videoIds||[R.videoId],R)}tRi(V,B);V.response&&_.Ay(V,_.iR(V,V.response.autoplayRenderer));V.pageManager.isOnWatch()?V.isMiniplayerActive()&&V.openToast(B[0]):(B=B[0],R=R.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",V.isMiniplayerActive()?V.openToast(B):Uxn(B,R))};
N1i=function(B){var R=_.U4(B);if(R=="object"||R=="array"){if(typeof B.clone==="function")return B.clone();if(typeof Map!=="undefined"&&B instanceof Map)return new Map(B);if(typeof Set!=="undefined"&&B instanceof Set)return new Set(B);R=R=="array"?[]:{};for(var V in B)R[V]=N1i(B[V]);return R}return B};
JC=function(B,R){return _.CoA(_.yG(B,R,void 0,_.Go))};
j7=function(B,R){return _.l4(_.yG(B,R,void 0,_.Go))};
Uv=function(B,R){return _.UTS(_.yG(B,R,void 0,_.Go))};
NL=function(B,R){return _.yG(B,R,void 0,_.Go,_.Wo)};
Gj7=_.gq(function(B,R,V){if(B.nextWireType_!==0)return!1;_.ZY(R,V,_.cb(B.decoder_,_.Vn));return!0},_.nf,_.F6);
y3e=_.gq(function(B,R,V,e){if(B.nextWireType_!==0)return!1;_.D4(R,V,e,_.cb(B.decoder_,_.Vn));return!0},_.nf,_.F6);
Sso=_.gq(function(B,R,V){if(B.nextWireType_!==1)return!1;var e=B.decoder_;B=_.sD(e);e=_.sD(e);B=_.Bo(B,e);_.ZY(R,V,B);return!0},_.ZeS,_.gwq);
HDU=_.gq(function(B,R,V){if(B.nextWireType_!==5)return!1;_.ZY(R,V,_.sD(B.decoder_));return!0},function(B,R,V){R=_.zi(R);
R!=null&&(_.ml(B,V,5),_.Py(B.encoder_,R))},_.ri_);
MQ4=_.gq(function(B,R,V){if(B.nextWireType_!==0)return!1;B=_.fTZ(B.decoder_);_.ZY(R,V,B===!1?void 0:B);return!0},_.$jd,_.Aix);
kjz=_.gq(function(B,R,V){if(B.nextWireType_!==2)return!1;B=_.TCx(B);_.ZY(R,V,B===""?void 0:B);return!0},_.P4N,_.izI);
Dx6=_.gq(function(B,R,V){if(B.nextWireType_!==2)return!1;B=_.xHN(B);_.ZY(R,V,B===_.i_()?void 0:B);return!0},_.uUY,_.$HZ);
fPz=_.q4x(function(B,R,V){if(B.nextWireType_!==0&&B.nextWireType_!==2)return!1;R=_.am(R,R[_.w4]|0,V);B.nextWireType_==2?_.LQd(B,qxU,R):R.push(_.Ao(B.decoder_));return!0},function(B,R,V){R=_.QN5(_.l4,R,!0);
if(R!=null&&R.length){V=_.jNu(B,V);for(var e=0;e<R.length;e++)_.F6p(B.encoder_,R[e]);_.UjS(B,V)}},_.CBI);
lPN=_.gq(function(B,R,V){if(B.nextWireType_!==0)return!1;B=_.Ao(B.decoder_);_.ZY(R,V,B===0?void 0:B);return!0},_.OeY,_.CBI);
zq4=_.gq(function(B,R,V,e){if(B.nextWireType_!==0)return!1;_.D4(R,V,e,_.Ao(B.decoder_));return!0},_.OeY,_.CBI);
_.iD=function(B){this.privateDoNotAccessOrElseWrappedStyleSheet=B};
_.iD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var tu7=function(B,R){return new _.fx(B.x+R.x,B.y+R.y)},aPr=function(B){return B.previousElementSibling!==void 0?B.previousElementSibling:_.oml(B.previousSibling,!1)},dxj=function(B,R){var V=[];
for(R=R||0;R<B.length;R+=2)_.F6a(B[R],B[R+1],V);return V.join("&")},wr6=function(B,R){var V=arguments.length==2?dxj(arguments[1],0):dxj(arguments,1);
return _.sN2(B,V)},T1o=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(T1o,_.qS);T1o.prototype.getValue=function(){var B=_.yG(this,2);if(Array.isArray(B)||B instanceof _.qS)throw Error("aa");return _.M6(this,2)};
var wJ4=function(){var B=_.B$();this.JSC$7821_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.er("channel_type"))};
wJ4.prototype.increment=function(B){this.JSC$7821_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",B)};
var TTe=function(){var B=_.B$();this.JSC$7824_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.er("channel_type"))};
TTe.prototype.increment=function(B){this.JSC$7824_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",B)};
var Lce=function(){var B=_.B$();this.JSC$7827_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.er("channel_type"))};
Lce.prototype.increment=function(B){this.JSC$7827_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",B)};
var xre=function(){var B=_.B$();this.JSC$7830_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
xre.prototype.increment=function(){this.JSC$7830_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var vam=function(){var B=_.B$();this.JSC$7833_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.er("channel_type"),_.er("error_type"))};
vam.prototype.increment=function(B,R){this.JSC$7833_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",B,R)};
var KcU=function(){var B=_.B$();this.JSC$7836_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
KcU.prototype.increment=function(){this.JSC$7836_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Ig7=function(){var B=_.B$();this.JSC$7839_streamzService=B;B.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Ig7.prototype.increment=function(){this.JSC$7839_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var z1e=function(){var B=_.B$();this.JSC$7845_streamzService=B;B.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
z1e.prototype.increment=function(){this.JSC$7845_streamzService.JSC$7694_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var xxn=function(B){return B.getCount&&typeof B.getCount=="function"?B.getCount():_.R4(B)||typeof B==="string"?B.length:_.M_.getCount(B)},L34=function(B,R){if(typeof B.every=="function")return B.every(R,void 0);
if(_.R4(B)||typeof B==="string")return Array.prototype.every.call(B,R,void 0);for(var V=_.c4J(B),e=_.CT(B),X=e.length,Y=0;Y<X;Y++)if(!R.call(void 0,e[Y],V&&V[Y],B))return!1;return!0},vBm=function(B,R,V,e){var X=new _.FO(null);
B&&_.P_(X,B);R&&_.nT(X,R);V&&_.uK(X,V);e&&_.On(X,e);return X},K32=function(){var B=_.v8&&_.NY(_.njS,10)>=0,R;
if(R=_.qaq)R=_.NY(_.PjJ,10)>=0;var V=_.jY&&_.NY(_.njS,85)>=0;return _.to||B||R||V},IPm=function(B){var R=_.Dj5(B);
return R&&K32()?-B.scrollLeft:R&&_.Kd(B,"overflowX")!="visible"?B.scrollWidth-B.clientWidth-B.scrollLeft:B.scrollLeft},EBN=function(B,R){R=Math.max(R,0);
_.Dj5(B)?K32()?B.scrollLeft=-R:B.scrollLeft=B.scrollWidth-R-B.clientWidth:B.scrollLeft=R},ju6=0,S7n=!1;
Vp.prototype.set=function(B){this.relativeTimeStart_=B};
Vp.prototype.reset=function(){this.set(_.VG())};
Vp.prototype.get=function(){return this.relativeTimeStart_};
var QO4=null,qs2=function(){QO4||(QO4=new Vp)},c3U=function(){QO4||(QO4=new Vp)};
_.eY(c3U,qs2);_.p=Mb2.prototype;_.p.JSC$9168_buffer_="";_.p.set=function(B){this.JSC$9168_buffer_=""+B};
_.p.append=function(B,R,V){this.JSC$9168_buffer_+=String(B);if(R!=null)for(var e=1;e<arguments.length;e++)this.JSC$9168_buffer_+=arguments[e];return this};
_.p.clear=function(){this.JSC$9168_buffer_=""};
_.p.getLength=function(){return this.JSC$9168_buffer_.length};
_.p.toString=function(){return this.JSC$9168_buffer_};
var A3n=function(){var B={type:"unit",style:"narrow"};this.listType_=B&&B.type?B.type:"conjunction";this.listStyle_=B&&B.style?B.style:"long";this.listSymbols_=gp4;B=0;switch(this.listStyle_){case "short":B=1;break;case "narrow":B=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[B];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[B];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[B];this.listEndPattern_=
this.listSymbols_.AND_END[B];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[B];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[B];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[B];this.listEndPattern_=this.listSymbols_.OR_END[B];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[B],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[B],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[B],this.listEndPattern_=this.listSymbols_.UNIT_END[B]}};
A3n.prototype.format=function(B){return iD6(this,B)};
var iD6=function(B,R){var V=R.length;switch(V){case 0:return"";case 1:return String(R[0]);case 2:return B.listTwoPattern_.replace("{0}",String(R[0])).replace("{1}",String(R[1]))}for(var e=B.listStartPattern_.replace("{0}",String(R[0])).replace("{1}",String(R[1])),X=2;X<V-1;++X)e=B.listMiddlePattern_.replace("{0}",e).replace("{1}",String(R[X]));return B.listEndPattern_.replace("{0}",e).replace("{1}",String(R[V-1]))},Qun=function(){var B={style:1};
this.style_=(B==null?void 0:B.style)||0;this.durationSymbols_=_.lCJ||_.L5b},sOz=function(B,R){switch(R){default:case "years":return B.durationSymbols_.YEAR;
case "months":return B.durationSymbols_.MONTH;case "weeks":return B.durationSymbols_.WEEK;case "days":return B.durationSymbols_.DAY;case "hours":return B.durationSymbols_.HOUR;case "minutes":return B.durationSymbols_.MINUTE;case "seconds":return B.durationSymbols_.SECOND}},Gd=function(B,R,V){a:{V=sOz(B,V);
switch(B.style_){case 1:if(V.LONG!=void 0){B=V.LONG;break a}case 2:if(V.NARROW!=void 0){B=V.NARROW;break a}default:B=V.SHORT;break a}B=void 0}return B?(new _.opJ("{DURATION_VALUE,plural,"+B+"}")).format({DURATION_VALUE:R}):""};
Qun.prototype.format=function(B){var R=[],V=B.years,e=B.months,X=B.weeks,Y=B.days,t=B.hours,b=B.minutes;B=B.seconds;V!=null&&R.push(Gd(this,V,"years"));e!=null&&R.push(Gd(this,e,"months"));X!=null&&R.push(Gd(this,X,"weeks"));Y!=null&&R.push(Gd(this,Y,"days"));t!=null&&R.push(Gd(this,t,"hours"));b!=null&&R.push(Gd(this,b,"minutes"));B!=null&&R.push(Gd(this,B,"seconds"));return(new A3n).format(R)};
var F3i=!1,dCN=function(B){_.o5.call(this,B.message||B.description||B.name);this.isMissing=B instanceof ed;this.isTimeout=B instanceof _.Z_&&B.errorCode=="net.timeout";this.isCanceled=B instanceof _.Cw};
_.l(dCN,_.o5);dCN.prototype.name="BiscottiError";var ed=function(){_.o5.call(this,"Biscotti ID is missing from server")};
_.l(ed,_.o5);ed.prototype.name="BiscottiMissingError";var X7=null,FyU=function(){try{var B=_.qN("yt.ads.biscotti.getId_");return B?B():pfN()}catch(R){return _.SR(R)}},EWo,r3o=function(B){return _.or({type:"SET_GUIDE_IS_EXPANDED",
payload:B})},gBe=function(B){return _.or({type:"SET_ONLINE_STATUS",
payload:B})},ZDz=function(B,R){return _.or({type:"SET_TRANSCRIPTION_STATE",
payload:{high:B,low:R}})},mxn=function(B){return _.or({type:"SET_OVERLAY_STATE",
payload:B})},$xU=0,CP4=function(B,R,V){var e=this;
this.priority=R;this.delay=V;this.jobId=0;this.completionCallback=_.ys;this.wrappedJob=function(){B();e.completionCallback()};
this.id=++$xU};
CP4.prototype.enqueue=function(B){this.completionCallback=B;this.jobId=_.dV.addJob(this.wrappedJob,this.priority,this.delay)};
var y3=function(){_.BW.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.l(y3,_.BW);y3.prototype.addJob=function(B,R,V){B=new CP4(B,R,V);this.taskIdToTask.set(B.id,B);this.isActive?PP7(this,B):this.suspendedTasks.add(B);return B.id};
var PP7=function(B,R){B.scheduledTasks.add(R);R.enqueue(function(){B.scheduledTasks.delete(R)})};
y3.prototype.cancelJob=function(B){(B=this.taskIdToTask.get(B))&&(this.scheduledTasks.delete(B)?_.dV.cancelJob(B.jobId):this.suspendedTasks.delete(B))};
y3.prototype.pause=function(){var B=this;this.isActive=!1;this.scheduledTasks.forEach(function(R){_.dV.cancelJob(R.jobId);B.suspendedTasks.add(R)});
this.scheduledTasks.clear()};
y3.prototype.start=function(){var B=this;this.isActive=!0;this.suspendedTasks.forEach(function(R){PP7(B,R)});
this.suspendedTasks.clear()};
y3.prototype.reset=function(){this.scheduledTasks.forEach(function(B){_.dV.cancelJob(B.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var S7=function(B,R){this.JSC$10843_networkService_=B;this.pageRequestPromise=R};
S7.prototype.fetchData=function(B){nBN(this,this.JSC$10843_networkService_.fetchData(B))};
S7.prototype.postData=function(B,R){nBN(this,this.JSC$10843_networkService_.postData(B,R))};
S7.prototype.requestDataForServiceEndpoint=function(B,R){nBN(this,this.JSC$10843_networkService_.requestDataForServiceEndpoint(B,R))};
var nBN=function(B,R){R.then(B.pageRequestPromise.onSuccess,B.pageRequestPromise.onFailure,B.pageRequestPromise)};
S7.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var HX=function(B){this.buildNetworkRequest_=B;this.pendingRequests_=new Set};
HX.prototype.reset=function(){this.pendingRequests_.forEach(function(B){B.cancel()});
this.pendingRequests_.clear()};
HX.prototype.fetchData=function(B){var R=uE4(this);R.fetchData(B);return R.pageRequestPromise};
HX.prototype.postData=function(B,R){var V=uE4(this);V.postData(B,R);return V.pageRequestPromise};
HX.prototype.requestDataForServiceEndpoint=function(B,R){var V=uE4(this);V.requestDataForServiceEndpoint(B,R);return V.pageRequestPromise};
var uE4=function(B){var R=B.buildNetworkRequest_();B.pendingRequests_.add(R);var V=function(){B.pendingRequests_.delete(R)};
R.pageRequestPromise.then(V,V);return R},OD4=function(B){var R=new y3;
this.JSC$10850_networkService_=B;this.JSC$10850_taskManager_=R;this.JSC$10850_networkManager_=new HX(this.networkRequestFactory_.bind(this))};
_.p=OD4.prototype;_.p.networkRequestFactory_=function(){return new S7(this.JSC$10850_networkService_,new _.oD(this.JSC$10850_taskManager_))};
_.p.reset=function(){this.JSC$10850_taskManager_.reset();this.JSC$10850_networkManager_.reset()};
_.p.start=function(){this.JSC$10850_taskManager_.start()};
_.p.pause=function(){this.JSC$10850_taskManager_.pause()};
_.p.getTaskManager=function(){return this.JSC$10850_taskManager_};
_.p.getNetworkManager=function(){return this.JSC$10850_networkManager_};
var suN=null,gWe=[],pH=0,hg=0,Yu=null,oxU=function(){var B=(0,_.A7_)();B&&mU4(B,B.mechanism.__iterator__(!0))},WV=function(B){this.token=B};
WV.getInstance=function(){var B;return _.W(function(R){if(R.nextAddress==1)return _.U(R,_.$z(),2);B=R.yieldResult;if(!B)return R.return();WV.instance||(WV.instance=new WV(B));return R.return(WV.instance)})};
var nWm=function(B){var R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,$Cr(B.token),2);R=V.yieldResult;return V.return(R.clear("resource-manifest-assets"))})},tg=function(B){this.token=B};
tg.getInstance=function(){var B;return _.W(function(R){if(R.nextAddress==1)return _.U(R,_.$z(),2);B=R.yieldResult;if(!B)return R.return();tg.instance||(tg.instance=new tg(B));return R.return(tg.instance)})};
var Cf7=function(B){var R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,$Cr(B.token),2);R=V.yieldResult;return _.U(V,R.clear("auth"),0)})},BbU=!1,bU=null,WAi=void 0,HEn=!1,Rwj=function(B){_.o5.call(this,B)};
_.l(Rwj,_.EK4);var H0r=function(){var B=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return B?parseInt(B[1],10):0},VXm=function(B){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+B)!=-1||document.currentScript.src.indexOf("&"+B)!=-1)},ewe=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},lIi=function(B){B.length?X76(B.shift(),function(){lIi(B)}):kpj()},aIo=function(B){return"chrome-extension://"+B+"/cast_sender.js"},X76=function(B,
R,V){var e=document.createElement("script");
e.onerror=R;V&&(e.onload=V);_.Qm(e,_.Dv(B));(document.head||document.documentElement).appendChild(e)},p7m=function(){var B=H0r(),R=[];
if(B>1){var V=B-1;R.push("//www.gstatic.com/eureka/clank/"+B+"/cast_sender.js");R.push("//www.gstatic.com/eureka/clank/"+V+"/cast_sender.js")}return R},kpj=function(){var B=ewe();
B&&B(!1,"No cast extension found")},fIe=function(){if(YQn){var B=2,R=ewe(),V=function(){B--;
B==0&&R&&R(!0)};
window.__onGCastApiAvailable=V;X76("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",kpj,V)}},MOj=function(){fIe();
var B=p7m();B.push("//www.gstatic.com/eureka/clank/cast_sender.js");lIi(B)},Dd6=function(){fIe();
var B=p7m();B.push.apply(B,_.MI(ze4.map(aIo)));B.push("//www.gstatic.com/eureka/clank/cast_sender.js");lIi(B)},YQn=VXm("loadCastFramework")||VXm("loadCastApplicationFramework"),ze4=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var hw4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(hw4,_.qS);var tX2=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(tX2,_.qS);var WJ6=function(){var B=new tX2;return _.QG(B,1,3)};var ML=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(ML,_.qS);var UK4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(UK4,_.qS);var bON=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(bON,_.qS);bON.prototype.getToken=function(){return _.xU(this,1)};
bON.prototype.setToken=function(B){return _.oH(this,1,B)};
var Jm4=function(B){return _.Hy(B,3,_.co,_.oI())},jA6=function(B){return _.Hy(B,6,_.co,_.oI())};var kK=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(kK,_.qS);kK.prototype.getToken=function(){return _.OB(this,bON,2)};
kK.prototype.setToken=function(B){return _.Ra(this,2,B)};
kK.prototype.getName=function(){return _.xU(this,6)};
var Jvo=_.oa(kK);var jV7=function(B,R,V){this.requestMessage=B;this.methodDescriptor=R;this.metadata=V};
jV7.prototype.getMetadata=function(){return this.metadata};var Uoj=function(B,R){R=R===void 0?{}:R;this.responseMessage=B;this.metadata=R;this.status=null};
Uoj.prototype.getMetadata=function(){return this.metadata};
Uoj.prototype.getStatus=function(){return this.status};var DL=function(B,R,V,e,X){this.name=B;this.methodType="unary";this.requestType=R;this.responseType=V;this.requestSerializeFn=e;this.responseDeserializeFn=X},Nbi=function(B,R,V){V=V===void 0?{}:V;
return new jV7(R,B,V)};
DL.prototype.getName=function(){return this.name};var fM=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(fM,_.qS);fM.prototype.setHeader=function(B){return _.Ra(this,1,B)};
fM.prototype.hasHeader=function(){return _.SY(this,ML,1)};var Gr7=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Gr7,_.qS);var yv6=new DL("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",fM,Gr7,function(B){return B.serialize()},_.oa(Gr7));var lZ=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(lZ,_.qS);lZ.prototype.setHeader=function(B){return _.Ra(this,1,B)};
lZ.prototype.hasHeader=function(){return _.SY(this,ML,1)};var SQz=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(SQz,_.qS);var HOe=new DL("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",lZ,SQz,function(B){return B.serialize()},_.oa(SQz));var zd=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(zd,_.qS);zd.prototype.setHeader=function(B){return _.Ra(this,1,B)};
zd.prototype.hasHeader=function(){return _.SY(this,ML,1)};var MX6=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(MX6,_.qS);MX6.prototype.getLink=function(){return _.OB(this,kK,1)};var kro=new DL("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",zd,MX6,function(B){return B.serialize()},_.oa(MX6));var at=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(at,_.qS);at.prototype.setHeader=function(B){return _.Ra(this,1,B)};
at.prototype.hasHeader=function(){return _.SY(this,ML,1)};var Dom=new DL("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",at,kK,function(B){return B.serialize()},Jvo);var fE6=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(fE6,_.qS);var lEi=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(lEi,_.qS);lEi.prototype.getUrl=function(){return _.xU(this,2)};
lEi.prototype.setUrl=function(B){return _.oH(this,2,B)};var zwz=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(zwz,_.qS);var aE4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(aE4,_.qS);var doi=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(doi,_.qS);var zW7=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(zW7,_.qS);var lpm=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(lpm,_.qS);var w7e=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(w7e,_.qS);var v_7=_.oa(w7e);var Tbj=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Tbj,_.qS);var d8=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(d8,_.qS);d8.prototype.setHeader=function(B){return _.Ra(this,1,B)};
d8.prototype.hasHeader=function(){return _.SY(this,ML,1)};
d8.prototype.getCompletionUrl=function(){return _.xU(this,6)};
d8.prototype.getDeviceId=function(){return _.xU(this,11)};var xo6=new DL("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",d8,w7e,function(B){return B.serialize()},v_7);var LJz=new Set(["SAPISIDHASH","APISIDHASH"]);var vx4=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(vx4,_.qS);vx4.prototype.getMessage=function(){return _.xU(this,2)};
var KJ4=_.oa(vx4);var w8=function(B,R){this.xhrNodeReadableStream_=B.nodeReadableStream;this.grpcResponseDeserializeFn_=R;this.JSC$16954_xhr_=B.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16954_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&IEz(this)},iO7=function(B,R){var V=new Exr;
_.G2(B.JSC$16954_xhr_,"complete",function(){if(B.JSC$16954_xhr_.isSuccess()){var e=B.JSC$16954_xhr_.getResponseText();var X;if(X=R)X=B.JSC$16954_xhr_,X.JSC$7703_xhr_&&X.isComplete()?(X=X.JSC$7703_xhr_.getResponseHeader("Content-Type"),X=X===null?void 0:X):X=void 0,X=X==="text/plain";if(X){if(!atob)throw Error("Jj");e=atob(e)}try{var Y=B.grpcResponseDeserializeFn_(e)}catch(b){Td(B,OEe(new _.zH(13,"Error when deserializing response data; error: "+b+(", response: "+e)),V));return}e=_.unq(B.JSC$16954_xhr_.getStatus());
QVU(B,qQn(B));e==0?cvU(B,Y):Td(B,OEe(new _.zH(e,"Xhr succeeded but the status code is not 200"),V))}else{e=B.JSC$16954_xhr_.getResponseText();Y=qQn(B);if(e){var t=Avn(B,e);e=t.code;X=t.details;t=t.metadata}else e=2,X="Rpc failed due to xhr error. uri: "+String(B.JSC$16954_xhr_.JSC$7703_lastUri_)+", error code: "+B.JSC$16954_xhr_.JSC$7703_lastErrorCode_+", error: "+B.JSC$16954_xhr_.getLastError(),t=Y;QVU(B,Y);Td(B,OEe(new _.zH(e,X,t),V))}})},IEz=function(B){B.xhrNodeReadableStream_.on("data",function(R){if("1"in
R){var V=R["1"];
try{var e=B.grpcResponseDeserializeFn_(V)}catch(X){Td(B,new _.zH(13,"Error when deserializing response data; error: "+X+(", response: "+V)))}e&&cvU(B,e)}if("2"in R)for(R=Avn(B,R["2"]),V=0;V<B.onStatusCallbacks_.length;V++)B.onStatusCallbacks_[V](R)});
B.xhrNodeReadableStream_.on("end",function(){QVU(B,qQn(B));for(var R=0;R<B.onEndCallbacks_.length;R++)B.onEndCallbacks_[R]()});
B.xhrNodeReadableStream_.on("error",function(){if(B.JSC$16954_onErrorCallbacks_.length!=0){var R=B.JSC$16954_xhr_.JSC$7703_lastErrorCode_;R!==0||B.JSC$16954_xhr_.isSuccess()||(R=6);var V=-1;switch(R){case 0:var e=2;break;case 7:e=10;break;case 8:e=4;break;case 6:V=B.JSC$16954_xhr_.getStatus();e=_.unq(V);break;default:e=14}QVU(B,qQn(B));R=_.yqS(R)+", error: "+B.JSC$16954_xhr_.getLastError();V!=-1&&(R+=", http status code: "+V);Td(B,new _.zH(e,R))}})},qQn=function(B){var R={},V=Faz(B.JSC$16954_xhr_);
Object.keys(V).forEach(function(e){R[e]=V[e]});
return R},Avn=function(B,R){var V=2,e={};
try{var X=KJ4(R);V=_.Bn(X,1);var Y=X.getMessage();_.Oh(X,T1o,3,_.oI()).length&&(e["grpc-web-status-details-bin"]=R)}catch(t){B.JSC$16954_xhr_&&B.JSC$16954_xhr_.getStatus()===404?(V=5,Y="Not Found: "+String(B.JSC$16954_xhr_.JSC$7703_lastUri_)):(V=14,Y="Unable to parse RpcStatus: "+t)}return{code:V,details:Y,metadata:e}};
w8.prototype.on=function(B,R){B=="data"?this.onDataCallbacks_.push(R):B=="metadata"?this.onMetadataCallbacks_.push(R):B=="status"?this.onStatusCallbacks_.push(R):B=="end"?this.onEndCallbacks_.push(R):B=="error"&&this.JSC$16954_onErrorCallbacks_.push(R);return this};
var xK=function(B,R){R=B.indexOf(R);R>-1&&B.splice(R,1)};
w8.prototype.removeListener=function(B,R){B=="data"?xK(this.onDataCallbacks_,R):B=="metadata"?xK(this.onMetadataCallbacks_,R):B=="status"?xK(this.onStatusCallbacks_,R):B=="end"?xK(this.onEndCallbacks_,R):B=="error"&&xK(this.JSC$16954_onErrorCallbacks_,R);return this};
w8.prototype.cancel=function(){this.JSC$16954_xhr_.abort()};
var cvU=function(B,R){for(var V=0;V<B.onDataCallbacks_.length;V++)B.onDataCallbacks_[V](R)},QVU=function(B,R){for(var V=0;V<B.onMetadataCallbacks_.length;V++)B.onMetadataCallbacks_[V](R)},Td=function(B,R){for(var V=0;V<B.JSC$16954_onErrorCallbacks_.length;V++)B.JSC$16954_onErrorCallbacks_[V](R)};
w8.prototype.cancel=w8.prototype.cancel;w8.prototype.removeListener=w8.prototype.removeListener;w8.prototype.on=w8.prototype.on;var Exr=function(){var B=Error.call(this);this.message=B.message;"stack"in B&&(this.stack=B.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.l(Exr,Error);var LM=function(B){this.JSC$16963_worker_=B.worker||null;this.JSC$16963_streamBinaryChunks_=B.streamBinaryChunks||!1;this.JSC$16963_credentialsMode_=void 0};
_.eY(LM,_.oRZ);LM.prototype.createInstance=function(){var B=new vX(this.JSC$16963_worker_,this.JSC$16963_streamBinaryChunks_);this.JSC$16963_credentialsMode_&&B.setCredentialsMode(this.JSC$16963_credentialsMode_);return B};
LM.prototype.setCredentialsMode=function(B){this.JSC$16963_credentialsMode_=B};
var vX=function(B,R){_.H_.call(this);this.JSC$16967_worker_=B;this.JSC$16967_streamBinaryChunks_=R;this.JSC$16967_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$16967_responseHeaders_=null;this.JSC$16967_method_="GET";this.JSC$16967_url_="";this.inProgress_=!1;this.JSC$16967_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.eY(vX,_.H_);vX.prototype.open=function(B,R){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$16967_method_=B;this.JSC$16967_url_=R;this.readyState=1;KM(this)};
vX.prototype.send=function(B){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var R={headers:this.requestHeaders_,method:this.JSC$16967_method_,credentials:this.JSC$16967_credentialsMode_,cache:void 0};B&&(R.body=B);(this.JSC$16967_worker_||_.R5).fetch(new Request(this.JSC$16967_url_,R)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
vX.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,It(this));this.readyState=0};
vX.prototype.handleResponse_=function(B){if(this.inProgress_&&(this.fetchResponse_=B,this.JSC$16967_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16967_responseHeaders_=B.headers,this.readyState=2,KM(this)),this.inProgress_&&(this.readyState=3,KM(this),this.inProgress_)))if(this.responseType==="arraybuffer")B.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.R5.ReadableStream!==
"undefined"&&"body"in B){this.currentReader_=B.body.getReader();if(this.JSC$16967_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$16967_textDecoder_=new TextDecoder;sVo(this)}else B.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var sVo=function(B){B.currentReader_.read().then(B.handleDataFromStream_.bind(B)).catch(B.handleSendFailure_.bind(B))};
vX.prototype.handleDataFromStream_=function(B){if(this.inProgress_){if(this.JSC$16967_streamBinaryChunks_&&B.value)this.response.push(B.value);else if(!this.JSC$16967_streamBinaryChunks_){var R=B.value?B.value:new Uint8Array(0);if(R=this.JSC$16967_textDecoder_.decode(R,{stream:!B.done}))this.response=this.responseText+=R}B.done?It(this):KM(this);this.readyState==3&&sVo(this)}};
vX.prototype.handleResponseText_=function(B){this.inProgress_&&(this.response=this.responseText=B,It(this))};
vX.prototype.handleResponseArrayBuffer_=function(B){this.inProgress_&&(this.response=B,It(this))};
vX.prototype.handleSendFailure_=function(){this.inProgress_&&It(this)};
var It=function(B){B.readyState=4;B.fetchResponse_=null;B.currentReader_=null;B.JSC$16967_textDecoder_=null;KM(B)};
vX.prototype.setRequestHeader=function(B,R){this.requestHeaders_.append(B,R)};
vX.prototype.getResponseHeader=function(B){return this.JSC$16967_responseHeaders_?this.JSC$16967_responseHeaders_.get(B.toLowerCase())||"":""};
vX.prototype.getAllResponseHeaders=function(){if(!this.JSC$16967_responseHeaders_)return"";for(var B=[],R=this.JSC$16967_responseHeaders_.entries(),V=R.next();!V.done;)V=V.value,B.push(V[0]+": "+V[1]),V=R.next();return B.join("\r\n")};
vX.prototype.setCredentialsMode=function(B){this.JSC$16967_credentialsMode_=B};
var KM=function(B){B.onreadystatechange&&B.onreadystatechange.call(B)};
Object.defineProperty(vX.prototype,"withCredentials",{get:function(){return this.JSC$16967_credentialsMode_==="include"},
set:function(B){this.setCredentialsMode(B?"include":"same-origin")}});var FJ4=function(B){var R="";_.M_.forEach(B,function(V,e){R+=e;R+=":";R+=V;R+="\r\n"});
return R},rvU=function(B,R,V){if(_.M_.isEmpty(V))return B;
V=FJ4(V);if(typeof B==="string")return _.i9(B,_.AS(R),V);_.A4(B,R,V);return B};var gxe=function(){this.isInputValid_=!0;this.JSC$16973_streamPos_=0;this.leftoverInput_=""};
gxe.prototype.isInputValid=function(){return this.isInputValid_};var U3=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16976_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
U3.prototype.isInputValid=function(){return this.state_!=3};
var Ev=function(B,R,V,e){B.state_=3;B.errorMessage_="The stream is broken @"+B.JSC$16976_streamPos_+"/"+V+". Error: "+e+". With input:\n"+R;throw Error(B.errorMessage_);};
U3.prototype.acceptsBinaryInput=function(){return!0};
U3.prototype.parse=function(B){function R(J){J&128&&Ev(Y,t,b,"invalid tag");(J&7)!=2&&Ev(Y,t,b,"invalid wire type");Y.tag_=J>>>3;Y.tag_!=1&&Y.tag_!=2&&Y.tag_!=15&&Ev(Y,t,b,"unexpected tag");Y.state_=1;Y.length_=0;Y.countLengthBytes_=0}
function V(J){Y.countLengthBytes_++;Y.countLengthBytes_==5&&J&240&&Ev(Y,t,b,"message length too long");Y.length_|=(J&127)<<(Y.countLengthBytes_-1)*7;J&128||(Y.state_=2,Y.countMessageBytes_=0,typeof Uint8Array!=="undefined"?Y.messageBuffer_=new Uint8Array(Y.length_):Y.messageBuffer_=Array(Y.length_),Y.length_==0&&X())}
function e(J){Y.messageBuffer_[Y.countMessageBytes_++]=J;Y.countMessageBytes_==Y.length_&&X()}
function X(){if(Y.tag_<15){var J={};J[Y.tag_]=Y.messageBuffer_;Y.result_.push(J)}Y.state_=0}
for(var Y=this,t=B instanceof Array?B:new Uint8Array(B),b=0;b<t.length;){switch(Y.state_){case 3:Ev(Y,t,b,"stream already broken");break;case 0:R(t[b]);break;case 1:V(t[b]);break;case 2:e(t[b]);break;default:throw Error("Oj`"+Y.state_);}Y.JSC$16976_streamPos_++;b++}B=Y.result_;Y.result_=[];return B.length>0?B:null};var BBe=function(){this.errorMessage_=null;this.JSC$16979_streamPos_=0;this.base64Decoder_=new gxe;this.pbParser_=new U3};
BBe.prototype.isInputValid=function(){return this.errorMessage_===null};
var ZO7=function(B,R,V){B.errorMessage_="The stream is broken @"+B.JSC$16979_streamPos_+". Error: "+V+". With input:\n"+R;throw Error(B.errorMessage_);};
BBe.prototype.acceptsBinaryInput=function(){return!1};
BBe.prototype.parse=function(B){this.errorMessage_!==null&&ZO7(this,B,"stream already broken");var R=null;try{var V=this.base64Decoder_;if(!V.isInputValid_)throw V.isInputValid_=!1,Error("Nj`"+V.JSC$16973_streamPos_+"`stream already broken`"+B);V.leftoverInput_+=B;var e=Math.floor(V.leftoverInput_.length/4);if(e==0)var X=null;else{try{var Y=_.lid(V.leftoverInput_.slice(0,e*4))}catch(J){var t=V.leftoverInput_,b=J.message;V.isInputValid_=!1;throw Error("Nj`"+V.JSC$16973_streamPos_+"`"+b+"`"+t);}V.JSC$16973_streamPos_+=
e*4;V.leftoverInput_=V.leftoverInput_.slice(e*4);X=Y}R=X===null?null:this.pbParser_.parse(X)}catch(J){ZO7(this,B,J.message)}this.JSC$16979_streamPos_+=B.length;return R};var o_U=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16982_streamPos_=0;this.result_=[];this.statusParsed_=!1};
o_U.prototype.isInputValid=function(){return this.errorMessage_===null};
o_U.prototype.acceptsBinaryInput=function(){return!1};
o_U.prototype.parse=function(B){function R(J){Y.state_=6;Y.errorMessage_="The stream is broken @"+Y.JSC$16982_streamPos_+"/"+t+". Error: "+J+". With input:\n";throw Error(Y.errorMessage_);}
function V(){Y.jsonStreamParser_=new _.eo({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function e(J){if(J)for(var G=0;G<J.length;G++){var y={};y[1]=J[G];Y.result_.push(y)}}
function X(J){if(J){(Y.statusParsed_||J.length>1)&&R("extra status: "+J);Y.statusParsed_=!0;var G={};G[2]=J[0];Y.result_.push(G)}}
for(var Y=this,t=0;t<B.length;){var b;if(b=Y.state_!==2){a:{for(;t<B.length;){if(!_.Vt(B[t])){b=!0;break a}t++;Y.JSC$16982_streamPos_++}b=!1}b=!b}if(b)return null;switch(Y.state_){case 6:R("stream already broken");break;case 0:B[t]==="["?(Y.state_=1,t++,Y.JSC$16982_streamPos_++):R("unexpected input token");break;case 1:B[t]==="["?(Y.state_=2,V()):B[t]===","||B.slice(t,t+5)=="null,"?Y.state_=3:B[t]==="]"?(Y.state_=5,t++,Y.JSC$16982_streamPos_++):R("unexpected input token");break;case 2:b=Y.jsonStreamParser_.parse(B.substring(t));
e(b);Y.jsonStreamParser_.done()?(Y.state_=3,b=Y.jsonStreamParser_.JSC$9295_buffer_,Y.JSC$16982_streamPos_+=B.length-t-b.length,B=b,t=0):(Y.JSC$16982_streamPos_+=B.length-t,t=B.length);break;case 3:B[t]===","||B.slice(t,t+5)=="null,"?(Y.state_=4,V(),Y.jsonStreamParser_.parse("["),t+=B[t]===","?1:5,Y.JSC$16982_streamPos_++):B[t]==="]"&&(Y.state_=5,t++,Y.JSC$16982_streamPos_++);break;case 4:b=Y.jsonStreamParser_.parse(B.substring(t));X(b);Y.jsonStreamParser_.done()?(Y.state_=5,b=Y.jsonStreamParser_.JSC$9295_buffer_,
Y.JSC$16982_streamPos_+=B.length-t-b.length,B=b,t=0):(Y.JSC$16982_streamPos_+=B.length-t,t=B.length);break;case 5:R("extra input after stream end")}}return Y.result_.length>0?(B=Y.result_,Y.result_=[],B):null};var moN=function(B){this.JSC$16985_xhr_=B;this.JSC$16985_parser_=null;this.status_=this.JSC$16985_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16985_textDecoder_=null;this.JSC$16985_eventHandler_=new _.oL(this);this.JSC$16985_eventHandler_.listen(this.JSC$16985_xhr_,"readystatechange",this.JSC$16987_readyStateChangeHandler_)},Q3=function(B,R){B.status_!=R&&(B.status_=R,B.statusHandler_&&B.statusHandler_())},qL=function(B){B.JSC$16985_eventHandler_.removeAll();
if(B.JSC$16985_xhr_){var R=B.JSC$16985_xhr_;B.JSC$16985_xhr_=null;R.abort();R.dispose()}};
moN.prototype.getStatus=function(){return this.status_};
moN.prototype.JSC$16987_readyStateChangeHandler_=function(B){B=B.target;try{if(B==this.JSC$16985_xhr_)a:{var R=_.wK(this.JSC$16985_xhr_),V=this.JSC$16985_xhr_.JSC$7703_lastErrorCode_,e=this.JSC$16985_xhr_.getStatus(),X=this.JSC$16985_xhr_.getResponseText();B=[];if(this.JSC$16985_xhr_.getResponse()instanceof Array){var Y=this.JSC$16985_xhr_.getResponse();Y.length>0&&Y[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,B=Y)}if(!(R<3||R==3&&!X&&B.length==0))if(e=e==200||e==206,R==4&&(V==8?Q3(this,
7):V==7?Q3(this,8):e||Q3(this,3)),this.JSC$16985_parser_||(this.JSC$16985_parser_=RWe(this.JSC$16985_xhr_),this.JSC$16985_parser_==null&&Q3(this,5)),this.status_>2)qL(this);else{if(B.length>this.JSC$16985_pos_){var t=B.length;V=[];try{if(this.JSC$16985_parser_.acceptsBinaryInput())for(var b=0;b<t;b++){var J=this.JSC$16985_parser_.parse(Array.from(B[b]));J&&(V=V.concat(J))}else{J="";if(!this.JSC$16985_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$16985_textDecoder_=new TextDecoder}for(b=
0;b<t;b++)J+=this.JSC$16985_textDecoder_.decode(B[b],{stream:R==4&&b==t-1});V=this.JSC$16985_parser_.parse(J)}B.splice(0,t);V&&this.dataHandler_(V)}catch(y){Q3(this,5);qL(this);break a}}else if(X.length>this.JSC$16985_pos_){b=X.slice(this.JSC$16985_pos_);this.JSC$16985_pos_=X.length;try{var G=this.JSC$16985_parser_.parse(b);G!=null&&this.dataHandler_&&this.dataHandler_(G)}catch(y){Q3(this,5);qL(this);break a}}R==4?(X.length!=0||this.hasStreamingResponseData_?Q3(this,2):Q3(this,4),qL(this)):Q3(this,
1)}}}catch(y){Q3(this,6),qL(this)}};var $oe=function(B){B=this.xhrReader_=B;var R=(0,_.M2)(this.onData_,this);B.dataHandler_=R;B=this.xhrReader_;R=(0,_.M2)(this.onStatusChange_,this);B.statusHandler_=R;this.JSC$16989_callbackMap_={};this.callbackOnceMap_={}};
_.p=$oe.prototype;_.p.on=function(B,R){var V=this.JSC$16989_callbackMap_[B];V||(V=[],this.JSC$16989_callbackMap_[B]=V);V.push(R);return this};
_.p.addListener=function(B,R){this.on(B,R);return this};
_.p.removeListener=function(B,R){var V=this.JSC$16989_callbackMap_[B];V&&_.uo(V,R);(B=this.callbackOnceMap_[B])&&_.uo(B,R);return this};
_.p.once=function(B,R){var V=this.callbackOnceMap_[B];V||(V=[],this.callbackOnceMap_[B]=V);V.push(R);return this};
_.p.onData_=function(B){var R=this.JSC$16989_callbackMap_.data;R&&Cl7(B,R);(R=this.callbackOnceMap_.data)&&Cl7(B,R);this.callbackOnceMap_.data=[]};
var Cl7=function(B,R){for(var V={},e=0;e<B.length;V={message$jscomp$969:void 0},e++)V.message$jscomp$969=B[e],R.forEach(function(X){return function(Y){try{Y(X.message$jscomp$969)}catch(t){}}}(V))};
$oe.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:Pli(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Pli(this,"error");break;case 8:Pli(this,"close");break;case 2:Pli(this,"end")}};
var Pli=function(B,R){var V=B.JSC$16989_callbackMap_[R];V&&V.forEach(function(e){try{e()}catch(X){}});
(V=B.callbackOnceMap_[R])&&V.forEach(function(e){e()});
B.callbackOnceMap_[R]=[]};var nxj=function(){var B={format:"jspb"};B=B===void 0?{}:B;this.suppressCorsPreflight=B.suppressCorsPreflight||_.qN("suppressCorsPreflight",B)||!1;this.withCredentials=B.withCredentials||_.qN("withCredentials",B)||!1;this.streamInterceptors=B.streamInterceptors||[];this.unaryInterceptors=B.unaryInterceptors||[];this.workerScope=B.workerScope;this.chunkedServerStreaming=B.useFetchDownloadStreams||!1},o1n=function(B,R,V,e,X,Y){Y=Y===void 0?{}:Y;
var t=R.substring(0,R.length-X.name.length),b,J=(b=Y)==null?void 0:b.signal;return utm(function(G){return new Promise(function(y,S){if(J==null?0:J.aborted){var M=new _.zH(1,"Aborted");M.cause=J.reason;S(M)}else{var f={},z=OOe(B,G,t);z.on("error",function(T){return void S(T)});
z.on("metadata",function(T){f=T});
z.on("data",function(T){var L=f;L=L===void 0?{}:L;y(new Uoj(T,L))});
J&&J.addEventListener("abort",function(){z.cancel();var T=new _.zH(1,"Aborted");T.cause=J.reason;S(T)})}})},B.unaryInterceptors).call(B,Nbi(X,V,e)).then(function(G){return G.responseMessage})},cX=function(B,R,V,e,X){var Y=Y===void 0?{}:Y;
return o1n(B,R,V,e,X,Y)};
nxj.prototype.serverStreaming=function(B,R,V,e){var X=this,Y=B.substring(0,B.length-e.name.length);return BLo(function(t){var b=t.methodDescriptor,J=t.getMetadata(),G=Rue(X,!1);J=VBn(X,J,G,Y+b.getName());var y=eum(G,b.responseDeserializeFn,!0);t=b.requestSerializeFn(t.requestMessage);G.send(J,"POST",t);return y},this.streamInterceptors).call(this,Nbi(e,R,V))};
var OOe=function(B,R,V){var e=R.methodDescriptor,X=R.getMetadata(),Y=Rue(B,!0);B=VBn(B,X,Y,V+e.getName());V=eum(Y,e.responseDeserializeFn,!1);iO7(V,X["X-Goog-Encode-Response-If-Executable"]==="base64");R=e.requestSerializeFn(R.requestMessage);Y.send(B,"POST",R);return V},Rue=function(B,R){R=B.chunkedServerStreaming&&!R;
return B.workerScope||R?new _.dK(new LM({worker:B.workerScope,streamBinaryChunks:R})):new _.dK},VBn=function(B,R,V,e){R["Content-Type"]="application/json+protobuf";
R["X-User-Agent"]="grpc-web-javascript/0.1";var X=R.Authorization;if(X&&LJz.has(X.split(" ")[0])||B.withCredentials)V.JSC$7703_withCredentials_=!0;if(B.suppressCorsPreflight)e=rvU(e,"$httpHeaders",R);else for(B=_.h(Object.keys(R)),X=B.next();!X.done;X=B.next())X=X.value,V.headers.set(X,R[X]);return e},eum=function(B,R,V){if(V){V=new moN(B);
var e=new $oe(V)}return new w8({xhr:B,nodeReadableStream:e},R)},BLo=function(B,R){return R.reduce(function(V,e){return function(X){return e.intercept(X,V)}},B)},utm=function(B,R){return R.reduce(function(V,e){return function(X){return e.intercept(X,V)}},B)};var XIo=function(B){this.client_=new nxj;this.hostname_=B==void 0?B:B.replace(/\/+$/,"")};
_.p=XIo.prototype;_.p.JSC$17008_depositGoogleCredential=function(B,R){return cX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",B,R||{},HOe)};
_.p.deleteLink=function(B,R){return cX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",B,R||{},yv6)};
_.p.JSC$17008_finishOAuth=function(B,R){return cX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",B,R||{},kro)};
_.p.getLink=function(B,R){return cX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",B,R||{},Dom)};
_.p.startLinkingSession=function(B,R){return cX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",B,R||{},xo6)};var pIm=[0,MQ4,1,fPz,[0,_.$U,[0,kjz,-1]],[0,Dx6],[0,lPN,-1]];var Yyj=function(){this.storage=new Map},tBe=function(B,R,V,e,X){if(!B.storage.has(R))return null;
B=_.h(B.storage.get(R));for(R=B.next();!R.done;R=B.next())if(R=R.value,!X||R.linkName===X)if(V&&R.scopes&&hu4(R.scopes,V)||e&&R.capabilities&&hu4(R.capabilities,e))return R;return null},W24=function(B,R,V){if(!V)B.storage.delete(R);
else if(B.storage.has(R)){var e=B.storage.get(R).filter(function(X){return X.linkName!==V});
e.length>0?B.storage.set(R,e):B.storage.delete(R)}},hu4=function(B,R){R=_.h(R);
for(var V=R.next();!V.done;V=R.next())if(!B.has(V.value))return!1;return!0};var bwN=function(){var B=_.vE("LINK_GAL_DOMAIN");this.alsDomain1p=_.vE("LINK_GAL_DOMAIN");this.alsDomain3p=B;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},JkN=function(B,R){B.apiKey=R;
return B};
bwN.prototype.build=function(){var B={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");B.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");B.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(B.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)B.apiKey=
this.apiKey,B.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");B.oauthToken=this.oauthToken;B.alsDomain=this.alsDomain3p}B.clientXd3=this.clientXd3;B.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(B.authUser=this.authUser);this.bucket!==void 0&&(B.bucket=this.bucket);this.completionUrl!==void 0&&(B.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(B.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(B.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(B.locale=this.locale);B.loggerType=this.loggerType;B.clientEnvironment=this.clientEnvironment;B.colorScheme=this.colorScheme;B.showCloseOption=this.showCloseOption;return B};var Nw=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Nw,_.qS);var j7n=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(j7n,_.qS);var Us6=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Us6,_.qS);var yp=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(yp,_.qS);var NLe=function(B){return _.LU(B,1)};var GPz=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(GPz,_.qS);var t6N=_.oa(GPz),GN=[1,2,3,4,5];var Xw2=function(B){try{return t6N(B)}catch(R){return null}},yke=function(){},pwN=function(B,R){switch(_.fU(R,GN)){case 4:return(R=_.I6(R,Us6,4,GN))&&B.logStateTransition(_.LU(R,1)),!0;
case 5:return(R=_.I6(R,j7n,5,GN))&&B.logInternalEvent(_.LU(R,1)),!0}return!1},Who=function(B){switch(B){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Ym(B)}};var V6e=function(B,R){var V=this;this.validator=B;this.messageListener=R;this.dismissCallback=function(){Sye(V,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17037_receiveMessage=function(e){e.type==="message"&&(e=e.event_,e!==null&&(new URL(V.iframe.src)).origin===e.origin&&V.validator(e.data,e.origin)&&!V.messageListener(e.data)&&(V.JSC$17037_resolveCb!==void 0&&V.JSC$17037_resolveCb(e.data),Hwi(V)))}},hWi=function(B,R,V){B.uiHandler!==void 0&&Sye(B,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(e,X){B.JSC$17037_resolveCb=e;B.JSC$17037_rejectCb=X;B.iframe=document.createElement("iframe");_.wc(B.iframe,R);B.uiHandler=V.displayContent(B.iframe,B.dismissCallback);_.G2(window,"message",B.JSC$17037_receiveMessage,!1,B)})},Sye=function(B,R){B.JSC$17037_rejectCb!==void 0&&B.JSC$17037_rejectCb(R);
Hwi(B)},Hwi=function(B){B.uiHandler!==void 0&&B.uiHandler.hideContent();
_.SI(window,"message",B.JSC$17037_receiveMessage,!1,B);B.JSC$17037_resolveCb=void 0;B.JSC$17037_rejectCb=void 0;B.uiHandler=void 0;B.iframe=void 0};var MB4=function(B){if(B===2){var R;B=((R=window)==null?0:R.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return B},Yqn=function(B){B=MB4(B);
switch(B){case 0:return"light";case 1:return"dark";default:_.Ym(B)}};var eW4=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),kPe=function(B,R){this.JSC$17049_linkingSession=B;this.noticeConfig=R;this.displayInfoMap=new Map;var V=new Map;if(_.SY(this.JSC$17049_linkingSession,zwz,7))for(B=_.OB(this.JSC$17049_linkingSession,zwz,7),B=_.Oh(B,lEi,1,_.oI()),B=_.h(B),R=B.next();!R.done;R=B.next())R=R.value,V.set(_.LU(R,1),_.AIN(_.OB(R,_.T5u,3)));if(V.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){R=this.noticeConfig.enabledDataUsageNoticeUis;B=R.has(0)?V.get(1):void 0;R=R.has(1)?V.get(2):void 0;V=B!==void 0&&R!==void 0?V.get(3):void 0;var e=this.noticeConfig.nestedOrigins;var X=new GPz;var Y=new Nw;X=_.Vm(X,2,GN,Y);Y=new GPz;var t=new Nw;Y=_.Vm(Y,3,GN,t);t=[];B!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:B,lastEvent:X,nestedOrigins:e}]),t.push({trustedUrl:B,lastEvent:X,nestedOrigins:e}));R!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:R,lastEvent:Y,nestedOrigins:e}]),t.push({trustedUrl:R,lastEvent:Y,nestedOrigins:e}));V!==void 0?this.displayInfoMap.set(3,[{trustedUrl:V,lastEvent:Y,nestedOrigins:e}]):this.displayInfoMap.set(3,t)}};var Dsn=function(B){var R=new Yyj;this.galService=B;this.galCache=R};
Dsn.prototype.getLink=function(B){var R=B.serviceId;var V=B.scopes;var e=B.capabilities;var X=B.linkName;var Y=this,t;return _.W(function(b){if(e!==void 0&&V!==void 0)throw Error("Uj");t=tBe(Y.galCache,R,V,e,X);return t!==null?b.return(t):b.return(Y.galService.getLink({serviceId:R,sessionId:Math.floor(Math.random()*2147483648),scopes:V,capabilities:e,linkName:X}).then(function(J){J=NBU(J);var G=Y.galCache;G.storage.has(R)?G.storage.get(R).push(J):G.storage.set(R,[J]);return J}))})};
Dsn.prototype.deleteLink=function(B,R,V){var e=this;return _.W(function(X){W24(e.galCache,B,V);return X.return(e.galService.deleteLink({serviceId:B,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:R,linkName:V}).then(function(){return!0}))})};var ldi=function(B,R){var V=this;this.validator=B;this.msgHandler=R;this.closedPopupTimeout=this.JSC$17071_rejectCb=this.JSC$17071_resolveCb=this.popup=null;this.JSC$17071_receiveMessage=function(e){if(e!==null&&(e=e.event_,e.source===V.popup)){var X=e.data;if(V.validator(X,e.origin)){var Y;(Y=V.msgHandler)!=null&&Y.call(V,X)||(V.JSC$17071_resolveCb!==null&&V.JSC$17071_resolveCb(X),fdi(V))}}}};
ldi.prototype.open=function(B,R){var V=this;this.popup!==null&&zu4(this);return new Promise(function(e,X){V.JSC$17071_resolveCb=e;V.JSC$17071_rejectCb=X;V.popup=_.xq(window,B,"",R);_.G2(window,"message",V.JSC$17071_receiveMessage,!1,V);ad7(V)})};
var zu4=function(B,R){B.JSC$17071_rejectCb!==null&&B.JSC$17071_rejectCb(R);fdi(B)},fdi=function(B){B.closedPopupTimeout&&(B.closedPopupTimeout.cancel(),B.closedPopupTimeout=null);
B.popup&&B.popup.close();_.SI(window,"message",B.JSC$17071_receiveMessage,!1,B);B.popup=null;B.JSC$17071_resolveCb=null;B.JSC$17071_rejectCb=null},ad7=function(B){B.closedPopupTimeout=_.Jq2(100).then(function(){B.popup?B.popup.closed?dsn(B):ad7(B):zu4(B,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},dsn=function(B){B.closedPopupTimeout=_.Jq2(100).then(function(){zu4(B,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var wI7=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),TL4=function(B,R,V,e,X,Y,t,b,J,G){var y=this;this.serviceId=B;this.sessionId=R;this.galService=V;this.oauthDetails=e;this.galLogger=X;this.interactionMode=Y;this.redirectServiceUrl=t;this.consentLanguageKeys=b;this.dynamicUrlParameters=J;this.partnerConfigMinReadTimestamp=G;this.started=!1;this.JSC$17077_dataValidator=function(S,
M){var f=wI7.has(M);f||y.redirectServiceUrl===void 0||(f=y.redirectServiceUrl===M);return f?S.sentinel==="gdi":!1}};
TL4.prototype.complete=function(){var B=this,R;return _.W(function(V){if(B.interactionMode!==1)return V.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));R=HV.getRedirectStateFromUri();return R===null?V.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):V.return(xsU(B,R))})};
TL4.prototype.start=function(){var B=this,R;return _.W(function(V){if(B.started)return V.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.xU(B.oauthDetails,1))return V.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(B.interactionMode===1)return HV.setLocation(_.xU(B.oauthDetails,1)),V.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));B.started=!0;B.galLogger.logStateTransition(5);
R=HV.getPostMessagePopup(B.JSC$17077_dataValidator);return V.return(R.open(_.xU(B.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(e){B.started=!1;var X=B.galLogger;if((e==null?void 0:e.error)!==void 0)throw X.logInternalEvent(59),Error("Vj");if((e==null?void 0:e.redirect_state)===void 0)throw X.logInternalEvent(131),Error("Wj");return xsU(B,e.redirect_state)}).catch(function(e){B.started=
!1;
return e.errorCode!==void 0?{statusCode:e.errorCode,statusMessage:e.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var xsU=function(B,R){return _.W(function(V){return V.return(L2z(B.galService,{serviceId:B.serviceId,sessionId:B.sessionId,dynamicUrlParameters:B.dynamicUrlParameters,redirectState:R,consentLanguageKeys:B.consentLanguageKeys,partnerConfigMinReadTimestamp:B.partnerConfigMinReadTimestamp}).then(function(e){var X={statusCode:1,link:NBU(e.getLink())};VbU(_.M6(e,3))!==void 0&&(X.callerState=VbU(_.M6(e,3)));B.galLogger.logInternalEvent(134);return X}))})},HV={getPostMessagePopup:function(B){return new ldi(B)},
getRedirectStateFromUri:function(){var B=_.q2(HV.getLocation()).fragment_;return(new _.VZ(B)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(B){_.s8(window.location,_.ym(B))},
createOAuthFlow:function(B,R){return new TL4(B.serviceId,B.sessionId,B.galService,R,B.galLogger,B.interactionMode,B.redirectServiceUrl,B.consentLanguageKeys,B.dynamicUrlParameters,B.partnerConfigMinReadTimestamp)}};var v16=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(v16,_.qS);var K22=_.oa(v16);var Idm=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),E1n=function(B,R,V,e,X,Y,t,b,J){var G=this;this.serviceId=B;this.sessionId=R;this.galService=V;this.gsiWebFlowDetails=e;this.colorScheme=X;this.showCloseOption=Y;this.galLogger=t;this.interactionMode=b;this.redirectServiceUrl=J;this.started=!1;this.JSC$17089_dataValidator=function(y,S){var M=Idm.has(S);M||G.redirectServiceUrl===
void 0||(M=G.redirectServiceUrl===S);return M?y.sentinel==="gal":!1};
this.logEventProcessor=function(y){return y.result?(y=Xw2(y.result))?pwN(G.galLogger,y):!1:!1}};
E1n.prototype.complete=function(){var B=this,R,V;return _.W(function(e){if(B.interactionMode!==1)return e.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));R=Mw.getRedirectStateFromUri();if(R===void 0)return B.galLogger.JSC$17029_logErrorEvent(131),e.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return V=Q7m(B,R),e.return(qyn(B,V))}catch(X){return e.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
E1n.prototype.start=function(){var B=this,R;return _.W(function(V){if(B.started)return V.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.xU(B.gsiWebFlowDetails,1))return V.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(B.interactionMode===1)return Mw.setLocation(ckn(B,_.xU(B.gsiWebFlowDetails,1))),V.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
B.started=!0;R=Mw.getPostMessagePopup(B.JSC$17089_dataValidator,B.logEventProcessor);return V.return(R.open(ckn(B,_.xU(B.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(e){B.started=!1;if((e==null?void 0:e.result)===void 0)throw B.galLogger.JSC$17029_logErrorEvent(131),Error("Wj");e=Q7m(B,e.result);return qyn(B,e)}).catch(function(e){B.started=!1;
return e.errorCode!==void 0?{statusCode:e.errorCode,statusMessage:e.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var ckn=function(B,R){B=["result_channel",B.interactionMode===1?"2":"1","color_scheme",Yqn(B.colorScheme),"show_close_option",B.showCloseOption];return wr6(R,B)},qyn=function(B,R){if(R!==null&&_.SY(R,yp,2)){var V,e=R==null?void 0:(V=_.OB(R,yp,2))==null?void 0:_.LU(V,2);
e&&B.galLogger.JSC$17029_logErrorEvent(Who(e));return NLe(_.OB(R,yp,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 B.galService.getLink({serviceId:B.serviceId,sessionId:B.sessionId,consistencyKey:_.xU(R,1)}).then(function(X){X=NBU(X);B.galLogger.logInternalEvent(134);return{statusCode:1,link:X}})},Q7m=function(B,R){R=K22(R);
if(!_.SY(R,yp,2)&&_.xU(R,1)==="")throw B.galLogger.JSC$17029_logErrorEvent(5),Error("Xj");return R},Mw={getPostMessagePopup:function(B,R){return new ldi(B,R)},
getRedirectStateFromUri:function(){return _.cn(_.q2(Mw.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(B){_.s8(window.location,_.ym(B))},
createStreamlinedFlow:function(B,R){return new E1n(B.serviceId,B.sessionId,B.galService,R,B.colorScheme,B.showCloseOption,B.galLogger,B.interactionMode,B.redirectServiceUrl)}};var xK7=function(){var B=_.kEA("GAL");this.storage=B?new _.Mn(B):null};var AC=function(){};
_.l(AC,yke);AC.prototype.logStateTransition=function(){};
AC.prototype.logInternalEvent=function(){};
AC.prototype.JSC$17029_logErrorEvent=function(){};var Akz=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(Akz,_.qS);Akz.prototype.getCompletionUrl=function(){return _.xU(this,15)};var iZ=function(B,R,V,e,X,Y){this.serviceId=B;this.environment=R;this.sessionId=V;this.colorSchemeSelected=e;this.colorThemeDisplayed=X;this.JSC$17102_transport=Y;this.currentState=1};
_.l(iZ,yke);iZ.prototype.logStateTransition=function(B){var R=iw6(this);R=_.ou(R,3,this.currentState);R=_.ou(R,1,B);this.currentState=B;B=s_m(1);this.dispatch(R,B)};
iZ.prototype.logInternalEvent=function(B){B=s_m(B);this.dispatch(iw6(this),B)};
iZ.prototype.JSC$17029_logErrorEvent=function(B){var R=iw6(this);R=_.ou(R,1,10);B=s_m(B);this.dispatch(R,B)};
var iw6=function(B){var R=new Akz;R=_.ou(R,1,B.currentState);R=_.bg(R,7,B.serviceId);var V,e;var X=((V=window)==null?0:(e=V.location)==null?0:e.href)?_.q2(window.location.href).JSC$7940_domain_:"NO_PACKAGE_NAME";V=_.bg(R,8,X);V=_.ou(V,6,B.environment);V=_.bg(V,5,"100");V=_.ou(V,11,B.colorSchemeSelected);return _.ou(V,12,B.colorThemeDisplayed)};
iZ.prototype.dispatch=function(B,R){R===void 0&&(R=new _.Y3);var V=R;B=B.serialize();V=_.bg(V,8,B);_.H5(V,12,this.sessionId);this.JSC$17102_transport.dispatch(R)};var s7e=function(B,R){this.loggerType=B;this.sessionIndex=R!=null?R:0},F2o;
s7e.prototype.create=function(B,R,V,e,X){switch(this.loggerType){case 0:return new AC;case 1:return F2o||(F2o=(new _.h4(555,this.sessionIndex.toString())).build()),new iZ(B,R,V,e,X,F2o);default:_.Ym(this.loggerType,"unknown logger type")}};var ku=[6,2,3,1],E_2=new Map([[4,1],[1,6],[2,2],[3,3]]),Hne={statusCode:7,statusMessage:"Failed to create flow object"},ww6=function(B,R,V,e,X,Y,t,b,J,G){this.serviceId=B;this.sessionId=R;this.config=V;this.galService=e;this.JSC$17109_linkingSession=X;this.googleScopes=Y;this.callerState=t;this.consentLanguageKeys=b;this.dynamicUrlParameters=J;this.partnerConfigMinReadTimestamp=G;this.currentFlow=0;e=this.JSC$17109_linkingSession;X=new Set;_.SY(e,lpm,1)&&X.add(1);_.SY(e,doi,2)&&_.SY(e,zW7,6)&&X.add(2);
_.SY(e,aE4,3)&&_.SY(e,zW7,6)&&X.add(3);_.SY(e,fE6,4)&&X.add(6);this.supportedFlows=X;e=V.loggerType;X=V.clientEnvironment;a:{Y=V.colorScheme;switch(Y){case 0:Y=1;break a;case 1:Y=2;break a;case 2:Y=3;break a;default:_.Ym(Y)}Y=void 0}a:{t=V.colorScheme;t=MB4(t);switch(t){case 0:t=1;break a;case 1:t=2;break a;default:_.Ym(t)}t=void 0}this.galLogger=(new s7e(e,V.authUser)).create(B,X,R,Y,t)},g17=function(B){return new Promise(function(R){var V,e,X,Y,t,b,J,G,y,S;
return _.W(function(M){switch(M.nextAddress){case 1:V=ap4(B.currentFlow,B.supportedFlows),e=!1,X=new kPe(B.JSC$17109_linkingSession,B.config.dataUsageNoticeConfig);case 2:if(V===void 0){M.jumpTo(4);break}_.en(M,5);var f=X,z=V,T=void 0;e?z===1&&(T=f.displayInfoMap.get(2)):z===2||z===3?T=f.displayInfoMap.get(1):z===1&&(T=f.displayInfoMap.get(3));Y=T?T:[];t=B.consentLanguageKeys;b=_.h(Y);J=b.next();case 7:if(J.done)return B.currentFlow=V,_.U(M,k8j(rkn(B,t)),11);G=J.value;return _.U(M,bnm(G,B.config.dataUsageNoticeConfig.uiAdapter,
B.config.colorScheme,B.galLogger),10);case 10:y=M.yieldResult;if(y.statusCode!==1)return Lhe(B.serviceId),B.currentFlow=0,R(Sd({statusCode:y.statusCode,statusMessage:y.statusMessage},B.callerState)),M.return();y.consentLanguageKeys!==void 0&&(t=y.consentLanguageKeys);J=b.next();M.jumpTo(7);break;case 11:S=M.yieldResult;if(S.statusCode!==10)return S.statusCode!==6&&(Lhe(B.serviceId),B.currentFlow=0),S.statusCode!==1&&B.callerState!==void 0&&(S.callerState=B.callerState),R(S),M.return();_.c8(M,6);break;
case 5:_.WR(M);case 6:V=ap4(B.currentFlow,B.supportedFlows);e=!0;M.jumpTo(2);break;case 4:Lhe(B.serviceId),B.currentFlow=0,R(Sd({statusCode:12,statusMessage:"Linking failed"},B.callerState)),_.b3(M)}})})},Khm=function(B,R,V){B.currentFlow=R;
return DKn(rkn(B,V)).then(function(e){return e.statusCode===10&&B.config.interactionMode===1&&ap4(B.currentFlow,B.supportedFlows)!==void 0?g17(B):e})},rkn=function(B,R){return{flowParams:{serviceId:B.serviceId,
sessionId:B.sessionId,galService:B.galService,galLogger:B.galLogger,interactionMode:B.config.interactionMode,redirectServiceUrl:B.config.redirectServiceUrl,colorScheme:B.config.colorScheme,consentLanguageKeys:R,dynamicUrlParameters:B.dynamicUrlParameters,showCloseOption:B.config.showCloseOption,partnerConfigMinReadTimestamp:B.partnerConfigMinReadTimestamp},currentFlow:B.currentFlow,config:B.config,session:B.JSC$17109_linkingSession,googleScopes:B.googleScopes,callerState:B.callerState}};var Znj=function(B,R){this.config=B;this.galService=R.getService();this.JSC$17122_galRepository=R.JSC$17159_galRepository};
Znj.prototype.getLink=function(B,R){return Zwi(this,B,R)};
var Zwi=function(B,R,V){return B.JSC$17122_galRepository.getLink({serviceId:R,scopes:void 0,capabilities:void 0,linkName:V}).then(function(e){return{statusCode:1,link:e}}).catch(function(e){return{statusCode:QA2(e.code),
statusMessage:e.message}})};
Znj.prototype.deleteLink=function(B,R){return this.JSC$17122_galRepository.deleteLink(B,this.config.accountLinkingEntryPoint,R).then(function(){return{statusCode:1}}).catch(function(V){return{statusCode:QA2(V.code),
statusMessage:V.message}})};
Znj.prototype.startLinkingSession=function(B){var R=B.serviceId;var V=B.sessionId;return TB4({serviceId:R,sessionId:V!==void 0?V:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:B.loginHint,callerState:B.callerState,consentLanguageKeys:B.consentLanguageKeys,linkName:B.linkName,dynamicUrlParameters:B.dynamicUrlParameters,partnerConfigMinReadTimestamp:B.partnerConfigMinReadTimestamp})};var qqo=null,sA7=new WeakMap;var mso=function(){};
mso.prototype.send=function(B,R){g_U(B);return this.makeRequest(B).then(function(V){if(R){var e=new R;if(V!=null){if(R==null)throw Error("Zj");new R;throw Error("ak");}V=e}return V})};var $sN=function(B,R,V,e,X){this.gapiUrl=B;this.gapiKey=R;this.gapiConfigUpdates=V||{};this.gapiAuthParams=e||{};this.defaultApiId=X};
_.l($sN,mso);var PHn=function(B){return Ame().then(function(R){R=R||window.gapi;CHU(B,R);return rmz(R,{apiKey:B.gapiKey,clientId:B.gapiAuthParams.clientId,scope:B.gapiAuthParams.scope,hostedDomain:B.gapiAuthParams.hostedDomain,fetchBasicProfile:B.gapiAuthParams.fetchBasicProfile}).then(function(){return R})})};
$sN.prototype.makeRequest=function(B){var R=this;return PHn(this).then(function(V){return _.W(function(e){if(e.nextAddress==1)return R.gapiAuthParams.minAuthTokenTimeRemaining===void 0?e.jumpTo(2):_.U(e,Fhj(V,R.gapiAuthParams.minAuthTokenTimeRemaining),2);CHU(R,V);return e.return(n1o(V.client.request({root:R.gapiUrl,path:B.path,method:B.httpMethod,body:B.body,params:B.queryParams,headers:B.headers,authType:B.authType,apiId:B.apiId||R.defaultApiId})))})})};
var n1o=function(B){return new Promise(function(R,V){B.then(function(e){R(e.result===!1&&e.body!=null?{data:e.body}:e.result)},function(e){V(e.result===!1&&e.body!=null?{data:e.body}:e.result)})})},CHU=function(B,R){for(var V in B.gapiConfigUpdates)if(B.gapiConfigUpdates.hasOwnProperty(V)){var e=R,X=V,Y=B.gapiConfigUpdates[V],t=e.config.get(X);
Y!==t&&e.config.update(X,Y)}};
$sN.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var sv=function(B,R,V,e,X,Y,t,b){this.apiKey=R;this.authUser=V;this.oauthToken=e;this.bucket=X;this.locale=t;this.galSdkEventHandler=b;if(e===void 0){if(R===void 0)throw Error("bk");this.requestService=new $sN(B,R,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":Y===void 0||Y===!1,"client/xd3":Y===!0})}this.galServiceClient=new XIo(B)};
sv.prototype.deleteLink=function(B){var R=B.serviceId;var V=B.sessionId;var e=B.accountLinkingEntryPoint;var X=B.linkName;var Y=this,t;return _.W(function(b){var J=(new fM).setHeader(F$(Y,V));var G=uHz({serviceId:R,linkName:X});J=_.Ra(J,2,G);t=_.QG(J,3,e);return b.return(Y.makeRequest(Y.galServiceClient.deleteLink,t,[1,3],[2,4]))})};
var L2z=function(B,R){var V=R.serviceId;var e=R.sessionId;var X=R.dynamicUrlParameters;var Y=R.redirectState;var t=R.consentLanguageKeys;var b=R.partnerConfigMinReadTimestamp;var J;return _.W(function(G){var y=(new zd).setHeader(F$(B,e,X));y=_.oH(y,2,V);J=_.oH(y,4,Y);t!==void 0&&_.oH(J,5,t);b!==void 0&&_.Ra(J,6,b);return G.return(B.makeRequest(B.galServiceClient.JSC$17008_finishOAuth,J,[1,3],[2,4]))})};
sv.prototype.getLink=function(B){var R=B.serviceId;var V=B.sessionId;var e=B.scopes;var X=B.capabilities;var Y=B.consistencyKey;var t=B.linkName;var b=this,J;return _.W(function(G){var y=(new at).setHeader(F$(b,V)),S=uHz({serviceId:R,scopes:e,capabilities:X,linkName:t});J=_.Ra(y,2,S);Y!==void 0&&(y=WJ6(),y=_.oH(y,2,Y),_.Ra(J,3,y));return G.return(b.makeRequest(b.galServiceClient.getLink,J,[1,3],[2,4]))})};
var fpr=function(B,R){var V=R.serviceId;var e=R.sessionId;var X=R.googleScopes;var Y=R.consistencyKey;var t;return _.W(function(b){var J=(new lZ).setHeader(F$(B,e));J=_.oH(J,2,V);var G=Array.from(X.values());J=_.ff(J,3,G,_.Qn);G=WJ6();G=_.oH(G,2,Y);t=_.Ra(J,4,G);return b.return(B.makeRequest(B.galServiceClient.JSC$17008_depositGoogleCredential,t,[1,3],[2,4]))})};
sv.prototype.startLinkingSession=function(B){var R=B.serviceId;var V=B.sessionId;var e=B.scopes;var X=B.capabilities;var Y=B.loginHint;var t=B.supportedFlows;var b=B.completionUrl;var J=B.usePingPong;var G=B.twoWayLinking;var y=B.accountLinkingEntryPoint;var S=B.callerState;var M=B.consentLanguageKeys;var f=B.googleScopes;var z=B.dataUsageNoticeConfig;var T=B.linkName;var L=B.dynamicUrlParameters;var Q=B.partnerConfigMinReadTimestamp;var q=this,m,g;return _.W(function(Vu){if(X!==void 0&&e!==void 0)throw Error("Uj");
var n=(new d8).setHeader(F$(q,V,L));m=_.oH(n,2,R);T!==void 0&&_.oH(m,14,T);if(X!==void 0){n=m;var Yd=Array.from(X.values());_.ff(n,5,Yd,_.Qn)}else e!==void 0&&(n=m,Yd=Array.from(e.values()),_.ff(n,3,Yd,_.Qn));b!==void 0&&_.oH(m,6,b);J!==void 0&&_.zE(m,15,J);t!==void 0&&(n=m,Yd=Array.from(t.values()),_.ff(n,4,Yd,_.Mj));if(G!==void 0){if(G&&(!f||f.size===0))throw Error("ck");_.zE(m,8,G)}y!==void 0&&_.QG(m,9,y);Y!==void 0&&_.oH(m,13,Y);S!==void 0&&(n=m,Yd=(new TextEncoder).encode(S),_.lI(n,12,_.Fa(Yd,
!1),_.i_()));M!==void 0&&_.oH(m,16,M);Q!==void 0&&_.Ra(m,18,Q);if(z!==void 0&&z.size>0||f!==void 0&&f.size>0)g=new Tbj,f!==void 0&&f.size>0&&(n=g,Yd=Array.from(f.values()),_.ff(n,1,Yd,_.Qn)),z!==void 0&&(z.has(0)&&_.Y45(g,2,_.Mj,1,_.km),z.has(1)&&_.Y45(g,2,_.Mj,2,_.km)),_.Ra(m,17,g);return Vu.return(q.makeRequest(q.galServiceClient.startLinkingSession,m,[1],[2]))})};
sv.prototype.getMetadata=function(){var B=this,R,V,e;return _.W(function(X){if(X.nextAddress==1)return R={},B.requestService?_.U(X,PHn(B.requestService),3):(R.Authorization="Bearer "+B.oauthToken,X.jumpTo(2));X.nextAddress!=2&&(V=X.yieldResult,R["X-Goog-Api-Key"]=B.apiKey,R["X-Goog-AuthUser"]=B.authUser!==void 0?B.authUser.toString():"0",(e=V.auth.getAuthHeaderValueForFirstParty([]))&&(R.Authorization=e));B.locale&&(R["accept-language"]=B.locale);return X.return(R)})};
sv.prototype.makeRequest=function(B,R,V,e){var X=this,Y;return _.W(function(t){if(t.nextAddress==1)return _.U(t,X.getMetadata(),2);Y=t.yieldResult;Owe(X,V);return t.return(B.bind(X.galServiceClient)(R,Y).finally(function(){Owe(X,e)}))})};
var Owe=function(B,R){B.galSdkEventHandler!==void 0&&R.forEach(function(V){B.galSdkEventHandler.onEvent(V)})},F$=function(B,R,V){var e=new ML;
R=_.lI(e,2,_.D7(R),0);R=_.QG(R,5,3);V=_.ff(R,8,V,_.Qn);B.bucket!==void 0&&_.oH(V,1,B.bucket);return V},uHz=function(B){var R=B.serviceId;
var V=B.scopes;var e=B.capabilities;B=B.linkName;if(e!==void 0&&V!==void 0)throw Error("Uj");var X=new hw4;R=_.oH(X,1,R);e!==void 0?(V=Array.from(e.values()),_.ff(R,5,V,_.Qn)):V!==void 0&&(V=Array.from(V.values()),_.ff(R,3,V,_.Qn));B!==void 0&&_.oH(R,6,B);return R};var mKz=function(B){this.galService=new sv(B.alsDomain,B.apiKey,B.authUser,B.oauthToken,B.bucket,B.clientXd3,B.locale,B.galSdkEventHandler);this.JSC$17159_galRepository=new Dsn(this.galService)};
mKz.prototype.getService=function(){return this.galService};var oQm=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(oQm,_.qS);var B2n=function(B){var R=new oQm;return _.ou(R,1,B)};
oQm.prototype.setErrorMessage=function(B){return _.bg(this,2,B)};var Rxn=[0,_.Pb,_.mg,_.Pb];var r8=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(r8,_.qS);var VVU=[0,[1,2,3],_.CU,[0,Gj7,HDU,-1],_.CU,[0,Sso,-1],_.pid];var ex4=[0,_.gX,1,_.Pb,_.mg,-1,1,_.ttS,_.rX,_.Pb,-1,VVU];var XSU=[0,_.Pb,[0,_.ttS,_.rX,[0,_.mg]],_.Z4,[0,_.Pb,-1]];var X$=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(X$,_.qS);var pS6=[0,_.mg,_.Pb,-2,_.gX,_.Pb,_.gX,_.Pb,-2,1,_.Z4];var YT2=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(YT2,_.qS);var hx4=[0,_.gX];var tVz=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(tVz,_.qS);var WN2=[0,_.Pb,XSU,hx4,pS6,ex4];var DUr=_.uI(tVz,WN2);var bi2=[0,pIm];var wcN=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(wcN,_.qS);var Jn6=[0,[1,3],zq4,_.Pb,zq4];var V3=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(V3,_.qS);var jHr=[0,_.Pb];var UlN=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(UlN,_.qS);var e7=function(B){return _.I6(B,oQm,2,Rt)},N26=function(B){var R=new UlN;
return _.Vm(R,2,Rt,B)},Rt=[1,
2];var GT6=[0,Rt,_.CU,jHr,_.CU,Rxn,_.$U,Jn6,1,_.Pb,bi2];var yne=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(yne,_.qS);var Hi4=function(B){var R=new yne;return _.Vm(R,3,STe,B)},STe=[2,
3];var g8=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(g8,_.qS);var MVU=function(B,R){return _.Ra(B,2,R)},kTi=function(B,R){return _.Ra(B,8,R)},Dl2=function(B,R){return _.Ra(B,3,R)};var lon=[0,_.Pb,GT6,WN2,_.jma,[0,[5,6],[0,_.Pb,-2],[0,_.gX,_.Pb,_.mg],[0,VVU],[0,_.mg,_.Pb,-1,_.JDJ,_.Pb],_.CU,[0,[0,_.gX],_.Pb,-1],_.CU,[0,[3,4],_.Pb,-1,_.CU,[0,[0,_.Pb,_.Z4]],_.CU,[0,[0,[0,[1,2],_.CU,[0],_.CU,[0]]]]]],_.jma,-1,[0,STe,_.Pb,_.CU,jHr,_.CU,Rxn,_.$U,Jn6,[0,pIm]]];var zx6=_.uI(g8,lon),ao2=_.OY(lon);var dlo=function(){_.Hn.call(this)};
_.l(dlo,_.Hn);dlo.prototype.init=function(){};
new dlo;var wS2=_.$Q(["data-"]),T2e=_.$Q(["aria-"]),xlz=_.$Q(["aria-"]),ZL=function(B,R){this.isLatencyMeasurementExperiment=B===void 0?!1:B;this.enableDialogA11yFix=R===void 0?!1:R;this.JSC$17188_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.q44(_.R5.location.href)},lqe=function(B,R){B.onConsentPrimitiveShownCallback=R},LNN=function(B,R){return B.overriddenIframeLoadTimeout?B.overriddenIframeLoadTimeout:R!==void 0?R:5E3},aqm=function(B){if(B.prewarmPromise!==void 0)return B.prewarmPromise;
B.prewarmPromise=new Promise(function(R,V){mj(B,1);vQN(B,KNe(B,!0),Ioi(B));B.iframe?B.prewarmChannel||EQz(B,B.iframe,R):V(Error("dk"))});
B.prewarmPromise.finally(function(){B.prewarmPromise=void 0});
return B.prewarmPromise};
ZL.prototype.showPrimitive=function(){var B=this;if(this.consentPromise!==void 0)return this.consentPromise;var R=Date.now();QHU(this,R);this.consentPromise=new Promise(function(V,e){mj(B,0,R);var X=B.isDarkTheme();B.isLatencyMeasurementExperiment||B.initialLoadingStrategy===1||B.initialLoadingStrategy===2||(B.loadingBar||(B.loadingBar=n_n(getComputedStyle(document.body).direction==="rtl",X),B.loadingBar.style.position="fixed",B.loadingBar.style.zIndex="15000"),document.body.appendChild(B.loadingBar));
vQN(B,KNe(B),Ioi(B));B.iframe?B.channel||qT6(B,B.iframe,V,e):(cnm(B),e(Error("dk")))});
this.consentPromise.finally(function(){B.consentPromise=void 0});
return this.consentPromise};
var qT6=function(B,R,V,e){var X,Y;_.W(function(t){switch(t.nextAddress){case 1:mj(B,3);X=!1;setTimeout(function(){if(!X){cnm(B);Ann(B);ii4(B);var b=B2n(7).setErrorMessage("Timeout connecting to iframe");V(kTi(MVU(new g8,N26(b)),Hi4(b)))}},LNN(B,sHU(B)));
if(!B.prewarmPromise){t.jumpTo(2);break}_.en(t,3);return _.U(t,B.prewarmPromise,5);case 5:_.c8(t,2);break;case 3:_.WR(t),Y=B2n(4).setErrorMessage("Error while prewarming."),V(kTi(MVU(new g8,N26(Y)),Hi4(Y)));case 2:B.prewarmChannel&&B.prewarmChannel.send(ao2(Dl2(new g8,B.consentPrimitiveRequest))),B.channel=_.OD({destination:B.JSC$17188_win,iframe:R,origin:FN4(B),channelName:"cpw",onEstablished:function(){X=!0;cnm(B);B.isLatencyMeasurementExperiment||(B.JSC$17188_previousBodyOverflow=document.body.style.overflow,
B.JSC$17188_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,B.JSC$17188_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",B.enableDialogA11yFix&&window.addEventListener("blur",B.focusChangeListener));var b=B.iframe;b.style.bottom="0";b.style.position="fixed";b.style.right="0";b.style.border="none";b.style.left="0";b.style.top=
"0";b.style.zIndex="5000";b.style.pointerEvents="";b.style.visibility="";B.initialLoadingStrategy===2||B.initialLoadingStrategy===3?mj(B,4):mj(B,6);var J;(J=B.onConsentPrimitiveShownCallback)==null||J.call(B)},
onMessage:function(b){b=zx6(b.data);switch(_.LU(b,1)){case 1:Ann(B);var J=uin(_.OB(b,_.iH,7));J&&(B.initialLoadingStrategy!==2&&B.initialLoadingStrategy!==3||mj(B,6,J),mj(B,5,J));if(J=uin(_.OB(b,_.iH,6)))mj(B,7,J),mj(B,8);var G,y;((G=_.OB(b,UlN,2))==null?void 0:_.fU(G,Rt))!==0&&((y=_.OB(b,yne,8))==null?void 0:_.fU(y,STe))!==0||e(Error("ek"));V(b);break;case 2:ii4(B)}}}),_.b3(t)}})},EQz=function(B,R,V){B.prewarmChannel=_.OD({destination:B.JSC$17188_win,
iframe:R,origin:FN4(B),channelName:"pwcp",onEstablished:function(){mj(B,2);V()}})},FN4=function(B){var R=_.hR(B.src).toString();
return R&&R.indexOf("://")<0&&R.indexOf("//")!==0?B.origin:_.q44(R)},KNe=function(B,R){R=R===void 0?!1:R;
var V,e=new Map([["origin",B.origin],["hl",(V=rn4(B))!=null?V:null]]);R&&e.set("pw","1");R=_.h([["cpr",B.consentPrimitiveRequest.serialize()]]);for(V=R.next();!V.done;V=R.next()){var X=_.h(V.value);V=X.next().value;X=X.next().value;e.set(V,X)}B.isDarkTheme()&&e.set("color_scheme","dark");return _.O0(B.src,e)},cnm=function(B){B.isLatencyMeasurementExperiment||B.loadingBar&&document.body.removeChild(B.loadingBar)};
ZL.prototype.getSrc=function(){var B=_.mn(this.origin),R;var V=(R=_.OB(this.consentPrimitiveRequest,YT2,3))==null?void 0:_.Bn(R,1);R="consent.google.com";V=V?"/u/"+encodeURIComponent(V.toString()):"";(B==null?0:B.endsWith("youtube.com"))?R="consent.youtube.com":(B=B==null?void 0:B.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(R="consent.google."+((B[1]?"co.":"")+encodeURIComponent(B[2])));return _.Yq("https://"+R+"/signedin"+V+"/landing")};
var vQN=function(B,R,V){B.iframe||(B.iframe=document.createElement("iframe"),B.iframe.style.width="100%",B.iframe.style.height="100%",V!==112496729&&(B.iframe.style.colorScheme="auto"),B.isLatencyMeasurementExperiment&&(B.iframe.style.display="none"),_.wc(B.iframe,R),B.iframe.setAttribute("jsname","C5o1O"),gQ4(B.iframe),document.body.appendChild(B.iframe))},gQ4=function(B){B.style.bottom="-200vh";
B.style.position="fixed";B.style.right="-200vw";B.style.border="";B.style.left="";B.style.top="";B.style.zIndex="";B.style.pointerEvents="none";B.style.visibility="hidden"},Ann=function(B){B.iframe&&(B.isLatencyMeasurementExperiment||(B.JSC$17188_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=B.JSC$17188_previousHtmlOverscroll),B.JSC$17188_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=B.JSC$17188_previousBodyOverscroll),B.JSC$17188_previousBodyOverflow!==
void 0&&(document.body.style.overflow=B.JSC$17188_previousBodyOverflow),B.enableDialogA11yFix&&Zi4(B,!1)),gQ4(B.iframe))};
ZL.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(Zi4(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var Zi4=function(B,R){var V,e,X=(V=B.iframe)==null?void 0:(e=V.parentElement)==null?void 0:e.children;if(X)for(V=0;V<X.length;V++)e=X[V],e!==B.iframe&&(R?(e.hasAttribute("aria-hidden")&&_.cB([_.PR(wS2)],e,"data-old-aria-hidden",e.getAttribute("aria-hidden")),_.cB([_.PR(T2e)],e,"aria-hidden","true")):(e.removeAttribute("aria-hidden"),e.hasAttribute("data-old-aria-hidden")&&(_.cB([_.PR(xlz)],e,"aria-hidden",e.getAttribute("data-old-aria-hidden")),e.removeAttribute("data-old-aria-hidden"))))},mj=function(B,
R,V){var e;
(e=B.latencyCallback)==null||e.call(B,{latencyType:R,timestampEpochMillis:V!=null?V:Date.now()})};var mlj=function(B,R,V){ZL.call(this,R,V===void 0?!1:V);this.consentPrimitiveRequest=B;B=rn4(this);if(!(0,_.Xjo)(B))throw Error("H``"+String(B));this.src=this.getSrc();var e;this.initialLoadingStrategy=(e=_.OB(this.consentPrimitiveRequest,X$,4))==null?void 0:_.LU(e,4)},$ln;
_.l(mlj,ZL);var fq4=function(B){var R=_.k("enable_primitive_dialog_aria_hide_siblings");B={request:B,enableDialogA11yFix:R===void 0?!1:R};$ln||($ln=new mlj(B.request,B.isLatencyMeasurementExperiment||_.LU(B.request,1)===2,B.enableDialogA11yFix));return $ln},rn4=function(B){var R;
return(R=_.OB(B.consentPrimitiveRequest,X$,4))==null?void 0:_.xU(R,1)},QHU=function(B,R){if(!_.SY(B.consentPrimitiveRequest,r8,5)){var V=B.consentPrimitiveRequest,e=new r8;
_.Ra(V,5,e)}var X;if((X=_.OB(B.consentPrimitiveRequest,r8,5))==null||_.Jhx(_.yG(X,8))==null){var Y;(Y=_.OB(B.consentPrimitiveRequest,r8,5))!=null&&_.H5(Y,8,R)}},Ioi=function(B){var R;
return(R=_.OB(B.consentPrimitiveRequest,r8,5))==null?void 0:_.Bn(R,1)};
mlj.prototype.isDarkTheme=function(){var B;return((B=_.OB(this.consentPrimitiveRequest,X$,4))==null?void 0:_.LU(B,2))===2};
var sHU=function(B){var R;return((R=_.OB(B.consentPrimitiveRequest,X$,4))==null?void 0:_.Bn(R,5))||void 0},ii4=function(B){B.channel=void 0;
B.prewarmChannel=void 0;B.iframe&&(document.body.contains(B.iframe)&&document.body.removeChild(B.iframe),B.iframe=void 0);$ln=void 0},dUe=function(B){return ZL.prototype.showPrimitive.call(B).then(function(R){return _.OB(R,UlN,2)})};for(var $K={},C5e=($K[64]="ma",$K[73]="ogb",$K[89]="cr",$K[21]="test",$K[0]="unkn",$K[137]="con",$K[155]="hl",$K[78]="yt",$K[171]="lp",$K[172]="ap",$K[177]="amo",$K[178]="pqe",$K[74]="gg",$K[1]="gm",$K[140]="am",$K),P54=_.h(Object.keys(C5e)),nQ4=P54.next();!nQ4.done;nQ4=P54.next());var uMo=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(uMo,_.qS);var Oi4=[0,[2,3,4],_.Pb,y3e,zq4,_.pid];var oUn=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(oUn,_.qS);var BXe=_.uI(oUn,[0,lPN,_.mg,_.Pb,_.mg,_.Pb,Oi4]);var RfN=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(RfN,_.qS);RfN.prototype.getCommand=function(){return _.LU(this,1)};
var VY4=function(){var B=new RfN;return _.QG(B,1,0)};var efr=_.OY([0,lPN,_.mg,[0,_.Pb,_.mg,-1]]);var XbU=new _.jI("s"),pbz=new _.jI("t"),YDo=new _.jI("u"),hfN=new _.jI("v"),tYr=function(B,R,V){_.Un.call(this,XbU);this.mediaKey=B;this.photoUrl=R;this.photoSource=V};
_.l(tYr,_.Un);var Wgm=function(){_.Un.call(this,pbz)};
_.l(Wgm,_.Un);var bU2=function(B){B=B===void 0?!1:B;_.Un.call(this,YDo);this.isError=B};
_.l(bU2,_.Un);var Jo7=function(){_.Un.call(this,hfN)};
_.l(Jo7,_.Un);var j64=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,yoe=function(B){if(typeof B=="string"){if(B.charAt(0)==".")return U6N(B.substr(1));if(B.charAt(0)=="["){var R=j64.exec(B);B=B.indexOf("=")==-1?void 0:R[3];return NXU(R[1],B)}return Goz(B)}return B},U6N=function(B){return function(R){return R.getAttribute&&_.A8(R,B)}},NXU=function(B,R){return function(V){return R!==void 0?V.getAttribute&&V.getAttribute(B)==R:V.hasAttribute&&V.hasAttribute(B)}},Goz=function(B){B=B.toUpperCase();
return function(R){return(R=R.tagName)&&R.toUpperCase()==B}},SD6=function(){return!0};var CM=function(B,R){this.JSC$17216_key_=B;this.JSC$17216_value_=R},PX=function(B){throw Error("fk`"+B.JSC$17216_key_);
},HUr=function(B,R){return new TypeError("gk`"+R+"`"+B.JSC$17216_key_+"`"+B.JSC$17216_value_+"`"+typeof B.JSC$17216_value_)};
CM.prototype.string=function(B){if(arguments.length==0)var R=MYz(this);else{var V;R=(V=koe(this))!=null?V:B}return R};
var MYz=function(B){var R=koe(B);R===null&&PX(B);return R},koe=function(B){var R=B.JSC$17216_value_;
if(R==null)return null;if(typeof R==="string")return R;throw HUr(B,"string");};
CM.prototype.bool=function(B){if(arguments.length==0){var R=this.optionalBool();R===null&&PX(this)}else{var V;R=(V=this.optionalBool())!=null?V:B}return R};
CM.prototype.optionalBool=function(){var B=this.JSC$17216_value_;if(B==null)return null;if(typeof B==="boolean")return B;if(typeof B==="string"){B=B.toLowerCase();if(B==="true"||B==="1")return!0;if(B==="false"||B==="0")return!1}throw HUr(this,"boolean");};
CM.prototype.number=function(B){if(arguments.length==0){var R=D64(this);R===null&&PX(this)}else{var V;R=(V=D64(this))!=null?V:B}return R};
var D64=function(B){var R=B.JSC$17216_value_;if(R==null)return null;if(typeof R==="number")return R;if(typeof R==="string"){var V=Number(R);if(!isNaN(V)&&(V!==0||R.trim().length!==0))return V}throw HUr(B,"number");};
CM.prototype.toString=function(){return MYz(this)};
CM.prototype.array=function(B){if(arguments.length==0){var R=f4m(this);R===null&&PX(this);return R}R=f4m(this);return R==null?B:R};
var f4m=function(B){var R=B.JSC$17216_value_;if(R==null)return null;Array.isArray(R)||(typeof R!=="string"?R=[R]:(R=R.trim(),R=R==""?[]:R.split(",").map(function(V){return V.trim()})));
return l4n(B,R)},l4n=function(B,R){var V=B.JSC$17216_key_+"[";
return Array.from(R,function(e,X){return new CM(V+X+"]",e)})};
CM.prototype.object=function(B){var R=this.JSC$17216_value_;if(R==null)return B===void 0&&PX(this),B;if(typeof R==="object"&&R.constructor===Object){B={};var V=this.JSC$17216_key_+".",e;for(e in R)B[e]=new CM(V+e,R[e]);return B}throw HUr(this,"object");};var nM=function(B){this.list_=zfr(B)},zfr=function(B){if(B instanceof nM)B=B.list_;
else if(B[0]instanceof nM){for(var R=new Set,V=0;V<B.length;V++)for(var e=_.h(B[V].list_),X=e.next();!X.done;X=e.next())R.add(X.value);B=R}return[].concat(_.MI(B))};
_.p=nM.prototype;_.p.each=function(B,R,V){((V===void 0?0:V)?Oq4:_.ij)(this.list_,B,R);return this};
_.p.size=function(){return this.list_.length};
_.p.isEmpty=function(){return this.list_.length===0};
_.p.get=function(B){return this.list_[B]||null};
_.p.el=function(){return this.list_[0]||null};
_.p.map=function(B,R){return _.DO(this.list_,B,R)};
_.p.equals=function(B){return this===B||_.Jh(this.list_,B.list_)};
_.p.first=function(){return this.list_.length==0?null:new uZ(this.list_[0])};
_.p.find=function(B){var R=[];this.each(function(V){V=V.querySelectorAll(String(B));for(var e=0;e<V.length;e++)R.push(V[e])});
return new nM(R)};
_.p.parent=function(){var B=[];this.each(function(R){(R=R.parentElement||null)&&!_.gx(B,R)&&B.push(R)});
return new nM(B)};
_.p.children=function(){var B=[];this.each(function(R){R=_.LY(R);for(var V=0;V<R.length;V++)B.push(R[V])});
return new nM(B)};
_.p.filter=function(B){B=_.pU(this.list_,yoe(B));return new nM(B)};
_.p.closest=function(B){var R=[],V=yoe(B),e=function(X){return _.m4(X)&&V(X)};
this.each(function(X){(X=_.xl(X,e,!0))&&!_.gx(R,X)&&R.push(X)});
return new nM(R)};
_.p.next=function(B){return a4n(this,_.Beb,B)};
_.p.prev=function(B){return a4n(this,aPr,B)};
var a4n=function(B,R,V){var e=[];var X=V?yoe(V):SD6;B.each(function(Y){(Y=R(Y))&&X(Y)&&e.push(Y)});
return new nM(e)};
nM.prototype.setClass=function(B){return this.each(function(R){_.c_(R,B)})};
var d6e=function(B,R){return B.each(function(V){_.s5(V,R)})},wb6=function(B,R){return B.each(function(V){_.AJ(V,R)})};
nM.prototype.toggleClass=function(B,R){return R===!0?d6e(this,B):R===!1?wb6(this,B):this.each(function(V){_.A8(V,B)?_.AJ(V,B):_.s5(V,B)})};
nM.prototype.setText=function(B){return this.each(function(R){_.vx(R,B)})};
var TXz=function(B){B.each(function(R){R.removeAttribute("aria-hidden")})};
nM.prototype.getStyle=function(B){if(this.list_.length>0){var R=this.list_[0],V=R.style[_.jk(B)];return typeof V!=="undefined"?V:R.style[_.Ujo(R,B)]||""}};
nM.prototype.getData=function(B){if(this.list_.length===0)return new CM(B,null);var R=Xf6(this.list_[0],B);return new CM(B,R)};
nM.prototype.focus=function(B){try{B?this.el().focus(B):this.el().focus()}catch(R){}return this};
nM.prototype.click=function(){var B=_.zg(this.el());if(B.createEvent){var R=B.createEvent("MouseEvents");R.initMouseEvent("click",!0,!0,B.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(R)}else B=B.createEventObject(),B.clientX=0,B.clientY=0,B.screenX=0,B.screenY=0,B.altKey=!1,B.ctrlKey=!1,B.shiftKey=!1,B.button=0,this.el().fireEvent("onclick",B)};
var Ov=function(B,R,V,e){function X(b,J,G){var y=J;J&&J.parentNode&&(y=J.cloneNode(!0));b(y,G)}
e=e===void 0?!1:e;if(B.list_.length==1){var Y=B.list_[0],t=function(b){return R(b,Y)};
V instanceof nM?V.each(t,void 0,e):Array.isArray(V)?(e?Oq4:_.ij)(V,t):t(V);return B}return B.each(function(b){V instanceof nM?V.each(function(J){X(R,J,b)}):Array.isArray(V)?_.ij(V,function(J){X(R,J,b)}):X(R,V,b)})};
_.p=nM.prototype;_.p.append=function(B){return Ov(this,function(R,V){R&&V.appendChild(R)},B)};
_.p.appendTo=function(B){(new nM([B])).append(this);return this};
_.p.remove=function(){return Ov(this,function(B,R){_.UJ(R)},null)};
_.p.empty=function(){return Ov(this,function(B,R){_.wE(R)},null)};
_.p.after=function(B,R){return Ov(this,function(V,e){V&&_.xP(V,e)},B,!(R===void 0||R))};
_.p.before=function(B){return Ov(this,function(R,V){R&&_.Tw(R,V)},B)};
_.p.replaceWith=function(B){return Ov(this,function(R,V){R&&_.uaJ(R,V)},B)};
_.p.toggle=function(B){return this.each(function(R){_.iy(R,B)})};
_.p.show=function(){return this.toggle(!0)};
_.p.hide=function(){return this.toggle(!1)};
_.p.trigger=function(B,R,V,e){return x64(this,B,R,V,e)};
var x64=function(B,R,V,e,X){return B.each(function(Y){_.xNZ(_.zg(Y)).triggerWizEventInternal(Y,R,V,e,X)})},uZ=function(B,R){B instanceof nM&&(R=B.list_,B=null);
this.list_=zfr(B!=null?[B]:R)};
_.eY(uZ,nM);_.p=uZ.prototype;_.p.children=function(){return new nM(Array.prototype.slice.call(_.LY(this.list_[0])))};
_.p.each=function(B,R){B.call(R,this.list_[0],0);return this};
_.p.size=function(){return 1};
_.p.el=function(){return this.list_[0]};
_.p.first=function(){return this};var od=function(B,R){R=R===void 0?window:R;this.hostId=B;this.JSC$17227_win=R;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$17227_previousHtmlOverscroll=this.JSC$17227_previousBodyOverscroll=this.JSC$17227_previousBodyOverflow="";this.eventTarget=new _.H_;this.JSC$17227_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
Kg4=function(B){var R=Lg4(Lg4(Lg4(new vU7(78),"po"),"hppp"),"hhc");
R.authUser=Number(_.vE("SESSION_INDEX","0"));R.colorScheme=B;return R};
od.prototype.getOrigin=function(){return this.origin?this.origin:_.uK(_.nT(_.P_(new _.FO,this.JSC$17227_win.location.protocol),this.JSC$17227_win.location.hostname),this.JSC$17227_win.location.port).toString()};
od.prototype.getTargetOrigin=function(){return _.uK(_.nT(_.P_(new _.FO,this.scheme),this.domain),this.port)};
od.prototype.preloadIframe=function(B){var R=this;if(this.iframeLoadPromise===void 0){var V=document.createElement("iframe");this.iframe=V;XJr(V,B);this.iframeLoadPromise=new Promise(function(e,X){var Y=!1,t=function(b){b.stopPropagation();V.removeEventListener("error",t);V.removeEventListener("securitypolicyviolation",t);X(Error("hk",{cause:b}))};
V.addEventListener("error",t);V.addEventListener("securitypolicyviolation",t);setTimeout(function(){Y||X(Error("ik"))},3E4);
I46(R,V,function(){Y=!0;V.removeEventListener("error",t);V.removeEventListener("securitypolicyviolation",t);e()})});
EU6(this);B=this.getTargetOrigin().toString();V.setAttribute("allow","camera "+B+"; display-capture "+B);this.parentElement.appendChild(V)}return this.iframeLoadPromise};
var coo=function(B,R){var V,e;return _.W(function(X){if(X.nextAddress==1)return V=n_n(getComputedStyle(B.parentElement).direction==="rtl"),B.parentElement.appendChild(V),document.activeElement instanceof HTMLElement&&(B.elementToFocusAfterClose=document.activeElement),_.en(X,2),_.U(X,B.preloadIframe(R),4);if(X.nextAddress!=2){B.parentElement.removeChild(V);B.JSC$17227_previousBodyOverflow=B.parentElement.style.overflow;B.JSC$17227_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
B.JSC$17227_previousBodyOverscroll=B.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";B.parentElement.style.overscrollBehavior="contain";B.parentElement.style.overflow="hidden";var Y=B.iframe;Y.style.bottom="0";Y.style.border="none";Y.style.height="100%";Y.style.left="0";Y.style.position=B.iframePosition;Y.style.right="0";Y.style.top="0";Y.style.width="100%";Y.style.zIndex="2202";Y.setAttribute("aria-hidden","false");Y.setAttribute("aria-modal","true");
B.opened=!0;Q66(B);return _.c8(X,0)}e=_.WR(X);B.parentElement.removeChild(V);R64(B.isDarkTheme());qD6(B,!1);throw Error("jk",{cause:e});})},qD6=function(B,R){R=R===void 0?!0:R;
B.iframe!==void 0&&(Aoe(B),document.documentElement.style.overscrollBehavior=B.JSC$17227_previousHtmlOverscroll,B.parentElement.style.overscrollBehavior=B.JSC$17227_previousBodyOverscroll,B.parentElement.style.overflow=B.JSC$17227_previousBodyOverflow,B.elementToFocusAfterClose!==void 0&&(B.elementToFocusAfterClose.focus(),B.elementToFocusAfterClose=void 0),R?EU6(B):(B.parentElement.removeChild(B.iframe),B.iframe=void 0,B.iframeLoadPromise=void 0,B.mainChannel=void 0),B.opened=!1)},Aoe=function(B){B.backgroundElementsAriaHiddenIsNull&&
(TXz(B.backgroundElementsAriaHiddenIsNull),B.backgroundElementsAriaHiddenIsNull=void 0);
B.backgroundElementsAriaHiddenIsFalse&&(B.backgroundElementsAriaHiddenIsFalse.each(function(R){R.setAttribute("aria-hidden","false")}),B.backgroundElementsAriaHiddenIsFalse=void 0);
B.backgroundElementsWithoutInert&&(B.backgroundElementsWithoutInert.each(function(R){R.removeAttribute("inert")}),B.backgroundElementsWithoutInert=void 0)},Q66=function(B){B.backgroundElementsAriaHiddenIsNull=(new uZ(B.iframe.parentElement)).children().filter(function(R){return R.getAttribute("aria-hidden")===null&&R!==B.iframe});
B.backgroundElementsAriaHiddenIsNull.each(function(R){R.setAttribute("aria-hidden","true")});
B.backgroundElementsAriaHiddenIsFalse=(new uZ(B.iframe.parentElement)).children().filter(function(R){return R.getAttribute("aria-hidden")==="false"&&R!==B.iframe});
B.backgroundElementsAriaHiddenIsFalse.each(function(R){R.setAttribute("aria-hidden","true")});
B.backgroundElementsWithoutInert=(new uZ(B.iframe.parentElement)).children().filter(function(R){return!R.hasAttribute("inert")&&R!==B.iframe});
B.backgroundElementsWithoutInert.each(function(R){R.setAttribute("inert","true")})},EU6=function(B){B=B.iframe;
B.style.bottom="-1000px";B.style.position="fixed";B.style.right="-1000px";B.style.border="";B.style.height="";B.style.left="";B.style.top="";B.style.width="";B.style.zIndex="";B.setAttribute("aria-hidden","true");B.setAttribute("aria-modal","false")};
od.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var vU7=function(B,R){od.call(this,C5e[B],R);this.options=[];this.style=""};
_.l(vU7,od);var iUe=function(B){B.style="youtube";return B},s6m=function(B,R){B.eventTarget.listen(YDo,R);
return B},Fgi=function(B,R){B.eventTarget.listen(XbU,R);
return B},Lg4=function(B,R){B.options.push(R);
return B},roe=function(B){var R=[B.getOrigin()];
B.ancestorOrigins&&R.push.apply(R,_.MI(B.ancestorOrigins));var V=new _.FO(B.JSC$17227_win.location.href),e=B.startUrl?B.startUrl:B.options.includes("po")?"profile-picture/art":"profile-picture";R=pM(_.On(B.getTargetOrigin(),e),"origin",R);B.startUrl&&_.A4(R,"startPath",B.startUrl);B.authUser>0&&_.A4(R,"authuser",B.authUser);B.pageId!==void 0&&_.A4(R,"pageId",B.pageId);_.A4(R,"hostId",B.hostId);B.jsMode!==void 0&&_.A4(R,"jsmode",B.jsMode);B.options.length>0&&_.A4(R,"opts",B.options.join(","));try{for(var X=
_.h(["utm_source","utm_medium","utm_campaign","utm_content"]),Y=X.next();!Y.done;Y=X.next()){var t=Y.value;_.cn(V,t)&&_.A4(R,t,_.cn(V,t))}var b,J=(b=B.hl)!=null?b:_.cn(V,"hl");J!==void 0&&_.A4(R,"hl",J)}catch(G){if(!(G instanceof URIError))throw G;}B.colorScheme&&_.A4(R,"theme",B.colorScheme);B.style&&_.A4(R,"style",B.style);return R},gUe=function(B,R){B.mainChannel=_.OD({destination:B.JSC$17227_win,
iframe:R,origin:B.getTargetOrigin().toString(),channelName:"ow",onMessage:function(V){V=BXe(V.data);if(R===B.iframe)switch(_.LU(V,1)){case 1:B.eventTarget.dispatchEvent(new bU2);qD6(B);break;case 2:B.eventTarget.dispatchEvent(new tYr(_.xU(V,4),_.xU(V,2),_.LU(V,5),_.OB(V,uMo,6)));break;case 0:var e;B.eventTarget.dispatchEvent(new Wgm(_.xU(V,2),(e=_.LU(V,3))!=null?e:0));break;case 3:B.eventTarget.dispatchEvent(new bU2(!0));qD6(B,!1);break;case 4:B.eventTarget.dispatchEvent(new Jo7)}}})},I46=function(B,
R,V){_.OD({destination:B.JSC$17227_win,
iframe:R,origin:_.uK(_.nT(_.P_(new _.FO,B.scheme),B.domain),B.port).toString(),channelName:"owi",onMessage:function(e){R===B.iframe&&(V!==void 0&&V(),gUe(B,R),B.opened&&B.mainChannel.send(efr(VY4())),e.reply(),I46(B,R))}})};
vU7.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?od.prototype.preloadIframe.call(this,roe(this).toString()):this.iframeLoadPromise};
vU7.prototype.openPicker=function(B){var R=this;return _.W(function(V){if(V.nextAddress==1)return R.startUrl=B?B:R.options.includes("po")?"profile-picture/art":"profile-picture",_.U(V,coo(R,roe(R).toString()),2);if(R.mainChannel){var e=R.mainChannel,X=e.send;var Y=VY4();Y=_.bg(Y,2,R.startUrl);X.call(e,efr(Y))}_.b3(V)})};var ZUe=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(ZUe,_.qS);_.p=ZUe.prototype;_.p.getSize=function(){return j7(this,1)};
_.p.setSize=function(B){return _.ED(this,1,B)};
_.p.getWidth=function(){return j7(this,12)};
_.p.getHeight=function(){return j7(this,13)};
_.p.setCenterCrop=function(B){return _.Xn(this,20,B)};
_.p.getHtml=function(){return _.dX(this,4)};
_.p.getToken=function(){return _.J4(this,24)};
_.p.setToken=function(B){return _.bg(this,24,B)};
_.p.getBackgroundColor=function(){return j7(this,87)};
_.p.hasBackgroundColor=function(){return _.l4(_.yG(this,87))!=null};
_.p.getStoryboardLevel=function(){return j7(this,109)};var Bl=function(B){this.JSC$17235_value_=void 0;this.childNodes_={};if(B){var R=_.c4J(B);B=_.CT(B);for(var V=0;V<R.length;V++)this.set(R[V],B[V])}};
Bl.prototype.set=function(B,R){m64(this,B,R,!1)};
Bl.prototype.add=function(B,R){m64(this,B,R,!0)};
var m64=function(B,R,V,e){for(var X=0;X<R.length;X++){var Y=R.charAt(X);B.childNodes_[Y]||(B.childNodes_[Y]=new Bl);B=B.childNodes_[Y]}if(e&&B.JSC$17235_value_!==void 0)throw Error("kk`"+R);B.JSC$17235_value_=V},$6U=function(B,R){for(var V=0;V<R.length;V++)if(B=B.childNodes_[R.charAt(V)],!B)return;
return B};
Bl.prototype.get=function(B){return(B=$6U(this,B))?B.JSC$17235_value_:void 0};
Bl.prototype.getValues=function(){var B=[];C8i(this,B);return B};
var C8i=function(B,R){B.JSC$17235_value_!==void 0&&R.push(B.JSC$17235_value_);for(var V in B.childNodes_)C8i(B.childNodes_[V],R)};
Bl.prototype.getKeys=function(B){var R=[];if(B){for(var V=this,e=0;e<B.length;e++){var X=B.charAt(e);if(!V.childNodes_[X])return[];V=V.childNodes_[X]}P84(V,B,R)}else P84(this,"",R);return R};
var P84=function(B,R,V){B.JSC$17235_value_!==void 0&&V.push(R);for(var e in B.childNodes_)P84(B.childNodes_[e],R+e,V)};
_.p=Bl.prototype;_.p.containsKey=function(B){return this.get(B)!==void 0};
_.p.containsValue=function(B){if(this.JSC$17235_value_===B)return!0;for(var R in this.childNodes_)if(this.childNodes_[R].containsValue(B))return!0;return!1};
_.p.clear=function(){this.childNodes_={};this.JSC$17235_value_=void 0};
_.p.remove=function(B){for(var R=this,V=[],e=0;e<B.length;e++){var X=B.charAt(e);if(!R.childNodes_[X])throw Error("lk`"+B);V.push([R,X]);R=R.childNodes_[X]}B=R.JSC$17235_value_;for(delete R.JSC$17235_value_;V.length>0;)if(e=V.pop(),R=e[0],e=e[1],R.childNodes_[e].isEmpty())delete R.childNodes_[e];else break;return B};
_.p.clone=function(){return new Bl(this)};
_.p.getCount=function(){return xxn(this.getValues())};
_.p.isEmpty=function(){return this.JSC$17235_value_===void 0&&_.M_.isEmpty(this.childNodes_)};var Wce=function(){if(!nU4){var B=nU4=new Bl,R;for(R in u66)B.add(R,u66[R])}},nU4,Rd=function(B,R){this.types=B;
this.setters=R},u66={a:new Rd([3,
0],[function(B,R){_.Xn(B,21,R)},
function(B,R){_.ED(B,56,R)}]),
al:new Rd([3],[function(B,R){_.Xn(B,74,R)}]),
b:new Rd([3,0],[function(B,R){_.Xn(B,23,R)},
function(B,R){_.ED(B,38,R)}]),
ba:new Rd([0],[function(B,R){_.ED(B,85,R)}]),
bc:new Rd([0],[function(B,R){_.ED(B,87,R)}]),
br:new Rd([0],[function(B,R){_.ED(B,86,R)}]),
c:new Rd([3,0],[function(B,R){_.Xn(B,2,R)},
function(B,R){_.ED(B,39,R)}]),
cc:new Rd([3],[function(B,R){_.Xn(B,51,R)}]),
ci:new Rd([3],[function(B,R){_.Xn(B,32,R)}]),
ckm:new Rd([3],[function(B,R){_.Xn(B,104,R)}]),
cp:new Rd([0],[function(B,R){_.ED(B,92,R)}]),
cr:new Rd([3],[function(B,R){_.Xn(B,108,R)}]),
cv:new Rd([0],[function(B,R){_.ED(B,94,R)}]),
d:new Rd([3],[function(B,R){_.Xn(B,3,R)}]),
dc:new Rd([5],[function(B,R){_.bg(B,99,R)}]),
df:new Rd([3],[function(B,R){_.Xn(B,80,R)}]),
dv:new Rd([3],[function(B,R){_.Xn(B,90,R)}]),
e:new Rd([0],[function(B,R){_.ED(B,15,R)}]),
em:new Rd([0],[function(B,R){_.ED(B,107,R)}]),
f:new Rd([4],[function(B,R){_.bg(B,16,R)}]),
fg:new Rd([3],[function(B,R){_.Xn(B,34,R)}]),
fh:new Rd([3],[function(B,R){_.Xn(B,30,R)}]),
fm:new Rd([3],[function(B,R){_.Xn(B,84,R)}]),
fo:new Rd([2],[function(B,R){_.Bf(B,79,_.hr(R))}]),
ft:new Rd([3],[function(B,R){_.Xn(B,50,R)}]),
fv:new Rd([3],[function(B,R){_.Xn(B,31,R)}]),
g:new Rd([3],[function(B,R){_.Xn(B,14,R)}]),
gce:new Rd([4],[function(B,R){_.bg(B,112,R)}]),
gd:new Rd([3],[function(B,R){_.Xn(B,83,R)}]),
gm:new Rd([3],[function(B,R){_.Xn(B,105,R)}]),
h:new Rd([3,0],[function(B,R){_.Xn(B,4,R)},
function(B,R){_.ED(B,13,R)}]),
i:new Rd([3],[function(B,R){_.Xn(B,22,R)}]),
ic:new Rd([0],[function(B,R){_.ED(B,71,R)}]),
id:new Rd([3],[function(B,R){_.Xn(B,70,R)}]),
il:new Rd([3],[function(B,R){_.Xn(B,96,R)}]),
ip:new Rd([3],[function(B,R){_.Xn(B,54,R)}]),
iv:new Rd([0],[function(B,R){_.H5(B,75,R)}]),
j:new Rd([1],[function(B,R){R=R==null?R:RtU(R);_.Bf(B,29,R)}]),
k:new Rd([3,0],[function(B,R){_.Xn(B,17,R)},
function(B,R){_.ED(B,42,R)}]),
l:new Rd([0],[function(B,R){_.ED(B,44,R)}]),
lf:new Rd([3],[function(B,R){_.Xn(B,65,R)}]),
lo:new Rd([3],[function(B,R){_.Xn(B,97,R)}]),
m:new Rd([0],[function(B,R){_.ED(B,63,R)}]),
md:new Rd([3],[function(B,R){_.Xn(B,91,R)}]),
mm:new Rd([4],[function(B,R){_.bg(B,81,R)}]),
mo:new Rd([3],[function(B,R){_.Xn(B,73,R)}]),
mv:new Rd([3],[function(B,R){_.Xn(B,66,R)}]),
n:new Rd([3],[function(B,R){B.setCenterCrop(R)}]),
nc:new Rd([3],[function(B,R){_.Xn(B,55,R)}]),
nd:new Rd([3],[function(B,R){_.Xn(B,53,R)}]),
ng:new Rd([3],[function(B,R){_.Xn(B,95,R)}]),
ngm:new Rd([3],[function(B,R){_.Xn(B,106,R)}]),
no:new Rd([3],[function(B,R){_.Xn(B,37,R)}]),
ns:new Rd([3],[function(B,R){_.Xn(B,40,R)}]),
nt0:new Rd([4],[function(B,R){_.bg(B,36,R)}]),
ntm:new Rd([3],[function(B,R){_.Xn(B,114,R)}]),
nu:new Rd([3],[function(B,R){_.Xn(B,46,R)}]),
nw:new Rd([3],[function(B,R){_.Xn(B,48,R)}]),
o:new Rd([1,3],[function(B,R){R=R==null?R:RtU(R);_.Bf(B,7,R)},
function(B,R){_.Xn(B,27,R)}]),
p:new Rd([3,0],[function(B,R){_.Xn(B,19,R)},
function(B,R){_.ED(B,43,R)}]),
pa:new Rd([3],[function(B,R){_.Xn(B,61,R)}]),
pc:new Rd([0],[function(B,R){_.ED(B,88,R)}]),
pd:new Rd([3],[function(B,R){_.Xn(B,60,R)}]),
pf:new Rd([3],[function(B,R){_.Xn(B,67,R)}]),
pg:new Rd([3],[function(B,R){_.Xn(B,72,R)}]),
pi:new Rd([2],[function(B,R){_.Bf(B,76,_.hr(R))}]),
pp:new Rd([3],[function(B,R){_.Xn(B,52,R)}]),
pt:new Rd([4],[function(B,R){_.bg(B,111,R)}]),
q:new Rd([4],[function(B,R){_.bg(B,28,R)}]),
r:new Rd([3,0],[function(B,R){_.Xn(B,6,R)},
function(B,R){_.ED(B,26,R)}]),
ra:new Rd([3],[function(B,R){_.Xn(B,103,R)}]),
rf:new Rd([3],[function(B,R){_.Xn(B,100,R)}]),
rg:new Rd([3],[function(B,R){_.Xn(B,59,R)}]),
rh:new Rd([3],[function(B,R){_.Xn(B,49,R)}]),
rj:new Rd([3],[function(B,R){_.Xn(B,57,R)}]),
ro:new Rd([2],[function(B,R){_.Bf(B,78,_.hr(R))}]),
rp:new Rd([3],[function(B,R){_.Xn(B,58,R)}]),
rw:new Rd([3],[function(B,R){_.Xn(B,35,R)}]),
rwa:new Rd([3],[function(B,R){_.Xn(B,64,R)}]),
rwu:new Rd([3],[function(B,R){_.Xn(B,41,R)}]),
s:new Rd([3,0],[function(B,R){_.Xn(B,33,R)},
function(B,R){B.setSize(R)}]),
sb:new Rd([0],[function(B,R){_.ED(B,110,R)}]),
sc:new Rd([0],[function(B,R){_.ED(B,89,R)}]),
sg:new Rd([3],[function(B,R){_.Xn(B,82,R)}]),
sl:new Rd([0],[function(B,R){_.ED(B,109,R)}]),
sm:new Rd([3],[function(B,R){_.Xn(B,93,R)}]),
t:new Rd([4],[function(B,R){B.setToken(R)}]),
tm:new Rd([3],[function(B,R){_.Xn(B,113,R)}]),
u:new Rd([3],[function(B,R){_.Xn(B,18,R)}]),
ut:new Rd([3],[function(B,R){_.Xn(B,45,R)}]),
v:new Rd([0],[function(B,R){_.ED(B,62,R)}]),
vb:new Rd([0],[function(B,R){_.H5(B,68,R)}]),
vf:new Rd([4],[function(B,R){_.bg(B,102,R)}]),
vl:new Rd([0],[function(B,R){_.H5(B,69,R)}]),
vm:new Rd([3],[function(B,R){_.Xn(B,98,R)}]),
w:new Rd([0],[function(B,R){_.ED(B,12,R)}]),
x:new Rd([0],[function(B,R){_.ED(B,9,R)}]),
y:new Rd([0],[function(B,R){_.ED(B,10,R)}]),
ya:new Rd([2],[function(B,R){_.Bf(B,77,_.hr(R))}]),
z:new Rd([0],[function(B,R){_.ED(B,11,R)}])};
Wce.prototype.parse=function(B){var R=new ZUe,V=new ZUe;if(B=="")B=!0;else{B=B.split("-");for(var e=!0,X=0;X<B.length;X++){var Y=B[X];if(Y.length==0)e=!1;else{var t=Y,b=!1;var J=t;var G=t.charAt(0);G!=G.toLowerCase()&&(b=!0,J=t.charAt(0).toLowerCase()+t.substring(1));var y=nU4;for(G=1;G<=J.length;++G){var S=y,M=J.substring(0,G);if(M.length==0?S.isEmpty():!$6U(S,M))break}J=G==1?null:(J=y.get(J.substring(0,G-1)))?{option:t.substring(0,G-1),value:t.substring(G-1),signed:b,attributes:J}:null;if(J){t=
[];b=[];G=!1;for(y=0;y<J.attributes.types.length;y++){S=J.attributes.types[y];var f=J.value;M=X;if(J.signed&&S==1)for(var z=f.length;z<12&&M<B.length-1;)f+="-"+B[M+1],z=f.length,++M;else if(S==2)for(;M<B.length-1&&B[M+1].match(/^[\d\.]/);)f+="-"+B[M+1],++M;z=J.attributes.setters[y];f=OUU(this,S)(J.option,f,R,V,z);if(f===null){G=!0;X=M;break}else t.push(S),b.push(f)}if(!G)for(J=0;J<b.length;J++)y=t[J],f=b[J],oPn(this,y)(Y,f);e=e&&G}else e=!1}}B=e}return new BEi(R,V,B)};
var Va=function(B,R,V,e,X,Y){X(V,R);B=B.charAt(0);Y=Y(B==B.toUpperCase());X(e,Y)};
_.p=Wce.prototype;_.p.parseAndSetIntOption_=function(B,R,V,e,X){if(R=="")return 0;isFinite(R)&&(R=String(R));R=typeof R==="string"?/^\s*-?0x/i.test(R)?parseInt(R,16):parseInt(R,10):NaN;if(isNaN(R))return 1;Va(B,R,V,e,X,Number);return null};
_.p.logIntParseError_=function(){};
_.p.parseAndSetFloatOption_=function(B,R,V,e,X){if(R=="")return 0;var Y=Number(R);R=Y==0&&_.Wd(R)?NaN:Y;if(isNaN(R))return 1;Va(B,R,V,e,X,Number);return null};
_.p.logFloatParseError_=function(){};
_.p.parseAndSetBoolOption_=function(B,R,V,e,X){if(R!="")return 2;Va(B,!0,V,e,X,Boolean);return null};
_.p.logBoolParseError_=function(){};
_.p.parseAndSetStringOption_=function(B,R,V,e,X){if(R=="")return 0;Va(B,R,V,e,X,function(Y){return Y?"1":""});
return null};
_.p.logStringParseError_=function(){};
_.p.parseAndSetUint64Base64Option_=function(B,R,V,e,X){if(R=="")return 0;Va(B,R,V,e,X,function(Y){return Y?1:0});
return null};
var OUU=function(B,R){switch(R){case 0:return(0,_.M2)(B.parseAndSetIntOption_,B);case 2:return(0,_.M2)(B.parseAndSetFloatOption_,B);case 3:return(0,_.M2)(B.parseAndSetBoolOption_,B);case 4:return(0,_.M2)(B.parseAndSetStringOption_,B);case 1:return(0,_.M2)(B.parseAndSetUint64Base64Option_,B);default:return function(){}}},oPn=function(B,R){switch(R){case 0:return(0,_.M2)(B.logIntParseError_,B);
case 2:return(0,_.M2)(B.logFloatParseError_,B);case 3:return(0,_.M2)(B.logBoolParseError_,B);case 4:case 1:return(0,_.M2)(B.logStringParseError_,B);default:return function(){}}},BEi=function(B,R,V){this.valueProto_=B;
this.signatureFlagProto_=R;this.JSC$17247_valid_=V};
BEi.prototype.isValid=function(){return this.JSC$17247_valid_};var pJi=function(B){this.JSC$17248_parser_=null;this.JSC$17248_components_=[];this.JSC$17248_parsedOptions_=null;Ro6(this,B)},V9r=function(B){B.JSC$17248_parser_==null&&(B.JSC$17248_parser_=new Wce);
return B.JSC$17248_parser_},Ro6=function(B,R){B.JSC$17248_parsedOptions_=R?typeof R==="string"?V9r(B).parse(R):R:V9r(B).parse("")},eT=function(B,R){return B==R?!1:!0};
_.p=pJi.prototype;_.p.JSC$17250_setCrop=function(B){B=B||void 0;var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,_.dX(V,2),_.dX(R.signatureFlagProto_,2))&&_.Xn(V,2,B);return this};
_.p.JSC$17250_setCircleCrop=function(B){B=B||void 0;var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,JC(V,51),JC(R.signatureFlagProto_,51))&&_.Xn(V,51,B);return this};
_.p.JSC$17250_setImageCrop=function(B){B=B||void 0;var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,JC(V,32),JC(R.signatureFlagProto_,32))&&_.Xn(V,32,B);return this};
_.p.JSC$17250_setHeight=function(B){var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,V.getHeight(),R.signatureFlagProto_.getHeight())&&_.ED(V,13,B);return this};
_.p.setCenterCrop=function(B){B=B||void 0;var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,_.dX(V,20),_.dX(R.signatureFlagProto_,20))&&V.setCenterCrop(B);return this};
_.p.JSC$17250_setSmartCrop=function(B){B=B||void 0;var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,_.dX(V,19),_.dX(R.signatureFlagProto_,19))&&_.Xn(V,19,B);return this};
_.p.JSC$17250_setPad=function(B){B=B||void 0;var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,JC(V,60),JC(R.signatureFlagProto_,60))&&_.Xn(V,60,B);return this};
_.p.JSC$17250_setSmartCropUseFace=function(B){B=B||void 0;var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,_.dX(V,67),_.dX(R.signatureFlagProto_,67))&&_.Xn(V,67,B);return this};
_.p.JSC$17250_setSmartCropNoClip=function(B){B=B||void 0;var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,_.dX(V,52),_.dX(R.signatureFlagProto_,52))&&_.Xn(V,52,B);return this};
_.p.setSize=function(B){var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,V.getSize(),R.signatureFlagProto_.getSize())&&V.setSize(B);return this};
_.p.setToken=function(B){B=B||void 0;var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,V.getToken(),R.signatureFlagProto_.getToken())&&V.setToken(B);return this};
_.p.JSC$17250_setWidth=function(B){var R=this.JSC$17248_parsedOptions_,V=R.valueProto_;eT(B,V.getWidth(),R.signatureFlagProto_.getWidth())&&_.ED(V,12,B);return this};
_.p.clearOptions=function(){Ro6(this,"");return this};
_.p.build=function(){this.JSC$17248_components_.length=0;var B=this.JSC$17248_parsedOptions_,R=B.valueProto_;B=B.signatureFlagProto_;Xv(this,"s",R.getSize(),B.getSize());Xv(this,"w",R.getWidth(),B.getWidth());pv(this,"c",_.dX(R,2),_.dX(B,2));pv(this,"d",_.dX(R,3),_.dX(B,3));Xv(this,"h",R.getHeight(),B.getHeight());pv(this,"s",JC(R,33),JC(B,33));pv(this,"h",R.getHtml(),B.getHtml());pv(this,"p",_.dX(R,19),_.dX(B,19));pv(this,"pp",_.dX(R,52),_.dX(B,52));pv(this,"pf",_.dX(R,67),_.dX(B,67));pv(this,"n",
_.dX(R,20),_.dX(B,20));Xv(this,"r",j7(R,26),j7(B,26));pv(this,"r",_.dX(R,6),_.dX(B,6));pv(this,"o",JC(R,27),JC(B,27));var V=_.a6(R,7,_.Go);YM(this,"o",V,_.a6(B,7,_.Go));V=_.a6(R,29,_.Go);YM(this,"j",V,_.a6(B,29,_.Go));Xv(this,"x",j7(R,9),j7(B,9));Xv(this,"y",j7(R,10),j7(B,10));Xv(this,"z",j7(R,11),j7(B,11));pv(this,"g",_.dX(R,14),_.dX(B,14));Xv(this,"e",j7(R,15),j7(B,15));YM(this,"f",_.J4(R,16),_.J4(B,16));pv(this,"k",JC(R,17),JC(B,17));pv(this,"u",JC(R,18),!0);pv(this,"ut",JC(R,45),!0);pv(this,"i",
JC(R,22),!0);pv(this,"a",JC(R,21),JC(B,21));pv(this,"b",_.dX(R,23),_.dX(B,23));Xv(this,"b",j7(R,38),j7(B,38));Xv(this,"c",j7(R,39),j7(B,39),16,8);YM(this,"q",_.J4(R,28),_.J4(B,28));pv(this,"fh",JC(R,30),JC(B,30));pv(this,"fv",JC(R,31),JC(B,31));pv(this,"fg",_.dX(R,34),_.dX(B,34));pv(this,"ci",JC(R,32),JC(B,32));YM(this,"t",R.getToken(),B.getToken());YM(this,"nt0",_.J4(R,36),_.J4(B,36));pv(this,"rw",_.dX(R,35),_.dX(B,35));pv(this,"rwu",_.dX(R,41),_.dX(B,41));pv(this,"rwa",_.dX(R,64),_.dX(B,64));pv(this,
"nw",_.dX(R,48),_.dX(B,48));pv(this,"rh",_.dX(R,49),_.dX(B,49));pv(this,"no",_.dX(R,37),_.dX(B,37));pv(this,"ns",JC(R,40),JC(B,40));Xv(this,"k",j7(R,42),j7(B,42));Xv(this,"p",j7(R,43),j7(B,43));Xv(this,"l",j7(R,44),j7(B,44));Xv(this,"v",j7(R,62),j7(B,62));pv(this,"nu",JC(R,46),JC(B,46));pv(this,"ft",JC(R,50),JC(B,50));pv(this,"cc",JC(R,51),JC(B,51));pv(this,"nd",JC(R,53),JC(B,53));pv(this,"ip",JC(R,54),JC(B,54));pv(this,"nc",JC(R,55),JC(B,55));Xv(this,"a",j7(R,56),j7(B,56));pv(this,"rj",JC(R,57),
JC(B,57));pv(this,"rp",JC(R,58),JC(B,58));pv(this,"rg",JC(R,59),JC(B,59));pv(this,"pd",JC(R,60),JC(B,60));pv(this,"pa",JC(R,61),JC(B,61));Xv(this,"m",j7(R,63),j7(B,63));Xv(this,"vb",Uv(R,68),Uv(B,68));Xv(this,"vl",Uv(R,69),Uv(B,69));pv(this,"lf",JC(R,65),JC(B,65));pv(this,"mv",JC(R,66),JC(B,66));pv(this,"id",JC(R,70),JC(B,70));Xv(this,"ic",j7(R,71),!0);pv(this,"pg",_.dX(R,72),_.dX(B,72));pv(this,"mo",JC(R,73),JC(B,73));pv(this,"al",JC(R,74),JC(B,74));Xv(this,"iv",Uv(R,75),Uv(B,75));Xv(this,"pi",NL(R,
76),NL(B,76));Xv(this,"ya",NL(R,77),NL(B,77));Xv(this,"ro",NL(R,78),NL(B,78));Xv(this,"fo",NL(R,79),NL(B,79));pv(this,"df",JC(R,80),JC(B,80));YM(this,"mm",_.J4(R,81),_.J4(B,81));pv(this,"sg",JC(R,82),JC(B,82));pv(this,"gd",JC(R,83),JC(B,83));pv(this,"fm",JC(R,84),JC(B,84));Xv(this,"ba",j7(R,85),j7(B,85));Xv(this,"br",j7(R,86),j7(B,86));Xv(this,"bc",R.getBackgroundColor(),B.getBackgroundColor(),16,8);Xv(this,"pc",j7(R,88),j7(B,88),16,8);Xv(this,"sc",j7(R,89),j7(B,89),16,8);pv(this,"dv",JC(R,90),JC(B,
90));pv(this,"md",JC(R,91),JC(B,91));Xv(this,"cp",j7(R,92),j7(B,92));pv(this,"sm",JC(R,93),JC(B,93));Xv(this,"cv",j7(R,94),j7(B,94));pv(this,"ng",JC(R,95),JC(B,95));pv(this,"il",JC(R,96),JC(B,96));pv(this,"lo",JC(R,97),JC(B,97));pv(this,"vm",JC(R,98),JC(B,98));YM(this,"dc",_.J4(R,99),_.J4(B,99));pv(this,"rf",JC(R,100),JC(B,100));YM(this,"vf",_.J4(R,102),_.J4(B,102));pv(this,"ra",_.dX(R,103),_.dX(B,103));pv(this,"ckm",JC(R,104),JC(B,104));pv(this,"gm",JC(R,105),JC(B,105));pv(this,"ngm",JC(R,106),JC(B,
106));Xv(this,"em",j7(R,107),j7(B,107));pv(this,"cr",JC(R,108),JC(B,108));Xv(this,"sl",R.getStoryboardLevel(),B.getStoryboardLevel());Xv(this,"sb",j7(R,110),j7(B,110));YM(this,"pt",_.J4(R,111),_.J4(B,111));YM(this,"gce",_.J4(R,112),_.J4(B,112));pv(this,"tm",JC(R,113),JC(B,113));pv(this,"ntm",JC(R,114),JC(B,114));return this.JSC$17248_components_.join("-")};
var Xv=function(B,R,V,e,X,Y){if(V!=null){var t=X==void 0||X!=10&&X!=16?10:X;V=Number(V).toString(t);X=new Mb2;X.append(t==16?"0x":"");t=X.append;Y==void 0?Y="":(Y-=V.length,Y=Y<=0?"":(0,_.qSo)("0",Y));t.call(X,Y);X.append(V);eo7(B,R,X.toString(),!!Number(e))}},pv=function(B,R,V,e){V&&eo7(B,R,"",!!e)},YM=function(B,R,V,e){V&&eo7(B,R,String(V),!!Number(e))},eo7=function(B,R,V,e){e&&(R=R.charAt(0).toUpperCase()+R.substring(1));
B.JSC$17248_components_.push(R+V)};_.eY(DB,pJi);_.p=DB.prototype;_.p.JSC$17250_setCrop=function(B){B&&hB(this);return DB.superClass_.JSC$17250_setCrop.call(this,B)};
_.p.JSC$17250_setHeight=function(B){B=B==null||B<0?void 0:B;B!=null&&this.setSize();return DB.superClass_.JSC$17250_setHeight.call(this,B)};
_.p.JSC$17250_setImageCrop=function(B){B&&hB(this);return DB.superClass_.JSC$17250_setImageCrop.call(this,B)};
_.p.JSC$17250_setCircleCrop=function(B){B&&hB(this);return DB.superClass_.JSC$17250_setCircleCrop.call(this,B)};
_.p.setSize=function(B){_.Xa(B)&&(B=Math.max(B.width,B.height));B=B==null||B<0?void 0:B;B!=null&&(this.JSC$17250_setWidth(),this.JSC$17250_setHeight());return DB.superClass_.setSize.call(this,B)};
_.p.JSC$17250_setSmartCrop=function(B){B&&hB(this);return DB.superClass_.JSC$17250_setSmartCrop.call(this,B)};
_.p.JSC$17250_setSmartCropNoClip=function(B){B&&hB(this);return DB.superClass_.JSC$17250_setSmartCropNoClip.call(this,B)};
_.p.JSC$17250_setSmartCropUseFace=function(B){B&&hB(this);return DB.superClass_.JSC$17250_setSmartCropUseFace.call(this,B)};
_.p.setCenterCrop=function(B){B&&hB(this);return DB.superClass_.setCenterCrop.call(this,B)};
_.p.JSC$17250_setPad=function(B){B&&hB(this);return DB.superClass_.JSC$17250_setPad.call(this,B)};
_.p.JSC$17250_setWidth=function(B){B=B==null||B<0?void 0:B;B!=null&&this.setSize();return DB.superClass_.JSC$17250_setWidth.call(this,B)};
var Xxe=function(B){B.clearOptions();var R=B.JSC$17248_parsedOptions_,V=R.valueProto_;eT(!0,_.dX(V,3),_.dX(R.signatureFlagProto_,3))&&_.Xn(V,3,!0);return B},hB=function(B){B.setCenterCrop();
B.JSC$17250_setCircleCrop();B.JSC$17250_setCrop();B.JSC$17250_setImageCrop();B.JSC$17250_setPad();B.JSC$17250_setSmartCrop();B.JSC$17250_setSmartCropNoClip();B.JSC$17250_setSmartCropUseFace()};
DB.prototype.build=function(){var B=this.JSC$17248_parsedOptions_.valueProto_;JC(B,18)||JC(B,45)?B.getSize()||this.setSize(0):(B=this.JSC$17248_parsedOptions_.valueProto_,B.getSize()||B.getWidth()||B.getHeight()||(this.setSize(),this.JSC$17250_setHeight(),this.JSC$17250_setWidth(),hB(this)));return DB.superClass_.build.call(this)};var pxj=/^[^\/]*\/\//,tB=function(B,R){R=R===void 0?!1:R;this.original_=B;this.originalPrefix_="";(B=this.original_.match(pxj))&&B[0]?(this.originalPrefix_=B[0],B=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):B="http://"+this.original_;this.uri_=_.q2(B,!0);this.isFreeformUrl_=R;this.JSC$17254_valid_=!0;this.obfuscated_=!1},YO4=function(B,R){B.JSC$17256_pathPrefix_=B.JSC$17256_pathPrefix_?B.JSC$17256_pathPrefix_+("/"+R):R},Wl=function(B){if(B.JSC$17256_components_==
void 0){var R=B.uri_.getPath().substring(1);
B.JSC$17256_pathPrefix_=null;if(B.isFreeformUrl_){B.JSC$17256_components_=[];if((R.match(/=/g)||[]).length>1)return B.JSC$17254_valid_=!1,B.JSC$17256_components_;var V=R.indexOf("=");V!=-1?(B.JSC$17256_components_.push(R.substr(0,V)),B.JSC$17256_components_.push(R.substr(V+1))):B.JSC$17256_components_.push(R);return B.JSC$17256_components_}B.JSC$17256_components_=R.split("/");R=B.JSC$17256_components_.length;R>2&&B.JSC$17256_components_[0]=="u"&&(YO4(B,B.JSC$17256_components_[0]+"/"+B.JSC$17256_components_[1]),
B.JSC$17256_components_.shift(),B.JSC$17256_components_.shift(),R-=2);if(R==0||R==4||R>7)return B.JSC$17254_valid_=!1,B.JSC$17256_components_;if(R==2)YO4(B,B.JSC$17256_components_[0]);else if(B.JSC$17256_components_[0]=="image")YO4(B,B.JSC$17256_components_[0]);else if(R==7||R==3)return B.JSC$17254_valid_=!1,B.JSC$17256_components_;if(R<=3){B.obfuscated_=!0;R==3&&(YO4(B,B.JSC$17256_components_[1]),B.JSC$17256_components_.shift(),--R);--R;V=B.JSC$17256_components_[R];var e=V.indexOf("=");e!=-1&&(B.JSC$17256_components_[R]=
V.substr(0,e),B.JSC$17256_components_.push(V.substr(e+1)))}}return B.JSC$17256_components_};
tB.prototype.isValid=function(){Wl(this);return this.JSC$17254_valid_};
tB.prototype.isObfuscated=function(){Wl(this);return this.obfuscated_};
var hoi=function(B){Wl(B);return B.isFreeformUrl_},bX=function(B){Wl(B);
B.JSC$17256_pathPrefix_==void 0&&(B.JSC$17256_pathPrefix_=null);return B.JSC$17256_pathPrefix_},t9U=function(B){switch(Wl(B).length){case 7:return!0;
case 6:return bX(B)==null;case 5:return!1;case 3:return!0;case 2:return bX(B)==null;case 1:return!1;default:return!1}},JB=function(B,R){if(hoi(B))a:{switch(R){case 7:R=0;
break;case 4:if(!t9U(B)){B=null;break a}R=1;break;default:B=null;break a}B=Wl(B)[R]}else if(B.isObfuscated())a:{var V=bX(B)!=null?1:0;switch(R){case 6:R=V;break;case 4:if(!t9U(B)){B=null;break a}R=1+V;break;default:B=null;break a}B=Wl(B)[R]}else a:{V=bX(B)!=null?1:0;switch(R){case 0:R=V;break;case 1:R=1+V;break;case 2:R=2+V;break;case 3:R=3+V;break;case 4:if(!t9U(B)){B=null;break a}R=4+V;break;case 5:R=t9U(B)?1:0;R=4+V+R;break;default:B=null;break a}B=Wl(B)[R]}return B};
tB.prototype.getOptions=function(){this.options_==void 0&&(this.options_=JB(this,4));return this.options_};var tk7=function(){};
tk7.prototype.parse=function(B,R){return new YI7(B,R===void 0?!1:R)};
var YI7=function(B,R){tB.call(this,B,R===void 0?!1:R)};
_.l(YI7,tB);_.eY(fH,DB);var h64;fH.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
fH.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var B=fH.superClass_.build.call(this),R=[];bX(this.parsedImageUrl_)!=null&&R.push(bX(this.parsedImageUrl_));var V=hoi(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var e=this.parsedImageUrl_;e.obfuscatedData_==void 0&&(e.obfuscatedData_=JB(e,6));R.push(e.obfuscatedData_+(B?"="+B:""))}else if(V){e=R.push;var X=this.parsedImageUrl_;X.freeformUrlPath_===void 0&&(X.freeformUrlPath_=JB(X,
7));e.call(R,X.freeformUrlPath_);B&&R.push(B)}else e=R.push,X=this.parsedImageUrl_,X.obfuscatedGaiaId_==void 0&&(X.obfuscatedGaiaId_=JB(X,0)),e.call(R,X.obfuscatedGaiaId_),e=R.push,X=this.parsedImageUrl_,X.photoId_==void 0&&(X.photoId_=JB(X,1)),e.call(R,X.photoId_),e=R.push,X=this.parsedImageUrl_,X.imageVersion_==void 0&&(X.imageVersion_=JB(X,2)),e.call(R,X.imageVersion_),e=R.push,X=this.parsedImageUrl_,X.signature_==void 0&&(X.signature_=JB(X,3)),e.call(R,X.signature_),B&&R.push(B),B=R.push,e=this.parsedImageUrl_,
e.filename_==void 0&&(e.filename_=JB(e,5)),B.call(R,e.filename_);R=V?R.join("="):R.join("/");R=_.q2(this.protocolPrefix_+this.JSC$17262_domain_+"/"+R+(this.JSC$17262_query_?"?"+this.JSC$17262_query_:"")).toString();R.startsWith("%3a//")&&(R=R.replace("%3a//","://"));return R};var oXU=_.$Q(["viewBox"]),BOe=_.$Q(["width"]),RMi=_.$Q(["height"]),VP2=_.$Q(["fill"]),eMe=_.$Q(["id"]),XWn=_.$Q(["x"]),pWz=_.$Q(["y"]);bpz.prototype.getLength=function(){return this.parsedData.length};
bpz.prototype.write=function(B){for(var R=0,V=this.parsedData.length;R<V;R++)B.put(this.parsedData[R],8)};
var SIo=function(B,R){var V=new bpz(R);B.dataList.push(V);V=B.errorCorrectLevel;var e=1,X=encodeURI(R).toString().replace(/%[0-9a-fA-F]{2}/g,"a");R=X.length+(X.length!=R?3:0);X=0;for(var Y=jT.length;X<=Y;X++){var t=0;switch(V){case 1:t=jT[X][0];break;case 0:t=jT[X][1];break;case 3:t=jT[X][2];break;case 2:t=jT[X][3]}if(R<=t)break;else e++}if(e>jT.length)throw Error("uk");B.typeNumber=e;B.dataCache=null};
JZe.prototype.isDark=function(B,R){if(B<0||this.moduleCount<=B||R<0||this.moduleCount<=R)throw Error("mk`"+B+"`"+R);return this.modules[B][R]};
for(var Hpr=function(B,R,V){B.moduleCount=B.typeNumber*4+17;B.modules=Array(B.moduleCount);for(var e=0;e<B.moduleCount;e++){B.modules[e]=Array(B.moduleCount);for(var X=0;X<B.moduleCount;X++)B.modules[e][X]=null}Yc7(B,0,0);Yc7(B,B.moduleCount-7,0);Yc7(B,0,B.moduleCount-7);e=hMj[B.typeNumber-1];for(X=0;X<e.length;X++)for(var Y=0;Y<e.length;Y++){var t=e[X],b=e[Y];if(B.modules[t][b]==null)for(var J=-2;J<=2;J++)for(var G=-2;G<=2;G++)B.modules[t+J][b+G]=J==-2||J==2||G==-2||G==2||J==0&&G==0?!0:!1}for(e=
8;e<B.moduleCount-8;e++)B.modules[e][6]==null&&(B.modules[e][6]=e%2==0);for(e=8;e<B.moduleCount-8;e++)B.modules[6][e]==null&&(B.modules[6][e]=e%2==0);e=B.errorCorrectLevel<<3|V;for(X=e<<10;UC(X)-UC(1335)>=0;)X^=1335<<UC(X)-UC(1335);e=(e<<10|X)^21522;for(X=0;X<15;X++)Y=!R&&(e>>X&1)==1,X<6?B.modules[X][8]=Y:X<8?B.modules[X+1][8]=Y:B.modules[B.moduleCount-15+X][8]=Y;for(X=0;X<15;X++)Y=!R&&(e>>X&1)==1,X<8?B.modules[8][B.moduleCount-X-1]=Y:X<9?B.modules[8][15-X-1+1]=Y:B.modules[8][15-X-1]=Y;B.modules[B.moduleCount-
8][8]=!R;if(B.typeNumber>=7){e=B.typeNumber;for(X=e<<12;UC(X)-UC(7973)>=0;)X^=7973<<UC(X)-UC(7973);e=e<<12|X;for(X=0;X<18;X++)Y=!R&&(e>>X&1)==1,B.modules[Math.floor(X/3)][X%3+B.moduleCount-8-3]=Y;for(X=0;X<18;X++)Y=!R&&(e>>X&1)==1,B.modules[X%3+B.moduleCount-8-3][Math.floor(X/3)]=Y}if(B.dataCache==null){X=B.typeNumber;Y=B.dataList;R=B.errorCorrectLevel;e=tP2(X,R);if(e==void 0)throw Error("tk`"+X+"`"+R);t=e.length/3;R=[];for(b=0;b<t;b++){J=e[b*3];G=e[b*3+1];for(var y=e[b*3+2],S=0;S<J;S++)R.push(new jLn(G,
y))}e=new Ur4;for(t=0;t<Y.length;t++)b=Y[t],e.put(b.mode,4),e.put(b.getLength(),WBn(b.mode,X)),b.write(e);for(t=X=0;t<R.length;t++)X+=R[t].dataCount;if(e.length>X*8)throw Error("nk`"+e.length+"`"+X*8);for(e.length+4<=X*8&&e.put(0,4);e.length%8!=0;)bgj(e,!1);for(;!(e.length>=X*8);){e.put(236,8);if(e.length>=X*8)break;e.put(17,8)}Y=X=G=0;t=Array(R.length);b=Array(R.length);for(J=0;J<R.length;J++){S=R[J].dataCount;var M=R[J].totalCount-S;X=Math.max(X,S);Y=Math.max(Y,M);t[J]=Array(S);for(y=0;y<t[J].length;y++)t[J][y]=
255&e.buffer[y+G];G+=S;y=M;S=new lU([1],0);for(M=0;M<y;M++)S=S.multiply(new lU([1,Jwj(M)],0));y=S;S=(new lU(t[J],y.getLength()-1)).mod(y);b[J]=Array(y.getLength()-1);for(y=0;y<b[J].length;y++)M=y+S.getLength()-b[J].length,b[J][y]=M>=0?S.get(M):0}for(y=e=0;y<R.length;y++)e+=R[y].totalCount;e=Array(e);for(y=G=0;y<X;y++)for(J=0;J<R.length;J++)y<t[J].length&&(e[G++]=t[J][y]);for(y=0;y<Y;y++)for(J=0;J<R.length;J++)y<b[J].length&&(e[G++]=b[J][y]);B.dataCache=e}R=B.dataCache;e=-1;X=B.moduleCount-1;Y=7;t=
0;for(b=B.moduleCount-1;b>0;b-=2)for(b==6&&b--;;){for(J=0;J<2;J++)B.modules[X][b-J]==null&&(G=!1,t<R.length&&(G=(R[t]>>>Y&1)==1),jkU(V,X,b-J)&&(G=!G),B.modules[X][b-J]=G,Y--,Y==-1&&(t++,Y=7));X+=e;if(X<0||B.moduleCount<=X){X-=e;e=-e;break}}},Yc7=function(B,R,V){for(var e=-1;e<=7;e++)if(!(R+e<=-1||B.moduleCount<=R+e))for(var X=-1;X<=7;X++)V+X<=-1||B.moduleCount<=V+X||(B.modules[R+e][V+X]=0<=e&&e<=6&&(X==0||X==6)||0<=X&&X<=6&&(e==0||e==6)||2<=e&&e<=4&&2<=X&&X<=4?!0:!1)},Mkz=function(B){for(var R=0,
V=0,e=0;e<8;e++){Hpr(B,!0,e);
var X=B;for(var Y=X.moduleCount,t=0,b=0;b<Y;b++)for(var J=0;J<Y;J++){for(var G=0,y=X.isDark(b,J),S=-1;S<=1;S++)if(!(b+S<0||Y<=b+S))for(var M=-1;M<=1;M++)J+M<0||Y<=J+M||(S!=0||M!=0)&&y==X.isDark(b+S,J+M)&&G++;G>5&&(t+=3+G-5)}for(b=0;b<Y-1;b++)for(J=0;J<Y-1;J++)if(G=0,X.isDark(b,J)&&G++,X.isDark(b+1,J)&&G++,X.isDark(b,J+1)&&G++,X.isDark(b+1,J+1)&&G++,G==0||G==4)t+=3;for(b=0;b<Y;b++)for(J=0;J<Y-6;J++)X.isDark(b,J)&&!X.isDark(b,J+1)&&X.isDark(b,J+2)&&X.isDark(b,J+3)&&X.isDark(b,J+4)&&!X.isDark(b,J+5)&&
X.isDark(b,J+6)&&(t+=40);for(J=0;J<Y;J++)for(b=0;b<Y-6;b++)X.isDark(b,J)&&!X.isDark(b+1,J)&&X.isDark(b+2,J)&&X.isDark(b+3,J)&&X.isDark(b+4,J)&&!X.isDark(b+5,J)&&X.isDark(b+6,J)&&(t+=40);for(J=G=0;J<Y;J++)for(b=0;b<Y;b++)X.isDark(b,J)&&G++;X=t+=Math.abs(100*G/Y/Y-50)/5*10;if(e==0||R>X)R=X,V=e}return V},hMj=[[],
[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]],UC=function(B){for(var R=0;B!=0;)R++,B>>>=1;return R},jkU=function(B,R,V){switch(B){case 0:return(R+V)%2==0;
case 1:return R%2==0;case 2:return V%3==0;case 3:return(R+V)%3==0;case 4:return(Math.floor(R/2)+Math.floor(V/3))%2==0;case 5:return R*V%2+R*V%3==0;case 6:return(R*V%2+R*V%3)%2==0;case 7:return(R*V%3+(R+V)%2)%2==0;default:throw Error("ok`"+B);}},WBn=function(B,R){if(1<=R&&R<10)switch(B){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+B);}else if(R<27)switch(B){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+B);}else if(R<41)switch(B){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+B);}else throw Error("qk`"+R);},NB=function(B){if(B<1)throw Error("rk`"+B);
return Upo[B]},Jwj=function(B){for(;B<0;)B+=255;
for(;B>=256;)B-=255;return GI[B]},GI=Array(256),Upo=Array(256),NOm=0;NOm<8;NOm++)GI[NOm]=1<<NOm;
for(var ya=8;ya<256;ya++)GI[ya]=GI[ya-4]^GI[ya-5]^GI[ya-6]^GI[ya-8];for(var GA6=0;GA6<255;GA6++)Upo[GI[GA6]]=GA6;lU.prototype.get=function(B){return this.num[B]};
lU.prototype.getLength=function(){return this.num.length};
lU.prototype.multiply=function(B){for(var R=Array(this.getLength()+B.getLength()-1),V=0;V<this.getLength();V++)for(var e=0;e<B.getLength();e++)R[V+e]^=Jwj(NB(this.get(V))+NB(B.get(e)));return new lU(R,0)};
lU.prototype.mod=function(B){if(this.getLength()-B.getLength()<0)return this;for(var R=NB(this.get(0))-NB(B.get(0)),V=Array(this.getLength()),e=0;e<this.getLength();e++)V[e]=this.get(e);for(e=0;e<B.getLength();e++)V[e]^=Jwj(NB(B.get(e))+R);return(new lU(V,0)).mod(B)};
var yw6=[[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]],tP2=function(B,R){switch(R){case 1:return yw6[(B-1)*4];case 0:return yw6[(B-1)*4+1];case 3:return yw6[(B-1)*4+2];case 2:return yw6[(B-1)*4+3]}};
Ur4.prototype.get=function(B){return(this.buffer[Math.floor(B/8)]>>>7-B%8&1)==1};
Ur4.prototype.put=function(B,R){for(var V=0;V<R;V++)bgj(this,(B>>>R-V-1&1)==1)};
var bgj=function(B,R){var V=Math.floor(B.length/8);B.buffer.length<=V&&B.buffer.push(0);R&&(B.buffer[V]|=128>>>B.length%8);B.length++},jT=[[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]],yZU=function(){var B=function(R,V){this.JSC$17282__el=R;this.JSC$17282__htOption=V};
B.prototype.draw=function(R){function V(y,S){y=document.createElementNS("http://www.w3.org/2000/svg",y);for(var M in S)S.hasOwnProperty(M)&&(M==="href"?_.U_4(y,S[M]):_.cB([_.PR(oXU),_.PR(BOe),_.PR(RMi),_.PR(VP2),_.PR(eMe),_.PR(XWn),_.PR(pWz)],y,M,S[M]));return y}
var e=this.JSC$17282__htOption,X=this.JSC$17282__el,Y=R.moduleCount;this.clear();var t=V("svg",{viewBox:"0 0 "+String(Y)+" "+String(Y),width:"100%",height:"100%",fill:e.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});X.appendChild(t);t.appendChild(V("rect",{fill:e.colorLight,width:"100%",height:"100%"}));t.appendChild(V("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var b=0;b<Y;b++)for(var J=0;J<Y;J++)if(R.isDark(b,J)){var G=V("use",{x:String(b),y:String(J),href:"#template"});
t.appendChild(G)}};
B.prototype.clear=function(){for(;this.JSC$17282__el.hasChildNodes();)this.JSC$17282__el.removeChild(this.JSC$17282__el.lastChild)};
return B}(),GEm=document.documentElement.tagName.toLowerCase()==="svg"?yZU:typeof CanvasRenderingContext2D!="undefined"?function(){var B=function(R,V){this._bIsPainted=!1;
NTe();this.JSC$17282__htOption=V;this._elCanvas=document.createElement("canvas");this._elCanvas.width=V.width;this._elCanvas.height=V.height;R.appendChild(this._elCanvas);this.JSC$17282__el=R;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$17282__el.appendChild(this._elImage);this._bSupportDataURI=null};
B.prototype._onMakeImage=function(){var R=this._elCanvas.toDataURL("image/png");this._elImage.src=R;this._elImage.style.display="block";this._elCanvas.style.display="none"};
B.prototype._safeSetDataURI=function(R,V){var e=this;e._fFail=V;e._fSuccess=R;e._bSupportDataURI===null?(R=_.jr("IMG"),V=function(){e._bSupportDataURI=!1;e._fFail&&e._fFail.call(e)},R.onabort=V,R.onerror=V,R.onload=function(){e._bSupportDataURI=!0;
e._fSuccess&&e._fSuccess.call(e)},R.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):e._bSupportDataURI===!0&&e._fSuccess?e._fSuccess.call(e):e._bSupportDataURI===!1&&e._fFail&&e._fFail.call(e)};
B.prototype.draw=function(R){var V=this._oContext,e=this.JSC$17282__htOption,X=R.moduleCount,Y=e.width/X,t=e.height/X,b=Math.round(Y),J=Math.round(t);this._elImage.style.display="none";this.clear();for(var G=0;G<X;G++)for(var y=0;y<X;y++){var S=R.isDark(G,y),M=y*Y,f=G*t;V.strokeStyle=S?e.colorDark:e.colorLight;V.lineWidth=1;V.fillStyle=S?e.colorDark:e.colorLight;V.fillRect(M,f,Y,t);V.strokeRect(Math.floor(M)+.5,Math.floor(f)+.5,b,J);V.strokeRect(Math.ceil(M)-.5,Math.ceil(f)-.5,b,J)}this._bIsPainted=
!0};
B.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
B.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
B.prototype.round=function(R){return R?Math.floor(R*1E3)/1E3:R};
return B}():function(){var B=function(R,V){this.JSC$17282__el=R;
this.JSC$17282__htOption=V};
B.prototype.draw=function(R){for(var V=this.JSC$17282__htOption,e=this.JSC$17282__el,X=R.moduleCount,Y=Math.floor(V.width/X),t=Math.floor(V.height/X),b=['<table style="border:0;border-collapse:collapse;">'],J=0;J<X;J++){b.push("<tr>");for(var G=0;G<X;G++)b.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+Y+"px;height:"+t+"px;background-color:"+(R.isDark(J,G)?V.colorDark:V.colorLight)+';"></td>');b.push("</tr>")}b.push("</table>");R=b.join("");R=_.dT_(_.T45,R);_.qV(e,R);
R=e.childNodes[0];X=(V.width-R.offsetWidth)/2;Y=(V.height-R.offsetHeight)/2;X>0&&Y>0&&(R.style.margin=Y+"px "+X+"px")};
B.prototype.clear=function(){this.JSC$17282__el.textContent=""};
return B}();
kEr.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17285__android||this.JSC$17285__android>=3)&&this._oDrawing.makeImage()};
kEr.prototype.clear=function(){this._oDrawing.clear()};
_.R5.QRCode=kEr;var Sce={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var ST=function(){};
ST.prototype.stringify=function(B){return _.R5.JSON.stringify(B,void 0)};
ST.prototype.parse=function(B){return _.R5.JSON.parse(B,void 0)};var Hgo=function(){_.Un.call(this,"z")};
_.eY(Hgo,_.Un);var MP4=function(){_.Un.call(this,"y")};
_.eY(MP4,_.Un);var kAe=null,Dpi=function(){return kAe=kAe||new _.H_},fAe=function(B){_.Un.call(this,"serverreachability",B)};
_.eY(fAe,_.Un);var Hl=function(B){var R=Dpi();R.dispatchEvent(new fAe(R,B))},lAe=function(B){_.Un.call(this,"statevent",B)};
_.eY(lAe,_.Un);var MB=function(B){var R=Dpi();R.dispatchEvent(new lAe(R,B))},zMm=function(B,R,V,e){_.Un.call(this,"timingevent",B);
this.size=R;this.rtt=V;this.retries=e};
_.eY(zMm,_.Un);var aA4=function(B,R,V){var e=Dpi();e.dispatchEvent(new zMm(e,B,R,V))},kM=function(B,R){if(typeof B!=="function")throw Error("vk");
return _.R5.setTimeout(function(){B()},R)};var DJ=function(){this.redactEnabled_=!0};
DJ.prototype.disableRedact=function(){this.redactEnabled_=!1};
var dpn=function(B,R,V,e,X,Y){B.info(function(){if(B.redactEnabled_)if(Y){var t="";for(var b=Y.split("&"),J=0;J<b.length;J++){var G=b[J].split("=");if(G.length>1){var y=G[0];G=G[1];var S=y.split("_");t=S.length>=2&&S[1]=="type"?t+(y+"="+G+"&"):t+(y+"=redacted&")}}}else t=null;else t=Y;return"XMLHTTP REQ ("+e+") [attempt "+X+"]: "+R+"\n"+V+"\n"+t})},wWn=function(B,R,V,e,X,Y,t){B.info(function(){return"XMLHTTP RESP ("+e+") [ attempt "+X+"]: "+R+"\n"+V+"\n"+Y+" "+t})},fv=function(B,R,V,e){B.info(function(){return"XMLHTTP TEXT ("+
R+"): "+TO4(B,V)+(e?" "+e:"")})},xp4=function(B,R){B.info(function(){return"TIMEOUT: "+R})};
DJ.prototype.debug=function(){};
DJ.prototype.info=function(){};
DJ.prototype.warning=function(){};
var TO4=function(B,R){if(!B.redactEnabled_)return R;if(!R)return null;try{var V=JSON.parse(R);if(V)for(var e=0;e<V.length;e++)if(Array.isArray(V[e])){var X=V[e];if(!(X.length<2)){var Y=X[1];if(Array.isArray(Y)&&!(Y.length<1)){var t=Y[0];if(t!="noop"&&t!="stop"&&t!="close")for(var b=1;b<Y.length;b++)Y[b]=""}}}return(0,_.aB)(V)}catch(J){return B.debug("Exception parsing expected JS array - probably was not JS"),R}};var lX=function(B,R,V,e,X){this.JSC$17307_channel_=B;this.JSC$17307_channelDebug_=R;this.sid_=V;this.JSC$17307_rid_=e;this.JSC$17307_retryId_=X||1;this.JSC$17307_eventHandler_=new _.oL(this);this.timeout_=45E3;this.JSC$17307_extraHeaders_=null;this.JSC$17307_successful_=!1;this.JSC$17307_postData_=this.JSC$17307_requestUri_=this.JSC$17307_baseUri_=this.JSC$17307_type_=this.JSC$17307_requestStartTime_=this.JSC$17307_watchDogTimeoutTime_=this.JSC$17307_watchDogTimerId_=null;this.JSC$17307_pendingMessages_=
[];this.JSC$17307_xmlHttp_=null;this.JSC$17307_xmlHttpChunkStart_=0;this.JSC$17307_lastError_=this.JSC$17307_verb_=null;this.JSC$17307_lastStatusCode_=-1;this.JSC$17307_cancelled_=!1;this.JSC$17307_readyStateChangeThrottleMs_=0;this.JSC$17307_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new LB2},LB2=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},vXn=function(B,R){switch(B){case 0:return"Non-200 return code ("+R+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},KBz={},IAU={};
lX.prototype.setTimeout=function(B){this.timeout_=B};
var Qki=function(B,R,V){B.JSC$17307_type_=1;B.JSC$17307_baseUri_=_.X8(R.clone());B.JSC$17307_postData_=V;B.decodeChunks_=!0;EXU(B,null)},EXU=function(B,R){B.JSC$17307_requestStartTime_=Date.now();
qc2(B);B.JSC$17307_requestUri_=B.JSC$17307_baseUri_.clone();pM(B.JSC$17307_requestUri_,"t",B.JSC$17307_retryId_);B.JSC$17307_xmlHttpChunkStart_=0;var V=B.JSC$17307_channel_.JSC$17326_supportsCrossDomainXhrs_;B.fetchResponseState_=new LB2;B.JSC$17307_xmlHttp_=cwo(B.JSC$17307_channel_,V?R:null,!B.JSC$17307_postData_);B.JSC$17307_readyStateChangeThrottleMs_>0&&(B.JSC$17307_readyStateChangeThrottle_=new _.o7((0,_.M2)(B.JSC$17311_xmlHttpHandler_,B,B.JSC$17307_xmlHttp_),B.JSC$17307_readyStateChangeThrottleMs_));
B.JSC$17307_eventHandler_.listen(B.JSC$17307_xmlHttp_,"readystatechange",B.JSC$17311_readyStateChangeHandler_);R=B.JSC$17307_extraHeaders_?_.M_.clone(B.JSC$17307_extraHeaders_):{};B.JSC$17307_postData_?(B.JSC$17307_verb_||(B.JSC$17307_verb_="POST"),R["Content-Type"]="application/x-www-form-urlencoded",B.JSC$17307_xmlHttp_.send(B.JSC$17307_requestUri_,B.JSC$17307_verb_,B.JSC$17307_postData_,R)):(B.JSC$17307_verb_="GET",B.JSC$17307_xmlHttp_.send(B.JSC$17307_requestUri_,B.JSC$17307_verb_,null,R));Hl(1);
dpn(B.JSC$17307_channelDebug_,B.JSC$17307_verb_,B.JSC$17307_requestUri_,B.JSC$17307_rid_,B.JSC$17307_retryId_,B.JSC$17307_postData_)};
lX.prototype.JSC$17311_readyStateChangeHandler_=function(B){B=B.target;var R=this.JSC$17307_readyStateChangeThrottle_;R&&_.wK(B)==3?(this.JSC$17307_channelDebug_.debug("Throttling readystatechange."),R.fire()):this.JSC$17311_xmlHttpHandler_(B)};
lX.prototype.JSC$17311_xmlHttpHandler_=function(B){try{B==this.JSC$17307_xmlHttp_?Aw2(this):this.JSC$17307_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(R){this.JSC$17307_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),ige(this)}finally{}};
var Aw2=function(B){var R=_.wK(B.JSC$17307_xmlHttp_),V=B.JSC$17307_xmlHttp_.JSC$7703_lastErrorCode_,e=B.JSC$17307_xmlHttp_.getStatus();if(!(R<3||R==3&&!ige(B))){B.JSC$17307_cancelled_||R!=4||V==7||(V==8||e<=0?Hl(3):Hl(2));sk4(B);var X=B.JSC$17307_xmlHttp_.getStatus();B.JSC$17307_lastStatusCode_=X;V=FB2(B);ige(B)||B.JSC$17307_channelDebug_.debug(function(){return"No response text for uri "+B.JSC$17307_requestUri_+" status "+X});
B.JSC$17307_successful_=X==200;wWn(B.JSC$17307_channelDebug_,B.JSC$17307_verb_,B.JSC$17307_requestUri_,B.JSC$17307_rid_,B.JSC$17307_retryId_,R,X);if(B.JSC$17307_successful_){if(B.decodeInitialResponse_&&!B.initialResponseDecoded_)if(e=rwN(B))fv(B.JSC$17307_channelDebug_,B.JSC$17307_rid_,e,"Initial handshake response via X-HTTP-Initial-Response"),B.initialResponseDecoded_=!0,gX2(B,e);else{B.JSC$17307_successful_=!1;B.JSC$17307_lastError_=3;MB(12);B.JSC$17307_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
B.JSC$17307_rid_+")");zI(B);ad(B);return}B.decodeChunks_?Zgz(B,R,V):(fv(B.JSC$17307_channelDebug_,B.JSC$17307_rid_,V,null),gX2(B,V));R==4&&zI(B);B.JSC$17307_successful_&&!B.JSC$17307_cancelled_&&(R==4?mpn(B.JSC$17307_channel_,B):(B.JSC$17307_successful_=!1,qc2(B)))}else Faz(B.JSC$17307_xmlHttp_),X==400&&V.indexOf("Unknown SID")>0?(B.JSC$17307_lastError_=3,MB(12),B.JSC$17307_channelDebug_.warning("XMLHTTP Unknown SID ("+B.JSC$17307_rid_+")")):(B.JSC$17307_lastError_=0,MB(13),B.JSC$17307_channelDebug_.warning("XMLHTTP Bad status "+
X+" ("+B.JSC$17307_rid_+")")),zI(B),ad(B)}},rwN=function(B){return B.JSC$17307_xmlHttp_&&(B=jd(B.JSC$17307_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Wd(B)?B:null},FB2=function(B){if(!$p4(B))return B.JSC$17307_xmlHttp_.getResponseText();
var R=B.JSC$17307_xmlHttp_.getResponse();if(R==="")return"";var V="",e=R.length,X=_.wK(B.JSC$17307_xmlHttp_)==4;if(!B.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return zI(B),ad(B),"";B.fetchResponseState_.textDecoder=new _.R5.TextDecoder}for(var Y=0;Y<e;Y++)B.fetchResponseState_.responseArrivedForFetch=!0,V+=B.fetchResponseState_.textDecoder.decode(R[Y],{stream:!(X&&Y==e-1)});R.length=0;B.fetchResponseState_.responseBuffer+=V;B.JSC$17307_xmlHttpChunkStart_=0;return B.fetchResponseState_.responseBuffer},
ige=function(B){return B.JSC$17307_xmlHttp_?B.fetchResponseState_.responseArrivedForFetch?!0:!(!B.JSC$17307_xmlHttp_.getResponseText()&&!B.JSC$17307_xmlHttp_.getResponse()):!1},$p4=function(B){return B.JSC$17307_xmlHttp_?B.JSC$17307_verb_=="GET"&&B.JSC$17307_type_!=2&&B.JSC$17307_channel_.usesFetchStreams_:!1},Zgz=function(B,R,V){for(var e=!0,X;!B.JSC$17307_cancelled_&&B.JSC$17307_xmlHttpChunkStart_<V.length;)if(X=CCz(B,V),X==IAU){R==4&&(B.JSC$17307_lastError_=4,MB(14),e=!1);
fv(B.JSC$17307_channelDebug_,B.JSC$17307_rid_,null,"[Incomplete Response]");break}else if(X==KBz){B.JSC$17307_lastError_=4;MB(15);fv(B.JSC$17307_channelDebug_,B.JSC$17307_rid_,V,"[Invalid Chunk]");e=!1;break}else fv(B.JSC$17307_channelDebug_,B.JSC$17307_rid_,X,null),gX2(B,X);$p4(B)&&B.JSC$17307_xmlHttpChunkStart_!=0&&(B.fetchResponseState_.responseBuffer=B.fetchResponseState_.responseBuffer.slice(B.JSC$17307_xmlHttpChunkStart_),B.JSC$17307_xmlHttpChunkStart_=0);R!=4||V.length!=0||B.fetchResponseState_.responseArrivedForFetch||
(B.JSC$17307_lastError_=1,MB(16),e=!1);B.JSC$17307_successful_=B.JSC$17307_successful_&&e;e?V.length>0&&!B.firstByteReceived_&&(B.firstByteReceived_=!0,R=B.JSC$17307_channel_,R.JSC$17326_backChannelRequest_==B&&R.detectBufferingProxy_&&!R.bpDetectionDone_&&(R.JSC$17326_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+V.length),PCm(R),R.bpDetectionDone_=!0,MB(11))):(fv(B.JSC$17307_channelDebug_,B.JSC$17307_rid_,V,"[Invalid Chunked Response]"),zI(B),ad(B))},CCz=function(B,R){var V=
B.JSC$17307_xmlHttpChunkStart_,e=R.indexOf("\n",V);
if(e==-1)return IAU;V=Number(R.substring(V,e));if(isNaN(V))return KBz;e+=1;if(e+V>R.length)return IAU;R=R.slice(e,e+V);B.JSC$17307_xmlHttpChunkStart_=e+V;return R};
lX.prototype.cancel=function(){this.JSC$17307_cancelled_=!0;zI(this)};
var qc2=function(B){B.JSC$17307_watchDogTimeoutTime_=Date.now()+B.timeout_;nXN(B,B.timeout_)},nXN=function(B,R){if(B.JSC$17307_watchDogTimerId_!=null)throw Error("wk");
B.JSC$17307_watchDogTimerId_=kM((0,_.M2)(B.JSC$17311_onWatchDogTimeout_,B),R)},sk4=function(B){B.JSC$17307_watchDogTimerId_&&(_.R5.clearTimeout(B.JSC$17307_watchDogTimerId_),B.JSC$17307_watchDogTimerId_=null)};
lX.prototype.JSC$17311_onWatchDogTimeout_=function(){this.JSC$17307_watchDogTimerId_=null;var B=Date.now();B-this.JSC$17307_watchDogTimeoutTime_>=0?(xp4(this.JSC$17307_channelDebug_,this.JSC$17307_requestUri_),this.JSC$17307_type_!=2&&(Hl(3),MB(17)),zI(this),this.JSC$17307_lastError_=2,ad(this)):(this.JSC$17307_channelDebug_.warning("WatchDog timer called too early"),nXN(this,this.JSC$17307_watchDogTimeoutTime_-B))};
var ad=function(B){B.JSC$17307_channel_.state_==0||B.JSC$17307_cancelled_||mpn(B.JSC$17307_channel_,B)},zI=function(B){sk4(B);
_.Cx(B.JSC$17307_readyStateChangeThrottle_);B.JSC$17307_readyStateChangeThrottle_=null;B.JSC$17307_eventHandler_.removeAll();if(B.JSC$17307_xmlHttp_){var R=B.JSC$17307_xmlHttp_;B.JSC$17307_xmlHttp_=null;R.abort();R.dispose()}};
lX.prototype.getLastError=function(){return this.JSC$17307_lastError_};
var gX2=function(B,R){try{var V=B.JSC$17307_channel_;if(V.state_!=0&&(V.JSC$17326_backChannelRequest_==B||uC6(V.forwardChannelRequestPool_,B)))if(!B.initialResponseDecoded_&&uC6(V.forwardChannelRequestPool_,B)&&V.state_==3){try{var e=V.wireCodec_.JSC$17321_parser_.parse(R)}catch(b){e=null}if(Array.isArray(e)&&e.length==3){R=e;if(R[0]==0)a:if(V.JSC$17326_channelDebug_.debug("Server claims our backchannel is missing."),V.JSC$17326_backChannelTimerId_)V.JSC$17326_channelDebug_.debug("But we are currently starting the request.");
else{if(V.JSC$17326_backChannelRequest_)if(V.JSC$17326_backChannelRequest_.JSC$17307_requestStartTime_+3E3<B.JSC$17307_requestStartTime_)Ogm(V),o64(V);else break a;else V.JSC$17326_channelDebug_.warning("We do not have a BackChannel established");Bpe(V);MB(18)}else{V.JSC$17326_lastPostResponseArrayId_=R[1];var X=V.JSC$17326_lastPostResponseArrayId_-V.JSC$17326_lastArrayId_;if(0<X){var Y=R[2];V.JSC$17326_channelDebug_.debug(Y+" bytes (in "+X+" arrays) are outstanding on the BackChannel");Y<37500&&
V.enableStreaming_&&V.JSC$17326_backChannelRetryCount_==0&&!V.JSC$17326_deadBackChannelTimerId_&&(V.JSC$17326_deadBackChannelTimerId_=kM((0,_.M2)(V.JSC$17328_onBackChannelDead_,V),6E3))}}if(RPr(V.forwardChannelRequestPool_)<=1&&V.forwardChannelFlushedCallback_){try{V.forwardChannelFlushedCallback_()}catch(b){}V.forwardChannelFlushedCallback_=void 0}}else V.JSC$17326_channelDebug_.debug("Bad POST response data returned"),dR(V,11)}else if((B.initialResponseDecoded_||V.JSC$17326_backChannelRequest_==
B)&&Ogm(V),!_.Wd(R)){var t=V.wireCodec_.JSC$17321_parser_.parse(R);V.onInput_(t,B)}Hl(4)}catch(b){}};var VH4=function(B,R){this.JSC$17314_mapId=B;this.map=R;this.context=null};var ePj=function(B){this.maxPoolSizeConfigured_=B||10;_.R5.PerformanceNavigationTiming?(B=_.R5.performance.getEntriesByType("navigation"),B=B.length>0&&(B[0].nextHopProtocol=="hq"||B[0].nextHopProtocol=="h2")):B=!!(_.R5.chrome&&_.R5.chrome.loadTimes&&_.R5.chrome.loadTimes()&&_.R5.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17317_maxSize_=B?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17317_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17317_request_=null;this.JSC$17317_pendingMessages_=
[]},X92=function(B){return B.JSC$17317_request_?!0:B.requestPool_?B.requestPool_.size>=B.JSC$17317_maxSize_:!1},RPr=function(B){return B.JSC$17317_request_?1:B.requestPool_?B.requestPool_.size:0},uC6=function(B,R){return B.JSC$17317_request_?B.JSC$17317_request_==R:B.requestPool_?B.requestPool_.has(R):!1},p94=function(B,R){B.requestPool_?B.requestPool_.add(R):B.JSC$17317_request_=R},Yjo=function(B,R){B.JSC$17317_request_&&B.JSC$17317_request_==R?B.JSC$17317_request_=null:B.requestPool_&&B.requestPool_.has(R)&&
B.requestPool_.delete(R)};
ePj.prototype.cancel=function(){this.JSC$17317_pendingMessages_=hPn(this);if(this.JSC$17317_request_)this.JSC$17317_request_.cancel(),this.JSC$17317_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var B=_.h(this.requestPool_.values()),R=B.next();!R.done;R=B.next())R.value.cancel();this.requestPool_.clear()}};
var hPn=function(B){if(B.JSC$17317_request_!=null)return B.JSC$17317_pendingMessages_.concat(B.JSC$17317_request_.JSC$17307_pendingMessages_);if(B.requestPool_!=null&&B.requestPool_.size!==0){var R=B.JSC$17317_pendingMessages_;B=_.h(B.requestPool_.values());for(var V=B.next();!V.done;V=B.next())R=R.concat(V.value.JSC$17307_pendingMessages_);return R}return _.OS(B.JSC$17317_pendingMessages_)},tHU=function(B,R){B.JSC$17317_pendingMessages_=B.JSC$17317_pendingMessages_.concat(R)};var WGr=function(B,R){var V=new DJ;V.debug("TestLoadImage: loading "+B);if(_.R5.Image){var e=new Image;e.onload=_.JE(wR,V,"TestLoadImage: loaded",!0,R,e);e.onerror=_.JE(wR,V,"TestLoadImage: error",!1,R,e);e.onabort=_.JE(wR,V,"TestLoadImage: abort",!1,R,e);e.ontimeout=_.JE(wR,V,"TestLoadImage: timeout",!1,R,e);_.R5.setTimeout(function(){if(e.ontimeout)e.ontimeout()},1E4);
e.src=B}else R(!1)},b8i=function(B,R){var V=new DJ,e=new AbortController,X=setTimeout(function(){e.abort();
wR(V,"TestPingServer: timeout",!1,R)},1E4);
fetch(B,{signal:e.signal}).then(function(Y){clearTimeout(X);Y.ok?wR(V,"TestPingServer: ok",!0,R):wR(V,"TestPingServer: server error",!1,R)}).catch(function(){clearTimeout(X);
wR(V,"TestPingServer: error",!1,R)})},wR=function(B,R,V,e,X){try{B.debug(R),X&&(X.onload=null,X.onerror=null,X.onabort=null,X.ontimeout=null),e(V)}catch(Y){}};var Jfi=function(){this.JSC$17321_parser_=new ST},jcr=function(B,R,V){var e=V||"";
try{_.A4_(B,function(X,Y){var t=X;_.Xa(X)&&(t=(0,_.aB)(X));R.push(e+Y+"="+encodeURIComponent(t))})}catch(X){throw R.push(e+"type="+encodeURIComponent("_badmap")),X;
}};var TI=function(B,R,V){return V&&V.internalChannelParams?V.internalChannelParams[B]||R:R},xM=function(B){this.serverVersion_=0;
this.JSC$17326_outgoingMaps_=[];this.JSC$17326_channelDebug_=new DJ;this.JSC$17326_hostPrefix_=this.JSC$17326_backChannelUri_=this.JSC$17326_forwardChannelUri_=this.JSC$17326_path_=this.JSC$17326_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17326_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17326_extraHeaders_=null;this.JSC$17326_nextMapId_=this.JSC$17326_nextRid_=0;this.JSC$17326_failFast_=TI("failFast",!1,B);this.enableStreaming_=this.JSC$17326_deadBackChannelTimerId_=
this.JSC$17326_backChannelTimerId_=this.JSC$17326_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17326_lastPostResponseArrayId_=this.JSC$17326_lastArrayId_=-1;this.JSC$17326_backChannelAttemptId_=this.JSC$17326_backChannelRetryCount_=this.JSC$17326_forwardChannelRetryCount_=0;this.JSC$17326_baseRetryDelayMs_=TI("baseRetryDelayMs",5E3,B);this.JSC$17326_retryDelaySeedMs_=TI("retryDelaySeedMs",1E4,B);this.JSC$17326_forwardChannelMaxRetries_=
TI("forwardChannelMaxRetries",2,B);this.JSC$17326_forwardChannelRequestTimeoutMs_=TI("forwardChannelRequestTimeoutMs",2E4,B);this.JSC$17326_xmlHttpFactory_=B&&B.xmlHttpFactory||void 0;this.networkTestUrl_=B&&B.networkTestUrl||void 0;this.usesFetchStreams_=B&&B.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17326_supportsCrossDomainXhrs_=B&&B.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new ePj(B&&B.concurrentRequestLimit);this.wireCodec_=new Jfi;this.fastHandshake_=
B&&B.fastHandshake||!1;this.encodeInitMessageHeaders_=B&&B.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17326_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=B&&B.blockingHandshake||!1;B&&B.disableRedact&&this.JSC$17326_channelDebug_.disableRedact();B&&B.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
B&&B.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;B&&B.longPollingTimeout&&B.longPollingTimeout>0&&(this.longPollingTimeout_=B.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
xM.prototype.JSC$17328_channelVersion_=8;xM.prototype.state_=1;
xM.prototype.connect=function(B,R,V,e){this.JSC$17326_channelDebug_.debug("connect()");MB(0);this.JSC$17326_path_=B;this.JSC$17326_extraParams_=R||{};V&&e!==void 0&&(this.JSC$17326_extraParams_.OSID=V,this.JSC$17326_extraParams_.OAID=e);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17326_channelDebug_.debug("connectChannel_()");B=U76(this,null,this.JSC$17326_path_);this.JSC$17326_channelDebug_.debug("GetForwardChannelUri: "+B);this.JSC$17326_forwardChannelUri_=B;Npn(this)};
xM.prototype.disconnect=function(){this.JSC$17326_channelDebug_.debug("disconnect()");Gs2(this);if(this.state_==3){var B=this.JSC$17326_nextRid_++,R=this.JSC$17326_forwardChannelUri_.clone();_.A4(R,"SID",this.sid_);_.A4(R,"RID",B);_.A4(R,"TYPE","terminate");Lv(this,R);B=new lX(this,this.JSC$17326_channelDebug_,this.sid_,B);B.JSC$17307_type_=2;B.JSC$17307_baseUri_=_.X8(R.clone());R=!1;if(_.R5.navigator&&_.R5.navigator.sendBeacon)try{R=_.R5.navigator.sendBeacon(B.JSC$17307_baseUri_.toString(),"")}catch(V){}!R&&
_.R5.Image&&((new Image).src=B.JSC$17307_baseUri_,R=!0);R||(B.JSC$17307_xmlHttp_=cwo(B.JSC$17307_channel_,null),B.JSC$17307_xmlHttp_.send(B.JSC$17307_baseUri_));B.JSC$17307_requestStartTime_=Date.now();qc2(B)}yfe(this)};
var o64=function(B){B.JSC$17326_backChannelRequest_&&(PCm(B),B.JSC$17326_backChannelRequest_.cancel(),B.JSC$17326_backChannelRequest_=null)},Gs2=function(B){o64(B);
B.JSC$17326_backChannelTimerId_&&(_.R5.clearTimeout(B.JSC$17326_backChannelTimerId_),B.JSC$17326_backChannelTimerId_=null);Ogm(B);B.forwardChannelRequestPool_.cancel();B.JSC$17326_forwardChannelTimerId_&&(typeof B.JSC$17326_forwardChannelTimerId_==="number"&&_.R5.clearTimeout(B.JSC$17326_forwardChannelTimerId_),B.JSC$17326_forwardChannelTimerId_=null)};
xM.prototype.getState=function(){return this.state_};
var Npn=function(B){X92(B.forwardChannelRequestPool_)||B.JSC$17326_forwardChannelTimerId_||(B.JSC$17326_forwardChannelTimerId_=!0,_.k3(B.JSC$17328_onStartForwardChannelTimer_,B),B.JSC$17326_forwardChannelRetryCount_=0)},H8e=function(B,R){if(RPr(B.forwardChannelRequestPool_)>=B.forwardChannelRequestPool_.JSC$17317_maxSize_-(B.JSC$17326_forwardChannelTimerId_?1:0))return!1;
if(B.JSC$17326_forwardChannelTimerId_)return B.JSC$17326_channelDebug_.debug("Use the retry request that is already scheduled."),B.JSC$17326_outgoingMaps_=R.JSC$17307_pendingMessages_.concat(B.JSC$17326_outgoingMaps_),!0;if(B.state_==1||B.state_==2||B.JSC$17326_forwardChannelRetryCount_>=(B.JSC$17326_failFast_?0:B.JSC$17326_forwardChannelMaxRetries_))return!1;B.JSC$17326_channelDebug_.debug("Going to retry POST");B.JSC$17326_forwardChannelTimerId_=kM((0,_.M2)(B.JSC$17328_onStartForwardChannelTimer_,
B,R),Sj2(B,B.JSC$17326_forwardChannelRetryCount_));B.JSC$17326_forwardChannelRetryCount_++;return!0};
xM.prototype.JSC$17328_onStartForwardChannelTimer_=function(B){if(this.JSC$17326_forwardChannelTimerId_)if(this.JSC$17326_forwardChannelTimerId_=null,this.JSC$17326_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!B){this.JSC$17326_channelDebug_.debug("open_()");this.JSC$17326_nextRid_=Math.floor(Math.random()*1E5);B=this.JSC$17326_nextRid_++;var R=new lX(this,this.JSC$17326_channelDebug_,"",B),V=this.JSC$17326_extraHeaders_;this.initHeaders_&&(V?(V=_.M_.clone(V),_.M_.extend(V,this.initHeaders_)):
V=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(R.JSC$17307_extraHeaders_=V,V=null);var e;if(this.fastHandshake_)a:{for(var X=e=0;X<this.JSC$17326_outgoingMaps_.length;X++){b:{var Y=this.JSC$17326_outgoingMaps_[X];if("__data__"in Y.map&&(Y=Y.map.__data__,typeof Y==="string")){Y=Y.length;break b}Y=void 0}if(Y===void 0)break;e+=Y;if(e>4096){e=X;break a}if(e===4096||X===this.JSC$17326_outgoingMaps_.length-1){e=X+1;break a}}e=1E3}else e=1E3;e=MHo(this,R,e);
X=this.JSC$17326_forwardChannelUri_.clone();_.A4(X,"RID",B);_.A4(X,"CVER",22);this.httpSessionIdParam_&&_.A4(X,"X-HTTP-Session-Id",this.httpSessionIdParam_);Lv(this,X);V&&(this.encodeInitMessageHeaders_?e="headers="+_.AS(FJ4(V))+"&"+e:this.httpHeadersOverwriteParam_&&rvU(X,this.httpHeadersOverwriteParam_,V));p94(this.forwardChannelRequestPool_,R);this.blockingHandshake_&&_.A4(X,"TYPE","init");this.fastHandshake_?(_.A4(X,"$req",e),_.A4(X,"SID","null"),R.decodeInitialResponse_=!0,Qki(R,X,null)):Qki(R,
X,e);this.state_=2}}else this.state_==3&&(B?ksj(this,B):this.JSC$17326_outgoingMaps_.length==0?this.JSC$17326_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):X92(this.forwardChannelRequestPool_)||(ksj(this),this.JSC$17326_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var ksj=function(B,R){var V;R?V=R.JSC$17307_rid_:V=B.JSC$17326_nextRid_++;var e=B.JSC$17326_forwardChannelUri_.clone();_.A4(e,"SID",B.sid_);_.A4(e,"RID",V);_.A4(e,"AID",B.JSC$17326_lastArrayId_);Lv(B,e);B.httpHeadersOverwriteParam_&&B.JSC$17326_extraHeaders_&&rvU(e,B.httpHeadersOverwriteParam_,B.JSC$17326_extraHeaders_);V=new lX(B,B.JSC$17326_channelDebug_,B.sid_,V,B.JSC$17326_forwardChannelRetryCount_+1);B.httpHeadersOverwriteParam_===null&&(V.JSC$17307_extraHeaders_=B.JSC$17326_extraHeaders_);R&&
(B.JSC$17326_outgoingMaps_=R.JSC$17307_pendingMessages_.concat(B.JSC$17326_outgoingMaps_));R=MHo(B,V,1E3);V.setTimeout(Math.round(B.JSC$17326_forwardChannelRequestTimeoutMs_*.5)+Math.round(B.JSC$17326_forwardChannelRequestTimeoutMs_*.5*Math.random()));p94(B.forwardChannelRequestPool_,V);Qki(V,e,R)},Lv=function(B,R){B.JSC$17326_extraParams_&&_.M_.forEach(B.JSC$17326_extraParams_,function(V,e){_.A4(R,e,V)});
B.handler_&&_.A4_({},function(V,e){_.A4(R,e,V)})},MHo=function(B,R,V){V=Math.min(B.JSC$17326_outgoingMaps_.length,V);
var e=B.handler_?(0,_.M2)(B.handler_.JSC$17332_badMapError,B.handler_,B):null;a:{for(var X=B.JSC$17326_outgoingMaps_,Y=-1;;){var t=["count="+V];Y==-1?V>0?(Y=X[0].JSC$17314_mapId,t.push("ofs="+Y)):Y=0:t.push("ofs="+Y);for(var b=!0,J=0;J<V;J++){var G=X[J].JSC$17314_mapId,y=X[J].map;G-=Y;if(G<0)Y=Math.max(0,X[J].JSC$17314_mapId-100),b=!1;else try{jcr(y,t,"req"+G+"_")}catch(S){e&&e(y)}}if(b){e=t.join("&");break a}}e=void 0}B=B.JSC$17326_outgoingMaps_.splice(0,V);R.JSC$17307_pendingMessages_=B;return e},
D7j=function(B){B.JSC$17326_backChannelRequest_||B.JSC$17326_backChannelTimerId_||(B.JSC$17326_backChannelAttemptId_=1,_.k3(B.JSC$17328_onStartBackChannelTimer_,B),B.JSC$17326_backChannelRetryCount_=0)},Bpe=function(B){if(B.JSC$17326_backChannelRequest_||B.JSC$17326_backChannelTimerId_||B.JSC$17326_backChannelRetryCount_>=3)return!1;
B.JSC$17326_channelDebug_.debug("Going to retry GET");B.JSC$17326_backChannelAttemptId_++;B.JSC$17326_backChannelTimerId_=kM((0,_.M2)(B.JSC$17328_onStartBackChannelTimer_,B),Sj2(B,B.JSC$17326_backChannelRetryCount_));B.JSC$17326_backChannelRetryCount_++;return!0};
xM.prototype.JSC$17328_onStartBackChannelTimer_=function(){this.JSC$17326_backChannelTimerId_=null;frN(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17326_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17326_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17326_backChannelRequest_+" "+this.handshakeRttMs_);else{var B=2*this.handshakeRttMs_;this.JSC$17326_channelDebug_.info("BP detection timer enabled: "+B);this.bpDetectionTimerId_=kM((0,_.M2)(this.onBpDetectionTimer_,
this),B)}};
xM.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17326_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17326_backChannelRequest_.JSC$17307_xmlHttp_!=null){var B=this.JSC$17326_backChannelRequest_.JSC$17307_xmlHttp_.getResponseText();B&&this.JSC$17326_channelDebug_.warning("Timer should have been cancelled : "+B)}this.JSC$17326_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;MB(10);o64(this);frN(this)}else this.JSC$17326_channelDebug_.warning("Invalid operation.")};
var PCm=function(B){B.bpDetectionTimerId_!=null&&(B.JSC$17326_channelDebug_.debug("Cancel the BP detection timer."),_.R5.clearTimeout(B.bpDetectionTimerId_),B.bpDetectionTimerId_=null)},frN=function(B){B.JSC$17326_channelDebug_.debug("Creating new HttpRequest");
B.JSC$17326_backChannelRequest_=new lX(B,B.JSC$17326_channelDebug_,B.sid_,"rpc",B.JSC$17326_backChannelAttemptId_);B.httpHeadersOverwriteParam_===null&&(B.JSC$17326_backChannelRequest_.JSC$17307_extraHeaders_=B.JSC$17326_extraHeaders_);B.JSC$17326_backChannelRequest_.JSC$17307_readyStateChangeThrottleMs_=0;var R=B.JSC$17326_backChannelUri_.clone();_.A4(R,"RID","rpc");_.A4(R,"SID",B.sid_);_.A4(R,"AID",B.JSC$17326_lastArrayId_);_.A4(R,"CI",B.enableStreaming_?"0":"1");!B.enableStreaming_&&B.longPollingTimeout_&&
_.A4(R,"TO",B.longPollingTimeout_);_.A4(R,"TYPE","xmlhttp");Lv(B,R);B.httpHeadersOverwriteParam_&&B.JSC$17326_extraHeaders_&&rvU(R,B.httpHeadersOverwriteParam_,B.JSC$17326_extraHeaders_);B.backChannelRequestTimeoutMs_&&B.JSC$17326_backChannelRequest_.setTimeout(B.backChannelRequestTimeoutMs_);var V=B.JSC$17326_backChannelRequest_,e=B.JSC$17326_hostPrefix_;V.JSC$17307_type_=1;V.JSC$17307_baseUri_=_.X8(R.clone());V.JSC$17307_postData_=null;V.decodeChunks_=!0;EXU(V,e);B.JSC$17326_channelDebug_.debug("New Request created")};
xM.prototype.JSC$17328_onBackChannelDead_=function(){this.JSC$17326_deadBackChannelTimerId_!=null&&(this.JSC$17326_deadBackChannelTimerId_=null,o64(this),Bpe(this),MB(19))};
var Ogm=function(B){B.JSC$17326_deadBackChannelTimerId_!=null&&(_.R5.clearTimeout(B.JSC$17326_deadBackChannelTimerId_),B.JSC$17326_deadBackChannelTimerId_=null)},mpn=function(B,R){B.JSC$17326_channelDebug_.debug("Request complete");
var V=null;if(B.JSC$17326_backChannelRequest_==R){Ogm(B);PCm(B);B.JSC$17326_backChannelRequest_=null;var e=2}else if(uC6(B.forwardChannelRequestPool_,R))V=R.JSC$17307_pendingMessages_,Yjo(B.forwardChannelRequestPool_,R),e=1;else return;if(B.state_!=0)if(R.JSC$17307_successful_)e==1?(aA4(R.JSC$17307_postData_?R.JSC$17307_postData_.length:0,Date.now()-R.JSC$17307_requestStartTime_,B.JSC$17326_forwardChannelRetryCount_),Npn(B)):D7j(B);else{var X=R.JSC$17307_lastStatusCode_,Y=R.getLastError();if(Y==3||
Y==0&&X>0)B.JSC$17326_channelDebug_.debug("Not retrying due to error type"),X>200&&(B.errorResponseStatusCode_=R.JSC$17307_lastStatusCode_);else{B.JSC$17326_channelDebug_.debug(function(){return"Maybe retrying, last error: "+vXn(Y,B.errorResponseStatusCode_)});
if(e==1&&H8e(B,R)||e==2&&Bpe(B))return;B.JSC$17326_channelDebug_.debug("Exceeded max number of retries")}V&&V.length>0&&tHU(B.forwardChannelRequestPool_,V);B.JSC$17326_channelDebug_.debug("Error: HTTP request failed");switch(Y){case 1:dR(B,5);break;case 4:dR(B,10);break;case 3:dR(B,6);break;default:dR(B,2)}}},Sj2=function(B,R){var V=B.JSC$17326_baseRetryDelayMs_+Math.floor(Math.random()*B.JSC$17326_retryDelaySeedMs_);
B.isActive()||(B.JSC$17326_channelDebug_.debug("Inactive channel"),V*=2);return V*R};
xM.prototype.onInput_=function(B,R){for(var V=0;V<B.length;V++){var e=B[V];this.JSC$17326_lastArrayId_=e[0];e=e[1];if(this.state_==2)if(e[0]=="c"){this.sid_=e[1];this.JSC$17326_hostPrefix_=e[2];var X=e[3];X!=null&&(this.JSC$17328_channelVersion_=X,this.JSC$17326_channelDebug_.info("VER="+this.JSC$17328_channelVersion_));X=e[4];X!=null&&(this.serverVersion_=X,this.JSC$17326_channelDebug_.info("SVER="+this.serverVersion_));e=e[5];e!=null&&typeof e==="number"&&e>0&&(this.backChannelRequestTimeoutMs_=
e*=1.5,this.JSC$17326_channelDebug_.info("backChannelRequestTimeoutMs_="+e));if(e=R.JSC$17307_xmlHttp_){var Y=jd(e,"X-Client-Wire-Protocol");Y&&(X=this.forwardChannelRequestPool_,!X.requestPool_&&(_.bo(Y,"spdy")||_.bo(Y,"quic")||_.bo(Y,"h2"))&&(X.JSC$17317_maxSize_=X.maxPoolSizeConfigured_,X.requestPool_=new Set,X.JSC$17317_request_&&(p94(X,X.JSC$17317_request_),X.JSC$17317_request_=null)));this.httpSessionIdParam_&&((e=jd(e,"X-HTTP-Session-Id"))?(this.httpSessionId_=e,_.A4(this.JSC$17326_forwardChannelUri_,
this.httpSessionIdParam_,e)):this.JSC$17326_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17332_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-R.JSC$17307_requestStartTime_,this.JSC$17326_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));e=R;X=U76(this,this.JSC$17326_supportsCrossDomainXhrs_?this.JSC$17326_hostPrefix_:null,this.JSC$17326_path_);this.JSC$17326_channelDebug_.debug("GetBackChannelUri: "+
X);this.JSC$17326_backChannelUri_=X;e.initialResponseDecoded_?(this.JSC$17326_channelDebug_.debug("Upgrade the handshake request to a backchannel."),Yjo(this.forwardChannelRequestPool_,e),X=e,(Y=this.backChannelRequestTimeoutMs_)&&X.setTimeout(Y),X.JSC$17307_watchDogTimerId_&&(sk4(X),qc2(X)),this.JSC$17326_backChannelRequest_=e):D7j(this);this.JSC$17326_outgoingMaps_.length>0&&Npn(this)}else e[0]!="stop"&&e[0]!="close"||dR(this,7);else this.state_==3&&(e[0]=="stop"||e[0]=="close"?e[0]=="stop"?dR(this,
7):this.disconnect():e[0]!="noop"&&this.handler_&&this.handler_.JSC$17332_channelHandleArray(e),this.JSC$17326_backChannelRetryCount_=0)}};
var dR=function(B,R){B.JSC$17326_channelDebug_.info("Error code "+R);if(R==2){var V=(0,_.M2)(B.testNetworkCallback_,B),e=B.networkTestUrl_,X=!e;e=new _.FO(e||"//www.google.com/images/cleardot.gif");_.R5.location&&_.R5.location.protocol=="http"||_.P_(e,"https");_.X8(e);X?WGr(e.toString(),V):b8i(e.toString(),V)}else MB(2);B.onError_(R)};
xM.prototype.testNetworkCallback_=function(B){B?(this.JSC$17326_channelDebug_.info("Successfully pinged google.com"),MB(2)):(this.JSC$17326_channelDebug_.info("Failed to ping google.com"),MB(1))};
xM.prototype.onError_=function(B){this.JSC$17326_channelDebug_.debug("HttpChannel: error - "+B);this.state_=0;this.handler_&&this.handler_.JSC$17332_channelError(B);yfe(this);Gs2(this)};
var yfe=function(B){B.state_=0;B.nonAckedMapsAtChannelClose_=[];if(B.handler_){var R=hPn(B.forwardChannelRequestPool_);if(R.length!=0||B.JSC$17326_outgoingMaps_.length!=0)B.JSC$17326_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+R.length+", outgoing: "+B.JSC$17326_outgoingMaps_.length}),_.Vv(B.nonAckedMapsAtChannelClose_,R),_.Vv(B.nonAckedMapsAtChannelClose_,B.JSC$17326_outgoingMaps_),B.forwardChannelRequestPool_.JSC$17317_pendingMessages_.length=0,_.OS(B.JSC$17326_outgoingMaps_),
B.JSC$17326_outgoingMaps_.length=0;
B.handler_.JSC$17332_channelClosed()}},lrm=function(B){if(B.state_==0)return B.nonAckedMapsAtChannelClose_;
var R=[];_.Vv(R,hPn(B.forwardChannelRequestPool_));_.Vv(R,B.JSC$17326_outgoingMaps_);return R},U76=function(B,R,V){var e=_.q2(V);
e.JSC$7940_domain_!=""?(R&&_.nT(e,R+"."+e.JSC$7940_domain_),_.uK(e,e.JSC$7940_port_)):(e=_.R5.location,e=vBm(e.protocol,R?R+"."+e.hostname:e.hostname,+e.port,V));R=B.httpSessionIdParam_;V=B.httpSessionId_;R&&V&&_.A4(e,R,V);_.A4(e,"VER",B.JSC$17328_channelVersion_);Lv(B,e);return e},cwo=function(B,R,V){if(R&&!B.JSC$17326_supportsCrossDomainXhrs_)throw Error("xk");
R=B.usesFetchStreams_&&!B.JSC$17326_xmlHttpFactory_?new _.dK(new LM({streamBinaryChunks:V})):new _.dK(B.JSC$17326_xmlHttpFactory_);R.JSC$7703_withCredentials_=B.JSC$17326_supportsCrossDomainXhrs_;return R};
xM.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var zP2=function(){};
_.p=zP2.prototype;_.p.JSC$17332_channelOpened=function(){};
_.p.JSC$17332_channelHandleArray=function(){};
_.p.JSC$17332_channelError=function(){};
_.p.JSC$17332_channelClosed=function(){};
_.p.isActive=function(){return!0};
_.p.JSC$17332_badMapError=function(){};var ar4=function(){},Kv=function(B,R){_.H_.call(this);
this.JSC$17335_channel_=new xM(R);this.JSC$17335_url_=B;this.messageUrlParams_=R&&R.messageUrlParams||null;B=R&&R.messageHeaders||null;R&&R.clientProtocolHeaderRequired&&(B?_.M_.set(B,"X-Client-Protocol","webchannel"):B=_.M_.create("X-Client-Protocol","webchannel"));this.JSC$17335_channel_.JSC$17326_extraHeaders_=B;B=R&&R.initMessageHeaders||null;R&&R.messageContentType&&(B?_.M_.set(B,"X-WebChannel-Content-Type",R.messageContentType):B=_.M_.create("X-WebChannel-Content-Type",R.messageContentType));
R&&R.clientProfile&&(B?_.M_.set(B,"X-WebChannel-Client-Profile",R.clientProfile):B=_.M_.create("X-WebChannel-Client-Profile",R.clientProfile));this.JSC$17335_channel_.initHeaders_=B;(B=R&&R.httpHeadersOverwriteParam)&&!_.Wd(B)&&(this.JSC$17335_channel_.httpHeadersOverwriteParam_=B);this.supportsCrossDomainXhr_=R&&R.supportsCrossDomainXhr||!1;this.sendRawJson_=R&&R.sendRawJson||!1;(R=R&&R.httpSessionIdParam)&&!_.Wd(R)&&(this.JSC$17335_channel_.httpSessionIdParam_=R,_.M_.containsKey(this.messageUrlParams_,
R)&&_.M_.remove(this.messageUrlParams_,R));this.channelHandler_=new vl(this)};
_.eY(Kv,_.H_);Kv.prototype.open=function(){this.JSC$17335_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17335_channel_.JSC$17326_supportsCrossDomainXhrs_=!0);this.JSC$17335_channel_.connect(this.JSC$17335_url_,this.messageUrlParams_||void 0)};
Kv.prototype.close=function(){this.JSC$17335_channel_.disconnect()};
Kv.prototype.send=function(B){var R=this.JSC$17335_channel_;if(typeof B==="string"){var V={};V.__data__=B;B=V}else this.sendRawJson_&&(V={},V.__data__=(0,_.aB)(B),B=V);R.JSC$17326_outgoingMaps_.push(new VH4(R.JSC$17326_nextMapId_++,B));R.state_==3&&Npn(R)};
Kv.prototype.disposeInternal=function(){this.JSC$17335_channel_.handler_=null;delete this.channelHandler_;this.JSC$17335_channel_.disconnect();delete this.JSC$17335_channel_;Kv.superClass_.disposeInternal.call(this)};
var d74=function(B){Hgo.call(this);B.__headers__&&(this.headers=B.__headers__,this.statusCode=B.__status__,delete B.__headers__,delete B.__status__);var R=B.__sm__;R?this.data=(this.metadataKey=_.M_.getAnyKey(R))?_.M_.get(R,this.metadataKey):R:this.data=B};
_.eY(d74,Hgo);var w9n=function(B){MP4.call(this);this.status=1;this.errorCode=B};
_.eY(w9n,MP4);var vl=function(B){this.JSC$17342_channel_=B};
_.eY(vl,zP2);vl.prototype.JSC$17332_channelOpened=function(){this.JSC$17342_channel_.dispatchEvent("w")};
vl.prototype.JSC$17332_channelHandleArray=function(B){this.JSC$17342_channel_.dispatchEvent(new d74(B))};
vl.prototype.JSC$17332_channelError=function(B){this.JSC$17342_channel_.dispatchEvent(new w9n(B))};
vl.prototype.JSC$17332_channelClosed=function(){this.JSC$17342_channel_.dispatchEvent("x")};
var Tpi=function(B,R){this.transportChannel_=B;this.JSC$17345_channel_=R},x7e=function(B){return lrm(B.JSC$17345_channel_).map(function(R){var V=B.transportChannel_;
R=R.map;"__data__"in R?(R=R.__data__,V=V.sendRawJson_?(0,_.G4b)(R):R):V=R;return V})};var Id=function(B){LG7.dispatchEvent(new v66(LG7,B))},LG7=new _.H_,v66=function(B){_.Un.call(this,"statevent",B)};
_.l(v66,_.Un);var EC=function(B,R,V,e,X){this.JSC$17350_channel_=B;this.JSC$17350_channelDebug_=R;this.sid_=V;this.JSC$17350_rid_=e;this.JSC$17350_retryId_=X||1;this.timeout_=45E3;this.JSC$17350_eventHandler_=new _.oL(this);this.pollingTimer_=new _.Oq;this.pollingTimer_.setInterval(250)};
_.p=EC.prototype;_.p.JSC$17352_extraHeaders_=null;_.p.JSC$17352_successful_=!1;_.p.JSC$17352_watchDogTimerId_=null;_.p.JSC$17352_watchDogTimeoutTime_=null;_.p.JSC$17352_requestStartTime_=null;_.p.JSC$17352_type_=null;_.p.JSC$17352_baseUri_=null;_.p.JSC$17352_requestUri_=null;_.p.JSC$17352_postData_=null;_.p.JSC$17352_xmlHttp_=null;_.p.JSC$17352_xmlHttpChunkStart_=0;_.p.trident_=null;_.p.JSC$17352_verb_=null;_.p.JSC$17352_lastError_=null;_.p.JSC$17352_lastStatusCode_=-1;_.p.sendClose_=!0;
_.p.JSC$17352_cancelled_=!1;_.p.JSC$17352_readyStateChangeThrottleMs_=0;_.p.JSC$17352_readyStateChangeThrottle_=null;var KGe=function(B,R){switch(B){case 0:return"Non-200 return code ("+R+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Iri={},E6r={};
EC.prototype.setTimeout=function(B){this.timeout_=B};
var qjU=function(B,R,V){B.JSC$17352_type_=1;B.JSC$17352_baseUri_=_.X8(R.clone());B.JSC$17352_postData_=V;B.decodeChunks_=!0;Qci(B,null)},cfN=function(B,R,V,e,X){B.JSC$17352_type_=1;
B.JSC$17352_baseUri_=_.X8(R.clone());B.JSC$17352_postData_=null;B.decodeChunks_=V;X&&(B.sendClose_=!1);Qci(B,e)},Qci=function(B,R){B.JSC$17352_requestStartTime_=Date.now();
Af6(B);B.JSC$17352_requestUri_=B.JSC$17352_baseUri_.clone();pM(B.JSC$17352_requestUri_,"t",B.JSC$17350_retryId_);B.JSC$17352_xmlHttpChunkStart_=0;B.JSC$17352_xmlHttp_=B.JSC$17350_channel_.JSC$17359_createXhrIo(B.JSC$17350_channel_.JSC$17359_shouldUseSecondaryDomains()?R:null);B.JSC$17352_readyStateChangeThrottleMs_>0&&(B.JSC$17352_readyStateChangeThrottle_=new _.o7((0,_.M2)(B.JSC$17352_xmlHttpHandler_,B,B.JSC$17352_xmlHttp_),B.JSC$17352_readyStateChangeThrottleMs_));B.JSC$17350_eventHandler_.listen(B.JSC$17352_xmlHttp_,
"readystatechange",B.JSC$17352_readyStateChangeHandler_);R=B.JSC$17352_extraHeaders_?_.M_.clone(B.JSC$17352_extraHeaders_):{};B.JSC$17352_postData_?(B.JSC$17352_verb_="POST",R["Content-Type"]="application/x-www-form-urlencoded",B.JSC$17352_xmlHttp_.send(B.JSC$17352_requestUri_,B.JSC$17352_verb_,B.JSC$17352_postData_,R)):(B.JSC$17352_verb_="GET",B.sendClose_&&!_.Wb&&(R.Connection="close"),B.JSC$17352_xmlHttp_.send(B.JSC$17352_requestUri_,B.JSC$17352_verb_,null,R));B.JSC$17350_channel_.notifyServerReachabilityEvent(1);
R=B.JSC$17350_channelDebug_;var V=B.JSC$17352_postData_;if(V){var e="";V=V.split("&");for(var X=0;X<V.length;X++){var Y=V[X].split("=");if(Y.length>1){var t=Y[0];Y=Y[1];var b=t.split("_");e=b.length>=2&&b[1]=="type"?e+(t+"="+Y+"&"):e+(t+"=redacted&")}}}else e=null;R.info("XMLHTTP REQ ("+B.JSC$17350_rid_+") [attempt "+B.JSC$17350_retryId_+"]: "+B.JSC$17352_verb_+"\n"+B.JSC$17352_requestUri_+"\n"+e)};
EC.prototype.JSC$17352_readyStateChangeHandler_=function(B){B=B.target;var R=this.JSC$17352_readyStateChangeThrottle_;R&&_.wK(B)==3?(this.JSC$17350_channelDebug_.debug("Throttling readystatechange."),R.fire()):this.JSC$17352_xmlHttpHandler_(B)};
EC.prototype.JSC$17352_xmlHttpHandler_=function(B){try{if(B==this.JSC$17352_xmlHttp_)a:{var R=_.wK(this.JSC$17352_xmlHttp_),V=this.JSC$17352_xmlHttp_.JSC$7703_lastErrorCode_,e=this.JSC$17352_xmlHttp_.getStatus();if(_.Wb&&!_.b8("420+")){if(R<4)break a}else if(R<3||R==3&&!this.JSC$17352_xmlHttp_.getResponseText())break a;this.JSC$17352_cancelled_||R!=4||V==7||(V==8||e<=0?this.JSC$17350_channel_.notifyServerReachabilityEvent(3):this.JSC$17350_channel_.notifyServerReachabilityEvent(2));i82(this);var X=
this.JSC$17352_xmlHttp_.getStatus();this.JSC$17352_lastStatusCode_=X;var Y=this.JSC$17352_xmlHttp_.getResponseText();Y||this.JSC$17350_channelDebug_.debug("No response text for uri "+this.JSC$17352_requestUri_+" status "+X);this.JSC$17352_successful_=X==200;this.JSC$17350_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17350_rid_+") [ attempt "+this.JSC$17350_retryId_+"]: "+this.JSC$17352_verb_+"\n"+this.JSC$17352_requestUri_+"\n"+R+" "+X);if(this.JSC$17352_successful_){R==4&&Qa(this);if(this.decodeChunks_){for(B=
!0;!this.JSC$17352_cancelled_&&this.JSC$17352_xmlHttpChunkStart_<Y.length;){var t=scn(this,Y);if(t==E6r){R==4&&(this.JSC$17352_lastError_=4,Id(15),B=!1);qB(this.JSC$17350_channelDebug_,this.JSC$17350_rid_,null,"[Incomplete Response]");break}else if(t==Iri){this.JSC$17352_lastError_=4;Id(16);qB(this.JSC$17350_channelDebug_,this.JSC$17350_rid_,Y,"[Invalid Chunk]");B=!1;break}else qB(this.JSC$17350_channelDebug_,this.JSC$17350_rid_,t,null),FG4(this,t)}R==4&&Y.length==0&&(this.JSC$17352_lastError_=1,
Id(17),B=!1);this.JSC$17352_successful_=this.JSC$17352_successful_&&B;B||(qB(this.JSC$17350_channelDebug_,this.JSC$17350_rid_,Y,"[Invalid Chunked Response]"),Qa(this),rf4(this))}else qB(this.JSC$17350_channelDebug_,this.JSC$17350_rid_,Y,null),FG4(this,Y);this.JSC$17352_successful_&&!this.JSC$17352_cancelled_&&(R==4?this.JSC$17350_channel_.JSC$17359_onRequestComplete(this):(this.JSC$17352_successful_=!1,Af6(this)))}else X==400&&Y.indexOf("Unknown SID")>0?(this.JSC$17352_lastError_=3,Id(13),this.JSC$17350_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17350_rid_+")")):(this.JSC$17352_lastError_=0,Id(14),this.JSC$17350_channelDebug_.warning("XMLHTTP Bad status "+X+" ("+this.JSC$17350_rid_+")")),Qa(this),rf4(this)}else this.JSC$17350_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.JSC$17350_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var scn=function(B,R){var V=B.JSC$17352_xmlHttpChunkStart_,e=R.indexOf("\n",V);if(e==-1)return E6r;V=Number(R.substring(V,e));if(isNaN(V))return Iri;e+=1;if(e+V>R.length)return E6r;R=R.slice(e,e+V);B.JSC$17352_xmlHttpChunkStart_=e+V;return R};
EC.prototype.cancel=function(){this.JSC$17352_cancelled_=!0;Qa(this)};
var Af6=function(B){B.JSC$17352_watchDogTimeoutTime_=Date.now()+B.timeout_;g62(B,B.timeout_)},g62=function(B,R){if(B.JSC$17352_watchDogTimerId_!=null)throw Error("wk");
B.JSC$17352_watchDogTimerId_=zN((0,_.M2)(B.JSC$17352_onWatchDogTimeout_,B),R)},i82=function(B){B.JSC$17352_watchDogTimerId_&&(_.R5.clearTimeout(B.JSC$17352_watchDogTimerId_),B.JSC$17352_watchDogTimerId_=null)};
EC.prototype.JSC$17352_onWatchDogTimeout_=function(){this.JSC$17352_watchDogTimerId_=null;var B=Date.now();B-this.JSC$17352_watchDogTimeoutTime_>=0?(this.JSC$17350_channelDebug_.info("TIMEOUT: "+this.JSC$17352_requestUri_),this.JSC$17352_type_!=2&&this.JSC$17350_channel_.notifyServerReachabilityEvent(3),Qa(this),this.JSC$17352_lastError_=2,Id(18),rf4(this)):(this.JSC$17350_channelDebug_.warning("WatchDog timer called too early"),g62(this,this.JSC$17352_watchDogTimeoutTime_-B))};
var rf4=function(B){B.JSC$17350_channel_.JSC$17359_isClosed()||B.JSC$17352_cancelled_||B.JSC$17350_channel_.JSC$17359_onRequestComplete(B)},Qa=function(B){i82(B);
_.Cx(B.JSC$17352_readyStateChangeThrottle_);B.JSC$17352_readyStateChangeThrottle_=null;B.pollingTimer_.stop();B.JSC$17350_eventHandler_.removeAll();if(B.JSC$17352_xmlHttp_){var R=B.JSC$17352_xmlHttp_;B.JSC$17352_xmlHttp_=null;R.abort();R.dispose()}B.trident_&&(B.trident_=null)};
EC.prototype.getLastError=function(){return this.JSC$17352_lastError_};
var FG4=function(B,R){try{B.JSC$17350_channel_.JSC$17359_onRequestData(B,R),B.JSC$17350_channel_.notifyServerReachabilityEvent(4)}catch(V){}};var qB=function(B,R,V,e){var X=B.info;a:if(V&&V!="y2f%"){try{var Y=JSON.parse(V);if(Y)for(var t=0;t<Y.length;t++)if(Array.isArray(Y[t])){var b=Y[t];if(!(b.length<2)){var J=b[1];if(Array.isArray(J)&&!(J.length<1)){var G=J[0];if(G!="noop"&&G!="stop")for(var y=1;y<J.length;y++)J[y]=""}}}var S=(0,_.aB)(Y);break a}catch(M){B.debug("Exception parsing expected JS array - probably was not JS");S=V;break a}S=void 0}else S=V;X.call(B,"XMLHTTP TEXT ("+R+"): "+S+(e?" "+e:""))};
av.prototype.debug=function(B){this.info(B)};
av.prototype.info=function(){};
av.prototype.warning=function(){};var Z87=function(B,R){this.JSC$17357_channel_=B;this.JSC$17357_channelDebug_=R;this.JSC$17357_parser_=new ST};
_.p=Z87.prototype;_.p.JSC$17359_extraHeaders_=null;_.p.JSC$17359_request_=null;_.p.receivedIntermediateResult_=!1;_.p.JSC$17359_path_=null;_.p.state_=null;_.p.JSC$17359_lastStatusCode_=-1;_.p.JSC$17359_hostPrefix_=null;_.p.blockedPrefix_=null;
_.p.connect=function(B){this.JSC$17359_path_=B;B=m7N(this.JSC$17357_channel_,this.JSC$17359_path_);Id(3);Date.now();var R=this.JSC$17357_channel_.firstTestResults_;R!=null?(this.JSC$17359_hostPrefix_=R[0],(this.blockedPrefix_=R[1])?(this.state_=1,$7j(this)):(this.state_=2,Cxz(this))):(pM(B,"MODE","init"),this.JSC$17359_request_=new EC(this,this.JSC$17357_channelDebug_),this.JSC$17359_request_.JSC$17352_extraHeaders_=this.JSC$17359_extraHeaders_,cfN(this.JSC$17359_request_,B,!1,null,!0),this.state_=
0)};
var $7j=function(B){var R=Px6(B.JSC$17357_channel_,B.blockedPrefix_,"/mail/images/cleardot.gif");_.X8(R);lgi(R.toString(),5E3,(0,_.M2)(B.checkBlockedCallback_,B),3,2E3);B.notifyServerReachabilityEvent(1)};
Z87.prototype.checkBlockedCallback_=function(B){if(B)this.state_=2,Cxz(this);else{Id(4);var R=this.JSC$17357_channel_;R.JSC$17360_channelDebug_.debug("Test Connection Blocked");R.JSC$17364_lastStatusCode_=R.connectionTest_.JSC$17359_lastStatusCode_;cl(R,9)}B&&this.notifyServerReachabilityEvent(2)};
var Cxz=function(B){B.JSC$17357_channelDebug_.debug("TestConnection: starting stage 2");var R=B.JSC$17357_channel_.secondTestResults_;R!=null?(B.JSC$17357_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+R?"Buffered":"Unbuffered"),Id(5),R?(Id(11),AB(B.JSC$17357_channel_,B,!1)):(Id(12),AB(B.JSC$17357_channel_,B,!0))):(B.JSC$17359_request_=new EC(B,B.JSC$17357_channelDebug_),B.JSC$17359_request_.JSC$17352_extraHeaders_=B.JSC$17359_extraHeaders_,R=n6U(B.JSC$17357_channel_,
B.JSC$17359_hostPrefix_,B.JSC$17359_path_),Id(5),pM(R,"TYPE","xmlhttp"),cfN(B.JSC$17359_request_,R,!1,B.JSC$17359_hostPrefix_,!1))};
_.p=Z87.prototype;_.p.JSC$17359_createXhrIo=function(B){return this.JSC$17357_channel_.JSC$17359_createXhrIo(B)};
_.p.abort=function(){this.JSC$17359_request_&&(this.JSC$17359_request_.cancel(),this.JSC$17359_request_=null);this.JSC$17359_lastStatusCode_=-1};
_.p.JSC$17359_isClosed=function(){return!1};
_.p.JSC$17359_onRequestData=function(B,R){this.JSC$17359_lastStatusCode_=B.JSC$17352_lastStatusCode_;if(this.state_==0)if(this.JSC$17357_channelDebug_.debug("TestConnection: Got data for stage 1"),R){try{var V=this.JSC$17357_parser_.parse(R)}catch(e){uJe(this.JSC$17357_channel_,this);return}this.JSC$17359_hostPrefix_=V[0];this.blockedPrefix_=V[1]}else this.JSC$17357_channelDebug_.debug("TestConnection: Null responseText"),uJe(this.JSC$17357_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Id(7),Date.now()):R=="11111"?(Id(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17359_lastStatusCode_=200,this.JSC$17359_request_.cancel(),this.JSC$17357_channelDebug_.debug("Test connection succeeded; using streaming connection"),Id(12),AB(this.JSC$17357_channel_,this,!0)):(Id(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.p.JSC$17359_onRequestComplete=function(){this.JSC$17359_lastStatusCode_=this.JSC$17359_request_.JSC$17352_lastStatusCode_;this.JSC$17359_request_.JSC$17352_successful_?this.state_==0?(this.JSC$17357_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,$7j(this)):(this.state_=2,Cxz(this))):this.state_==2&&(this.JSC$17357_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17357_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Id(12),AB(this.JSC$17357_channel_,this,!0)):(this.JSC$17357_channelDebug_.debug("Test connection failed; not using streaming"),Id(11),AB(this.JSC$17357_channel_,this,!1))):(this.JSC$17357_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Id(9):this.state_==2&&Id(10),uJe(this.JSC$17357_channel_,this,this.JSC$17359_request_.getLastError()))};
_.p.JSC$17359_shouldUseSecondaryDomains=function(){return this.JSC$17357_channel_.JSC$17359_shouldUseSecondaryDomains()};
_.p.isActive=function(){return this.JSC$17357_channel_.isActive()};
_.p.notifyServerReachabilityEvent=function(B){this.JSC$17357_channel_.notifyServerReachabilityEvent(B)};var iX=function(B,R,V){this.state_=1;this.JSC$17360_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17360_channelDebug_=new av;this.JSC$17360_parser_=new ST;this.firstTestResults_=B||null;this.secondTestResults_=R!=null?R:null;this.asyncTest_=V||!1},O8z=function(B,R){this.JSC$17362_mapId=B;
this.map=R;this.context=null};
_.p=iX.prototype;_.p.JSC$17364_extraHeaders_=null;_.p.JSC$17364_extraParams_=null;_.p.forwardChannelRequest_=null;_.p.JSC$17364_backChannelRequest_=null;_.p.JSC$17364_path_=null;_.p.JSC$17364_forwardChannelUri_=null;_.p.JSC$17364_backChannelUri_=null;_.p.JSC$17364_hostPrefix_=null;_.p.JSC$17364_nextRid_=0;_.p.JSC$17364_nextMapId_=0;_.p.handler_=null;_.p.JSC$17364_forwardChannelTimerId_=null;_.p.JSC$17364_backChannelTimerId_=null;_.p.JSC$17364_deadBackChannelTimerId_=null;_.p.connectionTest_=null;
_.p.useChunked_=null;_.p.JSC$17364_lastArrayId_=-1;_.p.JSC$17364_lastPostResponseArrayId_=-1;_.p.JSC$17364_lastStatusCode_=-1;_.p.JSC$17364_forwardChannelRetryCount_=0;_.p.JSC$17364_backChannelRetryCount_=0;_.p.JSC$17364_channelVersion_=8;var oI4={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},Bve=function(B,R,V,e){_.Un.call(this,"timingevent",B);this.size=R;this.rtt=V;this.retries=e};
_.eY(Bve,_.Un);var RXe=function(B){_.Un.call(this,"serverreachability",B)};
_.eY(RXe,_.Un);iX.prototype.connect=function(B,R,V,e,X){this.JSC$17360_channelDebug_.debug("connect()");Id(0);this.JSC$17364_path_=R;this.JSC$17364_extraParams_=V||{};e&&X!==void 0&&(this.JSC$17364_extraParams_.OSID=e,this.JSC$17364_extraParams_.OAID=X);this.asyncTest_?(zN((0,_.M2)(this.connectTest_,this,B),100),Vo6(this)):this.connectTest_(B)};
iX.prototype.disconnect=function(){this.JSC$17360_channelDebug_.debug("disconnect()");eXo(this);if(this.state_==3){var B=this.JSC$17364_nextRid_++,R=this.JSC$17364_forwardChannelUri_.clone();_.A4(R,"SID",this.sid_);_.A4(R,"RID",B);_.A4(R,"TYPE","terminate");sC(this,R);B=new EC(this,this.JSC$17360_channelDebug_,this.sid_,B);B.JSC$17352_type_=2;B.JSC$17352_baseUri_=_.X8(R.clone());(new Image).src=B.JSC$17352_baseUri_.toString();B.JSC$17352_requestStartTime_=Date.now();Af6(B)}X6z(this)};
iX.prototype.connectTest_=function(B){this.JSC$17360_channelDebug_.debug("connectTest_()");this.connectionTest_=new Z87(this,this.JSC$17360_channelDebug_);this.connectionTest_.JSC$17359_extraHeaders_=this.JSC$17364_extraHeaders_;this.connectionTest_.JSC$17357_parser_=this.JSC$17360_parser_;this.connectionTest_.connect(B)};
var Vo6=function(B){B.JSC$17360_channelDebug_.debug("connectChannel_()");B.JSC$17364_ensureInState_(1,0);B.JSC$17364_forwardChannelUri_=m7N(B,B.JSC$17364_path_);p6z(B)},eXo=function(B){B.connectionTest_&&(B.connectionTest_.abort(),B.connectionTest_=null);
B.JSC$17364_backChannelRequest_&&(B.JSC$17364_backChannelRequest_.cancel(),B.JSC$17364_backChannelRequest_=null);B.JSC$17364_backChannelTimerId_&&(_.R5.clearTimeout(B.JSC$17364_backChannelTimerId_),B.JSC$17364_backChannelTimerId_=null);Yre(B);B.forwardChannelRequest_&&(B.forwardChannelRequest_.cancel(),B.forwardChannelRequest_=null);B.JSC$17364_forwardChannelTimerId_&&(_.R5.clearTimeout(B.JSC$17364_forwardChannelTimerId_),B.JSC$17364_forwardChannelTimerId_=null)},hX4=function(B,R){if(B.state_==0)throw Error("zk");
B.JSC$17360_outgoingMaps_.length==1E3&&B.JSC$17360_parser_.stringify(R);B.JSC$17360_outgoingMaps_.push(new O8z(B.JSC$17364_nextMapId_++,R));B.state_!=2&&B.state_!=3||p6z(B)};
iX.prototype.JSC$17359_isClosed=function(){return this.state_==0};
iX.prototype.getState=function(){return this.state_};
var p6z=function(B){B.forwardChannelRequest_||B.JSC$17364_forwardChannelTimerId_||(B.JSC$17364_forwardChannelTimerId_=zN((0,_.M2)(B.JSC$17364_onStartForwardChannelTimer_,B),0),B.JSC$17364_forwardChannelRetryCount_=0)};
iX.prototype.JSC$17364_onStartForwardChannelTimer_=function(B){this.JSC$17364_forwardChannelTimerId_=null;too(this,B)};
var too=function(B,R){B.JSC$17360_channelDebug_.debug("startForwardChannel_");if(B.state_==1){if(!R){B.JSC$17360_channelDebug_.debug("open_()");B.JSC$17364_nextRid_=Math.floor(Math.random()*1E5);R=B.JSC$17364_nextRid_++;var V=new EC(B,B.JSC$17360_channelDebug_,"",R);V.JSC$17352_extraHeaders_=B.JSC$17364_extraHeaders_;var e=Wp4(B),X=B.JSC$17364_forwardChannelUri_.clone();_.A4(X,"RID",R);_.A4(X,"CVER","1");sC(B,X);qjU(V,X,e);B.forwardChannelRequest_=V;B.state_=2}}else B.state_==3&&(R?bCj(B,R):B.JSC$17360_outgoingMaps_.length==
0?B.JSC$17360_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):B.forwardChannelRequest_||(bCj(B),B.JSC$17360_channelDebug_.debug("startForwardChannel_ finished, sent request")))},bCj=function(B,R){if(R)if(B.JSC$17364_channelVersion_>6){B.JSC$17360_outgoingMaps_=B.pendingMaps_.concat(B.JSC$17360_outgoingMaps_);
B.pendingMaps_.length=0;var V=B.JSC$17364_nextRid_-1;R=Wp4(B)}else V=R.JSC$17350_rid_,R=R.JSC$17352_postData_;else V=B.JSC$17364_nextRid_++,R=Wp4(B);var e=B.JSC$17364_forwardChannelUri_.clone();_.A4(e,"SID",B.sid_);_.A4(e,"RID",V);_.A4(e,"AID",B.JSC$17364_lastArrayId_);sC(B,e);V=new EC(B,B.JSC$17360_channelDebug_,B.sid_,V,B.JSC$17364_forwardChannelRetryCount_+1);V.JSC$17352_extraHeaders_=B.JSC$17364_extraHeaders_;V.setTimeout(1E4+Math.round(1E4*Math.random()));B.forwardChannelRequest_=V;qjU(V,e,R)},
sC=function(B,R){B.handler_&&(B=B.handler_.JSC$17371_getAdditionalParams())&&_.M_.forEach(B,function(V,e){_.A4(R,e,V)})},Wp4=function(B){var R=Math.min(B.JSC$17360_outgoingMaps_.length,1E3),V=["count="+R];
if(B.JSC$17364_channelVersion_>6&&R>0){var e=B.JSC$17360_outgoingMaps_[0].JSC$17362_mapId;V.push("ofs="+e)}else e=0;for(var X={},Y=0;Y<R;X={mapId$jscomp$3:void 0},Y++){X.mapId$jscomp$3=B.JSC$17360_outgoingMaps_[Y].JSC$17362_mapId;var t=B.JSC$17360_outgoingMaps_[Y].map;X.mapId$jscomp$3=B.JSC$17364_channelVersion_<=6?Y:X.mapId$jscomp$3-e;try{_.M_.forEach(t,function(b){return function(J,G){V.push("req"+b.mapId$jscomp$3+"_"+G+"="+encodeURIComponent(J))}}(X))}catch(b){V.push("req"+X.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}B.pendingMaps_=B.pendingMaps_.concat(B.JSC$17360_outgoingMaps_.splice(0,R));
return V.join("&")},JT4=function(B){B.JSC$17364_backChannelRequest_||B.JSC$17364_backChannelTimerId_||(B.JSC$17364_backChannelAttemptId_=1,B.JSC$17364_backChannelTimerId_=zN((0,_.M2)(B.JSC$17364_onStartBackChannelTimer_,B),0),B.JSC$17364_backChannelRetryCount_=0)},Uke=function(B){if(B.JSC$17364_backChannelRequest_||B.JSC$17364_backChannelTimerId_||B.JSC$17364_backChannelRetryCount_>=3)return!1;
B.JSC$17360_channelDebug_.debug("Going to retry GET");B.JSC$17364_backChannelAttemptId_++;B.JSC$17364_backChannelTimerId_=zN((0,_.M2)(B.JSC$17364_onStartBackChannelTimer_,B),jhz(B,B.JSC$17364_backChannelRetryCount_));B.JSC$17364_backChannelRetryCount_++;return!0};
iX.prototype.JSC$17364_onStartBackChannelTimer_=function(){this.JSC$17364_backChannelTimerId_=null;this.JSC$17360_channelDebug_.debug("Creating new HttpRequest");this.JSC$17364_backChannelRequest_=new EC(this,this.JSC$17360_channelDebug_,this.sid_,"rpc",this.JSC$17364_backChannelAttemptId_);this.JSC$17364_backChannelRequest_.JSC$17352_extraHeaders_=this.JSC$17364_extraHeaders_;this.JSC$17364_backChannelRequest_.JSC$17352_readyStateChangeThrottleMs_=0;var B=this.JSC$17364_backChannelUri_.clone();_.A4(B,
"RID","rpc");_.A4(B,"SID",this.sid_);_.A4(B,"CI",this.useChunked_?"0":"1");_.A4(B,"AID",this.JSC$17364_lastArrayId_);sC(this,B);_.A4(B,"TYPE","xmlhttp");cfN(this.JSC$17364_backChannelRequest_,B,!0,this.JSC$17364_hostPrefix_,!1);this.JSC$17360_channelDebug_.debug("New Request created")};
var AB=function(B,R,V){B.JSC$17360_channelDebug_.debug("Test Connection Finished");B.useChunked_=B.secondTestResults_==null?V:!B.secondTestResults_;B.JSC$17364_lastStatusCode_=R.JSC$17359_lastStatusCode_;B.asyncTest_||Vo6(B)},uJe=function(B,R){B.JSC$17360_channelDebug_.debug("Test Connection Failed");
B.JSC$17364_lastStatusCode_=R.JSC$17359_lastStatusCode_;cl(B,2)};
iX.prototype.JSC$17359_onRequestData=function(B,R){if(this.state_!=0&&(this.JSC$17364_backChannelRequest_==B||this.forwardChannelRequest_==B))if(this.JSC$17364_lastStatusCode_=B.JSC$17352_lastStatusCode_,this.forwardChannelRequest_==B&&this.state_==3)if(this.JSC$17364_channelVersion_>7){try{var V=this.JSC$17360_parser_.parse(R)}catch(e){V=null}if(Array.isArray(V)&&V.length==3)if(R=V,R[0]==0)a:if(this.JSC$17360_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17364_backChannelTimerId_)this.JSC$17360_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17364_backChannelRequest_)if(this.JSC$17364_backChannelRequest_.JSC$17352_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17352_requestStartTime_)Yre(this),this.JSC$17364_backChannelRequest_.cancel(),this.JSC$17364_backChannelRequest_=null;else break a;else this.JSC$17360_channelDebug_.warning("We do not have a BackChannel established");Uke(this);Id(19)}else this.JSC$17364_lastPostResponseArrayId_=R[1],B=this.JSC$17364_lastPostResponseArrayId_-this.JSC$17364_lastArrayId_,0<
B&&(R=R[2],this.JSC$17360_channelDebug_.debug(R+" bytes (in "+B+" arrays) are outstanding on the BackChannel"),R<37500&&this.useChunked_&&this.JSC$17364_backChannelRetryCount_==0&&!this.JSC$17364_deadBackChannelTimerId_&&(this.JSC$17364_deadBackChannelTimerId_=zN((0,_.M2)(this.JSC$17364_onBackChannelDead_,this),6E3)));else this.JSC$17360_channelDebug_.debug("Bad POST response data returned"),cl(this,11)}else R!="y2f%"&&(this.JSC$17360_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
cl(this,11));else this.JSC$17364_backChannelRequest_==B&&Yre(this),_.Wd(R)||(B=this.JSC$17360_parser_.parse(R),this.onInput_(B))};
iX.prototype.JSC$17364_onBackChannelDead_=function(){this.JSC$17364_deadBackChannelTimerId_!=null&&(this.JSC$17364_deadBackChannelTimerId_=null,this.JSC$17364_backChannelRequest_.cancel(),this.JSC$17364_backChannelRequest_=null,Uke(this),Id(20))};
var Yre=function(B){B.JSC$17364_deadBackChannelTimerId_!=null&&(_.R5.clearTimeout(B.JSC$17364_deadBackChannelTimerId_),B.JSC$17364_deadBackChannelTimerId_=null)};
iX.prototype.JSC$17359_onRequestComplete=function(B){this.JSC$17360_channelDebug_.debug("Request complete");if(this.JSC$17364_backChannelRequest_==B){Yre(this);this.JSC$17364_backChannelRequest_=null;var R=2}else if(this.forwardChannelRequest_==B)this.forwardChannelRequest_=null,R=1;else return;this.JSC$17364_lastStatusCode_=B.JSC$17352_lastStatusCode_;if(this.state_!=0)if(B.JSC$17352_successful_)if(R==1){R=B.JSC$17352_postData_?B.JSC$17352_postData_.length:0;B=Date.now()-B.JSC$17352_requestStartTime_;
var V=LG7;V.dispatchEvent(new Bve(V,R,B,this.JSC$17364_forwardChannelRetryCount_));p6z(this);this.handler_&&this.handler_.JSC$17371_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else JT4(this);else{V=B.getLastError();if(V==3||V==7||V==0&&this.JSC$17364_lastStatusCode_>0)this.JSC$17360_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17360_channelDebug_.debug("Maybe retrying, last error: "+KGe(V,this.JSC$17364_lastStatusCode_));var e;if(e=R==1)this.forwardChannelRequest_||
this.JSC$17364_forwardChannelTimerId_||this.state_==1||this.JSC$17364_forwardChannelRetryCount_>=2?e=!1:(this.JSC$17360_channelDebug_.debug("Going to retry POST"),this.JSC$17364_forwardChannelTimerId_=zN((0,_.M2)(this.JSC$17364_onStartForwardChannelTimer_,this,B),jhz(this,this.JSC$17364_forwardChannelRetryCount_)),this.JSC$17364_forwardChannelRetryCount_++,e=!0);if(e||R==2&&Uke(this))return;this.JSC$17360_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17360_channelDebug_.debug("Error: HTTP request failed");
switch(V){case 1:cl(this,5);break;case 4:cl(this,10);break;case 3:cl(this,6);break;case 7:cl(this,12);break;default:cl(this,2)}}};
var jhz=function(B,R){var V=5E3+Math.floor(Math.random()*1E4);B.isActive()||(B.JSC$17360_channelDebug_.debug("Inactive channel"),V*=2);return V*R};
iX.prototype.onInput_=function(B){for(var R=0;R<B.length;R++){var V=B[R];this.JSC$17364_lastArrayId_=V[0];V=V[1];this.state_==2?V[0]=="c"?(this.sid_=V[1],this.JSC$17364_hostPrefix_=V[2],V=V[3],V!=null?this.JSC$17364_channelVersion_=V:this.JSC$17364_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17371_channelOpened(),this.JSC$17364_backChannelUri_=n6U(this,this.JSC$17364_hostPrefix_,this.JSC$17364_path_),JT4(this)):V[0]=="stop"&&cl(this,7):this.state_==3&&(V[0]=="stop"?cl(this,7):
V[0]!="noop"&&this.handler_&&this.handler_.JSC$17371_channelHandleArray(V),this.JSC$17364_backChannelRetryCount_=0)}};
iX.prototype.JSC$17364_ensureInState_=function(B){if(!_.gx(arguments,this.state_))throw Error("Ak`"+this.state_);};
var cl=function(B,R){B.JSC$17360_channelDebug_.info("Error code "+R);if(R==2||R==9){var V=null;B.handler_&&(V=null);var e=(0,_.M2)(B.testGoogleComCallback_,B);V||(V=new _.FO("//www.google.com/images/cleardot.gif"),_.X8(V));fgo(V.toString(),1E4,e)}else Id(2);B.onError_(R)};
iX.prototype.testGoogleComCallback_=function(B){B?(this.JSC$17360_channelDebug_.info("Successfully pinged google.com"),Id(2)):(this.JSC$17360_channelDebug_.info("Failed to ping google.com"),Id(1),this.onError_(8))};
iX.prototype.onError_=function(B){this.JSC$17360_channelDebug_.debug("HttpChannel: error - "+B);this.state_=0;this.handler_&&this.handler_.JSC$17371_channelError(B);X6z(this);eXo(this)};
var X6z=function(B){B.state_=0;B.JSC$17364_lastStatusCode_=-1;if(B.handler_)if(B.pendingMaps_.length==0&&B.JSC$17360_outgoingMaps_.length==0)B.handler_.JSC$17371_channelClosed();else{B.JSC$17360_channelDebug_.debug("Number of undelivered maps, pending: "+B.pendingMaps_.length+", outgoing: "+B.JSC$17360_outgoingMaps_.length);var R=_.OS(B.pendingMaps_),V=_.OS(B.JSC$17360_outgoingMaps_);B.pendingMaps_.length=0;B.JSC$17360_outgoingMaps_.length=0;B.handler_.JSC$17371_channelClosed(R,V)}},m7N=function(B,
R){R=Px6(B,null,R);
B.JSC$17360_channelDebug_.debug("GetForwardChannelUri: "+R);return R},n6U=function(B,R,V){R=Px6(B,B.JSC$17359_shouldUseSecondaryDomains()?R:null,V);
B.JSC$17360_channelDebug_.debug("GetBackChannelUri: "+R);return R},Px6=function(B,R,V){var e=_.q2(V);
if(e.JSC$7940_domain_!="")R&&_.nT(e,R+"."+e.JSC$7940_domain_),_.uK(e,e.JSC$7940_port_);else{var X=window.location;e=vBm(X.protocol,R?R+"."+X.hostname:X.hostname,+X.port,V)}B.JSC$17364_extraParams_&&_.M_.forEach(B.JSC$17364_extraParams_,function(Y,t){_.A4(e,t,Y)});
_.A4(e,"VER",B.JSC$17364_channelVersion_);sC(B,e);return e};
iX.prototype.JSC$17359_createXhrIo=function(B){if(B)throw Error("xk");B=new _.dK;B.JSC$7703_withCredentials_=!1;return B};
iX.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
iX.prototype.notifyServerReachabilityEvent=function(B){var R=LG7;R.dispatchEvent(new RXe(R,B))};
iX.prototype.JSC$17359_shouldUseSecondaryDomains=function(){return!1};
new c3U;var Nv7=function(){};
_.p=Nv7.prototype;_.p.JSC$17371_channelOpened=function(){};
_.p.JSC$17371_channelHandleArray=function(){};
_.p.JSC$17371_channelSuccess=function(){};
_.p.JSC$17371_channelError=function(){};
_.p.JSC$17371_channelClosed=function(){};
_.p.JSC$17371_getAdditionalParams=function(){return{}};
_.p.isActive=function(){return!0};var G0n=function(B){B.front_.length===0&&(B.front_=B.back_,B.front_.reverse(),B.back_=[])};
_.p=agm.prototype;_.p.enqueue=function(B){this.back_.push(B)};
_.p.peek=function(){G0n(this);return _.qY(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(B){return _.gx(this.front_,B)||_.gx(this.back_,B)};
_.p.remove=function(B){var R=this.front_;var V=Array.prototype.lastIndexOf.call(R,B,R.length-1);V>=0?(_.mI(R,V),R=!0):R=!1;return R||_.uo(this.back_,B)};
_.p.getValues=function(){for(var B=[],R=this.front_.length-1;R>=0;--R)B.push(this.front_[R]);R=this.back_.length;for(var V=0;V<R;++V)B.push(this.back_[V]);return B};var Fv=function(B){this.JSC$17375_map_=new _.YI;this.size=0;B&&this.addAll(B)},yTm=function(B){var R=typeof B;
return R=="object"&&B||R=="function"?"o"+_.Y5(B):R.charAt(0)+B};
_.p=Fv.prototype;_.p.getCount=function(){return this.JSC$17375_map_.size};
_.p.add=function(B){this.JSC$17375_map_.set(yTm(B),B);this.size=this.JSC$17375_map_.size};
_.p.addAll=function(B){B=_.CT(B);for(var R=B.length,V=0;V<R;V++)this.add(B[V]);this.size=this.JSC$17375_map_.size};
_.p.removeAll=function(B){B=_.CT(B);for(var R=B.length,V=0;V<R;V++)this.remove(B[V]);this.size=this.JSC$17375_map_.size};
_.p.delete=function(B){B=this.JSC$17375_map_.remove(yTm(B));this.size=this.JSC$17375_map_.size;return B};
_.p.remove=function(B){return this.delete(B)};
_.p.clear=function(){this.JSC$17375_map_.clear();this.size=0};
_.p.isEmpty=function(){return this.JSC$17375_map_.size===0};
_.p.has=function(B){return this.JSC$17375_map_.containsKey(yTm(B))};
_.p.contains=function(B){return this.JSC$17375_map_.containsKey(yTm(B))};
_.p.getValues=function(){return this.JSC$17375_map_.getValues()};
_.p.values=function(){return this.JSC$17375_map_.values()};
_.p.clone=function(){return new Fv(this)};
_.p.equals=function(B){return this.getCount()==xxn(B)&&Sr6(this,B)};
var Sr6=function(B,R){var V=xxn(R);if(B.getCount()>V)return!1;!(R instanceof Fv)&&V>5&&(R=new Fv(R));return L34(B,function(e){var X=R;return X.contains&&typeof X.contains=="function"?X.contains(e):X.containsValue&&typeof X.containsValue=="function"?X.containsValue(e):_.R4(X)||typeof X==="string"?_.gx(X,e):_.M_.containsValue(X,e)})};
Fv.prototype.__iterator__=function(){return this.JSC$17375_map_.__iterator__(!1)};
Fv.prototype[Symbol.iterator]=function(){return this.values()};var HCm={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(B){return(this._clampValue(B)-this.min)/(this.max-this.min)},
_clampValue:function(B){return Math.min(this.max,Math.max(this.min,this._calcStep(B)))},
_calcStep:function(B){B=parseFloat(B);if(!this.step)return B;B=Math.round((B-this.min)/this.step);return this.step<1?B/(1/this.step)+this.min:B*this.step+this.min},
_validateValue:function(){var B=this._clampValue(this.value);this.value=this.oldValue=isNaN(B)?this.oldValue:B;return this.value!==B},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Moz;var k0n;_.Sm({_template:function(){if(k0n!==void 0)return k0n;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Moz===void 0&&(Moz=document.createElement("template"));var e=Moz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return k0n=B},
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(){_.gB(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(B){B.keyCode===27&&(B.preventDefault(),this.close())},
_track:function(B){if(!this.persistent&&!this.disableSwipe)switch(B.preventDefault(),B.detail.state){case "start":this._trackStart(B);break;case "track":this._trackMove(B);break;case "end":this._trackEnd(B)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var B=this.$.contentContainer.getBoundingClientRect();this._savedWidth=B.width;this._translateOffset=this.position==="left"?B.left:B.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(B){this._trackDetails&&(this._translateDrawer(B.detail.dx+this._translateOffset),this._trackDetails.push({dx:B.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(B){if(this._trackDetails){var R=B.detail.dx+this._translateOffset,V=this.getWidth();R=this.position==="left"?R>=0||R<=-V:R<=0||R>=V;if(!R){var e=this._trackDetails;this._trackDetails=null;this._flingDrawer(B,e);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}V/=2;B.detail.dx<-V?this.opened=this.position==="right":B.detail.dx>V&&(this.opened=this.position==="left");R?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(B,R){for(var V=Date.now(),e=V-100,X,Y=0,t=R.length-1;Y<=t;){var b=Y+t>>1,J=R[b];J.timeStamp>=e?(X=J,t=b-1):Y=b+1}return X?(B.detail.dx-X.dx)/(V-X.timeStamp||1):0},
_flingDrawer:function(B,R){R=this._calculateVelocity(B,R);if(!(Math.abs(R)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;B=B.detail.dx+this._translateOffset;var V=this.getWidth(),e=this.position==="left",X=R>0;X?(R=Math.max(R,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(R=Math.min(R,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");R=this._FLING_INITIAL_SLOPE*(!X&&e?-(B+V):X&&!e?V-B:-B)/R;this._styleTransitionDuration(R);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,R)}},
_styleTransitionDuration:function(B){this.style.transitionDuration=B+"ms";this.$.contentContainer.style.transitionDuration=B+"ms";this.$.scrim.style.transitionDuration=B+"ms"},
_styleTransitionTimingFunction:function(B){this.$.contentContainer.style.transitionTimingFunction=B;this.$.scrim.style.transitionTimingFunction=B},
_translateDrawer:function(B){var R=this.getWidth();this.position==="left"?(B=Math.max(-R,Math.min(B,0)),this.$.scrim.style.opacity=1+B/R):(B=Math.max(0,Math.min(B,R)),this.$.scrim.style.opacity=1-B/R);this.translate3d(B+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var B=this._drawerState;B===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;B!==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=""),B!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var B=_.Mr(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"])');B.length>0?(this._firstTabStop=B[0],this._lastTabStop=B[B.length-1]):
this._lastTabStop=this._firstTabStop=null;(B=this.getAttribute("tabindex"))&&parseInt(B,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(B){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||B.keyCode!==9||(B.shiftKey?this._firstTabStop&&_.Mr(B).localTarget===this._firstTabStop&&(B.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Mr(B).localTarget===this._lastTabStop&&(B.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(B,R){this.toggleClass("visible",B&&!R,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var Dko;var fVz;_.Sm({_template:function(){if(fVz!==void 0)return fVz;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Dko===void 0&&(Dko=document.createElement("template"));var e=Dko;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return fVz=B},
is:"tp-yt-paper-progress",behaviors:[HCm],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(B){this.toggleClass("indeterminate",B,this.$.primaryProgress)},
_transformProgress:function(B,R){B.style.transform=B.style.webkitTransform="scaleX("+R/100+")"},
_mainRatioChanged:function(B){this._transformProgress(this.$.primaryProgress,B)},
_progressChanged:function(B,R,V,e,X){B=this._clampValue(B);R=this._clampValue(R);var Y=this._calcRatio(B)*100,t=this._calcRatio(R)*100;this._setSecondaryRatio(Y);this._transformProgress(this.$.secondaryProgress,Y);this._transformProgress(this.$.primaryProgress,t);this.secondaryProgress=B;X?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",R);this.setAttribute("aria-valuemin",V);this.setAttribute("aria-valuemax",e)},
_disabledChanged:function(B){this.setAttribute("aria-disabled",B?"true":"false")},
_hideSecondaryProgress:function(B){return B===0}});var lV4;var zXU;var aVz=function(){};
_.p=aVz.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(){};
aVz=_.Sm({_template:function(){if(zXU!==void 0)return zXU;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;lV4===void 0&&(lV4=document.createElement("template"));var e=lV4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return zXU=B},
is:"tp-yt-paper-slider",behaviors:[_.kI,_.z0,_.nxT,HCm],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&&_.T8(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(B,R,V){this.setAttribute("aria-valuemin",R);this.setAttribute("aria-valuemax",V);this.setAttribute("aria-valuenow",B);this._positionKnob(this._calcRatio(B)*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(B){this._setImmediateValue(this._calcStep(this._calcKnobPosition(B)));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(B){return(this.max-this.min)*B/100+this.min},
_onTrack:function(B){B.stopPropagation();switch(B.detail.state){case "start":this._trackStart(B);break;case "track":this._trackX(B);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(B){this.dragging||this._trackStart(B);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,B.detail.dx*(this._isRTL?-1:1)));B=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(B);B=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(B+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var B=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;B.transform=B.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(B){this._expandKnob();B.preventDefault();this.focus()},
_bartrack:function(B){this._allowBarEvent(B)&&this._onTrack(B)},
_barclick:function(B){this._w=this.$.sliderBar.offsetWidth;var R=this.$.sliderBar.getBoundingClientRect();R=(B.detail.x-R.left)/this._w*100;this._isRTL&&(R=100-R);var V=this.ratio;this._setTransiting(!0);this._positionKnob(R);V===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
B.preventDefault();this.focus()},
_bardown:function(B){this._allowBarEvent(B)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(B))},
_knobTransitionEnd:function(B){B.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(B,R,V,e){e||this._setMarkers([]);R=Math.round((V-R)/this.step);R>B&&(R=B);if(R<0||!isFinite(R))R=0;this._setMarkers(Array(R))},
_mergeClasses:function(B){return Object.keys(B).filter(function(R){return B[R]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(B){return!this.ignoreBarTouch||B.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(B){this._isRTL?this._incrementKey(B):this._decrementKey(B)},
_rightKey:function(B){this._isRTL?this._decrementKey(B):this._incrementKey(B)},
_incrementKey:function(B){this.disabled||(B.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),B.preventDefault())},
_decrementKey:function(B){this.disabled||(B.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),B.preventDefault())},
_changeValue:function(B){this.value=B.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(B){B.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.PlG._createRipple.call(this)},
_focusedChanged:function(B){B&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=B?"":"none",this._ripple.holdDown=B)}});var dke;var w6e;var rR=null,Tv4=function(){};
_.p=Tv4.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(){};
Tv4=_.Sm({_template:function(){if(w6e!==void 0)return w6e;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;dke===void 0&&(dke=document.createElement("template"));var e=dke;V.call(R,e.content.cloneNode(!0),B.content.firstChild);return w6e=B},
is:"tp-yt-paper-toast",behaviors:[_.ZV],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(){_.k6._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.iv.requestAvailability()},
show:function(B){typeof B=="string"&&(B={text:B});for(var R in B)R.indexOf("_")===0?_.k6._warn('The property "'+R+'" is private and was not set.'):R in this?this[R]=B[R]:_.k6._warn('The property "'+R+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(B){B&&B.target===this&&B.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(rR&&rR!==this&&rR.close(),rR=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):rR===this&&(rR=null);_.gv._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(B){this.positionTarget=B},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var xke=new _.P("disablePersonalizationAction");var MmN=new _.P("showDmaConsentFlowCommand");var kvz=new _.P("showMmgNoticeCommand");var Lpn=new _.P("saveConsentAction");var vIi=function(B){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.ez(B)};
_.l(vIi,_.qS);var Kpr=_.Rkd(vIi);var IV4=new _.P("updateTopbarAvatarAction");var EI4=new _.P("channelHandleValidationResultRenderer");var Qh4=new _.P("generateHandleFromNameResultRenderer");var qr4=new _.P("channelHandleInputRenderer");var cTm=new _.P("copyLinkRenderer");var ATo=new _.P("timedCommand");var iCe=new _.P("clearCookieAction");var sho=new _.P("getMultiPageMenuAction");var FpU=new _.P("addToGuideSectionAction"),rTn=new _.P("removeFromGuideSectionAction");var gIm=new _.P("updateNotificationsUnseenCountAction");var ZC4=new _.P("resetChannelUnreadCountCommand");var mkU=new _.P("resetSubscriptionsUnreadDotCommand");var $ki=new _.P("selectLanguageCommand");var EAN=new _.P("sendFeedbackAction");var Cv4=new _.P("uploadImageToScottyCommand");var Pvz=new _.P("registerPromoCommand");var nI2=new _.P("setPushNotificationsEnabledCommand");var u34=new _.P("desktopTopbarRenderer");var OCz=new _.P("surveyFollowUpRenderer");var oi4=new _.P("handlesClaimingRadioOptionRenderer");var Bfm=new _.P("hotkeyDialogRenderer");var Rrr=new _.P("modifyReportFormCommand");var VEm=new _.P("accountLinkCommand");var er7=new _.P("accountUnlinkCommand");var XL6=new _.P("logAccountLinkingEventCommand");var pLn=new _.P("guideCollapsibleEntryRenderer");var YNo=new _.P("guideDownloadsEntryRenderer");var gR=new _.P("guideEntryRenderer");var hrm=new _.P("getLocationCommand");var tE4=new _.P("locationCollectionCommand");var W8e=new _.P("storiesItemViewModel");var bt6=new _.P("addToRemoteQueueAction");var JG4=new _.P("insertInRemoteQueueAction");var ji2=new _.P("removeFromRemoteQueueAction");var Ufo=new _.P("notificationRenderer");var Xcz=new _.P("localWatchHistoryCommand");var Nfr=new _.P("pdgBuyFlowHeaderRenderer");var Gle=new _.P("pdgColorSliderRenderer");var yGN=new _.P("pdgCommentOptionRenderer");var SN4=new _.P("pdgCommentPreviewRenderer");var Ht2=new _.P("superVodSelectableItemButtonRenderer");var ME4=new _.P("switchButtonRenderer");var kli=new _.P("upsellDialogRenderer");var Df6=new _.P("feedbackQuestionRenderer"),fum=new _.P("feedbackOptionRenderer");var lu7=new _.P("sponsorshipsTierRenderer"),zrU=new _.P("sponsorshipsPromotionChannelRenderer");var au2=new _.P("simpleSurveyMessageRenderer");var Epz=new _.P("invokeInstrumentManagerAction");var dfm=new _.P("logYpcFlowDismissCommand");var wL2=new _.P("logYpcFlowStartCommand");var TfN=new _.P("unlimitedCreateFamilyEndpoint");var xf6=new _.P("iconBadgeRenderer");var X$m=new _.P("collaborativePlaylistVisibilityValidationRule");var L8m=function(B){_.Un.call(this,"channelMessage");this.message=B};
_.l(L8m,_.Un);var vie=function(B){_.Un.call(this,"channelError");this.error=B};
_.l(vie,_.Un);var K84={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"},IuN={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},Eio={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
Qim={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},qNo={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var ZJ=function(B){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 _.YI;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";B&&(this.id=B.id||B.name,this.name=B.name,this.clientName=B.clientName?B.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=B.app,this.type=B.type||"REMOTE_CONTROL",this.username=B.user||"",this.avatar=B.userAvatarUri||"",this.obfuscatedGaiaId=B.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=B.ownerObfuscatedGaiaId||"",this.theme=B.theme||"u",cGz(this,B.capabilities||""),AGU(this,B.compatibleSenderThemes||""),it4(this,B.experiments||""),
this.remoteControllerUrl=B.remoteControllerUrl||"",this.localChannelEncryptionKey=B.localChannelEncryptionKey||"",this.deviceContext=B.deviceContext,this.brand=B.brand||"",this.model=B.model||"",this.year=B.year||0,this.os=B.os||"",this.osVersion=B.osVersion||"",this.chipset=B.chipset||"",this.mdxDialServerType=B.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=B.pairingType||"unknown",B=B.deviceInfo)&&(B=JSON.parse(B),this.brand=B.brand||"",this.model=B.model||"",this.year=B.year||
0,this.os=B.os||"",this.osVersion=B.osVersion||"",this.chipset=B.chipset||"",this.clientName=B.clientName?B.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=B.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
ZJ.prototype.copy=function(){var B={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&&(B.brand=this.brand);
this.model&&(B.model=this.model);this.year&&(B.year=this.year);this.os&&(B.os=this.os);this.osVersion&&(B.osVersion=this.osVersion);this.chipset&&(B.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(B.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(B.mdxDialServerType=this.mdxDialServerType);B=new ZJ(B);B.connected=this.connected;B.remoteControllerUrl=this.remoteControllerUrl;B.localChannelEncryptionKey=this.localChannelEncryptionKey;B.deviceContext=
this.deviceContext;return B};
ZJ.prototype.equals=function(B){return B?this.id==B.id:!1};
var cGz=function(B,R){B.capabilities.clear();_.pU(R.split(","),_.JE(_.M_.contains,K84)).forEach(function(V){B.capabilities.add(V)})},AGU=function(B,R){B.compatibleSenderThemes.clear();
_.pU(R.split(","),_.JE(_.M_.contains,IuN)).forEach(function(V){B.compatibleSenderThemes.add(V)})},it4=function(B,R){B.experiments.clear();
R.split(",").forEach(function(V){B.experiments.add(V)})};var sie=function(B,R){this.action=B;this.params=R||{}};_.eY(drz,_.Hn);_.p=drz.prototype;_.p.JSC$17411_onTick_=function(){this.JSC$17409_interval_=Math.min(3E5,this.JSC$17409_interval_*2);this.JSC$17411_listener_();this.nextTickTime_&&this.start()};
_.p.start=function(){var B=this.JSC$17409_interval_+15E3*Math.random(),R=this.delay_;R.isActive()||R.start(B);this.nextTickTime_=Date.now()+B};
_.p.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.p.isActive=function(){return this.delay_.isActive()};
_.p.reset=function(){this.delay_.stop();this.JSC$17409_interval_=5E3};_.eY(dN,Nv7);_.p=dN.prototype;_.p.subscribe=function(B,R,V){return this.pubsub_.subscribe(B,R,V)};
_.p.unsubscribe=function(B,R,V){return this.pubsub_.unsubscribe(B,R,V)};
_.p.unsubscribeByKey=function(B){return this.pubsub_.unsubscribeByKey(B)};
_.p.publish=function(B,R){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.p.dispose=function(){this.JSC$17412_disposed_||(this.JSC$17412_disposed_=!0,_.Cx(this.pubsub_),this.disconnect(),_.Cx(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17412_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.XT({})})};
_.p.isDisposed=function(){return this.JSC$17412_disposed_};
_.p.connect=function(B,R,V){var e=this,X,Y,t,b;return _.W(function(J){if(J.nextAddress==1)return _.Yb(J,2),e.useAsyncBrowserChannelHandler_?_.U(J,e.connectPromise_,2):J.jumpTo(2);_.pr(J);if(e.JSC$17412_disposed_||e.JSC$17412_channel_&&e.JSC$17412_channel_.getState()==2)return J.return();e.sCookie_="";e.reconnectTimer_.stop();e.connectionParams_=B||null;e.connectUi_=R||0;X=e.JSC$17412_pathPrefix_+"/test";Y=e.JSC$17412_pathPrefix_+"/bind";t=new iX(V?V.firstTestResults:null,V?V.secondTestResults:null,
e.enableAsyncTest_);if(b=e.JSC$17412_channel_)b.handler_=null;t.handler_=e;e.JSC$17412_channel_=t;if(e.useAsyncBrowserChannelHandler_)return e.connectPromise_=F82(e).then(function(){return rGm(e,X,Y,b,V)}),J.return(e.connectPromise_.then(function(){e.connectPromise_=_.XT()}));
rGm(e,X,Y,b,V);return _.tq(J,0)})};
var rGm=function(B,R,V,e,X){gie(B);if(B.JSC$17412_channel_){var Y=_.vE("ID_TOKEN"),t=B.JSC$17412_channel_.JSC$17364_extraHeaders_||{};Y?t["x-youtube-identity-token"]=Y:delete t["x-youtube-identity-token"];B.JSC$17412_channel_.JSC$17364_extraHeaders_=t}Zto(B);e?(e.getState(),B.JSC$17412_channel_.connect(R,V,B.defaultQueryParams_,e.sid_,e.JSC$17364_lastArrayId_)):X?B.JSC$17412_channel_.connect(R,V,B.defaultQueryParams_,X.sessionId,X.arrayId):B.JSC$17412_channel_.connect(R,V,B.defaultQueryParams_)};
dN.prototype.disconnect=function(B){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.XT())}finally{this.disconnectUi_=B||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),gie(this),this.JSC$17412_channel_&&(this.JSC$17412_channel_.getState()==3&&too(this.JSC$17412_channel_),this.JSC$17412_channel_.disconnect()),this.disconnectUi_=0}};
dN.prototype.sendMessage=function(B,R){var V=this,e;return _.W(function(X){switch(X.nextAddress){case 1:_.Yb(X,2);if(!V.useAsyncBrowserChannelHandler_){X.jumpTo(2);break}return _.U(X,V.connectPromise_,2);case 2:_.pr(X);if(V.JSC$17412_disposed_)return X.return();e={_sc:B};R&&_.M_.extend(e,R);if(V.reconnectTimer_.isActive()||(V.JSC$17412_channel_?V.JSC$17412_channel_.getState():0)==2){V.JSC$17412_pendingMessages_.push(e);X.jumpTo(6);break}if(!V.isChannelOpened()){X.jumpTo(6);break}_.Yb(X,8);if(!V.useAsyncBrowserChannelHandler_||
mf6(V,B)){X.jumpTo(8);break}return _.U(X,F82(V),8);case 8:_.pr(X,0,0,1);V.isChannelOpened()&&(mf6(V,B)||Zto(V),gie(V),hX4(V.JSC$17412_channel_,e));_.tq(X,6,1);break;case 6:_.tq(X,0)}})};
var mf6=function(B,R){return B.enableMdxAuthForConnectionOnly_?!0:B.disableMdxAuthForAdMessages_?Object.values(Eio).includes(R):B.disableMdxAuthForNonPlaybackMessages_?!Object.values(Qim).includes(R):B.disableMdxAuthForShortsMessages_?Object.values(qNo).includes(R):!1};
dN.prototype.JSC$17371_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17412_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)$fr(this);else{var B=this.JSC$17412_pendingMessages_;this.JSC$17412_pendingMessages_=[];var R=B.length;Zto(this);CWr(this,B,R);PW7(this)}else PW7(this)};
var $fr=function(B){var R,V;_.W(function(e){if(e.nextAddress==1)return _.Yb(e,2),_.U(e,F82(B),2);_.pr(e);R=B.JSC$17412_pendingMessages_;B.JSC$17412_pendingMessages_=[];V=R.length;CWr(B,R,V);PW7(B);return _.tq(e,0)})},CWr=function(B,R,V){for(var e=0;e<V;++e)hX4(B.JSC$17412_channel_,R[e]);
PW7(B)},PW7=function(B){B.publish("handlerOpened");
B.JSC$17412_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.p=dN.prototype;_.p.JSC$17371_channelError=function(B){var R=B==2&&this.JSC$17412_channel_.JSC$17364_lastStatusCode_==401;B==4||R||this.reconnectTimer_.start();this.publish("handlerError",B,R);R=Object.keys(oI4).find(function(V){return oI4[V]===B});
this.JSC$17412_channelErrorCounter.increment("BROWSER_CHANNEL",R!=null?R:"UNKNOWN")};
_.p.JSC$17371_channelClosed=function(B,R){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(R)for(var V=R.length,e=0;e<V;++e){var X=R[e].map;X&&this.JSC$17412_pendingMessages_.push(X)}this.JSC$17412_channelClosedCounter.increment("BROWSER_CHANNEL");B&&this.pendingMapsOnClosedCounter.JSC$7836_streamzService.JSC$7694_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",B.length);R&&this.undeliveredMapsOnClosedCounter.JSC$7839_streamzService.JSC$7694_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
R.length)};
_.p.JSC$17371_channelSuccess=function(B,R){R!=null&&B!=null&&this.channelMessageSentCounter.increment()};
_.p.JSC$17371_getAdditionalParams=function(){var B={v:2};this.sCookie_&&(B.gsessionid=this.sCookie_);this.connectUi_!=0&&(B.ui=""+this.connectUi_);this.disconnectUi_!=0&&(B.ui=""+this.disconnectUi_);this.connectionParams_&&_.M_.extend(B,this.connectionParams_);return B};
_.p.JSC$17371_channelHandleArray=function(B){B[0]=="S"?this.sCookie_=B[1]:B[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17412_channel_.disconnect()):this.publish("handlerMessage",new sie(B[0],B[1]));this.JSC$17412_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.p.isChannelOpened=function(){return!!this.JSC$17412_channel_&&this.JSC$17412_channel_.getState()==3};
var gie=function(B){if(B.JSC$17412_channel_){var R=B.JSC$17412_getXsrfToken_(),V=B.JSC$17412_channel_.JSC$17364_extraHeaders_||{};R?V["x-youtube-lounge-xsrf-token"]=R:delete V["x-youtube-lounge-xsrf-token"];B.JSC$17412_channel_.JSC$17364_extraHeaders_=V}},F82=function(B){if(B.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.XT();
if(!B.enableCachedUpdateAuthorizationHeader_)return nie(B);B.updateAuthorizationHeaderPromise_===null&&(B.updateAuthorizationHeaderPromise_=nie(B));return B.updateAuthorizationHeaderPromise_},nie=function(B){return _.fT(B.getAuthorizationHeader_().then(function(R){ume(B,R)}).thenCatch(function(){}),function(){B.updateAuthorizationHeaderPromise_=null})},ume=function(B,R){if(B.JSC$17412_channel_){var V=B.JSC$17412_channel_.JSC$17364_extraHeaders_||{};
R&&Object.keys(R).length>0?V=Object.assign({},V,R):delete V.Authorization;B.JSC$17412_channel_.JSC$17364_extraHeaders_=V}},Zto=function(B){B.getAuthorizationHeaderSync_&&!B.useAsyncBrowserChannelHandler_&&ume(B,B.getAuthorizationHeaderSync_())};
_.p=dN.prototype;_.p.setLoungeToken=function(B){(this.defaultQueryParams_.loungeIdToken=B)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17412_channel_){var R=this.JSC$17412_channel_.JSC$17364_extraHeaders_||{};B?R["X-YouTube-LoungeId-Token"]=B:delete R["X-YouTube-LoungeId-Token"];this.JSC$17412_channel_.JSC$17364_extraHeaders_=R}};
_.p.getDeviceId=function(){return this.defaultQueryParams_.id};
_.p.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.p.reconnect=function(){var B=this.reconnectTimer_;B.delay_.fire();B.start()};
_.p.safeReconnect_=function(){var B=this.JSC$17412_channel_,R=0;B.JSC$17364_backChannelRequest_&&R++;B.forwardChannelRequest_&&R++;R==0&&this.connect(this.connectionParams_,this.connectUi_)};var Iv=function(B,R){var V=B.basePath;B.supportCors&&(V=B.scheme+"://"+B.domain+B.port+B.basePath);return _.gg(V+R,{})};
wN.prototype.sendRequest=function(B,R,V,e,X,Y,t){B={format:Y?"RAW":"JSON",method:B,context:this,timeout:5E3,withCredentials:!!t,onSuccess:_.JE(this.JSC$17417_onSuccess_,e,!Y),onError:_.JE(this.onError_,X),onTimeout:_.JE(this.JSC$17417_onTimeout_,X)};V&&(B.postParams=V,B.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.W8(R,B)};
wN.prototype.JSC$17417_onSuccess_=function(B,R,V,e){R?B(e):B({text:V.responseText})};
wN.prototype.onError_=function(B,R){B(Error("Bk`"+R.status))};
wN.prototype.JSC$17417_onTimeout_=function(B){B(Error("Ck"))};var xu=function(B,R){return!!R&&(B.id==R||B.uuid==R)},Otj=function(B){return{name:B.name,
screenId:B.id,loungeToken:B.token,dialId:B.uuid,screenIdType:B.idType}},oJ2=function(B){return new TN(B)},B34=function(B){return Array.isArray(B)?_.DO(B,oJ2):[]},QF4=function(B){if(!B)return"null";
var R=B.token?".."+B.token.slice(-6):"-",V=B.uuid?".."+B.uuid.slice(-6):"-";return'{name:"'+B.name+'",id:'+B.id.substr(0,6)+"..,token:"+(R+",uuid:"+V+",idType:"+B.idType+"}")},b04=function(B){return Array.isArray(B)?"["+_.DO(B,QF4).join(",")+"]":"null"};var gam="",KH=null;var o84=function(B,R){_.H_.call(this);var V=this;this.handler=B();this.handler.subscribe("handlerOpened",this.JSC$17424_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(e,X){V.onError(X)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=R};
_.l(o84,_.H_);_.p=o84.prototype;_.p.connect=function(B,R,V){this.handler.connect(B,R,V)};
_.p.disconnect=function(B){this.handler.disconnect(B)};
_.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$17424_onOpened=function(){this.dispatchEvent("channelOpened");var B=this.handler,R=this.currentScreenId;_.hp("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!B.JSC$17412_channel_.useChunked_,sessionId:B.JSC$17412_channel_.sid_,arrayId:B.JSC$17412_channel_.JSC$17364_lastArrayId_});_.hp("yt-remote-session-screen-id",R);B=cZ6();R=AZo();_.gx(B,R)||B.push(R);rZU(B);Fci()};
_.p.onClosed=function(){this.dispatchEvent("channelClosed")};
_.p.onMessage=function(B){this.dispatchEvent(new L8m(B))};
_.p.onError=function(B){this.dispatchEvent(new vie(B?1:0))};
_.p.sendMessage=function(B,R){this.handler.sendMessage(B,R)};
_.p.setLoungeToken=function(B){this.handler.setLoungeToken(B)};
_.p.dispose=function(){this.handler.dispose()};var Opj=function(B,R,V){var e=this;V=V===void 0?function(){return""}:V;
var X=X===void 0?new ar4:X;var Y=Y===void 0?new _.Ju:Y;this.pathPrefix=B;this.defaultQueryParams=R;this.getXsrfToken=V;this.JSC$17427_pubsub=Y;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new drz(function(){var t;((t=e.channel)==null?void 0:RPr((new Tpi(t,t.JSC$17335_channel_)).JSC$17345_channel_.forwardChannelRequestPool_))===0&&e.connect(e.connectionParams,e.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17427_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17427_channelOpenedCounter=new wJ4;this.JSC$17427_channelClosedCounter=new TTe;this.JSC$17427_channelMessageReceivedCounter=new Lce;this.JSC$17427_channelErrorCounter=new vam};
Opj.prototype.connect=function(B,R){B=B===void 0?{}:B;R=R===void 0?0:R;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=B,this.connectUi=R,RV6(this),(B=_.vE("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=B: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 Kv(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,V86(this))};
var V86=function(B){_.G2(B.channel,"w",function(){B.channelState=3;B.reconnectTimer.reset();B.connectionParams=null;B.connectUi=0;for(var R=_.h(B.nonAckedMessagesOnChannelClosed),V=R.next();!V.done;V=R.next())V=V.value,B.channel&&B.channel.send(V);B.nonAckedMessagesOnChannelClosed=[];B.publish("webChannelOpened");B.JSC$17427_channelOpenedCounter.increment("WEB_CHANNEL")});
_.G2(B.channel,"x",function(){B.channelState=0;B.reconnectTimer.isActive()||B.publish("webChannelClosed");var R,V=(R=B.channel)==null?void 0:x7e(new Tpi(R,R.JSC$17335_channel_));V&&(B.nonAckedMessagesOnChannelClosed=[].concat(_.MI(V)));B.JSC$17427_channelClosedCounter.increment("WEB_CHANNEL")});
_.G2(B.channel,"z",function(R){var V=R.data;V[0]==="gracefulReconnect"?(B.reconnectTimer.start(),B.channel&&B.channel.close()):B.publish("webChannelMessage",new sie(V[0],V[1]));B.lastStatusCode=R.statusCode;B.JSC$17427_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.G2(B.channel,"y",function(){B.lastStatusCode===401||B.reconnectTimer.start();B.publish("webChannelError");B.JSC$17427_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.p=Opj.prototype;_.p.disconnect=function(B){this.disconnectUi=B===void 0?0:B;this.reconnectTimer.stop();RV6(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 B=this.reconnectTimer;B.delay_.fire();B.start()};
_.p.sendMessage=function(B,R){this.channel&&(RV6(this),B=Object.assign({},{_sc:B},R),this.channel.send(B))};
_.p.setLoungeToken=function(B){B||this.reconnectTimer.stop();B?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=B:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var RV6=function(B){var R=B.getXsrfToken();R?B.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=R:delete B.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.p=Opj.prototype;_.p.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.p.publish=function(B){return this.JSC$17427_pubsub.publish.apply(this.JSC$17427_pubsub,[B].concat(_.MI(_.HB.apply(1,arguments))))};
_.p.subscribe=function(B,R,V){return this.JSC$17427_pubsub.subscribe(B,R,V)};
_.p.unsubscribe=function(B,R,V){return this.JSC$17427_pubsub.unsubscribe(B,R,V)};
_.p.unsubscribeByKey=function(B){return this.JSC$17427_pubsub.unsubscribeByKey(B)};
_.p.dispose=function(){this.JSC$17427_disposed||(this.JSC$17427_disposed=!0,_.Cx(this.JSC$17427_pubsub),this.disconnect(),_.Cx(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.p.isDisposed=function(){return this.JSC$17427_disposed};var uOm=function(B){_.H_.call(this);this.webChannelService=B();this.webChannelService.subscribe("webChannelOpened",this.JSC$17435_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.l(uOm,_.H_);_.p=uOm.prototype;_.p.connect=function(B,R){this.webChannelService.connect(B,R)};
_.p.disconnect=function(B){this.webChannelService.disconnect(B)};
_.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$17435_onOpened=function(){this.dispatchEvent("channelOpened")};
_.p.onClosed=function(){this.dispatchEvent("channelClosed")};
_.p.onMessage=function(B){this.dispatchEvent(new L8m(B))};
_.p.onError=function(){this.dispatchEvent(new vie(this.webChannelService.lastStatusCode===401?1:0))};
_.p.sendMessage=function(B,R){this.webChannelService.sendMessage(B,R)};
_.p.setLoungeToken=function(B){this.webChannelService.setLoungeToken(B)};
_.p.dispose=function(){this.webChannelService.dispose()};var Wyn=Date.now(),E3=null,heN=Array(50),cV=-1,tOo=!1;_.eY(Ag,_.P4);Ag.prototype.getScreens=function(){return this.screens};
Ag.prototype.contains=function(B){return!!qI4(this.screens,B)};
Ag.prototype.get=function(B){return B?LH(this.screens,B):null};
var eV2=function(B,R){var V=B.get(R.uuid)||B.get(R.id);if(V)return B=V.name,V.id=R.id||V.id,V.name=R.name,V.token=R.token,V.uuid=R.uuid||V.uuid,V.name!=B;B.screens.push(R);return!0},XC6=function(B,R){var V=B.screens.length!=R.length;
B.screens=_.pU(B.screens,function(Y){return!!qI4(R,Y)});
for(var e=R.length,X=0;X<e;X++)V=eV2(B,R[X])||V;return V},pCi=function(B,R){var V=B.screens.length;
B.screens=_.pU(B.screens,function(e){return!(e||R?!e!=!R?0:e.id==R.id:1)});
return B.screens.length<V};
Ag.prototype.info=function(B){Qp(this.JSC$17436_logName_,B)};var Yp4=function(B,R,V,e,X){_.P4.call(this);this.JSC$17439_http_=B;this.pairingCode_=R;this.deviceId_=V;this.friendlyName_=e;this.enableShortLivedLoungeToken_=X;this.pollIndex_=0;this.JSC$17439_xhr_=null;this.JSC$17439_timer_=NaN};
_.l(Yp4,_.P4);_.p=Yp4.prototype;_.p.start=function(){!this.JSC$17439_xhr_&&isNaN(this.JSC$17439_timer_)&&this.poll_()};
_.p.stop=function(){this.JSC$17439_xhr_&&(this.JSC$17439_xhr_.abort(),this.JSC$17439_xhr_=null);isNaN(this.JSC$17439_timer_)||(_.hu(this.JSC$17439_timer_),this.JSC$17439_timer_=NaN)};
_.p.disposeInternal=function(){this.stop();_.P4.prototype.disposeInternal.call(this)};
_.p.poll_=function(){this.JSC$17439_timer_=NaN;this.JSC$17439_xhr_=_.W8(Iv(this.JSC$17439_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.M2)(this.JSC$17441_onSuccess_,this),onError:(0,_.M2)(this.onError_,this),onTimeout:(0,_.M2)(this.JSC$17441_onTimeout_,this)})};
_.p.JSC$17441_onSuccess_=function(B,R){this.JSC$17439_xhr_=null;B=R.screen||{};B.dialId=this.deviceId_;B.name=this.friendlyName_;R=-1;this.enableShortLivedLoungeToken_&&B.shortLivedLoungeToken&&B.shortLivedLoungeToken.value&&B.shortLivedLoungeToken.refreshIntervalMs&&(B.screenIdType="shortLived",B.loungeToken=B.shortLivedLoungeToken.value,R=B.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new TN(B),R)};
_.p.onError_=function(B){this.JSC$17439_xhr_=null;B.status&&B.status==404?this.pollIndex_>=hVN.length?this.publish("pairingFailed",Error("Dk")):(B=hVN[this.pollIndex_],this.JSC$17439_timer_=_.pq((0,_.M2)(this.poll_,this),B),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+B.status))};
_.p.JSC$17441_onTimeout_=function(){this.JSC$17439_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var hVN=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.eY(s3,Ag);_.p=s3.prototype;_.p.start=function(){iU(this)&&this.publish("screenChange");!_.tp("yt-remote-lounge-token-expiration")&&t8U(this);_.hu(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.pq((0,_.M2)(this.start,this),1E4)};
_.p.add=function(B,R){iU(this);eV2(this,B);Wf6(this,!1);this.publish("screenChange");R(B);B.token||t8U(this)};
_.p.remove=function(B,R){var V=iU(this);pCi(this,B)&&(Wf6(this,!1),V=!0);R(B);V&&this.publish("screenChange")};
_.p.updateName=function(B,R,V,e){var X=iU(this),Y=this.get(B.id);Y?(Y.name!=R&&(Y.name=R,Wf6(this,!1),X=!0),V(B)):e(Error("Gk"));X&&this.publish("screenChange")};
_.p.disposeInternal=function(){_.hu(this.loungeTokenRefreshTimer_);s3.superClass_.disposeInternal.call(this)};
var t8U=function(B){if(B.screens.length){var R=_.DO(B.screens,function(e){return e.id}),V=Iv(B.JSC$17443_http_,"/pairing/get_lounge_token_batch");
B.JSC$17443_http_.sendRequest("POST",V,{screen_ids:R.join(",")},(0,_.M2)(B.handleLoungeTokens_,B),(0,_.M2)(B.handleLoungeTokenError_,B))}};
s3.prototype.handleLoungeTokens_=function(B){iU(this);var R=this.screens.length;B=B&&B.screens||[];for(var V=B.length,e=0;e<V;++e){var X=B[e],Y=this.get(X.screenId);Y&&(Y.token=X.loungeToken,--R)}Wf6(this,!R);R&&Qp(this.JSC$17436_logName_,"Missed "+R+" lounge tokens.")};
s3.prototype.handleLoungeTokenError_=function(B){Qp(this.JSC$17436_logName_,"Requesting lounge tokens failed: "+B)};
var iU=function(B){if(_.k("deprecate_pair_servlet_enabled"))return XC6(B,[]);var R=B34(mrn());R=_.pU(R,function(V){return!V.uuid});
return XC6(B,R)},Wf6=function(B,R){CsN(_.DO(B.screens,Otj));
R&&$rz()};var mi=function(B,R){_.P4.call(this);this.getScreensToCheck_=R;R=(R=_.tp("yt-remote-online-screen-ids")||"")?R.split(","):[];for(var V={},e=this.getScreensToCheck_(),X=e.length,Y=0;Y<X;++Y){var t=e[Y].id;V[t]=_.gx(R,t)}this.screenIdSet_=V;this.JSC$17446_http_=B;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;byo("Initialized with "+(0,_.aB)(this.screenIdSet_))};
_.l(mi,_.P4);mi.prototype.isOnline=function(B){return!!this.screenIdSet_[B]};
mi.prototype.start=function(){var B=parseInt(_.tp("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.VG()-144E5<B?0:B)?Jyj(this):(this.fastCheckEndTime_=_.VG()+3E5,_.hp("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
mi.prototype.isEmpty=function(){return _.M_.isEmpty(this.screenIdSet_)};
mi.prototype.update=function(){byo("Updating availability on schedule.");var B=this.getScreensToCheck_(),R=_.M_.filter(this.screenIdSet_,function(V,e){return V&&!!LH(B,e)},this);
j8m(this,R)};
var Uyi=function(B,R,V){var e=Iv(B.JSC$17446_http_,"/pairing/get_screen_availability");B.JSC$17446_http_.sendRequest("POST",e,{lounge_token:R.token},(0,_.M2)(function(X){X=X.screens||[];for(var Y=X.length,t=0;t<Y;++t)if(X[t].loungeToken==R.token){V(X[t].status=="online");return}V(!1)},B),(0,_.M2)(function(){V(!1)},B))};
mi.prototype.disposeInternal=function(){_.hu(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.P4.prototype.disposeInternal.call(this)};
var j8m=function(B,R){a:if(_.M_.getCount(R)!=_.M_.getCount(B.screenIdSet_))var V=!1;else{V=_.M_.getKeys(R);for(var e=V.length,X=0;X<e;++X)if(!B.screenIdSet_[V[X]]){V=!1;break a}V=!0}V||(byo("Updated online screens: "+(0,_.aB)(B.screenIdSet_)),B.screenIdSet_=R,B.publish("screenChange"));N3N(B)},Jyj=function(B){isNaN(B.refreshTimer_)||_.hu(B.refreshTimer_);
B.refreshTimer_=_.pq((0,_.M2)(B.requestScreenAvailability_,B),B.fastCheckEndTime_>0&&B.fastCheckEndTime_<_.VG()?2E4:1E4)};
mi.prototype.requestScreenAvailability_=function(){_.hu(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var B=Gem(this);if(_.M_.getCount(B)){var R=Iv(this.JSC$17446_http_,"/pairing/get_screen_availability"),V={lounge_token:_.M_.getKeys(B).join(",")};this.currentRequest_=this.JSC$17446_http_.sendRequest("POST",R,V,(0,_.M2)(this.onScreenAvailability_,this,B),(0,_.M2)(this.onScreenAvailabilityError_,this))}else j8m(this,{}),Jyj(this)};
mi.prototype.onScreenAvailability_=function(B,R){this.currentRequest_=null;var V=_.M_.getKeys(Gem(this));if(_.Jh(V,_.M_.getKeys(B))){R=R.screens||[];V={};for(var e=R.length,X=0;X<e;++X)V[B[R[X].loungeToken]]=R[X].status=="online";j8m(this,V);Jyj(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
mi.prototype.onScreenAvailabilityError_=function(B){this.warn_("Screen availability failed: "+B);this.currentRequest_=null;Jyj(this)};
var byo=function(B){Qp("OnlineScreenService",B)};
mi.prototype.warn_=function(B){Qp("OnlineScreenService",B)};
var Gem=function(B){var R={};_.ij(B.getScreensToCheck_(),function(V){V.token?R[V.token]=V.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return R},N3N=function(B){B=_.M_.getKeys(_.M_.filter(B.screenIdSet_,function(R){return R}));
B.sort(_.b_);B.length?_.hp("yt-remote-online-screen-ids",B.join(","),60):_.WD("yt-remote-online-screen-ids")};_.eY(F7,Ag);_.p=F7.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(B,R,V){this.localScreenService_.add(B,R,V)};
_.p.remove=function(B,R,V){this.localScreenService_.remove(B,R,V);this.onlineScreenService_.update()};
_.p.updateName=function(B,R,V,e){this.localScreenService_.contains(B)?this.localScreenService_.updateName(B,R,V,e):(B="Updating name of unknown screen: "+B.name,Qp(this.JSC$17436_logName_,B),e(Error(B)))};
_.p.getScreens=function(B){return B?this.screens:BV2(this.screens,_.pU(this.automaticScreens_,function(R){return!this.contains(R)},this))};
_.p.JSC$17451_getOnlineScreens=function(){return _.pU(this.getScreens(!0),function(B){return this.onlineScreenService_.isOnline(B.id)},this)};
var Spn=function(B,R,V,e,X,Y){B.info("getAutomaticScreenByIds "+V+" / "+R);V||(V=B.deviceToScreenId_[R]);var t=B.getScreens(),b=V?LH(t,V):null;V&&(B.disableAutomaticScreenCache_||b)||(b=LH(t,R));if(b){b.uuid=R;var J=$M(B,b);Uyi(B.onlineScreenService_,J,function(G){X(G?J:null)})}else V?yy4(B,V,(0,_.M2)(function(G){var y=$M(this,new TN({name:e,
screenId:V,loungeToken:G,dialId:R||""}));Uyi(this.onlineScreenService_,y,function(S){X(S?y:null)})},B),Y):X(null)};
F7.prototype.JSC$17451_getScreenByPollingPairingCode=function(B,R,V,e,X,Y){var t=this;this.info("getDialScreenByPairingCode "+B+" / "+R);var b=new Yp4(this.JSC$17449_http_,B,R,V,e);b.subscribe("pairingComplete",function(J,G){_.Cx(b);X($M(t,J),G)});
b.subscribe("pairingFailed",function(J){_.Cx(b);Y(J)});
b.start();return(0,_.M2)(b.stop,b)};
var Hy2=function(B,R){for(var V=B.screens.length,e=0;e<V;++e)if(B.screens[e].name==R)return B.screens[e];return null};
F7.prototype.JSC$17451_getScreenByPairingCode=function(B,R,V,e){_.W8(Iv(this.JSC$17449_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:B},timeout:5E3,onSuccess:(0,_.M2)(function(X,Y){X=new TN(Y.screen||{});if(!X.name||Hy2(this,X.name)){a:{Y=X.name;for(var t=2,b=R(Y,t);Hy2(this,b);){t++;if(t>20)break a;b=R(Y,t)}Y=b}X.name=Y}V($M(this,X))},this),
onError:(0,_.M2)(function(X){e(Error("Hk`"+X.status))},this),
onTimeout:(0,_.M2)(function(){e(Error("Ik"))},this)})};
var M84=function(B,R,V){Uyi(B.onlineScreenService_,R,V)};
F7.prototype.disposeInternal=function(){_.Cx(this.localScreenService_);_.Cx(this.onlineScreenService_);F7.superClass_.disposeInternal.call(this)};
var yy4=function(B,R,V,e){B.info("requestLoungeToken_ for "+R);var X={postParams:{screen_ids:R},method:"POST",context:B,onSuccess:function(Y,t){Y=t&&t.screens||[];Y[0]&&Y[0].screenId==R?V(Y[0].loungeToken):e(Error("Jk"))},
onError:function(){e(Error("Kk"))}};
_.W8(Iv(B.JSC$17449_http_,"/pairing/get_lounge_token_batch"),X)},ke4=function(B){B.screens=B.localScreenService_.getScreens();
for(var R=_.M_.transpose(B.deviceToScreenId_),V=B.screens.length,e=0;e<V;++e){var X=B.screens[e];X.uuid=R[X.id]||""}B.info("Updated manual screens: "+b04(B.screens))};
F7.prototype.handleScreenChange_=function(){ke4(this);this.publish("screenChange");this.onlineScreenService_.update()};
var JEi=function(B){Dyr(B);B.localScreenService_=new s3(B.JSC$17449_http_);B.localScreenService_.subscribe("screenChange",(0,_.M2)(B.handleScreenChange_,B));ke4(B);B.disableAutomaticScreenCache_||(B.automaticScreens_=B34(_.tp("yt-remote-automatic-screen-cache")||[]));Dyr(B);B.info("Initializing automatic screens: "+b04(B.automaticScreens_));B.onlineScreenService_=new mi(B.JSC$17449_http_,(0,_.M2)(B.getScreens,B,!0));B.onlineScreenService_.subscribe("screenChange",(0,_.M2)(function(){this.publish("onlineScreenChange")},
B))},$M=function(B,R){var V=B.get(R.id);
V?(V.uuid=R.uuid,R=V):((V=LH(B.automaticScreens_,R.uuid))?(V.id=R.id,V.token=R.token,R=V):B.automaticScreens_.push(R),B.disableAutomaticScreenCache_||f0z(B));Dyr(B);B.deviceToScreenId_[R.uuid]=R.id;_.hp("yt-remote-device-id-map",B.deviceToScreenId_,31536E3);return R},f0z=function(B){B=_.pU(B.automaticScreens_,function(R){return R.idType!="shortLived"});
_.hp("yt-remote-automatic-screen-cache",_.DO(B,Otj))},Dyr=function(B){B.deviceToScreenId_=_.tp("yt-remote-device-id-map")||{}};
F7.prototype.dispose=F7.prototype.dispose;_.eY(rN,_.P4);var Cv=function(B,R){B.screen_=R;B.publish("sessionScreen",B.screen_)},l0U=function(B,R){B.screen_&&(B.screen_.token=R,$M(B.JSC$17453_screenService_,B.screen_));
B.publish("sessionScreen",B.screen_)};
rN.prototype.onSessionStopped=function(B){this.isDisposed()||(B&&(Pl(this,""+B),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
rN.prototype.info=function(B){Qp(this.JSC$17453_logName_,B)};
var Pl=function(B,R){Qp(B.JSC$17453_logName_,R)};
rN.prototype.JSC$17455_getCastSession=function(){return null};
rN.prototype.setDisplayStatus=function(B){var R=this.receiver_;B?(R.displayStatus=new chrome.cast.ReceiverDisplayStatus(B,[]),R.displayStatus.showStop=!0):R.displayStatus=null;chrome.cast.setReceiverDisplayStatus(R,(0,_.M2)(function(){this.info("Updated receiver status for "+R.friendlyName+": "+B)},this),(0,_.M2)(function(){Pl(this,"Failed to update receiver status for: "+R.friendlyName)},this))};
rN.prototype.disposeInternal=function(){this.setDisplayStatus("");rN.superClass_.disposeInternal.call(this)};var nv=function(B,R,V){rN.call(this,B,R,"CastSession");var e=this;this.config_=V;this.JSC$17458_session_=null;this.JSC$17458_boundSessionUpdate_=(0,_.M2)(this.JSC$17460_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.M2)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.pq(function(){zVj(e,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17458_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17458_isInitLoungeToken_=!1;this.JSC$17458_lastLoungeTokenRefreshError_="unknown"};
_.l(nv,rN);_.p=nv.prototype;
_.p.setCastSession=function(B){if(this.JSC$17458_session_){if(this.JSC$17458_session_==B)return;Pl(this,"Overriding cast session with new session object");a04(this);this.JSC$17458_isInitLoungeToken_=!1;this.JSC$17458_lastLoungeTokenRefreshError_="unknown";this.JSC$17458_session_.removeUpdateListener(this.JSC$17458_boundSessionUpdate_);this.JSC$17458_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17458_session_=B;this.JSC$17458_session_.addUpdateListener(this.JSC$17458_boundSessionUpdate_);this.JSC$17458_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);dyj(this,"getMdxSessionStatus")};
_.p.launchWithParams=function(B){this.info("launchWithParams no-op for Cast: "+(0,_.aB)(B))};
_.p.stop=function(){if(this.JSC$17458_session_)this.JSC$17458_session_.stop((0,_.M2)(function(){this.onSessionStopped()},this),(0,_.M2)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.p.setDisplayStatus=function(){};
_.p.disposeInternal=function(){this.info("disposeInternal");a04(this);this.JSC$17458_session_&&(this.JSC$17458_session_.removeUpdateListener(this.JSC$17458_boundSessionUpdate_),this.JSC$17458_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17458_session_=null;rN.prototype.disposeInternal.call(this)};
var T3U=function(B,R){_.hu(B.getLoungeTokenTimeoutKey_);B.getLoungeTokenTimeoutKey_=0;R==0?wCr(B):B.getLoungeTokenTimeoutKey_=_.pq(function(){wCr(B)},R)},wCr=function(B){dyj(B,"getLoungeToken");
_.hu(B.onLoungeTokenTimeoutKey_);B.onLoungeTokenTimeoutKey_=_.pq(function(){xyN(B,null)},3E4)},dyj=function(B,R){B.info("sendYoutubeMessage_: "+R+" "+(0,_.aB)(void 0));
var V={};V.type=R;B.JSC$17458_session_?B.JSC$17458_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",V,function(){},(0,_.M2)(function(){Pl(this,"Failed to send message: "+R+".")},B)):Pl(B,"Sending yt message without session: "+(0,_.aB)(V))};
nv.prototype.onYoutubeMessage_=function(B,R){if(!this.isDisposed())if(R)if(R=(0,_.ls)(R),_.Xa(R))switch(B=""+R.type,R=R.data||{},this.info("onYoutubeMessage_: "+B+" "+(0,_.aB)(R)),B){case "mdxSessionStatus":zVj(this,R);break;case "loungeToken":xyN(this,R);break;default:Pl(this,"Unknown youtube message: "+B)}else Pl(this,"Unable to parse message.");else Pl(this,"No data in message.")};
var Lf4=function(B,R){if(R)B.info("onConnectedScreenId_: Received screenId: "+R),B.screen_&&B.screen_.id==R||B.getScreen_(R,function(V){Cv(B,V)},function(){return B.onSessionStopped()},5);
else B.onSessionStopped(Error("Nk"))},Kfz=function(B,R,V){B.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(R));
var e=new TN(R);vJN(B,e,function(X){X?(B.JSC$17458_isInitLoungeToken_=!0,$M(B.JSC$17453_screenService_,e),Cv(B,e),B.JSC$17458_lastLoungeTokenRefreshError_="unknown",T3U(B,V)):(_.IP(Error("Ok`"+JSON.stringify(R))),B.onSessionStopped())},5)},zVj=function(B,R){_.hu(B.sessionStatusTimeoutKey_);
B.sessionStatusTimeoutKey_=0;if(R)B.config_.enableCastLoungeToken&&R.loungeToken?R.deviceId?B.screen_&&B.screen_.uuid==R.deviceId||(R.loungeTokenRefreshIntervalMs?Kfz(B,{name:B.receiver_.friendlyName,screenId:R.screenId,loungeToken:R.loungeToken,dialId:R.deviceId,screenIdType:"shortLived"},R.loungeTokenRefreshIntervalMs):(_.IP(Error("Qk`"+JSON.stringify(R))),Lf4(B,R.screenId))):(_.IP(Error("Pk`"+JSON.stringify(R))),Lf4(B,R.screenId)):Lf4(B,R.screenId);else B.onSessionStopped(Error("Nk"))},xyN=function(B,
R){_.hu(B.onLoungeTokenTimeoutKey_);
B.onLoungeTokenTimeoutKey_=0;var V=null;if(R)if(R.loungeToken){var e;((e=B.screen_)==null?void 0:e.token)==R.loungeToken&&(V="staleLoungeToken")}else V="missingLoungeToken";else V="noLoungeTokenResponse";V?(B.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(R)+", error: "+V)),B.JSC$17458_lastLoungeTokenRefreshError_=V,T3U(B,3E4)):(l0U(B,R.loungeToken),B.JSC$17458_isInitLoungeToken_=!1,B.JSC$17458_lastLoungeTokenRefreshError_="unknown",T3U(B,R.loungeTokenRefreshIntervalMs))};
nv.prototype.getScreen_=function(B,R,V,e){_.hu(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Spn(this.JSC$17453_screenService_,this.receiver_.label,B,this.receiver_.friendlyName,(0,_.M2)(function(X){X?R(X):e>=0?(Pl(this,"Screen "+B+" appears to be offline. "+e+" retries left."),this.getScreenTimeoutKey_=_.pq((0,_.M2)(this.getScreen_,this,B,R,V,e-1),300)):V(Error("Rk"))},this),V)};
var vJN=function(B,R,V,e){_.hu(B.JSC$17458_checkScreenAvailabilityTimeoutKey_);B.JSC$17458_checkScreenAvailabilityTimeoutKey_=0;M84(B.JSC$17453_screenService_,R,function(X){X||e<0?V(X):B.JSC$17458_checkScreenAvailabilityTimeoutKey_=_.pq(function(){vJN(B,R,V,e-1)},300)})};
nv.prototype.JSC$17455_getCastSession=function(){return this.JSC$17458_session_};
nv.prototype.JSC$17460_onSessionUpdate_=function(B){this.isDisposed()||B||(Pl(this,"Cast session died."),this.onSessionStopped())};
var a04=function(B){_.hu(B.getScreenTimeoutKey_);B.getScreenTimeoutKey_=0;_.hu(B.JSC$17458_checkScreenAvailabilityTimeoutKey_);B.JSC$17458_checkScreenAvailabilityTimeoutKey_=0;_.hu(B.sessionStatusTimeoutKey_);B.sessionStatusTimeoutKey_=0;_.hu(B.onLoungeTokenTimeoutKey_);B.onLoungeTokenTimeoutKey_=0;_.hu(B.getLoungeTokenTimeoutKey_);B.getLoungeTokenTimeoutKey_=0};var uX=function(B,R,V,e){rN.call(this,B,R,"DialSession");this.config_=e;this.JSC$17462_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17462_theme_=V;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17462_deferredLaunchDeadlineTimer_=NaN;this.JSC$17462_boundSessionUpdate_=(0,_.M2)(this.JSC$17464_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17462_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17462_isInitLoungeToken_=!1;this.JSC$17462_lastLoungeTokenRefreshError_="unknown"};
_.l(uX,rN);uX.prototype.setCastSession=function(B){this.JSC$17462_session_=B;this.JSC$17462_session_.addUpdateListener(this.JSC$17462_boundSessionUpdate_)};
uX.prototype.launchWithParams=function(B){this.connectData_=B;this.deferredLaunch_()};
uX.prototype.stop=function(){I02(this);if(this.JSC$17462_session_)this.JSC$17462_session_.stop((0,_.M2)(this.onSessionStopped,this,null),(0,_.M2)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
uX.prototype.disposeInternal=function(){I02(this);this.JSC$17462_session_&&this.JSC$17462_session_.removeUpdateListener(this.JSC$17462_boundSessionUpdate_);this.JSC$17462_session_=null;rN.prototype.disposeInternal.call(this)};
var EJz=function(B){var R;return!!(B.config_.enableDialLoungeToken&&((R=B.JSC$17462_session_)==null?0:R.getDialAppInfo))},Q84=function(B){B.cancelPolling_=B.JSC$17453_screenService_.JSC$17451_getScreenByPollingPairingCode(B.reversePairingCode_,B.receiver_.label,B.receiver_.friendlyName,EJz(B),function(R,V){B.cancelPolling_=function(){};
B.JSC$17462_isInitLoungeToken_=!0;Cv(B,R);R.idType=="shortLived"&&V>0&&OC(B,V)},function(R){B.cancelPolling_=function(){};
B.onSessionStopped(R)})};
uX.prototype.JSC$17464_onSessionUpdate_=function(B){this.isDisposed()||B||(Pl(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var qpN=function(B){var R={};R.pairingCode=B.reversePairingCode_;R.theme=B.JSC$17462_theme_;nan()&&(R.env_useStageMdx=1);return _.bN(R)},cyo=function(B){return new Promise(function(R){B.reversePairingCode_=Eae();
if(B.connectData_){var V=new chrome.cast.DialLaunchResponse(!0,qpN(B));R(V);Q84(B)}else B.deferredLaunch_=function(){_.hu(B.JSC$17462_deferredLaunchDeadlineTimer_);B.deferredLaunch_=function(){};
B.JSC$17462_deferredLaunchDeadlineTimer_=NaN;var e=new chrome.cast.DialLaunchResponse(!0,qpN(B));R(e);Q84(B)},B.JSC$17462_deferredLaunchDeadlineTimer_=_.pq(function(){B.deferredLaunch_()},100)})},iyj=function(B,R,V){B.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(R));
var e=new TN(R);return(new Promise(function(X){Ayo(B,e,function(Y){Y?(B.JSC$17462_isInitLoungeToken_=!0,$M(B.JSC$17453_screenService_,e),Cv(B,e),OC(B,V)):_.IP(Error("Tk`"+JSON.stringify(R)));X(Y)},5)})).then(function(X){return X?new chrome.cast.DialLaunchResponse(!1):cyo(B)})},s8e=function(B,R){var V=B.launchData_.receiver.label,e=B.receiver_.friendlyName;
return(new Promise(function(X){Spn(B.JSC$17453_screenService_,V,R,e,function(Y){Y&&Y.token&&Cv(B,Y);X(Y)},function(Y){Pl(B,"Failed to get DIAL screen: "+Y);
X(null)})})).then(function(X){return X&&X.token?new chrome.cast.DialLaunchResponse(!1):cyo(B)})},Ayo=function(B,R,V,e){_.hu(B.JSC$17462_checkScreenAvailabilityTimeoutKey_);
B.JSC$17462_checkScreenAvailabilityTimeoutKey_=0;M84(B.JSC$17453_screenService_,R,function(X){X||e<0?V(X):B.JSC$17462_checkScreenAvailabilityTimeoutKey_=_.pq(function(){Ayo(B,R,V,e-1)},300)})},OC=function(B,R){B.info("getDialAppInfoWithTimeout_ "+R);
EJz(B)&&(_.hu(B.getDialAppInfoTimeoutKey_),B.getDialAppInfoTimeoutKey_=0,R==0?FfN(B):B.getDialAppInfoTimeoutKey_=_.pq(function(){FfN(B)},R))},FfN=function(B){EJz(B)&&B.JSC$17462_session_.getDialAppInfo(function(R){B.info("getDialAppInfo dialLaunchData: "+JSON.stringify(R));
R=R.extraData||{};var V=null;if(R.loungeToken){var e;((e=B.screen_)==null?void 0:e.token)==R.loungeToken&&(V="staleLoungeToken")}else V="missingLoungeToken";V?(B.JSC$17462_lastLoungeTokenRefreshError_=V,OC(B,3E4)):(B.JSC$17462_isInitLoungeToken_=!1,B.JSC$17462_lastLoungeTokenRefreshError_="unknown",l0U(B,R.loungeToken),OC(B,R.loungeTokenRefreshIntervalMs))},function(R){B.info("getDialAppInfo error: "+R);
B.JSC$17462_lastLoungeTokenRefreshError_="noLoungeTokenResponse";OC(B,3E4)})},I02=function(B){_.hu(B.JSC$17462_checkScreenAvailabilityTimeoutKey_);
B.JSC$17462_checkScreenAvailabilityTimeoutKey_=0;_.hu(B.getDialAppInfoTimeoutKey_);B.getDialAppInfoTimeoutKey_=0;B.cancelPolling_();B.cancelPolling_=function(){};
_.hu(B.JSC$17462_deferredLaunchDeadlineTimer_)};var oX=function(B,R){rN.call(this,B,R,"ManualSession");this.JSC$17466_deferredLaunchDeadlineTimer_=_.pq((0,_.M2)(this.launchWithParams,this,null),150)};
_.l(oX,rN);oX.prototype.stop=function(){this.onSessionStopped()};
oX.prototype.setCastSession=function(){};
oX.prototype.launchWithParams=function(){_.hu(this.JSC$17466_deferredLaunchDeadlineTimer_);this.JSC$17466_deferredLaunchDeadlineTimer_=NaN;var B=LH(this.JSC$17453_screenService_.getScreens(),this.receiver_.label);if(B)Cv(this,B);else this.onSessionStopped(Error("Uk"))};
oX.prototype.disposeInternal=function(){_.hu(this.JSC$17466_deferredLaunchDeadlineTimer_);this.JSC$17466_deferredLaunchDeadlineTimer_=NaN;rN.prototype.disposeInternal.call(this)};var $u=function(B,R){_.P4.call(this);this.config_=R;this.JSC$17469_screenService_=B;this.JSC$17469_appId_=R.appId||"233637DE";this.JSC$17469_theme_=R.theme||"cl";this.disableDial_=R.disableCastApi||!1;this.forceMirroring_=R.forceMirroring||!1;this.JSC$17469_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.M2)(this.onReceiverAction_,this)};
_.l($u,_.P4);
$u.prototype.init=function(B,R){chrome.cast.timeout.requestSession=3E4;var V=new chrome.cast.SessionRequest(this.JSC$17469_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.k("desktop_enable_cast_connect")&&(V.androidReceiverCompatible=!0);this.disableDial_||(V.dialRequest=new chrome.cast.DialRequest("YouTube"));var e=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;B=B||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var X=(0,_.M2)(this.onReceiverUpdated_,
this);V=new chrome.cast.ApiConfig(V,(0,_.M2)(this.onSessionEstablished_,this),X,e,B);V.customDialLaunchCallback=(0,_.M2)(this.onDialLaunchRequested_,this);chrome.cast.initialize(V,(0,_.M2)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),XzU(),this.JSC$17469_screenService_.subscribe("onlineScreenChange",(0,_.M2)(this.JSC$17471_onScreenChange_,this)),this.customReceivers_=ryN(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.M2)(function(Y){this.warn_("Failed to set initial custom receivers: "+(0,_.aB)(Y))},this)),this.publish("yt-remote-cast2-availability-change",Bm(this)),R(!0))},this),(0,_.M2)(function(Y){this.warn_("Failed to initialize API: "+(0,_.aB)(Y));
R(!1)},this))};
$u.prototype.setConnectedScreenStatus=function(B,R){RX("Setting connected screen ID: "+B+" -> "+R);if(this.JSC$17469_session_){var V=this.JSC$17469_session_.screen_;if(!B||V&&V.id!=B)RX("Unsetting old screen status: "+this.JSC$17469_session_.receiver_.friendlyName),V7(this,null)}if(B&&R){if(!this.JSC$17469_session_){B=LH(this.JSC$17469_screenService_.getScreens(),B);if(!B){RX("setConnectedScreenStatus: Unknown screen.");return}if(B.idType=="shortLived"){RX("setConnectedScreenStatus: Screen with id type to be short lived.");
return}V=gJ7(this,B);V||(RX("setConnectedScreenStatus: Connected receiver not custom..."),V=new chrome.cast.Receiver(B.uuid?B.uuid:B.id,B.name),V.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(V),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.M2)(function(e){this.warn_("Failed to set initial custom receivers: "+(0,_.aB)(e))},this)));
RX("setConnectedScreenStatus: new active receiver: "+V.friendlyName);V7(this,new oX(this.JSC$17469_screenService_,V),!0)}this.JSC$17469_session_.setDisplayStatus(R)}else RX("setConnectedScreenStatus: no screen.")};
var gJ7=function(B,R){return R?_.AA(B.customReceivers_,function(V){return xu(R,V.label)},B):null};
$u.prototype.setLaunchParams=function(B){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17469_session_?this.JSC$17469_session_.launchWithParams(B):this.warn_("Setting connection data without a session")};
$u.prototype.JSC$17471_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17469_session_?(this.JSC$17469_session_.stop(),V7(this,null)):RX("Stopping non-existing session")};
$u.prototype.requestSession=function(){chrome.cast.requestSession((0,_.M2)(this.onSessionEstablished_,this),(0,_.M2)(this.onSessionRequestFailed_,this))};
$u.prototype.disposeInternal=function(){this.JSC$17469_screenService_.unsubscribe("onlineScreenChange",(0,_.M2)(this.JSC$17471_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.uo(_.qN("yt.mdx.remote.debug.handlers_")||[],ReU);_.Cx(this.JSC$17469_session_);_.P4.prototype.disposeInternal.call(this)};
var RX=function(B){Qp("Controller",B)};
$u.prototype.warn_=function(B){Qp("Controller",B)};
var ReU=function(B){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(B)},Bm=function(B){return B.hasCastReceiver_||!!B.customReceivers_.length||!!B.JSC$17469_session_},V7=function(B,R,V){R!=B.JSC$17469_session_&&(_.Cx(B.JSC$17469_session_),(B.JSC$17469_session_=R)?(V?B.publish("yt-remote-cast2-receiver-resumed",R.receiver_):B.publish("yt-remote-cast2-receiver-selected",R.receiver_),R.subscribe("sessionScreen",(0,_.M2)(B.onSessionScreen_,B,R)),R.subscribe("sessionFailed",
function(){return Zy6(B,R)}),R.screen_?B.publish("yt-remote-cast2-session-change",R.screen_):V&&B.JSC$17469_session_.launchWithParams(null)):B.publish("yt-remote-cast2-session-change",null))},Zy6=function(B,R){B.JSC$17469_session_==R&&B.publish("yt-remote-cast2-session-failed")};
_.p=$u.prototype;_.p.onSessionScreen_=function(B,R){this.JSC$17469_session_==B&&(R||V7(this,null),this.publish("yt-remote-cast2-session-change",R))};
_.p.onReceiverAction_=function(B,R){if(!this.isDisposed())if(B)switch(B.friendlyName=chrome.cast.unescape(B.friendlyName),RX("onReceiverAction_ "+B.label+" / "+B.friendlyName+"-- "+R),R){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17469_session_)if(this.JSC$17469_session_.receiver_.label!=B.label)RX("onReceiverAction_: Stopping active receiver: "+this.JSC$17469_session_.receiver_.friendlyName),this.JSC$17469_session_.stop();else{RX("onReceiverAction_: Casting to active receiver.");this.JSC$17469_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17469_session_.screen_);break}switch(B.receiverType){case chrome.cast.ReceiverType.CUSTOM:V7(this,new oX(this.JSC$17469_screenService_,B));break;case chrome.cast.ReceiverType.DIAL:V7(this,new uX(this.JSC$17469_screenService_,B,this.JSC$17469_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:V7(this,new nv(this.JSC$17469_screenService_,B,this.config_));break;default:this.warn_("Unknown receiver type: "+B.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17469_session_&&
this.JSC$17469_session_.receiver_.label==B.label?this.JSC$17469_session_.stop():this.warn_("Stopping receiver w/o session: "+B.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.p.onDialLaunchRequested_=function(B){if(this.isDisposed())return Promise.reject(Error("Vk"));var R=B.receiver;R.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+R.friendlyName),R.receiverType=chrome.cast.ReceiverType.DIAL);var V=this.JSC$17469_session_?this.JSC$17469_session_.receiver_:null;if(!V||V.label!=R.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+R.friendlyName),Promise.reject(Error("Wk"));if(V&&V.label==R.label&&V.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17469_session_.screen_)return RX("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17469_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+V.receiverType+'" to "dial" for '+R.friendlyName);V7(this,new uX(this.JSC$17469_screenService_,R,this.JSC$17469_theme_,this.config_))}R=this.JSC$17469_session_;R.launchData_=B;R.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(B=R.launchData_.extraData||{},V=B.screenId||null,EJz(R)&&B.loungeToken?B.loungeTokenRefreshIntervalMs?B=iyj(R,{name:R.receiver_.friendlyName,screenId:B.screenId,loungeToken:B.loungeToken,dialId:R.launchData_.receiver.label,screenIdType:"shortLived"},B.loungeTokenRefreshIntervalMs):(_.IP(Error("Sk`"+JSON.stringify(B))),B=s8e(R,V)):B=s8e(R,V)):B=cyo(R);return B};
_.p.onSessionEstablished_=function(B){var R=this;if(!this.isDisposed()&&!this.forceMirroring_){RX("New cast session ID: "+B.sessionId);var V=B.receiver;if(V.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17469_session_)if(V.receiverType==chrome.cast.ReceiverType.CAST)RX("Got resumed cast session before resumed mdx connection."),V.friendlyName=chrome.cast.unescape(V.friendlyName),V7(this,new nv(this.JSC$17469_screenService_,V,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var e=this.JSC$17469_session_.receiver_,X=LH(this.JSC$17469_screenService_.getScreens(),e.label);X&&xu(X,V.label)&&e.receiverType!=chrome.cast.ReceiverType.CAST&&V.receiverType==chrome.cast.ReceiverType.CAST&&(RX("onSessionEstablished_: manual to cast session change "+V.friendlyName),_.Cx(this.JSC$17469_session_),this.JSC$17469_session_=new nv(this.JSC$17469_screenService_,V,this.config_),this.JSC$17469_session_.subscribe("sessionScreen",(0,_.M2)(this.onSessionScreen_,this,this.JSC$17469_session_)),
this.JSC$17469_session_.subscribe("sessionFailed",function(){return Zy6(R,R.JSC$17469_session_)}),this.JSC$17469_session_.launchWithParams(null));
this.JSC$17469_session_.setCastSession(B)}}};
_.p.JSC$17471_getCastSession=function(){return this.JSC$17469_session_?this.JSC$17469_session_.JSC$17455_getCastSession():null};
_.p.onSessionRequestFailed_=function(B){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.aB)(B)),B.code!=chrome.cast.ErrorCode.CANCEL&&V7(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.p.onReceiverUpdated_=function(B){RX("Receiver availability updated: "+B);if(!this.isDisposed()){var R=Bm(this);this.hasCastReceiver_=B==chrome.cast.ReceiverAvailability.AVAILABLE;Bm(this)!=R&&this.publish("yt-remote-cast2-availability-change",Bm(this))}};
var ryN=function(B){var R=B.JSC$17469_screenService_.JSC$17451_getOnlineScreens(),V=B.JSC$17469_session_&&B.JSC$17469_session_.receiver_;B=_.DO(R,function(e){V&&xu(e,V.label)&&(V=null);var X=e.uuid?e.uuid:e.id,Y=gJ7(this,e);Y?(Y.label=X,Y.friendlyName=e.name):(Y=new chrome.cast.Receiver(X,e.name),Y.receiverType=chrome.cast.ReceiverType.CUSTOM);return Y},B);
V&&(V.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(V=new chrome.cast.Receiver(V.label,V.friendlyName),V.receiverType=chrome.cast.ReceiverType.CUSTOM),B.push(V));return B};
$u.prototype.JSC$17471_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=ryN(this),RX("Updating custom receivers: "+(0,_.aB)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.M2)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Bm(this)))};
$u.prototype.setLaunchParams=$u.prototype.setLaunchParams;$u.prototype.setConnectedScreenStatus=$u.prototype.setConnectedScreenStatus;$u.prototype.stopSession=$u.prototype.JSC$17471_stopSession;$u.prototype.getCastSession=$u.prototype.JSC$17471_getCastSession;$u.prototype.requestSession=$u.prototype.requestSession;$u.prototype.init=$u.prototype.init;$u.prototype.dispose=$u.prototype.dispose;var Tim=[];var myz=function(B){B.audioTrackId=null;B.trackData=null;B.playerState=-1;B.hasPrevious=!1;B.hasNext=!1;B.playerTime_=0;B.playerTimeAt_=_.VG();B.seekableStart_=0;B.seekableEnd_=0;B.duration_=0;B.loadedTime=0;B.liveIngestionTime_=NaN;B.isLive_=!1};
_.p=CH.prototype;
_.p.reset=function(B){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;B&&(this.index=B.index,this.listId=B.listId,this.videoId=B.videoId,this.playerState=B.playerState,this.volume=B.volume,this.muted=B.muted,this.audioTrackId=B.audioTrackId,this.trackData=B.trackData,this.hasPrevious=B.hasPrevious,this.hasNext=B.hasNext,this.playerTime_=B.playerTime,this.playerTimeAt_=B.playerTimeAt,this.seekableStart_=B.seekableStart,this.seekableEnd_=B.seekableEnd,this.duration_=B.duration,this.loadedTime=
B.loadedTime,this.liveIngestionTime_=B.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.p.stopPlayer=function(){this.index=-1;this.videoId="";myz(this)};
_.p.isPlaying=function(){return this.playerState==1};
_.p.isBuffering=function(){return this.playerState==3};
_.p.isAdPlaying=function(){return this.playerState==1081};
var el=function(B,R){B.playerTime_=R;B.playerTimeAt_=_.VG()},$y6=function(B){switch(B.playerState){case 1:case 1081:return(_.VG()-B.playerTimeAt_)/1E3+B.playerTime_;
case -1E3:return 0}return B.playerTime_};
CH.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.VG()-this.playerTimeAt_)/1E3:0):this.duration_};
var CRr=function(B,R,V){var e=B.videoId;B.videoId=R;B.index=V;R!=e&&myz(B)},PRi=function(B){var R={};
R.index=B.index;R.listId=B.listId;R.videoId=B.videoId;R.playerState=B.playerState;R.volume=B.volume;R.muted=B.muted;R.audioTrackId=B.audioTrackId;R.trackData=_.M_.unsafeClone(B.trackData);R.hasPrevious=B.hasPrevious;R.hasNext=B.hasNext;R.playerTime=B.playerTime_;R.playerTimeAt=B.playerTimeAt_;R.seekableStart=B.seekableStart_;R.seekableEnd=B.seekableEnd_;R.duration=B.duration_;R.loadedTime=B.loadedTime;R.liveIngestionTime=B.liveIngestionTime_;return R};
CH.prototype.clone=function(){return new CH(PRi(this))};var XV=function(B,R){_.P4.call(this);var V=this;this.state_=0;this.connection_=B;this.contextSubscriptions_=[];this.actionQueue_=new agm;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.M2)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.M2)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.M2)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.M2)(this.onCloudviewAvailabilityChange_,this);var e=0;B?(e=B.getProxyState(),
e!=3&&(B.subscribe("proxyStateChange",this.setState_,this),nJr(this))):e=3;e!=0&&(R?this.setState_(e):_.pq(function(){V.setState_(e)},0));
(B=Kye())&&u1e(this,B);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.l(XV,_.P4);XV.prototype.getState=function(){return this.state_};
XV.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
XV.prototype.reconnect=function(){this.connection_.reconnect()};
var p1=function(B){return new CH(B.connection_.getPlayerContextData())};
_.p=XV.prototype;_.p.play=function(){YC(this)?(this.castMedia_?this.castMedia_.play(null,_.ys,Oyo(this,"play")):hV(this,"play"),oZU(this,1,$y6(p1(this))),this.publish("remotePlayerChange")):tV(this,this.play)};
_.p.pause=function(){YC(this)?(this.castMedia_?this.castMedia_.pause(null,_.ys,Oyo(this,"pause")):hV(this,"pause"),oZU(this,2,$y6(p1(this))),this.publish("remotePlayerChange")):tV(this,this.pause)};
_.p.seekTo=function(B){if(YC(this)){if(this.castMedia_){var R=p1(this),V=new chrome.cast.media.SeekRequest;V.currentTime=B;R.isPlaying()||R.isBuffering()?V.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:V.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(V,_.ys,Oyo(this,"seekTo",{newTime:B}))}else hV(this,"seekTo",{newTime:B});oZU(this,3,B);this.publish("remotePlayerChange")}else tV(this,_.JE(this.seekTo,B))};
_.p.stop=function(){if(YC(this)){this.castMedia_?this.castMedia_.stop(null,_.ys,Oyo(this,"stopVideo")):hV(this,"stopVideo");var B=p1(this);B.stopPlayer();Wm(this,B);this.publish("remotePlayerChange")}else tV(this,this.stop)};
_.p.setVolume=function(B,R){if(YC(this)){var V=p1(this);if(this.castSession_){if(V.volume!=B){var e=Math.round(B)/100;this.castSession_.setReceiverVolumeLevel(e,(0,_.M2)(function(){qw("set receiver volume: "+e)},this),(0,_.M2)(function(){this.warn_("failed to set receiver volume.")},this))}V.muted!=R&&this.castSession_.setReceiverMuted(R,(0,_.M2)(function(){qw("set receiver muted: "+R)},this),(0,_.M2)(function(){this.warn_("failed to set receiver muted.")},this))}else{var X={volume:B,
muted:R};V.volume!=-1&&(X.delta=B-V.volume);hV(this,"setVolume",X)}V.muted=R;V.volume=B;Wm(this,V)}else tV(this,_.JE(this.setVolume,B,R))};
_.p.setAudioTrack=function(B,R){YC(this)?(R=R.getLanguageInfo().getId(),hV(this,"setAudioTrack",{videoId:B,audioTrackId:R}),B=p1(this),B.audioTrackId=R,Wm(this,B)):tV(this,_.JE(this.setAudioTrack,B,R))};
_.p.addVideo=function(B){YC(this)?hV(this,"addVideo",{videoId:B}):tV(this,_.JE(this.addVideo,B))};
_.p.addPlaylist=function(B){YC(this)?hV(this,"addVideos",{listId:B}):tV(this,_.JE(this.addPlaylist,B))};
_.p.addVideos=function(B){B.length==0?this.warn_("Ignore add videos request due to empty list"):YC(this)?hV(this,"addVideos",{videoIds:B.join(",")}):tV(this,_.JE(this.addVideos,B))};
_.p.JSC$17481_removeVideo=function(B){YC(this)?hV(this,"removeVideo",{videoId:B}):tV(this,_.JE(this.JSC$17481_removeVideo,B))};
_.p.JSC$17481_insertVideo=function(B){YC(this)?hV(this,"insertVideo",{videoId:B}):tV(this,_.JE(this.JSC$17481_insertVideo,B))};
_.p.playVideo=function(B,R,V,e,X,Y,t){e=e===void 0?null:e;X=X===void 0?null:X;Y=Y===void 0?null:Y;t=t===void 0?null:t;var b=p1(this),J={videoId:B};V!==void 0&&(J.currentIndex=V);CRr(b,B,V||0);R!==void 0&&(el(b,R),J.currentTime=R);e&&(J.listId=e);X&&(J.playerParams=X);Y&&(J.clickTrackingParams=Y);t&&(J.locationInfo=(0,_.aB)(t));hV(this,"setPlaylist",J);e||Wm(this,b)};
_.p.nextVideo=function(B,R){if(YC(this)){if(B&&R){var V=p1(this);CRr(V,B,R);Wm(this,V)}hV(this,"next")}else tV(this,_.JE(this.nextVideo,B,R))};
_.p.clearPlaylist=function(){if(YC(this)){hV(this,"clearPlaylist");var B=p1(this);B.reset();Wm(this,B);this.publish("remotePlayerChange")}else tV(this,this.clearPlaylist)};
_.p.dispose=function(){if(this.state_!=3){var B=this.state_;this.state_=3;this.publish("proxyStateChange",B,this.state_)}_.P4.prototype.dispose.call(this)};
_.p.disposeInternal=function(){BMo(this);this.connection_=null;this.actionQueue_.clear();u1e(this,null);_.P4.prototype.disposeInternal.call(this)};
var nJr=function(B){_.ij("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(R){this.contextSubscriptions_.push(this.connection_.subscribe(R,_.JE(this.onProxyEvent_,R),this))},B)},BMo=function(B){_.ij(B.contextSubscriptions_,function(R){this.connection_.unsubscribeByKey(R)},B);
B.contextSubscriptions_.length=0},YC=function(B){return B.getState()==1},tV=function(B,R){B.actionQueue_.getCount()<50&&B.actionQueue_.enqueue(R)},oZU=function(B,R,V){var e=p1(B);
el(e,V);e.playerState!=-1E3&&(e.playerState=R);Wm(B,e)},hV=function(B,R,V){B.connection_.sendMessage(R,V)},Wm=function(B,R){BMo(B);
B.connection_.setPlayerContextData(PRi(R));nJr(B)};
XV.prototype.setState_=function(B){if((B!=this.state_||B==2)&&this.state_!=3&&B!=0){var R=this.state_;this.state_=B;this.publish("proxyStateChange",R,B);if(B==1)for(;!this.actionQueue_.isEmpty();)B=this.actionQueue_,G0n(B),B.front_.pop().apply(this);else B==3&&this.dispose()}};
XV.prototype.onProxyEvent_=function(B,R){this.publish(B,R)};
var u1e=function(B,R){B.castSession_&&(B.castSession_.removeUpdateListener(B.boundCastStatusListener_),B.castSession_.removeMediaListener(B.boundCastMediaListener_),B.onCastMediaChange_(null));B.castSession_=R;if(B.castSession_&&(qw("Setting cast session: "+B.castSession_.sessionId),B.castSession_.addUpdateListener(B.boundCastStatusListener_),B.castSession_.addMediaListener(B.boundCastMediaListener_),B.castSession_.media.length))B.onCastMediaChange_(B.castSession_.media[0])};
XV.prototype.onCastStatusUpdate_=function(B){if(!B)this.onCastMediaChange_(null),u1e(this,null);else if(this.castSession_.receiver.volume){B=this.castSession_.receiver.volume;var R=p1(this),V=Math.round(100*B.level||0);if(R.volume!=V||R.muted!=B.muted)qw("Cast volume update: "+B.level+(B.muted?" muted":"")),R.volume=V,R.muted=!!B.muted,Wm(this,R)}};
XV.prototype.onCastMediaChange_=function(B){qw("Cast media: "+!!B);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=B)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Ri2(this),this.publish("remotePlayerChange")};
var Ri2=function(B){var R=B.castMedia_.media,V=B.castMedia_.customData;if(R&&V){var e=p1(B);R.contentId!=e.videoId&&qw("Cast changing video to: "+R.contentId);e.videoId=R.contentId;e.playerState=V.playerState;el(e,B.castMedia_.getEstimatedTime());Wm(B,e)}else qw("No cast media video. Ignoring state update.")};
XV.prototype.onCastMediaUpdate_=function(B){if(B)Ri2(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
XV.prototype.onCloudviewAvailabilityChange_=function(){var B=Kye();B&&u1e(this,B)};
XV.prototype.warn_=function(B){Qp("CP",B)};
var Oyo=function(B,R,V){return(0,_.M2)(function(e){this.warn_("Failed to "+R+" with cast v2 channel. Error code: "+e.code);e.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+R+" using MDx browser channel."),hV(this,R,V))},B)};var JV=function(B,R,V,e){e=e===void 0?!1:e;_.P4.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$17488_http_=B;this.enableConnectWithInitialState_=e;this.listeners_.push(_.uf(window,"beforeunload",function(){X.JSC$17491_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new CH;this.currentScreenId_=R.id;this.currentScreenIdType_=R.idType;this.channelService=Bie(this.JSC$17488_http_,V,this.JSC$17491_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){VSU(X)});
this.channelService.listen("channelClosed",function(){bS("Channel closed");isNaN(X.connectTimerId_)?vV(!0):vV();X.dispose()});
this.channelService.listen("channelError",function(Y){vV();isNaN(X.getReconnectTimeout_())?(Y==1&&X.currentScreenIdType_=="shortLived"&&X.publish("browserChannelAuthError",Y),bS("Channel error: "+Y+" without reconnection"),X.dispose()):(X.reconnecting_=!0,bS("Channel error: "+Y+" with reconnection in "+X.getReconnectTimeout_()+" ms"),eie(X,2))});
this.channelService.listen("channelMessage",function(Y){XDj(X,Y)});
this.channelService.setLoungeToken(R.token);this.subscribe("remoteQueueChange",function(){var Y=X.playerContext_.videoId;ipe()&&_.hp("yt-remote-session-video-id",Y)})};
_.l(JV,_.P4);
JV.prototype.connect=function(B,R){if(R){var V=R.listId,e=R.videoId,X=R.videoIds,Y=R.playerParams,t=R.clickTrackingParams,b=R.index,J={videoId:e},G=R.currentTime,y=R.locationInfo;R=R.loopMode;G!==void 0&&(J.currentTime=G<=5?0:G);Y&&(J.playerParams=Y);y&&(J.locationInfo=y);t&&(J.clickTrackingParams=t);V&&(J.listId=V);X&&X.length>0&&(J.videoIds=X.join(","));b!==void 0&&(J.currentIndex=b);this.enableConnectWithInitialState_&&(J.loopMode=R||"LOOP_MODE_OFF");V&&(this.playerContext_.listId=V);this.playerContext_.videoId=
e;this.playerContext_.index=b||0;this.playerContext_.state=3;el(this.playerContext_,G);this.autoplayMode_="UNSUPPORTED";V=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";bS("Connecting with "+V+" and params: "+(0,_.aB)(J));this.channelService.connect({method:V,params:(0,_.aB)(J)},B,Zpe())}else bS("Connecting without params"),this.channelService.connect({},B,Zpe());pDn(this)};
JV.prototype.setLoungeToken=function(B){this.channelService.setLoungeToken(B)};
JV.prototype.dispose=function(){this.isDisposed()||(_.mk("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),eie(this,3));_.P4.prototype.dispose.call(this)};
JV.prototype.disposeInternal=function(){Ybm(this);hie(this);tSm(this);_.hu(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.hu(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.PiK(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.P4.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var WDN=function(B){return _.AA(B.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"})},bS=function(B){Qp("conn",B)},eie=function(B,R){B.publish("proxyStateChange",R)},pDn=function(B){B.connectTimerId_=_.pq(function(){bS("Connecting timeout");
B.JSC$17491_disconnect_(1)},2E4)},Ybm=function(B){_.hu(B.connectTimerId_);
B.connectTimerId_=NaN},tSm=function(B){_.hu(B.reconnectedCheckScreenTimeout_);
B.reconnectedCheckScreenTimeout_=NaN},bFn=function(B){hie(B);
B.playingSyncTimerId_=_.pq(function(){jl(B,"getNowPlaying")},2E4)},hie=function(B){_.hu(B.playingSyncTimerId_);
B.playingSyncTimerId_=NaN},VSU=function(B){bS("Channel opened");
B.reconnecting_&&(B.reconnecting_=!1,tSm(B),B.reconnectedCheckScreenTimeout_=_.pq(function(){bS("Timing out waiting for a screen.");B.JSC$17491_disconnect_(1)},15E3))},jDm=function(B,R){var V=null;
if(R){var e=WDN(B);e&&(V={clientName:e.clientName,deviceMake:e.brand,deviceModel:e.model,osVersion:e.osVersion})}_.mk("yt.mdx.remote.remoteClient_",V);R&&(Ybm(B),tSm(B));V=B.channelService.isChannelOpened()&&isNaN(B.connectTimerId_);R==V?R&&(eie(B,1),jl(B,"getSubtitlesTrack")):R?(B.getOtherConnectedRemoteId_()&&B.playerContext_.reset(),eie(B,1),jl(B,"getNowPlaying"),Jp2(B)):B.JSC$17491_disconnect_(1)},Uqr=function(B,R){var V=R.params.videoId;
delete R.params.videoId;V==B.playerContext_.videoId&&(_.M_.isEmpty(R.params)?B.playerContext_.trackData=null:B.playerContext_.trackData=R.params,B.publish("remotePlayerChange"))},NM2=function(B,R,V){var e=R.params.videoId||R.params.video_id,X=parseInt(R.params.currentIndex,10);
B.playerContext_.listId=R.params.listId||B.playerContext_.listId;CRr(B.playerContext_,e,X);B.publish("remoteQueueChange",V)},Gkj=function(B,R){R.params=R.params||{};
NM2(B,R,"NOW_PLAYING_MAY_CHANGE");B.onStateChange_(R);B.publish("autoplayDismissed")};
JV.prototype.onStateChange_=function(B){var R=parseInt(B.params.currentTime||B.params.current_time,10);el(this.playerContext_,isNaN(R)?0:R);R=parseInt(B.params.state,10);R=isNaN(R)?-1:R;R==-1&&this.playerContext_.playerState==-1E3&&(R=-1E3);this.playerContext_.playerState=R;R=Number(B.params.loadedTime);this.playerContext_.loadedTime=isNaN(R)?0:R;R=Number(B.params.duration);this.playerContext_.duration_=isNaN(R)?0:R;R=this.playerContext_;var V=Number(B.params.liveIngestionTime);R.liveIngestionTime_=
V;R.isLive_=isNaN(V)?!1:!0;R=this.playerContext_;V=Number(B.params.seekableStartTime);B=Number(B.params.seekableEndTime);R.seekableStart_=isNaN(V)?0:V;R.seekableEnd_=isNaN(B)?0:B;this.playerContext_.playerState==1?bFn(this):hie(this);this.publish("remotePlayerChange")};
JV.prototype.onAdStateChange_=function(B){if(this.playerContext_.playerState!=-1E3){var R=1085;switch(parseInt(B.params.adState,10)){case 1:R=1081;break;case 2:R=1084;break;case 0:R=1083}this.playerContext_.playerState=R;B=parseInt(B.params.currentTime,10);el(this.playerContext_,isNaN(B)?0:B);this.publish("remotePlayerChange")}};
var ypi=function(B,R){var V=R.params.muted=="true";B.playerContext_.volume=parseInt(R.params.volume,10);B.playerContext_.muted=V;B.publish("remotePlayerChange")},Sb7=function(B,R){B.autoplayVideoId_=R.params.videoId;
B.publish("nowAutoplaying",parseInt(R.params.timeout,10))},HFo=function(B,R){B.autoplayVideoId_=R.params.videoId||null;
B.publish("autoplayUpNext",B.autoplayVideoId_)},MSz=function(B,R){B.autoplayMode_=R.params.autoplayMode;
B.publish("autoplayModeChange",B.autoplayMode_);B.autoplayMode_=="DISABLED"&&B.publish("autoplayDismissed")},kk4=function(B,R){var V=R.params.hasNext=="true";
B.playerContext_.hasPrevious=R.params.hasPrevious=="true";B.playerContext_.hasNext=V;B.publish("previousNextChange")};
JV.prototype.isCapabilitySupportedOnConnectedDevices_=function(B){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var R=_.h(this.connectedDevices_),V=R.next();!V.done;V=R.next())if(!V.value.capabilities.has(B))return!1;return!0};
var XDj=function(B,R){R=R.message;R.params?bS("Received: action="+R.action+", params="+(0,_.aB)(R.params)):bS("Received: action="+R.action+" {}");switch(R.action){case "loungeStatus":R=(0,_.ls)(R.params.devices);B.connectedDevices_=_.DO(R,function(e){return new ZJ(e)});
R=!!_.AA(B.connectedDevices_,function(e){return e.type=="LOUNGE_SCREEN"});
jDm(B,R);R=B.isCapabilitySupportedOnConnectedDevices_("mlm");B.publish("multiStateLoopEnabled",R);break;case "loungeScreenDisconnected":oWm(B.connectedDevices_,function(e){return e.type=="LOUNGE_SCREEN"});
jDm(B,!1);break;case "remoteConnected":var V=new ZJ((0,_.ls)(R.params.device));_.AA(B.connectedDevices_,function(e){return e.equals(V)})||_.ZK(B.connectedDevices_,V);
break;case "remoteDisconnected":V=new ZJ((0,_.ls)(R.params.device));oWm(B.connectedDevices_,function(e){return e.equals(V)});
break;case "gracefulDisconnect":break;case "playlistModified":NM2(B,R,"QUEUE_MODIFIED");break;case "nowPlaying":Gkj(B,R);break;case "onStateChange":B.onStateChange_(R);break;case "onAdStateChange":B.onAdStateChange_(R);break;case "onVolumeChanged":ypi(B,R);break;case "onSubtitlesTrackChanged":Uqr(B,R);break;case "nowAutoplaying":Sb7(B,R);break;case "autoplayDismissed":B.publish("autoplayDismissed");break;case "autoplayUpNext":HFo(B,R);break;case "onAutoplayModeChanged":MSz(B,R);break;case "onHasPreviousNextChanged":kk4(B,
R);break;case "requestAssistedSignIn":B.publish("assistedSignInRequested",R.params.authCode);break;case "onLoopModeChanged":B.publish("loopModeChange",R.params.loopMode);break;default:bS("Unrecognized action: "+R.action)}};
_.p=JV.prototype;_.p.getProxyState_=function(){var B=3;this.isDisposed()||(B=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(B=1):B=2);return B};
_.p.JSC$17491_disconnect_=function(B){bS("Disconnecting with "+B);_.mk("yt.mdx.remote.remoteClient_",null);Ybm(this);this.publish("beforeDisconnect",B);B==1&&vV();this.channelService.disconnect(B);this.dispose()};
_.p.getPlayerContextData_=function(){var B=this.playerContext_;this.clientVideoId_&&(B=this.playerContext_.clone(),CRr(B,this.clientVideoId_,B.index));return PRi(B)};
_.p.setPlayerContextData_=function(B){var R=this,V=new CH(B);V.videoId&&V.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=V.videoId,_.hu(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.pq(function(){if(R.clientVideoId_){var X=R.clientVideoId_;R.clientVideoId_=null;R.playerContext_.videoId!=X&&jl(R,"getNowPlaying")}},5E3));
var e=[];this.playerContext_.listId==V.listId&&this.playerContext_.videoId==V.videoId&&this.playerContext_.index==V.index||e.push("remoteQueueChange");this.playerContext_.playerState==V.playerState&&this.playerContext_.volume==V.volume&&this.playerContext_.muted==V.muted&&$y6(this.playerContext_)==$y6(V)&&(0,_.aB)(this.playerContext_.trackData)==(0,_.aB)(V.trackData)||e.push("remotePlayerChange");this.playerContext_.reset(B);_.ij(e,function(X){this.publish(X)},this)};
_.p.getOtherConnectedRemoteId_=function(){var B=this.channelService.getDeviceId(),R=_.AA(this.connectedDevices_,function(V){return V.type=="REMOTE_CONTROL"&&V.id!=B});
return R?R.id:""};
_.p.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.p.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.p.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.p.JSC$17491_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var Jp2=function(B){_.hu(B.idleDisconnectTimerId_);B.idleDisconnectTimerId_=_.pq(function(){B.JSC$17491_disconnect_(1)},864E5)},jl=function(B,R,V){V?bS("Sending: action="+R+", params="+(0,_.aB)(V)):bS("Sending: action="+R);
B.channelService.sendMessage(R,V)};
JV.prototype.sendMessageWithUserAction_=function(B,R){jl(this,B,R);Jp2(this)};
JV.prototype.JSC$17491_getXsrfToken_=function(){var B=_.UB.get("SAPISID","")||_.UB.get("__Secure-1PAPISID",void 0)||"",R=_.UB.get("__Secure-3PAPISID","")||"";if(!B&&!R)return"";B=_.O4(_.Sr(B),2);R=_.O4(_.Sr(R),2);return _.O4(_.Sr(","+B+","+R),2)};
JV.prototype.subscribe=JV.prototype.subscribe;JV.prototype.unsubscribeByKey=JV.prototype.unsubscribeByKey;JV.prototype.getProxyState=JV.prototype.getProxyState_;JV.prototype.disconnect=JV.prototype.JSC$17491_disconnect_;JV.prototype.getPlayerContextData=JV.prototype.getPlayerContextData_;JV.prototype.setPlayerContextData=JV.prototype.setPlayerContextData_;JV.prototype.getOtherConnectedRemoteId=JV.prototype.getOtherConnectedRemoteId_;JV.prototype.getReconnectTimeout=JV.prototype.getReconnectTimeout_;
JV.prototype.getAutoplayMode=JV.prototype.getAutoplayMode_;JV.prototype.getAutoplayVideoId=JV.prototype.getAutoplayVideoId_;JV.prototype.reconnect=JV.prototype.JSC$17491_reconnect_;JV.prototype.sendMessage=JV.prototype.sendMessageWithUserAction_;JV.prototype.getXsrfToken=JV.prototype.JSC$17491_getXsrfToken_;JV.prototype.isCapabilitySupportedOnConnectedDevices=JV.prototype.isCapabilitySupportedOnConnectedDevices_;var DqN=function(B){Ag.call(this,"ScreenServiceProxy");this.instance_=B;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.M2)(this.JSC$17494_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.M2)(this.onOnlineScreenChange_,this)))};
_.l(DqN,Ag);_.p=DqN.prototype;_.p.getScreens=function(B){return this.instance_.$_gs(B)};
_.p.contains=function(B){return!!this.instance_.$_c(B)};
_.p.get=function(B){return this.instance_.$_g(B)};
_.p.start=function(){this.instance_.$_st()};
_.p.add=function(B,R,V){this.instance_.$_a(B,R,V)};
_.p.remove=function(B,R,V){this.instance_.$_r(B,R,V)};
_.p.updateName=function(B,R,V,e){this.instance_.$_un(B,R,V,e)};
_.p.disposeInternal=function(){for(var B=this.subscriptionKeys_.length,R=0;R<B;++R)this.instance_.$_ubk(this.subscriptionKeys_[R]);this.subscriptionKeys_.length=0;this.instance_=null;Ag.prototype.disposeInternal.call(this)};
_.p.JSC$17494_onScreenChange_=function(){this.publish("screenChange")};
_.p.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
F7.prototype.$_st=F7.prototype.start;F7.prototype.$_gspc=F7.prototype.JSC$17451_getScreenByPairingCode;F7.prototype.$_gsppc=F7.prototype.JSC$17451_getScreenByPollingPairingCode;F7.prototype.$_c=F7.prototype.contains;F7.prototype.$_g=F7.prototype.get;F7.prototype.$_a=F7.prototype.add;F7.prototype.$_un=F7.prototype.updateName;F7.prototype.$_r=F7.prototype.remove;F7.prototype.$_gs=F7.prototype.getScreens;F7.prototype.$_gos=F7.prototype.JSC$17451_getOnlineScreens;F7.prototype.$_s=F7.prototype.subscribe;
F7.prototype.$_ubk=F7.prototype.unsubscribeByKey;var TMN=function(B){Psz();if(!KH||!KH.get("yt-remote-disable-remote-module-for-dev")){B=_.vE("MDX_CONFIG")||B;oxU();Fci();UG||(UG=new wN(B?B.loungeApiHost:void 0),nan()&&(UG.basePath="/api/loungedev"));Nt||(Nt=_.qN("yt.mdx.remote.deferredProxies_")||[],_.mk("yt.mdx.remote.deferredProxies_",Nt));f2n();var R=GZ();if(!R){var V=new F7(UG,B?B.disableAutomaticScreenCache||!1:!1);_.mk("yt.mdx.remote.screenService_",V);R=GZ();var e={};B&&(e={appId:B.appId,disableDial:B.disableDial,theme:B.theme,loadCastApiSetupScript:B.loadCastApiSetupScript,
disableCastApi:B.disableCastApi,enableDialLoungeToken:B.enableDialLoungeToken,enableCastLoungeToken:B.enableCastLoungeToken,forceMirroring:B.forceMirroring});_.mk("yt.mdx.remote.enableConnectWithInitialState_",B?B.enableConnectWithInitialState||!1:!1);dd6(V,function(Y){Y?y7()&&E8i(y7(),"YouTube TV"):V.subscribe("onlineScreenChange",function(){Rv("yt-remote-receiver-availability-change")})},e)}if(B&&!_.qN("yt.mdx.remote.initialized_")){_.mk("yt.mdx.remote.initialized_",!0);
Sl("Initializing: "+(0,_.aB)(B));Hm.push(_.Xo("yt-remote-cast2-api-ready",function(){Rv("yt-remote-api-ready")}));
Hm.push(_.Xo("yt-remote-cast2-availability-change",function(){Rv("yt-remote-receiver-availability-change")}));
Hm.push(_.Xo("yt-remote-cast2-receiver-selected",function(){l2n();Rv("yt-remote-auto-connect","cast-selector-receiver")}));
Hm.push(_.Xo("yt-remote-cast2-receiver-resumed",function(){Rv("yt-remote-receiver-resumed","cast-selector-receiver")}));
Hm.push(_.Xo("yt-remote-cast2-session-change",ziN));Hm.push(_.Xo("yt-remote-connection-change",function(Y){Y?E8i(y7(),"YouTube TV"):a2m()||(E8i(null,null),v8o())}));
Hm.push(_.Xo("yt-remote-cast2-session-failed",function(){Rv("yt-remote-connection-failed")}));
e=dqe();B.isAuto&&(e.id+="#dial");var X=B.capabilities||[];X.length>0&&(e.capabilities=X);e.name=B.device;e.app=B.app;(B=B.theme)&&(e.theme=B);Sl(" -- with channel params: "+(0,_.aB)(e));e?(_.hp("yt-remote-session-app",e.app),_.hp("yt-remote-session-name",e.name)):(_.WD("yt-remote-session-app"),_.WD("yt-remote-session-name"));_.mk("yt.mdx.remote.channelParams_",e);R.start();y7()||wDj()}}},LDo=function(){var B=GZ().instance_.$_gos();
var R=xqr();R&&Mt()&&(qI4(B,R)||B.push(R));return QLr(B)},vZz=function(){var B=LDo(),R=xqr();
R||(R=a2m());return _.AA(B,function(V){return R&&xu(R,V.key)?!0:!1})},xqr=function(){var B=y7();
if(!B)return null;var R=GZ().getScreens();return LH(R,B)},ziN=function(B){Sl("remote.onCastSessionChange_: "+QF4(B));
if(B){var R=xqr();R&&R.id==B.id?(E8i(R.id,"YouTube TV"),B.idType=="shortLived"&&(B=B.token)&&(R=Mt())&&R.setLoungeToken(B)):(R&&KD7(),I2o(B,1))}else Mt()&&KD7()},KD7=function(){IIi()?mw().stopSession():ZB("stopSession called before API ready.");
var B=Mt();B&&(B.disconnect(1),EZn(null))},QD6=function(){var B=Mt();
return B&&B.getProxyState()!=3?new XV(Mt(),void 0):null},Sl=function(B){Qp("remote",B)},GZ=function(){if(!qbN){var B=_.qN("yt.mdx.remote.screenService_");
qbN=B?new DqN(B):null}return qbN},y7=function(){return _.qN("yt.mdx.remote.currentScreenId_")},cpe=function(B){_.mk("yt.mdx.remote.currentScreenId_",B)},l2n=function(){_.mk("yt.mdx.remote.connectData_",null)},Mt=function(){return _.qN("yt.mdx.remote.connection_")},EZn=function(B){var R=Mt();
l2n();B||cpe("");_.mk("yt.mdx.remote.connection_",B);Nt&&(_.ij(Nt,function(V){V(B)}),Nt.length=0);
R&&!B?Rv("yt-remote-connection-change",!1):!R&&B&&Rv("yt-remote-connection-change",!0)},a2m=function(){var B=ipe();
if(!B)return null;var R=GZ();if(!R)return null;R=R.getScreens();return LH(R,B)},I2o=function(B,R){cpe(B.id);
B=new JV(UG,B,dqe(),_.qN("yt.mdx.remote.enableConnectWithInitialState_")||!1);B.connect(R,_.qN("yt.mdx.remote.connectData_"));B.subscribe("beforeDisconnect",function(V){Rv("yt-remote-before-disconnect",V)});
B.subscribe("beforeDispose",function(){Mt()&&EZn(null)});
B.subscribe("browserChannelAuthError",function(){var V=xqr();V&&V.idType=="shortLived"&&(IIi()?mw().handleBrowserChannelAuthError():ZB("refreshLoungeToken called before API ready."))});
EZn(B)},wDj=function(){var B=a2m();
B?(Sl("Resume connection to: "+QF4(B)),I2o(B,0)):(vV(),v8o(),Sl("Skipping connecting because no session screen found."))},UG=null,Nt=null,qbN=null,f2n=function(){var B=dqe();
if(_.M_.isEmpty(B)){B=AZo();var R=_.tp("yt-remote-session-name")||"",V=_.tp("yt-remote-session-app")||"";B={device:"REMOTE_CONTROL",id:B,name:R,app:V,mdxVersion:3};B.authuser=String(_.vE("SESSION_INDEX","0"));(R=_.vE("DELEGATED_SESSION_ID"))&&(B.pageId=String(R));_.mk("yt.mdx.remote.channelParams_",B)}},dqe=function(){return _.qN("yt.mdx.remote.channelParams_")||{}},Hm=[];var Apn=new _.vf("yt-menu"),iF2=function(){},FDi=function(B,R,V){B=R=="right-click"?V.rightClickMenuPopupHint:V.menuPopupHint;
if(!(sDr(R)>10))return R=R||"default",Apn.set(R+"-impression",sDr(R)+1),B},sDr=function(B){return parseInt(Apn.get((B||"default")+"-impression")||0,10)};
_.R6(iF2);var rpe=function(){this.contexts_=new WeakMap;this.JSC$17500_networkService_=this.activeContext_=null},gZe=function(B,R,V){var e=B.contexts_.get(R);
e||(e=new OD4(B.JSC$17500_networkService_),B.contexts_.set(R,e));B.activeContext_=e;V&&B.activeContext_.reset();B.activeContext_.start();return B.activeContext_};var kC=function(){};
kC.prototype.enqueue=function(){var B=this,R;return _.W(function(V){if(B.isCounterfactual())return(R=B.getCounterfactualData())&&B.shouldLogCounterfactualImpression()&&B.sendImpressionEndpoints(R),V.return();B.doEnqueue();_.b3(V)})};
kC.prototype.sendImpressionEndpoints=function(B){_.sd.getInstance().triggerOptionalAction("yt-service-request",{},B[0])};var Dn=function(B,R){this.renderer=B;this.page=R};
_.l(Dn,kC);Dn.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Dn.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Dn.prototype.shouldLogCounterfactualImpression=function(){return!0};
Dn.prototype.doEnqueue=function(){var B=_.CD(this.page);B&&B.pause();this.renderer.impressionCommand&&_.sd.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.vW(_.sd.getInstance(),[this.renderer.promoCommand],this.page)};var ZFe=function(B,R){this.renderer=B;this.resolver=_.A3();this.JSC$17512_enforcementCounter=new _.cF2;R?this.JSC$17512_playerManager=_.CD(R):this.JSC$17512_playerManager=null;_.tz(1,!0)};
_.l(ZFe,kC);_.p=ZFe.prototype;_.p.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var B=[];this.renderer.impressionEndpoints.forEach(function(R){(R=_.dl(R))&&B.push(R)});
return B}};
_.p.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.p.shouldLogCounterfactualImpression=function(){var B=_.SK5();B?(this.JSC$17512_enforcementCounter.increment("POPUP"),_.tz(3)):_.tz(2);return B};
_.p.cancel=function(){this.resolver.promise.cancel()};
_.p.doEnqueue=function(){var B=this;_.SK5()?(this.JSC$17512_enforcementCounter.increment("POPUP"),_.tz(3),mqm(this)):this.JSC$17512_playerManager?(this.resolver.promise.then(function(){mqm(B)}),$q2(this.resolver,this.JSC$17512_playerManager)):_.tz(2)};
var $q2=function(B,R){var V=_.A3();R.getPlayerPromise().then(function(e){V.resolve(e)});
V.promise.then(function(e){e.addEventListener("onAbnormalityDetected",B.resolve);_.fT(B.promise,function(){e.removeEventListener("onAbnormalityDetected",B.resolve)})});
B.promise.thenCatch(function(){V.promise.cancel()})},mqm=function(B){_.tz(3);
var R={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:B.renderer}};R=_.sd.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:R},{});Promise.all(R).then(function(){CGi();B.JSC$17512_playerManager&&B.JSC$17512_playerManager.pause()})},CGi=function(){c$e(function(B,R){_.qBr(B,R);
B===0?_.tz(7):_.tz(4)})};var PG4=function(B,R){this.renderer=B;this.page=R;this.resolver=_.A3()};
_.l(PG4,kC);_.p=PG4.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 B=this;this.resolver.promise.then(function(){var V={popup:{mealbarPromoRenderer:B.renderer},popupType:"MEALBAR"};_.sd.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:V},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var R=_.CD(this.page);R&&nZU(this.resolver,R)}break;default:this.resolver.resolve()}};
var nZU=function(B,R){var V=_.A3();R.getPlayerPromise().then(function(e){V.resolve(e)});
V.promise.then(function(e){e.addEventListener("onAdEnd",B.resolve);_.fT(B.promise,function(){e.removeEventListener("onAdEnd",B.resolve)})});
B.promise.thenCatch(function(){V.promise.cancel()})};var ukU=function(B,R){this.renderer=B;this.page=R};
_.l(ukU,kC);_.p=ukU.prototype;_.p.cancel=function(){this.JSC$17520_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17520_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17520_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 B=this,R,V;((R=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(V=R.playbackUpsellDialogTriggerConditionData)==null?void 0:V.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17520_downloadedVideosCountSelectorUnsubscriber=_.Ge(_.g6(),K4r,function(e,X){e>X&&(OFN(B),B.cancel())}):OFN(this)};
var OFN=function(B){var R={popup:{upsellDialogRenderer:B.renderer},popupType:"MODAL"};_.sd.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:R},{});(B=_.CD(B.page))&&B.pause()};var f1={},oEr=(f1.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",f1.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",f1.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",f1.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",f1.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",f1.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",f1.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",f1),BYj=function(B,R){this.renderer=B;this.targetManager=
R};
_.l(BYj,kC);_.p=BYj.prototype;_.p.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17527_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17527_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17527_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.p.getCounterfactualData=function(){if(this.isCounterfactual()){var B;return(B=this.renderer.promoConfig)==null?void 0:B.impressionEndpoints}};
_.p.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var B=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17527_downloadedVideosCountSelectorUnsubscriber=_.Ge(_.g6(),K4r,function(R,V){B.renderer.targetId&&R>V&&(Tlr(B.targetManager,B.renderer.targetId,R$N(B)),B.cancel())});
break;default:Tlr(this.targetManager,this.renderer.targetId,R$N(this))}};
var R$N=function(B){var R;if((R=B.renderer.suggestedPosition)==null?0:R.type)var V=oEr[B.renderer.suggestedPosition.type];V||(V="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:B.renderer},popupType:"HINT",position:V}}};var Vje=function(){this.previousPage=null},e$4;
Vje.prototype.registerPromoCommand=function(B,R){XPr(this,void 0,void 0,_.D(B.roadblock,kli),void 0,void 0,R)};
var XPr=function(B,R,V,e,X,Y,t){B.previousPage!==t&&B.pendingTooltipPromo&&B.pendingTooltipPromo.cancel();B.previousPage=t;X?(B.pendingEnforcementPromo&&B.pendingEnforcementPromo.cancel(),B.pendingEnforcementPromo=new ZFe(X,t),B.pendingEnforcementPromo.enqueue()):Y?(B.pendingCommandWrapperPromo=new Dn(Y,t),B.pendingCommandWrapperPromo.enqueue()):e?(B.pendingRoadblockPromo&&B.pendingRoadblockPromo.cancel(),B.pendingRoadblockPromo=new ukU(e,t),B.pendingRoadblockPromo.enqueue()):R?(B.pendingMealbarPromo&&
B.pendingMealbarPromo.cancel(),B.pendingMealbarPromo=new PG4(R,t),B.pendingMealbarPromo.enqueue()):V&&(B.pendingTooltipPromo&&B.pendingTooltipPromo.cancel(),B.pendingTooltipPromo=new BYj(V,_.pF()),B.pendingTooltipPromo.enqueue())},pPn=function(){e$4||(e$4=new Vje);
return e$4};var i0i=!1;var Iqn=function(B,R){var V=_.vE("SESSION_INDEX");this.actionToken_=B;this.commonToken_=R;this.sessionIndex_=V},Kam=function(B){var R=_.A3(),V=_.qN("payments.business.integration.bootstrap"),e=_.qN("payments.business.integration"),X=e.Style.create().withMaterialDesignStyle(),Y=e.mashupMode.popup("instrument-manager");
V.asMashupMode(Y).usingUserIndex(B.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(X).inStandaloneContext(e.standaloneContextAuthId.forUserId()).instrumentManager(B.actionToken_,B.commonToken_.length>0?B.commonToken_:void 0,function(t){var b=t.instrumentId;b?R.resolve(b):(b=_.qN("payments.business.integration.scenario.InstrumentManager"),R.reject(t.errorCode&&t.errorCode===b.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(t){_.IP(t);
R.reject("instrumentManagerLoadError")});
return R.promise};var ot=function(B,R,V){this.payloadName="transactionFlowFailed";this.payload={errorType:B,serializedTransactionFlowLoggingParams:R,isUserDismiss:V===void 0?!1:V}};
_.mk("yt.ypc.shared.YpcTransactionFlowError",ot);var lS=function(){return _.tM.apply(this,arguments)||this};
_.l(lS,_.tM);lS.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
lS.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
lS.prototype.onErrorMessageDismiss=lS.prototype.onErrorMessageDismiss;_.r([_.E({readOnly:!0,observer:"errorRendererChanged"}),_.Z("design:type",Object)],lS.prototype,"errorRenderer",void 0);_.r([_.R_("yt-live-chat-error-message-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lS.prototype,"onErrorMessageDismiss",null);lS=_.r([_.Wc()],lS);var YHj=[lS.prototype];var h$6;var tj2;var Wzi=new _.vf("yt-live-chat"),bje=new Map;bje.set("timestamp_toggle","show-timestamps");bje.set("reactions_toggle","allow-reactions");var zZ=function(){return _.c.apply(this,arguments)||this};
_.l(zZ,_.c);_.p=zZ.prototype;_.p.menuItemIdentifierChanged=function(){var B;(B=this.data)!=null&&B.menuItemIdentifier&&(B=bje.get(this.data.menuItemIdentifier))&&(_.k("enable_lwe_web_mute")?(B=Wzi.get(B),this.isToggled=!(B===void 0?!this.data.isToggled:!B)):this.isToggled=Wzi.get(B))};
_.p.onFocus=function(){this.toggleButton.focus()};
_.p.onTap=function(){var B=this.data.command;B&&this.componentBehavior.resolveCommand(B)};
_.p.computeText=function(B,R,V){return this.componentBehavior.getSimpleString(B?V:R)};
_.p.computeIcon=function(B,R,V){return(B=B?V:R)&&B.iconType?_.RT(B.iconType):""};
zZ.prototype.onTap=zZ.prototype.onTap;zZ.prototype.onFocus=zZ.prototype.onFocus;zZ.prototype.menuItemIdentifierChanged=zZ.prototype.menuItemIdentifierChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],zZ.prototype,"componentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zZ.prototype,"data",void 0);
_.r([_.E({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Z("design:type",String)],zZ.prototype,"icon",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],zZ.prototype,"isToggled",void 0);_.r([_.Yp("tp-yt-paper-toggle-button"),_.Z("design:type",Object)],zZ.prototype,"toggleButton",void 0);_.r([_.XX("data.menuItemIdentifier"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zZ.prototype,"menuItemIdentifierChanged",null);
_.r([_.R_("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zZ.prototype,"onFocus",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zZ.prototype,"onTap",null);zZ=_.r([_.fJ({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],zZ);
_.F(zZ,"yt-live-chat-toggle-renderer",function(){if(tj2===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;h$6===void 0&&(h$6=document.createElement("template"));var e=h$6;V.call(R,e.content.cloneNode(!0),B.content.firstChild);tj2=B}B=tj2;return B},{mode:_.k("live_chat_enable_sink_wrapper")?2:0});var Jdi=new _.u0("NAVIGATION_PROGRESS_TOKEN");_.LQ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var jor={},$dm=(jor.CSI=function(B,R){var V={};V[B]=R;B=_.Qh(_.VPq)(V);Object.keys(B).length>0&&_.f0(B)},jor.ECATCHER=function(B){return function(R,V){_.vE(B)[R]=V}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),jor);var UGN={},NYm={},Gxe=(NYm[tE4.name]=!0,NYm),aX=function(){var B=_.tM.apply(this,arguments)||this;B._noAccessors=!0;B.tabGesturesIsActive=!1;B.actionRouterIsRoot=!0;B.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"};B.pageTitle="";B.titleSuffix="YouTube";B.unseenNotificationCount=
0;B.hasNavigated=!1;B.hasSetScrollTopForNavigation=!1;B.pagePreparer=null;B.zwiebackInitJobId=0;B.dataUpdatePromise=null;B.loadDepsPromise=_.XT();B.hasPendingNavigation=!1;B.pendingPlayerOnResponseReceivedActions=[];return B};
_.l(aX,_.tM);aX.prototype.attached=function(){ydi(this);document.addEventListener("yt-navigate-cache",_.Bc(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var B=d9();B.init();B.dispatchElement=this.hostElement};
var ydi=function(B,R){R=R===void 0?0:R;var V=_.Oz().resolve(_.uj(_.Xk));if(V)SHj(B,V);else{if(R>=5)throw Error("Xk");setTimeout(function(){ydi(B,R+1)},0)}},SHj=function(B,R){R.addEventListener("yt-navigate-start",_.Bc(B,B.onYtNavigateStart));
R.addEventListener("yt-navigate-finish",_.Bc(B,B.onYtNavigateFinish));R.addEventListener("yt-navigate-error",_.Bc(B,B.onYtNavigateError));R.addEventListener("yt-page-data-fetched",_.Bc(B,B.onYtPageDataFetched))};
_.p=aX.prototype;_.p.detached=function(){var B=_.Oz().resolve(_.Xk);B.removeEventListener("yt-navigate-start",_.Bc(this,this.onYtNavigateStart));B.removeEventListener("yt-navigate-finish",_.Bc(this,this.onYtNavigateFinish));B.removeEventListener("yt-navigate-error",_.Bc(this,this.onYtNavigateError));B.removeEventListener("yt-page-data-fetched",_.Bc(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Bc(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.p.setPageOffset=function(B,R){B?_.oF(this.hostElement,"yt-set-page-offset",[B,R]):_.Tn(Error("Yk"))};
_.p.setPageOffsetForNavigation=function(B,R){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(B,R))};
_.p.onYtNavigateSetPageOffset=function(B,R){this.setPageOffsetForNavigation(R.page,R.offset)};
_.p.getPageOffset=function(){var B=_.w(this.hostElement).querySelector("#page-manager").getCurrentPage(),R=0;B&&(R=_.oF(this.hostElement,"yt-get-page-offset",[B])[0]);return R};
_.p.onYtHistoryPop=function(B,R){if(_.KQ("DISABLE_WARM_LOADS"))B.preventDefault(),window.location.reload();else{var V=_.Oz().resolve(_.Xk);V.hasPendingNavigation()&&B.preventDefault();V.cancelPendingNavigation();_.Bz(this.hostElement,"yt-pending-navigation-cancelled");R.errorMsg&&(B=R.errorMsg.split(" - "),R=Error(B[0]),B.length==2&&B[1]&&(_.Iq(R,B[1]),_.KE(R)),window.location.reload())}};
_.p.onYtHistoryLoad=function(B,R){var V=this;if(_.KQ("DISABLE_WARM_LOADS"))window.location.reload();else{(B=R.endpoint)&&Object.keys(B).length||(B=null);var e=R.historyEntry,X=_.Oz().resolve(_.Xk),Y=_.Oz().resolve(_.$B),t=null;e&&e.rootData&&(t=e.rootData);var b=t&&Hjr(t);!t||b||t.filler?B?(X.navigate(B,!0),Mjo(this,B)):(R.legacyBorder||b||(R.JSC$26427_savedComponentState==null&&t==null?_.KE(new _.H8("Incomplete history entry",R.forward)):_.v5(new _.H8("Malformed history entry",R.JSC$26427_savedComponentState,
R.forward,t))),window.location.reload()):(_.bgY({isHot:!0}),_.f0({webInfo:{navigationReason:"h"}}),_.fWN(),_.zp("srt"),_.zp("pdc"),this.cancelPendingTasks(),kxU(this,R.forward,t),t.player&&(t.player.loaded=!1),Mjo(this,B),_.HX5(X,B||{},t,2,{},!1,R).then(function(){V.setPageOffset(Y.getCurrentPage(),e.scrollTop||0)}))}};
_.p.initHistoryManager=function(B){if(!this.hasNavigated){this.hasNavigated=!0;var R=_.w(this.hostElement).querySelector("#page-manager").getCurrentData();B=isNaN(B)?this.getPageOffset():B;var V=_.Oz().resolve(_.Xk).currentEndpoint;this.replaceState(V,R,B)}};
_.p.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.p.onYtNavigateStart=function(B,R){this.cancelPendingTasks();R.noProgressBar||(B=_.Oz().resolve(_.uj(Jdi)))&&B.start();B=this.hasPendingNavigation?null:this.data;var V=_.Oz().resolve(_.$B),e,X,Y;_.k("kevlar_use_vimio_behavior")&&!((e=R.endpoint)==null?0:(X=e.commandMetadata)==null?0:(Y=X.webCommandMetadata)==null?0:Y.ignoreNavigation)&&(e=V.getCurrentPage())&&e.disconnectVisibilityRoot();V.prepareForNavigation(R.pageType,R.endpoint);_.k("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.gM(1,
"pcl"),_.Z2(this.pagePreparer,V.preparePage.bind(V,R.pageType,R.endpoint)));e=this.getPageOffset();this.initHistoryManager(e);R.reload||this.hasPendingNavigation?this.replaceState(R.endpoint,B,e):(B==null?void 0:B.page)==="watch"&&R.pageType==="watch"&&_.k("kevlar_replace_watch_to_watch_history_state")?this.replaceState(R.endpoint,B,e):(B==null?void 0:B.page)!=="shorts"||R.pageType!=="shorts"||R.endpoint.reelWatchEndpoint.sequenceParams||_.k("short_to_short_back_nav_killswitch")?R.type!="navigate-back"&&
R.type!="navigate-forward"&&(R.pageType==="shorts"&&_.OI(this.hostElement,"yt-shorts-reset"),this.saveAndPush(R.url,R.endpoint,B,e)):this.replaceState(R.endpoint,B,0);this.hasPendingNavigation=!0};
var DG6=function(B){B.hasPendingNavigation=!1;(B=_.Oz().resolve(_.uj(Jdi)))&&B.finish()};
aX.prototype.onYtNavigateError=function(B,R){DG6(this);B=this.get("endpoint.commandMetadata.webCommandMetadata.url",R);var V=_.FW(window.location.href);B&&!V.pbjreload&&(R=R.navigationErrorReason||"10",_.k("kevlar_parent_on_pbjreload")&&(V={csn:_.TE()},this.get("data.endpoint.clickTrackingParams")&&(V.itct=this.data.endpoint.clickTrackingParams),_.Zg(B,V)),_.TF(_.rg(B,{pbjreload:R})))};
aX.prototype.onYtNavigateCache=function(B,R){var V=this,e=R.url,X=R.endpoint,Y=R.data;B=!!R.miniplayer;R=!!R.skipHistory;if(e&&X&&Y){var t=this.getPageOffset(),b=this.data||null;R||this.saveAndPush(e,X,b,t);e=_.HX5(_.Oz().resolve(_.Xk),X,Y,B?4:3,{},B);B&&e.then(function(){V.dataUpdatePromise&&V.dataUpdatePromise.then(function(){var J=_.Oz().resolve(_.$B);V.setPageOffset(J.getCurrentPage(),0)})})}};
aX.prototype.onYtNavigateFinish=function(B,R){var V=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){fb4(V,R.fromHistory)})};
var fb4=function(B,R){DG6(B);if(B.pendingPlayerOnResponseReceivedActions){for(var V=_.h(B.pendingPlayerOnResponseReceivedActions),e=V.next();!e.done;e=V.next())_.Xc(e.value,B.hostElement);B.pendingPlayerOnResponseReceivedActions=[]}V=_.Oz().resolve(_.$B);!R&&B.hasNavigated&&((R=V.getCurrentPage())?R.is==="ytd-shorts"||B.tabGesturesIsActive||B.setPageOffsetForNavigation(R,0):_.KE(Error("Zk")));_.xp(function(){_.xp(function(){_.zp("pda")})})};
aX.prototype.onYtNavigate=function(B){if(!B.detail.endpoint){var R=new _.H8("Error: Missing yt-navigate endpoint from target:",B.target,B.target.nodeName);_.Tn(R)}if(R=_.k("cold_missing_history"))R=d9(),R.init(!1),R=!(R.browserHistory.boundHistoryReplaceState&&R.browserHistory.boundHistoryPushState);if(R){_.LQ("DISABLE_WARM_LOADS",!0);R=new _.H8("Failed to initialize history manager",this.getDebugString());var V=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
V?_.KE(R):_.Tn(R)}R=B.detail.endpoint;var e,X;_.k("debug_forward_web_query_parameters")&&((e=R.commandMetadata)==null?0:(X=e.webCommandMetadata)==null?0:X.url)&&(R=JSON.parse(JSON.stringify(R)),R.commandMetadata.webCommandMetadata.url=_.ZnY(R.commandMetadata.webCommandMetadata.url,window.location.search));B={type:0,command:R,form:{params:B.detail.params,tempData:B.detail.tempData||{},requestType:B.detail.type,createScreenConfig:B.detail.createScreenConfig,reload:B.detail.reload?B.detail.reload:!1,
requestForm:B.detail}};_.k("kevlar_yt_navigate_command_handler")?(e=_.Oz().resolve(_.oC),B.form.skipDefaultElement=!0,e.resolveCommand(R,{form:B.form})):this.handleNavigate(B)};
aX.prototype.handleNavigate=function(B){this.hasSetScrollTopForNavigation=!1;var R=_.Oz().resolve(_.Xk),V=B.form||{};R.navigate(B.command,V.reload,V.params,V.tempData,V.requestType,V.createScreenConfig,V.ignoreConfirmation,V.requestForm)&&Mjo(this,B.command,V.tempData)};
aX.prototype.onYtPageDataFetched=function(B,R){try{_.D04().reset();this.data=R.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.Oz().resolve(_.$B).updatePageData(this.data);var V=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);V&&CFo(V);var e=this.get("response.responseContext.serviceTrackingParams",this.data);e&&CFo(e);var X=
this.get("playerResponse.onResponseReceivedActions",this.data);X&&(X=lb6(this,X));X&&_.eO(this.hostElement,X,this.hostElement);var Y=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),t=this.get("response.responseContext.consistencyTokenJar",this.data);if(Y||t){var b=_.wuo(),J=(0,_.M_.getValues)(b.tokenJars);Y&&b.replace(J,Y);t&&b.replace(J,t)}}catch(G){_.Tn(G)}};
var Mjo=function(B,R,V){try{B.onYtEndpointChangeHandler(R,V)}catch(e){_.Tn(e)}};
_.p=aX.prototype;_.p.onYtEndpointChangeHandler=function(){};
_.p.setPageTitle=function(B){B=(this.pageTitle=B)?B+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+B};
_.p.onYtUpdateTitle=function(B,R){this.setPageTitle(R)};
_.p.setUnseenNotificationCount=function(B){this.unseenNotificationCount=B;this.setPageTitle(this.pageTitle)};
_.p.handleUpdateNotificationsUnseenCountAction=function(B){_.D(B,gIm)&&((B=_.D(B,gIm).unseenCount)?this.setUnseenNotificationCount(B):this.setUnseenNotificationCount(0))};
_.p.handleClearCookieAction=function(B){var R;(B=(R=_.D(B,iCe))==null?void 0:R.cookieName)&&_.bpN(B)};
_.p.onYtUpdateUnseenNotificationCount=function(B,R){this.setUnseenNotificationCount(R)};
_.p.loadData=function(B){var R=this;this.loadDepsPromise.then(function(){var V=_.Oz().resolve(_.uj(_.Xk));V||_.Tn(Error("$k"));if(B&&B.response){if(!B.endpoint){var e=_.QT(window.document.location.href)||"/",X="";if(e==="/"||e.startsWith("/?"))X="WEB_PAGE_TYPE_BROWSE";B.endpoint={commandMetadata:{webCommandMetadata:{url:e,webPageType:X,rootVe:3854}}}}_.HX5(V,B.endpoint,B,5,{})}else B.endpoint?V.navigate(B.endpoint):V.navigate(_.Ny);_.dV.cancelJob(R.zwiebackInitJobId);R.zwiebackInitJobId=_.dV.addLowPriorityJob(sFz)})};
var d9=function(){return _.Oz().resolve(_.pI)};
aX.prototype.getDebugString=function(){return d9().getDebugString()};
aX.prototype.getThirdPartyManipulationSuspected=function(){return d9().getThirdPartyManipulationSuspected()};
aX.prototype.replaceState=function(B,R,V){d9().saveAndReplace(B,R,V)};
aX.prototype.saveAndPush=function(B,R,V,e){d9().saveAndPush(B,R,V,e)};
var Hjr=function(B){return _.k("web_honor_cache_for_back")&&(_.D(B.endpoint,_.sI)||_.D(B.endpoint,_.GF))?!0:!B||isNaN(B.expirationTime)?!1:(0,_.P8)()>B.expirationTime},kxU=function(B,R,V){var e=B.get("response.trackingParams",V),X=_.wT(),Y=_.TE();
if(e&&X&&Y&&(e=B.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",V),!e&&V.rootVe&&(e=V.rootVe),X=R?"forwardButton":"backButton",R=B.get("playerResponse.topbar.desktopTopbarRenderer."+X+".buttonRenderer.command.clickTrackingParams",B.data),B=B.get("response.topbar.desktopTopbarRenderer."+X+".buttonRenderer.command.clickTrackingParams",B.data),R=(B=R||B)?_.U5(B):void 0,B=_.WK(),X=[_.XT(V)],_.py(B,e,R,{dataPromises:X,csnToClone:V.csn}),V.graftedVes))for(V=
_.h(V.graftedVes),e=V.next();!e.done;e=V.next())_.YJ(B,e.value)};
aX.prototype.onStoreGraftedVeAction=function(B){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(B)):_.KE(Error("al"))};
var lb6=function(B,R){return R.filter(function(V){for(var e in V)if(Gxe[e])return B.pendingPlayerOnResponseReceivedActions.push(V),!0;return!1})};
_.mh.Object.defineProperties(aX.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
aX.prototype.onStoreGraftedVeAction=aX.prototype.onStoreGraftedVeAction;aX.prototype.loadData=aX.prototype.loadData;aX.prototype.onYtUpdateUnseenNotificationCount=aX.prototype.onYtUpdateUnseenNotificationCount;aX.prototype.handleClearCookieAction=aX.prototype.handleClearCookieAction;aX.prototype.handleUpdateNotificationsUnseenCountAction=aX.prototype.handleUpdateNotificationsUnseenCountAction;aX.prototype.setUnseenNotificationCount=aX.prototype.setUnseenNotificationCount;
aX.prototype.onYtUpdateTitle=aX.prototype.onYtUpdateTitle;aX.prototype.setPageTitle=aX.prototype.setPageTitle;aX.prototype.onYtEndpointChangeHandler=aX.prototype.onYtEndpointChangeHandler;aX.prototype.onYtPageDataFetched=aX.prototype.onYtPageDataFetched;aX.prototype.handleNavigate=aX.prototype.handleNavigate;aX.prototype.onYtNavigate=aX.prototype.onYtNavigate;aX.prototype.onYtNavigateFinish=aX.prototype.onYtNavigateFinish;aX.prototype.onYtNavigateCache=aX.prototype.onYtNavigateCache;
aX.prototype.onYtNavigateError=aX.prototype.onYtNavigateError;aX.prototype.onYtNavigateStart=aX.prototype.onYtNavigateStart;aX.prototype.cancelPendingTasks=aX.prototype.cancelPendingTasks;aX.prototype.initHistoryManager=aX.prototype.initHistoryManager;aX.prototype.onYtHistoryLoad=aX.prototype.onYtHistoryLoad;aX.prototype.onYtHistoryPop=aX.prototype.onYtHistoryPop;aX.prototype.onYtNavigateSetPageOffset=aX.prototype.onYtNavigateSetPageOffset;aX.prototype.setPageOffset=aX.prototype.setPageOffset;
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],aX.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],aX.prototype,"data",void 0);_.r([_.R_("yt-navigate-set-page-offset"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],aX.prototype,"onYtNavigateSetPageOffset",null);
_.r([_.R_("yt-history-pop"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],aX.prototype,"onYtHistoryPop",null);_.r([_.R_("yt-history-load"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,_.AWa]),_.Z("design:returntype")],aX.prototype,"onYtHistoryLoad",null);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],aX.prototype,"onYtNavigate",null);
_.r([_.R_("yt-update-title"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,String]),_.Z("design:returntype")],aX.prototype,"onYtUpdateTitle",null);_.r([_.R_("yt-update-unseen-notification-count"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Number]),_.Z("design:returntype")],aX.prototype,"onYtUpdateUnseenNotificationCount",null);aX=_.r([_.Wc()],aX);UGN.YtdAppBehavior=[_.$Z.YtActionHandlerBehavior,aX.prototype];var w9=function(){var B=_.tM.apply(this,arguments)||this;B._noAccessors=!0;return B};
_.l(w9,_.tM);w9.prototype.ready=function(){var B=this;_.w(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){B.onChange_()})};
w9.prototype.dataChanged_=function(){_.w(this.hostElement).querySelector("#checkbox").checked=!1};
w9.prototype.onChange_=function(){var B=_.w(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.OI(this.hostElement,"yt-dismissal-reason-"+B,this.data.feedbackToken)};
w9.prototype.dataChanged_=w9.prototype.dataChanged_;_.r([_.E(),_.Z("design:type",Object)],w9.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w9.prototype,"dataChanged_",null);w9=_.r([_.Wc()],w9);var z$6=[w9.prototype];var TZ=function(){var B=_.tM.apply(this,arguments)||this;B.timeoutJobId=0;B.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return B};
_.l(TZ,_.tM);TZ.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
TZ.prototype.startTimeout=function(){var B=this,R=this.data&&this.data.displayDurationSeconds;R&&!this.timeoutJobId&&(this.timeoutJobId=_.kD(_.dV,function(){_.oF(B.hostElement,"yt-close-popup-action",[B.is]);B.timeoutJobId=0},R*1E3))};
TZ.prototype.cancelTimeout=function(){_.dV.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
TZ.prototype.ytdHatsSurveyBehaviorDataChanged=TZ.prototype.ytdHatsSurveyBehaviorDataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],TZ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TZ.prototype,"ytdHatsSurveyBehaviorDataChanged",null);TZ=_.r([_.Wc()],TZ);var ab6=[_.$Z.YtActionHandlerBehavior,TZ.prototype];var dGe=function(B,R){return B.SHARED_RENDERERS_.hasOwnProperty(R)?"yt":B.prefix},xC={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}};xC.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.k("kevlar_mealbar_above_player"),modern:_.k("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"}};
xC.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};xC.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};xC.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
xC.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)"}};
xC.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};
xC.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};
xC.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};
xC.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};xC.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"}};
xC.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};xC.TOAST={component:null,properties:{}};var wP7=new function(B,R,V){this.supportedPopups=B;this.navigationEndpointPopupMap=R;this.popupTypeMap=V;this.supportedPopups=B;this.navigationEndpointPopupMap=R;this.popupTypeMap=V}({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:_.k("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"}),TYr=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17579_popupConfig=xC;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 xGn=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.DF.getInstance()},L1=function(B,R){var V=B.pageNameToElement.get(R);
if(!V){switch(R){case "watch":var e=_.k("web_watch_force_learning_journey_for_testing")?_.rM("ytd-watch-learning-journey"):_.k("kevlar_watch_fixie")?_.rM("ytd-watch-fixie"):_.k("kevlar_watch_grid")?_.rM("ytd-watch-grid"):_.rM("ytd-watch-flexy");break;case "learning_journey_watch":e=_.rM("ytd-watch-learning-journey");break;case "shorts":e=_.rM("ytd-shorts");break;case "search":e=_.rM("ytd-search");break;case "channel":e=_.rM("ytd-browse");e.pageSubtype="channels";break;case "trending":e=_.rM("ytd-browse");
e.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":e=
_.rM("ytd-browse");e.pageSubtype=R;break;case "browse":e=_.rM("ytd-browse");break;default:_.KE(new _.H8("Error getting page element for type",R))}V=e;B.pageNameToElement.set(R,V)}return V};
xGn.prototype.preparePage=function(B,R,V){V&&(B=_.bi(V)||B);if(B!=="watch"){var e=this.elementPoolPopulator,X=B;X!=e.targetPage_&&e.pendingPages_.indexOf(X)>-1&&(e.targetPage_&&(e.pendingPages_.unshift(e.targetPage_),e.abort()),vTo(e,X),_.qi_(e,X))}if((e=L1(this,B))||!_.D(V,_.ie)){e.isAttached||e===R||(e.hidden=!0);if(!(e.data||B==="watch"&&_.k("swatcheroo_page_pool_dont_provide_filler_data"))){var Y;if(B=(Y=_.vE("FILLER_DATA",{})[B])==null?void 0:Y.response)e.data=B}return e}};var Lzj=function(B){this.JSC$28349_clientRoot=B;this.playlistHandlerActionMap={"yt-add-to-playlist-command":O0r,"yt-end-playlist-command":oG4,"yt-recover-playlist-command":RA6,"yt-refresh-playlist-command":Xki,"yt-playlist-remove-videos-action":Vui};_.Fo(_.sd.getInstance(),this.playlistHandlerActionMap,this.JSC$28349_clientRoot);FRj()},vEU;var vm=function(B,R,V){this.apiKey=B;this.endpoint=R;this.confidenceThreshold=V===void 0?.5:V;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=R==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||R==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
R==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||R==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new ar4};
_.p=vm.prototype;
_.p.start=function(B){if(this.state===0)if(this.isOnline()){B.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=B.supportsHttpHeadersOverwriteParam);B.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=B.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.lF("voice_assistant");_.aF("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=B.languageCode||"en-US";this.supportsCrossDomainXhr=B.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=B.youtubeAssistantRequest||null;this.listeningHandler=B.listeningHandler||this.listeningHandler;this.audioDetectedHandler=B.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=B.stopHandler||this.stopHandler;this.completeHandler=B.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=B.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=B.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
B.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=B.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=B.accessToken;this.additionalHeaders=B.additionalHeaders||{};var R;this.prefetchResponseTimeoutMs=(R=B.prefetchResponseTimeoutMs)!=null?R:this.prefetchResponseTimeoutMs;KzN(this);this.startAudio();Ibe(this)}else this.errorHandler("OFFLINE")};
_.p.stop=function(B){var R=B===void 0?{}:B;B=R.logCancel===void 0?!0:R.logCancel;var V=R.logMicClosed===void 0?!0:R.logMicClosed;var e=R.handleError===void 0?!0:R.handleError;R=R.handleStop===void 0?!0:R.handleStop;this.state!==0&&(B&&K1("voz_cx"),IX(this,{logMicClosed:V,handleStop:R}),e&&this.errorHandler("ABORTED"))};
_.p.getState=function(){return this.state};
_.p.isSupported=function(){return!0};
_.p.stopAudio=function(B){(B===void 0||B)&&K1("voz_mf")};
_.p.startAudio=function(){K1("voz_vp");return _.XT(null)};
var EEo=function(B,R){B.channelOpen&&(B.state!==2&&(B.state=2,K1("voz_ss"),B.listeningHandler()),R=new Uint8Array(R),R='{ "audioIn": "'+_.O4(R)+'" }',B.channel.send(R))},IX=function(B,R){var V=R===void 0?{}:R;
R=V.logMicClosed===void 0?!0:V.logMicClosed;V=V.handleStop===void 0?!0:V.handleStop;B.vozEndOfDataTimeout>-1&&(clearTimeout(B.vozEndOfDataTimeout),B.vozEndOfDataTimeout=-1);Qoz(B);B.stopAudio(R);B.channel&&(B.channelOpen=!1,B.manuallyClosedChannel=!0,B.channel.close(),B.channel=void 0);B.transcribedSpeechResults=[];B.state=0;V&&B.stopHandler()},KzN=function(B){var R={httpHeadersOverwriteParam:B.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},B.additionalHeaders,B.accessToken&&B.isUsingVoz?{Authorization:"Bearer "+B.accessToken}:{"x-goog-api-key":B.apiKey}),supportsCrossDomainXhr:B.supportsCrossDomainXhr};B.channel=new Kv(B.endpoint,R);B.channel.open();_.G2(B.channel,"w",function(){var V=B.channel,e=V.send,X=B.isUsingVoz?"PLACEHOLDER":"example";X={config:{dialogStateIn:{languageCode:B.languageCode},deviceConfig:{deviceId:X,deviceModelId:X},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!B.isUsingVoz)X.config.requestType=4;else if(B.isUsingVoz&&B.youtubeAssistantRequest){var Y=JSON.stringify(B.youtubeAssistantRequest);X.config.internalIn={youtubeAssistantS3InputJson:Y}}e.call(V,X);B.channelOpen=!0;B.manuallyClosedChannel=!1});
_.G2(B.channel,"x",function(){B.manuallyClosedChannel||(B.channelOpen=!1,B.channel=void 0,IX(B))});
_.G2(B.channel,"z",function(V){if(V.data){Qoz(B);for(var e=0;e<V.data.length;e++){var X=B,Y=V.data[e],t=Y.speechResults;if(t)a:{var b=[];Y=[];var J=!1;t=_.h(t);for(var G=t.next();!G.done;G=t.next()){G=G.value;if(G.noSpeech){IX(X);X.errorHandler("NO_SPEECH");break a}G.transcript!==void 0&&G.stability!==void 0&&(G.stability<X.confidenceThreshold&&(J=!0),J?Y.push(G.transcript):b.push(G.transcript))}if(b.length!==0||Y.length!==0)b=b.join(" "),Y=Y.join(" "),X.receivedEndOfUtterance&&!X.isUsingVoz?X.isUsingVoz||
X.completeHandler([b,Y]):(J=X,t=b,G=Y,K1("voz_sf"),J.transcriptionUpdateHandler(t,G),J.transcribedSpeechResults=[t,G]),X.receivedEndOfUtterance&&(K1("voz_eou"),X.transcriptionCompleteHandler([b,Y]),X.isUsingVoz&&(X.prefetchResponseTimeoutMs===0?IX(X,{logMicClosed:!1,handleStop:!0}):X.prefetchResponseTimeoutMs>0&&qH7(X)))}else X.isUsingVoz&&(Y==null?0:Y.internalOut)?(Y=JSON.parse(Y.internalOut.youtubeAssistantS3OutputJson),Y.userHasOptedInToVaa||Y.vaaConsent?X.vaaConsentUpdateHandler(!!Y.userHasOptedInToVaa,
!!Y.vaaConsent):(cd4(X),Y&&(b=X.transcribedSpeechResults,K1("voz_rqf"),X.completeHandler(b,Y)))):Y.eventType==="END_OF_UTTERANCE"?X.receivedEndOfUtterance=!0:(K1("voz_err"),X.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.KE(Error("bl")))}}});
_.G2(B.channel,"y",function(V){IX(B);switch(V.status){case 1:V="WEBCHANNEL_NETWORK_ERROR";break;case 2:V="WEBCHANNEL_SERVER_ERROR";break;default:V="WEBCHANNEL_UNKNOWN_ERROR"}B.errorHandler(V);B.logError(Error(V))})};
vm.prototype.logError=function(B){_.Tn(B)};
vm.prototype.isOnline=function(){return!0};
var qH7=function(B){cd4(B);B.prefetchResponseSetTimeoutId=setTimeout(function(){IX(B,{logMicClosed:!1,handleStop:!0})},B.prefetchResponseTimeoutMs)},cd4=function(B){B.prefetchResponseSetTimeoutId>-1&&(clearTimeout(B.prefetchResponseSetTimeoutId),B.prefetchResponseSetTimeoutId=-1)},Ibe=function(B){Qoz(B);
B.noResponseReceivedTimeout=window.setTimeout(function(){IX(B);B.errorHandler("NO_SPEECH")},11E3)},Qoz=function(B){B.noResponseReceivedTimeout>-1&&(window.clearTimeout(B.noResponseReceivedTimeout),B.noResponseReceivedTimeout=-1)},K1=function(B){_.zp(B,void 0,"voice_assistant")};var EG=function(){vm.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.l(EG,vm);EG.prototype.isSupported=function(){return pkU()};
EG.prototype.startAudio=function(){var B=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.SR(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(e){Ad2(B,e)};
this.processor.connect(this.audioContext.destination);var R=function(e){B.stream=e;if(!B.audioContext)return _.XT(null);e=B.audioContext.createMediaStreamSource(e);B.processor&&e.connect(B.processor);return _.XT(null)},V={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?R(this.stream):navigator.mediaDevices.getUserMedia(V).then(R).catch(function(e){IX(B);e.name&&e.name==="NotAllowedError"?B.errorHandler("NO_MICROPHONE_PERMISSION"):(B.errorHandler("AUDIO_ERROR"),B.logError(e));return _.SR(null)});
return vm.prototype.startAudio.call(this)};
EG.prototype.stopAudio=function(B){B=B===void 0?!0:B;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(R){R.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;vm.prototype.stopAudio.call(this,B)};
EG.prototype.isOnline=function(){return navigator.onLine};
var Ad2=function(B,R){if(B.audioContext)if(window.OfflineAudioContext){var V=B.audioContext.sampleRate,e=R.inputBuffer.getChannelData(0);R=new window.OfflineAudioContext(1,e.length,16E3);for(var X=R.createBuffer(1,e.length,V),Y=X.getChannelData(0),t=0,b=0;b<e.length;b++)Y[b]=e[b],t+=Y[b]*Y[b];!B.audioDetected&&Math.sqrt(t/e.length)>.01&&(B.audioDetected=!0,B.audioDetectedHandler());e=R.createBufferSource();e.buffer=X;e.connect(R.destination);e.start(0);R.oncomplete=function(J){J=J.renderedBuffer.getChannelData(0);
for(var G=Math.floor(16384E3/V),y=new Int16Array(G),S=0;S<G;++S)y[S]=Math.max(-1,Math.min(1,J[S]))*32767;EEo(B,y.buffer)};
R.startRendering()}else ijN(B,R)},ijN=function(B,R){var V=B.audioContext.sampleRate,e=R.inputBuffer.getChannelData(0),X=Math.floor((V+8E3)/16E3);
V=e.length/X;R=new Float32Array(V);for(var Y=0;Y<V;++Y)R[Y]=e[Y*X];e=new Int16Array(V);for(X=0;X<V;++X)e[X]=Math.max(-1,Math.min(1,R[X]))*32767;EEo(B,e.buffer)};var soi={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Fze=function(){this.JSC$17644_audioEnabled=!0;this.audioFeedbackHolder={}};
Fze.prototype.isPlaying=function(B){return B.currentTime>0&&!B.paused&&!B.ended&&B.readyState>2};
var rde=function(B){for(var R=_.h(Object.values(soi)),V=R.next();!V.done;V=R.next())V=V.value,B.audioFeedbackHolder[V]=new Audio,B.audioFeedbackHolder[V].src="/s/search/audio/"+V+".mp3",B.audioFeedbackHolder[V].load()},Q7=function(B,R){if(B.JSC$17644_audioEnabled!==!1&&R in B.audioFeedbackHolder){for(var V=_.h(Object.values(B.audioFeedbackHolder)),e=V.next();!e.done;e=V.next())e=e.value,B.isPlaying(e)&&e.pause();
B.audioFeedbackHolder[R].currentTime=0;B.audioFeedbackHolder[R].play().catch(function(){})}};var gE4=function(B,R){var V=this;this.store=B;this.service=R;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){V.setState("offline");V.stop()};
this.audioPlayer=new Fze;var e;(e=this.audioPlayer)==null||rde(e)};
_.p=gE4.prototype;_.p.getService=function(){return this.service};
_.p.isEnabled=function(){return!!this.service};
_.p.isSupported=function(){var B;return(B=this.service)==null?void 0:B.isSupported()};
_.p.start=function(){var B=this,R,V,e,X,Y,t,b,J,G,y,S,M,f;return _.W(function(z){switch(z.nextAddress){case 1:B.store.dispatch(ZDz("",""));if(!navigator.onLine)return B.setState("offline"),z.return();window.addEventListener("offline",B.handleOfflineEvent);B.stream=null;if(!B.permissionsSupported){z.jumpTo(2);break}_.en(z,3);return _.U(z,ZjU(B),5);case 5:R=z.yieldResult;if(!R)return(V=B.audioPlayer)==null||Q7(V,"failure"),z.return();B.service.stream=B.stream;B.setState("listening");_.c8(z,2);break;
case 3:_.WR(z),B.permissionsSupported=!1;case 2:e={context:_.SVK(_.uN())},e.youtubeAssistantParams={searchParams:{inlineSearchResponse:B.enableInlineSearchResponse}},X=function(T,L){B.store.dispatch(mxn("transcribing"));B.store.dispatch(ZDz(T,L))},Y=function(){var T;
(T=B.audioPlayer)==null||Q7(T,"open");B.setState("listening")},t=function(){B.setState("transcribing")},b=function(T){B.setErrorState(T)},J=function(T,L){var Q;
(Q=B.audioPlayer)==null||Q7(Q,"success");L&&(_.k("kevlar_voice_search_inline_search")&&(B.responseProcessor=_.Oz().resolve(_.DvA),B.responseProcessor&&(Q=L.navigationAction,T=L.prefetchedSearchResponse,Q&&T&&(Q=(new _.CQ4).JSC$11824_getStoreKey(Q),_.r2(B.responseProcessor,T,Q)))),B.JSC$17662_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",L))},G=function(){window.removeEventListener("offline",B.handleOfflineEvent)},y=_.ddI(!1),S=y.Authorization!=null,M=B.enableFirstPartyAuth||
B.enableFPAForSignedInUsers&&S?y:{"X-Goog-Visitor-Id":y["X-Goog-Visitor-Id"]},f={completeHandler:J,
errorHandler:b,listeningHandler:Y,audioDetectedHandler:t,stopHandler:G,transcriptionUpdateHandler:X,youtubeAssistantRequest:e,languageCode:mGo(),additionalHeaders:M,supportsCrossDomainXhr:B.enableFirstPartyAuth||B.enableFPAForSignedInUsers&&S,supportsHttpHeadersOverwriteParam:!B.disableHttpHeadersOverwrite},B.service.start(f),_.b3(z)}})};
_.p.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.p.reset=function(){this.store.dispatch(_.or({type:"RESET_VOICE_SEARCH_STATE"}))};
_.p.setState=function(B){this.store.dispatch(mxn(B))};
_.p.setErrorState=function(B){switch(B){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var R;(R=this.audioPlayer)==null||Q7(R,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)ZjU(this);else{var V;(V=this.audioPlayer)==null||Q7(V,"failure");this.setState("permission-denied")}break;case "ABORTED":var e;(e=this.audioPlayer)==null||Q7(e,"no_input");break;default:var X;(X=this.audioPlayer)==
null||Q7(X,"no_input");this.setState("timeout")}};
var ZjU=function(B){var R,V;return _.W(function(e){switch(e.nextAddress){case 1:return _.U(e,navigator.permissions.query({name:"microphone"}),2);case 2:R=e.yieldResult;if(R.state==="granted")return e.return(!0);if(R.state==="denied")return B.setState("permission-denied"),e.return(!1);B.setState("permission");V={audio:{sampleSize:16,channelCount:1},video:!1};_.en(e,3);return _.U(e,navigator.mediaDevices.getUserMedia(V),5);case 5:return B.stream=e.yieldResult,e.return(!0);case 3:return _.WR(e),B.setState("permission-denied"),
e.return(!1)}})},mGo=function(){var B=_.vE("INNERTUBE_CONTEXT_HL"),R=_.vE("INNERTUBE_CONTEXT_GL");
return B.indexOf("-")>-1?B:B+"-"+R};var $G7=function(B,R,V){gE4.call(this,R,V);this.JSC$17662_actionRouter=B;this.enableInlineSearchResponse=_.k("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.k("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.k("kevlar_voice_search_enable_fpa_signedin_users")},C$4;
_.l($G7,gE4);
var P$N=function(){if(!C$4){var B="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.k("kevlar_voice_search_auth_enabled")||_.k("kevlar_voice_search_use_yt_endpoint")?B="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.k("kevlar_voice_search_use_fp_endpoint")&&(B="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");C$4=
new $G7(_.sd.getInstance(),_.g6(),new EG(_.vE("VOZ_API_KEY"),B,.5))}return C$4};var nE4=function(B){this.JSC$17666_clientRoot=B;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$17666_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)]]));B=_.h(this.eventListeners);for(var R=B.next();!R.done;R=B.next()){var V=_.h(R.value);R=V.next().value;V=V.next().value;V=_.h(V);for(var e=V.next();!e.done;e=V.next()){var X=
_.h(e.value);e=X.next().value;X=X.next().value;R.addEventListener(e,X)}}_.Fo(_.sd.getInstance(),this.autonavPauseActionMap,this.JSC$17666_clientRoot)},uwz,Ojr=function(B){return _.k("kevlar_autonav_popup_filtering")?(B=_.ii(B))?B.hasAttribute("prevent-autonav"):!0:!0};
_.p=nE4.prototype;_.p.onIronOverlayOpened=function(B){Ojr(B)&&(this.autonavPauseReasons.overlayOpen=!0,qt(this))};
_.p.onIronOverlayClosed=function(B){Ojr(B)&&(this.autonavPauseReasons.overlayOpen=!1,qt(this))};
_.p.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;qt(this)};
_.p.onYtAutonavPauseBlur=function(){var B=this;_.dV.addJob(function(){B.isInBackground()||(B.autonavPauseReasons.inputBoxFocus=!1,qt(B))},8,0)};
_.p.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;qt(this)};
_.p.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;qt(this)};
_.p.onYtAutonavPauseScroll=function(){var B=_.Oz().resolve(_.$B);B.isOnWatch()&&(B=B.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=B.getBoundingClientRect().top<-200,qt(this))};
_.p.onYtAutonavPauseUserEngagement=function(B){var R=this;if(_.k("user_engagement_enable_autoplay_pause_feature")){var V=Number(B.lowEngagementThresholdMs);isNaN(V)||V<=0||B.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.$k("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.Oz().resolve(_.fD),_.B5()<V?_.kD(_.dV,function(){_.$k("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Au6()?(this.userEngagementCsn=_.TE(),_.kD(_.dV,function(){_.$k("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
R.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,qt(this)):_.$k("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.I9d(Error("cl`"+JSON.stringify(B)))};
_.p.onYtAutonavPausePlayer=function(B){this.autonavPauseReasons.requestedByPlayer=!!B.detail;qt(this)};
_.p.onYtAutonavVisibilityChanged=function(){var B=this,R,V,e;return _.W(function(X){if(X.nextAddress==1)return(R=_.Pr())?_.U(X,R.getPlayerPromise(),2):X.return();V=X.yieldResult;e=V.isMuted()||V.getVolume()===0;B.autonavPauseReasons.backgroundAndMute=B.isInBackground()&&e;qt(B);_.b3(X)})};
_.p.onYtAutonavPausePlayerEnded=function(){_.Oz().resolve(_.fD);var B=144E5;_.k("user_engagement_enable_autoplay_pause_feature")||_.k("is_part_of_any_user_engagement_experiment")||(B=45E5);this.autonavPauseReasons.longIdle=_.B5()>B;oc2(this);qt(this)};
_.p.onYtUserActivity=function(){var B=this;this.autonavPauseReasons.userEngagement&&(_.kD(_.dV,function(){_.$k("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",B.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,qt(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.kD(_.dV,function(){_.$k("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",B.userEngagementCsn);_.wn()}),this.autonavPauseReasons.youthereLactExperiment=!1,qt(this));
this.autonavPauseReasons.longIdle&&!_.k("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,qt(this))};
_.p.isInBackground=function(){var B=window.document.visibilityState;return!(!B||B==="visible")};
var qt=function(B){for(var R=!1,V=_.h(Object.values(B.autonavPauseReasons)),e=V.next();!e.done;e=V.next())e=e.value,R=R||e;R?_.PL.getInstance().pause(B.autonavPauseReasons):(B=_.PL.getInstance(),B.autonavState_==3?(B.setState(2,!1,!1),B.autonavPauseReason_=void 0):B.autonavState_==1&&(B.disabledAutonavPauseReason_=void 0))},oc2=function(B){var R=!1;
if(_.k("enable_autoplay_pause_by_lact")){_.Oz().resolve(_.fD);R=_.RC("autoplay_pause_by_lact_sec")*1E3;var V=_.RC("autoplay_pause_by_lact_sampling_fraction");(R=_.B5()>=R&&Math.random()<V)&&!_.Au6()&&(_.kD(_.dV,function(){_.$k("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),R=!1)}R!==B.autonavPauseReasons.youthereLactExperiment&&(B.autonavPauseReasons.youthereLactExperiment=R)&&(B.userEngagementCsn=_.TE(),_.kD(_.dV,function(){_.$k("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",B.userEngagementCsn)}));
B.autonavPauseReasons.userEngagement&&_.kD(_.dV,function(){_.$k("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",B.userEngagementCsn)})};
nE4.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.$k("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.wn(),this.autonavPauseReasons.youthereLactExperiment=!1,qt(this));this.autonavPauseReasons.userEngagement&&(_.$k("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,qt(this))};
nE4.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var cm=function(){var B=_.c.apply(this,arguments)||this;B.miniGuideVisible=!1;B.guideOpened=_.k("disable_initial_guide_state_fix")?!1:B.canFitPersistentGuide(B.initialBodyClientWidth);B.guideUserStateOpened=B.getInitialGuideUserStateOpened();B.isFullscreenShorts=!1;B.miniGuideWidthThreshold=_.RC("kevlar_mini_guide_width_threshold",791);B.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");B.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
B.persistentGuideBlockedPagePathRegex=new RegExp(B.persistentGuideBlockedPagesPatterns.join("|"));B.animationTransitionDuration=0;B.lateDataResolver=_.A3();B.initialGuideDataFetchFailed=!1;B.initialLoad=!0;B.guideRenderers=new Set;B.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return B};
_.l(cm,_.c);_.p=cm.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(){_.Oz().addProvider({provide:_.vu,useValue:this.hostElement})};
_.p.attached=function(){var B=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Bc(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Bc(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Bc(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Bc(this,this.onYtGuideShow));_.gB(this,function(){B.animationTransitionDuration=200})};
_.p.detached=function(){document.removeEventListener("yt-navigate-finish",_.Bc(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Bc(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Bc(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Bc(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Bc(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Bc(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Bc(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.p.getData=function(){return this.data};
_.p.load=function(){var B=this,R,V,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=B.lateDataResolver.resolve.bind(B),Y.return(B.lateDataResolver.promise);if(window.ytInitialGuideData)return R=_.A3(),R.resolve(window.ytInitialGuideData),Y.return(R.promise);e=!1;_.en(Y,2);return _.U(Y,B.fetchGuideData(),4);case 4:V=Y.yieldResult;_.c8(Y,3);break;case 2:X=_.WR(Y),X.message==="Returned error"&&(e=!0);
case 3:if(V)return Y.return(V);B.onYtGuideClose();e||(B.initialGuideDataFetchFailed=!0);return Y.return(B.lateDataResolver.promise)}})};
_.p.fetchGuideData=function(){var B=this,R,V,e,X,Y,t,b;return _.W(function(J){if(J.nextAddress==1)return R=_.Oz(),B.guidePromise||(V=R.resolve(_.M1),B.guidePromise=_.cr(V,eIe)),_.U(J,B.guidePromise,2);if(J.nextAddress!=3)return e=J.yieldResult,X=R.resolve(_.sM),_.U(J,X(),3);(Y=J.yieldResult)&&((t=e)==null?void 0:(b=t.responseContext)==null?void 0:b.maxAgeSeconds)!==0&&Y.put("service:guide:fallback",new _.Rf({innertubeResponse:e}));return J.return(e)})};
_.p.initializeGuideDataIfEmpty=function(){var B=this,R,V;return _.W(function(e){if(e.nextAddress==1){if(!B.initialGuideDataFetchFailed||B.data)return e.return();_.en(e,2);return _.U(e,B.fetchGuideData(),4)}if(e.nextAddress!=2)return(R=e.yieldResult)&&B.lateDataResolver.resolve(R),_.c8(e,0);V=_.WR(e);_.KE(V);_.b3(e)})};
_.p.initializeGuideData=function(){var B=this,R;return _.W(function(V){switch(V.nextAddress){case 1:return _.Nl(kLN(),{mainAppWeb:_.EX()}),_.en(V,2),_.U(V,B.load(),4);case 4:B.data=V.yieldResult;_.c8(V,3);break;case 2:_.WR(V),_.GT(kLN(),"FAILURE");case 3:R=B.data&&B.data.items&&B.data.items.length>0?"SUCCESS":"FAILURE",_.GT(kLN(),R),_.b3(V)}})};
_.p.setGuideData=function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1)return R.disabled?X.return():R.data?(B.data=R.data,R.guideRenderers.add(B),X.return()):_.U(X,R.initializeGuideData(),2);R.graftGuideToPage();V=_.KQ("IS_HOMEPAGE_COLD")?"eop":void 0;_.k("disable_element_pool_populator")?R.setGuideDataAfterInit(B):(e=new _.gM(1,V),_.Z2(e,R.setGuideDataAfterInit.bind(R,B)));_.b3(X)})};
_.p.setGuideDataAfterInit=function(B){B.data=this.data;B.markDirty();this.guideRenderers.add(B);_.xp(function(){_.zp("gle")});
_.gB(this,function(){_.zp("gpe")})};
_.p.graftGuideToPage=function(){if(this.data){var B=this.data&&this.data.trackingParams;B&&(B=_.U5(B),_.hy(_.WK(),B))}};
_.p.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Bc(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.p.onDrawerOpenedChanged=function(B,R){!R.value&&this.guideOpened&&(this.guideOpened=!1)};
_.p.onYtGuideToggle=function(B){var R=this.guideOpened;this.guideOpened=!R;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var V=_.UV();_.Nd(0,109,!this.guideUserStateOpened);V.save()}this.updateGuideDrawerElementState();if(this.guideElement){var e;this.guideOpened&&((e=B.detail)==null?0:e.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Bc(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.Bc(this,
this.onAppDrawerTransitioned))}R||this.initializeGuideDataIfEmpty()};
_.p.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Bc(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Zt(this.guideElement)};
_.p.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Bc(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(r3o(this.guideOpened))};
_.p.guidePersistentAndVisibleChanged=function(){_.Bz(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.p.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.or({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.p.miniGuideVisibleChanged=function(){_.Bz(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.p.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(r3o(this.guideOpened)),this.initialLoad=!1);_.Bz(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.p.activeEndpointChanged=function(){_.Bz(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 B=this.canFitPersistentGuide(this.cachedClientWidth);B?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=B}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&&_.OI(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.p.computeGuidePersistentAndVisible=function(){var B=this;_.LJ(this,"computeGuidePersistentAndVisible",function(){B.guidePersistentAndVisible=B.guideOpened&&B.guidePersistent;B.guideIsVisibleButNotPersistent=!(!B.guideOpened||B.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(){_.k("web_hide_guide_on_shorts")&&this.closeGuide()};
_.p.onYtNavigateFinish=function(B,R){if(!_.ho||R){this.activeEndpoint=R.endpoint;this.pageType=R.pageType;this.pageUrl=R.response.url;var V,e;B=(e=_.D((V=R.endpoint)==null?void 0:V.commandMetadata,_.$a))==null?void 0:e.url;!this.pageUrl&&B&&(this.pageUrl=B);_.k("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.p.getVisibleGuideRenderer=function(){for(var B=_.h(this.guideRenderers),R=B.next();!R.done;R=B.next())if(R=R.value,this.miniGuideVisible&&R.is==="ytd-mini-guide-renderer"||this.guideOpened&&R.is==="ytd-guide-renderer")return R;return null};
_.p.markGuideRendererDirty=function(B){if(B){typeof B.markDirty==="function"&&B.markDirty();B=_.h([].concat(_.MI(_.w(B).children)));for(var R=B.next();!R.done;R=B.next())this.markGuideRendererDirty(R.value)}};
_.p.persistentGuideEnabled=function(B,R){if(!R||B==="watch"||B==="settings"||B==="shorts"&&this.isFullscreenShorts||_.k("reels_web_disable_persistent_guide_shorts")&&B==="shorts")return!1;var V=_.tu(R)||"";return _.k("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(e){return V===e}):!this.persistentGuideBlockedPagePathRegex.test(V)};
_.p.canFitPersistentGuide=function(B){var R=_.RC("kevlar_persistent_guide_width_threshold",1312);return R===-1||_.k("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:B>R};
_.p.canFitMiniGuide=function(B){return this.miniGuideWidthThreshold===-1?!1:B>this.miniGuideWidthThreshold};
_.p.onResize=function(){var B=this;_.LJ(this,"calculateGuideState",function(){B.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!_.UV().getFlag(109)};
_.mh.Object.defineProperties(cm.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.vE("initialBodyClientWidth")||window.innerWidth}}});
cm.prototype.onResize=cm.prototype.onResize;cm.prototype.observeForMiniGuideVisible=cm.prototype.observeForMiniGuideVisible;cm.prototype.computeGuidePersistentAndVisible=cm.prototype.computeGuidePersistentAndVisible;cm.prototype.cachedClientWidthChanged=cm.prototype.cachedClientWidthChanged;cm.prototype.resetGuide=cm.prototype.resetGuide;cm.prototype.activeEndpointChanged=cm.prototype.activeEndpointChanged;cm.prototype.guideOpenedChanged=cm.prototype.guideOpenedChanged;
cm.prototype.miniGuideVisibleChanged=cm.prototype.miniGuideVisibleChanged;cm.prototype.guideIsVisibleButNotPersistentChanged=cm.prototype.guideIsVisibleButNotPersistentChanged;cm.prototype.guidePersistentAndVisibleChanged=cm.prototype.guidePersistentAndVisibleChanged;cm.prototype.onGuideElementChanged=cm.prototype.onGuideElementChanged;cm.prototype.onGuidePersistentChanged=cm.prototype.onGuidePersistentChanged;cm.prototype.onRenderGuideChanged=cm.prototype.onRenderGuideChanged;
cm.prototype.onActiveEndpointChanged=cm.prototype.onActiveEndpointChanged;cm.prototype.onMiniGuideVisibleChanged=cm.prototype.onMiniGuideVisibleChanged;cm.prototype.onGuideIsVisibleButNotPersistentChanged=cm.prototype.onGuideIsVisibleButNotPersistentChanged;cm.prototype.onGuidePersistendAndVisibleChanged=cm.prototype.onGuidePersistendAndVisibleChanged;_.r([_.v(_.LC),_.Z("design:type",Object)],cm.prototype,"ironResizableBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],cm.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],cm.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],cm.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cm.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cm.prototype,"disabled",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],cm.prototype,"guidePersistentAndVisible",void 0);_.r([_.XX("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"onGuidePersistendAndVisibleChanged",null);_.r([_.E(),_.Z("design:type",Boolean)],cm.prototype,"guideIsVisibleButNotPersistent",void 0);
_.r([_.XX("guideIsVisibleButNotPersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.r([_.E(),_.Z("design:type",Object)],cm.prototype,"miniGuideVisible",void 0);_.r([_.XX("miniGuideVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"onMiniGuideVisibleChanged",null);_.r([_.E(),_.Z("design:type",Boolean)],cm.prototype,"forceMiniGuideClose",void 0);
_.r([_.E(),_.Z("design:type",Object)],cm.prototype,"activeEndpoint",void 0);_.r([_.XX("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"onActiveEndpointChanged",null);_.r([_.E(),_.Z("design:type",Boolean)],cm.prototype,"renderGuide",void 0);_.r([_.XX("renderGuide"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"onRenderGuideChanged",null);
_.r([_.E(),_.Z("design:type",Object)],cm.prototype,"guideOpened",void 0);_.r([_.E(),_.Z("design:type",Boolean)],cm.prototype,"guidePersistent",void 0);_.r([_.XX("guidePersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"onGuidePersistentChanged",null);_.r([_.E(),_.Z("design:type",Object)],cm.prototype,"guideUserStateOpened",void 0);_.r([_.E(),_.Z("design:type",String)],cm.prototype,"pageUrl",void 0);
_.r([_.E(),_.Z("design:type",String)],cm.prototype,"pageType",void 0);_.r([_.E(),_.Z("design:type",Number)],cm.prototype,"cachedClientWidth",void 0);_.r([_.E(),_.Z("design:type",Object)],cm.prototype,"guideElement",void 0);_.r([_.E({selector:_.GP}),_.Z("design:type",Object)],cm.prototype,"isFullscreenShorts",void 0);_.r([_.XX("guideElement"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"onGuideElementChanged",null);
_.r([_.XX("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"guidePersistentAndVisibleChanged",null);_.r([_.bp("guideIsVisibleButNotPersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.r([_.XX("miniGuideVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"miniGuideVisibleChanged",null);_.r([_.bp("guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"guideOpenedChanged",null);_.r([_.XX("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"activeEndpointChanged",null);
_.r([_.bp("pageUrl"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"resetGuide",null);_.r([_.bp("cachedClientWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"cachedClientWidthChanged",null);_.r([_.XX("guideOpened","guidePersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"computeGuidePersistentAndVisible",null);
_.r([_.bp("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"observeForMiniGuideVisible",null);_.r([_.R_("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cm.prototype,"onResize",null);cm=_.r([_.A({disableElementRegistration:!0,is:"yt-guide-manager"})],cm);var Btj=_.F(cm,"yt-guide-manager",void 0,{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var AV=function(){var B=_.c.apply(this,arguments)||this;B.JSC$17676_keyboardInUse=!1;B.boundHandleCapturedKeydownEvent=function(R){B.handleCapturedKeydownEvent(R)};
return B};
_.l(AV,_.c);_.p=AV.prototype;_.p.attached=function(){this.listenToDocument(document)};
_.p.listenToDocument=function(B){B.addEventListener("keydown",_.Bc(this,this.onKeyDownEvent));B.addEventListener("keyup",_.Bc(this,this.onKeyUpEvent));B.addEventListener("mousedown",_.Bc(this,this.onMouseDownEvent));_.k("desktop_keyboard_capture_keydown_killswitch")||B.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);B.addEventListener("yt-page-data-updated",_.Bc(this,this.onPageUpdate))};
_.p.detached=function(){this.unlistenFromDocument(document)};
_.p.unlistenFromDocument=function(B){B.removeEventListener("keydown",_.Bc(this,this.onKeyDownEvent));B.removeEventListener("keyup",_.Bc(this,this.onKeyUpEvent));B.removeEventListener("mousedown",_.Bc(this,this.onMouseDownEvent));_.k("desktop_keyboard_capture_keydown_killswitch")||B.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);B.removeEventListener("yt-page-data-updated",_.Bc(this,this.onPageUpdate))};
_.p.ready=function(){_.Oz().addProvider({provide:_.DE,useValue:this})};
_.p.isKeyBoardInUse=function(){return this.JSC$17676_keyboardInUse};
_.p.handleCapturedKeydownEvent=function(B){if(B.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(B)};
_.p.onMouseDownEvent=function(){this.JSC$17676_keyboardInUse=!1};
_.p.onPageUpdate=function(){if(_.k("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.k("web_shorts_keyboard_shortcut_usage_log")){_.Ot.clear();for(var B=_.h(_.n4),R=B.next();!R.done;R=B.next()){var V=_.h(R.value);R=V.next().value;V=V.next().value;V=_.kB(V);_.Ot.set(R,V);_.EV(_.TE(),_.wT(),V)}_.ov.clear();B=_.h(_.uk);for(R=B.next();!R.done;R=B.next())V=_.h(R.value),R=V.next().value,V=V.next().value,V=_.kB(V),_.ov.set(R,V),_.EV(_.TE(),_.wT(),V);_.QD(_.TE(),_.wT(),[].concat(_.MI(_.ov.values()),
_.MI(_.Ot.values())));_.cz(_.TE(),[].concat(_.MI(_.ov.values()),_.MI(_.Ot.values())))}};
_.p.onMiniplayerActiveChange=function(){var B;(B=_.Oz().resolve(_.An).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(B.document):this.unlistenFromDocument(B.document))};
_.p.ignoreKeyEvent=function(B){if(B.ctrlKey||B.altKey)if(_.k("kevlar_macro_markers_keyboard_shortcut")){if(B.keyCode!==37&&B.keyCode!==39)return!0}else return!0;var R=_.Az(B)||[];return _.Fkn(R)?!0:B.defaultPrevented?(Jg(B.keyCode,B.shiftKey,this.isShortsPage),!0):B.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(B):!1};
_.p.isSpacebarClick=function(B){var R=B||window.event;var V;R.composedPath&&typeof R.composedPath==="function"?V=R.composedPath():V=R.path;V&&V.length?R=V[0]:(R=R||window.event,R=R.target||R.srcElement,R.nodeType==3&&(R=R.parentNode));return R&&B.keyCode===32&&(B=R.tagName==="BUTTON"||R.tagName==="A"||R.tagName==="INPUT",R=(R=R.getAttribute("role"))&&(R==="option"||R==="button"||R.indexOf("menuitem")===0),B||R)?!0:!1};
_.p.onKeyDownEvent=function(B){if(!this.ignoreKeyEvent(B)&&(B.keyCode===191&&(B.shiftKey||B.metaKey?B.repeat!=null&&B.repeat||(this.openHotkeyDialog(),Jg(B.keyCode,B.shiftKey,this.isShortsPage)):(this.focusSearchBox(),B.preventDefault())),!B.metaKey)){var R=_.Oz().resolve(_.An);switch(B.keyCode){case 9:this.JSC$17676_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(B);break;case 84:R.pipController.getWindow()&&window.focus();this.toggleTheaterMode(B.keyCode,B.shiftKey);break;case 73:R.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(B.keyCode,B.shiftKey);break;case 70:if(this.isShortsPage&&_.k("web_fullscreen_shorts")){_.gzz();break}this.isMiniplayerActive()?R.pipController.getWindow()&&(R.close(!0),window.focus()):this.passEventToPlayer(B);break;case 27:this.closeMiniplayer(B.keyCode,B.shiftKey)||this.passEventToPlayer(B);break;case 13:B.shiftKey&&_.k("web_ephemeral_actions")&&_.Oz().resolve(_.tc).activate(B);break;default:this.passEventToPlayer(B)}}};
_.p.onKeyUpEvent=function(B){if(!this.ignoreKeyEvent(B))if(_.k("web_speedmaster_spacebar_control")&&B.keyCode===32)this.handlePlayerSpaceKey(B,!0);else{var R=this.getPlayerManager();R&&(R=R.getPlayer())&&R.handleGlobalKeyUp(B.keyCode,B.shiftKey,B.ctrlKey,B.altKey,B.metaKey,B.key,B.code)}};
_.p.getPlayerManager=function(){var B=_.Pr(),R=_.Oz().resolve(_.uj(_.$B));return B&&R&&R.isOnWatch()?B:null};
_.p.passEventToPlayer=function(B,R){var V=this,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return!_.k("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&V.isMiniplayerActive()?e=_.Oz().resolve(_.An).getPlayerElement():V.inlinePreviewIsActive?(X=_.Bz(V.hostElement,"yt-get-inline-preview-player-action"))&&X[0]&&(e=X[0]):e=_.Pr(),e?_.U(t,e.getPlayerPromise(),3):t.jumpTo(0);Y=t.yieldResult;R?Y.handleGlobalKeyUp(B.keyCode,B.shiftKey,B.ctrlKey,B.altKey,B.metaKey,B.key,B.code,B.repeat):Y.handleGlobalKeyDown(B.keyCode,
B.shiftKey,B.ctrlKey,B.altKey,B.metaKey,B.key,B.code,B.repeat);B.keyCode!==38&&B.keyCode!==40&&Jg(B.keyCode,B.shiftKey,V.isShortsPage);_.b3(t)})};
_.p.focusSearchBox=function(){_.OI(this.hostElement,"yt-focus-searchbox")};
_.p.openHotkeyDialog=function(){_.OI(this.hostElement,"yt-open-hotkey-dialog")};
_.p.isMiniplayerActive=function(){return _.Oz().resolve(_.An).isMiniplayerActive()};
_.p.closeMiniplayer=function(B,R){return this.isMiniplayerActive()?(_.Oz().resolve(_.An).close(),Jg(B,R,this.isShortsPage),!0):!1};
_.p.toggleTheaterMode=function(B,R){var V=_.as(_.g6().getState()),e=this.getPlayerManager(),X=_.k("disable_theater_mode_keyboard")||_.KQ("START_IN_FULL_WINDOW_MODE");e&&!X&&(V=!V,_.Cp()&&_.k("external_fullscreen")&&(V=!0),_.oF(this.hostElement,"yt-toggle-theater-mode",[V]),Jg(B,R,this.isShortsPage))};
_.p.toggleMiniplayer=function(B,R){var V=this.getPlayerManager();if(this.isMiniplayerActive()){var e;((e=_.Oz().resolve(_.uj(_.$B)))==null?0:e.isOnWatch())?_.Oz().resolve(_.An).close(!0):_.Sa(_.Oz().resolve(_.An));Jg(B,R,this.isShortsPage)}else V&&(_.oF(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Jg(B,R,this.isShortsPage))};
_.p.handlePlayerSpaceKey=function(B,R){var V=!!_.Pr()||this.isMiniplayerActive();V=_.k("disable_space_scroll_fix")||V;_.k("global_spacebar_pause")&&!this.isKeyBoardInUse()&&V&&(B.preventDefault(),this.passEventToPlayer(B,R))};
AV.prototype.onMiniplayerActiveChange=AV.prototype.onMiniplayerActiveChange;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],AV.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],AV.prototype,"ytdReduxBehavior",void 0);_.r([_.E({selector:_.dfd}),_.Z("design:type",Boolean)],AV.prototype,"inlinePreviewIsActive",void 0);_.r([_.E({selector:_.iqe}),_.Z("design:type",Boolean)],AV.prototype,"isShortsPage",void 0);
_.r([_.E({selector:_.d6}),_.Z("design:type",Boolean)],AV.prototype,"miniplayerIsActive",void 0);_.r([_.XX("miniplayerIsActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AV.prototype,"onMiniplayerActiveChange",null);AV=_.r([_.A({disableElementRegistration:!0,is:"yt-hotkey-manager"})],AV);_.F(AV,"yt-hotkey-manager",void 0,{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var iS=function(){var B=_.c.apply(this,arguments)||this;B.loopStateEntityKey_=null;B.playlistLoopStateEntity_=null;B.isShuffleNextPlaylist=!1;B.PLAYER_EVENTS_=new Map;B.playerListenersSetup_=!1;B.videoSkipJob_=0;B.canAutoAdvance_=!1;B.playerManager_=null;B.TEST_ONLY={};return B};
_.l(iS,_.c);_.p=iS.prototype;_.p.ready=function(){_.Oz().addProvider({provide:_.Ky,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",_.Bc(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Bc(this,this.onYtNavigateFinish_))};
_.p.detached=function(){document.removeEventListener("yt-navigate-start",_.Bc(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Bc(this,this.onYtNavigateFinish_))};
_.p.updatePlaylistEventListeners=function(B,R){R&&!this.playerListenersSetup_?(this.playerManager_=B,this.registerPlaylistEventListeners_(B)):!R&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(B))};
_.p.setPlayer=function(B){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=B};
_.p.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.p.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.p.registerPlaylistEventListeners_=function(B){var R=this;B.getPlayerPromise().then(function(V){R.playerListenersSetup_||(R.ytPlayerListenerBehavior.listenToPlayerEvents(V,R.PLAYER_EVENTS_),R.playerListenersSetup_=!0)})};
_.p.removePlaylistEventListeners_=function(B){var R=this;B.getPlayerPromise().then(function(V){R.playerListenersSetup_&&(R.ytPlayerListenerBehavior.unlistenFromPlayerEvents(V,R.PLAYER_EVENTS_),R.playerListenersSetup_=!1)})};
_.p.setPlaylistComponent=function(B){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Bc(this,this.onPlaylistYtNavigate_)),B&&(B.data&&this.playlistComponent.data&&B.data.playlistId==this.playlistComponent.data.playlistId?(B.loopOn=this.playlistComponent.loopOn,B.shuffleOn=this.playlistComponent.shuffleOn):(B.loopOn=!1,B.shuffleOn=!1),this.isShuffleNextPlaylist&&(B.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=B;this.playlistComponent.addEventListener("yt-navigate",
_.Bc(this,this.onPlaylistYtNavigate_))};
_.p.setAutoplayRenderer=function(B){this.autoplayData=B};
_.p.setPlaylistData=function(B){this.currentPlaylistData_=B;_.OI(this.hostElement,"yt-playlist-data-updated");_.M_.isEmpty(B)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(B)};
_.p.setPlayerPlaybackControlData=function(B){this.playerManager_&&this.playerManager_.updatePlayerComponents(B.playlistPanelRenderer)};
_.p.getPlaylistData=function(){return this.currentPlaylistData_};
_.p.getTempData_=function(B,R){if(this.playlistComponent==null)return null;B={};this.playlistComponent.shuffleOn&&(B.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(B.loop_on=this.playlistComponent.loopOn);R&&(B.autonav="1",_.Oz().resolve(_.fD),R=_.B5(),R>0&&(B.lact=R),this.playerManager_&&(R=this.playerManager_.getPlayer())&&R.shouldSendVisibilityState()&&(R=R.getVisibilityState(),R!=0&&(B.vis=R)));_.k("enable_unknown_lact_fix_on_html5")&&(_.Oz().resolve(_.fD),B.lact=
_.B5());return B};
_.p.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.p.setLoopStateEntityKey_=function(B){var R;this.loopStateEntityKey_=((R=this.getPlaylistLoopData_(B))==null?void 0:R.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 B=this,R=_.k("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||R)R=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.kx(_.dV,function(){B.onPlaylistNext();B.videoSkipJob_=0},R)};
_.p.cancelVideoSkip=function(){this.videoSkipJob_&&(_.dV.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.p.isInBackground_=function(){var B=window.document.visibilityState;return!(!B||B=="visible")};
_.p.onPlaylistIndex_=function(B){this.playlistComponent&&(B=this.playlistComponent.data.contents[B].playlistPanelVideoRenderer.navigationEndpoint,_.OI(this.hostElement,"yt-navigate",{endpoint:B,tempData:this.getTempData_(B)}))};
_.p.onPlayerStateChange_=function(B){if(B=B==0&&this.playlistComponent&&this.canAutoAdvance_)B=_.PL.getInstance(),B=!(B.autonavState_===3?B.autonavPauseReason_&&B.autonavPauseReason_.inputBoxFocus===!0:B.autonavState_===1&&B.disabledAutonavPauseReason_&&B.disabledAutonavPauseReason_.inputBoxFocus===!0);B&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.p.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.p.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.p.navigateToAutoplayWatchEndpoint_=function(B,R,V){var e=this.playlistComponent.data.currentIndex,X=this.getNumPlayableVideos_();B=="NORMAL"&&R=="autoplayVideo"&&e+1>=X&&V||!(B=this.getVideoEndpoint_(B,R))||(V=this.getTempData_(B,V),_.OI(this.hostElement,"yt-navigate",{endpoint:B,tempData:V}))};
_.p.getNumPlayableVideos_=function(){for(var B=0,R=_.h(this.playlistComponent.data.contents||[]),V=R.next();!V.done;V=R.next())V.value.playlistPanelVideoRenderer&&(B+=1);return B};
_.p.getVideoEndpoint_=function(B,R){if(this.autoplayData&&this.autoplayData.sets)for(var V=0,e=this.autoplayData.sets.length;V<e;V++){var X=this.autoplayData.sets[V];if(X.mode==B){if(X[R])return X[R];break}}else B=new _.H8("AutoplayData is undefined in playlist manager","Mode: "+B+" endpoint: "+R),_.KE(B)};
_.p.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.p.onPlaylistYtNavigate_=function(B){if(B.detail.endpoint){B.stopPropagation();var R=B.detail;R.tempData=this.getTempData_(B.detail.endpoint);_.OI(this.hostElement,"yt-navigate",R)}};
_.p.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.p.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.p.playlistLoopStateEntityChanged_=function(B){var R=this,V,e,X;return _.W(function(Y){if(Y.nextAddress==1){if(!B)return Y.return();V=B.state==="PLAYLIST_LOOP_STATE_ONE";return R.playerManager_?_.U(Y,R.playerManager_.getPlayerPromise(),3):Y.jumpTo(2)}Y.nextAddress!=2&&(e=Y.yieldResult,e.setLoopVideo(V));X=B.state==="PLAYLIST_LOOP_STATE_ALL";R.playlistComponent&&(R.playlistComponent.loopOn=X);_.b3(Y)})};
_.p.getPlaylistLoopData_=function(B){var R,V;if(B=B==null?void 0:(R=B.playlistButtons)==null?void 0:(V=R.menuRenderer)==null?void 0:V.topLevelButtons)for(R=_.h(B),V=R.next();!V.done;V=R.next())if(V=V.value,V.playlistLoopButtonRenderer)return V.playlistLoopButtonRenderer};
_.p.getLoopStateCommand_=function(B){var R=this.getPlaylistData(),V;R=((V=this.getPlaylistLoopData_(R))==null?void 0:V.states)||[];var e;B=(e=_.D(R[B?1:2],_.X_b))==null?void 0:e.button;var X;return(X=_.D(B,_.Ii))==null?void 0:X.command};
_.p.onPlayerLoopChange_=function(B){this.playlistLoopStateEntity_&&(B?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(B=this.getLoopStateCommand_(B))&&this.ytComponentBehavior.resolveCommand(B)};
_.p.onSleepTimerSettingsChanged_=function(B){this.canAutoAdvance_=B!=="End of video"};
iS.prototype.onPlaylistLoopStateEntityChanged=iS.prototype.onPlaylistLoopStateEntityChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],iS.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],iS.prototype,"ytPlayerListenerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],iS.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],iS.prototype,"loopStateEntityKey_",void 0);
_.r([_.E({selectorArgs:["loopStateEntityKey_"],selector:_.iNo}),_.Z("design:type",Object)],iS.prototype,"playlistLoopStateEntity_",void 0);_.r([_.XX("playlistLoopStateEntity_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iS.prototype,"onPlaylistLoopStateEntityChanged",null);iS=_.r([_.A({disableElementRegistration:!0,is:"yt-playlist-manager"})],iS);_.F(iS,"yt-playlist-manager",void 0,{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var Rnr,V5U=function(){if(Rnr!==void 0)return Rnr;var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Rnr=B};var sG=function(){var B=_.c.apply(this,arguments)||this;B.lastCallback=null;B.getAccountLinkPromises={};B.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);B.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return B};
_.l(sG,_.c);_.p=sG.prototype;_.p.getLocation=function(){return window.location.href};
_.p.getCompletionUrl=function(){return _.gT(this.getLocation())};
_.p.containsRedirectState=function(B){return(B=_.w2(_.MKu(B)))?(new URLSearchParams(B)).get("redirect_state")!==null:!1};
_.p.createGalConfig=function(B,R){var V=new bwN;B=V=R?this.getPopupOrRedirectSetting(V,_.vE("LINK_API_KEY"),_.vE("LINK_API_KEY_REDIRECT"),B):JkN(V,_.vE("LINK_API_KEY"));B.authUser=_.vE("SESSION_INDEX")||0;B.supportedFlows=new Set([4]);return B.build()};
_.p.getPopupOrRedirectSetting=function(B,R,V,e){this.isGalInteractionPopupMode(e)?(B.interactionMode=0,B=JkN(B,R)):(B.interactionMode=1,R=this.getCompletionUrl(),B.completionUrl=R,B=JkN(B,V));return B};
_.p.isGalInteractionPopupMode=function(B){if(this.redirectModeProviderAllowlist.has(B))switch(B){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.k("main_web_redirect_integration_riot");default:return!1}return!0};
_.p.getStatusEntityKeyForProviderId=function(B){return _.XF(B+":all","accountLinkStatusEntity")};
_.p.findNestedPropValue=function(B,R){var V=!1,e=null;JSON.stringify(B,function(X,Y){V||X!==R||(V=!0,e=Y);return V?null:Y});
return e};
_.p.findAccountLinkButtonViewModel=function(B,R){var V=null,e=!1;JSON.stringify(B,function(X,Y){e||Y.accountLinkStatusEntityKey!==R||Y.accountLinkStatusSecondaryEntityKey||(e=!0,V=Y);return e?null:Y});
return V};
_.p.executeLinkingSuccessOrFailureCommands=function(B,R,V){var e=null,X;(R==null?0:(X=R.url)==null?0:X.includes("account_sharing"))?e=R==null?void 0:R.response:e=R==null?void 0:R.response;(R=this.findAccountLinkButtonViewModel(e,B))?(B=V?this.findNestedPropValue(R,"onSuccessCommand"):this.findNestedPropValue(R,"onFailureCommand"))?_.Y8([B],this.hostElement):_.cE(Error("dl")):_.cE(Error("el`"+B))};
_.p.handleInitializeRequest=function(B,R){var V=this,e=$Km(this.createGalConfig(B,!0));this.containsRedirectState(this.getLocation())?IpN(B,e.config,e.galService).then(function(X){var Y=V.getStatusEntityKeyForProviderId(B);if(X.statusCode===1)R&&V.executeLinkingSuccessOrFailureCommands(Y,R,!0),X=V.getLocation().indexOf("#"),X!==-1&&window.history.pushState(null,"",V.getLocation().substring(0,X));else return R&&V.executeLinkingSuccessOrFailureCommands(Y,R,!1),Promise.reject(Error(X.statusMessage))}).catch(function(X){_.KE(X);
_.dn("gamingAccountLinkStatusChanged",{serviceId:B,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(X)}):this.getAccountLinkPromises[B]=e.startLinkingSession({serviceId:B})};
_.p.handleAccountLinkCommand=function(B){_.D(B,VEm)&&this.handleLinkRequest(_.D(B,VEm))};
_.p.handleLinkRequest=function(B){var R=this,V=B.thirdPartyId;if(V)if(this.isGalInteractionPopupMode(V)){var e=function(){R.closeAndFire("ytd-gaming-account-link-setting-renderer",B.onFailureCommand)},X=function(){R.closeAndFire("ytd-gaming-account-link-setting-renderer",B.onSuccessCommand)};
this.lastCallback=X;this.getAccountLinkPromises[V].then(function(Y){g17(Y).then(function(t){t.statusCode===1?X():e()})}).catch(function(){e()})}else this.getAccountLinkPromises[V].then(function(Y){g17(Y).then(function(t){if(t.statusCode!==1)return Promise.reject(Error(t.statusMessage))})}).catch(function(Y){_.KE(Y);
_.dn("gamingAccountLinkStatusChanged",{serviceId:V,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Y)})};
_.p.closeAndFire=function(B,R){_.oF(this.hostElement,"yt-close-popup-action",[B]);R&&_.Y8([R],this.hostElement)};
_.p.handleAccountUnlinkCommand=function(B){_.D(B,er7)&&this.handleUnlinkRequest(_.D(B,er7))};
_.p.handleUnlinkRequest=function(B){var R=this,V=B.thirdPartyId;if(V){var e=function(){R.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",B.onFailureCommand)},X=function(){R.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",B.onSuccessCommand)};
this.lastCallback=X;var Y=$Km(this.createGalConfig(V,!1));this.unlinkUserGal(Y,V).then(function(t){t.statusCode===1?X():e()}).catch(function(){e()})}};
_.p.unlinkUserGal=function(B,R){return B.deleteLink(R)};
_.p.handleLogAccountLinkingEventCommand=function(B){_.k("enable_gel_log_commands")&&_.D(B,XL6)&&(B=_.D(B,XL6).event)&&_.dn("gamingAccountLinkStatusChanged",B)};
_.mh.Object.defineProperties(sG,{template:{configurable:!0,enumerable:!0,get:function(){return V5U()}}});
_.r([_.v(_.Ro.YtOpenPopupBehavior),_.Z("design:type",Object)],sG.prototype,"ytOpenPopupBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],sG.prototype,"ytActionHandlerBehavior",void 0);sG=_.r([_.A({disableElementRegistration:!0,is:"ytd-third-party-manager"})],sG);_.F(sG,"ytd-third-party-manager",function(){return V5U()},{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var enr,Xun=function(){return enr!==void 0?enr:enr=document.createElement("template")};
document.head.appendChild(Xun().content);var pun,Y_e=function(){if(pun!==void 0)return pun;var B=document.createElement("template");_.a(B,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");B.content.insertBefore(Xun().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return pun=B};var hn2=_.$Q(["\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      "]),FV=function(){var B=_.c.apply(this,arguments)||this;B.currentPage=void 0;B.renderLoadingStateJobId=0;B.updatePageDataJobId=0;B.pageDisposeJobsets=new WeakMap;B.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"};B.applyZoomTransition=_.V_("web_page_transition_type")==="zoom";B.applySlideTransition=_.V_("web_page_transition_type")==="slide";B.TEST_ONLY=void 0;return B};
_.l(FV,_.c);_.p=FV.prototype;_.p.ready=function(){var B=_.Oz();B.addProvider({provide:_.$B,useValue:this});B.addProvider({provide:_.kWS,useValue:this})};
_.p.created=function(){this.pagePool=new xGn;this.contextSwitcher=new rpe};
_.p.attached=function(){_.OI(this.hostElement,"attached");var B=_.Oz().resolve(_.uj(_.H$));B&&(this.contextSwitcher.JSC$17500_networkService_=B);this.viewTransitionManager=_.Oz().resolve(_.uj(_.yO));this.setupPageTransitionAnimation()};
_.p.getPageOffset=function(B){return B.getScrollTop()};
_.p.setPageOffset=function(B,R){try{B.setScrollTop(R)}catch(V){}};
_.p.setPageOffsetForNavigation=function(B,R){_.OI(this.hostElement,"yt-navigate-set-page-offset",{page:B,offset:R===void 0?0:R})};
_.p.pauseActiveContext=function(){var B=this.contextSwitcher;B.activeContext_&&B.activeContext_.pause()};
_.p.getModuleNameForType=function(B){return B==="watch"?_.k("kevlar_watch_fixie")?"watchFixie":_.k("kevlar_watch_grid")?"watchGrid":"watchFlexy":B==="shorts"||B==="search"?B:"browse"};
_.p.attachPage=function(B){var R,V=!_.k("pc_is_attached_ks")&&(B==null?void 0:(R=B.polymerController)==null?void 0:R.isAttached);if(!B.isAttached&&!V)try{_.w(this.hostElement).appendChild(B)}catch(X){var e;_.KE(new _.H8("Error attaching page element for component",{origin:(e=this.currentPage)==null?void 0:e.is,component:B.is}))}};
_.p.setActivePage=function(B){var R=this,V=!1,e=function(){var X=R.isOnWatch(),Y=R.currentPage;if(B)if(B!==R.currentPage){Y&&(Y.hidden=!0,Y.active=!1,Y.removeAttribute("role"));R.currentPage=B;var t,b=_.bi((t=R.data)==null?void 0:t.endpoint);Y&&_.OI(R.hostElement,"yt-page-type-changed",{oldPageType:Y.is,newPageType:B.is,newPageSubtype:b});_.QL().dispatch(_.or({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:B.is}));_.QL().dispatch(_.or({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:b||""}));B.hidden=
!1;R.attachPage(B);B.active=!0;B.setAttribute("role","main");Y&&R.setPageOffsetForNavigation(B,0);_.k("kevlar_remove_page_dom_on_switch")&&!X&&Y&&_.w(R.hostElement).removeChild(Y)}else V=!0;else X=new _.H8("Unable to set active page",Y?Y.is:"unknown origin",(b=R.data)==null?void 0:b.endpoint),_.Tn(X)};
this.viewTransitionManager?J3r(this.viewTransitionManager,e,this.viewTransitionConfigForSetActivePage(this.currentPage,B)):e();return V};
_.p.viewTransitionConfigForSetActivePage=function(B,R){return _.k("web_thumbnail_to_watch_transition")&&(B==null?void 0:B.is)==="ytd-browse"&&this.isWatchPage(R)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(B==null?void 0:B.is)==="ytd-browse"&&(R==null?void 0:R.is)==="ytd-browse"&&B!==R?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.p.updatePageData=function(B){var R=this,V=this.data;this.updatePageDataJobId&&_.dV.cancelJob(this.updatePageDataJobId);this.data=B;return new _.be(function(e){var X=function(){B.filler?R.performDataUpdate(B,V):x9n(function(){R.performDataUpdate(B,V)});
var J=_.Ep();_.Qj(J,"cr")||J.processSignal("cr");e()},Y=function(){B&&B.page==="watch"?R.updatePageDataJobId=_.kx(_.dV,X):X()};
if(_.k("kevlar_enable_mss_page_modules_client")&&B){var t=_.Oz().resolve(_.sT),b=R.getModuleNameForType(B.page);(t=W3o(t,[b]))?t.then(Y):Y()}else Y()})};
_.p.isDownloadsPage=function(B){var R,V;return(B==null?void 0:(R=B.endpoint)==null?void 0:(V=R.browseEndpoint)==null?void 0:V.browseId)==="FEdownloads"};
_.p.setPlayerSyncInterval=function(B){var R;return _.W(function(V){if(V.nextAddress==1)return _.U(V,_.Oz().resolve(_.B7),2);R=V.yieldResult;R.setUpPositionSyncInterval(B);_.b3(V)})};
_.p.performDataUpdate=function(B,R){_.k("kevlar_early_popup_close")||_.oF(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var V=!B.filler;V&&(_.zp("lps"),_.k("config_age_report_killswitch")||Bnm());var e=BV(B),X,Y=!1;if(_.k("kevlar_remove_page_dom_on_switch")){var t=R&&BV(R);e===t&&(X=this.getCurrentPage())}X||(X=L1(this.pagePool,e));V&&KRN(this.pagePool.elementPoolPopulator,e);V&&!this.renderLoadingStateJobId&&(Y=this.setActivePage(X));if(X){t=e==="watch";var b=
e==="shorts",J=e==="learning_journey_watch";_.k("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(X);if(t||b||J)X.playerData=B.playerResponse;if(b){B.reelWatchSequenceResponse?X.reelWatchSequenceResponse=B.reelWatchSequenceResponse:B.cachedReelWatchSequenceResponse&&(X.reelWatchSequenceResponse=B.cachedReelWatchSequenceResponse);X.currentEndpoint=B.endpoint;var G;X.isPreviousPageShorts=!!(R==null?0:(G=R.endpoint)==null?0:G.reelWatchEndpoint);B.cachedReelWatchSequenceResponse=
B.reelWatchSequenceResponse||B.cachedReelWatchSequenceResponse||(R==null?void 0:R.cachedReelWatchSequenceResponse);_.k("web_enable_cached_reel_sequence_fix")?B.cachedReelWatchSequenceResponse&&(X.cachedReelWatchSequenceResponse=B.cachedReelWatchSequenceResponse):X.cachedReelWatchSequenceResponse=B.cachedReelWatchSequenceResponse}G=this.isDownloadsPage(B);var y=this.isDownloadsPage(R);G&&!y?this.setPlayerSyncInterval(6E5):!G&&y&&this.setPlayerSyncInterval();_.k("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(B,X,V,t,b,J);jOr(_.Oz().resolve(_.An),R,B);_.ZF(_.Oz().resolve(_.fD));_.k("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(X);V?(V=typeof X.loadPage,V==="function"?(X.pageContext=gZe(this.contextSwitcher,X,X.data!==B.response),V=function(){X.loadPage(B.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&X.is==="ytd-browse"&&Y&&this.isDifferentBrowseId(B==null?void 0:B.endpoint,R==null?void 0:R.endpoint)?
this.applySlideTransition?J3r(this.viewTransitionManager,V,{transitionName:"slide"}):J3r(this.viewTransitionManager,V,{transitionName:"zoom"}):V()):_.v5(new _.H8("b/38014653 ",[e,
X.is,X.nodeName,V,X.isAttached,R&&BV(R),this.hostElement.children.length])),_.zp("pdl")):(X.hidden=!0,B.response.filler=!0,X.data=B.response,this.attachPage(X));_.OI(this.hostElement,"yt-page-data-updated",{pageType:e})}_.kD(_.dV,function(){_.k("logging_avoid_blocking_during_navigation")&&_.pKx().transition("none");var S=pPn(),M=X;if(B){var f=cEe(B),z=AEj(B),T;a:{if(B.playerResponse){var L=B.playerResponse,Q;if((T=L.auxiliaryUi)==null?0:(Q=T.messageRenderers)==null?0:Q.upsellDialogRenderer){T=L.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(B.response&&(T=B.response,(L=T.overlay)==null?0:L.upsellDialogRenderer)){T=T.overlay.upsellDialogRenderer;break a}T=void 0}var q;var m;Q=(q=B.playerResponse)==null?void 0:(m=q.auxiliaryUi)==null?void 0:m.messageRenderers;q=(Q==null?void 0:Q.enforcementMessageViewModel)||(Q==null?void 0:Q.bkaEnforcementMessageViewModel);q=(q==null?void 0:q.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?q:void 0;var g;a:{if(B.response&&(m=B.response,(g=m.overlay)==null?0:g.commandWrapperPromoRenderer)){g=
m.overlay.commandWrapperPromoRenderer;break a}g=void 0}XPr(S,f,z,T,q,g,M)}})};
_.p.preparePrefetchRequest=function(B,R,V,e,X,Y){var t,b,J,G,y,S,M,f,z,T,L,Q,q,m,g;return _.W(function(Vu){if(Vu.nextAddress==1)return!V||!(e||X||Y)||_.k("kevlar_disable_background_prefetch")&&_.Qh(_.RM_)()===0?Vu.return():(t=_.CD(R))?_.U(Vu,t.getPlayerPromise(),2):Vu.return();b=Vu.yieldResult;J=_.Oz().resolve(_.uj(_.H$));if(!J)return Vu.return();if(X)return G=_.hn(_.eS),ice(G,(y=B.endpoint)==null?void 0:y.reelWatchEndpoint,R.reelWatchSequenceResponse,b,J),Vu.return();f=(S=B.response)==null?void 0:
(M=S.responseContext)==null?void 0:M.webResponseContextExtensionData;if(!f)return Vu.return();q=(z=B.response)==null?void 0:(T=z.contents)==null?void 0:(L=T.twoColumnWatchNextResults)==null?void 0:(Q=L.autoplay)==null?void 0:Q.autoplay;m=_.Oz().resolve(_.Ky);g=_.hn(_.eS);sTi(g,f,b,J,m,q);_.b3(Vu)})};
_.p.movePlayerToWatch=function(B){var R=this,V,e;return _.W(function(X){V=L1(R.pagePool,"watch");e=V.getPlayerContainer();B.appendTo(e);_.b3(X)})};
_.p.movePlayerToShorts=function(B){var R=this,V,e,X;return _.W(function(Y){V=L1(R.pagePool,"shorts");e=V.getPlayerContainer();(X=B)==null||X.appendTo(e,void 0,!0);_.b3(Y)})};
_.p.getPlayerFromWatch=function(){var B=L1(this.pagePool,"watch");return _.CD(B)};
_.p.getPlayerFromShorts=function(){var B=L1(this.pagePool,"shorts");return _.CD(B)};
_.p.startLoadingWatch=function(){var B=L1(this.pagePool,"watch");this.renderLoadingStateJobId?(_.dV.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(B)};
_.p.startLoadingShorts=function(){var B=L1(this.pagePool,"shorts");this.setActivePage(B)};
_.p.startLoadingLearningJourney=function(){var B=L1(this.pagePool,"learning_journey_watch");this.setActivePage(B)};
_.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 B;return((B=this.currentPage)==null?void 0:B.is)==="ytd-shorts"};
_.p.isWatchPage=function(B){return!!B&&(B.is==="ytd-watch-flexy"||B.is==="ytd-watch-fixie"||B.is==="ytd-watch-grid")};
_.p.preparePage=function(B,R){var V=this,e=function(){var t=V.pagePool.preparePage(B,V.currentPage,R);t&&V.attachPage(t)},X=function(t){_.Iq(t,R);
_.KE(t)};
if(_.k("kevlar_enable_mss_page_modules_client")){var Y=this.getModuleNameForType(B);if(Y=W3o(_.Oz().resolve(_.sT),[Y])){Y.then(e.bind(this)).catch(X.bind(this));return}}try{e()}catch(t){X(t)}};
_.p.lazyPrepareCriticalPages=function(B,R){B=_.bi(R)||B;_.k("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(B).then(this.maybePrepareWatchPage.bind(this,B)):this.maybePrepareWatchPage(B)};
_.p.maybePrepareWatchPage=function(B){B!=="watch"&&_.kD(_.dV,this.preparePage.bind(this,"watch"))};
_.p.downloadPageModules=function(B){B=this.getModuleNameForType(B);var R=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);R.delete(B);var V=_.Oz().resolve(_.sT);V.JSC$16236_loadModules(B);return V.JSC$16236_loadModules.apply(V,_.MI(R))};
_.p.renderPageLoadingState=function(B,R){this.preparePage(B,R);var V=L1(this.pagePool,B);V.loadingData&&(V.loadingData.endpoint=R);V.loading=!0;this.setActivePage(V);B==="watch"&&_.OI(this.hostElement,"yt-guide-close")};
_.p.prepareForNavigation=function(B,R){var V=this;if(this.currentPage&&this.data){var e=_.bi(R)||B;this.destinationPageType=e;BV(this.data)==e&&_.OI(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(B==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.dV.cancelJob(this.renderLoadingStateJobId);_.Oz().resolve(_.An).deactivate(R);var X=this.data;this.renderLoadingStateJobId=_.db(_.dV,function(){if(V.data!=X){var Y=L1(V.pagePool,B);V.setActivePage(Y)}else V.renderPageLoadingState(B,
R);V.renderLoadingStateJobId=0},150)}};
_.p.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var B=new _.gM(1);this.currentPage.pageDisposeJobs.forEach(function(R){_.Z2(B,R)});
this.pageDisposeJobsets.set(this.currentPage,B)}};
_.p.flushPageDisposeJobset=function(B){var R=this.pageDisposeJobsets.get(B);R&&(R.flushJobs(),this.pageDisposeJobsets.delete(B))};
_.p.onYtStopOldPlayer=function(B,R){R=R===void 0?!1:R;var V,e=_.eC("kevlar_new_stop_old_player_logic_pages");if(_.k("kevlar_check_current_page_on_stop_old_player")&&(e.length===0||this.currentPage&&e.includes(this.currentPage.is)))if(this.data&&(V=BV(this.data)),BV(B)===V&&this.currentPage&&BV(this.currentPage.data)!==V)var X=_.CD(this.currentPage);else V=BV(this.data),X=L1(this.pagePool,V),X=_.CD(X);else this.data&&(V=BV(this.data),X=L1(this.pagePool,V),X=_.CD(X));if(X)if(B=BV(B),e=L1(this.pagePool,
B),e=_.CD(e),X==e)R&&!_.k("kevlar_disable_preemptive_player_reset")&&X.resetForNewPlayback();else if(R=V==="watch"&&B!=="watch",!R||B==="shorts"||_.FVJ()&&!nzi(this.data)&&B!=="yts-products"&&B!="mini_app"&&B!="playables")V=_.Oz().resolve(_.An),R&&V.isMiniplayerActive()&&V.pipController.getWindow()||X.stop()};
_.p.setupPageTransitionAnimation=function(){var B=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){PV(this.viewTransitionManager,"slide",{beforeTransition:function(){B.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){B.hostElement.style.viewTransitionName=""}});
PV(this.viewTransitionManager,"zoom",{beforeTransition:function(){B.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){B.hostElement.style.viewTransitionName=""}});
var R=_.RC("web_page_transition_exit_ms"),V=_.RC("web_page_transition_wait_ms"),e=_.RC("web_page_transition_enter_ms");if(!isNaN(R)||!isNaN(V)||!isNaN(e))if(R=etm(hn2,R,V,e))V=document.createElement("style"),V.textContent=_.lYp(R),document.head.appendChild(V)}};
_.p.isDifferentBrowseId=function(B,R){B=_.D(B,_.Jz);R=_.D(R,_.Jz);return(B==null?void 0:B.browseId)!==(R==null?void 0:R.browseId)};
_.mh.Object.defineProperties(FV,{template:{configurable:!0,enumerable:!0,get:function(){return Y_e()}}});
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],FV.prototype,"ytActionHandlerBehavior",void 0);FV=_.r([_.A({disableElementRegistration:!0,is:"ytd-page-manager"})],FV);_.F(FV,"ytd-page-manager",function(){return Y_e()},{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var r9=function(B,R,V){V=V===void 0?!1:V;_.Hn.call(this);this.draggableElement=B;this.callbacks=R;this.allowClicks=V;this.dragOccurred=!1;this.internalDragger=new _.Ee(this.draggableElement);this.dragDelay=new _.Pw(this.delayedDrag.bind(this));t5j(this);this.allowClicks&&(_.X85(this.internalDragger,5),B.addEventListener("click",_.Bc(this,this.validateClick),{capture:!0}))};
_.l(r9,_.Hn);var t5j=function(B){_.G2(B.internalDragger,"earlycancel",function(){B.allowClicks&&(B.dragOccurred=!1)});
_.G2(B.internalDragger,"start",function(R){var V,e;(e=(V=B.callbacks).onStartDrag)==null||e.call(V,R);!R.defaultPrevented&&B.allowClicks&&(B.dragOccurred=!0)});
_.G2(B.internalDragger,"beforedrag",function(R){R.preventDefault();B.lastOffset=new _.fx(R.clientX-B.internalDragger.startX,R.clientY-B.internalDragger.startY);B.dragDelay.start()});
_.G2(B.internalDragger,"end",function(){B.dragDelay.stop();var R,V;(V=(R=B.callbacks).onEndDrag)==null||V.call(R);B.lastOffset=void 0})};
r9.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
r9.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Bc(this,this.validateClick),{capture:!0})};
r9.prototype.validateClick=function(B){this.dragOccurred&&(this.dragOccurred=!1,B.stopPropagation(),B.preventDefault())};var g9=function(B,R){_.Hn.call(this);this.JSC$17701_resizeContainer=B;this.callbacks=R;this.aspectRatio=16/9;this.JSC$17701_resizers=[];B=_.h(this.JSC$17701_resizeContainer.children);for(R=B.next();!R.done;R=B.next())WVe(this,R.value)};
_.l(g9,_.Hn);g9.prototype.disposeInternal=function(){for(var B=_.h(this.JSC$17701_resizers),R=B.next();!R.done;R=B.next())R.value.dispose();B=_.h(this.JSC$17701_resizeContainer.children);for(R=B.next();!R.done;R=B.next())R.value.setAttribute("disabled","");this.JSC$17701_resizers.length=0};
g9.prototype.setSize=function(B){this.currentMiniplayerSize=B};
g9.prototype.setAspectRatio=function(B){this.aspectRatio=B};
g9.prototype.update=function(B,R){for(var V=_.h(this.JSC$17701_resizeContainer.children),e=V.next();!e.done;e=V.next()){e=e.value;var X=e.getAttribute("alignment");_.ui(e,"disabled",X===B||X===R)}};
var WVe=function(B,R){var V=R.getAttribute("alignment"),e=new r9(R,{onStartDrag:function(X){if(R.hasAttribute("disabled"))X.preventDefault();else{B.dragStartSize=B.currentMiniplayerSize;var Y,t;(t=(Y=B.callbacks).onStartResize)==null||t.call(Y)}},
onDrag:function(X){if(B.dragStartSize){V!=="north"&&V!=="west"||X.scale(-1);var Y=V==="north"||V==="south";X=Y?X.y:X.x;Y&&B.aspectRatio>=1?X*=B.aspectRatio:!Y&&B.aspectRatio<1&&(X/=B.aspectRatio);B.callbacks.onResize(B.dragStartSize+X)}}});
B.JSC$17701_resizers.push(e)};var bL6,JUz=function(){return bL6!==void 0?bL6:bL6=document.createElement("template")};
document.head.appendChild(JUz().content);var j$4;var UaU=_.sx(function(B){var R=_.Zh(),V=B.onDrag,e=B.onDragStart,X=B.onDragEnd,Y=_.ip(B,{allowClicks:!1,dragThreshold:5}),t=Y.dragThreshold,b=Y.allowClicks;B=Y.children;Y=Y.className;var J=void 0,G=void 0,y=new _.fx(0,0),S=!1;_.zM(function(){J=new _.Ee(R.value);G=new _.Pw(f);M(J,G);if(b()){_.X85(J,t());var T;(T=R.value)==null||T.addEventListener("click",z,{capture:!0})}_.aK(function(){var L;(L=J)==null||L.dispose();if(b()){var Q;(Q=R.value)==null||Q.removeEventListener("click",z,{capture:!0})}})});
var M=function(T,L){_.G2(T,"earlycancel",function(){b()&&(S=!1)});
_.G2(T,"start",function(Q){e==null||e(Q);Q.defaultPrevented||b()&&(S=!0)});
_.G2(T,"beforedrag",function(Q){J&&G&&(Q.preventDefault(),y=new _.fx(Q.clientX-J.startX,Q.clientY-J.startY),G.start())});
_.G2(T,"end",function(){L.stop();X==null||X();y=new _.fx(0,0)})},f=function(){y&&V(y)},z=function(T){S&&(S=!1,T.stopPropagation(),T.preventDefault())};
return _.N("yt-draggable",{el:R,class:_.XE("ytDraggableComponentHost",Y)},B)},"eg");var Ntz=_.sx(function(B){var R=_.h(_.WU(0,void 0,"CvAwBd")),V=R.next().value,e=R.next().value;R=function(X){var Y={},t={};return _.N(UaU,{className:_.XE("ytdMiniplayerComponentResizer",(Y.ytdMiniplayerComponentResizerDisabled=function(){return X===B.horizontalAlignment()||X===B.verticalAlignment()},Y.ytdMiniplayerComponentResizerNorth=X==="north",Y.ytdMiniplayerComponentResizerEast=X==="east",Y.ytdMiniplayerComponentResizerSouth=X==="south",Y.ytdMiniplayerComponentResizerWest=X==="west",Y)),
onDragStart:function(){e(B.currentMiniplayerSize());if(B.onResizeStart)B.onResizeStart()},
onDrag:function(b){X!=="north"&&X!=="west"||b.scale(-1);var J;b=(J=X==="north"||X==="south")?b.y:b.x;var G=B.currentAspectRatio();J&&G>=1?b*=G:!J&&G<1&&(b/=G);J=b;B.onResize(V()+J)}},_.N("div",{class:_.XE("ytdMiniplayerComponentResizerCorner",(t.ytdMiniplayerComponentResizerNorthCorner=X==="north",t.ytdMiniplayerComponentResizerEastCorner=X==="east",t.ytdMiniplayerComponentResizerSouthCorner=X==="south",t.ytdMiniplayerComponentResizerWestCorner=X==="west",t))}))};
return _.N("div",{class:"ytdMiniplayerComponentResizers"},R("north"),R("east"),R("south"),R("west"))},"fg");var GY7=16/9,yUi=_.sx(function(){var B=_.Zh(),R=_.h(_.WU(new _.Yl(NaN,NaN),void 0,"UYv80c")),V=R.next().value,e=R.next().value;R=_.h(_.WU(!1,void 0,"L9O3Tc"));var X=R.next().value,Y=R.next().value;R=_.h(_.WU(!1,void 0,"nw5gMc"));var t=R.next().value,b=R.next().value;R=_.h(_.WU(!1,void 0,"X4YUZc"));var J=R.next().value,G=R.next().value;R=_.h(_.WU(!1,void 0,"jOjwyc"));var y=R.next().value,S=R.next().value;R=_.h(_.WU(!1,void 0,"EmWIj"));var M=R.next().value,f=R.next().value;R=_.h(_.WU(!1,void 0,"pdZbNb"));
var z=R.next().value,T=R.next().value;R=_.h(_.WU(GY7,void 0,"vdAiue"));var L=R.next().value,Q=R.next().value,q=_.h(_.WU(!1,void 0,"agiiqf"));R=q.next().value;var m=q.next().value;q=_.h(_.WU(!1,void 0,"z3vkHe"));var g=q.next().value,Vu=q.next().value;q=_.h(_.WU(void 0,void 0,"FMEjz"));var n=q.next().value,Yd=q.next().value;q=_.h(_.WU(_.vE("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var kd=q.next().value,a5=q.next().value;q=_.h(_.WU("south",void 0,"R5stie"));var lo=q.next().value,io=q.next().value;
q=_.h(_.WU(400,void 0,"CJeuke"));var vd=q.next().value,cd=q.next().value,ES=_.Oz().resolve(_.An).miniplayerPropSignalMap[0],$d=ES.data,Eo=ES.externalPlaylistData;q=ES.toastData;var GG=ES.playabilityStatus,eJ=ES.isReadyToResume,pR=ES.isDisabled,d4=ES.watchWhile,W2=ES.playerVe,By=ES.expandVe,DY=ES.closeVe,hA=ES.readyToResumeVe,fR=ES.readyToResumeCloseVe,Qv=ES.repositionVe,i4=ES.resizeVe;ES=_.h(_.J3(eJ));var TG=ES.next().value,ZS=ES.next().value,$b=!1,DS=!1,CZ;_.zM(function(){e(_.N1());B.value.addEventListener("animationend",
function(so){so.target===B.value&&(f(!1),T(!1))});
Y$N(B.value)});
_.gn("yt-window-resized",function(so){so&&e(so)});
var k5=function(){CZ&&Q(CZ.getVideoAspectRatio())},tr=function(){if(CZ){var so=CZ.getPlayerState()===1;
TG()&&so&&ZS(!1)}},l_=function(){var so=By();
if(so){var we=_.TE(3);we&&_.iF(we,so)}},S2=function(){var so=DY(),we=fR();
so&&_.iF(_.TE(3),so);eJ()&&we&&_.iF(_.TE(3),we)};
_.gn("yt-activate-miniplayer",function(so){var we;return _.W(function(Z7){if(Z7.nextAddress==1)return X()?Z7.return():_.U(Z7,(we=_.Oz().resolve(_.An).getPlayerElement())==null?void 0:we.getPlayerPromise(),2);CZ=Z7.yieldResult;if(!CZ)return Z7.return();!g()&&_.k("kevlar_watch_while_v2")&&(io(so&&!_.k("kevlar_watch_while_bottom_align")?"north":"south"),a5(_.vE("HTML_DIR")==="rtl"?"west":"east"));var Po=CZ;Po.addEventListener("onVideoDataChange",k5);Po.addEventListener("onStateChange",tr);Po.addEventListener("onExpandMiniplayer",
l_);Po.addEventListener("onCloseMiniplayer",S2);Q(CZ.getVideoAspectRatio());Y(!0);f(!0);_.b3(Z7)})});
_.gn("yt-deactivate-miniplayer",function(so){return _.W(function(we){if(!X())return we.return();Y(!1);ZS(!1);T(so);f(!0);if(CZ){var Z7=CZ;Z7.removeEventListener("onVideoDataChange",k5);Z7.removeEventListener("onStateChange",tr);Z7.removeEventListener("onExpandMiniplayer",l_);Z7.removeEventListener("onCloseMiniplayer",S2)}_.b3(we)})});
var tD=function(){var so=!!$d(),we=M(),Z7=d4();return(Z7===void 0?0:Z7)&&_.k("kevlar_watch_while_modern")?!1:so||we},J$=function(){var so;
return!((so=Eo())==null||!so.contents)},s4=function(){var so=vd();
var we=V();we=Math.min(Math.min(we.width,we.height)-32,720);var Z7=L(),Po=tD(),dz=J$()&&t(),dk=Math.min(so,we);so=new _.Yl(192,Po?116:192);Z7=iJN(new _.Yl(dz?GY7:Z7,1),new _.Yl(dk,Po?dk-76:dk));so.width<=Z7.width&&so.height<=Z7.height||(AM4(Z7,so),Z7.width=Math.min(Z7.width,we),Z7.height=Math.min(Z7.height,we));return new _.Yl(Z7.width,_.IH(192,Z7.height+Jsn(Po,dz),720))},kb=function(){var so=s4(),we=tD(),Z7=J$()&&t();
return new _.Yl(so.width,so.height-Jsn(we,Z7))},Dh=function(){var so=function(we){we.target===B.value&&y()&&(S(!1),B.value.removeEventListener("transitionend",so))};
B.value.addEventListener("transitionend",so);S(!0);b(!t())};
_.lJ(function(){var so=W2(),we=_.TE(3),Z7=_.wT(3);if(we&&Z7&&so){_.EV(we,Z7,so);Z7=Qv();var Po=i4(),dz=By(),dk=DY(),gV=fR();dz&&dk&&gV&&(_.QD(we,so,[dz,dk,gV]),_.cz(we,[dz,dk]));Z7&&Po&&_.QD(we,so,[Z7,Po])}});
_.lJ(function(){var so=TG(),we=hA();if(we&&(so===void 0?0:so)){so=_.TE(0);var Z7=_.wT(0);so&&Z7&&(_.EV(so,Z7,we),_.cz(so,[we]))}});
ES={};return _.N("ytd-miniplayer",{el:B,class:_.XE("ytdMiniplayerComponentHost",(ES.ytdMiniplayerComponentVisible=function(){return X()||M()},ES.ytdMiniplayerComponentAnimatingSnap=J,ES.ytdMiniplayerComponentAnimatingPlaylistExpand=y,ES.ytdMiniplayerComponentAnimatingFade=M,ES),function(){if(M()){var so=lo();
var we=X(),Z7=z();so=we?so==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Z7?so==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":so==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else so="";return so}),
style:_.jQ({top:function(){return lo()==="north"?"16px":""},
right:function(){return kd()==="east"?"16px":""},
bottom:function(){return lo()==="south"?"16px":""},
left:function(){return kd()==="west"?"16px":""},
width:function(){return s4().width+"px"},
height:function(){return s4().height+"px"},
transform:function(){var so=n();return so?"translate("+so.x+"px, "+so.y+"px)":""}})},_.N("div",{class:"ytdMiniplayerComponentContent"},_.N(UaU,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(so){var we=b7j(kd(),lo(),V(),s4(),n()),Z7=kb();Math.abs(so.clientY-(we.y+Z7.height))>15?(m(!0),so=_.TE(3),we=Qv(),$b||($b=!0,so&&we&&_.cz(so,[we])),so&&we&&_.iF(so,we)):so.preventDefault()},
onDrag:function(so){Yd(so)},
onDragEnd:function(){var so=hAj(b7j(kd(),lo(),V(),s4(),n()),V(),s4()),we=WPN(kd(),lo(),V(),s4()),Z7=WPN(so.horizontalAlignment,so.verticalAlignment,V(),s4());Z7=new _.fx(Z7.x-we.x,Z7.y-we.y);var Po;we=we.y+(((Po=n())==null?void 0:Po.y)||0)+s4().height/2;var dz=function(){kd()===so.horizontalAlignment&&lo()===so.verticalAlignment||Vu(!0);a5(so.horizontalAlignment);io(so.verticalAlignment);Yd(void 0)},dk=function(gV){gV.target===B.value&&J()&&(G(!1),dz(),B.value.removeEventListener("transitionend",
dk))};
m(!1);lo()==="south"&&we>V().height?(dz(),_.Oz().resolve(_.An).close()):(B.value.addEventListener("transitionend",dk),G(!0),Yd(Z7))}},_.N(_.H,{cond:X,
then:function(){return _.N(_.Hf4,{isDisabled:pR,playabilityStatus:GG,size:kb})}}),_.N(_.H,{cond:tD,
then:function(){return _.N(_.yDe,{isReadyToResume:TG,data:$d,expanded:t,onExpandClick:Dh,playlistData:Eo})}}),_.N(_.H,{cond:R,
then:function(){return _.N("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.N(_.H,{cond:function(){return J$()&&t()||y()},
then:function(){return _.N(_.gY2,{className:"ytdMiniplayerComponentPlaylistPanel",data:Eo,hideHeaderText:!0,withinMiniplayer:!0})}}),_.N("div",{class:"ytdMiniplayerComponentToast"},_.N(_.Mzr,{toastData:q}))),_.N(Ntz,{onResize:function(so){cd(_.IH(192,so,720))},
onResizeStart:function(){var so=_.TE(3),we=i4();DS||(DS=!0,so&&we&&_.cz(so,[we]));so&&we&&_.iF(so,we)},
currentAspectRatio:L,currentMiniplayerSize:vd,horizontalAlignment:kd,verticalAlignment:lo}))},"gg");_.k("ytd_miniplayer_to_wiz")&&_.mR(yUi,"ytd-miniplayer",{});_.mR(_.Mzr,"ytd-miniplayer-toast",{props:{toastData:_.qq}});var S_o=16/9,HL4=new _.Yl(400,400/S_o),C1=function(){var B=_.c.apply(this,arguments)||this;B.active=!1;B.hasNoData=!1;B.enabled=!1;B.expanded=!1;B.readyToResume=!1;B.isDisabled=!1;B.externalPlaylistData={};B.premiumBadges=[];B.watchWhile=!1;B.playerState=null;B.verticalAttachment="south";B.horizontalAttachment=_.vE("HTML_DIR")==="rtl"?"west":"east";B.isAnimatingFade=!1;B.isAnimatingSnap=!1;B.isAnimatingExpand=!1;B.isDragging=!1;B.playerHidden=!1;B.hasPlaylistData=!1;B.closed=!1;B.expandedClosed=!1;
B.isForReadyToResume=!1;B.watchResponse=null;B.player=null;B.playerVe=null;B.expandVe=null;B.closeVe=null;B.readyToResumeCloseVe=null;B.disabledInitialStateIsPlaying=!1;B.PLAYER_EVENTS=new Map;B.aspectRatio=S_o;B.currentMiniplayerSize=400;B.userSetSize=!1;B.userSetPosition=!1;B.userHasDragged=!1;B.maxMiniplayerSize=720;B.transform=new _.fx(0,0);B.windowDimensions=new _.Yl(NaN,NaN);B.dimensions=HL4;B.screenLayer=3;B.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return B};
_.l(C1,_.c);_.p=C1.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.registerViewTransitionTasks()};
_.p.ready=function(){this.setUpDragging();this.setUpResizing()};
_.p.attached=function(){this.onWindowResized(_.N1());this.hostElement.addEventListener("animationend",_.Bc(this,this.resetFadingAnimation))};
_.p.detached=function(){this.hostElement.removeEventListener("animationend",_.Bc(this,this.resetFadingAnimation))};
_.p.resetFadingAnimation=function(B){B.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 B=_.TE(this.screenLayer);this.readyToResumeCloseVe&&B&&_.cz(B,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.p.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var B=_.TE(0),R=_.wT(0);B&&R&&(_.EV(B,R,this.readyToResumeVe),_.cz(B,[this.readyToResumeVe]))}};
_.p.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var B=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=B===-1||B===1||B===3)&&this.player.pauseVideo()}};
_.p.activate=function(B,R){R=R===void 0?!1:R;var V=this,e;return _.W(function(X){if(X.nextAddress==1)return V.setInitialActivatePositioning(R),V.enabled=!0,V.active=!0,V.expanded=!1,V.closed=!1,V.expandedClosed=!1,V.watchWhileHidden||(V.isAnimatingFade=!0),_.Oz().resolve(_.Ky).setPlaylistComponent(V.JSC$17712_playlistPanel),B.appendTo(V.playerContainer),_.U(X,B.getPlayerPromise(),2);e=X.yieldResult;e.setSizeStyle(!1,!0);V.ytPlayerListenerBehavior.listenToPlayerEvents(e,V.PLAYER_EVENTS);V.player=e;
V.watchWhile&&_.k("kevlar_watch_while_minimum_size")&&V.setMiniplayerSize(192);V.setAspectRatio(V.player.getVideoAspectRatio());V.onIsDisabledChanged();_.b3(X)})};
_.p.setInitialActivatePositioning=function(B){if(!this.userSetPosition&&_.k("kevlar_watch_while_v2")){this.verticalAttachment=B&&!_.k("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.vE("HTML_DIR")==="rtl"?"west":"east";var R;(R=this.JSC$17712_resizers)==null||R.update(this.horizontalAttachment,this.verticalAttachment)}};
_.p.deactivate=function(B,R){var V=this;return _.W(function(e){if(!V.active)return e.return();B||(V.expanded?V.expandedClosed=!0:V.closed=!0);V.active=!1;V.isForReadyToResume=!1;R&&_.k("kevlar_watch_while_counterfactual")||(V.isAnimatingFade=!0);V.player&&V.ytPlayerListenerBehavior.unlistenFromPlayerEvents(V.player,V.PLAYER_EVENTS);V.player=null;_.b3(e)})};
_.p.onMetadataTap=function(B){this.expandVe&&(B===void 0||B)&&(B=_.TE(this.screenLayer))&&_.iF(B,this.expandVe);_.Sa(_.Oz().resolve(_.An))};
_.p.onDisabledTap=function(B){B.target===_.w(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.p.onPlaylistExpandTap=function(B){if(this.hasPlaylistData){B=_.Az(B)||[];B=_.h(B);for(var R=B.next();!R.done;R=B.next()){R=R.value;if(R===this.hostElement)break;if(R.classList&&R.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.p.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Bc(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.p.animatedResizePlaylist=function(B){B.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Bc(this,this.animatedResizePlaylist)))};
_.p.getExpandIcon=function(B){return B?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.p.onPlayerVideoDataChange=function(){var B,R=(B=this.player)==null?void 0:B.getVideoAspectRatio();R&&R!==this.aspectRatio&&this.setAspectRatio(R)};
_.p.setAspectRatio=function(B){if(this.active){this.aspectRatio=B;this.updateDimensionsAndResize();var R;(R=this.JSC$17712_resizers)==null||R.setAspectRatio(B)}};
_.p.updateDimensionsAndResize=function(){var B=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),R=this.expanded?S_o:this.aspectRatio,V=new _.Yl(192,this.showInfoBar?116:192);B=iJN(new _.Yl(R,1),new _.Yl(B,this.showInfoBar?B-76:B));V.width<=B.width&&V.height<=B.height||(AM4(B,V),B.width=Math.min(B.width,this.maxMiniplayerSize),B.height=Math.min(B.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&R<=1?Math.max(B.width,B.height)+76:Math.max(B.width,B.height)));this.dimensions=
new _.Yl(B.width,this.clamp(B.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 B=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=B.height+"px";var R;(R=this.player)==null||R.setInternalSize(B.width,B.height)};
_.p.getPlayerSize=function(B){var R=Math.max(0,B.height-this.getNonPlayerHeight());return new _.Yl(B.width,R)};
_.p.getNonPlayerHeight=function(){var B=0;this.showInfoBar&&(B+=76);this.expanded&&(B+=285);return B};
_.p.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.Oz().resolve(_.An).close()};
_.p.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.p.logClosingClick=function(){this.closeVe&&_.iF(_.TE(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.iF(_.TE(this.screenLayer),this.readyToResumeCloseVe)};
_.p.onPlayerExpandMiniplayer=function(){if(this.expandVe){var B=_.TE(this.screenLayer);B&&_.iF(B,this.expandVe)}};
_.p.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var B=this.playerState===1;this.continueWatching&&B&&(this.continueWatching=!1);this.premiumBadges.length&&B&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.p.getScreenLayer=function(){return this.screenLayer};
_.p.logMiniplayer=function(){var B=_.TE(this.screenLayer),R=_.wT(this.screenLayer);B&&R&&this.playerVe&&(_.EV(B,R,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.QD(B,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.cz(B,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.QD(B,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.p.computePlaylistData=function(B,R){return R};
_.p.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.p.computeExpandButtonHidden=function(B,R,V){return!B||!R||V};
_.p.computePlaylistIndexHidden=function(B,R){return!B||R};
_.p.computePlaylistPanelHidden=function(B,R){return!R&&!B};
_.p.computeExpandButtonLabel=function(B){return B?_.Wz("MINIPLAYER_COLLAPSE_LABEL"):_.Wz("MINIPLAYER_EXPAND_LABEL")};
_.p.computeDisabledStateCloseButtonLabel=function(){return _.Wz("MINIPLAYER_CLOSE",void 0,"Close")};
_.p.onWindowResized=function(B){B&&(B=this.windowDimensions=B,this.maxMiniplayerSize=Math.min(Math.min(B.width,B.height)-32,720),this.updateDimensionsAndResize())};
_.p.setUpResizing=function(){var B=this;this.JSC$17712_resizers||(this.JSC$17712_resizers=new g9(this.JSC$17712_resizeContainer,{onStartResize:function(){B.handleResizeStart()},
onResize:function(R){B.handleResize(R)}}),this.JSC$17712_resizers.setSize(this.currentMiniplayerSize),this.JSC$17712_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.p.handleResizeStart=function(){var B=_.TE(this.screenLayer);this.userSetSize||(this.userSetSize=!0,B&&this.resizeVe&&_.cz(B,[this.resizeVe]));B&&this.resizeVe&&_.iF(B,this.resizeVe)};
_.p.handleResize=function(B){this.setMiniplayerSize(B);this.updateDimensionsAndResize()};
_.p.setUpDragging=function(){var B=this;this.JSC$17712_dragger||(this.JSC$17712_dragger=new r9(this.draggableContainer,{onStartDrag:function(R){!B.isSafeToDrag(R)||B.isAnimatingSnap?R.preventDefault():B.handleDragStart()},
onDrag:function(R){B.transform=R;B.setTransform(B.transform)},
onEndDrag:function(){B.handleDragEnd()}},!0))};
_.p.handleDragStart=function(){this.isDragging=!0;var B=_.TE(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,B&&this.repositionVe&&_.cz(B,[this.repositionVe]));B&&this.repositionVe&&_.iF(B,this.repositionVe)};
_.p.handleDragEnd=function(){this.isDragging=!1;var B=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&B>this.windowDimensions.height&&_.Oz().resolve(_.An).close();this.animateSnapToCorner()};
_.p.animateSnapToCorner=function(){var B=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),R=this.getNearestAttachments();R=this.getGlobalPositionFromAttachments(R.horizontalAttachment,R.verticalAttachment);B=new _.fx(R.x-B.x,R.y-B.y);this.isAnimatingSnap=!0;this.setTransform(B);this.hostElement.addEventListener("transitionend",_.Bc(this,this.endSnapAnimation))};
_.p.endSnapAnimation=function(B){B.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Bc(this,this.endSnapAnimation)),this.endDrag())};
_.p.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.p.setTransform=function(B){this.hostElement.style.transform=B?"translate("+B.x+"px, "+B.y+"px)":""};
_.p.getGlobalPositionFromAttachments=function(B,R){return new _.fx(B==="west"?16:this.windowDimensions.width-this.dimensions.width-16,R==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.p.updateAttachments=function(){var B=this.getNearestAttachments();if(this.horizontalAttachment!==B.horizontalAttachment||this.verticalAttachment!==B.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=B.horizontalAttachment;this.verticalAttachment=B.verticalAttachment;var R;(R=this.JSC$17712_resizers)==null||R.update(this.horizontalAttachment,this.verticalAttachment)};
_.p.getNearestAttachments=function(){var B=this.getCurrentGlobalPosition();return{horizontalAttachment:B.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:B.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.p.getCurrentGlobalPosition=function(){var B=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return tu7(B,this.transform)};
_.p.isSafeToDrag=function(B){var R=this.playerContainer.getBoundingClientRect();return Math.abs(B.clientY-(R.y+R.height))>15};
_.p.setMiniplayerSize=function(B){this.currentMiniplayerSize=this.clamp(B);var R;(R=this.JSC$17712_resizers)==null||R.setSize(this.currentMiniplayerSize)};
_.p.clamp=function(B){return _.IH(192,B,720)};
_.p.registerViewTransitionTasks=function(){var B=this,R=_.Oz().resolve(_.uj(_.yO));if(R){var V={beforeTransition:function(){B.hostElement&&(B.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){B.hostElement&&(B.hostElement.style.viewTransitionName="")}};
PV(R,"slide",V);PV(R,"zoom",V)}};
_.mh.Object.defineProperties(C1.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.k("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:_.Wz("CONTINUE_WATCHING",void 0,"Continue watching")};var B;if((B=this.externalPlaylistData)==null?0:B.contents)return this.externalPlaylistData.titleText;var R;return(R=this.data)==null?void 0:R.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.externalPlaylistData)==null?0:B.contents){var R;return(R=_.Jpq(this.externalPlaylistData))==null?void 0:R.title}var V;return(V=this.data)==null?void 0:V.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var B,R,V,e;return((B=this.externalPlaylistData)==null?void 0:B.currentIndex)!==void 0&&((R=this.externalPlaylistData)==null?0:R.totalVideos)&&!((V=this.data)==null?0:(e=V.playlistData)==null?0:e.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.y2_(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.k("kevlar_watch_while_counterfactual")}}});
C1.prototype.onIsDisabledChanged=C1.prototype.onIsDisabledChanged;C1.prototype.readyToResumeVeChanged=C1.prototype.readyToResumeVeChanged;C1.prototype.premiumBrandingChanged=C1.prototype.premiumBrandingChanged;C1.prototype.onPlayerVeChange=C1.prototype.onPlayerVeChange;C1.prototype.hasPlaylistDataChanged=C1.prototype.hasPlaylistDataChanged;_.r([_.v(_.cu.YtPlayerListenerBehavior),_.Z("design:type",_.AU)],C1.prototype,"ytPlayerListenerBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],C1.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],C1.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],C1.prototype,"ytdReduxBehavior",void 0);_.r([_.Yp("#draggable"),_.Z("design:type",HTMLDivElement)],C1.prototype,"draggableContainer",void 0);
_.r([_.Yp("#resize-container"),_.Z("design:type",HTMLDivElement)],C1.prototype,"JSC$17712_resizeContainer",void 0);_.r([_.Yp("#video-container"),_.Z("design:type",HTMLDivElement)],C1.prototype,"videoContainer",void 0);_.r([_.Yp("#player-container"),_.Z("design:type",HTMLDivElement)],C1.prototype,"playerContainer",void 0);_.r([_.Yp("#playlist"),_.Z("design:type",HTMLDivElement)],C1.prototype,"JSC$17712_playlistPanel",void 0);_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"active",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"hasNoData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"enabled",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"expanded",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"readyToResume",void 0);
_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"isDisabled",void 0);_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"externalPlaylistData",void 0);_.r([_.E(),_.Z("design:type",Array)],C1.prototype,"premiumBadges",void 0);_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"toastData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"watchWhile",void 0);_.r([_.E(),_.Z("design:type",Boolean)],C1.prototype,"premiumBranding",void 0);
_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"playerState",void 0);_.r([_.E(),_.Z("design:type",Boolean)],C1.prototype,"continueWatching",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],C1.prototype,"verticalAttachment",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],C1.prototype,"horizontalAttachment",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"isAnimatingFade",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"isAnimatingSnap",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"isAnimatingExpand",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"isDragging",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"playerHidden",void 0);
_.r([_.E({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.Z("design:type",Object)],C1.prototype,"playlistData",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.Z("design:type",Object)],C1.prototype,"hasPlaylistData",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"closed",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],C1.prototype,"expandedClosed",void 0);
_.r([_.E({selector:_.zrp}),_.Z("design:type",Boolean)],C1.prototype,"isSingleOptionSurveyActive",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.w6}),_.Z("design:type",Boolean)],C1.prototype,"isWatchPage",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("watchWhile"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],C1.prototype,"showInfoBar",null);_.r([_.K("premiumBadges","showInfoBar"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],C1.prototype,"showOverlayPremiumBadges",null);
_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"watchResponse",void 0);_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"miniplayerRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"playabilityStatus",void 0);_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"playerVe",void 0);_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"expandVe",void 0);_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"closeVe",void 0);
_.r([_.E(),_.Z("design:type",Object)],C1.prototype,"readyToResumeCloseVe",void 0);_.r([_.E(),_.Z("design:type",_.dT)],C1.prototype,"readyToResumeVe",void 0);_.r([_.E(),_.Z("design:type",_.dT)],C1.prototype,"resizeVe",void 0);_.r([_.E(),_.Z("design:type",_.dT)],C1.prototype,"repositionVe",void 0);_.r([_.XX("hasPlaylistData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],C1.prototype,"hasPlaylistDataChanged",null);
_.r([_.XX("playerVe"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],C1.prototype,"onPlayerVeChange",null);_.r([_.XX("premiumBranding"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],C1.prototype,"premiumBrandingChanged",null);_.r([_.XX("readyToResumeVe"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],C1.prototype,"readyToResumeVeChanged",null);
_.r([_.XX("isDisabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],C1.prototype,"onIsDisabledChanged",null);_.r([_.K("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],C1.prototype,"miniplayerSubtitle",null);_.r([_.K("data.miniplayerTitle","externalPlaylistData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],C1.prototype,"miniplayerTitle",null);
_.r([_.K("externalPlaylistData","continueWatching"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],C1.prototype,"playlistIndexMessage",null);_.r([_.E({reflectToAttribute:!0}),_.K("playabilityStatus"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],C1.prototype,"showErrorScreen",null);_.r([_.E({reflectToAttribute:!0}),_.K("watchWhile"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],C1.prototype,"watchWhileHidden",null);
_.k("ytd_miniplayer_to_wiz")||_.F(C1,"ytd-miniplayer",function(){if(j$4===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
B.content.insertBefore(JUz().content.cloneNode(!0),B.content.firstChild);B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);j$4=B}B=j$4;return B},{mode:2});var M5j;var Pm=function(){var B=_.c.apply(this,arguments)||this;B.useListItemStyles=_.k("web_list_item_style_for_menu_items");B.systemIcons=_.k("kevlar_system_icons");return B};
_.l(Pm,_.c);_.p=Pm.prototype;_.p.ready=function(){this.hostElement.addEventListener("tap",_.Bc(this,this.onEndpointTapExtra))};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){var B;(B=_.w(this.hostElement).querySelector("tp-yt-paper-item"))==null||B.focus()};
_.p.onEndpointTapExtra=function(B){_.OI(this.hostElement,"iron-activate");var R=this.data.navigationEndpoint;R&&_.D(R,_.oFd)&&(B.stopPropagation(),_.eO(this.hostElement,[R],this.hostElement))};
_.p.computeIcon=function(B){return B&&B.iconType?_.RT(B.iconType):""};
_.p.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.forceUpdateStylesOnLegacyBrowsers=function(){_.k("kevlar_legacy_browsers")&&_.o_(this.hostElement)};
Pm.prototype.forceUpdateStylesOnLegacyBrowsers=Pm.prototype.forceUpdateStylesOnLegacyBrowsers;Pm.prototype.onFocus=Pm.prototype.onFocus;_.r([_.v(_.Ad),_.Z("design:type",Object)],Pm.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.$AR.YtConditionalRendererBehavior),_.Z("design:type",Object)],Pm.prototype,"ytConditionalRendererBehavior",void 0);_.r([_.v(_.VR.YtEndpointBehavior),_.Z("design:type",Object)],Pm.prototype,"ytEndpointBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],Pm.prototype,"data",void 0);_.r([_.E({computed:"computeIcon(data.icon)",value:""}),_.Z("design:type",String)],Pm.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Pm.prototype,"useIcons",void 0);_.r([_.E({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Pm.prototype,"hasSeparator",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Pm.prototype,"useListItemStyles",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Pm.prototype,"systemIcons",void 0);_.r([_.R_("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pm.prototype,"onFocus",null);_.r([_.XX("useIcons","hasSeparator"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pm.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.F(Pm,"ytd-menu-navigation-item-renderer",function(){if(M5j===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);M5j=B}B=M5j;return B},{mode:1});var kYn;var Dae=_.s$(_.Wz("DOWNLOAD",{},"Download")),fFj=_.s$(_.Wz("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),lFn=_.s$(_.Wz("RETRY",{},"Retry")),zne=_.s$(_.Wz("PAUSE_DOWNLOADING",{},"Pause downloading")),aFi=_.s$(_.Wz("RESUME_DOWNLOAD",{},"Resume download")),n1=function(){var B=_.c.apply(this,arguments)||this;B.primaryText=Dae;B.primaryIconType="OFFLINE_DOWNLOAD";B.hasSecondaryContent=!1;B.hasSeparator=!1;B.transferState="TRANSFER_STATE_UNKNOWN";B.isVideoDeletedByUser=!1;B.isHidden=!1;B.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return B};
_.l(n1,_.c);_.p=n1.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(B){var R=this.data.serviceEndpoint;if(R){var V=_.D(R,_.Jv);V&&B&&(V.action=B);this.ytComponentBehavior.resolveCommand(R)}};
_.p.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=Dae,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=Dae;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=lFn;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=fFj;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=aFi;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=fFj;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
zne;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=fFj;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=fFj;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=Dae,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.p.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.p.isSecondaryEntryHidden=function(B,R){return B?!0:!R};
_.p.computeHasSeparator=function(){var B;return!((B=this.data)==null||!B.hasSeparator)};
n1.prototype.showHideButton=n1.prototype.showHideButton;n1.prototype.onTransferStateChange=n1.prototype.onTransferStateChange;n1.prototype.onFocus=n1.prototype.onFocus;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],n1.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],n1.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],n1.prototype,"primaryText",void 0);_.r([_.E(),_.Z("design:type",String)],n1.prototype,"primaryIconType",void 0);_.r([_.E(),_.Z("design:type",String)],n1.prototype,"primaryAction",void 0);_.r([_.E(),_.Z("design:type",Object)],n1.prototype,"secondaryText",void 0);_.r([_.E(),_.Z("design:type",String)],n1.prototype,"secondaryIconType",void 0);
_.r([_.E(),_.Z("design:type",String)],n1.prototype,"secondaryAction",void 0);_.r([_.E(),_.Z("design:type",Object)],n1.prototype,"hasSecondaryContent",void 0);_.r([_.E({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Z("design:type",Object)],n1.prototype,"hasSeparator",void 0);_.r([_.E({selector:_.Tz,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Z("design:type",String)],n1.prototype,"transferState",void 0);
_.r([_.E({selector:_.Ztd,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Z("design:type",Object)],n1.prototype,"isVideoDeletedByUser",void 0);_.r([_.E(),_.Z("design:type",Object)],n1.prototype,"isHidden",void 0);_.r([_.E({selector:_.AGp,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Z("design:type",Object)],n1.prototype,"offlineabilityState",void 0);_.r([_.Yp("#primary-entry"),_.Z("design:type",Object)],n1.prototype,"primaryEntry",void 0);
_.r([_.R_("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],n1.prototype,"onFocus",null);_.r([_.bp("transferState","isVideoDeletedByUser"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],n1.prototype,"onTransferStateChange",null);_.r([_.bp("offlineabilityState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],n1.prototype,"showHideButton",null);
_.F(n1,"ytd-menu-service-item-download-renderer",function(){if(kYn===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);kYn=B}B=kYn;return B},{mode:1});var dae;var uS=function(){var B=_.c.apply(this,arguments)||this;B.useIcons=!1;B.systemIcons=_.k("kevlar_system_icons");B.useListItemStyles=_.k("web_list_item_style_for_menu_items");return B};
_.l(uS,_.c);_.p=uS.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){var B;(B=_.w(this.hostElement).querySelector("tp-yt-paper-item"))==null||B.focus()};
_.p.onTap=function(){_.Bz(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var B=this.data.serviceEndpoint,R=this.data.command;if(B){var V,e=(V=this.data)==null?void 0:V.trackingParams;V=!!_.D(B,_.tHa);e&&V&&_.g6().dispatch(_.or({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:e}}));this.ytComponentBehavior.resolveCommand(B)||_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}})}R&&(this.ytComponentBehavior.resolveCommand(R)||_.eO(this.hostElement,
[R],this.hostElement))};
_.p.computeIcon=function(B){return B&&B.iconType?_.RT(B.iconType):""};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.computeHasSeparator=function(){var B;return!((B=this.data)==null||!B.hasSeparator)};
_.p.forceUpdateStylesOnLegacyBrowsers=function(){_.k("kevlar_legacy_browsers")&&_.o_(this.hostElement)};
_.p.computeIsSelected=function(){var B;return!((B=this.data)==null||!B.isSelected)};
uS.prototype.forceUpdateStylesOnLegacyBrowsers=uS.prototype.forceUpdateStylesOnLegacyBrowsers;uS.prototype.onTap=uS.prototype.onTap;uS.prototype.onFocus=uS.prototype.onFocus;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],uS.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],uS.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.$AR.YtConditionalRendererBehavior),_.Z("design:type",Object)],uS.prototype,"ytConditionalRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],uS.prototype,"data",void 0);_.r([_.E({computed:"computeIcon(data.icon)",value:""}),_.Z("design:type",String)],uS.prototype,"icon",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uS.prototype,"useIcons",void 0);
_.r([_.E({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],uS.prototype,"hasSeparator",void 0);_.r([_.E({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],uS.prototype,"isSelected",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uS.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],uS.prototype,"useListItemStyles",void 0);
_.r([_.R_("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uS.prototype,"onFocus",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],uS.prototype,"onTap",null);_.r([_.XX("useIcons","hasSeparator"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uS.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.F(uS,"ytd-menu-service-item-renderer",function(){if(dae===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);dae=B}B=dae;return B},{mode:2});var wu4;var OG=function(){return _.c.apply(this,arguments)||this};
_.l(OG,_.c);_.p=OG.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onDataChanged=function(){var B=this;_.gB(this,function(){B.postbox.openDialog();B.focus();_.OI(B.hostElement,"yt-refit")})};
_.p.focus=function(){this.postbox.focus()};
_.p.closePopup=function(){_.oF(this.hostElement,"yt-close-popup-action")};
_.p.onYtCommentboxDismiss=function(){this.closePopup()};
OG.prototype.onYtCommentboxDismiss=OG.prototype.onYtCommentboxDismiss;OG.prototype.onDataChanged=OG.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],OG.prototype,"data",void 0);_.r([_.E({value:function(){return _.Wz("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Z("design:type",String)],OG.prototype,"closeButtonAriaLabel",void 0);_.r([_.Yp("#postbox"),_.Z("design:type",Object)],OG.prototype,"postbox",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OG.prototype,"onDataChanged",null);_.r([_.R_("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OG.prototype,"onYtCommentboxDismiss",null);
OG=_.r([_.A({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],OG);
_.F(OG,"ytd-backstage-post-dialog-popup-renderer",function(){if(wu4!==void 0)return wu4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return wu4=B},{mode:1});var Ttr;var oy=function(){return _.c.apply(this,arguments)||this};
_.l(oy,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],oy.prototype,"data",void 0);oy=_.r([_.A({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],oy);
_.F(oy,"ytd-sender-id-section-renderer",function(){if(Ttr!==void 0)return Ttr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return Ttr=B},{mode:1});var xar;var LVU;var vc6;var BF=function(){return _.c.apply(this,arguments)||this};
_.l(BF,_.c);BF.prototype.closePopup=function(){_.oF(this.hostElement,"yt-close-popup-action")};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],BF.prototype,"data",void 0);BF=_.r([_.fJ({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],BF);
_.F(BF,"yt-community-post-section-renderer",function(){if(vc6===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;LVU===void 0&&(LVU=document.createElement("template"));var e=LVU;V.call(R,e.content.cloneNode(!0),B.content.firstChild);vc6=B}B=vc6;return B},{mode:2});var KVn;var IF4;var Ecz;var Q$m;var q_m;var cUi;var Ry=function(){return _.c.apply(this,arguments)||this};
_.l(Ry,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ry.prototype,"data",void 0);Ry=_.r([_.fJ({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Ry);
_.F(Ry,"yt-share-start-time-with-context-renderer",function(){if(cUi===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;q_m===void 0&&(q_m=document.createElement("template"));var e=q_m;V.call(R,e.content.cloneNode(!0),B.content.firstChild);cUi=B}B=cUi;return B},{mode:2});var V2=function(){return _.c.apply(this,arguments)||this};
_.l(V2,_.c);V2.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],V2.prototype,"data",void 0);V2=_.r([_.fJ({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],V2);
_.F(V2,"yt-share-panel-title-v15-renderer",function(){if(Q$m===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Ecz===void 0&&(Ecz=document.createElement("template"));var e=Ecz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Q$m=B}B=Q$m;return B},{mode:2});var e0=function(){return _.c.apply(this,arguments)||this};
_.l(e0,_.c);e0.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],e0.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],e0.prototype,"data",void 0);e0=_.r([_.fJ({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],e0);
_.F(e0,"yt-share-panel-header-renderer",function(){if(IF4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;KVn===void 0&&(KVn=document.createElement("template"));var e=KVn;V.call(R,e.content.cloneNode(!0),B.content.firstChild);IF4=B}B=IF4;return B},{mode:2});var AUm;var iL4;var Xe=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-open-popup-action":"onOpen"};return B};
_.l(Xe,_.c);_.p=Xe.prototype;_.p.attached=function(){this.onOpen()};
_.p.updateTimeSecs=function(B){this.currentTimeSecs=B};
_.p.computeTimeString=function(B){B=B.toString();var R=Math.floor(Number(B)/3600),V=Math.floor(Number(B)%3600%60);return(R>0?R+":":"")+_.Rp(Math.floor(Number(B)%3600/60),R>0?2:1)+":"+_.Rp(V,2)};
_.p.computeTimeStringA11y=function(B){B=_.$fA({seconds:B});var R=B.hours===void 0?0:B.hours,V=B.minutes===void 0?0:B.minutes,e=B.seconds===void 0?0:B.seconds;B=[];if(R>0){var X=q7i().format({hours:R});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.K7)||R>9999)X=X.replace(R.toString(),_.CWA(R)),_.K7==="km"&&(X=X.replace(".",","));B.push(X)}V>0&&B.push(q7i().format({minutes:V}));e>0&&B.push(q7i().format({seconds:e}));R="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");V=_.K7==
"am"?"{0}\u1363 ":_.K7=="fa"?"{0}\u060c\u200f ":_.K7=="my"?"{0} - ":_.K7=="ne"?"{0},":_.K7=="th"?"{0} ":_.K7=="ur"?"{0}\u060c ":_.K7=="ar"||_.K7=="ar-XB"?"{0} \u0648":_.K7=="ja"||_.K7=="zh-CN"||_.K7=="zh-HK"||_.K7=="zh-TW"?"{0}\u3001":"{0}, ";e=_.K7=="am"?"\u1363 ":_.K7=="fa"?"\u060c\u200f ":_.K7=="my"?" - ":_.K7=="th"?" ":_.K7=="ur"?"\u060c ":_.K7=="ar"||_.K7=="ar-XB"?" \u0648":_.K7=="ja"||_.K7=="zh-CN"||_.K7=="zh-HK"||_.K7=="zh-TW"?"\u3001":", ";X=_.K7=="am"?" \u12a5\u1293 {0}":_.K7=="as"?" \u0986\u09f0\u09c1 {0}":
_.K7=="az"?" v\u0259 {0}":_.K7=="bn"?" \u098f\u09ac\u0982 {0}":_.K7=="cs"?" a\u00a0{0}":_.K7=="de"?" und {0}":_.K7=="el"?" \u03ba\u03b1\u03b9 {0}":_.K7=="eu"?" eta {0}":_.K7=="fa"?"\u060c \u0648 {0}":_.K7=="fil"?", at {0}":_.K7=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.K7=="hi"?", \u0914\u0930 {0}":_.K7=="hu"?" \u00e9s {0}":_.K7=="hy"?" \u0587 {0}":_.K7=="id"?", dan {0}":_.K7=="iw"?" \u05d5-{0}":_.K7=="ja"?"\u3001{0}":_.K7=="ka"?" \u10d3\u10d0 {0}":_.K7=="km"?" \u1793\u17b7\u1784 {0}":_.K7=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.K7=="ko"?" \ubc0f {0}":_.K7=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.K7=="lt"?" ir {0}":_.K7=="lv"?" un {0}":_.K7=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.K7=="mr"?" \u0906\u0923\u093f {0}":_.K7=="ms"?" dan {0}":_.K7=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.K7=="ne"?" \u0930 {0}":_.K7=="or"?", \u0b13 {0}":_.K7=="pa"?" \u0a05\u0a24\u0a47 {0}":_.K7=="ro"?" \u0219i {0}":_.K7=="si"?", \u0dc3\u0dc4 {0}":_.K7=="sk"?" a {0}":_.K7=="sl"?" in {0}":_.K7=="sq"?" dhe {0}":_.K7=="sv"?" och {0}":
_.K7=="sw"?" na {0}":_.K7=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.K7=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.K7=="th"?" \u0e41\u0e25\u0e30{0}":_.K7=="tr"?" ve {0}":_.K7=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.K7=="uz"?" va {0}":_.K7=="vi"?" v\u00e0 {0}":_.K7=="zh-HK"?"\u53ca{0}":_.K7=="zu"?", ne-{0}":_.K7=="af"||_.K7=="nl"?" en {0}":_.K7=="ar"||_.K7=="ar-XB"?" \u0648{0}":_.K7=="be"||_.K7=="uk"?" \u0456 {0}":_.K7=="en-GB"||_.K7=="en-IN"?" and {0}":_.K7=="en"||_.K7=="en-XA"?
", and {0}":_.K7=="et"||_.K7=="fi"?" ja {0}":_.K7=="fr"||_.K7=="fr-CA"?" et {0}":_.K7=="zh-CN"||_.K7=="zh-TW"?"\u548c{0}":_.K7=="da"||_.K7=="is"||_.K7=="no"?" og {0}":_.K7=="es"||_.K7=="es-419"||_.K7=="es-US"?" y {0}":_.K7=="kk"||_.K7=="lo"||_.K7=="mn"?", {0}":_.K7=="bg"||_.K7=="mk"||_.K7=="ru"||_.K7=="sr"?" \u0438 {0}":_.K7=="gl"||_.K7=="it"||_.K7=="pt-BR"||_.K7=="pt-PT"?" e {0}":" i {0}";var Y=_.K7=="am"?"{0} \u12a5\u1293 {1}":_.K7=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.K7=="az"?"{0} v\u0259 {1}":
_.K7=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.K7=="de"?"{0} und {1}":_.K7=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.K7=="eu"?"{0} eta {1}":_.K7=="fa"?"{0} \u0648 {1}":_.K7=="fil"?"{0} at {1}":_.K7=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.K7=="hi"?"{0} \u0914\u0930 {1}":_.K7=="hu"?"{0} \u00e9s {1}":_.K7=="hy"?"{0} \u0587 {1}":_.K7=="iw"?"{0} \u05d5-{1}":_.K7=="ja"?"{0}\u3001{1}":_.K7=="ka"?"{0} \u10d3\u10d0 {1}":_.K7=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.K7=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.K7=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.K7=="ko"?"{0} \ubc0f {1}":_.K7=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.K7=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.K7=="lt"?"{0} ir {1}":_.K7=="lv"?"{0} un {1}":_.K7=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.K7=="mn"?"{0}, {1}":_.K7=="mr"?"{0} \u0906\u0923\u093f {1}":_.K7=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.K7=="ne"?"{0} \u0930 {1}":_.K7=="or"?"{0} \u0b13 {1}":_.K7=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.K7=="ro"?"{0} \u0219i {1}":_.K7==
"si"?"{0} \u0dc3\u0dc4 {1}":_.K7=="sl"?"{0} in {1}":_.K7=="sq"?"{0} dhe {1}":_.K7=="sv"?"{0} och {1}":_.K7=="sw"?"{0} na {1}":_.K7=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.K7=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.K7=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.K7=="tr"?"{0} ve {1}":_.K7=="ur"?"{0} \u0627\u0648\u0631 {1}":_.K7=="uz"?"{0} va {1}":_.K7=="vi"?"{0} v\u00e0 {1}":_.K7=="zh-HK"?"{0}\u53ca{1}":_.K7=="zu"?"{0} ne-{1}":_.K7=="af"||_.K7=="nl"?"{0} en {1}":_.K7=="ar"||_.K7==
"ar-XB"?"{0} \u0648{1}":_.K7=="be"||_.K7=="uk"?"{0} \u0456 {1}":_.K7=="cs"||_.K7=="sk"?"{0} a\u00a0{1}":_.K7=="et"||_.K7=="fi"?"{0} ja {1}":_.K7=="fr"||_.K7=="fr-CA"?"{0} et {1}":_.K7=="id"||_.K7=="ms"?"{0} dan {1}":_.K7=="zh-CN"||_.K7=="zh-TW"?"{0}\u548c{1}":_.K7=="da"||_.K7=="is"||_.K7=="no"?"{0} og {1}":_.K7=="es"||_.K7=="es-419"||_.K7=="es-US"?"{0} y {1}":_.K7=="bg"||_.K7=="mk"||_.K7=="ru"||_.K7=="sr"?"{0} \u0438 {1}":_.K7=="en"||_.K7=="en-GB"||_.K7=="en-IN"||_.K7=="en-XA"?"{0} and {1}":_.K7==
"gl"||_.K7=="it"||_.K7=="pt-BR"||_.K7=="pt-PT"?"{0} e {1}":"{0} i {1}";_.K7==="sq"?(X=X.replace("dhe","e"),Y=Y.replace("dhe","e")):_.K7==="th"?(e=e.replace("{0}"," {0}"),Y=Y.replace("{0}","{0} "),Y=Y.replace("{1}"," {1}")):_.K7==="ne"?e=",":_.K7==="zh-CN"?e="":R.includes(_.K7)&&(e=" ");return B.length<2?B.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(_.K7)?B.length===2?
Y.replace("{0}",B[0]).replace("{1}",B[1]):V.replace("{0}",B[0])+B.slice(1,-1).join(e)+X.replace("{0}",B[B.length-1]):B.join(e)};
_.p.getTimeParam=function(){return jrm(this.timeString)};
_.p.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var B={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},R;_.WC(_.WK(),(R=this.data)==null?void 0:R.trackingParams,B,7)};
_.p.onChangeStartAtTimestamp=function(){for(var B=this.startAtTimestamp.value.split(":"),R=0,V=1,e=B.length-1;e>=0;e--)R+=Number(B[e])*V,V*=60;this.updateTimeSecs(R);this.setTimestamp()};
_.p.onOpen=function(){var B=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var R=_.Pr();R?R.getPlayerPromise().then(function(V){V=V.getCurrentTime();B.updateTimeSecs(V)}):EDn()&&this.updateTimeSecs(EDn())};
_.p.setTimestamp=function(){var B=Math.floor(this.currentTimeSecs);_.oF(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!B,timestamp:B||""}])};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Xe.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Xe.prototype,"data",void 0);_.r([_.E({value:!1,notify:!0}),_.Z("design:type",Boolean)],Xe.prototype,"isStartAtChecked",void 0);_.r([_.E(),_.Z("design:type",Number)],Xe.prototype,"currentTimeSecs",void 0);
_.r([_.E({computed:"computeTimeString(currentTimeSecs)"}),_.Z("design:type",String)],Xe.prototype,"timeString",void 0);_.r([_.E({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Z("design:type",String)],Xe.prototype,"timeStringA11y",void 0);_.r([_.Yp("#start-at-timestamp"),_.Z("design:type",Object)],Xe.prototype,"startAtTimestamp",void 0);Xe=_.r([_.fJ({is:"yt-start-at-renderer",disableElementRegistration:!0})],Xe);
_.F(Xe,"yt-start-at-renderer",function(){if(iL4===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;AUm===void 0&&(AUm=document.createElement("template"));var e=AUm;V.call(R,e.content.cloneNode(!0),B.content.firstChild);iL4=B}B=iL4;return B},{mode:2});var s$m;var FV2;var rU4=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"]]),gce=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"]]),ZLe=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var ma2={};ma2.YtBindingExpressionsBehavior={identity:_.sS,msg:function(B,R){R=R===void 0?{}:R;return _.Wz(B,R,B)},
msgPlural:function(B,R){return _.bF(B,R)},
getMusicIconFromType:function(B){if(_.k("music_web_enable_icon_wil"))B=_.RT(B);else if(gce.has(B))B="yt-sys-icons:"+gce.get(B);else{var R=rU4.get(B)||_.RT(B).split(":")[1];R=_.rLS(R);var V;B=((V=ZLe.get(B))!=null?V:"yt-sys-icons:")+R}return B}};var $ae;var CT4;var PT4;var ncn=document.head,u2o=ncn.appendChild,OLe;if(PT4===void 0){var o2n=document.createElement("template");_.a(o2n,'\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>');PT4=o2n}OLe=PT4;u2o.call(ncn,OLe.content);var p9=function(){var B=_.c.apply(this,arguments)||this;B.screenLayer=7;return B};
_.l(p9,_.c);p9.prototype.getScreenLayer=function(){return this.screenLayer};
p9.prototype.onTap=function(B){B&&B.detail&&(B.detail.x||B.detail.y)&&_.w(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.VD(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(B=this.getScreenLayer(),_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:B}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.mh.Object.defineProperties(p9.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()}}});
p9.prototype.onTap=p9.prototype.onTap;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],p9.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],p9.prototype,"data",void 0);_.r([_.K("data.title"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],p9.prototype,"title",null);
_.r([_.K("data.serviceName"),_.Z("design:type",String),_.Z("design:paramtypes",[])],p9.prototype,"icon",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],p9.prototype,"onTap",null);p9=_.r([_.fJ({is:"yt-share-target-renderer",disableElementRegistration:!0})],p9);
_.F(p9,"yt-share-target-renderer",function(){if(CT4===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;$ae===void 0&&($ae=document.createElement("template"));var e=$ae;V.call(R,e.content.cloneNode(!0),B.content.firstChild);CT4=B}B=CT4;return B},{mode:2});var B0n;var Rs4;var Yo=function(){var B=_.c.apply(this,arguments)||this;B.SHARE_TARGET_WIDTH=70;B.SHARE_TARGET_MARGIN_RIGHT=8;B.PAGE_SCROLL_SPEED=9;B.actionMap={"yt-share-panel-reset-action":"onReset_"};return B};
_.l(Yo,_.c);_.p=Yo.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&&(_.w(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.w(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.p.onReset_=function(){if(_.w(this.hostElement).querySelector("#list")){var B=_.w(this.hostElement).querySelector("#list");var R=_.w(this.hostElement).querySelector("#list");var V=R.offsetLeft,e=R.offsetParent;e||_.Gil(R)!="fixed"||(e=_.zg(R).documentElement);if(e){if(_.to&&!_.b8(58)){var X=_.l74(e);V+=X.left}else Number(_.$AZ)>=8&&!(Number(_.$AZ)>=9)&&(X=_.l74(e),V-=X.left);R=_.Dj5(e)?e.clientWidth-(V+R.offsetWidth):V}else R=V;EBN(B,R);this.updateScrollButtons_()}};
_.p.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.p.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.p.onScrollWheel_=function(B){B.stopPropagation();B.preventDefault();var R=IPm(_.w(this.hostElement).querySelector("#list"));B=Math.abs(B.deltaX)>Math.abs(B.deltaY)?B.deltaX:B.deltaY;EBN(_.w(this.hostElement).querySelector("#list"),R+B);this.updateScrollButtons_()};
_.p.smoothScrollByOnePage_=function(B){var R=_.w(this.hostElement).querySelector("#list"),V=(Math.floor(R.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,e=IPm(R),X=V*(B?1:-1),Y=this.PAGE_SCROLL_SPEED,t=this.updateScrollButtons_.bind(this),b=0,J;(function y(){b+=Y;J=b/V*2;EBN(R,e+X*(J<1?J*J:-J*J+4*J-2));b<V?window.requestAnimationFrame(y):t()})()};
_.p.updateScrollButtons_=function(){var B=IPm(_.w(this.hostElement).querySelector("#list")),R=_.w(this.hostElement).querySelector("#list").scrollWidth-_.w(this.hostElement).querySelector("#list").clientWidth;_.w(this.hostElement).querySelector("#scroll-button-back").hidden=B<=0;_.w(this.hostElement).querySelector("#scroll-button-forward").hidden=B>=R};
Yo.prototype.onScrollWheel_=Yo.prototype.onScrollWheel_;Yo.prototype.onDataChanged_=Yo.prototype.onDataChanged_;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Yo.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(ma2.YtBindingExpressionsBehavior),_.Z("design:type",Object)],Yo.prototype,"ytBindingExpressionsBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Yo.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yo.prototype,"onDataChanged_",null);_.r([_.R_("wheel"),_.Z("design:type",Function),_.Z("design:paramtypes",[WheelEvent]),_.Z("design:returntype")],Yo.prototype,"onScrollWheel_",null);
Yo=_.r([_.fJ({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Yo);
_.F(Yo,"yt-third-party-share-target-section-renderer",function(){if(Rs4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;B0n===void 0&&(B0n=document.createElement("template"));var e=B0n;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Rs4=B}B=Rs4;return B},{mode:2});var ht=function(){return _.c.apply(this,arguments)||this};
_.l(ht,_.c);ht.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"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ht.prototype,"data",void 0);ht=_.r([_.fJ({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],ht);
_.F(ht,"yt-third-party-network-section-renderer",function(){if(FV2===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;s$m===void 0&&(s$m=document.createElement("template"));var e=s$m;V.call(R,e.content.cloneNode(!0),B.content.firstChild);FV2=B}B=FV2;return B},{mode:2});_.mR(_.sx(function(B){return _.N("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.N("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.N(_.wb,{data:function(){return B.data().firstPartyItems}},{listItemViewModel:_.Dw})))},"hg"),"first-party-network-section-view-model",{props:{data:_.qq}});var Vfr=_.$Q(["data:image/svg+xml;charset=UTF-8;base64,",""]),tt=function(){var B=_.c.apply(this,arguments)||this;B.screenLayer=7;B.qrCodeEnabled=_.k("web_enable_sharing_qr_code");B.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return B};
_.l(tt,_.c);_.p=tt.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$17764_scroller&&(this.JSC$17764_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17764_scroller.attached&&typeof this.JSC$17764_scroller.attached==="function"&&this.JSC$17764_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.p.onDataChanged=function(){var B=this,R;(R=this.data)!=null&&R.contents&&(this.hostElement.setAttribute("links-only","true"),_.ui(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.gB(this,function(){_.OI(B.hostElement,"yt-refit");B.focusSharePanelHeader()}))};
_.p.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.p.handleSetTimestamp=function(B){var R=this.shortUrl();B.isSet&&(R=_.i9(R,"t",B.timestamp));this.maybeRenderQrCode(R)};
_.p.shortUrl=function(){var B,R=(B=this.data)==null?void 0:B.contents;if(R)for(B=0;B<R.length;B++){var V=void 0,e=void 0;if((V=R[B])==null?0:(e=V.thirdPartyNetworkSection)==null?0:e.copyLinkContainer){var X=e=V=void 0;return(X=_.D((V=R[B])==null?void 0:(e=V.thirdPartyNetworkSection)==null?void 0:e.copyLinkContainer,cTm))==null?void 0:X.shortUrl}}};
_.p.maybeRenderQrCode=function(B){var R=this,V,e,X,Y,t,b,J,G,y;return _.W(function(S){if(S.nextAddress==1){V=_.w(R.hostElement).querySelector("#qr-code");if(!R.qrCodeEnabled||!B)return V&&(V.style.display="none"),S.return();e=_.Vyq(_.Oz().resolve(_.VM),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});X=document.createElement("div");return typeof e==="function"?(e(X),S.jumpTo(2)):_.U(S,e,3)}S.nextAddress!=2&&(Y=S.yieldResult,Y(X));J=(t=X)==null?void 0:(b=t.firstChild)==null?void 0:b.firstChild;
G=document.createElement("img");y=_.MV(Vfr,btoa(J.outerHTML));G.onload=function(){var M={canvas:V,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:G},f=new JZe;SIo(f,B);Hpr(f,!1,Mkz(f));var z=f.modules,T=Object.assign({},Sce,M);z=structuredClone(z);M=z.length;var L,Q=(L=T.canvas)!=null?L:document.createElement("canvas");L=T.cellSize;f=T.logo;var q,m=(q=T.logoSize)!=null?q:Math.floor(M/4);M%2!==m%2&&m++;var g=T.logoPadding,Vu=T.backgroundColor;q=M*L;var n=
T.width,Yd=0;n&&(Yd=T.padding,Yd=Math.ceil(Yd*q/(n-Yd*2)),Q.style.width=n+"px",Q.style.height=n+"px");Q.width!==q+Yd*2&&(Q.width=q+Yd*2);Q.height!==q+Yd*2&&(Q.height=q+Yd*2);q=Q.getContext("2d");T.autoClear&&q.clearRect(0,0,Q.width,Q.height);q.fillStyle=Vu;q.beginPath();q.roundRect(0,0,Q.width,Q.height,T.borderRadius);q.fill();q.save();q.translate(Yd,Yd);if(f)for(Q=Math.floor(M-m)/2-g,g=Math.floor(M+m)/2+g,Vu=Q;Vu<g;Vu++)for(n=Q;n<g;n++)z[Vu][n]=!1;for(Q=0;Q<M;Q++)for(g=0;g<M;g++)(Q<7&&g<7||Q<7&&
g>=M-7||Q>=M-7&&g<7)&&(z[Q][g]=!1);var kd;Q=(kd=T.markerColor)!=null?kd:T.color;Dro(q,0,0,L,Q);Dro(q,L*(M-7),0,L,Q);Dro(q,0,L*(M-7),L,Q);switch(T.cellStyle){case 0:kd=z;z=kd.length;Q=T.cellSize;q.beginPath();for(g=0;g<z;g++)for(Vu=0;Vu<z;Vu++)kd[g][Vu]&&q.rect(g*Q,Vu*Q,Q,Q);q.fillStyle=T.color;q.fill();break;case 1:kd=z;z=kd.length;Q=T.cellSize;g=Q*T.relativeCircleSize;q.fillStyle=T.color;q.beginPath();for(T=0;T<z;T++)for(Vu=0;Vu<z;Vu++)kd[T][Vu]&&(q.beginPath(),q.ellipse((T+.5)*Q,(Vu+.5)*Q,g/2,g/
2,0,0,2*Math.PI),q.fill());q.fill();break;case 2:kd=z;z=kd.length;Q=T.cellSize;q.fillStyle=T.color;T=[[1,1],[-1,1],[-1,-1],[1,-1]];q.beginPath();for(g=0;g<z;g++)for(Vu=0;Vu<z;Vu++)if(kd[g][Vu])q.roundRect(g*Q,Vu*Q,Q,Q,Q/2),g+1<z&&kd[g+1][Vu]&&q.rect(g*Q+Q/2,Vu*Q,Q,Q),Vu+1<z&&kd[g][Vu+1]&&q.rect(g*Q,Vu*Q+Q/2,Q,Q);else{n=g*Q+Q/2;Yd=Vu*Q+Q/2;for(var a5=0;a5<4;a5++){var lo=_.h(T[a5]),io=lo.next().value;lo=lo.next().value;g+io>=0&&g+io<z&&Vu+lo>=0&&Vu+lo<z&&kd[g+io][Vu]&&kd[g][Vu+lo]&&kd[g+io][Vu+lo]&&
(io=a5*Math.PI/2,lo=Q/2,q.moveTo(n+lo*Math.cos(io),Yd+lo*Math.sin(io)),q.arc(n,Yd,Q/2,io,io+Math.PI/2,!1),q.lineTo(n+lo*(Math.cos(io)-Math.sin(io)),Yd+lo*(Math.cos(io)+Math.sin(io))),q.lineTo(n+lo*Math.cos(io),Yd+lo*Math.sin(io)))}}q.fill()}f&&q.drawImage(f,(M-m)*L/2,(M-m)*L/2,m*L,m*L);q.restore();V.style.removeProperty("display")};
G.src=_.j4(y);_.b3(S)})};
_.p.hasCommunityPostRenderer=function(){var B,R,V,e;return!!((B=this.data)==null?0:(R=B.header)==null?0:(V=R.sharePanelHeaderRenderer)==null?0:(e=V.communityPost)==null?0:e.communityPostSectionRenderer)};
_.p.onTapClose=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.p.getScreenLayer=function(){return this.screenLayer};
_.p.logSharePanelPage=function(){if(!_.k("enable_share_panel_navigation_logging_fix_on_web")){var B;if((B=this.data)!=null&&B.trackingParams){B=this.data.trackingParams;var R=this.parentClickTrackingParams;R=R?_.U5(R):void 0;var V=_.WK();_.py(V,21760,R,{layer:7,parentLayer:0});V.graftServerVe(B,void 0,7);_.g6().dispatch(_.or({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
tt.prototype.onDataChanged=tt.prototype.onDataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],tt.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],tt.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],tt.prototype,"data",void 0);_.r([_.E({value:_.Wz("SBOX_INAPPROPRIATE_CANCEL")}),_.Z("design:type",String)],tt.prototype,"closeButtonAriaLabel",void 0);_.r([_.Yp("yt-share-panel-header-renderer"),_.Z("design:type",HTMLElement)],tt.prototype,"header",void 0);_.r([_.E({selector:function(B){return B.share.parentClickTrackingParams}}),
_.Z("design:type",String)],tt.prototype,"parentClickTrackingParams",void 0);_.r([_.E(),_.Z("design:type",Object)],tt.prototype,"qrCodeEnabled",void 0);_.r([_.Yp("#scroller"),_.Z("design:type",Object)],tt.prototype,"JSC$17764_scroller",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tt.prototype,"onDataChanged",null);tt=_.r([_.A({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],tt);
_.F(tt,"ytd-unified-share-panel-renderer",function(){if(xar!==void 0)return xar;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return xar=B},{mode:1});var esn;var WF=function(){var B=_.c.apply(this,arguments)||this;B.modernModal=_.k("kevlar_sign_in_modal_modernization");return B};
_.l(WF,_.c);WF.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
WF.prototype.computeShouldHideOldButtons=function(){var B;return!((B=this.data)==null?0:B.button)};
_.mh.Object.defineProperties(WF.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var B,R;if(this.modernModal&&((B=this.data)==null?0:(R=B.button)==null?0:R.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var V,e;return(V=this.data)==null?void 0:(e=V.button)==null?void 0:e.buttonRenderer}}});
_.r([_.E(),_.Z("design:type",Object)],WF.prototype,"data",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],WF.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],WF.prototype,"modernModal",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],WF.prototype,"buttonRendererData",null);
WF=_.r([_.A({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],WF);
_.F(WF,"ytd-modal-with-title-and-button-renderer",function(){if(esn!==void 0)return esn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return esn=B},{mode:1});var XOi;var bh=function(){return _.c.apply(this,arguments)||this};
_.l(bh,_.c);bh.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("page-changed",this.page))};
bh.prototype.pageChangedForBinding=bh.prototype.pageChangedForBinding;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],bh.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],bh.prototype,"page",void 0);_.r([_.XX("page"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bh.prototype,"pageChangedForBinding",null);
bh=_.r([_.A({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],bh);
_.F(bh,"ytd-account-item-section-header-renderer",function(){if(XOi!==void 0)return XOi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return XOi=B},{mode:1});var pOj;var Jt=function(){return _.c.apply(this,arguments)||this};
_.l(Jt,_.c);Jt.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"}}}};
Jt.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Jt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],Jt.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Jt.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!1}),_.Z("design:type",Function)],Jt.prototype,"onAccountItemTap",void 0);
Jt=_.r([_.A({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Jt);
_.F(Jt,"ytd-account-item-section-renderer",function(){if(pOj!==void 0)return pOj;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return pOj=B},{mode:1});var YWN;var hs4;var j0=function(){return _.c.apply(this,arguments)||this};
_.l(j0,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],j0.prototype,"data",void 0);j0=_.r([_.A({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],j0);
_.F(j0,"ytd-accounts-dialog-header-renderer",function(){if(hs4!==void 0)return hs4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return hs4=B},{mode:1});var tfj;var UP=function(){return _.c.apply(this,arguments)||this};
_.l(UP,_.c);UP.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],UP.prototype,"data",void 0);UP=_.r([_.A({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],UP);
_.F(UP,"ytd-google-account-header-renderer",function(){if(tfj!==void 0)return tfj;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return tfj=B},{mode:1});var Nh=function(){return _.c.apply(this,arguments)||this};
_.l(Nh,_.c);Nh.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"}}}};
Nh.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("page-changed",this.page))};
Nh.prototype.pageChangedForBinding=Nh.prototype.pageChangedForBinding;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Nh.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],Nh.prototype,"page",void 0);
_.r([_.XX("page"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nh.prototype,"pageChangedForBinding",null);Nh=_.r([_.A({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Nh);
_.nJ()(Nh,"ytd-account-section-list-renderer",function(){if(YWN===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);YWN=B}B=YWN;return B},{allowedProps:["data"],
mode:1});var Wm6;var G7=function(){var B=_.c.apply(this,arguments)||this;B.enableHandlesAccountMenuSwitcher=_.k("enable_handles_account_menu_switcher");return B};
_.l(G7,_.c);G7.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
G7.prototype.dataChanged=G7.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],G7.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],G7.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.r([_.Yp("#avatar"),_.Z("design:type",Object)],G7.prototype,"avatar",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],G7.prototype,"dataChanged",null);G7=_.r([_.A({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],G7);
_.nJ()(G7,"ytd-active-account-header-renderer",function(){if(Wm6===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);Wm6=B}B=Wm6;return B},{allowedProps:["data"],
mode:1});var bI2;var JQ7;var y2=function(){return _.c.apply(this,arguments)||this};
_.l(y2,_.c);y2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
y2.prototype.onBackTap=function(){_.OI(this.hostElement,"yt-menu-back-tapped")};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],y2.prototype,"data",void 0);y2=_.r([_.A({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],y2);
_.nJ()(y2,"ytd-simple-menu-header-renderer",function(){if(JQ7===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);JQ7=B}B=JQ7;return B},{allowedProps:["data"],
mode:2});var jf4;var S0=function(){return _.c.apply(this,arguments)||this};
_.l(S0,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],S0.prototype,"data",void 0);S0=_.r([_.A({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],S0);
_.F(S0,"ytd-comment-video-thumbnail-header-renderer",function(){if(jf4!==void 0)return jf4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return jf4=B},{mode:1});var U3e;var HF=function(){return _.c.apply(this,arguments)||this};
_.l(HF,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],HF.prototype,"data",void 0);HF=_.r([_.A({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],HF);
_.F(HF,"ytd-abuse-type-selector-renderer",function(){if(U3e!==void 0)return U3e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return U3e=B},{mode:1});var N06;var Mh=function(){return _.c.apply(this,arguments)||this};
_.l(Mh,_.c);Mh.prototype.attached=function(){var B=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){B.additionalContextInput.focusTextInput()})};
Mh.prototype.handleAdditionalContextChanged=function(){var B=this;_.LJ(this,"ytd-report-channel-additional-context-update",function(){B.ytdReduxBehavior.dispatch(_.or({type:"ADDITIONAL_CONTEXT_UPDATED",payload:B.additionalContext}))},300)};
Mh.prototype.updateAdditionalContextFromBinding=function(B){this.additionalContext=B.detail.value};
Mh.prototype.handleAdditionalContextChanged=Mh.prototype.handleAdditionalContextChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],Mh.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",String)],Mh.prototype,"additionalContext",void 0);_.r([_.E({selector:function(B){return B.reportChannelAbuse.additionalContext}}),
_.Z("design:type",String)],Mh.prototype,"additionalContextRedux",void 0);_.r([_.E(),_.Z("design:type",Object)],Mh.prototype,"data",void 0);_.r([_.Yp("yt-text-input-form-field-renderer"),_.Z("design:type",Object)],Mh.prototype,"additionalContextInput",void 0);_.r([_.XX("additionalContext"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mh.prototype,"handleAdditionalContextChanged",null);
Mh=_.r([_.A({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Mh);
_.F(Mh,"ytd-report-channel-modal-additional-context-renderer",function(){if(N06!==void 0)return N06;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return N06=B},{mode:1});var GBi;var ko=function(){var B=_.c.apply(this,arguments)||this;B.nextButtonDisabled=null;B.submitEndpoint=null;B.navigationEndpoint=null;B.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return B};
_.l(ko,_.c);_.p=ko.prototype;_.p.computeNextButtonData=function(B,R,V){var e={};R&&(e.navigationEndpoint=R);V&&(e.serviceEndpoint=V);B&&B.buttonRenderer&&_.M_.extend(e,B.buttonRenderer);return e};
_.p.handleReportChannelModalDisableNextButtonAction=function(B){this.setNextButtonIsDisabled(B)};
_.p.handleReportFormEndpointUpdateAction=function(B){this.setNextButtonIsDisabled(!!B.disableSubmitButton);this.resetEndpointData();B.submitEndpoint?this.submitEndpoint=B.submitEndpoint:B.submitNavigationEndpoint&&(this.navigationEndpoint=B.submitNavigationEndpoint)};
_.p.handleSignalActionSubmitForm=function(){var B,R=Object.keys(((B=this.reportChannelAbuseForm)==null?void 0:B.selectedVideoIds)||{}),V;B=((V=this.reportChannelAbuseForm)==null?void 0:V.additionalContext)||"";var e;V=((e=this.reportChannelAbuseForm)==null?void 0:e.impersonatedChannelUrl)||"";var X;if((X=this.data)==null?0:X.submitEndpoint){R={impersonated_channel_url:V,text:B,video_ids:R};var Y;_.Oz().resolve(_.oC).resolveCommand((Y=this.data)==null?void 0:Y.submitEndpoint,{form:Object.assign({},
R,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.p.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.p.onYtServiceRequestError=function(B){this.setNextButtonIsDisabled(!1);_.VN(this.hostElement,B.detail.error.message)};
_.p.setNextButtonIsDisabled=function(B){this.set("data.nextButton.buttonRenderer.isDisabled",B)};
_.p.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
ko.prototype.onYtServiceRequestError=ko.prototype.onYtServiceRequestError;ko.prototype.onYtServiceRequestCompleted=ko.prototype.onYtServiceRequestCompleted;_.r([_.E(),_.Z("design:type",Object)],ko.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],ko.prototype,"nextButtonDisabled",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],ko.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],ko.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ko.prototype,"submitEndpoint",void 0);_.r([_.E(),_.Z("design:type",Object)],ko.prototype,"navigationEndpoint",void 0);_.r([_.E({selector:function(B){return B.reportChannelAbuse}}),
_.Z("design:type",Object)],ko.prototype,"reportChannelAbuseForm",void 0);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ko.prototype,"onYtServiceRequestCompleted",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ko.prototype,"onYtServiceRequestError",null);
ko=_.r([_.A({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],ko);
_.F(ko,"ytd-report-channel-modal-footer-renderer",function(){if(GBi!==void 0)return GBi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return GBi=B},{mode:1});var yQ7;var Dc=function(){var B=_.c.apply(this,arguments)||this;B.boundOnTapDismissButton=function(){B.closePopup()};
return B};
_.l(Dc,_.c);Dc.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Dc.prototype.handleDataChanged=function(){_.rV(this.hostElement)};
Dc.prototype.closePopup=function(){_.oF(this.hostElement,"yt-close-popup-action")};
Dc.prototype.handleDataChanged=Dc.prototype.handleDataChanged;_.r([_.E(),_.Z("design:type",Object)],Dc.prototype,"boundOnTapDismissButton",void 0);_.r([_.E(),_.Z("design:type",Object)],Dc.prototype,"data",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Dc.prototype,"handleDataChanged",null);Dc=_.r([_.A({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Dc);
_.F(Dc,"ytd-report-channel-modal-header-renderer",function(){if(yQ7!==void 0)return yQ7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return yQ7=B},{mode:1});var SWU;var f9=function(){var B=_.c.apply(this,arguments)||this;B.autoValidate=!1;B.invalid=!1;B.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return B};
_.l(f9,_.c);_.p=f9.prototype;_.p.attached=function(){var B=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){B.channelUrlInput.focusTextInput()})};
_.p.disableNextButton=function(B){_.oF(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[B])};
_.p.handleImpersonatedChannelUrlChanged=function(){var B=this;this.disableNextButton(!0);this.invalid=!1;_.LJ(this,"ytd-report-channel-impersonated-channel-update",function(){var R=B.impersonatedChannelUrl.trim();B.ytdReduxBehavior.dispatch(_.or({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:R}));var V;((V=B.data)==null?0:V.submitEndpoint)&&R&&_.Oz().resolve(_.oC).resolveCommand(B.data.submitEndpoint,{form:{impersonated_channel_url:R,element:B.hostElement}})},500)};
_.p.handleModifyReportFormCommand=function(B){this.invalid=this.get("modifyReportFormCommand.action",B)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.p.updateInvalidFromBinding=function(B){this.invalid=B.detail.value};
_.p.updateImpersonatedChannelUrlFromBinding=function(B){this.impersonatedChannelUrl=B.detail.value};
f9.prototype.handleImpersonatedChannelUrlChanged=f9.prototype.handleImpersonatedChannelUrlChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],f9.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],f9.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],f9.prototype,"autoValidate",void 0);_.r([_.E(),_.Z("design:type",Object)],f9.prototype,"invalid",void 0);
_.r([_.E(),_.Z("design:type",String)],f9.prototype,"impersonatedChannelUrl",void 0);_.r([_.E({selector:function(B){return B.reportChannelAbuse.impersonatedChannelUrl}}),
_.Z("design:type",String)],f9.prototype,"impersonatedChannelUrlRedux",void 0);_.r([_.E(),_.Z("design:type",Object)],f9.prototype,"data",void 0);_.r([_.Yp("#text-input"),_.Z("design:type",Object)],f9.prototype,"channelUrlInput",void 0);_.r([_.XX("impersonatedChannelUrl"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],f9.prototype,"handleImpersonatedChannelUrlChanged",null);
f9=_.r([_.A({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],f9);
_.F(f9,"ytd-report-channel-modal-impersonation-renderer",function(){if(SWU!==void 0)return SWU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return SWU=B},{mode:1});var HI6;var Mfj;var lh=function(){return _.c.apply(this,arguments)||this};
_.l(lh,_.c);lh.prototype.onCheckboxToggled=function(B){var R,V,e=(V=_.D((R=this.data)==null?void 0:R.video,_.Qy))==null?void 0:V.videoId;e&&this.ytdReduxBehavior.dispatch(B.target.checked?_.or({type:"VIDEO_SELECTED",payload:e}):_.or({type:"VIDEO_UNSELECTED",payload:e}))};
lh.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.mh.Object.defineProperties(lh.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var B,R=(B=this.data)==null?void 0:B.video;if(!R)return{};var V;B=(V=_.D(R,_.Qy))==null?void 0:V.navigationEndpoint;if(!B)return R;_.D(B==null?void 0:B.commandMetadata,_.$a)&&(_.D(B.commandMetadata,_.$a).ignoreNavigation=!0);return R}}});
_.r([_.E({reflectToAttribute:!0,selector:function(B,R){return R in B.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.Z("design:type",Boolean)],lh.prototype,"checked",void 0);_.r([_.E(),_.Z("design:type",Object)],lh.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lh.prototype,"video",null);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],lh.prototype,"ytdReduxBehavior",void 0);lh=_.r([_.A({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],lh);
_.F(lh,"ytd-selectable-video-renderer",function(){if(Mfj!==void 0)return Mfj;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Mfj=B},{mode:1});var z7=function(){var B=_.c.apply(this,arguments)||this;B.monitorScroll=!0;return B};
_.l(z7,_.c);z7.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],z7.prototype,"data",void 0);z7=_.r([_.A({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],z7);
_.F(z7,"ytd-selectable-video-list-renderer",function(){if(HI6!==void 0)return HI6;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return HI6=B},{mode:1});var kBU;_.aO("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var ay=function(){return _.c.apply(this,arguments)||this};
_.l(ay,_.c);ay.prototype.onChange=function(B){if(B=_.ii(B).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.k("kevlar_command_handler_migration_killswitch"))_.eO(this.hostElement,B,this.hostElement);else{B=_.h(B);for(var R=B.next();!R.done;R=B.next())this.ytComponentBehavior.resolveCommand(R.value)}};
ay.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
ay.prototype.updateDataToggledFromBinding=function(B){this.set("data.toggled",B.detail.value)};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ay.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ay.prototype,"data",void 0);_.r([_.E({computed:"isEnabled(data)"}),_.Z("design:type",Boolean)],ay.prototype,"enabled",void 0);ay=_.r([_.A({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],ay);
_.F(ay,"ytd-toggle-item-renderer",function(){if(kBU!==void 0)return kBU;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return kBU=B},{mode:1});var D37;var fC4;var lC2;var dJ=function(){var B=_.c.apply(this,arguments)||this;B.setVisible=!1;B.boundOnSubmitButtonClick=function(){B.onSubmitButtonClick()};
B.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return B};
_.l(dJ,_.c);dJ.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}}}}}};
dJ.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
dJ.prototype.onSubmitButtonClick=function(){var B;((B=this.data)==null?0:B.submitEndpoint)&&!_.k("enable_ytc_refunds_submit_form_signal_action")&&_.VD(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
dJ.prototype.handleSignalActionSubmitForm=function(){var B;((B=this.data)==null?0:B.submitEndpoint)&&_.VD(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.mh.Object.defineProperties(dJ.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.hiddenByDefault)&&!this.setVisible}}});
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],dJ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],dJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],dJ.prototype,"setVisible",void 0);_.r([_.E(),_.Z("design:type",Object)],dJ.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],dJ.prototype,"surveyFeedbackData",void 0);_.r([_.E(),_.Z("design:type",Object)],dJ.prototype,"boundOnSubmitButtonClick",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data","setVisible"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],dJ.prototype,"visibilityHidden",null);dJ=_.r([_.fJ({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],dJ);
_.F(dJ,"yt-flow-footer-renderer",function(){if(lC2===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;fC4===void 0&&(fC4=document.createElement("template"));var e=fC4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);lC2=B}B=lC2;return B},{mode:2});var wJ=function(){return _.c.apply(this,arguments)||this};
_.l(wJ,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],wJ.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],wJ.prototype,"data",void 0);_.r([_.E({selector:function(B){return B.ypc.surveyFeedbackData}}),
_.Z("design:type",Object)],wJ.prototype,"surveyFeedbackData",void 0);wJ=_.r([_.A({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],wJ);
_.F(wJ,"ytd-flow-footer-renderer",function(){if(D37!==void 0)return D37;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return D37=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var zs7;var aCn;var T7=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return B};
_.l(T7,_.c);_.p=T7.prototype;_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.d1("multiPageMenuSectionItems")}}};
_.p.handleHideEnclosingAction_=function(B){if(this.data&&this.data.items)for(var R=0;R<this.data.items.length;R++){var V=this.data.items[R].notificationRenderer;if(V&&V.notificationId==B.hideEnclosingAction.notificationId){this.splice("data.items",R,1);_.oF(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&&_.ui(this.hostElement,"hidden",!0)};
_.p.updateMenu_=function(B){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&B&&!B.doNotRefreshInbox){B=this.data.continuations;for(var R=0;R<B.length;R++)if(B[R].invalidationContinuationData){var V=void 0;var e=(V=B[R].invalidationContinuationData)==null?void 0:V.continuation;break}B=_.M_.clone(this.data.continuationUpdateEndpoint||null);B.continuation=e;B.click_tracking_params=this.data.trackingParams;_.VD(this.hostElement,[B])}};
_.p.onServiceRequestCompleted_=function(B,R){if(this.data&&(B=R.actions)){R=0;for(var V=B.length;R<V;R++){var e=_.D(B[R],_.SO5);if(!e)break;if((e.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||e.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&e.continuationItems&&this.data.items){var X=this.data.items.length-1;this.data.items[X].continuationItemRenderer&&this.splice.apply(this,["data.items",X,1].concat(e.continuationItems))}}}};
T7.prototype.onServiceRequestCompleted_=T7.prototype.onServiceRequestCompleted_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],T7.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],T7.prototype,"data",void 0);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],T7.prototype,"onServiceRequestCompleted_",null);T7=_.r([_.fJ({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],T7);
_.nJ()(T7,"yt-multi-page-menu-section-renderer",function(){if(aCn===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;zs7===void 0&&(zs7=document.createElement("template"));var e=zs7;V.call(R,e.content.cloneNode(!0),B.content.firstChild);aCn=B}B=aCn;return B},{allowedProps:["data"],
mode:2});var d3n;var wOo;var xo=function(){return _.c.apply(this,arguments)||this};
_.l(xo,_.c);xo.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.mh.Object.defineProperties(xo.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.progress)==null?0:this.data.progress*100}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],xo.prototype,"data",void 0);_.r([_.K("data.progress"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xo.prototype,"showProgressBar",null);
_.r([_.K("data.progress"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],xo.prototype,"progress",null);xo=_.r([_.fJ({is:"yt-flow-header-renderer",disableElementRegistration:!0})],xo);
_.F(xo,"yt-flow-header-renderer",function(){if(wOo===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;d3n===void 0&&(d3n=document.createElement("template"));var e=d3n;V.call(R,e.content.cloneNode(!0),B.content.firstChild);wOo=B}B=wOo;return B},{mode:2});var T02;var x3i;var L9=function(){return _.c.apply(this,arguments)||this};
_.l(L9,_.c);L9.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],L9.prototype,"data",void 0);L9=_.r([_.fJ({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],L9);
_.F(L9,"yt-post-confirmation-flow-step-renderer",function(){if(x3i===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;T02===void 0&&(T02=document.createElement("template"));var e=T02;V.call(R,e.content.cloneNode(!0),B.content.firstChild);x3i=B}B=x3i;return B},{mode:2});var Lmz;var v2N;var vF=function(){return _.c.apply(this,arguments)||this};
_.l(vF,_.c);
vF.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"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],vF.prototype,"data",void 0);vF=_.r([_.fJ({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],vF);
_.F(vF,"yt-refund-confirmation-flow-step-renderer",function(){if(v2N===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Lmz===void 0&&(Lmz=document.createElement("template"));var e=Lmz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);v2N=B}B=v2N;return B},{mode:2});_.oA(URo);_.oA(N64);var GzU=_.ll({avatarViewModel:_.TP});_.oA(ys4);var S$U=_.ll({commentInteractionViewModel:N64,sharedSubscriptionViewModel:ys4,buttonViewModel:_.qo});_.oA(H7n);_.oA(MuN);_.oA(kzr);_.oA(DRo);_.oA(fzN);var lzi=_.ll({profileIdentityInfoViewModel:_.wHN,profileInfoViewModel:fzN});_.oA(zAm);_.Br(zAm,"yt-profile-card-view-model",{propNames:["data"]});var K9=function(){var B=_.c.apply(this,arguments)||this;B.enableFocusFix=_.k("music_web_enable_focus_on_setting_menu_fix")&&_.KQ("IS_MOBILE_WEB",!1);B.covered=!1;B.hideMenu=!1;B.isCommentNotificationOnProfileCard=!1;B.scrolledByTouch=!1;B.disableBackdropFilter=_.k("web_disable_backdrop_filter");B.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return B};
_.l(K9,_.c);_.p=K9.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 B=this;this.JSC$17873_containerElement.addEventListener("scroll",function(){B.ytRendererBehavior.markDirty()})};
_.p.attributeChanged=function(B,R){B==="menu-style"&&_.oF(this.hostElement,"yt-multi-page-menu-closed-action",[R])};
_.p.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Bc(this,this.focusOnStampFinished))};
_.p.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Bc(this,this.focusOnStampFinished))};
_.p.reset=function(){this.closeJobId&&(_.dV.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.p.focusOnStampFinished=function(B){B.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Bc(this,this.focusOnStampFinished)),this.doFocus())};
_.p.doFocus=function(){var B=_.xob(this.sectionsElement);B.length&&B[0].focus()};
_.p.computeMenuStyle=function(B){return B?B.toLowerCase().replace(/_/g,"-"):""};
_.p.computeIsCommentNotificationOnProfileCard=function(B){return _.k("enable_profile_cards_on_comments")&&B.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.p.computeHideMenu=function(B,R){return B||!(!R||!R.showLoadingSpinner)};
_.p.onPopupClosed=function(){this.isPopUpOpen=!1;_.oF(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.p.onPopupOpened=function(B,R){this.isPopUpOpen=!0;R.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.OI(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.or({type:"CHANNEL_REPORT_RESET"})))};
_.p.onYtNavigate=function(B,R){this.shouldCloseOnNavigateEvent(R.endpoint)&&_.oF(this.hostElement,"yt-close-all-popups-action")};
_.p.handleEndpoint=function(B){B=_.D(B,_.xi);!this.isCommentNotificationOnProfileCard&&B&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17873_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.p.handleActions=function(B){for(var R=0,V=B.length;R<V;R++){var e=_.D(B[R],sho);e&&this.handleGetMultiPageMenuAction(e);(e=_.D(B[R],_.SO5))&&this.handleAppendContinuationItemsAction(e)}};
_.p.onServiceRequestSentOrCompleted=function(B,R){B.detail&&B.detail.endpoint&&this.handleEndpoint(B.detail.endpoint);R.actions&&this.handleActions(R.actions)};
_.p.handleGetMultiPageMenuAction=function(B){var R=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.w(this.submenuElement).appendChild(R);(B=B.menu.multiPageMenuRenderer)&&this.logSubmenu(B);R.data=B;R.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.p.handleAppendContinuationItemsAction=function(B){if(this.data&&B.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&B.continuationItems&&this.data.sections){var R=this.data.sections.length-1;this.data.sections[R].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),R--);if(this.data.sections[R].multiPageMenuNotificationSectionRenderer&&B.continuationItems){B=_.h(B==null?void 0:B.continuationItems);for(var V=B.next();!V.done;V=B.next())if(V=V.value,_.D(V,Ufo)){var e=
void 0,X=void 0,Y=void 0,t=void 0,b=void 0;((e=this)==null?0:(X=e.data)==null?0:(Y=X.sections)==null?0:(t=Y[R])==null?0:(b=t.multiPageMenuNotificationSectionRenderer)==null?0:b.items)&&this.push("data.sections."+R+".multiPageMenuNotificationSectionRenderer.items",V)}else if(_.D(V,_.eET)||_.D(V,_.YQ))this.push("data.sections",V),R++}}};
_.p.logSubmenu=function(B){if(!_.k("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var R=this.ytRendererBehavior.getScreenLayer(),V=_.TE(R),e=_.wT(R);if((B=B.trackingParams)&&V&&e){var X=_.U5(B);_.k("combine_ve_grafts")?_.WK().graftServerVe(B,e,R):_.EV(V,e,X)}}};
_.p.emptySubmenuContainer=function(){for(var B=_.w(this.submenuElement);B.firstChild;)B.removeChild(B.firstChild)};
_.p.onMenuBackTap=function(B){_.OI(this.hostElement,"yt-submenu-closed");B.stopPropagation()};
_.p.onSubmenuClosed=function(B){_.ii(B)!==this.hostElement&&(this.covered=!1,_.OI(this.hostElement,"yt-refit"),B.stopPropagation())};
_.p.onRetrieveLocation=function(B,R){R.hasComments&&(R.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),B.stopPropagation())};
_.p.shouldCloseOnNavigateEvent=function(B){if(!B)return!0;if(_.D(B,_.RPh)||_.D(B,_.VH_)||_.D(B,_.BpR)||_.D(B,_.ie))return!1;var R;return((R=_.D(B==null?void 0:B.commandMetadata,_.$a))==null?0:R.ignoreNavigation)?!1:!0};
_.p.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.p.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.p.refitAfterRender=function(){var B=this;_.gB(this,function(){_.OI(B.hostElement,"yt-refit")})};
K9.prototype.refitAfterRender=K9.prototype.refitAfterRender;K9.prototype.onRetrieveLocation=K9.prototype.onRetrieveLocation;K9.prototype.onSubmenuClosed=K9.prototype.onSubmenuClosed;K9.prototype.onMenuBackTap=K9.prototype.onMenuBackTap;K9.prototype.onServiceRequestSentOrCompleted=K9.prototype.onServiceRequestSentOrCompleted;K9.prototype.onYtNavigate=K9.prototype.onYtNavigate;K9.prototype.onPopupOpened=K9.prototype.onPopupOpened;K9.prototype.onPopupClosed=K9.prototype.onPopupClosed;
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],K9.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],K9.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],K9.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],K9.prototype,"enableFocusFix",void 0);_.r([_.E(),_.Z("design:type",Object)],K9.prototype,"covered",void 0);_.r([_.E({computed:"computeHideMenu(covered, data)"}),_.Z("design:type",Object)],K9.prototype,"hideMenu",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Z("design:type",String)],K9.prototype,"menuStyle",void 0);
_.r([_.E({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Z("design:type",Object)],K9.prototype,"isCommentNotificationOnProfileCard",void 0);_.r([_.E(),_.Z("design:type",Boolean)],K9.prototype,"isPopUpOpen",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],K9.prototype,"scrolledByTouch",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],K9.prototype,"disableBackdropFilter",void 0);
_.r([_.Yp("#sections"),_.Z("design:type",HTMLElement)],K9.prototype,"sectionsElement",void 0);_.r([_.Yp("#spinner"),_.Z("design:type",HTMLElement)],K9.prototype,"spinnerElement",void 0);_.r([_.Yp("#header"),_.Z("design:type",HTMLElement)],K9.prototype,"headerElement",void 0);_.r([_.Yp("#container"),_.Z("design:type",HTMLElement)],K9.prototype,"JSC$17873_containerElement",void 0);_.r([_.Yp("#submenu"),_.Z("design:type",HTMLElement)],K9.prototype,"submenuElement",void 0);
_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K9.prototype,"onPopupClosed",null);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],K9.prototype,"onPopupOpened",null);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],K9.prototype,"onYtNavigate",null);
_.r([_.R_("yt-service-request-completed"),_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],K9.prototype,"onServiceRequestSentOrCompleted",null);_.r([_.R_("yt-menu-back-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],K9.prototype,"onMenuBackTap",null);
_.r([_.R_("yt-submenu-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],K9.prototype,"onSubmenuClosed",null);_.r([_.R_("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],K9.prototype,"onRetrieveLocation",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K9.prototype,"refitAfterRender",null);
K9=_.r([_.A({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],K9);
_.F(K9,"ytd-multi-page-menu-renderer",function(){if(bI2!==void 0)return bI2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return bI2=B},{mode:1});var Km7;var Iy=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return B};
_.l(Iy,_.c);_.p=Iy.prototype;_.p.created=function(){this.showTooltips=!0};
_.p.computeAccessibility_=function(B){return this.get("accessibility.accessibilityData",B)||null};
_.p.onTap=function(){var B=_.Bz(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(B&&B.length===1&&B[0])_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var R;if((R=this.data)==null?0:R.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var V;((V=this.data)==null?0:V.menuRequest)&&_.VD(this.hostElement,[this.data.menuRequest])}}};
_.p.handleTopbarMenuClosedAction=function(B){var R,V;(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(B)===((R=this.data)==null?void 0:(V=R.icon)==null?void 0:V.iconType)&&this.toggleIconState(!1)};
_.p.toggleIconState=function(B){_.k("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=B)};
_.p.handleUpdateTopbarAvatarAction=function(B){var R;B=(R=_.D(B,IV4))==null?void 0:R.avatarUrl;var V,e;R=(V=this.data)==null?void 0:(e=V.avatar)==null?void 0:e.thumbnails;B&&R&&(V={thumbnails:[Object.assign({},R[0],{url:B})]},this.set("data.avatar",V))};
_.mh.Object.defineProperties(Iy.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.w(this.hostElement).querySelector("#button")}}});
Iy.prototype.onTap=Iy.prototype.onTap;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Iy.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],Iy.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.yeh.YtButtonBehavior),_.Z("design:type",Object)],Iy.prototype,"ytButtonBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Iy.prototype,"data",void 0);
_.r([_.Yp("yt-icon-button#button"),_.Z("design:type",Object)],Iy.prototype,"iconButton",void 0);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Iy.prototype,"onTap",null);Iy=_.r([_.A({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Iy);
_.F(Iy,"ytd-topbar-menu-button-renderer",function(){if(Km7!==void 0)return Km7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Km7=B},{mode:1});var ICU;var EP=function(){return _.c.apply(this,arguments)||this};
_.l(EP,_.c);EP.prototype.getSelected=function(){return this.reasons.selected};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],EP.prototype,"data",void 0);_.r([_.Yp("#reasons"),_.Z("design:type",Object)],EP.prototype,"reasons",void 0);EP=_.r([_.A({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],EP);
_.F(EP,"ytd-ad-feedback-content",function(){if(ICU!==void 0)return ICU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ICU=B},{mode:1});var E22;var Q2=function(){return _.c.apply(this,arguments)||this};
_.l(Q2,_.c);_.p=Q2.prototype;_.p.onPopupOpened=function(){_.oF(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.p.computeConfirmButton=function(B){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:B.confirmLabel}};
_.p.computeCancelButton=function(B){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:B.cancelLabel}};
_.p.onConfirmTap=function(){var B=this.content.getSelected();B!==void 0&&(B=this.data.reasons[B].endpoint)&&(_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}}),_.oF(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.p.sendFeedbackSubmitToastAction=function(){var B;(B=this.data)!=null&&B.completionMessage&&_.oF(this.hostElement,"yt-open-popup-action",[_.mP(this.data.completionMessage),this])};
_.p.onCancelTap=function(){_.oF(this.hostElement,"yt-close-popup-action")};
Q2.prototype.onPopupOpened=Q2.prototype.onPopupOpened;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Q2.prototype,"data",void 0);_.r([_.Yp("#content"),_.Z("design:type",Object)],Q2.prototype,"content",void 0);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Q2.prototype,"onPopupOpened",null);
Q2=_.r([_.A({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Q2);
_.F(Q2,"ytd-ad-feedback-renderer",function(){if(E22!==void 0)return E22;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return E22=B},{mode:1});var Qf7;var qh=function(){return _.c.apply(this,arguments)||this};
_.l(qh,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qh.prototype,"data",void 0);qh=_.r([_.A({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],qh);
_.F(qh,"ytd-ad-info-dialog-content",function(){if(Qf7!==void 0)return Qf7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Qf7=B},{mode:1});var qW2;var cF=function(){return _.c.apply(this,arguments)||this};
_.l(cF,_.c);cF.prototype.computeConfirmButton=function(B){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:B.confirmLabel}};
cF.prototype.onConfirmTap=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
cF.prototype.computeShouldShowTitle=function(){var B;return!((B=this.data)==null||!B.title)};
cF.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.Oz().resolve(_.oC).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
cF.prototype.onPopupClosed=cF.prototype.onPopupClosed;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cF.prototype,"data",void 0);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],cF.prototype,"onPopupClosed",null);cF=_.r([_.A({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],cF);
_.F(cF,"ytd-ad-info-dialog-renderer",function(){if(qW2!==void 0)return qW2;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return qW2=B},{mode:1});var cQU;var At=function(){var B=_.c.apply(this,arguments)||this;B.actionButtonClass="action-button";B.dismissButtonId="dismiss-button";B.dialogDismiss=!0;return B};
_.l(At,_.c);_.p=At.prototype;_.p.computeInPlayer=function(B){return(B==null?void 0:B.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.p.computedLogo=function(){var B,R;return this.isDarkTheme()?(B=this.data)==null?void 0:B.logoDark:(R=this.data)==null?void 0:R.logo};
_.p.computedHeaderImage=function(){var B,R;return this.isDarkTheme()?(B=this.data)==null?void 0:B.headerImageDark:(R=this.data)==null?void 0:R.headerImage};
_.p.computeLogoIconId=function(){var B,R,V,e=(B=this.computedLogo())==null?void 0:(R=B.sources)==null?void 0:(V=R[0])==null?void 0:V.height;return e&&e%31===0?"logo-icon-with-padding":"logo-icon"};
_.p.computeLogoIconHeight=function(){var B,R,V,e=(B=this.computedLogo())==null?void 0:(R=B.sources)==null?void 0:(V=R[0])==null?void 0:V.height;return e&&e%31===0?"31":"24"};
_.p.onPopupClosed=function(){_.Oz().resolve(_.Ol).dispose()};
_.p.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.p.onShow=function(){this.inPlayer&&_.tz(6)};
_.p.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var B=0;B<this.data.impressionEndpoints.length;B++){var R=_.D(this.data.impressionEndpoints[B],_.aT);R&&this.ytComponentBehavior.resolveCommand(R)}};
_.p.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.oF(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.mh.Object.defineProperties(At.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var B,R;return!((B=this.data)==null||!B.headerImageDark)&&!((R=this.data)==null||!R.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.secondaryButton)}}});
At.prototype.onPopupClosed=At.prototype.onPopupClosed;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],At.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.vD.YtVisibilityBehavior),_.Z("design:type",Object)],At.prototype,"ytVisibilityBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],At.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],At.prototype,"actionButtonClass",void 0);_.r([_.E(),_.Z("design:type",Object)],At.prototype,"dismissButtonId",void 0);_.r([_.E(),_.Z("design:type",Object)],At.prototype,"dialogDismiss",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],At.prototype,"hasHeaderImage",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],At.prototype,"hasPremiumButton",null);
_.r([_.E({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Z("design:type",Boolean)],At.prototype,"inPlayer",void 0);_.r([_.Yp("#dismiss-button"),_.Z("design:type",HTMLElement)],At.prototype,"dismissButton",void 0);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],At.prototype,"onPopupClosed",null);At=_.r([_.A({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],At);
_.F(At,"ytd-enforcement-message-view-model",function(){if(cQU!==void 0)return cQU;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return cQU=B},{mode:1});var AQr;var iIe;var ih=function(){var B=_.c.apply(this,arguments)||this;B.TEST_ONLY={immediateValidation:function(){B.immediateValidation()},
onValidationResponse:function(R){B.onValidationResponse(R)},
onGenerateHandleFromNameResponse:function(R){B.onGenerateHandleFromNameResponse(R)}};
return B};
_.l(ih,_.c);_.p=ih.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(B){this.handleDir=this.getHandleDir(B);this.handleInput.value=B;this.validationState={status:"PENDING"};this.immediateValidation()};
_.p.getHandleDir=function(B){var R=B===""&&!1;return(R=_.ft2.test.call(_.ft2,B))?"rtl":"ltr"};
_.p.onDataChanged=function(){var B,R;this.handleDir=this.getHandleDir((R=(B=this.data)==null?void 0:B.handle)!=null?R:"");var V;this.validationState=((V=this.data)==null?0:V.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var e;((e=this.data)==null?0:e.validateOnInit)&&this.immediateValidation()};
_.p.stopPropagation=function(B){B.stopPropagation()};
_.p.onInput=function(){var B;this.handleDir=this.getHandleDir((B=this.handleInput.value)!=null?B:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.p.onFocusout=function(B){this.handleInput.contains(B.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.p.delayedValidation=function(){var B,R;this.debouncedValidation((R=(B=this.data)==null?void 0:B.validationDelayMs)!=null?R:1E3)};
_.p.immediateValidation=function(){this.debouncedValidation(0)};
_.p.debouncedValidation=function(B){var R=this;_.LJ(this,"debouncedValidation",function(){var V,e=R.staticValidation((V=R.handleInput.value)!=null?V:"");if(e!==void 0)R.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:e};else{var X;if((X=R.data)!=null&&X.validateChannelHandleCommand){R.validationState={status:"LOADING"};var Y;R.ytComponentBehavior.resolveCommand(R.data.validateChannelHandleCommand,{form:{handle:(Y=R.handleInput.value)!=null?Y:""},commandController:{onSuccess:function(t,
b){R.onValidationResponse(b)},
onServerError:function(t,b){R.onValidationServerError(b)}}})}else R.handleUnexpectedValidationError(new _.H8("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",R.data))}},B)};
_.p.staticValidation=function(B){var R;if(((R=this.data)==null?void 0:R.channelHandleStaticValidationParams)!==void 0){R=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(B)&&R.validValueRegexpErrorMessage!==void 0)return R.validValueRegexpErrorMessage;if(R.minLength!==void 0&&B.length<R.minLength&&R.minLengthErrorMessage!==void 0)return R.minLengthErrorMessage;if(R.maxLength!==void 0&&B.length>R.maxLength&&R.maxLengthErrorMessage!==void 0)return R.maxLengthErrorMessage}};
_.p.onValidationResponse=function(B){var R=_.D(B.result,EI4);R===void 0?this.handleUnexpectedValidationError(new _.H8("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",B)):this.handleValidationResultRenderer(R)};
_.p.onValidationServerError=function(B){this.handleUnexpectedValidationError(new _.H8("ValidateChannelHandle request failed.",B))};
_.p.handleValidationResultRenderer=function(B){if(B.handle===void 0)this.handleUnexpectedValidationError(new _.H8("ChannelHandleValidationResultRenderer does not contain handle.",B));else if(B.handle===this.handleInput.value)switch(B.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:B.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:B.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.H8("Unrecognized ChannelHandleValidationResult",B));break;default:_.Ym(B.result)}};
_.p.handleUnexpectedValidationError=function(B){var R;this.validationState={status:"UNKNOWN",handle:(R=this.handleInput.value)!=null?R:""};_.KE(B)};
_.p.stopEventPropagation=function(B){B.stopPropagation()};
_.p.updateHandleOnChannelNameInputChange=function(B){if(!this.wasEdited){var R,V;this.debouncedGenerateHandleFromName(B,(V=(R=this.data)==null?void 0:R.validationDelayMs)!=null?V:1E3)}};
_.p.debouncedGenerateHandleFromName=function(B,R){var V=this;_.LJ(this,"debouncedGenerateHandleFromName",function(){var e;(e=V.data)!=null&&e.validateChannelHandleCommand?V.ytComponentBehavior.resolveCommand(V.data.validateChannelHandleCommand,{form:{name:B},commandController:{onSuccess:function(X,Y){V.onGenerateHandleFromNameResponse(Y)},
onServerError:function(X,Y){_.KE(new _.H8("Error calling GenerateHandleFromName",Y))}}}):_.KE(new _.H8("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",V.data))},R)};
_.p.onGenerateHandleFromNameResponse=function(B){this.wasEdited||((B=_.D(B.result,Qh4))?this.setHandleInputValue(B.handle):_.KE(new _.H8("Invalid results when generate handle from name")))};
_.mh.Object.defineProperties(ih.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var B;if(B=this.validationState)B=this.validationState,B=B.status==="OK"||B.status==="UNKNOWN";if(B)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var B;if(((B=this.validationState)==null?void 0:B.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 B,R=(B=this.channelHandleEntity)==null?void 0:B.handleEdit;this.handleDir=this.getHandleDir(R!=null?R:"");return R}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var B,R;if(((B=this.data)==null?void 0:(R=B.channelHandleStaticValidationParams)==null?void 0:R.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
ih.prototype.stopEventPropagation=ih.prototype.stopEventPropagation;ih.prototype.onDataChanged=ih.prototype.onDataChanged;ih.prototype.applyHandleEdit=ih.prototype.applyHandleEdit;ih.prototype.onValueChanged=ih.prototype.onValueChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ih.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],ih.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ih.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],ih.prototype,"wasEdited",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],ih.prototype,"handleDir",void 0);_.r([_.Yp("#handle-input"),_.Z("design:type",Object)],ih.prototype,"handleInput",void 0);_.r([_.E(),_.K("validationState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ih.prototype,"value",null);
_.r([_.XX("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ih.prototype,"onValueChanged",null);_.r([_.K("validationState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ih.prototype,"errorIndicator",null);_.r([_.E({reflectToAttribute:!0}),_.K("errorIndicator"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ih.prototype,"borderErrorIndicator",null);
_.r([_.E({selectorArgs:["data.channelHandleEntityKey"],selector:function(B,R){return _.p7(B.entities,"channelHandle",R)}}),
_.Z("design:type",Object)],ih.prototype,"channelHandleEntity",void 0);_.r([_.K("channelHandleEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ih.prototype,"handleEdit",null);_.r([_.XX("handleEdit"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ih.prototype,"applyHandleEdit",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ih.prototype,"onDataChanged",null);
_.r([_.K("data.channelHandleStaticValidationParams.validValueRegexp"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ih.prototype,"validValueRegexp",null);_.r([_.R_("yt-service-request-sent"),_.R_("yt-service-request-completed"),_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],ih.prototype,"stopEventPropagation",null);ih=_.r([_.A({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],ih);
_.F(ih,"ytd-channel-handle-input-renderer",function(){if(iIe!==void 0)return iIe;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return iIe=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var sP=function(){var B=_.c.apply(this,arguments)||this;B.data=null;B.errorMessage=null;B.isLoading=!0;B.hideContainer=!1;B.enableNewChannelCreationOnIdForAll=_.k("enable_new_channel_creation_for_id4all");B.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"};B.testOnly={setErrorMessage:function(R){B.resetErrorState();
B.setErrorState(R)}};
return B};
_.l(sP,_.c);_.p=sP.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 B;((B=this.zeroStepErrorMessageEntity)==null?0:B.value)&&this.set("errorMessage",_.s$(this.zeroStepErrorMessageEntity.value))};
_.p.onCreateTap=function(){var B=this;if(this.data&&this.data.channelCreationEndpoint){var R,V;if(!((R=this.data.createChannelButton)==null?0:(V=R.buttonRenderer)==null?0:V.isDisabled)){var e;if((e=this.nameInput)!=null&&e.value){this.setLoadingState();var X,Y;R=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((Y=this.handleInput)==null?void 0:Y.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:R,commandController:{onSuccess:function(t,b){B.onChannelCreationEndpointSuccess(b);B.obakeImageSource&&_.dn("channelCreatedWithObakeImage",{imageSourceType:B.obakeImageSource})},
onServerError:function(){B.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.p.endpointRequiresServiceRequestAction=function(B){return!!_.D(B,_.vS)||!!_.D(B,IV4)};
_.p.isNavigateAction=function(B){var R;return!!_.D(B,_.cA)||!!_.D((R=_.D(B,ATo))==null?void 0:R.command,_.cA)};
_.p.isPlaylistAction=function(B){return!!_.D(B,_.Lt)||!!_.D(B,_.qf)};
_.p.onChannelCreationEndpointSuccess=function(B){if(B.createChannelError){var R;this.setErrorState((R=B.createChannelError)==null?void 0:R.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.k("enable_secondary_channel_creation_form")&&B.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(B.navigationEndpoint);if(B.actions){R=_.h(B.actions);for(var V=R.next();!V.done;V=R.next())if(V=V.value,this.endpointRequiresServiceRequestAction(V)&&this.ytComponentBehavior.resolveCommand(V),
this.isNavigateAction(V)){var e=void 0;V=_.D((e=_.D(V,ATo))==null?void 0:e.command,_.cA);e=void 0;this.isPlaylistAction((e=V)==null?void 0:e.endpoint)&&(_.oF(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),e=void 0,this.ytComponentBehavior.resolveCommand((e=V)==null?void 0:e.endpoint))}}B.actions&&B.actions.some(function(X){var Y;return _.D(X,_.cA)||_.D((Y=_.D(X,ATo))==null?void 0:Y.command,_.cA)})||_.oF(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 B,R,V;if(!((B=this.data)==null?0:(R=B.cancelButton)==null?0:(V=R.buttonRenderer)==null?0:V.isDisabled)){var e,X,Y;B=(e=this.data)==null?void 0:(X=e.cancelButton)==null?void 0:(Y=X.buttonRenderer)==null?void 0:Y.command;if(!B||!_.D(B,_.L1_)){var t;this.nameInput&&((t=this.data)==null?0:t.name)&&(this.nameInput.value=this.data.name);var b;this.handleInput&&((b=this.data)==null?0:b.channelHandleInput)&&(this.handleInput.data=_.D(this.data.channelHandleInput,qr4));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 B,R,V;((B=this.data)==null?0:(R=B.clearProfilePhotoButton)==null?0:(V=R.buttonRenderer)==null?0:V.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.p.onEditAvatarTap=function(){var B,R,V;((B=this.data)==null?0:(R=B.editAvatarButton)==null?0:(V=R.buttonRenderer)==null?0:V.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 B;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((B=this.data)==null?0:B.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.p.setErrorState=function(B){this.resetErrorState();if(B)this.set("errorMessage",B);else{var R;if((R=this.zeroStepErrorMessageEntity)==null?0:R.value)this.set("errorMessage",_.s$(this.zeroStepErrorMessageEntity.value));else{var V;((V=this.data)==null?0:V.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.p.fetchImageBlobWithAlr=function(B,R){R=R===void 0?5:R;var V=this,e,X,Y,t,b;return _.W(function(J){switch(J.nextAddress){case 1:return _.U(J,fetch(B,{method:"GET",mode:"cors"}),2);case 2:e=J.yieldResult;if(e.ok){J.jumpTo(3);break}if(R===0)throw Error();X=V.addJitter(Math.pow(2,5-R));return _.U(J,new Promise(function(G){setTimeout(G,X*1E3)}),4);
case 4:return J.return(V.fetchImageBlobWithAlr(B,R-1));case 3:if(!e.headers.get("content-type").split(";").some(function(G){return G.trim()==="text/plain"})){J.jumpTo(5);
break}Y=V;t=Y.fetchImageBlobWithAlr;return _.U(J,e.text(),6);case 6:return J.return(t.call(Y,J.yieldResult,R-1));case 5:return _.U(J,e.blob(),7);case 7:return b=J.yieldResult,J.return(b)}})};
_.p.addJitter=function(B){var R=B*.3*Math.random();Math.random()>.5&&(R*=-1);return B+R};
_.p.openProfilePicturePicker=function(){var B=this,R,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1){R=B.data.scottyUploadUrl;if(!R)return t.return();V=document.documentElement.hasAttribute("dark");e=document.body.style.colorScheme;V&&(document.body.style.colorScheme="dark");X=s6m(Fgi(iUe(Kg4(V?"dark":"light")),function(b){var J,G,y,S,M;return _.W(function(f){if(f.nextAddress==1)return J=_.i9(Xxe(new fH(b.photoUrl,!1)).build(),"alr","yes"),B.obakeImageSource=B.pictureChangeSourceToObakeImageSourceType(b.photoSource),
_.en(f,2),B.setLoadingState(),_.U(f,B.fetchImageBlobWithAlr(J),4);if(f.nextAddress!=2)return G=f.yieldResult,y=new FileReader,y.addEventListener("load",function(){var z,T,L,Q,q,m;return _.W(function(g){if(g.nextAddress==1){if(G.size>15728640)return B.setErrorState((z=B.data)==null?void 0:z.imageSizeErrorMessage),_.KE(Error("il")),g.return();if(!y.result)return B.setErrorState((T=B.data)==null?void 0:T.genericImageLoadErrorMessage),_.KE(Error("jl")),g.return();L=y.result;_.en(g,2);return _.U(g,azN(G,
R),4)}if(g.nextAddress!=2)return Q=g.yieldResult,B.handleImageUpdatedAction(L,Q),B.resetErrorState(),_.c8(g,0);q=_.WR(g);B.setErrorState((m=B.data)==null?void 0:m.uploadErrorMessage);if(q instanceof Error)_.Tn(q);else{var Vu=new _.H8(JSON.stringify(q));_.Tn(Vu)}_.b3(g)})}),y.readAsDataURL(G),_.c8(f,0);
S=_.WR(f);B.setErrorState((M=B.data)==null?void 0:M.genericImageLoadErrorMessage);S instanceof Error?_.Tn(S):_.v5(new _.H8(JSON.stringify(S)));_.b3(f)})}),function(){B.hideContainer=!1;
document.body.style.colorScheme=e});
_.en(t,2);return _.U(t,X.openPicker(),4)}if(t.nextAddress!=2)return _.c8(t,0);_.WR(t);B.setErrorState((Y=B.data)==null?void 0:Y.selectImageErrorMessage);_.b3(t)})};
_.p.pictureChangeSourceToObakeImageSourceType=function(B){switch(B){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.p.logScreenVe=function(){_.py(_.WK(),124448)};
_.p.graftServerVe=function(){var B=_.wT(),R,V,e=(R=this.data)==null?void 0:(V=R.loggingDirectives)==null?void 0:V.trackingParams;e&&B&&(this.channelCreationFormVe=_.WK().graftServerVe(e,B),B={visualElement:this.channelCreationFormVe},_.hJ().reportShown(B))};
_.p.isNameChanged=function(B){var R;return((R=this.data)==null?void 0:R.name)!==B};
_.p.isHandleChanged=function(B){var R,V=_.D((R=this.data)==null?void 0:R.channelHandleInput,qr4);return V&&B?V.handle!==B:!1};
_.p.handleImageUpdatedAction=function(B,R){this.hideContainer=!1;this.previewDataUrl=B;this.encryptedBlobId=R};
_.p.handleImageSelectionErrorAction=function(B){this.hideContainer=!1;this.setErrorState(B)};
_.p.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.p.showContainer=function(){this.hideContainer=!1};
_.p.maybeWipeZeroStepErrorMessage=function(){var B,R=(B=this.data)==null?void 0:B.zeroStepErrorMessageEntityKey,V;R&&((V=this.zeroStepErrorMessageEntity)==null?0:V.value)&&this.ytdReduxBehavior.dispatch(_.SX("stringEntity",R,{key:R,value:""}))};
_.mh.Object.defineProperties(sP.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 B;return((B=this.photoThumbnail)==null?0:B.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 B;return!((B=this.data)==null||!B.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.descriptionInfo}}});
sP.prototype.dataChanged=sP.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],sP.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],sP.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],sP.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],sP.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],sP.prototype,"errorMessage",void 0);
_.r([_.E(),_.Z("design:type",Object)],sP.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",String)],sP.prototype,"previewDataUrl",void 0);_.r([_.E(),_.Z("design:type",Number)],sP.prototype,"obakeImageSource",void 0);_.r([_.E(),_.Z("design:type",Object)],sP.prototype,"hideContainer",void 0);_.r([_.Yp("#title-input"),_.Z("design:type",Object)],sP.prototype,"nameInput",void 0);_.r([_.Yp("#handle-input"),_.Z("design:type",Object)],sP.prototype,"handleInput",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],sP.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.r([_.E({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.NhK}),_.Z("design:type",Object)],sP.prototype,"zeroStepErrorMessageEntity",void 0);_.r([_.K("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sP.prototype,"photoThumbnail",null);
_.r([_.K("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sP.prototype,"userSetPhotoThumbnailUrl",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],sP.prototype,"hideProfilePhotoButtonLayer",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],sP.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.r([_.bp("data","zeroStepErrorMessageEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sP.prototype,"dataChanged",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sP.prototype,"description",null);sP=_.r([_.A({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],sP);
_.F(sP,"ytd-channel-creation-dialog-renderer",function(){if(AQr!==void 0)return AQr;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return AQr=B},{mode:1});var sfm;var Fe=function(){var B=_.c.apply(this,arguments)||this;B.isLoading=!1;B.isDisabled=!1;return B};
_.l(Fe,_.c);Fe.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Fe.prototype.updateDisabled=function(){var B;this.isDisabled=this.isLoading||((B=this.handleInput)==null?void 0:B.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Fe.prototype.onSaveClick=function(){var B=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var R;((R=this.data)==null?void 0:R.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var V;if((V=B.data)==null?0:V.nextEndpoint){var e;B.ytComponentBehavior.resolveCommand((e=B.data)==null?void 0:e.nextEndpoint)}else B.isLoading=
!1,B.closeDialog()},
onServerError:function(){B.isLoading=!1;B.handleInput.validate();var V;B.errorMessage=(V=B.data)==null?void 0:V.errorMessage}}}))}};
Fe.prototype.closeDialog=function(){_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
Fe.prototype.updateDisabled=Fe.prototype.updateDisabled;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Fe.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Fe.prototype,"data",void 0);_.r([_.Yp("#handle-input"),_.Z("design:type",Object)],Fe.prototype,"handleInput",void 0);_.r([_.XX("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fe.prototype,"updateDisabled",null);
Fe=_.r([_.A({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Fe);
_.F(Fe,"ytd-channel-handle-edit-dialog-renderer",function(){if(sfm!==void 0)return sfm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return sfm=B},{mode:1});var Fm6;var rJ=function(){return _.c.apply(this,arguments)||this};
_.l(rJ,_.c);rJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],rJ.prototype,"data",void 0);rJ=_.r([_.A({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],rJ);
_.F(rJ,"ytd-channel-switcher-footer-renderer",function(){if(Fm6!==void 0)return Fm6;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Fm6=B},{mode:1});var rQ2;var g2n;var gJ=function(){return _.c.apply(this,arguments)||this};
_.l(gJ,_.c);gJ.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
gJ.prototype.onIronChange=gJ.prototype.onIronChange;_.r([_.E(),_.Z("design:type",Object)],gJ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!1}),_.Z("design:type",Function)],gJ.prototype,"onDontAskAgainChanged",void 0);_.r([_.Yp("#checkbox"),_.Z("design:type",Object)],gJ.prototype,"checkbox",void 0);_.r([_.R_("iron-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gJ.prototype,"onIronChange",null);
gJ=_.r([_.A({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],gJ);
_.F(gJ,"ytd-identity-prompt-footer-renderer",function(){if(g2n!==void 0)return g2n;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return g2n=B},{mode:1});var Zc=function(){var B=_.c.apply(this,arguments)||this;B.dontAskAgain=!1;B.showPopup=!1;B.boundDontAskAgainChanged=function(R){B.dontAskAgainChanged(R)};
B.boundOnAccountItemTap=function(R){B.onAccountItemTap(R)};
return B};
_.l(Zc,_.c);_.p=Zc.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 B=this;_.w(this.hostElement).querySelector("#container").addEventListener("scroll",function(){B.ytRendererBehavior.markDirty()})};
_.p.dontAskAgainChanged=function(B){this.dontAskAgain=B};
_.p.onAccountItemTap=function(B){if(B){var R={};this.dontAskAgain&&(R={dont_ask_again:this.dontAskAgain});_.TF(B,R)}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.p.redirectOnlyAccount=function(B){B.sections&&B.sections.length>0&&(B=_.D(B.sections[0],_.NXa),(B==null?0:B.contents)&&(B==null?void 0:B.contents.length)<=1?(B=_.FW(window.location.href),(B==null?0:B.next)&&_.zWK(B.next)?_.TF(B.next):_.TF("/")):this.showPopup=!0)};
Zc.prototype.dataChanged=Zc.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Zc.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!1}),_.Z("design:type",Object)],Zc.prototype,"dontAskAgain",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Zc.prototype,"showPopup",void 0);_.r([_.E({reflectToAttribute:!1}),_.Z("design:type",Object)],Zc.prototype,"boundDontAskAgainChanged",void 0);_.r([_.E({reflectToAttribute:!1}),_.Z("design:type",Object)],Zc.prototype,"boundOnAccountItemTap",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zc.prototype,"dataChanged",null);
Zc=_.r([_.A({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Zc);
_.F(Zc,"ytd-channel-switcher-renderer",function(){if(rQ2!==void 0)return rQ2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return rQ2=B},{mode:1});var ZIo;var m$=function(){return _.c.apply(this,arguments)||this};
_.l(m$,_.c);_.mh.Object.defineProperties(m$.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.r([_.E(),_.Z("design:type",Object)],m$.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],m$.prototype,"steps",null);m$=_.r([_.A({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],m$);
_.F(m$,"ytd-channel-transfer-stepper-renderer",function(){if(ZIo!==void 0)return ZIo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ZIo=B},{mode:1});var m34;var $o=function(){var B=_.c.apply(this,arguments)||this;B.data=null;B.isError=!1;B.isLoading=!1;return B};
_.l($o,_.c);_.p=$o.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(B){return B?B.givenNameValue+" "+B.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)};
$o.prototype.onYtServiceRequestError=$o.prototype.onYtServiceRequestError;$o.prototype.onYtServiceRequestSent=$o.prototype.onYtServiceRequestSent;$o.prototype.dataChanged=$o.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$o.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$o.prototype,"data",void 0);
_.r([_.E({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Z("design:type",String)],$o.prototype,"profileName",void 0);_.r([_.E(),_.Z("design:type",Object)],$o.prototype,"isError",void 0);_.r([_.E(),_.Z("design:type",Object)],$o.prototype,"isLoading",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$o.prototype,"dataChanged",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],$o.prototype,"onYtServiceRequestSent",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],$o.prototype,"onYtServiceRequestError",null);$o=_.r([_.A({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],$o);
_.F($o,"ytd-channel-warm-welcome-cont-renderer",function(){if(m34!==void 0)return m34;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return m34=B},{mode:1});var $34;var C9=function(){var B=_.c.apply(this,arguments)||this;B.data=null;return B};
_.l(C9,_.c);C9.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
C9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],C9.prototype,"data",void 0);C9=_.r([_.A({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],C9);
_.F(C9,"ytd-channel-warm-welcome-renderer",function(){if($34!==void 0)return $34;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return $34=B},{mode:1});var C62;var PF=function(){return _.c.apply(this,arguments)||this};
_.l(PF,_.c);_.mh.Object.defineProperties(PF.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.authorThumbnail)||{}}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],PF.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PF.prototype,"thumbnailDetails",null);PF=_.r([_.A({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],PF);
_.F(PF,"ytd-comment-preview-renderer",function(){if(C62!==void 0)return C62;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return C62=B},{mode:1});var P66;var n9=function(){return _.c.apply(this,arguments)||this};
_.l(n9,_.c);n9.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.mh.Object.defineProperties(n9.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.submitButton}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],n9.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],n9.prototype,"submitButton",null);n9=_.r([_.A({is:"ytd-notice-renderer",disableElementRegistration:!0})],n9);
_.F(n9,"ytd-notice-renderer",function(){if(P66!==void 0)return P66;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return P66=B},{mode:1});var n24;var uh=function(){return _.c.apply(this,arguments)||this};
_.l(uh,_.c);uh.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],uh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],uh.prototype,"data",void 0);uh=_.r([_.A({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],uh);
_.F(uh,"ytd-preview-comment-dialog-content",function(){if(n24!==void 0)return n24;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return n24=B},{mode:1});var uqe;var OP=function(){return _.c.apply(this,arguments)||this};
_.l(OP,_.c);OP.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
OP.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],OP.prototype,"data",void 0);OP=_.r([_.A({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],OP);
_.F(OP,"ytd-preview-comment-dialog-renderer",function(){if(uqe!==void 0)return uqe;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return uqe=B},{mode:1});var OIn;var ogm=_.k("web_button_rework")&&_.KQ("BUTTON_REWORK")||_.k("web_button_rework_with_live"),ox=function(){var B=_.c.apply(this,arguments)||this;B.selectedAmountIndex=1;B.privacyCheckboxValue=!1;B.useAmsterdamStyle=ogm;B.amountPlaceholderIndex=-1;return B};
_.l(ox,_.c);_.p=ox.prototype;_.p.onAmountClick=function(B){this.selectedAmountIndex=_.w(this.hostElement).querySelector("#amounts").indexForElement(B.currentTarget)};
_.p.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.oF(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.p.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.oF(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.oF(this.hostElement,"yt-close-popup-action",[this.is]);var B;(B=_.Pr())==null||B.getPlayerPromise().then(function(R){R.pauseVideo()})}};
_.p.donationCallback=function(B){B.success?(this.hostElement.hasAttribute("live-chat")&&B.response&&B.response.data&&B.response.data.actions&&_.oF(this.hostElement,"yt-live-chat-open-popup",[B.response.data.actions[0]]),_.oF(this.hostElement,"yt-close-popup-action",[this.is]),_.oF(this.hostElement,"yt-live-chat-close-buy-flow")):B.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(B.errorMessageRenderer)};
_.p.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.w(this.hostElement).querySelector("#custom-amount-input").focus()};
_.p.updateConfirmationDialogTextWithAmount=function(B){var R=this.getConfirmDialogRuns();R&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(R),"text"],this.getFormattedAmount(B))};
_.p.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.p.getAmountPlaceholderIndex=function(B){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=B.findIndex(function(R){return R.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.p.getFormattedAmount=function(B){var R;return(new _.Ir(4,((R=this.data)==null?void 0:R.currencyCode)||"")).format(B)};
_.p.isAmountValid=function(B){if(B==="")return!1;B=Number(B)*1E6;var R=this.get("minAmountMicros",this.data),V=this.get("maxAmountMicros",this.data);return R&&B<R||V&&B>V?!1:!0};
_.p.setInputError=function(){this.shouldShowValidationError?_.w(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.w(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.p.setInitialCheckboxValue=function(){var B;this.privacyCheckboxValue=!((B=this.data)==null||!B.privacyCheckboxInitialState)};
_.p.updateCustomAmountInputFromBinding=function(B){this.customAmountInput=B.detail.value};
_.p.updatePrivacyCheckboxValueFromBinding=function(B){this.privacyCheckboxValue=B.detail.value};
_.mh.Object.defineProperties(ox.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var B=this,R,V;return((R=this.data)==null?void 0:(V=R.suggestedAmounts)==null?void 0:V.map(function(e,X){return{buttonRenderer:{style:B.selectedAmountIndex===X?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:e.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 B;return!((B=this.data)==null||!B.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 B=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(B&&this.amountMicros!==null)return Object.assign({},B,{ypcGetCartEndpoint:Object.assign({},B.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 B=this.get("confirmLargeAmount",this.data);if(B&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),B}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var B=this.get("donateButton.buttonRenderer",this.data);if(B)return Object.assign({},B,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
ox.prototype.setInitialCheckboxValue=ox.prototype.setInitialCheckboxValue;ox.prototype.setInputError=ox.prototype.setInputError;ox.prototype.setFocusOnCustomAmountInput=ox.prototype.setFocusOnCustomAmountInput;_.r([_.v(YHj),_.Z("design:type",Object)],ox.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ox.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],ox.prototype,"selectedAmountIndex",void 0);_.r([_.E(),_.Z("design:type",String)],ox.prototype,"customAmountInput",void 0);_.r([_.E(),_.Z("design:type",Object)],ox.prototype,"privacyCheckboxValue",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ox.prototype,"useAmsterdamStyle",void 0);_.r([_.XX("customAmount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ox.prototype,"setFocusOnCustomAmountInput",null);_.r([_.K("data","selectedAmountIndex"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],ox.prototype,"suggestedAmountButtons",null);
_.r([_.K("data","selectedAmountIndex"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ox.prototype,"isCustomAmountSelected",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ox.prototype,"showPrivacyCheckbox",null);_.r([_.K("data","selectedAmountIndex","customAmount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ox.prototype,"amountMicros",null);
_.r([_.K("isCustomAmountSelected","customAmountInput"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ox.prototype,"customAmount",null);_.r([_.K("customAmount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ox.prototype,"shouldShowValidationError",null);_.r([_.K("customAmount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ox.prototype,"isDonateButtonEnabled",null);
_.r([_.K("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ox.prototype,"donateCommand",null);_.r([_.K("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ox.prototype,"donateCommandWithConfirmation",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ox.prototype,"largeDonationThreshold",null);
_.r([_.K("customAmount","donateCommand","amountMicros"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ox.prototype,"confirmLargeAmountCommand",null);_.r([_.K("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ox.prototype,"donateButtonRenderer",null);_.r([_.XX("shouldShowValidationError"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ox.prototype,"setInputError",null);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ox.prototype,"setInitialCheckboxValue",null);ox=_.r([_.A({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],ox);
_.F(ox,"ytd-donation-amount-picker-renderer",function(){if(OIn!==void 0)return OIn;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[msg(\'CLOSE\')]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return OIn=B},{mode:1});var Boe;var Bv=function(){return _.c.apply(this,arguments)||this};
_.l(Bv,_.c);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Bv.prototype,"ytComponentBehavior",void 0);_.r([_.E({}),_.Z("design:type",Object)],Bv.prototype,"data",void 0);Bv=_.r([_.A({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Bv);
_.F(Bv,"ytd-donation-post-transaction-content",function(){if(Boe!==void 0)return Boe;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Boe=B},{mode:1});var Rdi;var Rx=function(){return _.c.apply(this,arguments)||this};
_.l(Rx,_.c);Rx.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.r([_.E({}),_.Z("design:type",Object)],Rx.prototype,"data",void 0);Rx=_.r([_.A({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Rx);
_.F(Rx,"ytd-donation-post-transaction-renderer",function(){if(Rdi!==void 0)return Rdi;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Rdi=B},{mode:1});var V_m;var ed6;var VB=function(){return _.c.apply(this,arguments)||this};
_.l(VB,_.c);VB.prototype.computeIsStreamingProvider=function(B){return!!B.isStreamingShelf};
VB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],VB.prototype,"data",void 0);_.r([_.E({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],VB.prototype,"isStreamingProvider",void 0);
VB=_.r([_.A({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],VB);
_.F(VB,"ytd-media-provider-renderer",function(){if(ed6!==void 0)return ed6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return ed6=B},{mode:1});var X0e;var eM=function(){return _.c.apply(this,arguments)||this};
_.l(eM,_.c);eM.prototype.observeLightsourcePalette=function(){var B,R=(B=this.data)==null?void 0:B.vibrantsourceColorPaletteData;R&&_.lP(this.hostElement,R)};
eM.prototype.observeLightsourcePalette=eM.prototype.observeLightsourcePalette;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],eM.prototype,"data",void 0);
_.r([_.XX("data.vibrantsourceColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eM.prototype,"observeLightsourcePalette",null);eM=_.r([_.A({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],eM);
_.F(eM,"ytd-streaming-pop-up-dialog",function(){if(X0e!==void 0)return X0e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return X0e=B},{mode:1});var Xb=function(){return _.c.apply(this,arguments)||this};
_.l(Xb,_.c);Xb.prototype.onPopupOpened_=function(){var B;((B=this.data)==null?0:B.serviceEndpoint)&&_.Oz().resolve(_.oC).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Xb.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Xb.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"}}}}};
Xb.prototype.onPopupOpened_=Xb.prototype.onPopupOpened_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Xb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.L_),_.Z("design:type",Object)],Xb.prototype,"ytContinuationHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Xb.prototype,"data",void 0);
_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xb.prototype,"onPopupOpened_",null);Xb=_.r([_.A({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Xb);
_.F(Xb,"ytd-brandconnect-popup-renderer",function(){if(V_m!==void 0)return V_m;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return V_m=B},{mode:1});var p0i;var pG=function(){return _.c.apply(this,arguments)||this};
_.l(pG,_.c);_.p=pG.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 B=0;B<this.getOptionRenderers().length;B++)this.notifyPath("data.options."+B+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+B+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.p.updateSubmitButton=function(B){this.set("data.submitButton.buttonRenderer.isDisabled",!B)};
_.p.computeAlt=function(B){return _.FF(B)};
_.p.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Oz().resolve(_.oC).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.getOptionRenderers=function(B){return(B=B||this.data)&&B.options?B.options.reduce(function(R,V){V.checkboxSurveyOptionRenderer&&R.push(V.checkboxSurveyOptionRenderer);return R},[]):[]};
_.p.onOptionChange=function(B){var R=this,V=!1;if(B.detail.checked)for(var e=this.getOptionRenderers().find(function(b){return b.value===B.detail.value}),X=this.getOptionRenderers(),Y=0;Y<X.length;Y++){var t=X[Y];
this.notifyPath("data.options."+Y+".checkboxSurveyOptionRenderer.checked");t.checked&&((e==null?0:e.isExclusiveOption)?!t.isExclusiveOption:t.isExclusiveOption)?this.set("data.options."+Y+".checkboxSurveyOptionRenderer.checked",!1):t.checked&&(V=!0)}else V=this.getOptionRenderers().some(function(b,J){R.notifyPath("data.options."+J+".checkboxSurveyOptionRenderer.checked");return b.checked});
this.updateSubmitButton(V)};
_.p.onSubmitTap=function(){var B=this.getOptionRenderers().filter(function(Y){return Y.checked});
if(B.length!==0){var R=B.map(function(Y){return Y.responseEndpoint});
B=[];for(var V=1;V<R.length;V++){var e=void 0,X=(e=_.D(R[V],_.Ki))==null?void 0:e.feedbackToken;X&&B.push(X)}R=[R[0]];B.length&&R.push({extra_feedback_tokens:B});_.VD(this.hostElement,R);_.oF(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);B=this.data&&this.data.submitActions||[];if(_.k("kevlar_command_handler_migration_killswitch"))_.eO(this.hostElement,B,this.hostElement);else for(B=_.h(B),R=B.next();!R.done;R=B.next())this.ytComponentBehavior.resolveCommand(R.value)}};
pG.prototype.onOptionChange=pG.prototype.onOptionChange;pG.prototype.dataChanged=pG.prototype.dataChanged;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],pG.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],pG.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],pG.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.r([_.v(ab6),_.Z("design:type",Object)],pG.prototype,"ytdHatsSurveyBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],pG.prototype,"data",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pG.prototype,"dataChanged",null);
_.r([_.R_("ytd-checkbox-survey-option-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],pG.prototype,"onOptionChange",null);pG=_.r([_.A({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],pG);
_.F(pG,"ytd-checkbox-survey-renderer",function(){if(p0i!==void 0)return p0i;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return p0i=B},{mode:1});var YLn;var hd7;var YH=function(){return _.c.apply(this,arguments)||this};
_.l(YH,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.r([_.v(z$6),_.Z("design:type",Object)],YH.prototype,"ytdDismissalReasonBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],YH.prototype,"data",void 0);YH=_.r([_.A({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],YH);
_.F(YH,"ytd-dismissal-reason-text-renderer",function(){if(hd7!==void 0)return hd7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return hd7=B},{mode:1});var t_U;var hO=function(){return _.c.apply(this,arguments)||this};
_.l(hO,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.r([_.v(z$6),_.Z("design:type",Object)],hO.prototype,"ytdDismissalReasonBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],hO.prototype,"data",void 0);hO=_.r([_.A({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],hO);
_.F(hO,"ytd-dismissal-reason-video-renderer",function(){if(t_U!==void 0)return t_U;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return t_U=B},{mode:1});var tO=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(tO,_.c);_.p=tO.prototype;_.p.created=function(){this.selectedFeedbackTokens=new Fv};
_.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(B,R){_.OI(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(R);this.hasReasonsSelected=!0};
_.p.onDismissalReasonDeselected=function(B,R){_.OI(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(R);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.p.onCancelTap=function(){_.oF(this.hostElement,"yt-close-popup-action")};
_.p.onSubmitTap=function(){var B=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(B={feedback_tokens:B},_.Oz().resolve(_.oC).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},B,{element:this.hostElement})}));_.oF(this.hostElement,"yt-close-popup-action")};
tO.prototype.onDismissalReasonDeselected=tO.prototype.onDismissalReasonDeselected;tO.prototype.onDismissalReasonSelected=tO.prototype.onDismissalReasonSelected;tO.prototype.dataChanged=tO.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],tO.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],tO.prototype,"hasReasonsSelected",void 0);_.r([_.E(),_.Z("design:type",Fv)],tO.prototype,"selectedFeedbackTokens",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],tO.prototype,"darkerDarkTheme",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tO.prototype,"dataChanged",null);
_.r([_.R_("yt-dismissal-reason-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,String]),_.Z("design:returntype")],tO.prototype,"onDismissalReasonSelected",null);_.r([_.R_("yt-dismissal-reason-deselected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,String]),_.Z("design:returntype")],tO.prototype,"onDismissalReasonDeselected",null);tO=_.r([_.A({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],tO);
_.F(tO,"ytd-dismissal-follow-up-renderer",function(){if(YLn!==void 0)return YLn;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return YLn=B},{mode:1});var WZz;var Wv=function(){return _.c.apply(this,arguments)||this};
_.l(Wv,_.c);_.p=Wv.prototype;_.p.onCheckedChange=function(){this.multiselect||_.OI(this.hostElement,"yt-feedback-single-select-changed");_.w(this.hostElement).querySelector("#freeform").focus();_.OI(this.hostElement,"yt-refit")};
_.p.showTextBox=function(B,R){return B&&R};
_.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(B){this.set("data.checked",B.detail.value)};
_.p.updateDataResultTextFromBinding=function(B){this.set("data.resultText",B.detail.value)};
Wv.prototype.dataChanged=Wv.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Wv.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Wv.prototype,"multiselect",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wv.prototype,"dataChanged",null);
Wv=_.r([_.A({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Wv);
_.F(Wv,"ytd-feedback-option-renderer",function(){if(WZz!==void 0)return WZz;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return WZz=B},{mode:1});var bun;var b1=function(){return _.c.apply(this,arguments)||this};
_.l(b1,_.c);b1.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
b1.prototype.onSingleSelectCheckedChanged=function(B){B=_.ii(B);for(var R=0;R<this.data.options.length;R++)if(B.data!==_.D(this.data.options[R],fum)){var V="data.options."+R+".feedbackOptionRenderer.checked";this.notifyPath(V);this.set(V,!1)}};
b1.prototype.onSingleSelectCheckedChanged=b1.prototype.onSingleSelectCheckedChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],b1.prototype,"data",void 0);
_.r([_.R_("yt-feedback-single-select-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],b1.prototype,"onSingleSelectCheckedChanged",null);b1=_.r([_.A({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],b1);
_.F(b1,"ytd-feedback-question-renderer",function(){if(bun!==void 0)return bun;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return bun=B},{mode:1});var J5i;var JO=function(){return _.c.apply(this,arguments)||this};
_.l(JO,_.c);JO.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
JO.prototype.getSelectedFeedbackResults=function(){for(var B={},R=0;R<this.data.questions.length;R++)for(var V=_.D(this.data.questions[R],Df6),e=0;e<V.options.length;e++){var X=_.D(V.options[e],fum);X&&X.checked&&(B[X.optionKey]=X.resultText)}return B};
JO.prototype.onKeyUp=function(){var B=this;_.ua(_.dV,function(){_.OI(B.hostElement,"yt-refit")});
_.dV.start()};
JO.prototype.submitSurvey=function(){var B=this.getSelectedFeedbackResults();Object.keys(B).length>0&&this.data.submitFeedbackEndpoint&&(B={survey_results:B,is_feedback_token_unencrypted:!0},_.Oz().resolve(_.oC).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},B,{element:this.hostElement})}))};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],JO.prototype,"data",void 0);JO=_.r([_.A({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],JO);
_.F(JO,"ytd-feedback-survey-renderer",function(){if(J5i!==void 0)return J5i;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return J5i=B},{mode:1});var jW6;var UDm;var jM=function(){return _.c.apply(this,arguments)||this};
_.l(jM,_.c);jM.prototype.computeAlt=function(B){return _.FF(B)};
jM.prototype.submitResponse=function(){var B,R;(B=this.data)!=null&&B.feedbackToken&&((R=this.data)==null?void 0:R.nextStageIndex)!==void 0&&(_.Bz(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Bz(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
jM.prototype.onClick=function(){this.submitResponse()};
jM.prototype.onClick=jM.prototype.onClick;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],jM.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],jM.prototype,"vertical",void 0);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jM.prototype,"onClick",null);
jM=_.r([_.A({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],jM);
_.F(jM,"ytd-single-select-answer-option-renderer",function(){if(UDm!==void 0)return UDm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return UDm=B},{mode:1});var NoN;var U2=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return B};
_.l(U2,_.c);U2.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
U2.prototype.dataChanged=function(){var B,R;this.vertical=((R=(B=this.data)==null?void 0:B.answerOrientation)!=null?R:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
U2.prototype.submitFeedback=function(B){var R;((R=this.data)==null?0:R.responseEndpoint)&&B&&_.VD(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[B]}])};
U2.prototype.dataChanged=U2.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],U2.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],U2.prototype,"eventForwardingBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],U2.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],U2.prototype,"vertical",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],U2.prototype,"darkerDarkTheme",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],U2.prototype,"dataChanged",null);U2=_.r([_.A({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],U2);
_.F(U2,"ytd-single-select-question-renderer",function(){if(NoN!==void 0)return NoN;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return NoN=B},{mode:1});var NP=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return B};
_.l(NP,_.c);_.p=NP.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(B){var R,V;if((R=this.data)==null?0:(V=R.stages)==null?0:V[B])this.currentStage=this.data.stages[B],this.refitAfterRender()};
_.p.computeAlt=function(B){return _.FF(B)};
_.p.computeSimpleMessage=function(B){var R;return(R=_.D(B,au2))==null?void 0:R.messageText};
_.p.computeHideDismiss=function(B){var R;return(R=_.D(B,OCz))==null?void 0:R.hideParentDismissButton};
_.p.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action");_.D(this.currentStage,au2)||this.data.dismissalEndpoint&&_.Oz().resolve(_.oC).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.refitAfterRender=function(){var B=this;_.gB(this,function(){_.OI(B.hostElement,"yt-refit")})};
NP.prototype.dataChanged=NP.prototype.dataChanged;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],NP.prototype,"eventForwardingBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],NP.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v(ab6),_.Z("design:type",Object)],NP.prototype,"ytdHatsSurveyBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],NP.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],NP.prototype,"currentStage",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NP.prototype,"dataChanged",null);NP=_.r([_.A({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],NP);
_.F(NP,"ytd-multi-stage-survey-renderer",function(){if(jW6!==void 0)return jW6;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return jW6=B},{mode:1});var Gbr;var GQ=function(){return _.c.apply(this,arguments)||this};
_.l(GQ,_.c);GQ.prototype.computeAlt=function(B){return _.FF(B)};
GQ.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.Oz().resolve(_.oC).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.oF(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.jJo(!1)))};
GQ.prototype.onTap=function(){this.vertical&&this.submitResponse()};
GQ.prototype.onTap=GQ.prototype.onTap;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],GQ.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],GQ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],GQ.prototype,"vertical",void 0);
_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GQ.prototype,"onTap",null);GQ=_.r([_.A({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],GQ);
_.F(GQ,"ytd-single-option-survey-option-renderer",function(){if(Gbr!==void 0)return Gbr;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Gbr=B},{mode:1});var y5e;var yB=function(){return _.c.apply(this,arguments)||this};
_.l(yB,_.c);_.p=yB.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 B,R;this.vertical=(((B=this.data)==null?void 0:(R=B.surveyOrientation)==null?void 0:R.type)||"HORIZONTAL")==="VERTICAL"};
_.p.computeAlt=function(B){return _.FF(B)};
_.p.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Oz().resolve(_.oC).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.jJo(!1))};
yB.prototype.dataChanged=yB.prototype.dataChanged;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],yB.prototype,"eventForwardingBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(ab6),_.Z("design:type",Object)],yB.prototype,"ytdHatsSurveyBehavior",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],yB.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],yB.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yB.prototype,"vertical",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yB.prototype,"dataChanged",null);yB=_.r([_.A({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],yB);
_.F(yB,"ytd-single-option-survey-renderer",function(){if(y5e!==void 0)return y5e;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return y5e=B},{mode:1});var SLn;var SM=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(SM,_.c);SM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
SM.prototype.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action")};
SM.prototype.onNavigate=function(){_.oF(this.hostElement,"yt-close-popup-action")};
SM.prototype.onNavigate=SM.prototype.onNavigate;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],SM.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],SM.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],SM.prototype,"darkerDarkTheme",void 0);
_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SM.prototype,"onNavigate",null);SM=_.r([_.A({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],SM);
_.F(SM,"ytd-survey-follow-up-renderer",function(){if(SLn!==void 0)return SLn;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return SLn=B},{mode:1});var Hui;var M_4;var kbe;var Hv=function(){var B=_.c.apply(this,arguments)||this;B.polymer2="Element"in Polymer;return B};
_.l(Hv,_.c);_.p=Hv.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 _.Kj("minutes-changed",this.minutes))};
_.p.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("seconds-changed",this.seconds))};
_.p.updateMinutesFromBinding=function(B){this.minutes=B.detail.value};
_.p.updateSecondsFromBinding=function(B){this.seconds=B.detail.value};
Hv.prototype.secondsChangedForBinding=Hv.prototype.secondsChangedForBinding;Hv.prototype.minutesChangedForBinding=Hv.prototype.minutesChangedForBinding;Hv.prototype.secondsChanged=Hv.prototype.secondsChanged;_.r([_.E(),_.Z("design:type",String)],Hv.prototype,"minutes",void 0);_.r([_.E(),_.Z("design:type",String)],Hv.prototype,"seconds",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Hv.prototype,"polymer2",void 0);
_.r([_.Yp("#seconds"),_.Z("design:type",Object)],Hv.prototype,"secondsEl",void 0);_.r([_.XX("seconds"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hv.prototype,"secondsChanged",null);_.r([_.XX("minutes"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hv.prototype,"minutesChangedForBinding",null);
_.r([_.XX("seconds"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hv.prototype,"secondsChangedForBinding",null);Hv=_.r([_.fJ({is:"yt-timestamp-input",disableElementRegistration:!0})],Hv);
_.F(Hv,"yt-timestamp-input",function(){if(kbe===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;M_4===void 0&&(M_4=document.createElement("template"));var e=M_4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);kbe=B}B=kbe;return B},{mode:2});var MP=function(){return _.c.apply(this,arguments)||this};
_.l(MP,_.c);_.p=MP.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18045_scroller.dialogElement=this.hostElement.parentNode};
_.p.dataChanged=function(){var B=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.nD().getPlayerPromise().then(function(R){R=R.getCurrentTime();B.minutes=Math.floor(R/60).toString();B.seconds=(Math.floor(R)%60).toString()})};
_.p.onTapSubmit=function(B){B.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(B={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(B.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(B.minutes=this.minutes,B.seconds=this.seconds),_.Oz().resolve(_.oC).resolveCommand(this.serviceEndpoint,{form:Object.assign({},B,{element:this.hostElement})}))};
_.p.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.p.onYtServiceRequestCompleted=function(B,R){R=R.actions;if(Array.isArray(R))for(var V=0,e=R.length;V<e;V++)_.D(R[V],_.ai)&&(B.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(R[V]))};
_.p.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.p.toggleSubmitButton=function(B){this.set("submitButton.isDisabled",!B)};
_.p.handleInput=function(){var B=this.issueType,R=this.affiliation,V=this.minutes,e=this.seconds;V=!this.showTimestamp||!!V&&!!e;this.toggleSubmitButton(!!this.descriptionText&&!!B&&!!R&&V)};
_.p.computeServiceEndpoint=function(B){return this.get("submitButton.buttonRenderer.serviceEndpoint",B)};
_.p.computeSubmitButton=function(B){(B=this.get("submitButton.buttonRenderer",B))&&(B=Object.assign({},B,{serviceEndpoint:void 0}));return B};
_.p.computeShowTimestamp=function(B){return!!B};
_.p.onValueChangedForIssueType=function(B){this.issueType=B.detail.value};
_.p.onValueChangedForAffiliation=function(B){this.affiliation=B.detail.value};
_.p.updateDescriptionTextFromBinding=function(B){this.descriptionText=B.detail.value};
_.p.updateFullNameTextFromBinding=function(B){this.fullNameText=B.detail.value};
_.p.updateMinutesFromBinding=function(B){this.minutes=B.detail.value};
_.p.updateSecondsFromBinding=function(B){this.seconds=B.detail.value};
MP.prototype.handleInput=MP.prototype.handleInput;MP.prototype.onYtServiceRequestError=MP.prototype.onYtServiceRequestError;MP.prototype.onYtServiceRequestCompleted=MP.prototype.onYtServiceRequestCompleted;MP.prototype.onYtServiceRequestSent=MP.prototype.onYtServiceRequestSent;MP.prototype.dataChanged=MP.prototype.dataChanged;_.r([_.v(_.Ro.YtOpenPopupBehavior),_.Z("design:type",Object)],MP.prototype,"ytOpenPopupBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.r([_.Yp("#scroller"),_.Z("design:type",Object)],MP.prototype,"JSC$18045_scroller",void 0);_.r([_.Yp("#description"),_.Z("design:type",HTMLInputElement)],MP.prototype,"description",void 0);_.r([_.Yp("#full-name"),_.Z("design:type",Object)],MP.prototype,"fullName",void 0);_.r([_.E(),_.Z("design:type",Object)],MP.prototype,"data",void 0);
_.r([_.E({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Z("design:type",Boolean)],MP.prototype,"showTimestamp",void 0);_.r([_.E({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Z("design:type",Object)],MP.prototype,"serviceEndpoint",void 0);_.r([_.E({computed:"computeSubmitButton(data)"}),_.Z("design:type",Object)],MP.prototype,"submitButton",void 0);_.r([_.E(),_.Z("design:type",String)],MP.prototype,"descriptionText",void 0);
_.r([_.E(),_.Z("design:type",Number)],MP.prototype,"issueType",void 0);_.r([_.E(),_.Z("design:type",Number)],MP.prototype,"affiliation",void 0);_.r([_.E(),_.Z("design:type",String)],MP.prototype,"fullNameText",void 0);_.r([_.E(),_.Z("design:type",String)],MP.prototype,"minutes",void 0);_.r([_.E(),_.Z("design:type",String)],MP.prototype,"seconds",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MP.prototype,"dataChanged",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],MP.prototype,"onYtServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],MP.prototype,"onYtServiceRequestCompleted",null);
_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],MP.prototype,"onYtServiceRequestError",null);_.r([_.XX("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MP.prototype,"handleInput",null);MP=_.r([_.A({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],MP);
_.F(MP,"ytd-legal-report-details-form-renderer",function(){if(Hui!==void 0)return Hui;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Hui=B},{mode:1});var DDo;var kH=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return B};
_.l(kH,_.c);kH.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
kH.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var B=this.formRenderer.getForm();B&&this.data.submitEndpoint&&(_.Oz().resolve(_.oC).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},B,{element:this.hostElement})}),_.oF(this.hostElement,"yt-close-popup-action"))}};
kH.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.oF(this.hostElement,"yt-close-popup-action"))};
kH.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
kH.prototype.onPopupClosed=kH.prototype.onPopupClosed;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],kH.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],kH.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],kH.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);
_.r([_.Yp("yt-form-renderer"),_.Z("design:type",Object)],kH.prototype,"formRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],kH.prototype,"data",void 0);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kH.prototype,"onPopupClosed",null);kH=_.r([_.A({is:"ytd-form-popup-content",disableElementRegistration:!0})],kH);
_.F(kH,"ytd-form-popup-content",function(){if(DDo!==void 0)return DDo;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return DDo=B},{mode:1});var far;var D6=function(){return _.c.apply(this,arguments)||this};
_.l(D6,_.c);D6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
D6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
D6.prototype.onPopupOpened=function(){_.OI(this.hostElement,"yt-invalidate-popup-tabbables")};
D6.prototype.onYtServiceRequestCompleted=function(B,R){R.data&&R.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.OI(this.hostElement,"yt-invalidate-popup-tabbables"))};
D6.prototype.onYtServiceRequestCompleted=D6.prototype.onYtServiceRequestCompleted;D6.prototype.onPopupOpened=D6.prototype.onPopupOpened;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],D6.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],D6.prototype,"data",void 0);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],D6.prototype,"onPopupOpened",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],D6.prototype,"onYtServiceRequestCompleted",null);D6=_.r([_.A({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],D6);
_.F(D6,"ytd-form-popup-renderer",function(){if(far!==void 0)return far;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return far=B},{mode:1});var la6;var fG=function(){var B=_.c.apply(this,arguments)||this;B.isLoading=!1;return B};
_.l(fG,_.c);_.p=fG.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");xC4(this.hostElement)};
_.p.onYtServiceRequestSent=function(){this.isLoading=!0};
_.p.onYtServiceRequestCompleted=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.p.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.eO(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 B=this.get("data.headerImage.thumbnails");B&&(B=_.$T(B,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+B+")")}};
_.p.onYtNavigate=function(B){(B=_.ii(B))&&B.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
fG.prototype.onYtNavigate=fG.prototype.onYtNavigate;fG.prototype.onHeaderImageChanged=fG.prototype.onHeaderImageChanged;fG.prototype.closePopupHandler=fG.prototype.closePopupHandler;fG.prototype.onYtServiceRequestCompleted=fG.prototype.onYtServiceRequestCompleted;fG.prototype.onYtServiceRequestSent=fG.prototype.onYtServiceRequestSent;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],fG.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fG.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],fG.prototype,"isLoading",void 0);_.r([_.Yp("#header"),_.Z("design:type",HTMLDivElement)],fG.prototype,"header",void 0);_.r([_.Yp("#confirm-button"),_.Z("design:type",_.hd)],fG.prototype,"confirmButton",void 0);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fG.prototype,"onYtServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fG.prototype,"onYtServiceRequestCompleted",null);
_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],fG.prototype,"closePopupHandler",null);_.r([_.XX("data.headerImage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fG.prototype,"onHeaderImageChanged",null);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fG.prototype,"onYtNavigate",null);
fG=_.r([_.A({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],fG);
_.F(fG,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(la6!==void 0)return la6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return la6=B},{mode:1});var zd2;var l1=function(){var B=_.c.apply(this,arguments)||this;B.isLoading=!1;return B};
_.l(l1,_.c);_.p=l1.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);xC4(this.hostElement)};
_.p.onYtServiceRequestCompleted=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.p.onYtServiceRequestError=function(B){_.VN(this.hostElement,B.detail.error.message)};
_.p.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.p.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.oF(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.p.onDataChanged=function(){this.isLoading=!1;var B=this.get("data.headerImage.thumbnails");B&&(B=_.$T(B,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+B+")");B=_.TE();var R=_.wT(),V=this.get("data.trackingParams");V&&R&&B&&_.EV(B,R,_.U5(V))};
_.mh.Object.defineProperties(l1.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
l1.prototype.onDataChanged=l1.prototype.onDataChanged;l1.prototype.onDomChange=l1.prototype.onDomChange;l1.prototype.onYtServiceRequestError=l1.prototype.onYtServiceRequestError;l1.prototype.onYtServiceRequestCompleted=l1.prototype.onYtServiceRequestCompleted;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],l1.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],l1.prototype,"isLoading",void 0);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],l1.prototype,"hasDescription",null);_.r([_.Yp("tp-yt-paper-dialog-scrollable"),_.Z("design:type",Object)],l1.prototype,"scrollable",void 0);_.r([_.Yp("#header"),_.Z("design:type",HTMLElement)],l1.prototype,"header",void 0);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],l1.prototype,"onYtServiceRequestCompleted",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],l1.prototype,"onYtServiceRequestError",null);
_.r([_.R_("dom-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],l1.prototype,"onDomChange",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],l1.prototype,"onDataChanged",null);l1=_.r([_.A({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],l1);
_.F(l1,"ytd-gaming-account-link-setting-renderer",function(){if(zd2!==void 0)return zd2;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return zd2=B},{mode:1});var aa4;var dDi;var zQ=function(){var B=_.c.apply(this,arguments)||this;B.isHeader=!1;B.getEndpointForm=vG2;return B};
_.l(zQ,_.c);_.p=zQ.prototype;_.p.triggerHintActions=function(){var B=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var R=_.Bz(B.hostElement,"yt-get-opened-popups-action");!(R&&R.length===1?R[0]:[]).some(function(V){V=V.openPopupAction.popupType;return V==="SURVEY"||V==="MEALBAR"||V==="HINT"})&&B.data.hintActions&&B.guideOpened&&(_.eO(B.hostElement,B.data.hintActions,B.hostElement),B.data.hintActions=void 0)})};
_.p.getBadgeIconType=function(B){return B&&B.liveBroadcasting?"live":null};
_.p.onDown=function(){this.interaction.triggerDown()};
_.p.onUp=function(){this.interaction.triggerUp()};
_.p.onTap=function(B){if(this.data.serviceEndpoint){var R;_.k("shorts_controller_retrieve_seedless_sequence_v2")&&((R=_.D(this.data.serviceEndpoint,_.GF))==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):LPo(this.data.serviceEndpoint,this);B.preventDefault()}else this.data.navigationEndpoint&&!_.g1(_.Az(B),this.hostElement,["A".toString()])&&_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.p.computeActive=function(B,R){if(!B)return!1;var V=B.navigationEndpoint;B=B.serviceEndpoint;if(!V&&!B||!R)return!1;if(V){B=(B=_.bi(R))&&["subscriptions","filteredsubscriptions"].includes(B);if(_.D(V,_.Jz)&&_.D(R,_.Jz)&&!B){var e=_.D(V,_.Jz).browseId;R=_.D(R,_.Jz).browseId;return e!==void 0&&R!==void 0&&(e===R||e==="VLWL"&&R==="FEwatch_later"||e==="FEwatch_later"&&R==="VLWL")}var X;V=(X=_.D(V.commandMetadata,_.$a))==null?void 0:X.url;R=(e=_.D(R.commandMetadata,_.$a))==null?void 0:e.url;return!(!V||
!R||V!==R&&V!==_.tu(R))}return this.isActiveShortsTab(B,R)};
_.p.isActiveShortsTab=function(B,R){R=!!_.D(R,_.GF)||!!_.D(R,_.vL);return(!!_.D(B,_.GF)||!!_.D(B,_.vL))&&R};
_.p.computeIsPrimary=function(B){return!!B};
_.mh.Object.defineProperties(zQ.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 B=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&B)return B}}});
zQ.prototype.onTap=zQ.prototype.onTap;zQ.prototype.onUp=zQ.prototype.onUp;zQ.prototype.onDown=zQ.prototype.onDown;zQ.prototype.triggerHintActions=zQ.prototype.triggerHintActions;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],zQ.prototype,"componentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zQ.prototype,"rendererBehavior",void 0);_.r([_.v(_.Fk.YtTaskEmitterBehavior),_.Z("design:type",Object)],zQ.prototype,"taskEmitterBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],zQ.prototype,"activeEndpoint",void 0);_.r([_.E(),_.Z("design:type",Object)],zQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],zQ.prototype,"guideOpened",void 0);_.r([_.E(),_.Z("design:type",String)],zQ.prototype,"type",void 0);_.r([_.Yp("yt-interaction"),_.Z("design:type",Object)],zQ.prototype,"interaction",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zQ.prototype,"isHeader",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data","activeEndpoint"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zQ.prototype,"active",null);_.r([_.E({reflectToAttribute:!0}),_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zQ.prototype,"isPrimary",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.count","data.presentationStyle","data.badges.*"),_.Z("design:type",String),_.Z("design:paramtypes",[])],zQ.prototype,"lineEndStyle",null);
_.r([_.K("lineEndStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zQ.prototype,"ariaLabel",null);_.r([_.XX("data.hintActions","guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zQ.prototype,"triggerHintActions",null);_.r([_.R_("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zQ.prototype,"onDown",null);
_.r([_.R_("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zQ.prototype,"onUp",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],zQ.prototype,"onTap",null);zQ=_.r([_.A({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],zQ);
_.F(zQ,"ytd-guide-entry-renderer",function(){if(dDi!==void 0)return dDi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return dDi=B},{mode:1});var ax=function(){var B=_.c.apply(this,arguments)||this;B.userToggled=!1;return B};
_.l(ax,_.c);_.p=ax.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(B){var R=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.k("kevlar_guide_expandable_items_killswitch")&&_.gB(this,function(){_.Zt(R.expandableItems)});
B.preventDefault()};
_.p.onCollapserItemTapped=function(B){var R=this;this._setExpanded(!1);this.userToggled=!0;B.preventDefault();this.expandableItems&&!_.k("kevlar_guide_collapsible_items_killswitch")&&_.gB(this,function(){_.rV(R.hostElement)})};
_.p.observeActiveEndpoint=function(){for(var B=this.activeEndpoint,R=this.data,V=this.expandableItems.children,e=0,X=V.length;e<X;e++)V[e].activeEndpoint=B;R&&R.autoExpandCommand&&B&&!this.userToggled&&(V=this.data.autoExpandCommand,R=!(!_.D(V,_.Jz)||!_.D(B,_.Jz)||_.D(V,_.Jz).browseId!==_.D(B,_.Jz).browseId),B=this.get("commandMetadata.webCommandMetadata.url",B),V=this.get("commandMetadata.webCommandMetadata.url",V),R=R||!!(B&&V&&B.includes(V)),this._setExpanded(R),R&&this.ytLazyListBehavior.fillRemainingListItems())};
ax.prototype.observeActiveEndpoint=ax.prototype.observeActiveEndpoint;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.CL.YtLazyListBehavior),_.Z("design:type",Object)],ax.prototype,"ytLazyListBehavior",void 0);_.r([_.Yp("#expandable-items"),_.Z("design:type",HTMLElement)],ax.prototype,"expandableItems",void 0);
_.r([_.E(),_.Z("design:type",Object)],ax.prototype,"data",void 0);_.r([_.E({readOnly:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],ax.prototype,"expanded",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],ax.prototype,"initialCount",void 0);_.r([_.E(),_.Z("design:type",Object)],ax.prototype,"activeEndpoint",void 0);_.r([_.XX("data","activeEndpoint","canShowMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ax.prototype,"observeActiveEndpoint",null);
ax=_.r([_.A({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],ax);
_.F(ax,"ytd-guide-collapsible-entry-renderer",function(){if(aa4!==void 0)return aa4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return aa4=B},{mode:_.up("kevlar_poly_si_batch_j079")?1:2});var w0i;var Tor;var dZ=function(){var B=_.c.apply(this,arguments)||this;B.allVideosCount=0;B.renderGuideEntry=!1;return B};
_.l(dZ,_.c);dZ.prototype.observeRenderEntry=function(){var B;this.renderGuideEntry=!((B=this.data)==null||!B.alwaysShow)||!!this.allVideosCount};
dZ.prototype.observeRenderEntry=dZ.prototype.observeRenderEntry;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],dZ.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],dZ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],dZ.prototype,"activeEndpoint",void 0);_.r([_.E({selector:_.Iu5}),_.Z("design:type",Object)],dZ.prototype,"allVideosCount",void 0);
_.r([_.E(),_.Z("design:type",Object)],dZ.prototype,"renderGuideEntry",void 0);_.r([_.bp("allVideosCount","data.alwaysShow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dZ.prototype,"observeRenderEntry",null);dZ=_.r([_.A({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],dZ);
_.F(dZ,"ytd-guide-downloads-entry-renderer",function(){if(Tor===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);Tor=B}B=Tor;return B},{mode:1});var wZ=function(){var B=_.c.apply(this,arguments)||this;B.youtab=_.k("web_enable_youtab");B.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return B};
_.l(wZ,_.c);_.p=wZ.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 B=this.sectionItems.children,R=0,V=B.length;R<V;R++)B[R].activeEndpoint=this.activeEndpoint}};
_.p.handleAddToGuideSectionAction=function(B){var R=_.D(B,FpU);if(R&&this.data&&(B=R.items,R=R.handlerData,B&&R&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(R)>-1)){R=0;for(var V=B.length;R<V;R++)B[R].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,B[R])}};
_.p.handleRemoveFromGuideSectionAction=function(B){var R=_.D(B,rTn);R&&this.data&&(B=R.guideEntryId,R=R.handlerData,B&&R&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(R)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(B,this.data.sectionItems),this.removeFromCollapsedSection(B,this.data.sectionItems)))};
_.p.removeFromExpandedSection=function(B,R){B=this.getEntryIndexMatchingId(B,R);B!==-1&&this.splice("data.sectionItems",B,1)};
_.p.removeFromCollapsedSection=function(B,R){var V=R.findIndex(function(e){return!!_.D(e,pLn)});
V&&V!==-1&&R[V]&&_.D(R[V],pLn)&&(R=_.D(R[V],pLn).expandableItems)&&(B=this.getEntryIndexMatchingId(B,R),B!==-1&&this.splice("data.sectionItems."+V+".guideCollapsibleEntryRenderer.expandableItems",B,1))};
_.p.getEntryIndexMatchingId=function(B,R){var V=this;return R.findIndex(function(e){return V.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",e)===B})};
wZ.prototype.activeEndpointChanged=wZ.prototype.activeEndpointChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],wZ.prototype,"actionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Yp("#section-items"),_.Z("design:type",HTMLDivElement)],wZ.prototype,"sectionItems",void 0);
_.r([_.Yp("#header-entry"),_.Z("design:type",Object)],wZ.prototype,"headerEntry",void 0);_.r([_.E(),_.Z("design:type",Object)],wZ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],wZ.prototype,"activeEndpoint",void 0);_.r([_.E(),_.Z("design:type",Object)],wZ.prototype,"youtab",void 0);_.r([_.XX("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wZ.prototype,"activeEndpointChanged",null);
wZ=_.r([_.A({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],wZ);
_.F(wZ,"ytd-guide-collapsible-section-entry-renderer",function(){if(w0i===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);w0i=B}B=w0i;return B},{mode:1});var xDo;var LZi;var TQ=function(){var B=_.c.apply(this,arguments)||this;B.modernTypography=_.k("web_modern_typography");B.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 B};
_.l(TQ,_.c);_.p=TQ.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 B=_.Bz(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);B&&B.length===1&&B[0]&&_.Bz(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.p.handleResetChannelUnreadCountCommand=function(B){var R;(B=(R=_.D(B,ZC4))==null?void 0:R.channelId)&&this.data&&this.data.items&&(R=this.getPathToEntryMatchingId(B))&&(this.set(R+".guideEntryRenderer.count",0),this.set(R+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.p.handleResetSubscriptionsUnreadDotCommand=function(B){var R,V=(R=_.D(B,mkU))==null?void 0:R.targetId,e;V&&(e=this.data)!=null&&e.items&&(B=this.data.items.findIndex(function(X){var Y;return((Y=X.guideEntryRenderer)==null?void 0:Y.targetId)===V}),B<0||this.set("data.items."+B+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.p.getPathToEntryMatchingId=function(B){if(this.data&&this.data.items){var R=this.getEntryIndexMatchingId(B,this.data.items);if(R>-1)return"data.items."+R;for(var V=0;V<this.data.items.length;V++)if(R=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[V]))if(R=this.getEntryIndexMatchingId(B,R),R>-1)return"data.items."+V+".guideCollapsibleEntryRenderer.expandableItems."+R}};
_.p.handleAddToGuideSectionAction=function(B){var R=this;if(_.D(B,FpU)){var V=_.D(B,FpU).items;B=_.D(B,FpU).handlerData;var e,X;V&&B&&((e=this.data)==null?void 0:(X=e.handlerDatas)==null?void 0:X.indexOf(B))>-1&&(V=V.filter(function(Y){return(Y=R.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Y))&&!R.isGuideItemPresent(Y)}),this.unshift.apply(this,["data.items"].concat(_.MI(V))))}};
_.p.isGuideItemPresent=function(B){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(B,this.data.items)!==-1)return!0;var R=this.data.items.find(function(V){return!!V.guideCollapsibleEntryRenderer});
if((R==null?0:R.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(B,R.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.p.getEntryIndexMatchingId=function(B,R){var V=this;return R.findIndex(function(e){return V.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",e)===B})};
_.p.handleRemoveFromGuideSectionAction=function(B){if(_.D(B,rTn)){var R=_.D(B,rTn).guideEntryId;B=_.D(B,rTn).handlerData;var V,e;R&&B&&((V=this.data)==null?void 0:(e=V.handlerDatas)==null?void 0:e.indexOf(B))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(R,this.data.items),this.removeFromCollapsedSection(R,this.data.items))}};
_.p.removeFromExpandedSection=function(B,R){B=this.getEntryIndexMatchingId(B,R);B!==-1&&this.splice("data.items",B,1)};
_.p.removeFromCollapsedSection=function(B,R){var V=R.findIndex(function(e){return!!e.guideCollapsibleEntryRenderer});
V!==-1&&(R=R[V].guideCollapsibleEntryRenderer.expandableItems)&&(B=this.getEntryIndexMatchingId(B,R),B!==-1&&this.splice("data.items."+V+".guideCollapsibleEntryRenderer.expandableItems",B,1))};
_.p.activeEndpointChanged=function(){for(var B=_.w(this.hostElement).querySelector("#items").children,R=0,V=B.length;R<V;R++)B[R].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.p.guideOpenedChanged=function(){for(var B=_.w(this.hostElement).querySelector("#items").children,R=0,V=B.length;R<V;R++)B[R].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
TQ.prototype.guideOpenedChanged=TQ.prototype.guideOpenedChanged;TQ.prototype.activeEndpointChanged=TQ.prototype.activeEndpointChanged;TQ.prototype.persistentGuideChanged=TQ.prototype.persistentGuideChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],TQ.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.CL.YtLazyListBehavior),_.Z("design:type",Object)],TQ.prototype,"ytLazyListBehavior",void 0);_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],TQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],TQ.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],TQ.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],TQ.prototype,"modernTypography",void 0);_.r([_.E(),_.Z("design:type",String)],TQ.prototype,"type",void 0);_.r([_.E({value:20}),_.Z("design:type",Number)],TQ.prototype,"initialCount",void 0);_.r([_.E({value:10}),_.Z("design:type",Number)],TQ.prototype,"targetFramerate",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],TQ.prototype,"autoFill",void 0);_.r([_.E({value:50}),_.Z("design:type",Number)],TQ.prototype,"renderDelay",void 0);
_.r([_.XX("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TQ.prototype,"persistentGuideChanged",null);_.r([_.bp("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TQ.prototype,"activeEndpointChanged",null);_.r([_.bp("guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TQ.prototype,"guideOpenedChanged",null);
TQ=_.r([_.A({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],TQ);
_.F(TQ,"ytd-guide-section-renderer",function(){if(LZi!==void 0)return LZi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return LZi=B},{mode:_.up("kevlar_poly_si_batch_j073")?1:2});var vg4;var xH=function(){return _.c.apply(this,arguments)||this};
_.l(xH,_.c);_.mh.Object.defineProperties(xH.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],xH.prototype,"rendererBehaviors",void 0);_.r([_.E(),_.Z("design:type",Object)],xH.prototype,"data",void 0);_.r([_.E(),_.K("data.signInButton.buttonRenderer.style"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xH.prototype,"alignByText",null);xH=_.r([_.A({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],xH);
_.F(xH,"ytd-guide-signin-promo-renderer",function(){if(vg4===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);vg4=B}B=vg4;return B},{mode:1});var LG=function(){var B=_.c.apply(this,arguments)||this;B.showFooter=!1;return B};
_.l(LG,_.c);LG.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}}}}};
LG.prototype.attached=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1){R=_.Oz().resolve(_.uj(_.vu));if(!R)return V.jumpTo(0);R.setGuideData(B.hostElement);return _.U(V,0,3)}B.ytLazyListBehavior.initialCount=2;return V.return()})};
LG.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
LG.prototype.dataChanged=LG.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],LG.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.CL.YtLazyListBehavior),_.Z("design:type",Object)],LG.prototype,"ytLazyListBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],LG.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],LG.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],LG.prototype,"showFooter",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],LG.prototype,"autoFill",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LG.prototype,"dataChanged",null);LG=_.r([_.A({is:"ytd-guide-renderer",disableElementRegistration:!0})],LG);
_.F(LG,"ytd-guide-renderer",function(){if(xDo!==void 0)return xDo;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return xDo=B},{mode:_.up("kevlar_poly_si_batch_j073")?1:2});var KZ4;var vv=function(){var B=_.c.apply(this,arguments)||this;B.systemIcons=_.k("kevlar_system_icons");B.frostedGlass=_.k("web_frosted_glass");B.getEndpointForm=vG2;return B};
_.l(vv,_.c);_.p=vv.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",_.FF(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(B){if(this.data.serviceEndpoint){var R;_.k("shorts_controller_retrieve_seedless_sequence_v2")&&((R=_.D(this.data.serviceEndpoint,_.GF))==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):LPo(this.data.serviceEndpoint,this);B.preventDefault()}else{var V;((V=this.data)==null?0:V.navigationEndpoint)&&!_.g1(_.Az(B),this.hostElement,["A".toString()])&&_.OI(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.p.computeActive=function(B,R){if(!B)return!1;var V=B.navigationEndpoint;B=B.serviceEndpoint;if(!V&&!B||!R)return!1;if(V){B=_.D(V,_.Jz);var e=_.D(R,_.Jz);if(B&&e)return B.browseId===e.browseId&&B.params===e.params;var X;V=(X=_.D(V.commandMetadata,_.$a))==null?void 0:X.url;var Y;R=(Y=_.D(R.commandMetadata,_.$a))==null?void 0:Y.url;return!(!V||!R||V!==R&&V!==_.tu(R))}return this.isActiveShortsTab(B,R)};
_.p.isActiveShortsTab=function(B,R){R=!!_.D(R,_.GF)||!!_.D(R,_.vL);return(!!_.D(B,_.GF)||!!_.D(B,_.vL))&&R};
_.p.computeTitle=function(B,R){return R?"":_.FF(B)};
_.mh.Object.defineProperties(vv.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
vv.prototype.onTap=vv.prototype.onTap;vv.prototype.onUp=vv.prototype.onUp;vv.prototype.onDown=vv.prototype.onDown;vv.prototype.onActiveStateChange=vv.prototype.onActiveStateChange;vv.prototype.dataChanged=vv.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],vv.prototype,"ytComponentBehavior",void 0);
_.r([_.v(_.KC),_.Z("design:type",Object)],vv.prototype,"ironButtonState",void 0);_.r([_.E(),_.Z("design:type",Object)],vv.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],vv.prototype,"activeEndpoint",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vv.prototype,"noLabels",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Z("design:type",Boolean)],vv.prototype,"isActive",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],vv.prototype,"systemIcons",void 0);_.r([_.Yp("yt-interaction"),_.Z("design:type",Object)],vv.prototype,"interaction",void 0);_.r([_.K("isActive"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vv.prototype,"ariaSelected",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],vv.prototype,"frostedGlass",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vv.prototype,"dataChanged",null);_.r([_.XX("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vv.prototype,"onActiveStateChange",null);_.r([_.R_("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vv.prototype,"onDown",null);
_.r([_.R_("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vv.prototype,"onUp",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vv.prototype,"onTap",null);vv=_.r([_.A({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],vv);
_.F(vv,"ytd-mini-guide-entry-renderer",function(){if(KZ4!==void 0)return KZ4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return KZ4=B},{mode:_.up("kevlar_poly_si_batch_j063")?1:2});var Iam;var KG=function(){var B=_.c.apply(this,arguments)||this;B.allVideosCount=0;B.noLabels=_.k("kevlar_mini_guide_no_labels");B.frostedGlass=_.k("web_frosted_glass");return B};
_.l(KG,_.c);_.p=KG.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")};
_.p.visibleChanged=function(){if(this.visible&&!this.data){var B=_.Oz().resolve(_.uj(_.vu));B&&B.setGuideData(this.hostElement)}};
_.p.dataChanged=function(){var B=[],R;if((R=this.data)!=null&&R.items){R=_.h(this.data.items);for(var V=R.next();!V.done;V=R.next()){V=V.value;var e=void 0;if((e=V.guideSectionRenderer)==null?0:e.items)for(e=void 0,V=_.h((e=V.guideSectionRenderer)==null?void 0:e.items),e=V.next();!e.done;e=V.next())if(e=e.value,e.guideEntryRenderer)e=e.guideEntryRenderer,e.isPrimary&&B.push({guideEntryRenderer:e});else if(e.guideCollapsibleSectionEntryRenderer){var X=void 0;((X=_.D(e.guideCollapsibleSectionEntryRenderer.headerEntry,
gR))==null?0:X.isPrimary)&&B.push({guideEntryRenderer:_.D(e.guideCollapsibleSectionEntryRenderer.headerEntry,gR)});if(e=e.guideCollapsibleSectionEntryRenderer.sectionItems)for(e=_.h(e),X=e.next();!X.done;X=e.next()){var Y=X.value;X=_.D(Y,YNo);var t=void 0;((t=_.D(Y,gR))==null?0:t.isPrimary)?B.push({guideEntryRenderer:_.D(Y,gR)}):X&&(Y=void 0,_.D((Y=X)==null?void 0:Y.entryRenderer,gR)&&(X.alwaysShow||this.allVideosCount)&&B.push({guideEntryRenderer:_.D(X.entryRenderer,gR)}))}}}}this.miniGuideItems=
B};
_.p.activeEndpointChanged=function(){for(var B=this.items.children,R=0;R<B.length;R++)B[R].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
KG.prototype.activeEndpointChanged=KG.prototype.activeEndpointChanged;KG.prototype.dataChanged=KG.prototype.dataChanged;KG.prototype.visibleChanged=KG.prototype.visibleChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],KG.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],KG.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],KG.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],KG.prototype,"ytComponentBehavior",void 0);_.r([_.Yp("#items"),_.Z("design:type",Object)],KG.prototype,"items",void 0);_.r([_.E(),_.Z("design:type",Object)],KG.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],KG.prototype,"visible",void 0);
_.r([_.E(),_.Z("design:type",Object)],KG.prototype,"miniGuideItems",void 0);_.r([_.E({selector:_.Iu5}),_.Z("design:type",Object)],KG.prototype,"allVideosCount",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],KG.prototype,"noLabels",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],KG.prototype,"frostedGlass",void 0);_.r([_.bp("visible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KG.prototype,"visibleChanged",null);
_.r([_.bp("data","allVideosCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KG.prototype,"dataChanged",null);_.r([_.bp("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KG.prototype,"activeEndpointChanged",null);KG=_.r([_.A({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],KG);
_.F(KG,"ytd-mini-guide-renderer",function(){if(Iam===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);Iam=B}B=Iam;return B},{mode:1});var Egi;var QWz=/^[\x00-\x7F]+$/,Ix=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(Ix,_.c);_.mh.Object.defineProperties(Ix.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var B,R=_.FF((B=this.data)==null?void 0:B.handle);if(R)return _.s$("@"+R)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var B=_.FF(this.displayHandle),R,V=_.FF((R=this.data)==null?void 0:R.handleUrl);if(B&&V)return _.s$(V+B)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var B=_.FF(this.displayHandle);if(B&&!QWz.test(B)){var R;return(R=this.data)==null?void 0:R.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var B=_.FF(this.displayHandleUrl),R,V=_.FF((R=this.data)==null?void 0:R.urlInfoText);if(B&&V)return _.s$(V+" "+B)}}});
_.r([_.E(),_.Z("design:type",Object)],Ix.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ix.prototype,"displayHandle",null);_.r([_.K("displayHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ix.prototype,"displayHandleUrl",null);_.r([_.K("displayHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ix.prototype,"warningText",null);
_.r([_.K("displayHandleUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ix.prototype,"urlInfoTextWithUrl",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Ix.prototype,"darkerDarkTheme",void 0);Ix=_.r([_.A({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Ix);
_.F(Ix,"ytd-handles-claiming-confirm-dialog-content",function(){if(Egi!==void 0)return Egi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Egi=B},{mode:1});var qL4;var E2=function(){var B=_.c.apply(this,arguments)||this;B.okButtonOverride={style:"mono",type:"outline",size:"M"};return B};
_.l(E2,_.c);E2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
E2.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],E2.prototype,"okButtonOverride",void 0);_.r([_.E(),_.Z("design:type",Object)],E2.prototype,"data",void 0);E2=_.r([_.A({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],E2);
_.F(E2,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(qL4!==void 0)return qL4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return qL4=B},{mode:1});var c5o;var A54=/^[\x00-\x7F]+$/,QB=function(){var B=_.c.apply(this,arguments)||this;B.isLoading=!1;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(QB,_.c);QB.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var B;this.selectedHandle=(B=this.handleInput)==null?void 0:B.value;this.onSelectedHandleChanged(this.selectedHandle);_.Bz(this.hostElement,"yt-refit-popups-action")}};
_.mh.Object.defineProperties(QB.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var B;return(B=this.data)==null?void 0:B.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.s$("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.s$(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!A54.test(this.selectedHandle)){var B;return(B=this.data)==null?void 0:B.warningText}}}});
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],QB.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],QB.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],QB.prototype,"selectedHandle",void 0);_.r([_.E(),_.Z("design:type",Object)],QB.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",Function)],QB.prototype,"onSelectedHandleChanged",void 0);_.r([_.Yp("#channel-handle-input"),_.Z("design:type",Object)],QB.prototype,"handleInput",void 0);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QB.prototype,"handleUrlPrefix",null);_.r([_.K("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QB.prototype,"displayHandle",null);_.r([_.K("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QB.prototype,"displayHandleUrl",null);_.r([_.K("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QB.prototype,"warningText",null);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],QB.prototype,"darkerDarkTheme",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);QB=_.r([_.A({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],QB);
_.F(QB,"ytd-handles-claiming-edit-dialog-content",function(){if(c5o!==void 0)return c5o;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return c5o=B},{mode:1});var iui;var qP=function(){var B=_.c.apply(this,arguments)||this;B.actionButtonOverride={style:"mono",type:"filled",size:"M"};B.cancelButtonOverride={style:"mono",type:"text",size:"M"};B.selectButtonDisabled=!1;B.isLoading=!1;B.hasSelectedHandleEventListener=!1;B.selectedHandleChanged=function(R){B.selectedHandle=R};
return B};
_.l(qP,_.c);_.p=qP.prototype;_.p.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.p.onDataChanged=function(){var B,R;this.selectedHandle=(R=_.D((B=this.data)==null?void 0:B.inputField,qr4))==null?void 0:R.handle};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onCancel=function(){this.selectedHandle="";_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onSelectHandle=function(){var B=this;if(this.selectedHandle!==void 0){var R;((R=this.data)==null?void 0:R.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(V,e){if(e.newHandleUpdateStatus!==void 0&&e.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&e.newHandleUpdateStatus.errorMessage)_.VN(B.hostElement,_.FF(e.newHandleUpdateStatus.errorMessage)),
B.isLoading=!1;else{var X;if((X=B.data)==null?0:X.onChannelUpdateSuccess){V=B.data.onChannelUpdateSuccess;var Y,t;if(e=(Y=_.D(V,_.ai))==null?void 0:(t=Y.popup)==null?void 0:t.handlesClaimingConfirmDialogRenderer)e.handle=_.s$(B.selectedHandle);B.ytComponentBehavior.resolveCommand(V);_.oF(B.hostElement,"yt-close-popup-action",[B.is])}else B.isLoading=!1}},
onServerError:function(){var V;B.content&&((V=B.content)==null?0:V.handleInput)&&B.content.handleInput.validate();B.isLoading=!1;_.VN(B.hostElement,_.Wz("TRY_AGAIN_LATER"))}}}))}};
_.p.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
qP.prototype.onDataChanged=qP.prototype.onDataChanged;qP.prototype.onSelectedHandleChanged=qP.prototype.onSelectedHandleChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],qP.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qP.prototype,"actionButtonOverride",void 0);_.r([_.E(),_.Z("design:type",Object)],qP.prototype,"cancelButtonOverride",void 0);_.r([_.E(),_.Z("design:type",Object)],qP.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",String)],qP.prototype,"selectedHandle",void 0);_.r([_.E(),_.Z("design:type",Object)],qP.prototype,"selectButtonDisabled",void 0);_.r([_.E(),_.Z("design:type",Object)],qP.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",Object)],qP.prototype,"hasSelectedHandleEventListener",void 0);_.r([_.E(),_.Z("design:type",Object)],qP.prototype,"handleInput",void 0);
_.r([_.XX("selectedHandle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qP.prototype,"onSelectedHandleChanged",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qP.prototype,"onDataChanged",null);_.r([_.Yp("ytd-handles-claiming-edit-dialog-content"),_.Z("design:type",Object)],qP.prototype,"content",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);qP=_.r([_.A({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],qP);
_.F(qP,"ytd-handles-claiming-edit-dialog-renderer",function(){if(iui!==void 0)return iui;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return iui=B},{mode:1});var sWi;var cv=function(){return _.c.apply(this,arguments)||this};
_.l(cv,_.c);_.mh.Object.defineProperties(cv.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null?0:B.handle){var R;return _.s$("@"+_.FF((R=this.data)==null?void 0:R.handle))}}}});
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cv.prototype,"formattedHandle",null);_.r([_.E(),_.Z("design:type",Object)],cv.prototype,"data",void 0);cv=_.r([_.A({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],cv);
_.F(cv,"ytd-handles-claiming-radio-option-renderer",function(){if(sWi!==void 0)return sWi;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return sWi=B},{mode:1});var FZ7;var r54=/^[\x00-\x7F]+$/,AO=function(){var B=_.c.apply(this,arguments)||this;B.initialRadioIndex="-1";B.isLoading=!1;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.maybeSubmitFeedback=function(){B.feedbackSurveyRenderer.submitSurvey()};
return B};
_.l(AO,_.c);AO.prototype.updateSelectedHandleIndexFromBinding=function(B){this.selectedRadioIndex=+B.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(B)};
AO.prototype.selectedHandleChanged=function(B){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var R;this.selectedHandle=(R=this.handleInput)==null?void 0:R.value;this.onSelectedHandleChanged(B)}};
_.mh.Object.defineProperties(AO.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var B;return this.ytRendererBehavior.getSimpleString((B=this.data)==null?void 0:B.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.s$("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.s$(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!r54.test(this.selectedHandle)){var B;return(B=this.data)==null?void 0:B.warningText}}}});
_.r([_.E(),_.Z("design:type",Object)],AO.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],AO.prototype,"initialRadioIndex",void 0);_.r([_.E(),_.Z("design:type",Number)],AO.prototype,"selectedRadioIndex",void 0);_.r([_.E(),_.Z("design:type",String)],AO.prototype,"selectedHandle",void 0);_.r([_.E(),_.Z("design:type",Object)],AO.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",Function)],AO.prototype,"onSelectedHandleChanged",void 0);
_.r([_.E(),_.Z("design:type",Function)],AO.prototype,"onSelectedRadioIndexChanged",void 0);_.r([_.Yp("#channel-handle-input"),_.Z("design:type",Object)],AO.prototype,"handleInput",void 0);_.r([_.Yp("ytd-feedback-survey-renderer"),_.Z("design:type",Object)],AO.prototype,"feedbackSurveyRenderer",void 0);_.r([_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],AO.prototype,"radioButtonLength",null);
_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AO.prototype,"handleUrlPrefix",null);_.r([_.K("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AO.prototype,"displayHandle",null);_.r([_.K("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AO.prototype,"displayHandleUrl",null);_.r([_.K("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],AO.prototype,"warningText",null);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],AO.prototype,"darkerDarkTheme",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);AO=_.r([_.A({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],AO);
_.F(AO,"ytd-handles-claiming-select-dialog-content",function(){if(FZ7!==void 0)return FZ7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return FZ7=B},{mode:1});var gg7;var i1=function(){var B=_.c.apply(this,arguments)||this;B.actionButtonOverride={style:"mono",type:"filled",size:"M"};B.cancelButtonOverride={style:"mono",type:"text",size:"M"};B.initialRadioIndex="-1";B.selectButtonDisabled=!1;B.isLoading=!1;B.selectedRadioIndexChanged=function(R){B.selectedRadioIndex=Number(R.detail.value)};
B.selectedHandleChanged=function(R){B.selectedHandle=R.detail.value};
B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(i1,_.c);_.p=i1.prototype;_.p.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.p.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.p.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Bz(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;_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onSelectHandle=function(){var B=this;if(this.selectedHandle!==void 0){var R;((R=this.data)==null?void 0:R.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(V,e){if(e.newHandleUpdateStatus!==void 0&&e.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&e.newHandleUpdateStatus.errorMessage)_.VN(B.hostElement,_.FF(e.newHandleUpdateStatus.errorMessage)),
B.isLoading=!1;else{var X;if((X=B.data)==null?0:X.onChannelUpdateSuccess){V=B.data.onChannelUpdateSuccess;e=_.D(V,_.ai);var Y;if(e==null?0:(Y=e.popup)==null?0:Y.handlesClaimingConfirmDialogRenderer)e.popup.handlesClaimingConfirmDialogRenderer.handle=_.s$(B.selectedHandle);B.ytComponentBehavior.resolveCommand(V);_.oF(B.hostElement,"yt-close-popup-action",[B.is])}else B.isLoading=!1}},
onServerError:function(){if(B.selectedRadioIndex===B.radioButtonLength){var V;B.content&&((V=B.content)==null?0:V.handleInput)&&B.content.handleInput.validate()}B.isLoading=!1;_.VN(B.hostElement,_.Wz("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 B,R;this.selectedHandle=(B=this.content)==null?void 0:(R=B.handleInput)==null?void 0:R.value}else this.selectedRadioIndex>=0&&((B=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(B==null?void 0:B.handle):this.selectedHandle=void 0)};
_.p.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.p.getRadioItem=function(B){if(this.radioButtonLength>B&&B>=0)return _.D(this.data.radioButton[B],oi4)};
_.mh.Object.defineProperties(i1.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var B;return(((B=this.data)==null?void 0:B.radioButton)||[]).length}}});
i1.prototype.onSelectedHandleChanged=i1.prototype.onSelectedHandleChanged;i1.prototype.onSelectedHandleIndexChanged=i1.prototype.onSelectedHandleIndexChanged;i1.prototype.onDataChanged=i1.prototype.onDataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],i1.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],i1.prototype,"actionButtonOverride",void 0);_.r([_.E(),_.Z("design:type",Object)],i1.prototype,"cancelButtonOverride",void 0);
_.r([_.E(),_.Z("design:type",Object)],i1.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],i1.prototype,"initialRadioIndex",void 0);_.r([_.E(),_.Z("design:type",Number)],i1.prototype,"selectedRadioIndex",void 0);_.r([_.E(),_.Z("design:type",String)],i1.prototype,"selectedHandle",void 0);_.r([_.E(),_.Z("design:type",Object)],i1.prototype,"selectButtonDisabled",void 0);_.r([_.E(),_.Z("design:type",Object)],i1.prototype,"isLoading",void 0);
_.r([_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],i1.prototype,"radioButtonLength",null);_.r([_.Yp("ytd-handles-claiming-select-dialog-content"),_.Z("design:type",Object)],i1.prototype,"content",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],i1.prototype,"onDataChanged",null);
_.r([_.XX("selectedRadioIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],i1.prototype,"onSelectedHandleIndexChanged",null);_.r([_.XX("selectedHandle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],i1.prototype,"onSelectedHandleChanged",null);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],i1.prototype,"darkerDarkTheme",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],i1.prototype,"ytRendererstamperBehavior",void 0);i1=_.r([_.A({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],i1);
_.F(i1,"ytd-handles-claiming-select-dialog-renderer",function(){if(gg7!==void 0)return gg7;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return gg7=B},{mode:1});var Zue;var mDU;var s2=function(){return _.c.apply(this,arguments)||this};
_.l(s2,_.c);s2.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],s2.prototype,"data",void 0);s2=_.r([_.A({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],s2);
_.F(s2,"ytd-hotkey-dialog-section-option-renderer",function(){if(mDU!==void 0)return mDU;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return mDU=B},{mode:1});var $D7;var Fb=function(){return _.c.apply(this,arguments)||this};
_.l(Fb,_.c);Fb.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Fb.prototype,"data",void 0);Fb=_.r([_.A({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Fb);
_.F(Fb,"ytd-hotkey-dialog-section-renderer",function(){if($D7!==void 0)return $D7;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return $D7=B},{mode:1});var rZ=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(rZ,_.c);rZ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],rZ.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],rZ.prototype,"darkerDarkTheme",void 0);rZ=_.r([_.A({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],rZ);
_.F(rZ,"ytd-hotkey-dialog-content",function(){if(Zue!==void 0)return Zue;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Zue=B},{mode:1});var C27;var gZ=function(){return _.c.apply(this,arguments)||this};
_.l(gZ,_.c);gZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var B=document.querySelector("ytd-hotkey-dialog-content #scrollable");B&&(B.dialogElement=this.hostElement.parentElement)};
gZ.prototype.onCloseTap=function(){_.oF(this.hostElement,"yt-close-popup-action")};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],gZ.prototype,"data",void 0);gZ=_.r([_.A({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],gZ);
_.F(gZ,"ytd-hotkey-dialog-renderer",function(){if(C27!==void 0)return C27;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return C27=B},{mode:1});var P2e;var Z6=function(){return _.c.apply(this,arguments)||this};
_.l(Z6,_.c);Z6.prototype.onYtServiceRequestError=function(){if(this.blocked){var B;var R=(B=this.data)==null?void 0:B.defaultServiceEndpoint}else{var V;R=(V=this.data)==null?void 0:V.toggledServiceEndpoint}var e;(R=(e=_.D(R,_.tpG))==null?void 0:e.onFailureAction)&&this.ytComponentBehavior.resolveCommand(R);this.updateBlockState(!this.blocked)};
Z6.prototype.onYtToggleButton=function(B){this.updateBlockState(B.detail.toggled)};
Z6.prototype.updateBlockState=function(B){if(B!==this.blocked){var R=this.blockedEntityKey;R&&this.ytdReduxBehavior.dispatch(_.SX("blockStateEntity",R,{key:R,blocked:B}));this.set("data.isToggled",B)}};
_.mh.Object.defineProperties(Z6.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)}}});
Z6.prototype.onYtToggleButton=Z6.prototype.onYtToggleButton;Z6.prototype.onYtServiceRequestError=Z6.prototype.onYtServiceRequestError;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Z6.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Z6.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Z6.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Z6.prototype,"blockedEntityKey",void 0);
_.r([_.E({selectorArgs:["blockedEntityKey"],selector:function(B,R){return _.p7(B.entities,"blockStateEntity",R)}}),
_.Z("design:type",Object)],Z6.prototype,"blockStateEntity",void 0);_.r([_.K("data","blockStateEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Z6.prototype,"blocked",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Z6.prototype,"onYtServiceRequestError",null);
_.r([_.R_("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Z6.prototype,"onYtToggleButton",null);Z6=_.r([_.A({is:"ytd-block-button",disableElementRegistration:!0})],Z6);
_.F(Z6,"ytd-block-button",function(){if(P2e!==void 0)return P2e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return P2e=B},
{mode:1});var ngU;var uPe;var md=function(){return _.c.apply(this,arguments)||this};
_.l(md,_.c);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],md.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],md.prototype,"data",void 0);md=_.r([_.A({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],md);
_.F(md,"ytd-kids-blocklist-picker-item-renderer",function(){if(uPe!==void 0)return uPe;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return uPe=B},{mode:1});var $H=function(){return _.c.apply(this,arguments)||this};
_.l($H,_.c);$H.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$H.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$H.prototype,"data",void 0);$H=_.r([_.A({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],$H);
_.F($H,"ytd-kids-blocklist-picker-content",function(){if(ngU!==void 0)return ngU;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return ngU=
B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var Oue;var CG=function(){var B=_.c.apply(this,arguments)||this;B.hasAnyRequestSucceeded=!1;B.hasAnyRequestFailed=!1;B.numPendingRequests=0;return B};
_.l(CG,_.c);_.p=CG.prototype;_.p.attached=function(){this.hostElement.setAttribute("dialog","")};
_.p.onDoneButtonTap=function(){_.oF(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(B){var R,V;if(((R=B.detail)==null?void 0:(V=R.popup)==null?void 0:V.is)==="tp-yt-paper-dialog"){var e;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((e=this.data)==null?0:e.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.mP(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
CG.prototype.onPopupClosed=CG.prototype.onPopupClosed;CG.prototype.onYtServiceRequestError=CG.prototype.onYtServiceRequestError;CG.prototype.onYtServiceRequestCompleted=CG.prototype.onYtServiceRequestCompleted;CG.prototype.onYtServiceRequestSent=CG.prototype.onYtServiceRequestSent;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],CG.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],CG.prototype,"data",void 0);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CG.prototype,"onYtServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CG.prototype,"onYtServiceRequestCompleted",null);
_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CG.prototype,"onYtServiceRequestError",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],CG.prototype,"onPopupClosed",null);CG=_.r([_.A({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],CG);
_.F(CG,"ytd-kids-blocklist-picker-renderer",function(){if(Oue!==void 0)return Oue;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Oue=B},{mode:1});var one;var B$4;var Pv=function(){return _.c.apply(this,arguments)||this};
_.l(Pv,_.c);Pv.prototype.setTip=function(B){var R=this;this.data&&(this.tip=FDi(iF2.getInstance(),B,this.data),_.gB(this,function(){_.OI(R.hostElement,"yt-refit")}))};
Pv.prototype.clearTip=function(){this.tip=void 0};
Pv.prototype.computeHidden=function(B){return!B};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Pv.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Z("design:type",Boolean)],Pv.prototype,"hidden",void 0);_.r([_.E(),_.Z("design:type",Object)],Pv.prototype,"tip",void 0);Pv=_.r([_.A({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Pv);
_.F(Pv,"ytd-menu-popup-tip-renderer",function(){if(B$4!==void 0)return B$4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);
return B$4=B},{mode:1});var R24;var nG=function(){var B=_.c.apply(this,arguments)||this;B.useIcons=!1;B.systemIcons=_.k("kevlar_system_icons");B.useListItemStyles=_.k("web_list_item_style_for_menu_items");return B};
_.l(nG,_.c);_.p=nG.prototype;_.p.onFocus=function(){var B;(B=_.w(this.hostElement).querySelector("tp-yt-paper-item"))==null||B.focus()};
_.p.onTap=function(){var B=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(B&&_.D(B,_.p0))this.componentBehavior.resolveCommand(B),this.updateToggledStateInEntity();else if(B){this.componentBehavior.resolveCommand(B)||_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}});var R;((R=_.D(B,_.hE))==null?void 0:R.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 B=this.data.toggleMenuServiceItemEntityKey,R=!this.data.isToggled;B&&this.ytdReduxBehavior.dispatch(_.SX("toggleMenuServiceItemEntity",B,{key:B,isToggled:R}))};
_.p.computeIcon=function(B,R,V){return(B=B?V:R)&&B.iconType?_.RT(B.iconType):""};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.isIconActive=function(B){return!_.k("toggle_menu_active_icon_killswitch")&&B};
_.mh.Object.defineProperties(nG.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.data)==null?0:B.isToggled)?(R=this.data)==null?void 0:R.toggledText:(V=this.data)==null?void 0:V.defaultText}}});
nG.prototype.toggledStateEntityChanged=nG.prototype.toggledStateEntityChanged;nG.prototype.onYtServiceRequestCompleted=nG.prototype.onYtServiceRequestCompleted;nG.prototype.onTap=nG.prototype.onTap;nG.prototype.onFocus=nG.prototype.onFocus;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],nG.prototype,"componentBehavior",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],nG.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],nG.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nG.prototype,"useIcons",void 0);_.r([_.E({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Z("design:type",String)],nG.prototype,"icon",void 0);
_.r([_.E({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(B,R){return _.p7(B.entities,"toggleMenuServiceItemEntity",R)}}),
_.Z("design:type",Object)],nG.prototype,"toggleMenuServiceItemEntity",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nG.prototype,"systemIcons",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],nG.prototype,"useListItemStyles",void 0);_.r([_.R_("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nG.prototype,"onFocus",null);
_.r([_.K("data.isToggled"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nG.prototype,"toggleButtonText",null);_.r([_.R_("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nG.prototype,"onTap",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nG.prototype,"onYtServiceRequestCompleted",null);
_.r([_.XX("toggleMenuServiceItemEntity.isToggled","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nG.prototype,"toggledStateEntityChanged",null);nG=_.r([_.A({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],nG);
_.F(nG,"ytd-toggle-menu-service-item-renderer",function(){if(R24!==void 0)return R24;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return R24=B},{mode:1});var VF6;var u1=function(){return _.c.apply(this,arguments)||this};
_.l(u1,_.c);u1.prototype.onFocus=function(){var B;(B=_.w(this.hostElement).querySelector("tp-yt-paper-item"))==null||B.focus()};
_.mh.Object.defineProperties(u1.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.ym(this.data.iconUrl)}}});
u1.prototype.onFocus=u1.prototype.onFocus;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],u1.prototype,"rendererBehavior",void 0);_.r([_.v(_.VR.YtEndpointBehavior),_.Z("design:type",Object)],u1.prototype,"ytEndpointBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],u1.prototype,"data",void 0);_.r([_.R_("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],u1.prototype,"onFocus",null);
_.r([_.K("data.iconUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],u1.prototype,"imageSource",null);u1=_.r([_.A({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],u1);
_.F(u1,"ytd-menu-custom-icon-item-renderer",function(){if(VF6!==void 0)return VF6;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return VF6=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});_.mR(_.Dw,"yt-list-item-view-model",{props:{data:_.qq,isMenuItem:_.qq,isCompact:_.qq,onTap:_.Z9,trailingAccessory:_.Z9,hideSelectionTextChevron:_.qq,disabled:_.qq,inPopup:_.qq,disableHorizontalPadding:_.qq,isOverlay:_.qq}});var O2=function(){var B=_.c.apply(this,arguments)||this;B.disableBackdropFilter=_.k("web_disable_backdrop_filter");return B};
_.l(O2,_.c);_.p=O2.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(B){return B};
_.p.onPopupOpened=function(){this.items.selected=0;for(var B=_.h(_.w(this.items).children),R=B.next();!R.done;R=B.next())R.value.popupPositionTarget=this.positionTarget;if(B=this.popupTip||void 0)B.setTip(this.source||""),this.source=void 0;this.veData&&(B=_.TE())&&_.cz(B,[this.veData])};
_.p.onPopupClosed=function(){var B=this.popupTip||void 0;B&&B.clearTip()};
_.p.onIronActivate=function(B){this.shouldPersist(B)||_.oF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(B=_.TE())&&_.iF(B,this.veData)};
_.p.shouldPersist=function(B){var R,V;if(((R=B.detail)==null?void 0:R.selected)===void 0||(V=this.data)==null||!V.items)return!1;var e,X;return!((X=(e=this.data.items[B.detail.selected])==null?void 0:e.toggleMenuServiceItemRenderer)==null||!X.persistentOnMenuPopup)};
_.p.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(B){return B.menuNavigationItemRenderer?!!B.menuNavigationItemRenderer.icon:B.menuServiceItemRenderer?!!B.menuServiceItemRenderer.icon:B.menuConditionalServiceItemRenderer?!!B.menuConditionalServiceItemRenderer.icon:B.menuConditionalNavigationItemRenderer?!!B.menuConditionalNavigationItemRenderer.icon:B.toggleMenuServiceItemRenderer?!!B.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
O2.prototype.onPopupClosed=O2.prototype.onPopupClosed;O2.prototype.onPopupOpened=O2.prototype.onPopupOpened;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],O2.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],O2.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],O2.prototype,"veData",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Z("design:type",String)],O2.prototype,"ariaLabel",void 0);_.r([_.E({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],O2.prototype,"useIcons",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],O2.prototype,"disableBackdropFilter",void 0);_.r([_.Yp("#items"),_.Z("design:type",Object)],O2.prototype,"items",void 0);_.r([_.Yp("ytd-menu-popup-tip-renderer"),_.Z("design:type",Object)],O2.prototype,"popupTip",void 0);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O2.prototype,"onPopupOpened",null);
_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O2.prototype,"onPopupClosed",null);O2=_.r([_.A({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],O2);
_.F(O2,"ytd-menu-popup-renderer",function(){if(one!==void 0)return one;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return one=B},{mode:1});var e24;var XMr=_.sx(function(B){B=_.ip(B,{icon:void 0});var R=B.data;B=B.icon;var V=function(){return R().iconBadgeText},e={},X=_.XE("yt-spec-icon-badge-shape",function(){a:switch(R().iconBadgeType){case "notification":var Y="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":Y="yt-spec-icon-badge-shape--type-cart";break a;default:Y=""}return Y},function(){a:switch(R().iconBadgeStyle){case "overlay":var Y="yt-spec-icon-badge-shape--style-overlay";
break a;default:Y=""}return Y},(e["yt-spec-icon-badge-shape--text-size-small"]=function(){var Y=V();
return!!((Y==null?0:Y.length)&&Y.length>2)},e));
return _.N("yt-icon-badge-shape",null,_.N(_.H,{cond:B,then:function(Y){return _.N("div",{class:X},_.N("div",{class:"yt-spec-icon-badge-shape__icon"},_.N(_.Us,{icon:Y})),_.N(_.H,{cond:V,then:function(t){return _.N("div",{class:"yt-spec-icon-badge-shape__badge"},t)}}))}}))},"ig");
XMr.idomCompat=!0;_.mR(XMr,"yt-icon-badge-shape",{props:{data:_.qq,icon:_.qq}});var oM=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};B.unseenCount=0;B.isOverlay=!1;return B};
_.l(oM,_.c);_.p=oM.prototype;_.p.attached=function(){var B=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(R){B.onServiceWorkerMessage(R)})};
_.p.onDataChanged=function(){this.isAttached&&!this.JSC$18176_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18176_lastData=this.data};
_.p.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.p.computeIcon=function(){var B,R;return(B=this.data)==null?void 0:(R=B.icon)==null?void 0:R.iconType};
_.p.onServiceWorkerMessage=function(B){B.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&&!!_.D(this.data.updateUnseenCountEndpoint,_.hE)&&_.D(this.data.updateUnseenCountEndpoint,_.hE).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.p.handleUpdateNotificationsUnseenCountAction=function(B){var R=this;B=_.D(B,gIm);B!=null&&B.unseenCount&&B.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(B.unseenCount),_.dV.addLowPriorityJob(function(){R.data.updateUnseenCountEndpoint&&R.ytComponentBehavior.resolveCommand(R.data.updateUnseenCountEndpoint)},B.timeoutMs))};
_.p.onClick=function(){_.OI(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var B=_.Bz(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),R=this.data.menuRequest;B&&B.length===1&&B[0]?_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):R&&this.ytComponentBehavior.resolveCommand(R)};
_.p.handleTopbarMenuClosedAction=function(B){B==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.p.toggleIconState=function(B){this.iconButton&&(this.iconButton.pressed=B)};
_.p.sendUnseenCountRequest=function(B){var R=this;_.kD(_.dV,function(){R.ytComponentBehavior.resolveCommand(B)})};
_.p.updateCountUI=function(B){this.set("unseenCount",B<9?B:"9+")};
_.mh.Object.defineProperties(oM.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
oM.prototype.handleUpdateNotificationsUnseenCountAction=oM.prototype.handleUpdateNotificationsUnseenCountAction;oM.prototype.onDataChanged=oM.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],oM.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.Ad),_.Z("design:type",Object)],oM.prototype,"ytdOpenPopupBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],oM.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],oM.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],oM.prototype,"unseenCount",void 0);_.r([_.E(),_.Z("design:type",Object)],oM.prototype,"isOverlay",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],oM.prototype,"showTooltips",void 0);_.r([_.Yp("yt-icon-button"),_.Z("design:type",Object)],oM.prototype,"iconButton",void 0);
_.r([_.K("unseenCount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],oM.prototype,"showNotificationCount",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oM.prototype,"onDataChanged",null);_.r([_.R_("yt-update-notifications-unseen-count-action"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],oM.prototype,"handleUpdateNotificationsUnseenCountAction",null);
oM=_.r([_.A({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],oM);
_.F(oM,"ytd-notification-topbar-button-renderer",function(){if(e24!==void 0)return e24;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return e24=B},{mode:_.up("kevlar_poly_si_batch_j025")?1:2});var pM4;var BN=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return B};
_.l(BN,_.c);BN.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}}}}}};
BN.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
BN.prototype.onDarkModeToggled=function(B){this.dark=B};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],BN.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],BN.prototype,"data",void 0);_.r([_.E({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],BN.prototype,"dark",void 0);
BN=_.r([_.A({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],BN);
_.F(BN,"yt-pdg-buy-flow-header-renderer",function(){if(pM4!==void 0)return pM4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return pM4=B},{mode:1});var YuU;var h26;var RM=function(){var B=_.c.apply(this,arguments)||this;B.immediateValue=0;B.isDarkTheme=!1;B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(RM,_.c);_.p=RM.prototype;_.p.created=function(){_.iv.requestAvailability()};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.dataChanged=function(){var B=_.w(this.hostElement).querySelector("#color-slider");B.immediateValue&&this.updateSliderKnobAndGradientStyles(B.immediateValue);this.data.notches[0].knobColorArgb&&_.o_(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.zF(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.vE("HTML_DIR")==="rtl"&&_.w(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.p.onSliderImmediateChange=function(){var B=_.w(this.hostElement).querySelector("#color-slider");B.dragging&&(B.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(B.immediateValue),this.updateSliderKnobAndGradientStyles(B.immediateValue)),this.updateSliderAria())};
_.p.onSliderChange=function(){var B=_.w(this.hostElement).querySelector("#color-slider");B.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(B.immediateValue),this.updateSliderKnobAndGradientStyles(B.immediateValue));this.updateSliderAria()};
_.p.updateSliderAria=function(){var B=_.w(this.hostElement).querySelector("#color-slider"),R=_.w(this.hostElement).querySelector("#color-slider");R=_.FF(this.data.notches[R.immediateValue].tierValue);_.LZ()&&_.OI(this.hostElement,"iron-announce",{text:R});B.setAttribute("aria-valuetext",R)};
_.p.updateSuperThanksSelectedTierEntity=function(B){if(B!==this.immediateValue){var R,V,e=this==null?void 0:(R=this.data)==null?void 0:(V=R.superThanksSelectedTierEntity)==null?void 0:V.key;e&&e.length>0&&this.ytdReduxBehavior.dispatch(_.SX("superThanksSelectedTierEntity",e,{key:e,index:B}))}};
_.p.onDarkModeToggledAction=function(B){this.isDarkTheme=B};
_.p.updateSliderKnobAndGradientStyles=function(B){this.immediateValue=B;B=this.data.notches[B];if(B==null?0:B.knobColorArgb)var R={"--ytd-pdg-color-slider-knob-color":_.zF(B.knobColorArgb)};(B==null?0:B.linearGradientCssStyle)&&R!==null&&(R=Object.assign({},R,{"--ytd-pdg-color-slider-active-color":B==null?void 0:B.linearGradientCssStyle}));R!==null&&_.o_(this.hostElement,R)};
RM.prototype.onSliderChange=RM.prototype.onSliderChange;RM.prototype.onSliderImmediateChange=RM.prototype.onSliderImmediateChange;RM.prototype.dataChanged=RM.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],RM.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],RM.prototype,"immediateValue",void 0);_.r([_.E(),_.Z("design:type",Number)],RM.prototype,"maxMarkers",void 0);
_.r([_.E({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:cKz}),_.Z("design:type",Object)],RM.prototype,"superThanksSelectedTierEntity",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],RM.prototype,"isDarkTheme",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],RM.prototype,"ytdReduxBehavior",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RM.prototype,"dataChanged",null);
_.r([_.R_("immediate-value-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RM.prototype,"onSliderImmediateChange",null);_.r([_.R_("change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RM.prototype,"onSliderChange",null);RM=_.r([_.A({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],RM);
_.F(RM,"ytd-pdg-color-slider-renderer",function(){if(h26!==void 0)return h26;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return h26=B},{mode:1});var tF4;var WMo;var V9=null;
_.Sm({is:"ytd-comment-input",_template:function(){if(WMo!==void 0)return WMo;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return WMo=B},
behaviors:[_.y5Z.YtHostElementBehavior,_.kI,_.Tk.YtComponentBehavior,_.mD.YtRendererstamperBehavior,_.mbl.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 _.Tx}},
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",_.Bc(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;_.bx();this.focus()},
detached:function(){document.removeEventListener("tap",_.Bc(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(B){B=B.detail;B=B.isCustomEmoji?B.shortcuts[0]:B.emojiId;var R=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(R,B);this.maybeUpdateTextDirection_();_.OI(this.hostElement,"input")},
getInputRange_:function(){var B=_.k1();if(B){B=B.getBrowserRangeObject();for(var R=B.commonAncestorContainer;R;){if(R===this.getEditableTextArea_())return B;R=R.parentNode}}B=this.getEditableTextArea_();B=_.Ic(B,B.childNodes.length);B.select();return B.getBrowserRangeObject()},
insertTextWithEmojis_:function(B,R,V){(R=this.emojiManager.createDocumentFragment(R,!0,!1,V===void 0?!0:V))&&R.childNodes.length!==0&&(B.collapsed||B.deleteContents(),V=R.lastChild,B.insertNode(R),_.vGJ(V).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var B=_.k1();if(B){var R=B.JSC$9159_getStartNode(),V=B.JSC$9159_getEndNode();if(KP4(R)&&KP4(V)){var e=B.JSC$9159_getStartOffset(),X;if(_.Jo&&R.nodeType===Node.ELEMENT_NODE&&(X=_.rhl(R)))_.Ic(X,0).select();else{X=nH(R)?R:_.xl(R,nH);var Y=nH(V)?V:_.xl(V,nH);if(X||Y)if(B.isCollapsed()){if(R.nodeType===Node.TEXT_NODE){B=!0;e===R.length&&(B=!1);if(V9==="end"||V9==="right")B=!1;R=R.parentNode;B=[].concat(_.MI(R.parentNode.childNodes)).indexOf(R)+(B?0:1);_.Ic(R.parentNode,B).select()}}else X?
X.previousSibling&&X.previousSibling.length>0?_.Ej(V,B.JSC$9159_getEndOffset(),X.previousSibling,X.previousSibling.length-1).select():(R=document.createTextNode("\u200b"),X.parentNode.insertBefore(R,X),_.Ej(V,B.JSC$9159_getEndOffset(),R,0).select()):Y&&(Y.nextSibling&&Y.nextSibling.length>0?_.Ej(R,B.JSC$9159_getStartOffset(),Y.nextSibling,1).select():(V=document.createTextNode("\u200b"),Y.parentNode.insertBefore(V,Y.nextSibling),_.Ej(R,B.JSC$9159_getStartOffset(),V,V.length).select()));V9=null}}else V9=
null}else V9=null},
leftKeyPressed_:function(){V9="left"},
rightKeyPressed_:function(){V9="right"},
endKeyPressed_:function(){V9="end"},
maybeDeleteChip_:function(){var B=As2(!0);if(B){var R=_.k1(),V=R.JSC$9159_getStartNode();R=R.JSC$9159_getStartOffset();_.Ts(V,R,B,B.childNodes.length).select()}},
maybeBackspaceChip_:function(){var B=As2(!1);if(B){var R=_.k1(),V=R.JSC$9159_getStartNode();R=R.JSC$9159_getStartOffset();_.Ts(V,R,B,0).select()}},
maybeBackspaceChipWordMode_:function(B){var R=_.k1();if(R.isCollapsed()){var V=R.JSC$9159_getStartNode();R=R.JSC$9159_getStartOffset();var e=i7N(V,R,!0);e&&(_.Ts(V,R,e,0).select(),document.execCommand("delete"),B.preventDefault(),B.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(B){var R=_.k1();if(R.isCollapsed()){var V=R.JSC$9159_getStartNode();R=R.JSC$9159_getStartOffset();var e=i7N(V,R,!1);e&&(_.Ts(V,R,e,e.childNodes.length).select(),document.execCommand("delete"),B.preventDefault(),B.stopImmediatePropagation())}},
onContentClick:function(B){B.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(B){B.defaultPrevented||B.currentTarget.tagName==="YTD-COMMENT-INPUT"&&nH(B.target)&&B.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.w(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.w(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(B,R){B=EGN(B,this.emojiManager,R).cloneNode(!0);for(R=B.firstChild;R;)if(R.nodeType!==1)R=R.nextSibling;else switch(R.tagName){case "BR":var V=_.ap();_.uaJ(V,R);R=V.nextSibling;break;case "DIV":(V=R.lastChild)&&R.nextSibling&&_.xP(_.ap(),V);R.previousSibling&&(R.previousSibling.nodeType===1||R.previousSibling.nodeType===3&&!R.previousSibling.textContent.endsWith("\n"))&&_.Tw(_.ap(),R);V&&V.nodeName==="BR"&&_.UJ(V);V=R;R.hasChildNodes()?(R=R.firstChild,
_.ORJ(V)):(R=R.nextSibling,_.UJ(V));break;default:R=R.nextSibling}return srm(B)},
setTextAreaValue:function(B){B||(B="");var R=this.getEditableFormattedString_();R.text="";this.getEditableTextArea_().innerText="";typeof B==="string"&&(B={runs:[{text:B}]});R.text=B},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();V9=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var B=this.getEditableTextArea_();B&&(_.Ic(B,B.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.vE("HTML_DIR")==="rtl"){var B=this.getEditableTextArea_(),R=this.getTextAreaValue()!==""?"auto":"rtl";B.setAttribute("dir",R)}},
handleInputEvent_:function(){var B=null;if(this.isEmojiButtonDisplayed){var R=this.getInputRange_();R&&(B=this.emojiInput.retrieveTextBeforeRange(R))}this.insertText_(B,!0);this.updateCharCount_();B=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=B.scrollHeight>B.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var B=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:B})},
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(B){this.isEmojiButtonDisplayed&&(B.preventDefault(),B.stopImmediatePropagation(),B=B.clipboardData.getData("text/plain"),this.insertText_(B,!1,!1),_.OI(this.hostElement,"input"))},
insertText_:function(B,R,V){R=R===void 0?!1:R;V=V===void 0?!0:V;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&B){var e=this.getInputRange_().cloneRange();this.emojiManager&&e&&(R&&this.emojiInput.offsetStartOfRangeBy(e,B.length),this.insertTextWithEmojis_(e,B,V),Izi(this.getEditableTextArea_().lastChild)||(e=this.getInputRange_().cloneRange()),e&&(this.emojiInput.updateSuggestions(e,B),this.updateSuggestionOffset_(e)))}},
getSimpleString:_.FF,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(B){return B?"focused":"not-focused"},
computePlaceholderText_:function(B){return this.getSimpleString(B)},
computeEditableText_:function(B){return this.getSimpleString(B)},
onPrefilledContentDismissed_:function(B){B.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(B,R){B?this.fire("yt-autonav-pause-focus"):R!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(B){var R=this.getEditableTextArea_();[].concat(_.MI(B.dataTransfer.items)).forEach(function(V){V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(e){R.appendChild(document.createTextNode(e))})});
B.preventDefault()},
preventDefault_:function(B){B.preventDefault()},
onSuggestionInsert_:function(B){this.insertTextWithEmojis_(B.detail.range,B.detail.text)},
onEmojiSuggestionClick_:function(B){this.emojiInput.insertSuggestion(B.detail)},
updateSuggestionOffset_:function(B){if(this.emojiInput&&_.w(this.emojiInput).querySelector("#dropdown")){var R=this.getEditableTextArea_().getBoundingClientRect().bottom,V=B.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(R-V)+5;R=this.getEditableTextArea_().getBoundingClientRect().left;B=B.getBoundingClientRect().left-R;_.w(this.emojiInput).querySelector("#dropdown").style.marginLeft=B+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.vf("yt-post"));return this.localStorage}});var e3=function(){var B=_.c.apply(this,arguments)||this;B.currentCommentOptionIndex=0;B.isEmojiPickerDisplayed=!1;B.emojiManager=_.Tx;B.isUgcEmpty=!1;B.userGeneratedCommentChangedHandler=function(){_.OI(B.hostElement,"ytd-pdg-user-generated-comment-changed");B.isEmojiYtdCommentInputEnabled&&(B.isUgcEmpty=!B.ytdCommentInputEl.getTextAreaValue())};
B.pasteHandler=function(R){R.preventDefault();R.stopImmediatePropagation();var V;if(R=(V=R.clipboardData)==null?void 0:V.getData("text/plain"))V=document.getSelection().getRangeAt(0),V.collapsed||V.deleteContents(),R=document.createTextNode(R),V.insertNode(R),V.selectNodeContents(R),V.collapse(!1),R=window.getSelection(),R.removeAllRanges(),R.addRange(V)};
B.onDocumentClick=function(R){if(B.isEmojiPickerDisplayed){var V,e,X;!(R.target instanceof Node)||(V=R.composedPath())!=null&&V.includes(B.editableTextEl)||(e=R.composedPath())!=null&&e.includes(B.emojiButtonEl)||(X=R.composedPath())!=null&&X.includes(B.emojiPickerEl)||(B.isEmojiPickerDisplayed=!1)}};
return B};
_.l(e3,_.c);_.p=e3.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 B;(B=this.contentEl)==null||B.removeEventListener("input",this.userGeneratedCommentChangedHandler);var R;(R=this.contentEl)==null||R.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 B;this.contentEl.textContent=this.rendererBehavior.getSimpleString((B=this.data)==null?void 0:B.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.p.reloadEmojis=function(){this.emojiPickerEl&&_.D(this.emojiPicker,_.Mp4)&&this.emojiPickerEl.updateEmojiCategories()};
_.p.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.o_(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.p.handleBackgroundColorStyling=function(){var B;if((B=this.currentCommentOption)==null?0:B.commentBackgroundColorArgb){var R;_.o_(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.zF((R=this.currentCommentOption)==null?void 0:R.commentBackgroundColorArgb)})}else _.o_(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 B;(B=this.contentEl)==null||B.focus()}};
_.p.onEditButtonClick=function(B){var R=document.getSelection();R&&this.contentEl&&(B.stopPropagation(),B.preventDefault(),R.selectAllChildren(this.contentEl),R.collapseToEnd())};
_.p.onContentDrop=function(B){var R=this;if(B.dataTransfer){B=_.h(B.dataTransfer.items);for(var V=B.next();!V.done;V=B.next())V=V.value,V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(e){var X;(X=R.contentEl)==null||X.appendChild(document.createTextNode(e))})}};
_.p.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.p.getUserGeneratedCommentText=function(){var B,R=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(B=this.contentEl)==null?void 0:B.textContent;return R?R.trim():""};
_.p.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.p.onEmojiSelect=function(B){this.ytdCommentInputEl.onEmojiSelect(B)};
_.mh.Object.defineProperties(e3.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.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 B;return!((B=this.currentCommentOption)==null||!B.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var B;if(_.D((B=this.currentCommentOption)==null?void 0:B.chipRenderer,_.LGS)){var R;return _.D((R=this.currentCommentOption)==null?void 0:R.chipRenderer,_.LGS)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var B,R;return((B=this.data)==null?0:B.commentOptionRenderers)?_.D((R=this.data)==null?void 0:R.commentOptionRenderers[this.superThanksSelectedTierEntity.index],yGN):void 0}var V,e;return((V=this.data)==null?0:V.commentOptionRenderers)?_.D((e=this.data)==null?void 0:e.commentOptionRenderers[this.currentCommentOptionIndex],yGN):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var B;return this.rendererBehavior.getSimpleString((B=this.data)==null?void 0:B.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var B;return this.rendererBehavior.getSimpleString((B=this.data)==null?void 0:B.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=_.D((B=this.data)==null?void 0:B.commentDialog,_.J_5))==null?void 0:R.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=_.D((B=this.data)==null?void 0:B.commentDialog,_.J_5))==null?void 0:R.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=_.D((B=this.data)==null?void 0:B.commentDialog,_.J_5))==null?void 0:R.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(R=_.D((B=this.data)==null?void 0:B.commentDialog,_.J_5))==null?void 0:R.emojiPicker;if(!_.D(V,_.Mp4)||!_.D(V,_.Mp4).categories)return!1;B=function(Y){return Y.emojiPickerCategoryRenderer?Y.emojiPickerCategoryRenderer.emojiIds&&Y.emojiPickerCategoryRenderer.emojiIds.length>0:Y.emojiPickerUpsellCategoryRenderer?Y.emojiPickerUpsellCategoryRenderer.emojis&&Y.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var e,X;return((e=_.D(V,_.Mp4))==null?0:(X=e.categories)==null?0:X.find(B))?!0:!1}}});
e3.prototype.onEmojiSelect=e3.prototype.onEmojiSelect;e3.prototype.dataChanged=e3.prototype.dataChanged;e3.prototype.currentCommentOptionChanged=e3.prototype.currentCommentOptionChanged;_.r([_.v(_.dt),_.Z("design:type",Object)],e3.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],e3.prototype,"rendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.Yp("#content-dom-if"),_.Z("design:type",_.MU)],e3.prototype,"contentDomIfEl",void 0);_.r([_.Yp("#content-no-emojis"),_.Z("design:type",HTMLElement)],e3.prototype,"contentEl",void 0);_.r([_.Yp("#container"),_.Z("design:type",HTMLElement)],e3.prototype,"containerEl",void 0);_.r([_.Yp("#comment-chip-container"),_.Z("design:type",HTMLElement)],e3.prototype,"paidCommentChipContainerEl",void 0);_.r([_.Yp("#text-input"),_.Z("design:type",HTMLElement)],e3.prototype,"editableTextEl",void 0);
_.r([_.Yp("#emoji-button"),_.Z("design:type",HTMLElement)],e3.prototype,"emojiButtonEl",void 0);_.r([_.Yp("#emoji-picker > yt-emoji-picker-renderer"),_.Z("design:type",Object)],e3.prototype,"emojiPickerEl",void 0);_.r([_.Yp("#text-input > ytd-comment-input"),_.Z("design:type",Object)],e3.prototype,"ytdCommentInputEl",void 0);_.r([_.E(),_.Z("design:type",Object)],e3.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],e3.prototype,"currentCommentOptionIndex",void 0);
_.r([_.E({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:cKz}),_.Z("design:type",Object)],e3.prototype,"superThanksSelectedTierEntity",void 0);_.r([_.E(),_.Z("design:type",Object)],e3.prototype,"isEmojiPickerDisplayed",void 0);_.r([_.E(),_.Z("design:type",Object)],e3.prototype,"emojiManager",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],e3.prototype,"isUgcEmpty",void 0);
_.r([_.XX("currentCommentOption"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e3.prototype,"currentCommentOptionChanged",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e3.prototype,"dataChanged",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],e3.prototype,"isEmojiYtdCommentInputEnabled",null);
_.r([_.K("data.title"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e3.prototype,"title",null);_.r([_.K("data.authorText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e3.prototype,"channelName",null);_.r([_.K("data.commentOptionRenderers","currentCommentOption"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],e3.prototype,"shouldShowPaidCommentChipRenderer",null);
_.r([_.K("data.commentOptionRenderers","currentCommentOption"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e3.prototype,"paidCommentChipRenderer",null);_.r([_.K("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e3.prototype,"currentCommentOption",null);
_.r([_.K("data.defaultCommentText","superThanksSelectedTierEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e3.prototype,"commentText",null);_.r([_.K("data.placeholderText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e3.prototype,"placeholderText",null);_.r([_.K("data.commentDialog.commentDialogRenderer.editableText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e3.prototype,"editableText",null);
_.r([_.K("data.commentDialog.commentDialogRenderer.emojiButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e3.prototype,"emojiButton",null);_.r([_.K("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e3.prototype,"emojiPicker",null);
_.r([_.K("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],e3.prototype,"isEmojiButtonDisplayed",null);_.r([_.R_("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],e3.prototype,"onEmojiSelect",null);e3=_.r([_.A({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],e3);
_.F(e3,"ytd-pdg-comment-preview-renderer",function(){if(tF4!==void 0)return tF4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return tF4=B},{mode:2});var b_N;var X9=function(){var B=_.c.apply(this,arguments)||this;B.selected=!1;return B};
_.l(X9,_.c);_.p=X9.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&&(_.P$(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.o_(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.zF(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.zF(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(){_.OI(this.hostElement,"tap");this.onClick()};
_.p.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
X9.prototype.onClick=X9.prototype.onClick;X9.prototype.selectedChanged=X9.prototype.selectedChanged;X9.prototype.dataChanged=X9.prototype.dataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],X9.prototype,"componentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.kI),_.Z("design:type",Object)],X9.prototype,"ironA11yKeysBehavior",void 0);
_.r([_.v(_.KJ),_.Z("design:type",Object)],X9.prototype,"ironSelectableBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],X9.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],X9.prototype,"shownThumbnail",void 0);_.r([_.E(),_.Z("design:type",Object)],X9.prototype,"basePriceText",void 0);_.r([_.E(),_.Z("design:type",Object)],X9.prototype,"purchaseCommand",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],X9.prototype,"selected",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],X9.prototype,"dataChanged",null);_.r([_.XX("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],X9.prototype,"selectedChanged",null);_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],X9.prototype,"onClick",null);
X9=_.r([_.A({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],X9);
_.F(X9,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(b_N!==void 0)return b_N;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return b_N=B},{mode:1});var pB=function(){var B=_.c.apply(this,arguments)||this;B.selectedItemIndex=0;B.buyButtonDisabled=!1;return B};
_.l(pB,_.c);_.p=pB.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 B;var R=(B=_.D(this.data.colorSlider,Gle))==null?void 0:B.notches[this.selectedItemIndex].purchaseCommand}else{var V;R=(V=_.D(this.data.selectableItemButtons[this.selectedItemIndex],Ht2))==null?void 0:V.purchaseCommand}if(R){B=_.D(R,_.pDv);B.productData||(B.productData={});var e;B.productData={pdgData:{commentMessageText:(e=this.commentPreviewRenderer)==null?void 0:e.getUserGeneratedCommentText()}};
_.OI(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(R)}}};
_.p.dataChanged=function(){if(this.data){_.Tx.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.ay2(_.Tx,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Tx.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var B;this.buyButtonDisabled=!((B=_.D(this.data.commentPreview,SN4))==null||!B.placeholderText);this.updatePriceSelectorStatus();var R;if((R=this.data)==null?0:R.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;B=[];this.data.preloadImages&&(B=this.data.preloadImages);
B=B.map(function(V){return _.$T(V.thumbnails,1920)});
B=_.h(B);for(R=B.next();!R.done;R=B.next())(R=R.value)&&_.F1S(R).thenCatch(function(){_.KE(Error("kl"))})}};
_.p.superThanksSelectedTierEntityChanged=function(){var B;(this==null?void 0:(B=this.superThanksSelectedTierEntity)==null?void 0:B.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.p.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.p.updatePriceSelectorStatus=function(){this.isColorSlider?(_.w(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.w(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.w(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.w(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.p.closeBuyFlow=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.p.onUserGeneratedContentChanged=function(){var B;this.buyButtonDisabled=!((B=this.commentPreviewRenderer)==null?0:B.getUserGeneratedCommentText())};
_.p.updateSelectedItemIndexFromBinding=function(B){this.selectedItemIndex=B.detail.value};
_.mh.Object.defineProperties(pB.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var B;return!((B=this.data)==null||!B.disclaimerText)}}});
pB.prototype.onUserGeneratedContentChanged=pB.prototype.onUserGeneratedContentChanged;pB.prototype.closeBuyFlow=pB.prototype.closeBuyFlow;pB.prototype.selectedItemIndexChanged=pB.prototype.selectedItemIndexChanged;pB.prototype.superThanksSelectedTierEntityChanged=pB.prototype.superThanksSelectedTierEntityChanged;pB.prototype.dataChanged=pB.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],pB.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],pB.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],pB.prototype,"selectedItemIndex",void 0);_.r([_.E(),_.Z("design:type",Boolean)],pB.prototype,"isColorSlider",void 0);
_.r([_.E(),_.Z("design:type",Object)],pB.prototype,"buyButtonDisabled",void 0);_.r([_.E({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:cKz}),_.Z("design:type",Object)],pB.prototype,"superThanksSelectedTierEntity",void 0);_.r([_.Yp("ytd-pdg-comment-preview-renderer"),_.Z("design:type",Object)],pB.prototype,"commentPreviewRenderer",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],pB.prototype,"ytdReduxBehavior",void 0);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pB.prototype,"dataChanged",null);_.r([_.XX("superThanksSelectedTierEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pB.prototype,"superThanksSelectedTierEntityChanged",null);_.r([_.XX("selectedItemIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pB.prototype,"selectedItemIndexChanged",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pB.prototype,"closeBuyFlow",null);_.r([_.R_("ytd-pdg-user-generated-comment-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pB.prototype,"onUserGeneratedContentChanged",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pB.prototype,"isDisclaimerTextShown",null);
pB=_.r([_.A({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],pB);
_.F(pB,"yt-super-vod-buy-flow-content-renderer",function(){if(YuU!==void 0)return YuU;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return YuU=B},{mode:1});var J7j;var Ys=function(){var B=_.c.apply(this,arguments)||this;B.lottieAnimationRef={};return B};
_.l(Ys,_.c);_.p=Ys.prototype;_.p.created=function(){_.iv.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Bc(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&&_.OI(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.p.detached=function(){this.autoCloseJobId&&_.dV.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Bc(this,this.onPopupIronOverlayOpened))};
_.p.dataChanged=function(){var B=this;this.data&&this.data.autoCloseDelay&&(_.oF(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.ua(_.dV,function(){B.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.o_(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.p.onDOMLoadedLottie=function(){var B=this,R,V,e=Number((R=this.data)==null?void 0:(V=R.autoCloseDelay)==null?void 0:V.seconds)||0;this.fadeOutJobId=_.ua(_.dV,function(){B.lottiePlayerEl.classList.add("fadeout")},(e-.25)*1E3);
this.autoCloseJobId=_.ua(_.dV,function(){B.closePopup()},e*1E3)};
_.p.openPopup=function(){this.ironOverlayBehavior.open()};
_.p.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.oF(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.eO(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.Oz().resolve(_.oC).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.dV.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.dV.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.p.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var B,R;(B=this.lottieAnimationRef)==null||(R=B.lottieEl)==null||R.destroy();B=this.data.lottie;var V,e;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:B.url+"_"+Math.random(),path:B.url,autoplay:!0,loop:(e=(V=B.settings)==null?void 0:V.loop)!=null?e:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.mh.Object.defineProperties(Ys.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var B,R;return!!((B=this.data)==null?0:(R=B.lottie)==null?0:R.url)}}});
Ys.prototype.maybeInitializeLottie=Ys.prototype.maybeInitializeLottie;Ys.prototype.dataChanged=Ys.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Ys.prototype,"rendererBehavior",void 0);_.r([_.v(_.ZV),_.Z("design:type",Object)],Ys.prototype,"ironOverlayBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Ys.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Ys.prototype,"lottiePlayerProps",void 0);
_.r([_.E(),_.Z("design:type",Object)],Ys.prototype,"lottieAnimationRef",void 0);_.r([_.Yp("ytd-lottie-player"),_.Z("design:type",HTMLElement)],Ys.prototype,"lottiePlayerEl",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ys.prototype,"dataChanged",null);_.r([_.K("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ys.prototype,"hasLottieAnimation",null);
_.r([_.XX("data.lottie.url"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ys.prototype,"maybeInitializeLottie",null);Ys=_.r([_.A({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Ys);
_.F(Ys,"ytd-desktop-image-overlay-renderer",function(){if(J7j!==void 0)return J7j;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return J7j=B},{mode:1});var j04;var hY=function(){return _.c.apply(this,arguments)||this};
_.l(hY,_.c);_.p=hY.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",_.Bc(this,this.closePopup))};
_.p.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Bc(this,this.closePopup))};
_.p.dataChanged=function(){_.Bz(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.D(this.data.header,Nfr)&&(this.hasBackgroundBanner=!!_.D(this.data.header,Nfr).backgroundBanner)};
_.p.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Bc(this,this.closePopup))};
_.p.closePopup=function(){this.data&&this.data.onCloseCommand&&_.VD(this.hostElement,[this.data.onCloseCommand])};
hY.prototype.handleBuyflowSelectionSubmitted=hY.prototype.handleBuyflowSelectionSubmitted;hY.prototype.dataChanged=hY.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],hY.prototype,"data",void 0);
_.r([_.E({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],hY.prototype,"hasBackgroundBanner",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hY.prototype,"dataChanged",null);_.r([_.R_("yt-pdg-buy-flow-selection-submitted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hY.prototype,"handleBuyflowSelectionSubmitted",null);
hY=_.r([_.A({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],hY);
_.F(hY,"ytd-pdg-buy-flow-renderer",function(){if(j04!==void 0)return j04;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return j04=B},{mode:1});var U44;var tY=function(){var B=_.c.apply(this,arguments)||this;B.isOpen=!1;B.isPlaylistCreated=!1;return B};
_.l(tY,_.c);_.p=tY.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();_.OI(this.hostElement,"yt-refit")};
_.p.onCreateTap=function(){var B=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.VD(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(R,V){if(!_.k("killswitch_ep_in_create_playlist_response")&&(V==null?0:V.actions))for(R=_.h(V.actions),V=R.next();!V.done;V=R.next())V=V.value,_.D(V,_.vS)&&B.ytComponentBehavior.resolveCommand(V)}}]),this.isPlaylistCreated=!0)};
_.p.onKeydown=function(B){if(B.keyCode===13)this.onCreateTap()};
_.p.onServiceRequestCompleted=function(B){B.stopPropagation();_.oF(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.p.computePrivacyBadge=function(B){return B?[{metadataBadgeRenderer:B}]:[]};
tY.prototype.onServiceRequestCompleted=tY.prototype.onServiceRequestCompleted;tY.prototype.onKeydown=tY.prototype.onKeydown;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],tY.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],tY.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],tY.prototype,"isOpen",void 0);
_.r([_.E(),_.Z("design:type",Object)],tY.prototype,"isPlaylistCreated",void 0);_.r([_.E({value:{REQUIRED_LABEL:_.Wz("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Wz("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Z("design:type",Object)],tY.prototype,"addToStrings",void 0);_.r([_.E({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Z("design:type",Array)],tY.prototype,"privacyBadge",void 0);
_.r([_.Yp("#privacy-input"),_.Z("design:type",Object)],tY.prototype,"privacyInput",void 0);_.r([_.Yp("#name-input"),_.Z("design:type",Object)],tY.prototype,"nameInput",void 0);_.r([_.R_("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],tY.prototype,"onKeydown",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],tY.prototype,"onServiceRequestCompleted",null);
tY=_.r([_.A({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],tY);
_.F(tY,"ytd-add-to-playlist-create-renderer",function(){if(U44!==void 0)return U44;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return U44=B},{mode:1});var N$4;var Gf2;var WN=function(){var B=_.c.apply(this,arguments)||this;B.transferState="TRANSFER_STATE_UNKNOWN";return B};
_.l(WN,_.c);WN.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
WN.prototype.onCheckboxChange=function(B){var R=this;this.data&&_.LJ(this,"yt-playlist-checkbox-changed",function(){var V=_.ii(B).checked?R.data.addToPlaylistServiceEndpoint:R.data.removeFromPlaylistServiceEndpoint;V&&_.Oz().resolve(_.oC).resolveCommand(V,{form:{element:R.hostElement}});_.k("dl_playlist_killswitch")||R.transferState!=="TRANSFER_STATE_UNKNOWN"&&R.transferState!=="TRANSFER_STATE_FAILED"&&R.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:R.data.playlistId,action:"ACTION_SYNC"}})},
100)};
WN.prototype.computeIconType=function(B){return B?"yt-icons:"+B.toLowerCase():null};
WN.prototype.dataChanged=WN.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],WN.prototype,"data",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],WN.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],WN.prototype,"ytComponentBehavior",void 0);_.r([_.Yp("#checkbox"),_.Z("design:type",HTMLInputElement)],WN.prototype,"checkbox",void 0);
_.r([_.E({selector:_.xG,selectorArgs:["data.playlistId"]}),_.Z("design:type",String)],WN.prototype,"transferState",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WN.prototype,"dataChanged",null);WN=_.r([_.A({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],WN);
_.F(WN,"ytd-playlist-add-to-option-renderer",function(){if(Gf2!==void 0)return Gf2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Gf2=B},{mode:1});_.oA(FPo);_.Br(FPo,"ytd-menu-title-renderer",{propNames:["data"]});var bt=function(){var B=_.c.apply(this,arguments)||this;B.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Wz("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};B.closeButtonAriaLabel=_.Wz("SBOX_INAPPROPRIATE_CANCEL");B.dialog=_.k("desktop_add_to_playlist_renderer_dialog_popup");return B};
_.l(bt,_.c);_.p=bt.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(){_.nk(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.p.onPopupClosed=function(){_.nk(this.playlists,"scrollable",!1)};
_.p.computeAriaLabel=function(){var B;if(this==null?0:(B=this.data)==null?0:B.actions){B=_.h(this.data.actions);for(var R=B.next();!R.done;R=B.next())if(R=R.value,R.menuTitleRenderer)return _.FF(R.menuTitleRenderer.title)}};
_.p.onTapClose=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.mh.Object.defineProperties(bt.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var B;if(this==null?0:(B=this.data)==null?0:B.actions){B=_.h(this.data.actions);for(var R=B.next();!R.done;R=B.next())if(R=R.value,R.menuTitleRenderer)return R.menuTitleRenderer}return!1}}});
bt.prototype.onPopupClosed=bt.prototype.onPopupClosed;bt.prototype.onPopupOpened=bt.prototype.onPopupOpened;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],bt.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],bt.prototype,"ytRendererStamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],bt.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],bt.prototype,"addToStrings",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Z("design:type",String)],bt.prototype,"ariaLabel",void 0);_.r([_.E(),_.Z("design:type",String)],bt.prototype,"closeButtonAriaLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bt.prototype,"dialog",void 0);
_.r([_.Yp("#playlists"),_.Z("design:type",HTMLElement)],bt.prototype,"playlists",void 0);_.r([_.Yp("ytd-add-to-playlist-create-renderer"),_.Z("design:type",Object)],bt.prototype,"createRenderer",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bt.prototype,"menuTitleRenderer",null);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bt.prototype,"onPopupOpened",null);
_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bt.prototype,"onPopupClosed",null);bt=_.r([_.A({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],bt);
_.F(bt,"ytd-add-to-playlist-renderer",function(){if(N$4!==void 0)return N$4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return N$4=B},{mode:1});var y7r;var JY=function(){var B=_.c.apply(this,arguments)||this;B.isPlaylistEditComplete=!1;B.isCollabEngagementDisabled=!1;B.closeButtonAriaLabel=_.Wz("SBOX_INAPPROPRIATE_CANCEL");B.saveButton={title:_.Wz("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"};B.onValueChanged=function(){B.updateSaveButtonState();B.computeCollabEngagementDisabled()};
return B};
_.l(JY,_.c);_.p=JY.prototype;_.p.attached=function(){this.JSC$18232_scroller&&(this.JSC$18232_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18232_scroller.attached&&typeof this.JSC$18232_scroller.attached==="function"&&this.JSC$18232_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(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.p.onClickSave=function(){var B=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var R=[];this.nameInput.value!==null&&R.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&R.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var V=Number(this.privacyInput.value);isNaN(V)||R.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:V})}this.votingInput.value!==null&&(V=this.votingInput.value)&&R.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:V});if(R.length>0){var e;_.D((e=this.data)==null?void 0:e.updateSettingsEndpoint,_.Lt).actions=R;var X;if((X=this.data)==null?0:X.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){B.close()}}}),this.isPlaylistEditComplete=!0}}};
_.p.computePrivacyBadge=function(B){return B?[{metadataBadgeRenderer:B}]:[]};
_.p.computeEditorData=function(B){var R,V;return B==null?void 0:(R=B.sections)==null?void 0:(V=R[0])==null?void 0:V.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 B,R,V,e=(B=this.data)==null?void 0:(R=B.sections)==null?void 0:(V=R[0])==null?void 0:V.playlistSettingsEditorCasualSectionRenderer;return _.FF(e==null?void 0:e.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 B,R,V;return(((B=this.editorData)==null?void 0:(R=B.name)==null?void 0:(V=R.textInputFormFieldRenderer)==null?void 0:V.value)||"")!==(this.nameInput.value||"")};
_.p.isDescriptionChanged=function(){var B,R,V;return(((B=this.editorData)==null?void 0:(R=B.description)==null?void 0:(V=R.textInputFormFieldRenderer)==null?void 0:V.value)||"")!==(this.descriptionInput.value||"")};
_.p.isPrivacyChanged=function(){var B,R,V,e,X,Y,t,b;return((t=(B=this.editorData)==null?void 0:(R=B.privacy)==null?void 0:(V=R.dropdownFormFieldRenderer)==null?void 0:(e=V.dropdown)==null?void 0:(X=e.dropdownRenderer)==null?void 0:(Y=X.entries)==null?void 0:Y.find(function(J){var G;return J==null?void 0:(G=J.privacyDropdownItemRenderer)==null?void 0:G.isSelected}))==null?void 0:(b=t.privacyDropdownItemRenderer)==null?void 0:b.int32Value)!==this.privacyInput.value};
_.p.isVotingChanged=function(){var B,R,V,e,X,Y,t,b;return((t=(B=this.editorData)==null?void 0:(R=B.voting)==null?void 0:(V=R.dropdownFormFieldRenderer)==null?void 0:(e=V.dropdown)==null?void 0:(X=e.dropdownRenderer)==null?void 0:(Y=X.entries)==null?void 0:Y.find(function(J){var G;return J==null?void 0:(G=J.privacyDropdownItemRenderer)==null?void 0:G.isSelected}))==null?void 0:(b=t.privacyDropdownItemRenderer)==null?void 0:b.int32Value)!==this.votingInput.value};
JY.prototype.onPopupClosed=JY.prototype.onPopupClosed;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],JY.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],JY.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],JY.prototype,"ytRendererStamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],JY.prototype,"data",void 0);_.r([_.E({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Z("design:type",Array)],JY.prototype,"privacyBadge",void 0);_.r([_.E({computed:"computeEditorData(data)"}),_.Z("design:type",Object)],JY.prototype,"editorData",void 0);_.r([_.E(),_.Z("design:type",Object)],JY.prototype,"isPlaylistEditComplete",void 0);_.r([_.E(),_.Z("design:type",Object)],JY.prototype,"isCollabEngagementDisabled",void 0);
_.r([_.E({value:{REQUIRED_LABEL:_.Wz("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Wz("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Z("design:type",Object)],JY.prototype,"addToStrings",void 0);_.r([_.E({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Z("design:type",String)],JY.prototype,"ariaLabel",void 0);_.r([_.E(),_.Z("design:type",String)],JY.prototype,"closeButtonAriaLabel",void 0);
_.r([_.E(),_.Z("design:type",Object)],JY.prototype,"saveButton",void 0);_.r([_.Yp("#name-input"),_.Z("design:type",Object)],JY.prototype,"nameInput",void 0);_.r([_.Yp("#description-input"),_.Z("design:type",Object)],JY.prototype,"descriptionInput",void 0);_.r([_.Yp("#privacy-input"),_.Z("design:type",Object)],JY.prototype,"privacyInput",void 0);_.r([_.Yp("#voting-input"),_.Z("design:type",Object)],JY.prototype,"votingInput",void 0);
_.r([_.Yp("#scroller"),_.Z("design:type",Object)],JY.prototype,"JSC$18232_scroller",void 0);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JY.prototype,"onPopupClosed",null);_.r([_.E(),_.Z("design:type",Object)],JY.prototype,"onValueChanged",void 0);JY=_.r([_.A({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],JY);
_.F(JY,"ytd-playlist-settings-editor-renderer",function(){if(y7r===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);y7r=B}B=y7r;return B},{mode:1});var Su4;_.aO("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var j3=function(){return _.c.apply(this,arguments)||this};
_.l(j3,_.c);_.p=j3.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 B=this.get("data.nextButton.buttonRenderer.navigationEndpoint");B&&(this.nextNavigationEndpoint=B,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 B={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",B)}}};
_.p.onPopupOpened=function(B){B.detail!==this&&B.detail!==this.hostElement||!_.k("enable_premium_voluntary_pause")||_.oF(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.p.onNextButtonTap=function(){var B=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);B&&this.ytdOpenPopupBehavior.openPopup(B)};
_.p.updateSelectedResponseIndexFromBinding=function(B){this.selectedResponseIndex=B.detail.value};
j3.prototype.onPopupOpened=j3.prototype.onPopupOpened;j3.prototype.onSelectedResponseIndexChange=j3.prototype.onSelectedResponseIndexChange;j3.prototype.dataChanged=j3.prototype.dataChanged;_.r([_.v(_.Ad),_.Z("design:type",Object)],j3.prototype,"ytdOpenPopupBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],j3.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Number)],j3.prototype,"selectedResponseIndex",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],j3.prototype,"dataChanged",null);_.r([_.XX("selectedResponseIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],j3.prototype,"onSelectedResponseIndexChange",null);
_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],j3.prototype,"onPopupOpened",null);j3=_.r([_.A({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],j3);
_.F(j3,"ytd-red-cancel-survey-renderer",function(){if(Su4!==void 0)return Su4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Su4=B},{mode:1});var H_2;var UK=function(){var B=_.c.apply(this,arguments)||this;B.closeButtonAriaLabel=_.Wz("SBOX_INAPPROPRIATE_CANCEL");return B};
_.l(UK,_.c);UK.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
UK.prototype.onClickClose=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],UK.prototype,"rendererStamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],UK.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],UK.prototype,"closeButtonAriaLabel",void 0);UK=_.r([_.A({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],UK);
_.F(UK,"ytd-search-filter-options-dialog-renderer",function(){if(H_2!==void 0)return H_2;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return H_2=B},{mode:1});var MF4;var Z72=function(){return function(B){B=B.availabilityType;return B===void 0||B==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||B==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Nz=function(){var B=_.c.apply(this,arguments)||this;B.qualityOptions=[];B.upsellOptions=[];B.showUpsellSection=!1;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.rememberSettingsChecked=!1;return B};
_.l(Nz,_.c);_.p=Nz.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)_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var B=[],R=[];this.showUpsellSection=!1;for(var V=_.h(this.formats),e=V.next();!e.done;e=V.next())(e=e.value)&&(e.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?R.push(e):B.push(e));B.length&&(this.qualityOptions=gGe(B));R.length&&(this.showUpsellSection=!0,this.upsellOptions=gGe(R))}};
_.p.updateRememberString=function(){if(this.downloadQualityPickerEntity)var B=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var R;B=(R=this.data)==null?void 0:R.premiumRememberSettingString}else{var V;B=(V=this.data)==null?void 0:V.rememberSettingString}B=B===void 0?_.Wz("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):B;this.rememberSettingsCheckboxRenderer={title:_.n0(B),disabled:!1}};
_.p.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.mh.Object.defineProperties(Nz.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var B;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(B=this.data)==null?void 0:B.qualityFormats}}});
Nz.prototype.updateRememberString=Nz.prototype.updateRememberString;Nz.prototype.updateQualityOptions=Nz.prototype.updateQualityOptions;Nz.prototype.dataChanged=Nz.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Nz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Nz.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Nz.prototype,"data",void 0);
_.r([_.v(_.dt),_.Z("design:type",Object)],Nz.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Boolean)],Nz.prototype,"selectedUpsellQuality",void 0);_.r([_.E({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Z("design:type",String)],Nz.prototype,"premiumIcon",void 0);_.r([_.E({selector:Itj,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Z("design:type",Object)],Nz.prototype,"downloadQualityPickerEntity",void 0);
_.r([_.E(),_.Z("design:type",Array)],Nz.prototype,"qualityOptions",void 0);_.r([_.E(),_.Z("design:type",Array)],Nz.prototype,"upsellOptions",void 0);_.r([_.E(),_.Z("design:type",Object)],Nz.prototype,"showUpsellSection",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Nz.prototype,"darkerDarkTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],Nz.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.r([_.Yp("#remember-settings"),_.Z("design:type",HTMLInputElement)],Nz.prototype,"rememberSettingsCheckbox",void 0);_.r([_.E(),_.Z("design:type",Object)],Nz.prototype,"rememberSettingsChecked",void 0);_.r([_.E(),_.Z("design:type",Function)],Nz.prototype,"onRememberSettingsCheckedChanged",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nz.prototype,"dataChanged",null);
_.r([_.XX("downloadQualityPickerEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nz.prototype,"updateQualityOptions",null);_.r([_.XX("selectedUpsellQuality"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nz.prototype,"updateRememberString",null);Nz=_.r([_.A({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Nz);
_.F(Nz,"ytd-download-quality-selector-content",function(){if(MF4!==void 0)return MF4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return MF4=B},{mode:1});var kf4;var Gh=function(){var B=_.c.apply(this,arguments)||this;B.selectedUpsellQuality=!1;B.qualityOptions=[];B.darkerDarkTheme=_.k("web_darker_dark_theme");B.useUpsellDismissAlternate=_.k("use_not_now_dl_upsell_dismiss_cta");B.shouldShowAlternateUpsellDimiss=!1;B.rememberSettings=!1;B.rememberSettingsChecked=!1;B.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};B.rememberSettingsCheckedChanged=function(R){B.rememberSettingsChecked=R};
return B};
_.l(Gh,_.c);_.p=Gh.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:_.n0(_.Wz("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.n0(_.Wz("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.n0(_.Wz("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.n0(_.Wz("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.p.updateQualityOptions=function(){this.formats===void 0?_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=gGe(this.formats)};
_.p.onQualityOptionsSelect=function(B){if(this.qualityOptions&&B){B!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var R=_.h(this.qualityOptions.entries()),V=R.next();!V.done;V=
R.next()){V=_.h(V.value);var e=V.next().value;V=V.next().value;var X=void 0,Y=void 0;if(((X=V)==null?void 0:(Y=X.settingsRadioOptionRenderer)==null?void 0:Y.id)===B){this.selectedQualityIndex=e;B=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((B=this.formats[e])==null?void 0:B.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.p.onClickSubmit=function(){var B;if((B=this.downloadButtonRenderer)==null||!B.isDisabled){var R,V;B=(V=(R=this.data)==null?void 0:R.onSubmitEndpoint)!=null?V:{};var e,X;if(this.formats&&(((e=_.D(B,_.Jv))==null?0:e.videoId)||((X=_.D(B,_.jX))==null?0:X.playlistId))){var Y,t,b,J,G,y;R={formatType:(J=(Y=this.formats)==null?void 0:(t=Y[(b=this.selectedQualityIndex)!=null?b:0])==null?void 0:t.format)!=null?J:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(G=this.getOfflineEndpoint(B))==null?void 0:(y=G.actionParams)==null?void 0:y.settingsAction)};this.getOfflineEndpoint(B).actionParams=R;this.ytComponentBehavior.resolveCommand(B)}_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.p.onClickUpsell=function(){var B;if((B=this.upsellButtonRenderer)==null||!B.isDisabled){var R,V;B=(V=(R=this.data)==null?void 0:R.upsellEndpoint)!=null?V:{};this.ytComponentBehavior.resolveCommand(B);_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);R="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var e,X,Y,t;R=(t=(e=this.formats)==null?void 0:(X=e[(Y=this.selectedQualityIndex)!=null?Y:0])==null?void 0:X.format)!=null?t:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:R}})}};
_.p.onClickClose=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.p.getOfflineSettingsAction=function(B,R){return B?R===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":R:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.p.getOfflineEndpoint=function(B){return _.D(B,_.Jv)?_.D(B,_.Jv):_.D(B,_.jX)};
_.mh.Object.defineProperties(Gh.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.n0(_.Wz("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var B;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(B=this.data)==null?void 0:B.qualityFormats}}});
Gh.prototype.updateQualityOptions=Gh.prototype.updateQualityOptions;Gh.prototype.dataChanged=Gh.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Gh.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Gh.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Gh.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Number)],Gh.prototype,"selectedQualityIndex",void 0);_.r([_.E(),_.Z("design:type",Object)],Gh.prototype,"selectedUpsellQuality",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],Gh.prototype,"ytdReduxBehavior",void 0);
_.r([_.E({selector:Itj,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Z("design:type",Object)],Gh.prototype,"downloadQualityPickerEntity",void 0);_.r([_.E(),_.Z("design:type",Array)],Gh.prototype,"qualityOptions",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Gh.prototype,"darkerDarkTheme",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Gh.prototype,"useUpsellDismissAlternate",void 0);
_.r([_.E(),_.Z("design:type",Object)],Gh.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.r([_.E(),_.Z("design:type",Object)],Gh.prototype,"downloadButtonRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],Gh.prototype,"upsellButtonRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],Gh.prototype,"cancelButtonRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],Gh.prototype,"upsellCancelButtonRenderer",void 0);_.r([_.E(),_.Z("design:type",Object)],Gh.prototype,"rememberSettings",void 0);
_.r([_.E(),_.Z("design:type",Object)],Gh.prototype,"rememberSettingsChecked",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gh.prototype,"dataChanged",null);_.r([_.XX("downloadQualityPickerEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gh.prototype,"updateQualityOptions",null);Gh=_.r([_.A({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Gh);
_.F(Gh,"ytd-download-quality-selector-renderer",function(){if(kf4!==void 0)return kf4;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return kf4=B},{mode:1});var D4r;var y9=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(y9,_.c);y9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
y9.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"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],y9.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],y9.prototype,"darkerDarkTheme",void 0);_.r([_.E({computed:"computeIcon_(data.infoIcon)"}),_.Z("design:type",Object)],y9.prototype,"infoIcon",void 0);
_.r([_.E({computed:"computeIcon_(data.warningIcon)"}),_.Z("design:type",Object)],y9.prototype,"warningIcon",void 0);y9=_.r([_.A({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],y9);
_.F(y9,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(D4r!==void 0)return D4r;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return D4r=B},{mode:1});var ff2;var S3=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(S3,_.c);S3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
S3.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"}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],S3.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],S3.prototype,"darkerDarkTheme",void 0);S3=_.r([_.A({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],S3);
_.F(S3,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(ff2!==void 0)return ff2;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return ff2=B},{mode:1});var lfm;var HN=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(HN,_.c);HN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
HN.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"}}}}};
HN.prototype.onServiceRequestSentOrCompleted=function(B,R){R&&R.actions&&R.actions.length>0&&_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
HN.prototype.onServiceRequestSentOrCompleted=HN.prototype.onServiceRequestSentOrCompleted;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],HN.prototype,"darkerDarkTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],HN.prototype,"data",void 0);
_.r([_.R_("yt-service-request-completed"),_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],HN.prototype,"onServiceRequestSentOrCompleted",null);HN=_.r([_.A({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],HN);
_.F(HN,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(lfm!==void 0)return lfm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return lfm=B},{mode:1});var z2z;var Mz=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.submitButtonDisabled=!0;return B};
_.l(Mz,_.c);_.p=Mz.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 B,R,V;if(((B=this.data)==null?void 0:(R=B.confirmButton)==null?void 0:(V=R.buttonRenderer)==null?void 0:V.isDisabled)!==void 0){var e,X,Y;this.submitButtonDisabled=(e=this.data)==null?void 0:(X=e.confirmButton)==null?void 0:(Y=X.buttonRenderer)==null?void 0:Y.isDisabled}};
_.p.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.p.updateSubmitButtonDisabledFromBinding=function(B){this.submitButtonDisabled=B.detail.value};
_.p.updateSubmitButtonDisabledFromConfirmCheckbox=function(B){this.submitButtonDisabled=!B.detail.value};
Mz.prototype.onDataChanged=Mz.prototype.onDataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Mz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Mz.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],Mz.prototype,"darkerDarkTheme",void 0);
_.r([_.E(),_.Z("design:type",Object)],Mz.prototype,"submitButtonDisabled",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mz.prototype,"onDataChanged",null);Mz=_.r([_.A({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Mz);
_.F(Mz,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(z2z!==void 0)return z2z;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return z2z=B},{mode:1});var afe;var ks=function(){return _.c.apply(this,arguments)||this};
_.l(ks,_.c);_.mh.Object.defineProperties(ks.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var B,R,V;return((B=this.data)==null?void 0:B.title)+" "+((R=this.data)==null?void 0:R.metadataPrimary)+" "+((V=this.data)==null?void 0:V.metadataSecondary)}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],ks.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ks.prototype,"data",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ks.prototype,"ariaLabel",null);ks=_.r([_.A({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],ks);
_.F(ks,"ytd-compact-product-list-item-renderer",function(){if(afe!==void 0)return afe;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return afe=B},{mode:1});var d4U;var Di=function(){return _.c.apply(this,arguments)||this};
_.l(Di,_.c);Di.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]]"}}}}}};
_.mh.Object.defineProperties(Di.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Di.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Di.prototype,"data",void 0);Di=_.r([_.A({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Di);
_.F(Di,"ytd-compact-product-list-renderer",function(){if(d4U!==void 0)return d4U;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return d4U=B},{mode:1});var wM6;var fB=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(fB,_.c);_.p=fB.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 B=this.get("data.headerImage.thumbnails");return B?"url("+_.$T(B,this.hostElement.clientWidth)+")":""};
_.p.onDataChanged=function(){var B=this.getBackgroundUrl();B&&(this.header.style.backgroundImage=B);B=_.TE();var R=_.wT(),V=this.get("data.trackingParams");V&&R&&B&&_.EV(B,R,_.U5(V));B=_.h(this.hostElement.querySelectorAll("yt-img-shadow"));for(R=B.next();!R.done;R=B.next())R.value.onShow()};
_.p.onPopupClosed=function(B){_.ii(B).localName==="ytd-membership-post-cancel-renderer"&&_.oF(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
fB.prototype.onPopupClosed=fB.prototype.onPopupClosed;fB.prototype.onDataChanged=fB.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],fB.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],fB.prototype,"darkerDarkTheme",void 0);
_.r([_.Yp("#header"),_.Z("design:type",HTMLDivElement)],fB.prototype,"header",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fB.prototype,"onDataChanged",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fB.prototype,"onPopupClosed",null);fB=_.r([_.A({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],fB);
_.F(fB,"ytd-membership-post-cancel-renderer",function(){if(wM6!==void 0)return wM6;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return wM6=B},{mode:1});var T$i;var lt=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(lt,_.c);lt.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
lt.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lt.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],lt.prototype,"darkerDarkTheme",void 0);_.r([_.Yp("ytd-feedback-survey-renderer"),_.Z("design:type",Object)],lt.prototype,"feedbackSurveyRenderer",void 0);lt=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],lt);
_.F(lt,"ytd-sponsorship-confirm-cancel-content",function(){if(T$i!==void 0)return T$i;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return T$i=B},{mode:1});var x4n;var zh=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.maybeSubmitFeedback=function(){B.content&&B.content.maybeSubmitFeedback()};
return B};
_.l(zh,_.c);_.p=zh.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(B,R){R===this&&this.data&&this.data.onOpenCommands&&_.eO(this.hostElement,this.data.onOpenCommands,this.hostElement);_.oF(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.p.onYtPopupClosed=function(B,R){(R&&R.canceled===!0||R&&R.canceled===!1&&R.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.eO(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestCompleted=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.p.onYtServiceRequestError=function(B){_.VN(this.hostElement,B.detail.error.message)};
_.p.onDataChanged=function(){if(this.isAttached){var B=this.backgroundUrl;B&&(_.w(this.hostElement).querySelector("#header").style.backgroundImage=B)}};
_.mh.Object.defineProperties(zh.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var B=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return B?"url("+_.$T(B,this.hostElement.clientWidth)+")":""}}});
zh.prototype.onDataChanged=zh.prototype.onDataChanged;zh.prototype.onYtServiceRequestError=zh.prototype.onYtServiceRequestError;zh.prototype.onYtServiceRequestCompleted=zh.prototype.onYtServiceRequestCompleted;zh.prototype.onYtPopupClosed=zh.prototype.onYtPopupClosed;zh.prototype.onYtPopupOpened=zh.prototype.onYtPopupOpened;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zh.prototype,"data",void 0);_.r([_.E({value:function(){return _.Wz("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Z("design:type",String)],zh.prototype,"closeButtonAriaLabel",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],zh.prototype,"darkerDarkTheme",void 0);_.r([_.Yp("#scrollable"),_.Z("design:type",Object)],zh.prototype,"scrollable",void 0);_.r([_.Yp("ytd-sponsorship-confirm-cancel-content"),_.Z("design:type",Object)],zh.prototype,"content",void 0);
_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],zh.prototype,"onYtPopupOpened",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],zh.prototype,"onYtPopupClosed",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],zh.prototype,"onYtServiceRequestCompleted",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],zh.prototype,"onYtServiceRequestError",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zh.prototype,"onDataChanged",null);
zh=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],zh);
_.F(zh,"ytd-sponsorship-confirm-cancel-renderer",function(){if(x4n!==void 0)return x4n;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return x4n=B},{mode:_.up("kevlar_poly_si_batch_j081")?1:2});var LM4;var aM=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(aM,_.c);aM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],aM.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],aM.prototype,"darkerDarkTheme",void 0);aM=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],aM);
_.F(aM,"ytd-sponsorships-celebration-content",function(){if(LM4!==void 0)return LM4;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return LM4=
B},{mode:1});var vnz;var KM4=_.$Q(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),d5=function(){var B=_.c.apply(this,arguments)||this;B.scriptsAppended=!1;B.buttonOverrides={type:"tonal",style:"overlay-dark"};return B};
_.l(d5,_.c);_.p=d5.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:_.k("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onDataChanged=function(){var B;(B=this.header)==null||B.style.setProperty("background-color",this.backgroundColor);if(B=this.headerImageUrl){var R;(R=this.header)==null||R.style.setProperty("background-image",B)}R=_.TE(4);B=_.wT(4);var V=this.get("data.trackingParams");if(V&&B&&R){var e=_.U5(V);_.EV(R,B,e);_.k("combine_ve_grafts")?_.WK().graftServerVe(V,B,4):_.EV(R,B,e)}R=_.h(this.hostElement.querySelectorAll("yt-img-shadow"));for(B=R.next();!B.done;B=R.next())B.value.onShow();if(R=this.get("data.gtmId"))_.Nq(R,
_.vE("GL","")),this.setupConversionTracking()};
_.p.setupConversionTracking=function(){if(!this.scriptsAppended){var B=document.createElement("script");var R=_.K$(KM4.join(""));_.E8(B,R);document.head.appendChild(B);B=document.createElement("noscript");B.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(B);this.scriptsAppended=!0}};
_.p.onPopupClosed=function(B){if(_.ii(B).localName==="ytd-sponsorships-celebration-renderer"){_.oF(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var R;this.data&&((R=this.data)==null?0:R.dismissCommand)&&_.eR.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.mh.Object.defineProperties(d5.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var B=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.zF(B)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var B=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return B?"url("+_.$T(B,this.hostElement.getBoundingClientRect().width)+")":""}}});
d5.prototype.onPopupClosed=d5.prototype.onPopupClosed;d5.prototype.onDataChanged=d5.prototype.onDataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],d5.prototype,"data",void 0);_.r([_.Yp("#header"),_.Z("design:type",HTMLElement)],d5.prototype,"header",void 0);
_.r([_.E(),_.Z("design:type",Object)],d5.prototype,"scriptsAppended",void 0);_.r([_.E(),_.Z("design:type",Object)],d5.prototype,"buttonOverrides",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d5.prototype,"onDataChanged",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],d5.prototype,"onPopupClosed",null);
d5=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],d5);
_.F(d5,"ytd-sponsorships-celebration-renderer",function(){if(vnz!==void 0)return vnz;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return vnz=B},{mode:1});var If2;var w5=function(){var B=_.c.apply(this,arguments)||this;B.isToggleChecked=!1;return B};
_.l(w5,_.c);w5.prototype.onDataChanged=function(){var B;this.isToggleChecked=((B=this.data)==null?void 0:B.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
w5.prototype.close=function(){var B;((B=this.data)==null?0:B.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
w5.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var B,R=_.D((B=this.data)==null?void 0:B.switchButton,ME4);R&&(this.isToggleChecked&&R.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(R.switchOnInnertubeCommand),!this.isToggleChecked&&R.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(R.switchOffInnertubeCommand))};
w5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
w5.prototype.onDataChanged=w5.prototype.onDataChanged;_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],w5.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],w5.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],w5.prototype,"isToggleChecked",void 0);_.r([_.E({value:_.Wz("CLOSE")}),_.Z("design:type",String)],w5.prototype,"closeButtonAriaLabel",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w5.prototype,"onDataChanged",null);w5=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],w5);
_.F(w5,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(If2!==void 0)return If2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return If2=B},{mode:1});var Enm;var Th=function(){return _.c.apply(this,arguments)||this};
_.l(Th,_.c);_.p=Th.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(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.p.onYtServiceRequestError=function(B){_.VN(this.hostElement,B.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(B,R){return!B||!B.tiers||R<0?null:_.D(B.tiers[R],lu7)};
_.p.moreThanOne=function(B){return!!(B&&B.length>1)};
_.p.tierOverviewTap=function(B){var R=this;this.selectedTier=B.model.index;_.gB(this,function(){_.OI(R.hostElement,"yt-refit")})};
_.p.computeSelectedClass=function(B,R){return this.isSelected(B,R)?"selected":""};
_.p.computeButtonAriaPressed=function(B,R){return this.isSelected(B,R)?"true":"false"};
_.p.isSelected=function(B,R){return B===R};
_.p.onDataChanged=function(){_.w(this.hostElement).querySelector("#header-overlay").style.visibility="";_.w(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 B=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),
R=B.next();!R.done;R=B.next())R.value.onShow();var V;this.set("selectedTier",(V=this.get("data.targetTierIndex"))!=null?V:0);var e;(B=(e=this.data)==null?void 0:e.onVisible)&&this.ytComponentBehavior.resolveCommand(B)};
_.p.initializeVe=function(B){var R=_.TE(),V=_.wT(),e=this.get("data.trackingParams");V&&R&&(this.screenLayer=4,R=_.Qh(_.lAZ)(void 0,69877,{clientScreenNonce:R,visualElement:V},void 0,void 0,void 0),_.Kto(R,69877,4),V=_.wT(4),e&&V&&(e=_.U5(e),_.EV(R,V,e),B&&(this.offerVideoVe=_.kB(74659),_.EV(R,e,this.offerVideoVe))))};
_.p.setHeaderBackground=function(){var B=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.w(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.zF(B);if(B=this.getHeaderImage())B=_.$T(B,screen.width),_.w(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+B+")"};
_.p.getHeaderImage=function(){var B=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&B?B:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.p.setupVideoPlayer=function(B){var R=this,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1)return V=R.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),e=R.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.k("kevlar_player_update_killswitch")?R.playerElement.update({args:{autoplay:V,video_id:B,player_params:e}}):R.playerElement.loadVideoWithPlayerVars({autoplay:V,video_id:B,player_params:e}),
_.U(t,R.playerElement.getPlayerPromise(),2);X=t.yieldResult;X.addEventListener("onStateChange",function(b){R.onPlayerStateChange(b)});
X.setScreenLayer(R.screenLayer);(Y=_.TE(4))&&R.offerVideoVe&&_.qd(Y,R.offerVideoVe);V&&(R.pauseOtherPlayers(),R.playerElement.focusOnPlayer(),R.playerElement.getPlayer().hideControls(),_.kD(_.dV,function(){R.fadeOutHeaderOverlay()},4E3));
_.b3(t)})};
_.p.onPlayerStateChange=function(B){B===1?this.backgroundPlayerElement&&(B=this.backgroundPlayerElement.player_.getPlayerState(),B!==1&&B!==3||this.backgroundPlayerElement.pause()):B===0&&(_.w(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.w(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.p.fadeOutHeaderOverlay=function(){_.w(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.p.onHeaderTap=function(){if(this.offerVideo){_.w(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var B;((B=this.playerElement.player_)==null?void 0:B.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(B=_.TE(4))&&this.offerVideoVe&&_.iF(B,this.offerVideoVe)}};
_.p.getBackgroundImageLayerClass=function(B){return B?"background-image-layer-with-video":""};
_.p.getHeaderClass=function(B){return B?"header-with-video":""};
_.p.getHeaderOverlayClass=function(B){return B?"header-overlay-with-video":""};
_.p.getTitleContainerClass=function(B,R){return B?"title-container-with-video":R?"title-container-without-video-flexible":"title-container-without-video"};
_.p.tierTitleDisplayStatus=function(B){return this.moreThanOne(B)?"hide":"show"};
_.p.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.Oz().resolve(_.An).getPlayerElement():this.backgroundPlayerElement=_.Pr();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var B=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=B===1||B===3;this.backgroundPlayerElement.pause()}};
_.p.isMiniplayerActive=function(){return _.Oz().resolve(_.An).isMiniplayerActive()};
_.p.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("selected-tier-changed",this.selectedTier))};
Th.prototype.selectedTierChangedForBinding=Th.prototype.selectedTierChangedForBinding;Th.prototype.onDataChanged=Th.prototype.onDataChanged;Th.prototype.onYtPopupClosed=Th.prototype.onYtPopupClosed;Th.prototype.onYtPopupOpened=Th.prototype.onYtPopupOpened;Th.prototype.onYtServiceRequestError=Th.prototype.onYtServiceRequestError;Th.prototype.onYtServiceRequestCompleted=Th.prototype.onYtServiceRequestCompleted;
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Th.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Th.prototype,"data",void 0);_.r([_.E({value:0}),_.Z("design:type",Number)],Th.prototype,"selectedTier",void 0);
_.r([_.E({value:""}),_.Z("design:type",String)],Th.prototype,"offerVideo",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Th.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.r([_.E({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Y5(this)}}),
_.Z("design:type",String)],Th.prototype,"playerId",void 0);_.r([_.Yp("tp-yt-paper-dialog-scrollable"),_.Z("design:type",Object)],Th.prototype,"scrollable",void 0);_.r([_.Yp("ytd-sponsorships-tier-renderer"),_.Z("design:type",Object)],Th.prototype,"tierRenderer",void 0);_.r([_.Yp("#player"),_.Z("design:type",Object)],Th.prototype,"playerElement",void 0);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Th.prototype,"onYtServiceRequestCompleted",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Th.prototype,"onYtServiceRequestError",null);
_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"onYtPopupOpened",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"onYtPopupClosed",null);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"onDataChanged",null);
_.r([_.XX("selectedTier"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"selectedTierChangedForBinding",null);Th=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Th);
_.F(Th,"ytd-sponsorships-offer-renderer",function(){if(Enm!==void 0)return Enm;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Enm=B},{mode:_.up("kevlar_poly_si_batch_j077")?1:2});var Q06;var xs=function(){var B=_.c.apply(this,arguments)||this;B.buttonOverrides={type:"filled",style:"mono"};return B};
_.l(xs,_.c);xs.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}}}}}};
xs.prototype.backgroundColorChanged=function(){var B,R,V,e=(R=_.D((B=this.data)==null?void 0:B.content,zrU))==null?void 0:(V=R.backgroundColor)==null?void 0:V.backgroundColor;e&&(B=_.li(e),_.w(this.hostElement).querySelector("#banner").style.backgroundColor=B,_.w(this.hostElement).querySelector("#abstract-art").style.backgroundColor=B)};
xs.prototype.attached=function(){this.JSC$18318_scroller&&(this.JSC$18318_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18318_scroller.attached&&typeof this.JSC$18318_scroller.attached==="function"&&this.JSC$18318_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xs.prototype.backgroundColorChanged=xs.prototype.backgroundColorChanged;_.r([_.E(),_.Z("design:type",Object)],xs.prototype,"data",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],xs.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Yp("#scroller"),_.Z("design:type",Object)],xs.prototype,"JSC$18318_scroller",void 0);_.r([_.E(),_.Z("design:type",Object)],xs.prototype,"buttonOverrides",void 0);
_.r([_.XX("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xs.prototype,"backgroundColorChanged",null);xs=_.r([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],xs);
_.F(xs,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Q06!==void 0)return Q06;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return Q06=B},{mode:_.up("kevlar_poly_si_batch_j077")?1:2});var qun;var c7e;var LB=function(){return _.c.apply(this,arguments)||this};
_.l(LB,_.c);LB.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
LB.prototype.computeIsInitiallyChecked=function(B){return B===1};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],LB.prototype,"data",void 0);_.r([_.Yp("#checkbox"),_.Z("design:type",Object)],LB.prototype,"checkbox",void 0);LB=_.r([_.A({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],LB);
_.F(LB,"ytd-subscription-toggle-option-renderer",function(){if(c7e!==void 0)return c7e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return c7e=B},{mode:1});var vN=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return B};
_.l(vN,_.c);vN.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"}}}};
vN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
vN.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var B=_.w(this.hostElement).querySelector("#options").selected;B=this.data.options[B].subscriptionRadioOptionRenderer.serviceEndpoint;var R=_.w(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");R&&B&&B.modifyChannelNotificationPreferenceEndpoint&&(R=R.getValue())&&(B.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[R]);_.Oz().resolve(_.oC).resolveCommand(B,{form:{element:this.hostElement}});
_.oF(this.hostElement,"yt-close-popup-action")};
_.mh.Object.defineProperties(vN.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var B=this.data.options,R=0;R<B.length;R++){var V=B[R].subscriptionRadioOptionRenderer;if(V&&V.selected)return R}return null}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],vN.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],vN.prototype,"eventForwardingBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],vN.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"darkerDarkTheme",void 0);_.r([_.K("data.options"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vN.prototype,"initialIndex",null);vN=_.r([_.A({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],vN);
_.F(vN,"ytd-subscription-notification-options-renderer",function(){if(qun!==void 0)return qun;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return qun=B},{mode:1});var A74;var KB=function(){return _.c.apply(this,arguments)||this};
_.l(KB,_.c);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],KB.prototype,"data",void 0);KB=_.r([_.A({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],KB);
_.F(KB,"ytd-tvfilm-offer-groups-renderer",function(){if(A74!==void 0)return A74;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return A74=B},{mode:1});var i_i;var IM=function(){var B=_.c.apply(this,arguments)||this;B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(IM,_.c);_.p=IM.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(B){return B.thumbnailOverlays?B.isShow?"thumbnail-show":"thumbnail-movie":B.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.p.computeCommerceSectionClass=function(B){return B.offers&&B.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.p.computeTitleClass=function(B){return B.offers&&B.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.p.onDataChanged=function(){[].concat(_.MI(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(B){B.onShow()})};
IM.prototype.onDataChanged=IM.prototype.onDataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],IM.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],IM.prototype,"darkerDarkTheme",void 0);
_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],IM.prototype,"onDataChanged",null);IM=_.r([_.A({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],IM);
_.F(IM,"ytd-ypc-offers-overlay-renderer",function(){if(i_i!==void 0)return i_i;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return i_i=B},{mode:_.up("kevlar_poly_si_batch_j028")?1:2});var s0e;var FM4=function(){this.usedMethods=new Set};
FM4.prototype.add=function(B){this.usedMethods.add(B)};
FM4.prototype.reset=function(){this.usedMethods.clear()};var Z_N=function(B,R){this.query=B;this.previousSearchQuery=R;this.id=r7U++;if(!gno){R=_.vE("SBOX_SETTINGS");B="https://"+((R==null?void 0:R.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var V=R==null?void 0:R.REQUEST_LANGUAGE;V&&(B+="&hl="+V);(V=R==null?void 0:R.REQUEST_DOMAIN)&&(B+="&gl="+V);B+="&client=youtube&gs_ri=youtube";(V=R==null?void 0:R.SUGG_EXP_ID)&&(B+="&sugexp="+encodeURIComponent(V));(V=R==null?void 0:R.PSUGGEST_TOKEN)&&(B+="&tok="+V);(R=
R==null?void 0:R.SESSION_INDEX)&&(B+="&authuser="+R);_.k("desktop_enable_visual_suggest")&&(B+="&h=180&w=320&ytvs=1");gno=B}},m4o=function(B){var R="q="+encodeURIComponent(B.query);
B.previousSearchQuery&&(R+="&pq="+encodeURIComponent(B.previousSearchQuery));return R},$4j=function(){var B=_.vE("SBOX_SETTINGS"),R={};
if(B==null?0:B.SEND_VISITOR_DATA)R["X-Goog-Visitor-Id"]=B==null?void 0:B.VISITOR_DATA;return R},CEz=function(B){var R=gno;
R+="&gs_id="+B.id.toString(36);R+="&q="+encodeURIComponent(B.query);R+="&cp="+B.query.length;B.previousSearchQuery&&(R+="&pq="+encodeURIComponent(B.previousSearchQuery));(B=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(R+="&video_id="+B);return R},r7U=0,gno="";var PEe=_.rj.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,nn7=_.rj.SEARCH_ENTITY_SUGGESTION_MOVIE,ulN=_.rj.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,O_e=_.rj.SEARCH_ENTITY_SUGGESTION_TV_SHOW,oyU=function(B,R){this.text=B;this.bold=R},BFe=function(B,R,V){this.input=R;
this.index=V;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=B[0];this.type=B[1];this.subtypes=B[2];var e;this.displayText=O3((e=B[3])==null?void 0:e.b);var X;this.ignoredPrefix=O3((X=B[3])==null?void 0:X.a);var Y,t;this.hasNewVideo=((Y=B[3])==null?void 0:(t=Y.zam)==null?void 0:t.toString())==="true"?!0:!1;var b;this.visualSuggestUrl=(b=B[3])==null?void 0:b.zai;var J;this.entityType=O3((J=B[3])==null?void 0:J.zap);var G;this.entityName=O3((G=B[3])==null?void 0:G.zao);var y;R=O3((y=
B[3])==null?void 0:y.zaf);var S;this.entityMid=(S=B[3])==null?void 0:S.zae;y=$Rr(this.subtypes,this.entityMid);if(R&&y){if(R){S="";switch(y){case "YOUTUBE_ENTITY_TYPE_SONG":S=ulN;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":S=PEe;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":S=O_e;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":S=nn7}y=y==="YOUTUBE_ENTITY_TYPE_SONG"||y==="YOUTUBE_ENTITY_TYPE_ALBUM"?S+" \u2022  \u2022 "+R:R}else y="";this.entitySubtitle=y}var M;this.externalChannelId=(M=B[3])==null?void 0:M.zav},RHr=
function(B){var R=[],V,e=(V=B.displayText)!=null?V:B.text;
if(B.type===33)return R.push(new oyU(e,!1)),R;if(e.length>=B.input.length&&e.substring(0,B.input.length)===B.input)R.push(new oyU(B.input,!1)),R.push(new oyU(e.substring(B.input.length),!0));else{var X=new Set(B.input.split(/\s/)),Y=e.split(/\s/);R=Y.map(function(t,b){return new oyU(t.trim()+(b===Y.length-1?"":" "),!X.has(t))})}return R},VZr=function(B){var R=!!$Rr(B.subtypes);
B=!!B.entityMid;return R||B};var eHU=function(B){this.rawResponse=["",[],{}];this.suggestions=[];try{var R=JSON.parse(Czo(B));if(typeof R==="object"&&R!==null)this.rawResponse=R;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(e){console.log("Suggest: Failed to parse SuggestResponse!");return}var V=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(e,X){return new BFe(e,V,X)})};var Xsj=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new FM4;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18354_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},pse,YA7=function(){pse||(pse=new Xsj);
return pse};
Xsj.prototype.updateSuggestions=function(B){var R=this;this.availableSuggestions.forEach(function(V){R.previousSuggestions[V]=!0});
this.availableSuggestions=B.map(function(V){var e=V.type.toString();V.subtypes.length>0&&(e+="i"+V.subtypes.join("i"),e+="k"+V.suggestionSources.COMPLETE_SERVER.toString());return e})};
var hH6=function(B,R){var V=Date.now();B.firstEditTime<0&&(B.firstEditTime=V);R&&(B.lastQueryBuildTime=V);B.lastEditTime=V};
Xsj.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18354_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var tZz=function(B){var R="";B.availableSuggestions.forEach(function(X){delete B.previousSuggestions[X]});
for(var V=_.h(Object.keys(B.previousSuggestions)),e=V.next();!e.done;e=V.next())e=e.value,B.previousSuggestions[e]&&(R+=(R?"j":"")+e);return R},WEj=function(B,R){var V=[];
R&&(V[1]=R.toString());V[0]="youtube";V[7]=Date.now()-B.startTime;V[6]=B.sessionNumber;B.zeroPrefixSuggestionCount>=0&&(V[33]=B.zeroPrefixSuggestionCount);V[13]=B.outOfSyncResponseCount;if(B.availableSuggestions.length>0){for(var e=R="",X=0,Y=_.h(B.availableSuggestions),t=Y.next();!t.done;t=Y.next())t=t.value,t!==e&&(X>1&&(R+="l"+X),R+=(e?"j":"")+t,X=0,e=t),X+=1;X>1&&(R+="l"+X);V[3]=R}V[35]=tZz(B);B.selectedSuggestionIndex>=0&&(V[2]=B.selectedSuggestionIndex);var b;if(R=(b=_.vE("SBOX_SETTINGS"))==
null?void 0:b.SUGG_EXP_ID)V[19]=B.normalize(R),b=0,B.experimentTriggeredBeforeFinal&&(b|=1),B.experimentTriggeredFinal&&(b|=2),V[20]=b;V[26]=Array.from(B.inputMethodsTracker.usedMethods).join("j");if(B.JSC$18354_totalRoundTripTime>0){V[15]=B.JSC$18354_totalRoundTripTime;V[14]=B.maxRoundTripTime;b=[];for(X=R=0;X<10;X++)e=B.roundTripTimeHistogram[X],e===0?R++:(R>1?b.push(X+"-"+e):R===1?b.push("0j"+e):b.push(e.toString()),R=0);b=b.join("j");V[16]=b}B.zeroPrefixRoundTripTime>0&&(V[36]=B.zeroPrefixRoundTripTime);
B.lastQueryBuildTime>0&&(V[18]=B.lastQueryBuildTime-B.startTime);B.firstEditTime>0&&(V[4]=B.firstEditTime-B.startTime);B.lastEditTime>0&&(V[5]=B.lastEditTime-B.startTime);return V.join(".")};
Xsj.prototype.normalize=function(B){return B.replaceAll(".","-")};
var b3z=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var EK=function(){var B=_.c.apply(this,arguments)||this;B.microphoneSpinnerActive=!1;B.noAnimations=!1;B.boundExitClick=function(){B.onExitButtonClick()};
B.speechOverlayClassName="";B.isLevelAnimating=!1;B.playCloseDialogAudioFeedback=!0;B.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return B};
_.l(EK,_.c);_.p=EK.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=P$N()};
_.p.dataChanged=function(){this.logDialog()};
_.p.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var B;(B=this.manager.audioPlayer)!=null&&(B.JSC$17644_audioEnabled=!1)}this.manager.stop();(B=this.manager.audioPlayer)!=null&&(B.JSC$17644_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.p.handleSpeechQueryCompleteAction=function(B){var R=B.navigationAction;R&&(B.trackingParams&&_.WK().graftServerVe(B.trackingParams,this.dialogVe,5),_.OI(this.hostElement,"yt-navigate",{endpoint:R,tempData:this.getNavigationParams(R),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.p.onExitButtonClick=function(){this.closeDialog()};
_.p.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var B;if((B=this.manager)!=null){var R;(R=B.audioPlayer)==null||Q7(R,"failure");B.setState("microphone-off");B.stop()}}else(B=this.manager)==null||B.start()};
_.p.transcriptionChanged=function(){var B,R;(((B=this.transcription)==null?0:B.low)||((R=this.transcription)==null?0:R.high))&&this.setState("transcribing",this.transcription)};
_.p.stateChanged=function(){this.setState(this.state,this.transcription)};
_.p.logDialog=function(){var B;(B=this.data)!=null&&B.trackingParams&&(B=_.WK(),_.py(B,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=B.graftServerVe(this.data.trackingParams,void 0,5))};
_.p.getNavigationParams=function(B){var R={};if(_.k("web_yt_searchbox")){var V=YA7();V.inputMethodsTracker.add(6);V=WEj(V,15);R.gs_l=V;var e;R.oq=((e=_.D(B,_.jc))==null?void 0:e.query)||""}else if(B=window.ytvoicesearchloggingparams){if(B=B())R.oq=B.oq,R.gs_l=B.gs_l}else _.cE(Error("ll"));return R};
_.p.closeDialog=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.p.setState=function(B,R){if(this.data){var V=this.data,e={};switch(B){case "listening":e={headerText:V.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:V.microphoneButtonAriaLabel};break;case "timeout":e={headerText:V.promptHeader,microphoneState:"try-again",microphoneLabel:V.promptMicrophoneLabel,microphoneAriaLabel:V.promptMicrophoneLabel};break;case "microphone-off":e={headerText:V.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:V.promptMicrophoneLabel,
microphoneAriaLabel:V.promptMicrophoneLabel};break;case "transcribing":(R==null?0:R.low)||(R==null?0:R.high)?e={transcriptionLow:R==null?void 0:R.low,transcriptionHigh:R==null?void 0:R.high,microphoneState:"speaking",microphoneAriaLabel:V.microphoneButtonAriaLabel}:e={headerText:V.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:V.microphoneButtonAriaLabel};break;case "processing":e={headerText:V.loadingHeader,microphoneState:"processing",microphoneAriaLabel:V.microphoneButtonAriaLabel};
break;case "offline":e={headerText:V.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:V.connectionErrorMicrophoneLabel,microphoneAriaLabel:V.connectionErrorMicrophoneLabel};break;case "permission":e={headerText:V.permissionsHeader,bodyLine1:V.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:V.permissionsSubtext};break;case "permission-denied":e={headerText:V.disabledHeader,bodyLine1:V.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:V.disabledSubtext}}e.className=
B;this.speechOverlayState=e;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.p.setMicrophoneState=function(B){var R=this.isLevelAnimating;this.isLevelAnimating=B==="speaking";!R&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=B==="processing"&&!this.noAnimations};
_.p.setClass=function(B){this.speechOverlayClassName&&_.nk(this.hostElement,this.speechOverlayClassName,!1);B&&(this.speechOverlayClassName=B,_.nk(this.hostElement,B,!0))};
_.p.runLevelAnimation=function(){var B=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var R=1+Math.random()*.75,V=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+V/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+R+")");_.dV.addJob(function(){B.runLevelAnimation()},3,V)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
EK.prototype.stateChanged=EK.prototype.stateChanged;EK.prototype.transcriptionChanged=EK.prototype.transcriptionChanged;EK.prototype.onPopupClosed=EK.prototype.onPopupClosed;EK.prototype.dataChanged=EK.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],EK.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],EK.prototype,"rendererStamperBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],EK.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],EK.prototype,"eventForwardingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],EK.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],EK.prototype,"speechOverlayState",void 0);
_.r([_.E(),_.Z("design:type",Object)],EK.prototype,"microphoneSpinnerActive",void 0);_.r([_.E({type:_.k("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Z("design:type",Object)],EK.prototype,"noAnimations",void 0);_.r([_.E({selector:function(B){var R;return(R=B.voiceSearch)==null?void 0:R.transcription}}),
_.Z("design:type",Object)],EK.prototype,"transcription",void 0);_.r([_.E({selector:function(B){var R;return(R=B.voiceSearch)==null?void 0:R.overlay}}),
_.Z("design:type",String)],EK.prototype,"state",void 0);_.r([_.E(),_.Z("design:type",Object)],EK.prototype,"boundExitClick",void 0);_.r([_.Yp("#microphone-levels"),_.Z("design:type",HTMLElement)],EK.prototype,"level",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EK.prototype,"dataChanged",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EK.prototype,"onPopupClosed",null);
_.r([_.bp("transcription"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EK.prototype,"transcriptionChanged",null);_.r([_.bp("state"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EK.prototype,"stateChanged",null);EK=_.r([_.A({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],EK);
_.F(EK,"ytd-voice-search-dialog-renderer",function(){if(s0e!==void 0)return s0e;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return s0e=B},{mode:1});var J0N;var Q9=function(){var B=_.c.apply(this,arguments)||this;B.isOverlay=!1;B.hidden=!1;return B};
_.l(Q9,_.c);_.p=Q9.prototype;_.p.onPopupClosed=function(){this.toggleIconState(!1)};
_.p.computeIcon=function(){var B,R,V;return(R=_.D((B=this.data)==null?void 0:B.icon,xf6))==null?void 0:(V=R.icon)==null?void 0:V.iconType};
_.p.computeIconBadgeShape=function(){var B;return{iconBadgeType:"cart",iconBadgeText:(B=this.iconBadgeEntity)==null?void 0:B.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.p.onClick=function(){var B;(B=this.data)!=null&&B.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.p.computeHidden=function(B){return!B};
_.p.toggleIconState=function(B){this.iconButton&&(this.iconButton.pressed=B)};
Q9.prototype.onPopupClosed=Q9.prototype.onPopupClosed;_.r([_.v(_.dt),_.Z("design:type",Object)],Q9.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Q9.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Q9.prototype,"isOverlay",void 0);
_.r([_.E({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Z("design:type",Object)],Q9.prototype,"hidden",void 0);_.r([_.E({selectorArgs:["data.iconBadgeEntityKey"],selector:function(B,R){return _.p7(B.entities,"iconBadgeEntity",R)}}),
_.Z("design:type",Object)],Q9.prototype,"iconBadgeEntity",void 0);_.r([_.Yp("yt-icon-button"),_.Z("design:type",HTMLButtonElement)],Q9.prototype,"iconButton",void 0);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Q9.prototype,"onPopupClosed",null);Q9=_.r([_.A({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Q9);
_.F(Q9,"ytd-icon-badge-topbar-button-renderer",function(){if(J0N!==void 0)return J0N;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return J0N=B},{mode:1});var j3e;var qz=function(){var B=_.c.apply(this,arguments)||this;B.premiumOptions=[];B.darkerDarkTheme=_.k("web_darker_dark_theme");return B};
_.l(qz,_.c);qz.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.mh.Object.defineProperties(qz.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],qz.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Array)],qz.prototype,"premiumOptions",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],qz.prototype,"darkerDarkTheme",void 0);_.r([_.K("premiumOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qz.prototype,"hasPremiumOptions",null);
qz=_.r([_.A({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],qz);
_.F(qz,"ytd-offline-promo-content",function(){if(j3e!==void 0)return j3e;var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return j3e=B},{mode:1});var U$2;var cN=function(){var B=_.c.apply(this,arguments)||this;B.premiumOptions=[];return B};
_.l(cN,_.c);cN.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var B;this.premiumOptions=mRe((B=this.data)==null?void 0:B.formats)};
cN.prototype.onClickSubmit=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var B;(B=_.Pr())==null||B.pause()};
cN.prototype.attached=function(){this.JSC$18374_scroller&&(this.JSC$18374_scroller.dialogElement=this.hostElement.parentNode)};
_.mh.Object.defineProperties(cN.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
cN.prototype.dataChanged=cN.prototype.dataChanged;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],cN.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],cN.prototype,"data",void 0);
_.r([_.E({computed:"computeIcon_(data.headersIcon)",value:""}),_.Z("design:type",String)],cN.prototype,"headersIcon",void 0);_.r([_.E(),_.Z("design:type",Array)],cN.prototype,"premiumOptions",void 0);_.r([_.Yp("#scroller"),_.Z("design:type",Object)],cN.prototype,"JSC$18374_scroller",void 0);_.r([_.K("headersIcon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cN.prototype,"showIcon",null);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cN.prototype,"dataChanged",null);cN=_.r([_.A({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],cN);
_.F(cN,"ytd-offline-promo-renderer",function(){if(U$2!==void 0)return U$2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return U$2=B},{mode:1});var NF2;var AY=function(){var B=_.c.apply(this,arguments)||this;B.playbackPauseInterval=NaN;B.isLoading=!1;B.hasError=!1;B.dialogClass="";B.youtubeLabel=_.Wz("LOGO_ALT_LABEL",{},"YouTube Home");B.logoName="yt-logos-ext:yt-logo-updated";B.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return B};
_.l(AY,_.c);_.p=AY.prototype;_.p.onDataChange=function(){var B;if(this.showEOMV1Text=!((B=this.data)==null||!B.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(B){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[B.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(B){var R=this;this.showLoadingSpinner();this.showLoadingSpinner();fto(_.D(B,Lpn)).catch(function(V){_.KE(new _.H8("Something went wrong when save consent "+(V.message?V.message:V)+"."));R.hideLoadingSpinner();R.showErrorMessage()})};
_.p.handleDisablePersonalization=function(B){var R=this;this.showLoadingSpinner();lti(_.D(B,xke)).then(function(){R.dialog.close();R.resumePlayer()}).catch(function(V){_.KE(new _.H8("Something went wrong when disable personalization "+(V.message?V.message:V)+"."));
R.hideLoadingSpinner();R.showErrorMessage()})};
_.p.showLoadingSpinner=function(){var B=this;this.showSpinnerJobId=_.dV.addLowPriorityJob(function(){B.isLoading=!0},500)};
_.p.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.dV.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.p.showErrorMessage=function(){var B=this;this.hasError=!0;_.dV.addLowPriorityJob(function(){B.hasError=!1},2E3)};
_.p.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Yz(function(){try{var B=_.Pr();B&&B.pause()}catch(R){}},100))};
_.p.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var B=_.Pr();B&&B.play()}catch(R){}};
_.mh.Object.defineProperties(AY.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.eomV1Text)return[];B=[];for(var R=["SHIELD","WARNING","BAR_CHART"],V=this.data.eomV1Text.essentialCookieMsg.items,e=0;e<R.length&&e<V.length;e++)B.push({icon:R[e],text:V[e]});return B}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var B;if((B=this.data)==null||!B.eomV1Text)return[];B=[];for(var R=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],V=this.data.eomV1Text.nonEssentialCookieMsg.items,e=0;e<R.length&&e<V.length;e++)B.push({icon:R[e],text:V[e]});return B}}});
AY.prototype.onDataChange=AY.prototype.onDataChange;_.r([_.E(),_.Z("design:type",Object)],AY.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],AY.prototype,"showEOMV1Text",void 0);_.r([_.E(),_.Z("design:type",Object)],AY.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",Object)],AY.prototype,"hasError",void 0);_.r([_.E(),_.Z("design:type",Number)],AY.prototype,"showSpinnerJobId",void 0);_.r([_.E(),_.Z("design:type",Object)],AY.prototype,"dialogClass",void 0);
_.r([_.Yp("#dialog"),_.Z("design:type",Object)],AY.prototype,"dialog",void 0);_.r([_.Yp("#cb-header"),_.Z("design:type",HTMLElement)],AY.prototype,"header",void 0);_.r([_.Yp("#lang-select"),_.Z("design:type",HTMLElement)],AY.prototype,"langSelect",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],AY.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],AY.prototype,"ytComponentBehavior",void 0);
_.r([_.E(),_.Z("design:type",String)],AY.prototype,"youtubeLabel",void 0);_.r([_.E(),_.Z("design:type",Object)],AY.prototype,"logoName",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AY.prototype,"onDataChange",null);_.r([_.K("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],AY.prototype,"eomEssentialCookieMsgItems",null);
_.r([_.K("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],AY.prototype,"eomNonEssentialCookieMsgItems",null);AY=_.r([_.A({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],AY);
_.F(AY,"ytd-consent-bump-v2-lightbox",function(){if(NF2!==void 0)return NF2;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return NF2=B},{mode:1});var GRN;var sK=function(){return _.c.apply(this,arguments)||this};
_.l(sK,_.c);sK.prototype.ready=function(){if(!_.GK()||F3i)var B=!0;else F3i=!0,B=!1;B||(B=document.querySelector("ytd-app"),B||(B=document.body),this.internalLightBox=_.w(B).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.r([_.E(),_.Z("design:type",Object)],sK.prototype,"data",void 0);_.r([_.Yp("#lightbox"),_.Z("design:type",Object)],sK.prototype,"lightBox",void 0);sK=_.r([_.A({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],sK);
_.F(sK,"ytd-consent-bump-v2-renderer",function(){if(GRN!==void 0)return GRN;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return GRN=B},{mode:1});var y0U;var SA7;var H3N;var F9=function(){var B=_.c.apply(this,arguments)||this;B.ephemeralActionsEnabled=_.k("web_ephemeral_actions");return B};
_.l(F9,_.c);_.p=F9.prototype;_.p.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&pr2(this.toastManager,this.toastType)};
_.p.open=function(B){this.toast&&(this.ephemeralAction&&_.Oz().resolve(_.tc).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=B!=null?B:0,this.toastManager.enqueue(this.toast,B)):this.toast.open())};
_.p.close=function(B){var R;(R=this.toast)==null||R.close();this.toastManager&&B===1&&pr2(this.toastManager,B)};
_.p.refit=function(){var B;(B=this.toast)==null||B.refit()};
_.p.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var B;(B=this.toast)==null||B.close()}};
_.p.setVerticalOffset=function(B){this.toast&&(this.toast.verticalOffset=B,this.toast.fit())};
_.p.computeButtonClass_=function(B){return B?"toast-button":""};
_.p.computeText_=function(B){return _.FF(B)};
_.p.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Kj("toast-opened-changed",this.toastOpened))};
_.p.updateToastOpenedFromBinding=function(B){this.toastOpened=B.detail.value};
_.mh.Object.defineProperties(F9.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var B,R,V=(B=this.data)==null?void 0:(R=B.actionButton)==null?void 0:R.buttonRenderer;return(V==null?void 0:V.command)||(V==null?void 0:V.serviceEndpoint)||(V==null?void 0:V.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var B=[],R;((R=this.data)==null?0:R.responseText)&&B.push(_.FF(this.data.responseText));var V;((V=this.data)==null?0:V.subText)&&B.push(_.FF(this.data.subText));var e,X;if((e=this.data)==null?0:(X=e.actionButton)==null?0:X.buttonRenderer){var Y,t;B.push(((Y=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(t=Y.accessibilityData)==null?void 0:t.label)||_.FF(this.data.actionButton.buttonRenderer.text))}return B.filter(function(b){return b}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var B,R;return(R=(B=this.toast)==null?void 0:B.opened)!=null?R:!1}}});
F9.prototype.toastOpenedChangedForBinding=F9.prototype.toastOpenedChangedForBinding;F9.prototype.toastOpenedChanged=F9.prototype.toastOpenedChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],F9.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],F9.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],F9.prototype,"duration",void 0);
_.r([_.E(),_.Z("design:type",Number)],F9.prototype,"toastType",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],F9.prototype,"useCloseButton",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],F9.prototype,"closeToastOnActionButtonClick",void 0);_.r([_.E({value:function(){return _.Wz("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Z("design:type",String)],F9.prototype,"closeButtonAriaLabel",void 0);_.r([_.E(),_.Z("design:type",Boolean)],F9.prototype,"toastOpened",void 0);_.r([_.E(),_.Z("design:type",Boolean)],F9.prototype,"hasOpened",void 0);_.r([_.E(),_.Z("design:type",Object)],F9.prototype,"ephemeralActionsEnabled",void 0);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],F9.prototype,"command",null);
_.r([_.K("ephemeralActionsEnabled","labelText","command","duration"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],F9.prototype,"ephemeralAction",null);_.r([_.K("ephemeralAction"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],F9.prototype,"hasEphemeralAction",null);_.r([_.Yp("#toast"),_.Z("design:type",Object)],F9.prototype,"toast",void 0);_.r([_.E({value:function(){return{style:"call-to-action-inverse"}}}),
_.Z("design:type",Object)],F9.prototype,"buttonOverrides",void 0);_.r([_.E({value:{style:"mono-inverse"}}),_.Z("design:type",Object)],F9.prototype,"closeButtonOverrides",void 0);_.r([_.E({value:function(){return _.Oz().resolve(_.uj(_.tJ6))}}),
_.Z("design:type",Object)],F9.prototype,"toastManager",void 0);_.r([_.K("data.responseText","data.subText","data.actionButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],F9.prototype,"labelText",null);_.r([_.XX("toastOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],F9.prototype,"toastOpenedChanged",null);
_.r([_.XX("toastOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],F9.prototype,"toastOpenedChangedForBinding",null);F9=_.r([_.fJ({is:"yt-notification-action-renderer",disableElementRegistration:!0})],F9);
_.F(F9,"yt-notification-action-renderer",function(){if(H3N===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;SA7===void 0&&(SA7=document.createElement("template"));var e=SA7;V.call(R,e.content.cloneNode(!0),B.content.firstChild);H3N=B}B=H3N;return B},{mode:2});var r5=function(){var B=_.c.apply(this,arguments)||this;B.duration=4E3;B.downloadingCount=0;B.downloadedCount=0;B.downloadingOnlySmartDownloads=!1;B.sessionTotalDownloads=0;B.sessionDownloaded=0;B.previousSessionsDownloaded=0;B.totalDownloadPercentage=0;B.currentDownloadProgress=0;B.currentDownloadPercentage=0;B.isLeaderTab=!0;B.isFullScreen=!1;B.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};B.boundBeforeUnload=function(R){B.isLeaderTab&&B.downloadingCount>0&&(R.preventDefault(),
R.returnValue=!0)};
return B};
_.l(r5,_.c);_.p=r5.prototype;
_.p.open=function(){this.updateDownloadState();if(this.data){var B=this.sessionDownloaded+1,R=this.sessionTotalDownloads>1?_.Wz("VIDEOS_DOWNLOADING_RATIO",{downloaded:B.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+B+"/"+this.sessionTotalDownloads):_.Wz("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(R=this.sessionTotalDownloads>1?_.Wz("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:B.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
B+"/"+this.sessionTotalDownloads):_.Wz("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));B=this.isLeaderTab?_.Wz("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.FF(this.data.responseText)!==R||_.FF(this.data.subText)!==B)this.set("data.responseText",_.s$(R)),this.set("data.subText",_.s$(B)),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 B=this.downloadedCount-this.previousSessionsDownloaded;B<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-B);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.p.handleFullscreenChange=function(B){(this.isFullScreen=B)||this.updatePopup()};
r5.prototype.updateCurrentDownloadProgress=r5.prototype.updateCurrentDownloadProgress;r5.prototype.updatePopup=r5.prototype.updatePopup;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],r5.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],r5.prototype,"ytEventForwardingBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],r5.prototype,"actionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],r5.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],r5.prototype,"duration",void 0);_.r([_.E({selector:function(B){return _.eXd(B.entities).length}}),
_.Z("design:type",Object)],r5.prototype,"downloadingCount",void 0);_.r([_.E({selector:K4r}),_.Z("design:type",Object)],r5.prototype,"downloadedCount",void 0);_.r([_.E({selector:function(B){var R=_.eXd(B.entities);return vW7(B.entities,R)}}),
_.Z("design:type",Object)],r5.prototype,"downloadingOnlySmartDownloads",void 0);_.r([_.E(),_.Z("design:type",Object)],r5.prototype,"sessionTotalDownloads",void 0);_.r([_.E(),_.Z("design:type",Object)],r5.prototype,"sessionDownloaded",void 0);_.r([_.E(),_.Z("design:type",Object)],r5.prototype,"previousSessionsDownloaded",void 0);_.r([_.E(),_.Z("design:type",Object)],r5.prototype,"totalDownloadPercentage",void 0);
_.r([_.E({selector:function(B){var R;B=(R=_.eXd(B.entities))!=null?R:[];return B.length>0?_.m75(B.slice(-1)):0}}),
_.Z("design:type",Object)],r5.prototype,"currentDownloadProgress",void 0);_.r([_.E(),_.Z("design:type",Object)],r5.prototype,"currentDownloadPercentage",void 0);_.r([_.E({selector:_.cGN}),_.Z("design:type",Object)],r5.prototype,"isLeaderTab",void 0);_.r([_.Yp("yt-notification-action-renderer"),_.Z("design:type",Object)],r5.prototype,"notificationActionRenderer",void 0);
_.r([_.bp("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],r5.prototype,"updatePopup",null);_.r([_.bp("currentDownloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],r5.prototype,"updateCurrentDownloadProgress",null);r5=_.r([_.A({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],r5);
_.F(r5,"ytd-video-download-toast-renderer",function(){if(y0U!==void 0)return y0U;var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return y0U=B},{mode:1});var MZ7;var kR6;var g5=function(){return _.c.apply(this,arguments)||this};
_.l(g5,_.c);g5.prototype.computeIsRedLogo=function(B,R){!B&&R&&(B=R);return B==="YOUTUBE_RED_LOGO"||B==="YOUTUBE_PREMIUM_LOGO"};
g5.prototype.computeLogoName=function(B){B=this.componentBehavior.computeIcon_(B);return B===""?"yt-logos-ext:yt-logo-updated":B};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],g5.prototype,"componentBehavior",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Z("design:type",Boolean)],g5.prototype,"isRedLogo",void 0);_.r([_.E({computed:"computeLogoName(data)"}),_.Z("design:type",String)],g5.prototype,"logoName",void 0);_.r([_.E({value:{}}),_.Z("design:type",Object)],g5.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],g5.prototype,"logoType",void 0);g5=_.r([_.A({disableElementRegistration:!0,is:"ytd-logo"})],g5);
_.F(g5,"ytd-logo",function(){if(kR6!==void 0)return kR6;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return kR6=B},{mode:_.up("kevlar_poly_si_batch_j074")?1:2});var Zi=function(){var B=_.c.apply(this,arguments)||this;B.animationRef={};return B};
_.l(Zi,_.c);_.p=Zi.prototype;_.p.attached=function(){document.addEventListener("yt-navigate-finish",_.Bc(this,this.logYoodle))};
_.p.detached=function(){document.removeEventListener("yt-navigate-finish",_.Bc(this,this.logYoodle))};
_.p.logYoodle=function(){var B,R;if((B=this.data)==null?0:(R=B.loggingDirectives)==null?0:R.trackingParams)this.ytRendererBehavior.markDirty(),_.WK().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.p.computeHideImg=function(B,R){return!!B||!!R};
_.p.computeHideYtdLogo=function(B,R){return!B||!!R};
_.p.computeHideLottie=function(B){return!B};
_.p.computeIsRedLogo=function(B){return B==="YOUTUBE_RED_LOGO"||B==="YOUTUBE_PREMIUM_LOGO"};
_.p.renderLogoEntity=function(){var B=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),R=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),V=this.getLogoTitleText(this.data),e=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==B&&(this.url=B);this.animatedUrl!==R&&(this.animatedUrl=R);this.logoTitleText!==V&&(this.logoTitleText=V);this.lottieUrl!==e&&(this.lottieUrl=e,this.lottiePlayerProps=this.computeLottiePlayerProps(e))};
_.p.getSanitizedThumbnail=function(B){return B&&B.thumbnails?_.bhK(B.thumbnails,122)||"":""};
_.p.getThumbnailUrl=function(B,R){if(!R)return"";var V,e;B=B?(V=R.darkThemeLogo)==null?void 0:V.thumbnail:(e=R.lightThemeLogo)==null?void 0:e.thumbnail;return this.getSanitizedThumbnail(B)};
_.p.getAnimatedThumbnailUrl=function(B,R){return R?this.getSanitizedThumbnail(B?R.darkThemeAnimatedLogo:R.lightThemeAnimatedLogo):""};
_.p.getLogoTitleText=function(B){if(B)return _.FF(B.tooltipText)};
_.p.computeLogoIcon=function(B,R){if(R){var V,e;return B?(V=R.darkThemeLogo)==null?void 0:V.icon:(e=R.lightThemeLogo)==null?void 0:e.icon}};
_.p.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.p.getLottieUrl=function(B,R){var V,e,X,Y;return B?R==null?void 0:(V=R.darkThemeLogo)==null?void 0:(e=V.lottieAnimation)==null?void 0:e.url:R==null?void 0:(X=R.lightThemeLogo)==null?void 0:(Y=X.lottieAnimation)==null?void 0:Y.url};
_.p.computeLottiePlayerProps=function(B){if(B){var R;if((R=this.animationRef)==null?0:R.lottieEl){var V;(V=this.animationRef)==null||V.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:B,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&&_.OI(this.hostElement,"yoodle-error")};
_.p.onImgError=function(){this.data&&!this.lottieUrl&&_.OI(this.hostElement,"yoodle-error")};
Zi.prototype.playAnimation=Zi.prototype.playAnimation;Zi.prototype.renderLogoEntity=Zi.prototype.renderLogoEntity;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Zi.prototype,"data",void 0);_.r([_.E({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Z("design:type",Boolean)],Zi.prototype,"hideImg",void 0);
_.r([_.E({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Z("design:type",Boolean)],Zi.prototype,"hideYtdLogo",void 0);_.r([_.E({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Z("design:type",Boolean)],Zi.prototype,"hideLottie",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Z("design:type",Boolean)],Zi.prototype,"isRedLogo",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],Zi.prototype,"useDarkThemeYoodle",void 0);_.r([_.E(),_.Z("design:type",String)],Zi.prototype,"url",void 0);_.r([_.E(),_.Z("design:type",String)],Zi.prototype,"animatedUrl",void 0);_.r([_.E(),_.Z("design:type",String)],Zi.prototype,"logoTitleText",void 0);_.r([_.E({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Z("design:type",Object)],Zi.prototype,"logoIcon",void 0);_.r([_.E(),_.Z("design:type",Object)],Zi.prototype,"logoType",void 0);
_.r([_.E(),_.Z("design:type",String)],Zi.prototype,"lottieUrl",void 0);_.r([_.E(),_.Z("design:type",Object)],Zi.prototype,"lottiePlayerProps",void 0);_.r([_.E(),_.Z("design:type",Object)],Zi.prototype,"animationRef",void 0);_.r([_.XX("data"),_.XX("useDarkThemeYoodle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zi.prototype,"renderLogoEntity",null);
_.r([_.R_("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Zi.prototype,"playAnimation",null);Zi=_.r([_.A({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Zi);
_.F(Zi,"ytd-yoodle-renderer",function(){if(MZ7!==void 0)return MZ7;var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return MZ7=B},{mode:_.up("kevlar_poly_si_batch_j074")?1:2});var D$e;var fZi;var mr=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return B};
_.l(mr,_.c);_.p=mr.prototype;_.p.onYoodleError=function(){_.k("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.p.computeLogoName=function(B){B=this.componentBehavior.computeIcon_(B);return B===""?"yt-logos-ext:yt-logo-updated":B};
_.p.computeTitle=function(B,R,V){return V&&(R==null?0:R.tooltipText)?_.FF(R.tooltipText):_.FF(B)};
_.p.computeAriaLabel=function(B,R,V){return V&&(R==null?0:R.tooltipText)?_.FF(B):""};
_.p.computeShowYoodle=function(B,R,V){return!B||!R&&!!V&&!_.M_.isEmpty(V)};
_.p.onNavigateHomeAction=function(){if(_.k("kevlar_miniplayer_navigate_home_from_app_killswitch")){var B;(B=_.w(this.hostElement).querySelector(".yt-simple-endpoint"))==null||B.click()}};
_.p.computeLogoHref=function(B,R,V){var e;(V==null?0:V.onTapCommand)?e=this.componentBehavior.computeHref_(V.onTapCommand):B&&(e=this.componentBehavior.computeHref_(B));return e?e:R};
_.p.computeCommand=function(B,R){return(R==null?void 0:R.onTapCommand)||B};
_.p.getEndpointForm=function(){if(_.k("kevlar_topbar_disable_cache_only_home")){var B=_.Oz().resolve(_.zk),R=AKe(B.getState())||"";B=_.lBx(B.getState())||"";return{disableCache:R==="ytd-browse"&&B==="home"}}return{disableCache:!0}};
mr.prototype.onYoodleError=mr.prototype.onYoodleError;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],mr.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],mr.prototype,"componentBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],mr.prototype,"ytdReduxBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],mr.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],mr.prototype,"countryCode",void 0);_.r([_.E({selectorArgs:["data.overrideEntityKey"],selector:function(B,R){return _.p7(B.entities,"logoEntity",R)}}),
_.Z("design:type",Object)],mr.prototype,"logoEntity",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Z("design:type",Boolean)],mr.prototype,"showYoodle",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],mr.prototype,"yoodleError",void 0);_.r([_.E({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Z("design:type",String)],mr.prototype,"titleText",void 0);
_.r([_.E({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Z("design:type",String)],mr.prototype,"ariaLabelText",void 0);_.r([_.E({value:"/"}),_.Z("design:type",String)],mr.prototype,"defaultEndpointUrl",void 0);_.r([_.E({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Z("design:type",String)],mr.prototype,"endpointUrl",void 0);
_.r([_.E({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Z("design:type",String)],mr.prototype,"command",void 0);_.r([_.E(),_.Z("design:type",Object)],mr.prototype,"logoType",void 0);_.r([_.E({}),_.Z("design:type",Boolean)],mr.prototype,"useDarkThemeYoodle",void 0);_.r([_.R_("yoodle-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mr.prototype,"onYoodleError",null);mr=_.r([_.A({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],mr);
_.F(mr,"ytd-topbar-logo-renderer",function(){if(fZi!==void 0)return fZi;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return fZi=B},{mode:_.up("kevlar_poly_si_batch_j027")?1:2});var lZr=0;var zHr=_.rj.SEARCH_APPEND_LABEL,aZ4=_.rj.SUGGESTION_NEW_VIDEOS_TEXT,d$6=_.rj.SUGGESTION_THUMBNAIL_LABEL,wsr=_.sx(function(B){function R(DS){var CZ,k5;return _.W(function(tr){if(tr.nextAddress==1)return CZ=new Request(DS),_.en(tr,2),_.U(tr,fetch(CZ,{credentials:"include"}),4);if(tr.nextAddress!=2)return d4(!0),_.c8(tr,0);k5=_.WR(tr);_.KE(k5);_.b3(tr)})}
var V=B.isHighlighted;var e=B.suggestion;var X=B.onClickCallback;var Y=B.onHoverUpdateCallback;var t=B.labels;var b=B.queryBuilderFunction;var J=B.onRemoveCallback;var G=B.suggestionIndex;var y=B.generateUniqueId;var S=B.highlightedId;var M=B.useScrollMargin;var f=B.isKeyboardMode;var z=null,T=null,L=_.Zh(),Q=_.Zh(),q=_.mA(function(DS){DS&&_.ET(237477,DS,T,function(CZ){T=CZ})}),m=_.mA(function(DS){DS&&_.ET(237477,DS,T,function(CZ){T=CZ})}),g=_.Wr(function(DS){if((DS==null?void 0:DS.button)===2)return DS.preventDefault(),
!1;
var CZ=_.TE();CZ&&z&&_.sV(CZ,z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var k5;X(DS,e().text,e().index,e().entityMid,DS==null?void 0:(k5=DS.detail)==null?void 0:k5.wasSelectedByKeyboard);return!1}),Vu=function(){return e().type===35},n=function(){return _.k("desktop_enable_single_suggestion_highlight")},Yd=function(){return _.k("desktop_enable_entity_suggest")},kd=function(){return _.RC("desktop_suggestions_panel_row_height")||0},a5=function(){var DS;
return _.k("desktop_enable_new_video_metadata")&&((DS=e())==null?void 0:DS.hasNewVideo)===!0},lo=function(){return _.k("desktop_enable_visual_suggest")},io=function(){return e().entitySubtitle},vd=function(){return n()?(V==null?void 0:V())||DY()&&!(f==null?0:f()):(V==null?void 0:V())||DY()},cd=function(){var DS=_.vE("SBOX_SETTINGS");
return Vu()&&!(DS==null?0:DS.HIDE_REMOVE_LINK)},ES=function(){return RHr(e())},$d,Eo=!(($d=_.Oz().resolve(_.uj(_.E5)))==null||!$d()),GG=function(){return Vu()?"ARROW_TIME":"SEARCH"},eJ=function(){return t==null?void 0:t().SUGGESTION_DISMISS_LABEL},pR=function(){return t==null?void 0:t().SUGGESTION_DISMISSED_LABEL};
$d=_.h(_.WU(!1,void 0,"kHLOZe"));B=$d.next().value;var d4=$d.next().value;$d=_.h(_.WU(!1,void 0,"SGF2sd"));var W2=$d.next().value,By=$d.next().value,DY=W2,hA=_.Wr(function(){b(Q.value.innerText);return!1}),fR=_.Wr(function(DS){DS.preventDefault();
return!1}),Qv=_.Wr(function(DS){var CZ=e().text,k5=_.vE("SBOX_SETTINGS"),tr="https://"+(k5.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
tr+="&delq="+encodeURIComponent(CZ);(CZ=k5==null?void 0:k5.PSUGGEST_TOKEN)&&(tr+="&tok="+CZ);(k5=k5==null?void 0:k5.SESSION_INDEX)&&(tr+="&authuser="+k5);R(tr);DS.preventDefault();(DS=_.TE())&&T&&_.sV(DS,T,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");J(G==null?void 0:G());return!1}),i4=_.Wr(function(){if(n()&&(f==null?0:f()))return!1;
By(!0);Y(!0);return!1}),TG=_.Wr(function(){By(!1);
Y(!1);return!1});
$d=_.h(_.WU("",void 0,"yaN19c"));var ZS=$d.next().value,$b=$d.next().value;_.fQ(function(){cd()&&$b(y==null?void 0:y(G==null?void 0:G()));L.value&&_.ET(12453,L.value,z,function(DS){z=DS})});
return _.N(_.H,{cond:B,then:function(){var DS={};return _.N("div",{class:_.XE("ytSuggestionComponentRemovedText",(DS.ytSuggestionComponentLargerRemovedText=function(){return lo()},DS)),
style:function(){return kd()>0?"height: "+kd()+"px;":""},
role:"button"},pR)},
else:function(){var DS={},CZ={};return _.N("div",{class:_.XE("ytSuggestionComponentSuggestion",(DS.ytSuggestionComponentSuggestionHover=function(){return!n()},DS.ytSuggestionComponentHighlighted=vd,DS.ytSuggestionComponentPersonalizedSuggestion=Vu,DS.ytSuggestionComponentMweb=!1,DS.ytSuggestionComponentLargerSuggestion=function(){return a5()||lo()},DS.ytSuggestionComponentThumbnailSuggestion=function(){return lo()},DS.ytSuggestionComponentRoundedSuggestion=function(){return _.k("desktop_enable_scrollable_suggestions_panel")&&
_.k("desktop_enable_suggestions_panel_padding")},DS.ytSuggestionComponentThumbnailPadding=function(){return lo()&&!Vu()},DS)),
style:function(){return kd()>0?"height: "+kd()+"px;":""},
role:"presentation","on:mousedown":g,"on:mouseover":i4,"on:mouseout":TG,el:L},_.N("div",{class:_.XE("ytSuggestionComponentText",(CZ.ytSuggestionComponentScrollMargin=M,CZ)),"aria-label":function(){return a5()?e().text+" "+aZ4:e().text},
id:function(){return y==null?void 0:y(G==null?void 0:G())},
"on:mousedown":g,role:"option"},_.N(_.H,{cond:function(){return e().type!==33},
then:function(){return _.N(_.Us,{icon:GG,className:"ytSuggestionComponentIcon"})}}),_.N("div",{class:"ytSuggestionComponentLeftContainer"},_.N("span",{el:Q,
role:"button",tabindex:0},_.N(_.yh,{each:ES},function(k5){return k5.bold?_.N("span",{class:"ytSuggestionComponentBold"},k5.text):_.N("span",null,k5.text)})),_.N(_.H,{cond:function(){return Yd()&&VZr(e())&&!!e().entitySubtitle},
then:function(){return _.N("div",{class:"ytSuggestionComponentEntitySubtitle"},io)}}),_.N(_.H,{cond:function(){return a5()},
then:function(){return _.N("div",{class:"ytSuggestionComponentNewVideoContainer"},_.N("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.N("div",{class:"ytSuggestionComponentNewVideoText"},aZ4))}}))),_.N("div",{class:"ytSuggestionComponentRightContainer"},_.N(_.H,{cond:function(){return lo()&&e().visualSuggestUrl!==void 0},
then:function(){var k5={};return _.N("div",{class:"ytSuggestionComponentThumbnailContainer"},_.N("img",{"aria-label":d$6,class:_.XE("ytSuggestionComponentVisualSuggestThumbnail",(k5.ytSuggestionComponentCircularFrame=function(){return Yd()&&VZr(e())&&e().subtypes.includes(790)},k5.ytSuggestionComponentEntitySuggestThumbnail=function(){return Yd()&&VZr(e())},k5)),
src:function(){return e().visualSuggestUrl}}))}}),_.N(_.MN,null,_.N(_.Sv,{when:function(){return lo()&&cd()}},function(){var k5={};
return _.N("button",{class:_.XE("ytSuggestionComponentRemoveLinkClearButton",(k5.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return ZS()&&ZS()===(S==null?void 0:S())},k5.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!vd()},k5)),
el:m,"on:mousedown":Qv,"aria-label":eJ,id:function(){return ZS()}},_.N(_.Us,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.N(_.Sv,{when:function(){return!(lo()&&e().visualSuggestUrl!==void 0)&&cd()}},function(){var k5={};
return _.N("a",{class:_.XE("ytSuggestionComponentRemoveLink",(k5.ytSuggestionComponentRemoveLinkDark=Eo,k5.ytSuggestionComponentRemoveLinkSelected=function(){return ZS()&&ZS()===(S==null?void 0:S())},k5)),
el:q,"on:mousedown":Qv,"aria-label":eJ,tabindex:0,role:"button",id:function(){return ZS()}},eJ)}),_.N(_.Sv,{when:function(){return!1}},function(){return _.N("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":hA,"on:mousedown":fR,role:"button","aria-label":zHr},_.N(_.Us,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jg");var TFe=_.sx(function(){var B=_.Wr(function(){YA7().inputMethodsTracker.add(3);var R,V=(R=_.vE("SBOX_SETTINGS"))==null?void 0:R.REQUEST_LANGUAGE;if(V)return _.IL("//www.google.com/textinputassistant/14/"+V+"_tia.js"),!1});
return _.N("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.N("button",{class:"ytdTextInputAssistantButton","on:click":B},_.N("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 x$o=function(){this.cache=new Map},LEe=function(B){for(var R=_.h(B.cache.entries()),V=R.next();!V.done;V=R.next()){var e=_.h(V.value);
V=e.next().value;e=e.next().value;e.suggestions.some(function(X){return X.type===35})&&B.cache.delete(V)}};var vyz=_.rj.SEARCH,KEU=_.rj.SEARCH_CLEAR_LABEL,IZi=new _.u0("FAKE_SUGGEST_RESPONSE");_.mR(_.sx(function(B){function R(){DS||(DS=setTimeout(function(){k5()},1E3))}
function V(H2,SJ,Jr){if(H2.trim()){$b=H2;_.LQ("REFINEMENTS_TUPLE",void 0);TG=!0;var zX;SJ=WEj(DY,SJ);var hh=(zX=B.searchEndpoint)==null?void 0:zX.call(B);zX=pR.value.value;hh||(hh=VRn);var DM;(DM=_.D(hh.commandMetadata,_.$a))!=null&&DM.url||(DM=Error("ml`"+JSON.stringify(hh)),_.Tn(DM),hh=VRn);DM=_.M_.unsafeClone(hh);hh=_.QU(_.D(DM.commandMetadata,_.$a).url,"search_query",H2);_.EJ(location.href,"sv")==="1"&&(_.D(DM,_.jc).params="EgOAAgE%3D",hh=_.QU(hh,"sv","1"));_.D(DM,_.jc)&&(_.D(DM,_.jc).query=H2);
hh=hh.replace(/%20/g,"+");_.D(DM.commandMetadata,_.$a).url=hh;Jr=_.k("desktop_enable_entity_suggest")?{entityMid:Jr}:{};_.Oz().resolve(_.oC).resolveCommand(DM,{form:{tempData:Object.assign({},{gs_l:SJ,oq:zX!=null?zX:H2},Jr)}});k5();pR.value.value=H2;pR.value.blur();DY.reset()}}
function e(H2){return _.W(function(SJ){return SJ.return(new Promise(function(Jr){var zX=new XMLHttpRequest;zX.open("GET",CEz(H2),!0);zX.withCredentials=!0;var hh=_.vE("SBOX_SETTINGS");(hh==null?0:hh.SEND_VISITOR_DATA)&&zX.setRequestHeader("X-Goog-Visitor-Id",hh==null?void 0:hh.VISITOR_DATA);zX.onload=function(){Jr(zX.responseText)};
zX.onerror=function(){_.KE(Error("nl"));Jr(null)};
setTimeout(function(){zX.abort()},1E4);
zX.send(null)}))})}
function X(H2){var SJ,Jr,zX,hh;return _.W(function(DM){switch(DM.nextAddress){case 1:return SJ={credentials:"include",headers:$4j()},window.AbortController&&(Jr=new AbortController,setTimeout(function(){Jr.abort("ytsbox-suggest-timeout")},1E4),SJ.signal=Jr.signal),_.en(DM,2),_.U(DM,fetch(CEz(H2),SJ),4);
case 4:zX=DM.yieldResult.text();_.c8(DM,3);break;case 2:return hh=_.WR(DM),hh!=="ytsbox-abort-last"&&hh!=="ytsbox-suggest-timeout"&&_.KE(hh),DM.return(null);case 3:return DM.return(zX)}})}
function Y(H2){var SJ,Jr,zX;return _.W(function(hh){switch(hh.nextAddress){case 1:if(SJ=_.Oz().resolve(_.uj(IZi)))return hh.return(SJ);Jr=Date.now();R();return _.k("yt_searchbox_xhr")?_.U(hh,e(H2),5):_.U(hh,X(H2),4);case 4:zX=hh.yieldResult;hh.jumpTo(3);break;case 5:zX=hh.yieldResult;case 3:if(zX){DS&&(clearTimeout(DS),DS=null);var DM=DY,Cd=Jr,Q5=H2.query.length===0;Cd=Date.now()-Cd;Q5?DM.zeroPrefixRoundTripTime=Cd:(DM.JSC$18354_totalRoundTripTime+=Cd,DM.maxRoundTripTime=Math.max(DM.maxRoundTripTime,
Cd),Q5=Math.floor(Cd/100),Q5>=b3z.length?++DM.roundTripTimeHistogram[9]:++DM.roundTripTimeHistogram[b3z[Q5]])}return hh.return(zX)}})}
function t(H2){var SJ,Jr,zX;return _.W(function(hh){if(hh.nextAddress==1)return(SJ=By.cache.get(m4o(H2)))?hh.return(SJ):_.U(hh,Y(H2),2);Jr=hh.yieldResult;if(Jr===null)return hh.return(null);zX=new eHU(Jr);H2.query.length===0&&zX.suggestions.length===0||By.cache.set(m4o(H2),zX);return hh.return(zX)})}
function b(H2){var SJ,Jr;return _.W(function(zX){if(zX.nextAddress==1){ZS=!1;var hh=$b;hh=_.Wid()==="search"?(_.EJ(location.href,"search_query")||_.EJ(location.href,"q"))===hh:!1;SJ=new Z_N(H2,hh?$b:null);return _.U(zX,t(SJ),2)}Jr=zX.yieldResult;if(Jr===null)return zX.return();SJ.query.length===0&&(DY.zeroPrefixSuggestionCount=Jr.suggestions.length);if(SJ.id<=CZ)return DY.outOfSyncResponseCount++,zX.return();if(document.activeElement!==pR.value)return zX.return();CZ=SJ.id;var DM=DY,Cd=Jr.rawResponse[2]||
{};DM.experimentTriggeredBeforeFinal||(DM.experimentTriggeredBeforeFinal=DM.experimentTriggeredFinal);DM.experimentTriggeredFinal=!!Cd.e;DY.updateSuggestions(Jr.suggestions);L(-1);$d([]);Jr.suggestions!==f()&&Ez(Jr.suggestions.length);z(Jr.suggestions);kd(Jr.suggestions.length>0&&Jr.suggestions[0].type===33);W2&&(W2.hidden=Jr.suggestions.length===0,Yd()?(W2.style.minWidth="",DM=W2.style,Cd=(hh=f()[0])==null?void 0:hh.ignoredPrefix,DM.marginLeft=(Cd?Math.min(Cd.length*6,d4.value.offsetWidth):0).toString()+
"px"):(W2.style.minWidth=d4.value.offsetWidth+"px",W2.style.marginLeft="0"),rc());_.b3(zX)})}
function J(){if(!TG)return!1;var H2=_.vE("REFINEMENTS_TUPLE");return H2?(H2=H2[1].map(function(SJ,Jr){return new BFe([SJ,0,[71]],pR.value.value,Jr)}),f()!==H2&&Ez(H2.length),$d([]),z(H2),DY.updateSuggestions(H2),TG=!1,W2.hidden=H2.length===0,ZS=H2.length>0,!0):!1}
function G(){var H2=pR.value.value;(typeof H2==="string"||H2 instanceof String)&&H2!==""?g(!0):g(!1)}
function y(){if(_.Wid()==="search"){var H2=window.location.href;try{var SJ=_.EJ(H2,"search_query")||_.EJ(H2,"q")||""}catch(Jr){SJ=""}SJ&&(pR.value.value=SJ,g(!0))}}
var S=_.h(_.WU([],void 0,"kGFAjf")),M=S.next().value;S=S.next().value;var f=M,z=S;M=_.h(_.WU(-1,void 0,"mLGL9e"));var T=M.next().value,L=M.next().value;M=_.h(_.WU(-1,void 0,"u2rYdc"));var Q=M.next().value,q=M.next().value;M=_.h(_.WU(!1,void 0,"W9DFC"));var m=M.next().value,g=M.next().value;M=_.h(_.WU(!1,void 0,"Ip4dNc"));var Vu=M.next().value,n=M.next().value;S=_.h(_.WU(!1,void 0,"ZNKSQb"));M=S.next().value;S=S.next().value;var Yd=M,kd=S;S=_.h(_.WU(!1,void 0,"JBrGLd"));M=S.next().value;var a5=S.next().value;
S=_.h(_.WU(!1,void 0,"P2pD6e"));var lo=S.next().value,io=S.next().value;S=_.h(_.WU(1,void 0,"SjP20c"));var vd=S.next().value,cd=S.next().value;S=_.h(_.WU([],void 0,"h4dRaf"));var ES=S.next().value,$d=S.next().value;S=_.h(_.WU(!1,void 0,"TUTzaf"));var Eo=S.next().value,GG=S.next().value;S=_.k("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var eJ=_.Zh(),pR=_.Zh(),d4=_.Zh(),W2,By=new x$o,DY=YA7(),hA=_.Oz().resolve(_.uj(_.E5)),
fR=function(){var H2;return((H2=B.forceDarkMode)==null?void 0:H2.call(B))||!(hA==null||!hA())},Qv=function(){return _.k("desktop_enable_scrollable_suggestions_panel")},i4="i"+lZr++,TG=!1,ZS=!1,$b="",DS=null,CZ=-1,k5=function(){$d([]);
z([]);kd(!1);W2&&(W2.hidden=!0);DS&&(clearTimeout(DS),DS=null);L(-1)},tr=function(H2,SJ){H2.preventDefault();
GG(!0);W2&&(W2.hidden=!1);var Jr=T();H2=f();var zX=ES();SJ=Pz6(SJ);Jr+=SJ;for(Jr>=H2.length?Jr=-1:Jr<-1&&(Jr=H2.length-1);Jr!==-1&&(zX.includes(Jr)||Jr>=H2.length||Jr<0);)Jr+=SJ,Jr>=H2.length&&(Jr=-1);L(Jr);T()>=0&&(pR.value.value=f()[T()].text,q(0),G(),H2=T(),zX=Q(),(zX=document.getElementById(dk[H2][zX]))&&Qv()&&(H2===f().length-1?W2.scrollTop=W2.scrollHeight:zX.scrollIntoView({block:"nearest",inline:"start"})))},l_=_.Wr(function(H2){if(!(H2.relatedTarget instanceof Element&&H2.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){n(!0);
var SJ;(SJ=B.focusCallback)==null||SJ.call(B,!0);J()||(ZS?W2.hidden=!1:(_.OI(eJ.value,"yt-autonav-pause-focus",{}),b(H2.target.value)))}}),S2=_.Wr(function(H2){if(!(H2.relatedTarget instanceof Element&&H2.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){n(!1);
var SJ;(SJ=B.focusCallback)==null||SJ.call(B,!1);W2.scrollTop=0;W2.hidden=!0;_.OI(eJ.value,"yt-autonav-pause-blur",{})}}),tD=function(H2){H2=Pz6(H2);
var SJ;((SJ=dk[T()])==null?0:SJ[Q()+H2])&&q(Q()+H2)},J$=_.Wr(function(H2){var SJ=H2.target;
switch(H2.keyCode){case 13:H2.preventDefault();var Jr;if((Jr=dk[T()])==null?0:Jr[Q()]){var zX;(zX=document.getElementById(dk[T()][Q()]))==null||zX.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}H2=H2.shiftKey?4:3;Jr=DY;zX=T();Jr.selectedSuggestionIndex=zX;V(SJ.value,H2);break;case 27:W2&&(W2.hidden=!0);break;case 40:tr(H2,40);break;case 38:tr(H2,38);break;case 39:tD(39);break;case 37:tD(37);break;case 229:DY.inputMethodsTracker.add(4);break;default:DY.inputMethodsTracker.add(1),
hH6(DY)}return!1}),s4=_.Wr(function(H2){b(H2.target.value);
G();Qv()&&W2&&(W2.scrollTop=0);return!1}),kb=_.Wr(function(){DY.inputMethodsTracker.add(2);
hH6(DY);return!1});
_.fQ(function(){if(W2){DY.reset();if(window.ResizeObserver){var H2=new ResizeObserver(function(){Yd()||(W2.style.minWidth=d4.value.offsetWidth+"px")});
H2.observe(d4.value);(new ResizeObserver(function(){rc()})).observe(W2);
_.aK(function(){H2.disconnect()})}y();
window.addEventListener("yt-navigate-finish",y);window.addEventListener("yt-focus-searchbox",function(){pR.value.focus()});
var SJ;a5((SJ=_.vE("SBOX_SETTINGS"))==null?void 0:SJ.HAS_ON_SCREEN_KEYBOARD)}else _.Tn(new _.H8("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Dh=_.Wr(function(H2){H2.preventDefault();V(pR.value.value,12);return!1}),so=_.Wr(function(H2){H2.preventDefault();
var SJ,Jr;(SJ=pR)==null||(Jr=SJ.value)==null||Jr.focus();var zX,hh;((zX=pR)==null?void 0:(hh=zX.value)==null?void 0:hh.value)!==""&&(pR.value.value="",pR.value.dispatchEvent(new Event("input")));return!1}),we=_.Wr(function(){var H2=iEN(pR.value.value,f().filter(function(SJ){return SJ.type!==35}).map(function(SJ){return{label:SJ.text}}));
_.oF(eJ.value,"yt-open-popup-action",[{openPopupAction:H2},document.body]);return!1}),Z7=_.Wr(function(){pR.value.focus();
return!1}),Po=function(H2,SJ,Jr,zX,hh){DY.selectedSuggestionIndex=Jr;
V(SJ,hh?3:1,zX)},dz=function(H2){pR.value.value=H2;
pR.value.dispatchEvent(new Event("input"));DY.inputMethodsTracker.add(5);hH6(DY,!0)},dk=[[]],gV=function(H2){var SJ="searchbox-suggestion"+_.La(_.HZ);
dk[H2].push(SJ);return SJ},Ez=function(H2){if(f()){dk=[[]];
for(var SJ=0;SJ<H2;SJ++)dk.push([])}},rc=function(){if(Qv()){var H2=W2,SJ=H2.scrollTop;
H2=H2.scrollHeight-H2.clientHeight;io(SJ>=H2);SJ=Math.abs(H2-SJ);SJ<=40?cd(1-(40-SJ)/40):cd(1)}},jO=function(){return"opacity: "+vd()*100+"%"},MY=_.Wr(function(){rc();
return!1}),Qu=_.Wr(function(){GG(!1);
return!1}),Fp,NT={},e2={},Lf={},b4={};
return _.N("yt-searchbox",{class:_.XE("ytSearchboxComponentHost",(NT.ytSearchboxComponentMweb=!1,NT.ytSearchboxComponentDesktop=!0,NT["yt-searchbox-filled-query"]=function(){return m()},NT["ytd-masthead"]=function(){return!Vu()},NT.ytSearchboxComponentHostDark=fR,NT)),
role:"search",el:eJ,"client-ve-type":10349},_.N("div",{el:d4,"on:click":Z7,class:_.XE("ytSearchboxComponentInputBox",(e2.ytSearchboxComponentInputBoxDark=fR,e2.ytSearchboxComponentInputBoxHasFocus=Vu,e2))},_.N("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Dh},_.N(_.H,{cond:Vu,then:function(){return _.N("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.N(_.Us,{icon:"SEARCH"}))}}),_.N("input",{el:pR,
class:_.XE("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":i4,"aria-expanded":!((Fp=W2)==null?0:Fp.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":S2,"on:focus":l_,"on:input":s4,"on:keydown":J$,"on:paste":kb,placeholder:B.placeholderText,"aria-activedescendant":function(){var H2;return(H2=dk[T()])==null?void 0:H2[Q()]},
"aria-autocomplete":"list",role:"combobox"})),_.N(_.H,{cond:M,then:function(){return _.N("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.N(TFe,null))}}),_.N(_.H,{cond:m,
then:function(){return _.N("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.N("button",{class:"ytSearchboxComponentClearButton","on:click":so,"aria-label":B.clearButtonAriaLabel||KEU},_.N(_.Us,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.N(_.yK,{model:{}})))}})),_.N("button",{class:_.XE("ytSearchboxComponentSearchButton",(Lf.ytSearchboxComponentSearchButtonDark=fR,Lf)),
"on:click":Dh,"aria-label":vyz,title:B.placeholderText},_.N(_.Us,{icon:"SEARCH"})),_.N(_.H,{cond:function(){if(pkU()&&_.k("mweb_voice_search")&&B.voiceSearchButton)return B.voiceSearchButton()},
then:function(H2){var SJ={};return _.N("div",{class:_.XE("ytSearchboxComponentVoiceSearchWrapper",(SJ.ytSearchboxComponentHideVoiceSearchButton=function(){return m()},SJ))},_.N(_.wb,{data:H2},{buttonRenderer:function(Jr){return _.N(_.IW,{data:Jr.data,
onButtonClickCallback:function(){}})}}))}}),_.N("div",{el:_.Fc(function(H2){return void(W2=H2)}),
id:i4,class:_.XE("ytSearchboxComponentSuggestionsContainer",(b4.ytSearchboxComponentSuggestionsContainerDark=fR,b4["yt-searchbox-suggestions-container"]=!1,b4.ytSearchboxComponentSuggestionsContainerScrollable=Qv(),b4.ytSearchboxComponentSuggestionsContainerAnimated=S,b4)),"on:scroll":MY,"on:mousemove":Qu,role:"listbox",hidden:!0},_.N(_.yh,{each:f},function(H2,SJ){return _.N(wsr,{suggestion:H2,isHighlighted:function(){return SJ()===T()},
onClickCallback:Po,onHoverUpdateCallback:function(Jr){if(_.k("desktop_enable_single_suggestion_highlight")){var zX=SJ();Jr&&(q(0),L(zX))}},
onRemoveCallback:function(Jr){LEe(By);Jr===void 0||Jr<0||ES().includes(Jr)||$d([].concat(_.MI(ES()),[Jr]))},
labels:B.labels,queryBuilderFunction:dz,suggestionIndex:SJ,generateUniqueId:gV,highlightedId:function(){var Jr;return(Jr=dk[T()])==null?void 0:Jr[Q()]},
useScrollMargin:Qv(),isKeyboardMode:Eo})}),_.N(_.H,{cond:function(){return!Yd()&&f().find(function(H2){return H2.type!==35})&&_.k("searchbox_reporting")},
then:function(){return _.N("button",{class:"ytSearchboxComponentReportButton","on:mousedown":we},_.Wz("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.N(_.H,{cond:function(){return!lo()&&Qv()},
then:function(){return _.N("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.N("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:jO}))}})))},"lg"),"yt-searchbox",{props:{searchEndpoint:_.qq,
placeholderText:_.qq,labels:_.qq,voiceSearchButton:_.qq,focusCallback:_.Z9,clearButtonAriaLabel:_.qq,forceDarkMode:_.qq}});var $s=function(){var B=_.c.apply(this,arguments)||this;B.menuButtonTargetId="topbar-guide-menu";B.narrow=!1;B.menuStrings={BACK_ALT_LABEL:_.Wz("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Wz("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Wz("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Wz("SBOX_PLACEHOLDER",void 0,"Search")};B.pageDarkTheme=document.documentElement.hasAttribute("dark");B.watchPageScrollTop=0;B.theater=!1;B.fullscreen=!1;B.desktopUnifiedSearchPanelMode=_.k("desktop_enable_unified_search_panel");
B.cinematicTheaterMode=_.k("web_cinematic_theater_mode");B.ytSearchboxFocused=!1;B.searchboxLabels=_.vE("SBOX_LABELS");B.topbarIsAboveChipbar=!1;B.isDarkThemeForced=!1;B.areGhostCardsHidden=!1;B.guideKeyboardToggle=!1;B.voiceSearchManager=P$N();B.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};B.setYtSearchboxFocused=function(R){B.ytSearchboxFocused=R};
return B};
_.l($s,_.c);_.p=$s.prototype;_.p.computeSimpleText=function(B){return _.FF(B)};
_.p.onDarkChanged=function(){for(var B=_.h(this.buttons||[]),R=B.next();!R.done;R=B.next())R.value.isOverlay=!!this.dark;B=_.h(this.buttonRenderers||[]);for(R=B.next();!R.done;R=B.next())R.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 B=_.Qj(_.Ep(),"aa");_.nk(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||B||(this.isDarkThemeForced=this.dark=!0);this.logoType?(B=this.hostElement.querySelector("#masthead-logo"))&&(_.k("polymer_on_demand_shady_dom")?B.setAttribute("slot","masthead-logo-old"):_.UJ(B)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Bc(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Bc(this,this.onSetTheaterModeEnabled))};
_.p.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Bc(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Bc(this,this.onSetTheaterModeEnabled))};
_.p.dataChanged=function(){var B=this.data;B&&(this.voiceEnabled=B.voiceSearchButton?P$N().isSupported():!1,_.vnl(_.pF(),this.menuButtonTargetId,this.guideButton),B.onReceivedActions&&B.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.eO(this.hostElement,B.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&B&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.nk(this.hostElement,"dark",!1),_.nk(this.hostElement,"theater",!1),
(B=this.hostElement.querySelector("#masthead-logo"))&&(_.k("polymer_on_demand_shady_dom")?B.setAttribute("slot","masthead-logo-old"):_.UJ(B))))};
_.p.computeCenterHidden=function(){var B;return this.data&&!((B=this.data.searchbox)==null?0:B.fusionSearchboxRenderer)};
_.p.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.nk(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.p.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.p.onWatchScroll=function(B){this.watchPageScrollTop=B.detail||0;this.updateMastheadBackgroundOpacity()};
_.p.onFullscreenChangeAction=function(B){B||(this.watchPageScrollTop=0);this.fullscreen=B;this.updateMastheadBackgroundOpacity()};
_.p.onSetTheaterModeEnabled=function(B){this.theater=B.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(B){B=this.calculateBackgroundOpacity(B);this.background.style.opacity=""+B};
_.p.calculateBackgroundOpacity=function(B){var R=this.theater&&this.cinematicTheaterMode?.6:0,V=this.hostElement.clientHeight/2;return Math.min(Math.max(B,0),V)/V*(1-R)+R};
_.p.shouldShowCinematicMastHead=function(){var B=_.k("kevlar_watch_grid")&&!_.k("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(B||this.pageDarkTheme)};
_.p.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.p.focusGuide=function(){this.guideButton.focus()};
_.p.onGuideToggleTap=function(){_.OI(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.p.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.p.onGuideToggleHover=function(){_.OI(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(B){for(B=_.Az(B);B[0];){var R=B.shift();if(R instanceof Element&&R.id==="kbd")return!1}return!0};
_.p.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.p.pausePlayer=function(){var B;(B=_.Pr())==null||B.pause();this.pauseMiniplayer()};
_.p.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var B;(B=_.Oz().resolve(_.An).getPlayerElement())==null||B.pause()}};
_.p.isMiniplayerActive=function(){return _.Oz().resolve(_.An).isMiniplayerActive()};
_.p.updateNarrowFromBinding=function(B){this.narrow=B.detail.value};
_.p.onYtSendFeedbackAction=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.mh.Object.defineProperties($s.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.k("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 B;return(B=this.data)==null?void 0:B.voiceSearchButton}}}});
$s.prototype.narrowChanged=$s.prototype.narrowChanged;$s.prototype.onWatchPageChange=$s.prototype.onWatchPageChange;$s.prototype.onRendererStamperFinished=$s.prototype.onRendererStamperFinished;$s.prototype.dataChanged=$s.prototype.dataChanged;$s.prototype.onDarkChanged=$s.prototype.onDarkChanged;_.r([_.v(_.LC),_.Z("design:type",Object)],$s.prototype,"ironResizableBehavior",void 0);_.r([_.v(_.Or4),_.Z("design:type",Object)],$s.prototype,"ytdExpandableInputBehavior",void 0);
_.r([_.v(_.KL.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],$s.prototype,"ytdGuideStateAwareBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],$s.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],$s.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.dt),_.Z("design:type",Object)],$s.prototype,"ytdReduxBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],$s.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],$s.prototype,"narrow",void 0);_.r([_.E(),_.Z("design:type",Object)],$s.prototype,"logoType",void 0);_.r([_.E(),_.Z("design:type",Boolean)],$s.prototype,"voiceEnabled",void 0);
_.r([_.E(),_.Z("design:type",Object)],$s.prototype,"menuStrings",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$s.prototype,"dark",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],$s.prototype,"pageDarkTheme",void 0);_.r([_.E(),_.Z("design:type",Object)],$s.prototype,"watchPageScrollTop",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.w6}),_.Z("design:type",Boolean)],$s.prototype,"isWatchPage",void 0);
_.r([_.E({reflectToAttribute:!0,selector:_.auq}),_.Z("design:type",Boolean)],$s.prototype,"isShortsPage",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],$s.prototype,"theater",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],$s.prototype,"fullscreen",void 0);_.r([_.E({reflectToAttribute:!0,selector:_.L8d}),_.Z("design:type",String)],$s.prototype,"frostedGlassMode",void 0);_.r([_.E(),_.Z("design:type",Object)],$s.prototype,"ytSearchboxFocused",void 0);
_.r([_.hM("#buttons > *"),_.Z("design:type",Array)],$s.prototype,"buttons",void 0);_.r([_.hM("ytd-button-renderer"),_.Z("design:type",Array)],$s.prototype,"buttonRenderers",void 0);_.r([_.Yp("#background"),_.Z("design:type",HTMLDivElement)],$s.prototype,"background",void 0);_.r([_.Yp("#guide-button"),_.Z("design:type",Object)],$s.prototype,"guideButton",void 0);_.r([_.Yp("#logo"),_.Z("design:type",Object)],$s.prototype,"logo",void 0);
_.r([_.E({computed:"computeButtonOverride(dark)"}),_.Z("design:type",Object)],$s.prototype,"buttonOverrides",void 0);_.r([_.bp("dark"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$s.prototype,"onDarkChanged",null);_.r([_.E({value:function(){return this.onVoiceTap.bind(this)}}),
_.Z("design:type",Function)],$s.prototype,"boundOnTapVoiceButton",void 0);_.r([_.E(),_.Z("design:type",Object)],$s.prototype,"topbarIsAboveChipbar",void 0);_.r([_.E(),_.Z("design:type",String),_.Z("design:paramtypes",[])],$s.prototype,"guideIcon",null);_.r([_.K("voiceEnabled"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$s.prototype,"shouldShowVoiceSearchButton",null);_.r([_.K("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$s.prototype,"voiceSearchButton",null);
_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$s.prototype,"dataChanged",null);_.r([_.R_("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$s.prototype,"onRendererStamperFinished",null);_.r([_.bp("isWatchPage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$s.prototype,"onWatchPageChange",null);
_.r([_.bp("narrow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$s.prototype,"narrowChanged",null);$s=_.r([_.A({disableElementRegistration:!0,is:"ytd-masthead"})],$s);
_.F($s,"ytd-masthead",function(){if(D$e!==void 0)return D$e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return D$e=B},{mode:_.up("kevlar_poly_si_batch_j036")?1:2});var Eym;var Q37={},qAe={},c0i={},A0n={},i3o=(A0n.OFFLINE=(Q37["publicytnetworkstatus-online"]="BACK_ONLINE",Q37),A0n.ONLINE=(qAe["publicytnetworkstatus-offline"]="OFFLINE",qAe),A0n.BACK_ONLINE=(c0i["publicytnetworkstatus-offline"]="OFFLINE",c0i.TIMER_TRIGGER="ONLINE",c0i),A0n),CB=function(){var B=_.c.apply(this,arguments)||this;B.currentState="ONLINE";B.scheduledJobId=0;B.bannerString="";B.bannerVe=null;B.networkStatusManagerInstance=new _.A$;return B};
_.l(CB,_.c);_.p=CB.prototype;_.p.attached=function(){var B=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){B.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){B.stateChangeHandler("publicytnetworkstatus-offline")})};
_.p.detached=function(){var B=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){B.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){B.stateChangeHandler("publicytnetworkstatus-offline")})};
_.p.enterState=function(B){var R=this;this.scheduledJobId&&_.dV.cancelJob(this.scheduledJobId);B==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):B==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Wz("NO_INTERNET_CONNECTION",void 0,"No internet connection")):B==="BACK_ONLINE"&&(this.bannerString=_.Wz("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.kD(_.dV,function(){R.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=B};
_.p.stateChangeHandler=function(B){(B=i3o[this.currentState][B])&&this.enterState(B)};
_.p.logVisibility=function(B){var R=_.TE();this.createBannerVe(B);R&&this.bannerVe&&(B?_.cz(R,[this.bannerVe]):_.AE(R,[this.bannerVe]))};
_.p.createBannerVe=function(B){!this.bannerVe&&B&&(this.bannerVe=_.kB(37929),_.hy(_.WK(),this.bannerVe))};
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",String)],CB.prototype,"currentState",void 0);_.r([_.E(),_.Z("design:type",Object)],CB.prototype,"scheduledJobId",void 0);_.r([_.E(),_.Z("design:type",Object)],CB.prototype,"bannerString",void 0);CB=_.r([_.A({disableElementRegistration:!0,is:"ytd-network-status-banner"})],CB);
_.F(CB,"ytd-network-status-banner",function(){if(Eym!==void 0)return Eym;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return Eym=
B},{mode:1});var s3e;var PN=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};B.hidden=!0;B.frostedGlass=_.k("web_frosted_glass");return B};
_.l(PN,_.c);PN.prototype.computeHidden=function(B){return B&&B.status?!1:!0};
PN.prototype.handleUpdatePermissionRoleCommand=function(B){if(B=_.D(B,_.KGR))if(B=_.D(B.renderer,_.v6b))this.data=B};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],PN.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],PN.prototype,"componentBehavior",void 0);_.r([_.E({value:!0,computed:"computeHidden(data)"}),_.Z("design:type",Object)],PN.prototype,"hidden",void 0);_.r([_.E(),_.Z("design:type",Object)],PN.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],PN.prototype,"frostedGlass",void 0);
PN=_.r([_.A({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],PN);
_.F(PN,"ytd-permission-role-bottom-bar-renderer",function(){if(s3e!==void 0)return s3e;var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);return s3e=B},{mode:1});var FEo;var r0m;var nG6={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var nB=function(){return _.c.apply(this,arguments)||this};
_.l(nB,_.c);_.p=nB.prototype;_.p.attached=function(){this.JSC$18456_scroller&&(this.JSC$18456_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18456_scroller.attached&&typeof this.JSC$18456_scroller.attached==="function"&&this.JSC$18456_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(V){V.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var B=_.w(this.hostElement);B.querySelector("tp-yt-paper-radio-group").selected="";var R=B.querySelector("#reason-text");R&&(R.value="");B.querySelector("#description-text").value=""}};
_.p.canSubmit=function(B,R){_.OI(this.hostElement,"yt-invalidate-popup-tabbables");return!(B&&R)};
_.p.onCancel=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.p.onSubmit=function(){var B=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(Y){return Y.active}).map(function(Y){return Y.innerText.trim()}),R=this.hostElement.querySelector("tp-yt-paper-radio-group"),V=R.selectedItem,e=V.name;
V=V.innerText.trim();var X=R.querySelector("#reason-text");R=void 0;X&&(R=X.value);(X=this.descriptionText.value)&&(X=X.trim());uFm(this.data.searchQuery,B,e,V,X,R);_.oF(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.p.sendFormSubmitToast=function(){var B=_.$G(_.Wz("SBOX_INAPPROPRIATE_TOAST"));_.oF(this.hostElement,"yt-open-popup-action",[B,this])};
_.p.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(B){return B.active})};
_.p.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
nB.prototype.onIronSelect=nB.prototype.onIronSelect;nB.prototype.onIronChange=nB.prototype.onIronChange;nB.prototype.dataChanged=nB.prototype.dataChanged;_.r([_.E(),_.Z("design:type",Object)],nB.prototype,"data",void 0);_.r([_.E({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Z("design:type",Boolean)],nB.prototype,"submitDisabled",void 0);_.r([_.E(),_.Z("design:type",Boolean)],nB.prototype,"suggestionSelected",void 0);
_.r([_.E(),_.Z("design:type",Boolean)],nB.prototype,"catagorySelected",void 0);_.r([_.Yp("#scroller"),_.Z("design:type",Object)],nB.prototype,"JSC$18456_scroller",void 0);_.r([_.Yp("#description-text"),_.Z("design:type",Object)],nB.prototype,"descriptionText",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nB.prototype,"dataChanged",null);
_.r([_.R_("iron-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nB.prototype,"onIronChange",null);_.r([_.R_("iron-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nB.prototype,"onIronSelect",null);nB=_.r([_.A({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],nB);
_.F(nB,"ytd-search-suggestion-report-dialog",function(){if(r0m!==void 0)return r0m;var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return r0m=B},{mode:1});var bV=function(B){var R=B.openPopupAction;var V=B.target;var e=B.container;var X=B.popupContainerConfig;var Y=B.getElement;B=B.removeWhenClosed===void 0?!1:B.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=R;this.target=V;this.container=e;this.popupContainerConfig=X;this.getElement=Y;this.JSC$18462_popupConfig=this.popupContainerConfig.JSC$17579_popupConfig[this.openPopupAction.popupType];this.rendererName=(R=this.getName())?_.icx(R,dGe(this.popupContainerConfig,
R)):"";_.k("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=B);this.createPopup()};
bV.prototype.updatePopup=function(B){this.openPopupAction=B;this.JSC$18462_popupConfig=this.popupContainerConfig.JSC$17579_popupConfig[this.openPopupAction.popupType];gy7(this);_.k("reorder_popup_updates_killswitch")&&Z3r(this);_.k("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var CM4=function(B,R,V){B.target=V;var e;V=((e=B.target.polymerController)!=null?e:B.target).popupPositionTarget||B.target;B.JSC$18462_popupConfig.targetContainer&&(V=B.container);B.popup.positionTarget=V;B.popupContent.positionTarget=V;_.k("reorder_popup_updates_killswitch")||Z3r(B);B.JSC$18462_popupConfig.forceFocus&&(B.popupContent.style.outline="none");B.popupContent.tabIndex=-1;B.JSC$18462_popupConfig.narrowProperties&&(B.popup.style.position="static");B.JSC$18462_popupConfig.preventAutonav&&
B.popup.setAttribute("prevent-autonav",!0);B.JSC$18462_popupConfig.forceCloseOnOutsideClick&&B.popup.setAttribute("force-close-on-outside-click",!0);m$6(B,R);$$m(B,B.JSC$18462_popupConfig.styles);B.isRtl()&&$$m(B,B.JSC$18462_popupConfig.rtlStyles);if(!B.openPopupAction.shouldStopParentSignal){var X;R=(X=B.target.polymerController)!=null?X:B.target;(B.popupContent.startForwardingEvents||B.popupContainerConfig.forwardingEnabledPopups.has(B.rendererName))&&R.parentComponent!==B.popupContent&&B.popupContent!==
B.target&&B.target!==document.body&&(B.popupContent.startForwardingEvents?B.popupContent.startForwardingEvents(B.popupContainerConfig.forwardedEvents,B.target):(B.JSC$18462_eventForwarder||(B.JSC$18462_eventForwarder=new _.UT(B.popupContent)),B.JSC$18462_eventForwarder.start(B.popupContainerConfig.forwardedEvents,B.target)))}};
bV.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var m$6=function(B,R){PMn(B,R&&B.JSC$18462_popupConfig.narrowProperties?B.JSC$18462_popupConfig.narrowProperties:B.JSC$18462_popupConfig.properties);B.isRtl()&&PMn(B,B.JSC$18462_popupConfig.rtlProperties);Z3r(B)};
bV.prototype.createPopup=function(){var B=this.JSC$18462_popupConfig.component;if(this.popupContent=ny4(this,this.rendererName)){if(B){this.popup=ny4(this,B);var R=this.popupContent;_.k("web_enable_wrapper_for_cow_component_in_popup")&&(R=document.createElement("div"),R.appendChild(this.popupContent));_.k("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18462_popupConfig.slotName&&R.setAttribute("slot",this.JSC$18462_popupConfig.slotName);B=this.popup;var V=this.container.tagName.toLowerCase(),
e=_.sX(R);_.U3Z(_.rr(B),_.m5(R,V,e));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.k("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.w(this.container).appendChild(this.popup)}};
var gy7=function(B){var R,V,e=(R=B.openPopupAction.accessibilityData)==null?void 0:(V=R.accessibilityData)==null?void 0:V.label;e&&(B.popup.ariaLabel=e);var X;((X=B.popupContent.polymerController)!=null?X:B.popupContent).data=(0,_.M_.unsafeClone)(B.openPopupAction.popup[B.getName()]);B.popupContent.duration=uIU(B);B.popupContent.positionType=B.openPopupAction.position;var Y=B.openPopupAction.properties;Y&&Object.keys(Y).forEach(function(t){B.popupContent[t]=Y[t]})},PMn=function(B,R){if(R)for(var V=
_.h(Object.keys(R)),e=V.next();!e.done;e=V.next())e=e.value,B.popup[e]=R[e]},Z3r=function(B){if(B.openPopupAction.position){var R=B.JSC$18462_popupConfig.positionalProperties&&B.JSC$18462_popupConfig.positionalProperties[B.openPopupAction.position],V=B.JSC$18462_popupConfig.rtlPositionalProperties&&B.JSC$18462_popupConfig.rtlPositionalProperties[B.openPopupAction.position];
R=B.isRtl()&&V?V:R;R.shiftedHorizontalOffset&&(V=B.popup.style.display,B.popup.style.display="block",B.popupContent&&B.popup.positionTarget&&B.popupContent.clientWidth>B.popup.positionTarget.clientWidth&&(R.horizontalOffset=B.popup.positionTarget.clientWidth/2-R.shiftedHorizontalOffset),B.popup.style.display=V);PMn(B,R)}},$$m=function(B,R){if(R)for(var V=_.h(Object.keys(R)),e=V.next();!e.done;e=V.next())e=e.value,B.popup.style[e]=R[e]};
bV.prototype.getName=function(){return _.TM(this.openPopupAction.popup,"renderer")||_.TM(this.openPopupAction.popup,"dialog")||_.TM(this.openPopupAction.popup,"model")||void 0};
var uIU=function(B){B=B.openPopupAction.durationHintMs;return B===0?B:Math.max(4E3,B||4E3)};
bV.prototype.isRtl=function(){return _.vE("HTML_DIR")==="rtl"};
var ny4=function(B,R){B=B.getElement(R,B.target);B==null&&_.KE(new _.H8("popup getElement returned null",R));return B};var O3z={};
O3z.YtPopupContainerBehavior=[_.Tk.YtComponentBehavior,_.$Z.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.np(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.us(this.hostElement)},
closePopup:function(B){var R=this.createCacheKey(void 0,B);this.popups_[R]&&this.handleClosePopupAction_(void 0,B)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.dV.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.dV.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(B){B.opened&&B.keepBelowPlayer&&this.ensurePopupBelowPlayer(B)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var B in this.popups_){var R=this.popups_[B];if(R.popup.scrollAction==="refit"){var V=R.popup.positionTarget.getBoundingClientRect(),e=R.popup;V=V.top;var X=R;if(!X.naturalHeight){X.popup.hidden=!1;X.popup.style.position="fixed";X.popup.style.top="0px";X.popup.style.left="0px";var Y=X.popup.getBoundingClientRect();X.naturalHeight=Y.bottom-Y.top;X.popup.refit()}e.hidden=!(V>=X.naturalHeight+60);R.popupContent.clientHeight===0&&R.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(B){this.popupContainerConfig=B},
handleOpenPopupAction:function(B,R){var V=B.openPopupAction,e=_.Oz().resolve(_.uj(_.tJ6))&&V.popupType==="TOAST";e&&!V.uniqueId&&(V.uniqueId=_.dw());if(!_.k("popup_container_parent_target_killswitch")){var X;R=(X=this.getParentTarget(R))!=null?X:R}var Y=this.ensurePopup_(V,R);return new _.be(function(t){Y.then(function(b){if(!b)return t();this.maybeCreateNarrowMediaQuery_();var J=this.createCacheKey(b.rendererName,b.openPopupAction.uniqueId);if(V.showOncePerUniqueId){if(this.shownPopupKeys_.has(J))return t();
this.shownPopupKeys_.add(J)}J=this.popups_[J];var G=!(!J||!J.openPopupAction.beReused);G=!!V.reusePopup||G;if(b.popup.opened&&!G){e&&!b.openPopupAction.replacePopup||this.handleClosePopupAction_(b.rendererName,b.openPopupAction.uniqueId);G=V.popupType==="DIALOG"&&!_.k("popup_container_dialog_reopen_killswitch");if(!e&&!G&&J&&J.target==R&&!b.openPopupAction.replacePopup)return t();_.gB(b.popup,function(){this.completeOpenPopupAction_(V,R,b);t()}.bind(this))}else b.popup.opened?b.updatePopup(V):this.completeOpenPopupAction_(V,
R,b),t()}.bind(this))}.bind(this))},
getParentTarget:function(B){if(B&&B instanceof HTMLElement)for(var R=_.h(Object.entries(this.popups_)),V=R.next();!V.done;V=R.next())if(V=_.h(V.value),V.next(),V=V.next().value,V.popup.tagName==="TP-YT-IRON-DROPDOWN"&&V.popup.opened&&B.closest(V.rendererName))return V.target},
completeOpenPopupAction_:function(B,R,V){_.k("reorder_popup_updates_killswitch")?(CM4(V,this.narrowMediaQuery_.queryMatches,R),V.updatePopup(B)):(V.updatePopup(B),CM4(V,this.narrowMediaQuery_.queryMatches,R));B=V.popup;B.addEventListener("iron-overlay-opened",_.Bc(this,this.onPopupIronOverlayOpened_));B.addEventListener("iron-overlay-closed",_.Bc(this,this.onPopupIronOverlayClosed_));B.addEventListener("iron-overlay-canceled",_.Bc(this,this.onPopupIronOverlayCanceled_));B.addEventListener("yt-refit",
_.Bc(this,this.refitPopup_));B.addEventListener("yt-invalidate-popup-tabbables",_.Bc(this,this.handleInvalidatePopupTabbables_));B.open()},
getPopupDurationMs_:function(B){return B.durationHintMs===0?B.durationHintMs:Math.max(4E3,B.durationHintMs||4E3)},
handleClosePopupAction_:function(B,R){var V=_.k("web_popup_cache_key_killswitch")||!!R;if(B||V){var e=this.createCacheKey(B,R);B=(B=this.popups_[e])&&B.popup}else B=_.KJ_(_.rv);if(B&&B.close){if(R=_.Oz().resolve(_.uj(_.DE)))B.restoreFocusOnClose=R.isKeyBoardInUse();B.close();this.removePopup_(B,e)}},
handleClosePopupCommand_:function(B){B.closePopupCommand&&B.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,B.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(B){var R={},V;for(V in this.popups_)if(R={key$jscomp$1162:R.key$jscomp$1162},R.key$jscomp$1162=V,!B||!B.some(function(Y){return function(t){return t==Y.key$jscomp$1162}}(R))){var e=this.popups_[R.key$jscomp$1162],X=e.popup;
_.Oz().resolve(_.uj(_.tJ6))&&e.openPopupAction.popupType==="TOAST"||(X&&X.close&&X.close(),this.removePopup_(X,R.key$jscomp$1162))}},
handleClosePopupsAction_:function(B){B.forEach(function(R){var V=this.popups_[R];V&&((V=V.popup)&&V.close&&V.close(),this.removePopup_(V,R))}.bind(this))},
handleGetPopupOpenedAction_:function(B,R){return(R=this.createCacheKey(B,R))&&this.popups_[R]?this.popups_[B].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var B=[],R;for(R in this.popups_){var V=this.popups_[R];V.popup.opened&&B.push(V)}return B},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(B,R){_.k("ytpopup_disable_default_html_caching")&&B&&B.removeWhenClosed&&(_.w(this.hostElement).removeChild(B),R&&this.popups_[R]&&delete this.popups_[R])},
shouldReusePopup_:function(B){return!(!B||!B.reusePopup)||!(!B||!B.beReused)},
ensurePopup_:function(B,R){this.maybeCreateNarrowMediaQuery_();var V=_.TM(B.popup,"renderer")||_.TM(B.popup,"dialog")||_.TM(B.popup,"model");if(!V)return _.XT();V=_.icx(V,dGe(this.popupContainerConfig,V));return _.XT(this.getAndMaybeCreatePopup_(B,V,R))},
getAndMaybeCreatePopup_:function(B,R,V){var e=this.createCacheKey(R,B.uniqueId);if(this.popups_[e])return this.popups_[e];B=new bV({openPopupAction:B,target:V,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(R)});return this.popups_[e]=B},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(B){return _.k("ytpopup_disable_default_html_caching")?B&&B.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",_.Bc(this,this.openPopupQueryMatchesChanged_)),_.w(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(B){B=B.detail.value;for(var R in this.popups_)m$6(this.popups_[R],B)},
onPopupIronOverlayClosed_:function(B){var R=B.currentTarget,V=_.ICp(R);V=V.length>0?V[0]:R;if(V.is!=="ytd-reel-watch-while-dialog-renderer"||B.target.is!=="tp-yt-iron-dropdown"){B.detail.popup=R;B.detail.popupRenderer=V;var e,X={context:{openingElement:((e=this.popups_[(V==null?void 0:V.is)||""])==null?void 0:e.target)||void 0}};Object.assign(X,B.detail);var Y;_.OI((Y=V.hostElement)!=null?Y:V,"yt-popup-closed",X);R.removeEventListener("yt-refit",_.Bc(this,this.refitPopup_));R.removeEventListener("yt-invalidate-popup-tabbables",
_.Bc(this,this.handleInvalidatePopupTabbables_));R.removeEventListener("iron-overlay-canceled",_.Bc(this,this.onPopupIronOverlayCanceled_));R.removeEventListener("iron-overlay-closed",_.Bc(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(R)}},
onPopupIronOverlayCanceled_:function(B,R){var V=B.currentTarget,e=_.ICp(V);e=e.length>0?e[0]:V;if(e.is!=="ytd-reel-watch-while-dialog-renderer"||B.target.is!=="tp-yt-iron-dropdown"){var X;_.OI((X=e.hostElement)!=null?X:e,"yt-popup-canceled",B.detail);X=R?_.Az(R):null;(!R||["click","tap"].includes(R.type))&&!V.hasAttribute("force-close-on-outside-click")&&V.positionTarget&&X&&X.includes(V.positionTarget)&&B.preventDefault();V.restoreFocusOnClose=_.kI.keyboardEventMatchesKeys(R,"esc")}},
onPopupIronOverlayOpened_:function(B){B=B.currentTarget;var R=_.ICp(B);R=R.length>0?R[0]:B;var V,e;_.OI((V=R.hostElement)!=null?V:R,"yt-popup-opened",(e=R.hostElement)!=null?e:R);B.keepBelowPlayer&&(this.ensurePopupBelowPlayer(B,!0),this.dynamicallyPositionedElements_.add(B));V=_.Oz().resolve(_.uj(_.DE));e=!!R.querySelector("#toast");V&&V.isKeyBoardInUse()&&!e&&(typeof R.focusFirstItem==="function"?R.focusFirstItem():(R=_.xob(B),R.length&&R[0].focus()));B.removeEventListener("iron-overlay-opened",
_.Bc(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(B){B=B.currentTarget;B.refit&&B.refit()},
refitPopups_:function(){for(var B in this.popups_)this.popups_[B].refit()},
handleInvalidatePopupTabbables_:function(B){B=B.currentTarget;B.invalidateTabbables&&B.invalidateTabbables()},
createCacheKey:function(B,R){return _.k("web_popup_cache_key_killswitch")?R?B+"#"+R:B:R?"#"+R:B},
openSheet:function(B,R){var V=B==null?void 0:B.openPopupActionCommand;!V&&(B==null?0:B.viewModel)&&(V={openPopupAction:{popup:{sheetViewModel:B.viewModel},popupType:"CONTEXTUAL_SHEET"}});V&&this.handleOpenPopupAction(V,R)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var B=this;return _.W(function(R){return R.return(B.handleGetOpenedPopupsAction_().filter(function(V){var e;return((e=V.openPopupAction)==null?void 0:e.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(B,R,V){if(_.k("web_dialog_utils_killswitch")){var e=B==null?void 0:B.openPopupActionCommand,X=(V==null?0:V.ariaLabel)?{accessibilityData:{accessibilityData:{label:V.ariaLabel}}}:void 0;!e&&(B==null?0:B.viewModel)&&(e={openPopupAction:Object.assign({},{popup:{dialogViewModel:B.viewModel},popupType:(V==null?0:V.isModal)?"MODAL":"DIALOG"},X&&X)});e&&this.handleOpenPopupAction(e,R)}else{if(X=B==null?void 0:B.viewModel){var Y=V=V===void 0?{}:V;V=Y.ariaLabel;X={popup:{dialogViewModel:X},
popupType:Y.isModal?"MODAL":"DIALOG"};Y={accessibilityData:{label:V}};V&&(X.accessibilityData=Y);X={openPopupAction:X}}else X=void 0;(X=(e=X)!=null?e:B==null?void 0:B.openPopupActionCommand)&&this.handleOpenPopupAction(X,R)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var B=this;return _.W(function(R){return R.return(B.handleGetOpenedPopupsAction_().filter(function(V){var e;return((e=V.openPopupAction)==null?void 0:e.popupType)==="DIALOG"}).length>0)})}}];var o46;var Baj;var RDn=_.$Q(["about:blank"]),J9=function(){var B=_.c.apply(this,arguments)||this;B.isMuted=!1;B.pageLoadTimeoutId=void 0;return B};
_.l(J9,_.c);_.p=J9.prototype;_.p.dataChanged=function(){var B=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var R=this.data.url,V=_.wV(R);_.k("enable_yt_ata_iframe_authuser")?(V=_.wV(R),_.wc(this.iframe,O77(V))):_.wc(this.iframe,V);this.pageLoadTimeoutId=_.kD(_.TT(),function(){return void B.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.OD({destination:window,iframe:this.iframe,origin:_.q44(V.toString()),channelName:"ataiframe",onMessage:_.CQ5(vIi,function(e){Kpr(e.data)?(e=_.Hy(e.data,1,_.km,_.oI()),e.length!==1?_.KE(Error("ol")):(e=e[0],e===3?(B.isMuted=!0,B.logStateChanged({adMuteRequested:!0})):e===1&&B.close())):_.KE(Error("pl"))}),
onEstablished:function(){B.cancelPageLoadTimeout();B.logStateChanged({pageLoadSucceeded:!0})}})}};
_.p.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.TT().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.p.logStateChanged=function(B){var R;if((R=this.data)==null?0:R.trackingParams)B={adsClientData:{aboutThisAdData:B}},_.WK().stateChanged(this.data.trackingParams,B)};
_.p.close=function(){_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.handlesPopupClosed=function(B,R){var V=this,e,X;return _.W(function(Y){if(Y.nextAddress==1)return _.vE("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.oF(V.hostElement,"on-about-this-ad-popup-closed",[V.isMuted,R]),Y.jumpTo(0)):B&&oAe(B)?_.U(Y,BrU(B),4):(V.isMuted&&_.oF(V.hostElement,"yt-mute-ad-action",[V.is,V]),Y.jumpTo(0));if(e=Y.yieldResult){var t=X=new _.jF(e),b=V.isMuted;t.getOptions().includes("onAboutThisAdPopupClosed")?_.UL5(t,"onAboutThisAdPopupClosed",{isMuted:b,layoutId:R}):_.R7("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.b3(Y)})};
_.p.onPopupClosed=function(B){var R=this,V,e;return _.W(function(X){V=_.u3(RDn);_.wc(R.iframe,V);R.cancelPageLoadTimeout();if(!R.data)return X.jumpTo(0);R.ytRendererBehavior.markDirty();e=B.detail.context.openingElement;return _.U(X,R.handlesPopupClosed(e,R.data.layoutId),0)})};
_.p.detached=function(){this.cancelPageLoadTimeout()};
_.p.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
J9.prototype.onPopupClosed=J9.prototype.onPopupClosed;J9.prototype.dataChanged=J9.prototype.dataChanged;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.r([_.Yp("#iframe"),_.Z("design:type",HTMLIFrameElement)],J9.prototype,"iframe",void 0);_.r([_.E(),_.Z("design:type",Object)],J9.prototype,"data",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],J9.prototype,"dataChanged",null);
_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype",Promise)],J9.prototype,"onPopupClosed",null);J9=_.r([_.fJ({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],J9);
_.F(J9,"yt-about-this-ad-renderer",function(){if(Baj===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;o46===void 0&&(o46=document.createElement("template"));var e=o46;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Baj=B}B=Baj;return B},{mode:2});var VW4;var eDi;var jU=function(B){var R=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=R.message;"stack"in R&&(this.stack=R.stack);this.maxFileSizeMB=B;Object.setPrototypeOf(this,jU.prototype)};
_.l(jU,Error);var XgU=function(B,R){var V=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=V.message;"stack"in V&&(this.stack=V.stack);this.minWidth=B;this.minHeight=R;Object.setPrototypeOf(this,XgU.prototype)};
_.l(XgU,Error);var pgN=function(B){this.requirements=B;this.JSC$18490_maxFileSize=B.maxFileSizeMB*1024*1024},Ygn=function(B,R){if(R.size>B.JSC$18490_maxFileSize)throw new jU(B.requirements.maxFileSizeMB);
};var hD7=function(B,R){this.canvas=B;this.imageEditorBuilder=R};
hD7.prototype.addEventListeners=function(B){var R=function(X){tW4(B,X)};
this.JSC$18496_mouseDownEvent=R;var V=function(X){Wuo(B,X)};
this.JSC$18496_mouseMoveEvent=V;var e=function(){bbo(B)};
this.JSC$18496_mouseUpEvent=e;this.canvas.addEventListener("mousedown",R);this.canvas.addEventListener("mousemove",V);document.addEventListener("mouseup",e)};
hD7.prototype.removeEventListeners=function(){this.JSC$18496_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18496_mouseDownEvent);this.JSC$18496_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18496_mouseMoveEvent);this.JSC$18496_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18496_mouseUpEvent)};
var JL4=function(B,R){B.removeEventListeners();return new Promise(function(V){var e=new Image;e.crossOrigin="anonymous";e.onload=function(){var X=B.imageEditorBuilder(B.canvas,e);B.addEventListeners(X);V(X)};
e.src=R})},UR=function(B,R,V,e,X,Y,t,b){this.canvas=B;
this.image=R;this.requiredRatio=V;this.minImageCropDimension=e;this.minOutputImageResolution=X;this.component=Y;this.styleFocusedCorner=b===void 0?!0:b;this.action=2;this.focusedCorner=this.resizeCorner=0;B=this.canvas.getContext("2d");if(!B)throw Error("ql");this.ctx=B;this.canvasMargin=t!=null?t:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;t=this.image;B=this.canvasInnerWidth/t.width;t.height*B>912&&(B=t.width/t.height*912/t.width);t=B;this.scaledImageWidth=this.canvas.width%2?
Vc7(this.image.width*t):RZU(this.image.width*t);this.scaledImageHeight=Math.round(this.image.height*t);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18499_overlayMarginBottom=this.JSC$18499_overlayMarginTop=this.canvasMargin;this.JSC$18499_overlayMarginRight=this.JSC$18499_overlayMarginLeft=this.horizontalMargin;this.JSC$18499_overlayWidth=this.scaledImageWidth;this.JSC$18499_overlayHeight=this.scaledImageHeight;
B=this.image.width/this.image.height;B>this.requiredRatio?(this.JSC$18499_overlayWidth=this.canvas.width%2?Vc7(this.scaledImageHeight*this.requiredRatio):RZU(this.scaledImageHeight*this.requiredRatio),this.JSC$18499_overlayMarginRight=this.JSC$18499_overlayMarginLeft=(this.canvas.width-this.JSC$18499_overlayWidth)/2):B<this.requiredRatio&&(this.JSC$18499_overlayHeight=this.canvas.height%2?Vc7(this.scaledImageWidth/this.requiredRatio):RZU(this.scaledImageWidth/this.requiredRatio),this.JSC$18499_overlayMarginBottom=
this.JSC$18499_overlayMarginTop=(this.canvas.height-this.JSC$18499_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*t,this.scaledImageWidth);je4(this)};
UR.prototype.getContext=function(){return this.ctx};
var tW4=function(B,R){R={x:Math.round(R.pageX-B.canvas.getBoundingClientRect().left),y:Math.round(R.pageY-B.canvas.getBoundingClientRect().top)};B.dragStart=R;UZN(B,R)!==0?(B.action=1,Nai(B,R),B.resizeCorner=UZN(B,R)):R.x>B.JSC$18499_overlayMarginLeft&&R.x<B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth&&R.y>B.JSC$18499_overlayMarginTop&&R.y<B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight&&(B.action=0)},G5U=function(B,R){switch(R){case 1:return{x:B.JSC$18499_overlayMarginLeft,
y:B.JSC$18499_overlayMarginTop};case 2:return{x:B.JSC$18499_overlayMarginLeft,y:B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight};case 3:return{x:B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth,y:B.JSC$18499_overlayMarginTop};case 4:return{x:B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth,y:B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight};default:throw Error("rl");}},Sgm=function(B,R){if(B.focusedCorner!==0){B.dragStart=G5U(B,B.focusedCorner);
B.action=1;B.resizeCorner=B.focusedCorner;var V=B.dragStart.x,e=B.dragStart.y;switch(R){case 0:B.focusedCorner===1||B.focusedCorner===4?(V-=10,e-=10):(V-=10,e+=10);break;case 1:B.focusedCorner===1||B.focusedCorner===4?(V+=10,e+=10):(V+=10,e-=10);break;case 2:V=B.focusedCorner===1||B.focusedCorner===4?V-10:V+10;e-=10;break;case 3:V=B.focusedCorner===1||B.focusedCorner===4?V+10:V-10;e+=10;break;default:throw Error("sl");}yL7(B,{x:V,y:e});je4(B);B.action=2;B.dragStart=void 0}},Wuo=function(B,R){R={x:Math.round(R.pageX-
B.canvas.getBoundingClientRect().left),
y:Math.round(R.pageY-B.canvas.getBoundingClientRect().top)};Nai(B,R);switch(B.action){case 1:yL7(B,R);break;case 0:B.dragStart&&(B.JSC$18499_overlayMarginLeft=Math.max(B.horizontalMargin,Math.min(B.JSC$18499_overlayMarginLeft-(B.dragStart.x-R.x),B.horizontalMargin+B.scaledImageWidth-B.JSC$18499_overlayWidth)),B.JSC$18499_overlayMarginRight=B.canvas.width-B.JSC$18499_overlayMarginLeft-B.JSC$18499_overlayWidth,B.JSC$18499_overlayMarginTop=Math.max(B.canvasMargin,Math.min(B.JSC$18499_overlayMarginTop-
(B.dragStart.y-R.y),B.scaledImageHeight-B.JSC$18499_overlayHeight+B.canvasMargin)),B.JSC$18499_overlayMarginBottom=B.canvas.height-(B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight));break;default:return}je4(B);B.dragStart=R},bbo=function(B){B.action=2;
B.dragStart=void 0;document.body.style.cursor="auto"},Nai=function(B,R){switch(UZN(B,R)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:B.action!==1&&(document.body.style.cursor="auto")}},UZN=function(B,R){var V=B.JSC$18499_overlayMarginLeft-5,e=B.JSC$18499_overlayMarginTop-5,X=B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth-5;
B=B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight-5;return Hb6(R,{x:V,y:e})?1:Hb6(R,{x:X,y:e})?3:Hb6(R,{x:V,y:B})?2:Hb6(R,{x:X,y:B})?4:0},Hb6=function(B,R){return B.x>=R.x&&B.x<=R.x+10&&B.y>=R.y&&B.y<=R.y+10},yL7=function(B,R){if(B.dragStart)switch(B.resizeCorner){case 2:Math.abs((B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth-R.x)/(R.y-B.JSC$18499_overlayMarginTop))>=B.requiredRatio?MW4(B,R.x):k5o(B,R.y);
break;case 1:Math.abs((B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth-R.x)/(B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight-R.y))>=B.requiredRatio?DZN(B,R.x):k5o(B,R.y);break;case 4:Math.abs((R.x-B.JSC$18499_overlayMarginLeft)/(R.y-B.JSC$18499_overlayMarginTop))>=B.requiredRatio?MW4(B,R.x):fs4(B,R.y);break;case 3:Math.abs((R.x-B.JSC$18499_overlayMarginLeft)/(B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight-R.y))>=B.requiredRatio?DZN(B,R.x):fs4(B,R.y);break;default:throw Error("tl");
}},MW4=function(B,R){var V=B.JSC$18499_overlayMarginTop;
B.JSC$18499_overlayMarginBottom=lse(B,R);B.JSC$18499_overlayHeight=B.canvas.height-B.JSC$18499_overlayMarginBottom-V;B.JSC$18499_overlayWidth=Math.round(B.JSC$18499_overlayHeight*B.requiredRatio);zDo(B)},DZN=function(B,R){var V=B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight;
B.JSC$18499_overlayMarginTop=lse(B,R);B.JSC$18499_overlayHeight=V-B.JSC$18499_overlayMarginTop;B.JSC$18499_overlayWidth=Math.round(B.JSC$18499_overlayHeight*B.requiredRatio);zDo(B)},zDo=function(B){switch(B.resizeCorner){case 2:case 1:B.JSC$18499_overlayMarginLeft=B.canvas.width-B.JSC$18499_overlayMarginRight-B.JSC$18499_overlayWidth;
break;case 4:case 3:B.JSC$18499_overlayMarginRight=B.canvas.width-B.JSC$18499_overlayMarginLeft-B.JSC$18499_overlayWidth;break;default:throw Error("tl");}},k5o=function(B,R){var V=B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth;
B.JSC$18499_overlayMarginLeft=aso(B,R);B.JSC$18499_overlayWidth=V-B.JSC$18499_overlayMarginLeft;B.JSC$18499_overlayHeight=Math.round(B.JSC$18499_overlayWidth/B.requiredRatio);dZ7(B)},fs4=function(B,R){var V=B.JSC$18499_overlayMarginLeft;
B.JSC$18499_overlayMarginRight=aso(B,R);B.JSC$18499_overlayWidth=B.canvas.width-B.JSC$18499_overlayMarginRight-V;B.JSC$18499_overlayHeight=Math.round(B.JSC$18499_overlayWidth/B.requiredRatio);dZ7(B)},dZ7=function(B){switch(B.resizeCorner){case 2:case 4:B.JSC$18499_overlayMarginBottom=B.canvas.height-B.JSC$18499_overlayMarginTop-B.JSC$18499_overlayHeight;
break;case 1:case 3:B.JSC$18499_overlayMarginTop=B.canvas.height-B.JSC$18499_overlayMarginBottom-B.JSC$18499_overlayHeight;break;default:throw Error("tl");}},lse=function(B,R){switch(B.resizeCorner){case 2:R=B.canvas.height-(B.JSC$18499_overlayMarginTop+wgz(B,R));
break;case 4:R=B.canvas.height-(B.JSC$18499_overlayMarginTop+Ta4(B,R));break;case 1:R=B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight-wgz(B,R);break;case 3:R=B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight-Ta4(B,R);break;default:throw Error("tl");}return Math.max(R,B.canvasMargin)},wgz=function(B,R){R=B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth-Math.max(R,B.horizontalMargin);
R=R<0?B.JSC$18499_overlayWidth:Math.max(R,B.minOverlayWidth);return Math.round(R/B.requiredRatio)},Ta4=function(B,R){R=B.canvas.width-Math.max(B.canvas.width-R,B.horizontalMargin)-B.JSC$18499_overlayMarginLeft;
R=R<0?B.JSC$18499_overlayWidth:Math.max(R,B.minOverlayWidth);return Math.round(R/B.requiredRatio)},aso=function(B,R){switch(B.resizeCorner){case 2:R=B.canvas.width-B.JSC$18499_overlayMarginRight-xZn(B,R);
break;case 4:R=B.canvas.width-B.JSC$18499_overlayMarginLeft-xZn(B,R);break;case 1:R=B.canvas.width-B.JSC$18499_overlayMarginRight-Lu7(B,R);break;case 3:R=B.canvas.width-B.JSC$18499_overlayMarginLeft-Lu7(B,R);break;default:throw Error("tl");}return Math.max(R,B.horizontalMargin)},xZn=function(B,R){R=B.canvas.height-Math.max(B.canvas.height-R,B.canvasMargin)-B.JSC$18499_overlayMarginTop;
return R<0?B.JSC$18499_overlayWidth:Math.max(Math.round(R*B.requiredRatio),B.minOverlayWidth)},Lu7=function(B,R){R=B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight-Math.max(R,B.canvasMargin);
return R<0?B.JSC$18499_overlayWidth:Math.max(Math.round(R*B.requiredRatio),B.minOverlayWidth)},je4=function(B){B.ctx.clearRect(0,0,B.canvas.width,B.canvas.height);
B.ctx.drawImage(B.image,0,0,B.image.width,B.image.height,B.horizontalMargin,B.canvasMargin,B.canvas.width-2*B.horizontalMargin,B.scaledImageHeight);B.ctx.fillStyle="rgba(0, 0, 0, 0.7)";B.ctx.fillRect(B.horizontalMargin,B.JSC$18499_overlayMarginTop,B.JSC$18499_overlayMarginLeft-B.horizontalMargin,B.JSC$18499_overlayHeight);B.ctx.fillRect(B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth,B.JSC$18499_overlayMarginTop,B.JSC$18499_overlayMarginRight-B.horizontalMargin,B.JSC$18499_overlayHeight);B.ctx.fillRect(B.horizontalMargin,
B.canvasMargin,B.scaledImageWidth,B.JSC$18499_overlayMarginTop-B.canvasMargin);B.ctx.fillRect(B.horizontalMargin,B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight,B.scaledImageWidth,B.JSC$18499_overlayMarginBottom-B.canvasMargin);B.drawOverlay();B.component&&_.OI(B.component,"image-updated")};
UR.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18499_overlayMarginLeft,this.JSC$18499_overlayMarginTop,this.JSC$18499_overlayWidth,this.JSC$18499_overlayHeight);v44(this)};
var v44=function(B){var R=B.JSC$18499_overlayMarginLeft-5,V=B.JSC$18499_overlayMarginTop-5,e=B.JSC$18499_overlayMarginLeft+B.JSC$18499_overlayWidth-5,X=B.JSC$18499_overlayMarginTop+B.JSC$18499_overlayHeight-5;B.ctx.fillStyle="#FFF";B.ctx.fillRect(R,V,10,10);B.ctx.strokeRect(R,V,10,10);B.ctx.fillRect(e,V,10,10);B.ctx.strokeRect(e,V,10,10);B.ctx.fillRect(R,X,10,10);B.ctx.strokeRect(R,X,10,10);B.ctx.fillRect(e,X,10,10);B.ctx.strokeRect(e,X,10,10);if(B.focusedCorner!==0&&B.styleFocusedCorner){B.ctx.lineWidth=
4;B.ctx.strokeStyle="#3EA6FF";switch(B.focusedCorner){case 1:--R;--V;break;case 2:--R;V=X-1;break;case 3:R=e-1;--V;break;case 4:R=e-1;V=X-1;break;default:return}B.ctx.strokeRect(R,V,12,12)}};
UR.prototype.crop=function(B,R){R=R===void 0?!0:R;var V=this.image.width/this.scaledImageWidth,e=document.createElement("canvas"),X=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],Y=this.JSC$18499_overlayWidth*V,t=this.JSC$18499_overlayHeight*V;e.width=Math.max(Y,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);e.height=Math.max(t,X);B&&(e.width=Math.min(e.width,e.height),e.height=Math.min(e.width,e.height));
B=e.getContext("2d");if(!B)throw Error("hl");X=(this.JSC$18499_overlayMarginLeft-this.horizontalMargin)*V;V*=this.JSC$18499_overlayMarginTop-this.canvasMargin;R||(B.fillStyle="white",B.fillRect(0,0,e.width,e.height));B.drawImage(this.image,X,V,Y,t,0,0,e.width,e.height);return e};var Kun=function(B,R,V,e,X){UR.call(this,B,R,V,e,void 0,X,8,!1)};
_.l(Kun,UR);Kun.prototype.drawOverlay=function(){var B=this.getContext(),R=this.JSC$18499_overlayWidth,V=this.JSC$18499_overlayHeight,e=this.JSC$18499_overlayMarginTop,X=this.JSC$18499_overlayMarginLeft;B.lineWidth=2;B.strokeStyle="#3EA6FF";B.beginPath();B.arc(X+R/2,e+V/2,R/2,0,2*Math.PI);B.stroke();B.strokeRect(X,e,R,V);v44(this)};
var Ise={maxFileSizeMB:15,minWidth:98,minHeight:98},E4i=["image/png","image/jpeg","image/gif"],NF=function(){var B=_.c.apply(this,arguments)||this;B.fileSelectorFocusListener=null;B.errorMessage=null;B.isLoading=!0;B.hideContainer=!0;B.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return B};
_.l(NF,_.c);_.p=NF.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(B){return B==="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||_.oF(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.p.setErrorState=function(B){this.resetErrorState();B&&(this.errorMessage=B)};
_.p.showPopup=function(){var B=this;this.hideContainer=!1;_.kD(_.dV,function(){_.OI(B.hostElement,"yt-refit")});
this.isLoading=!1};
_.p.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.p.closePopup=function(){this.resetFileSelector();_.oF(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onCancelTap=function(){this.isPlaylistThumbnail||_.oF(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.p.openFileSelector=function(){var B=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.kD(_.dV,function(){setTimeout(function(){if(!B.fileSelector.files||B.fileSelector.files.length===0)B.onCancelTap();B.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(R){R instanceof Error?_.Tn(R):_.v5(new _.H8(JSON.stringify(R)))}};
_.p.handleFileSelection=function(){var B=this,R,V,e,X,Y,t;return _.W(function(b){switch(b.nextAddress){case 1:_.en(b,2);if(!B.fileSelector.files||!B.imageEditorCanvas)return B.onCancelTap(),b.return();R=B.fileSelector.files[0];Ygn(B.imageChecker,R);_.en(b,4);return _.U(b,wke(R),6);case 6:B.mimeType=b.yieldResult;_.c8(b,5,2);break;case 4:_.WR(b,2),_.oF(B.hostElement,"yt-image-selection-error-action",[(V=B.data)==null?void 0:V.genericImageLoadErrorMessage]),B.onCancelTap();case 5:e=new FileReader;e.addEventListener("load",
function(){var J,G;return _.W(function(y){if(y.nextAddress==1){if(!e.result)return _.KE(Error("jl")),y.return();J=e.result;G=new Image;G.src=J;G.onload=function(){try{var S=B.imageChecker;if(G.width<S.requirements.minWidth||G.height<S.requirements.minHeight)throw new XgU(S.requirements.minWidth,S.requirements.minHeight);}catch(f){if(f instanceof XgU){var M;_.oF(B.hostElement,"yt-image-selection-error-action",[(M=B.data)==null?void 0:M.imageDimensionErrorMessage]);B.logImageDimensionErrorVe()}else f instanceof
Error?_.Tn(f):(S=new _.H8(JSON.stringify(f)),_.Tn(S));B.onCancelTap()}B.showPopup()};
G.onerror=function(){var S;_.oF(B.hostElement,"yt-image-selection-error-action",[(S=B.data)==null?void 0:S.genericImageLoadErrorMessage]);B.onCancelTap()};
return _.U(y,JL4(B.imageEditorCanvas,J),2)}B.imageEditor=y.yieldResult;B.updatePositionOfAllCorners();B.addEventListeners(B.imageEditor);_.b3(y)})},!1);
e.readAsDataURL(R);_.c8(b,0);break;case 2:X=_.WR(b),X instanceof jU?_.oF(B.hostElement,"yt-image-selection-error-action",[(Y=B.data)==null?void 0:Y.imageSizeErrorMessage]):(X instanceof Error?_.Tn(X):_.v5(new _.H8(JSON.stringify(X))),_.oF(B.hostElement,"yt-image-selection-error-action",[(t=B.data)==null?void 0:t.genericImageLoadErrorMessage])),B.onCancelTap(),_.b3(b)}})};
_.p.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var B=_.tJ(_.WK(),{veType:232707,visualElement:_.kB(232707)});B&&(B={visualElement:B},_.hJ().reportShown(B))}};
_.p.handleImageSelectionErrorAction=function(B){this.isPlaylistThumbnail&&_.VT5(this.hostElement,B)};
_.p.convertToImageFormatBundle=function(B){var R=this,V,e,X;return _.W(function(Y){switch(Y.nextAddress){case 1:return V=B.toDataURL(R.outputMimeType,1),_.U(Y,T67(V),2);case 2:e=Y.yieldResult;_.en(Y,3);Ygn(R.imageChecker,e);_.c8(Y,4);break;case 3:X=_.WR(Y);if(!(X instanceof jU))throw X;_.KE(new _.H8("Output size is bigger than input size for image",R.mimeType,R.outputMimeType,e.size));V=B.toDataURL("image/jpeg",.95);return _.U(Y,T67(V),6);case 6:e=Y.yieldResult;case 4:return Y.return({dataUrl:V,imageFile:e})}})};
_.p.handleUploadImageToScottyCommand=function(B){var R=this,V,e,X,Y,t,b,J,G,y,S;return _.W(function(M){switch(M.nextAddress){case 1:if(!R.imageEditor||!_.D(B,Cv4))return M.return();V=_.D(B,Cv4).scottyUploadUrl;if(!V){var f=new _.H8("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Tn(f);return M.return()}_.en(M,2);R.setLoadingState();e=R.imageEditor.crop(!1,!1);return _.U(M,R.convertToImageFormatBundle(e),4);case 4:return X=M.yieldResult,_.U(M,azN(X.imageFile,V),5);case 5:Y=
M.yieldResult;((t=R.data)==null?0:t.onUploadEndpoint)?(b=R.buildUploadServiceEndpoint(Y),R.ytComponentBehavior.resolveCommand(b),J=_.D(b,_.Lt),((G=J)==null?0:G.params)?R.closePopup():R.resetFileSelector()):(_.oF(R.hostElement,"yt-image-updated-action",[X.dataUrl,Y]),R.closePopup());_.c8(M,0);break;case 2:y=_.WR(M),R.setErrorState((S=R.data)==null?void 0:S.uploadErrorMessage),y instanceof Error?_.Tn(y):(f=new _.H8(JSON.stringify(y)),_.Tn(f)),_.b3(M)}})};
_.p.buildUploadServiceEndpoint=function(B){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",B),this.data.onUploadEndpoint):null};
_.p.dataChanged=function(){var B=this,R;return _.W(function(V){if(V.nextAddress==1){if(!B.data||!B.canvasElement)return V.return();B.data.imageRatio&&B.data.minImageCropWidth||_.v5(new _.H8("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));R=function(e,X){return B.data.imageType==="IMAGE_TYPE_AVATAR"?new Kun(e,X,B.data.imageRatio,[B.data.minImageCropWidth,B.data.minImageCropWidth/B.data.imageRatio],B.hostElement):new UR(e,X,B.data.imageRatio,[B.data.minImageCropWidth,
B.data.minImageCropWidth/B.data.imageRatio],void 0,B.hostElement,8,!1)};
B.imageEditorCanvas=new hD7(B.canvasElement,R);return B.data.url?_.U(V,JL4(B.imageEditorCanvas,B.data.url),3):(B.hideContainer=!0,B.openFileSelector(),V.jumpTo(0))}B.imageEditor=V.yieldResult;B.showPopup();B.addEventListeners(B.imageEditor);_.b3(V)})};
_.p.addEventListeners=function(B){this.removeEventListeners();var R=function(X){tW4(B,X)};
this.JSC$18507_mouseDownEvent=R;var V=function(X){Wuo(B,X)};
this.JSC$18507_mouseMoveEvent=V;var e=function(){bbo(B)};
this.JSC$18507_mouseUpEvent=e;this.topLeftCorner.addEventListener("mousedown",R);this.topLeftCorner.addEventListener("mousemove",V);this.topLeftCorner.addEventListener("mouseup",e);this.topRightCorner.addEventListener("mousedown",R);this.topRightCorner.addEventListener("mousemove",V);this.topRightCorner.addEventListener("mouseup",e);this.bottomLeftCorner.addEventListener("mousedown",R);this.bottomLeftCorner.addEventListener("mousemove",V);this.bottomLeftCorner.addEventListener("mouseup",e);this.bottomRightCorner.addEventListener("mousedown",
R);this.bottomRightCorner.addEventListener("mousemove",V);this.bottomRightCorner.addEventListener("mouseup",e)};
_.p.removeEventListeners=function(){this.JSC$18507_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18507_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18507_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18507_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18507_mouseDownEvent));this.JSC$18507_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18507_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18507_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18507_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18507_mouseMoveEvent));this.JSC$18507_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18507_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18507_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18507_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18507_mouseUpEvent))};
_.p.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var B=document.activeElement;B&&B.shadowRoot&&B.shadowRoot.activeElement;)B=B.shadowRoot.activeElement;switch(B){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(B,R){var V=B.y-R.offsetHeight/2+4;R.style.left=B.x-R.offsetWidth/2+16+"px";R.style.top=V+"px"};
_.p.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var B=_.h([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),R=B.next();!R.done;R=B.next()){R=R.value;var V=G5U(this.imageEditor,R.corner);this.updatePositionOfCorner(V,R.div)}};
_.p.onLeft=function(B){this.imageEditor&&this.setFocusInImageEditor()&&(Sgm(this.imageEditor,0),this.updatePositionOfAllCorners(),B.preventDefault())};
_.p.onRight=function(B){this.imageEditor&&this.setFocusInImageEditor()&&(Sgm(this.imageEditor,1),this.updatePositionOfAllCorners(),B.preventDefault())};
_.p.onUp=function(B){this.imageEditor&&this.setFocusInImageEditor()&&(Sgm(this.imageEditor,2),this.updatePositionOfAllCorners(),B.preventDefault())};
_.p.onDown=function(B){this.imageEditor&&this.setFocusInImageEditor()&&(Sgm(this.imageEditor,3),this.updatePositionOfAllCorners(),B.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};
_.mh.Object.defineProperties(NF.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&E4i.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var B,R,V;((R=this.data)==null?0:R.imageRatio)&&((V=this.data)==null?0:V.minImageCropWidth)?B={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:B=Ise;return new pgN(B)}}});
NF.prototype.updatePositionOfAllCorners=NF.prototype.updatePositionOfAllCorners;NF.prototype.dataChanged=NF.prototype.dataChanged;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],NF.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],NF.prototype,"ytComponentBehavior",void 0);_.r([_.v(_.kI),_.Z("design:type",Object)],NF.prototype,"ironA11yKeysBehavior",void 0);
_.r([_.Yp("#canvas"),_.Z("design:type",HTMLCanvasElement)],NF.prototype,"canvasElement",void 0);_.r([_.Yp("#file-selector"),_.Z("design:type",HTMLInputElement)],NF.prototype,"fileSelector",void 0);_.r([_.Yp("#top-left-corner"),_.Z("design:type",HTMLDivElement)],NF.prototype,"topLeftCorner",void 0);_.r([_.Yp("#top-right-corner"),_.Z("design:type",HTMLDivElement)],NF.prototype,"topRightCorner",void 0);
_.r([_.Yp("#bottom-left-corner"),_.Z("design:type",HTMLDivElement)],NF.prototype,"bottomLeftCorner",void 0);_.r([_.Yp("#bottom-right-corner"),_.Z("design:type",HTMLDivElement)],NF.prototype,"bottomRightCorner",void 0);_.r([_.E(),_.Z("design:type",Object)],NF.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],NF.prototype,"errorMessage",void 0);_.r([_.E(),_.Z("design:type",Object)],NF.prototype,"isLoading",void 0);_.r([_.E(),_.Z("design:type",Object)],NF.prototype,"hideContainer",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Z("design:type",Boolean)],NF.prototype,"isPlaylistThumbnail",void 0);_.r([_.bp("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],NF.prototype,"dataChanged",null);_.r([_.R_("image-updated"),_.R_("yt-refit"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NF.prototype,"updatePositionOfAllCorners",null);
NF=_.r([_.fJ({is:"yt-image-editor-renderer",disableElementRegistration:!0})],NF);
_.F(NF,"yt-image-editor-renderer",function(){if(eDi===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;VW4===void 0&&(VW4=document.createElement("template"));var e=VW4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);eDi=B}B=eDi;return B},{mode:2});var Qej;var qg4;var GC=function(){return _.c.apply(this,arguments)||this};
_.l(GC,_.c);GC.prototype.updateMinutesFromBinding=function(B){this.handleMinutesChanged&&this.handleMinutesChanged(B)};
GC.prototype.updateSecondsFromBinding=function(B){this.handleSecondsChanged&&this.handleSecondsChanged(B)};
GC.prototype.updateDescriptionFromBinding=function(B){this.handleDescriptionChanged&&this.handleDescriptionChanged(B)};
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],GC.prototype,"ytComponentBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],GC.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",String)],GC.prototype,"minutes",void 0);_.r([_.E(),_.Z("design:type",String)],GC.prototype,"seconds",void 0);_.r([_.E(),_.Z("design:type",String)],GC.prototype,"description",void 0);_.r([_.E(),_.Z("design:type",Function)],GC.prototype,"handleMinutesChanged",void 0);
_.r([_.E(),_.Z("design:type",Function)],GC.prototype,"handleSecondsChanged",void 0);_.r([_.E(),_.Z("design:type",Function)],GC.prototype,"handleDescriptionChanged",void 0);_.r([_.E(),_.Z("design:type",Number)],GC.prototype,"characterLimit",void 0);_.r([_.E(),_.Z("design:type",Number)],GC.prototype,"textNumRows",void 0);GC=_.r([_.fJ({is:"yt-report-details-form-content",disableElementRegistration:!0})],GC);
_.F(GC,"yt-report-details-form-content",function(){if(qg4===void 0){var B=document.createElement("template");_.a(B,'\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>');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Qej===void 0&&(Qej=document.createElement("template"));var e=Qej;V.call(R,e.content.cloneNode(!0),B.content.firstChild);qg4=B}B=qg4;return B},{mode:2});var cLj;var ALN;var yQ=function(){var B=_.c.apply(this,arguments)||this;B.updateMinutesFromBinding=function(R){B.minutes=R.detail.value};
B.updateSecondsFromBinding=function(R){B.seconds=R.detail.value};
B.updateDescriptionFromBinding=function(R){B.description=R.detail.value};
return B};
_.l(yQ,_.c);_.p=yQ.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(){_.w(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.p.onSubmitYtAction=function(B){var R=B.detail;R.actionName==="yt-service-request"&&(R=R.args[1],R.flagEndpoint&&(B.stopPropagation(),this.refireAction(R)))};
_.p.refireAction=function(B){var R={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(R.vss_id=this.vssId);_.VD(this.hostElement,[B,R]);this.submitDisabled=!0};
_.p.dataChanged=function(){var B=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var R=_.Pr();R&&R.getPlayerPromise().then(function(V){var e=V.getOption("cc","track")||V.getOption("captions","track");e&&(B.vssId=e.vss_id);V=V.getCurrentTime();B.minutes=Math.floor(V/60).toString();B.seconds=(Math.floor(V)%60).toString()})};
_.p.updateSubmitButtonState=function(){var B;((B=this.data)==null?0:B.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(){_.oF(this.hostElement,"yt-close-popup-action")};
_.p.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.mh.Object.defineProperties(yQ.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var B;return((B=this.data)==null?void 0:B.textNumRows)||4}}});
yQ.prototype.onYtServiceRequestError=yQ.prototype.onYtServiceRequestError;yQ.prototype.onYtServiceRequestCompleted=yQ.prototype.onYtServiceRequestCompleted;yQ.prototype.updateSubmitButtonState=yQ.prototype.updateSubmitButtonState;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);
_.r([_.E({observer:"dataChanged"}),_.Z("design:type",Object)],yQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Boolean)],yQ.prototype,"submitDisabled",void 0);_.r([_.E(),_.Z("design:type",String)],yQ.prototype,"minutes",void 0);_.r([_.E(),_.Z("design:type",String)],yQ.prototype,"seconds",void 0);_.r([_.E(),_.Z("design:type",String)],yQ.prototype,"description",void 0);_.r([_.E(),_.Z("design:type",String)],yQ.prototype,"vssId",void 0);
_.r([_.E({value:_.vE("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Z("design:type",Boolean)],yQ.prototype,"isMusic",void 0);_.r([_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],yQ.prototype,"characterLimit",null);_.r([_.K("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],yQ.prototype,"textNumRows",null);
_.r([_.bp("minutes","seconds","description","submitDisabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yQ.prototype,"updateSubmitButtonState",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yQ.prototype,"onYtServiceRequestCompleted",null);
_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yQ.prototype,"onYtServiceRequestError",null);yQ=_.r([_.fJ({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],yQ);
_.F(yQ,"yt-report-details-form-renderer",function(){if(ALN===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;cLj===void 0&&(cLj=document.createElement("template"));var e=cLj;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ALN=B}B=ALN;return B});var ib2;var se7;var Fuz;var rL4;var SU=function(){return _.c.apply(this,arguments)||this};
_.l(SU,_.c);
SU.prototype.onCheckedChanged_=function(){if(this.data){var B=_.w(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.oF(this.hostElement,"yt-additional-detail-checkbox-update",[B]):this.data.identifier==="yt-hide-user-checkbox"?_.oF(this.hostElement,"yt-hide-user-checkbox-update",[B]):B&&this.data.enableCommand?_.oF(this.hostElement,"yt-modify-report-form-command",[_.D(this.data.enableCommand,Rrr)]):!B&&this.data.disableCommand&&_.oF(this.hostElement,
"yt-modify-report-form-command",[_.D(this.data.enableCommand,Rrr)])}};
SU.prototype.onLabelTap_=function(B){B.target.tagName!="A"&&(_.w(this.hostElement).querySelector("#checkbox").checked=!_.w(this.hostElement).querySelector("#checkbox").checked)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],SU.prototype,"data",void 0);SU=_.r([_.fJ({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],SU);
_.F(SU,"yt-boolean-form-field-v2-renderer",function(){if(rL4===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Fuz===void 0&&(Fuz=document.createElement("template"));var e=Fuz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);rL4=B}B=rL4;return B});var Hp=function(){var B=_.c.apply(this,arguments)||this;B.canShowAdditionalDetailCheckbox=!1;B.canShowCheckbox=!1;B.keepDropdownFocusedAfterSelection=!0;return B};
_.l(Hp,_.c);Hp.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}}}}};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Hp.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],Hp.prototype,"canShowAdditionalDetailCheckbox",void 0);_.r([_.E(),_.Z("design:type",Object)],Hp.prototype,"canShowCheckbox",void 0);_.r([_.E(),_.Z("design:type",Object)],Hp.prototype,"keepDropdownFocusedAfterSelection",void 0);
Hp=_.r([_.fJ({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Hp);
_.F(Hp,"yt-report-form-modal-content",function(){if(se7===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;ib2===void 0&&(ib2=document.createElement("template"));var e=ib2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);se7=B}B=se7;return B},{mode:2});var g4n;var ZbU;var MF=function(){var B=_.c.apply(this,arguments)||this;B.submitting=!1;B.submitButtonDisabled=!0;B.command=null;B.canShowCheckbox=!1;B.canShowAdditionalDetailCheckbox=!1;B.canShowNextButton=!1;B.additionalDetailCheckboxChecked=!1;B.refitJob=0;B.keepDropdownFocusedAfterSelection=!0;B.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 B};
_.l(MF,_.c);_.p=MF.prototype;_.p.created=function(){this.refitJob=0};
_.p.attached=function(){this.JSC$18530_scroller&&(this.JSC$18530_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18530_scroller.attached&&typeof this.JSC$18530_scroller.attached==="function"&&this.JSC$18530_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(B){B&&(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,B.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),B.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.p.onYtPopupOpened=function(){var B=_.Pr();B&&B.getPlayerPromise().then(function(R){R.pauseVideo()})};
_.p.onYtNavigate=function(B){_.D(B.detail.endpoint,_.$6a)&&(B.stopPropagation(),this.hideReportForm=!0)};
_.p.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.p.onYtServiceRequestCompleted=function(B,R){var V=R.actions;if(V){if(V.length===1&&_.D(V[0],_.p0)){var e;V=((e=_.D(V[0],_.p0))==null?void 0:e.commands)||[]}e=0;for(var X=V.length;e<X;e++)_.D(V[e],_.ai)&&(B.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(V[e]))}if(R.data&&(B=this.get("feedbackResponses",R.data)))for(R=0;R<B.length;R++)if(B[R].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.p.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.p._onDescendantIronResize=function(B){B.stopPropagation();return!1};
_.p.handleReportFormEndpointUpdateAction=function(B){if(B.submitEndpoint){var R=this.command=B.submitEndpoint;R=_.D(R,_.Kt_);if(R==null?0:R.additionalDetailCheckboxChecked)R.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else B.submitNavigationEndpoint?(this.command=B.submitNavigationEndpoint,this.toggleSubmitButton(!1)):B.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:B.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;B.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",B));this.refit()};
_.p.handleConfirmDialogCloseAction=function(B){B.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.p.submitButtonDisabledChanged=function(){var B=this.hostElement.parentElement;B&&B.invalidateTabbables&&B.invalidateTabbables()};
_.p.handleModifyReportFormCommand=function(B){B=this.get("action",B);B==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:B==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:B==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:B==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:B==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:B==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.p.updateDialogStyling=function(){var B,R,V,e,X,Y=((X=(B=this.data)==null?void 0:(R=B.optionsSupportedRenderers)==null?void 0:(V=R.optionsRenderer)==null?void 0:(e=V.items)==null?void 0:e.length)!=null?X:0)<=2?0:240;_.o_(this.hostElement,{"--yt-report-form-modal-renderer-min-width":Y+"px"})};
_.p.toggleSubmitButton=function(B){this.submitButtonDisabled=!B;this.submitButtonDisabled=B};
_.p.computeSubmitButtonData=function(B,R){var V={};_.D(R,_.$6a)?V.navigationEndpoint=R:V.command=R||void 0;B&&B.buttonRenderer&&_.M_.extend(V,B.buttonRenderer);return V};
_.p.computeNextButtonData=function(B,R){var V={};if(!B||!B.buttonRenderer)return V;_.M_.extend(V,B.buttonRenderer);if(!R)return V;if(_.D(R,_.$6a))V.navigationEndpoint=N1i(R);else if(V.command=N1i(R),B=_.D(V.command,_.Kt_))B.legalCheckboxChecked=!0;return V};
_.p.computeShowNextButton=function(B,R,V){return!!B&&R&&V};
_.p.refit=function(){var B=this;this.refitJob||(this.refitJob=_.dV.addLowPriorityJob(function(){_.OI(B.hostElement,"yt-refit");B.refitJob=0}))};
_.p.handleAdditionalDetailCheckboxUpdateAction=function(B){this.additionalDetailCheckboxChecked=B;_.D(this.command,_.Kt_).additionalDetailCheckboxChecked=B};
_.mh.Object.defineProperties(MF,{template:{configurable:!0,enumerable:!0,get:function(){if(ZbU===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;g4n===void 0&&(g4n=document.createElement("template"));var e=g4n;V.call(R,e.content.cloneNode(!0),B.content.firstChild);ZbU=B}B=ZbU;return B}}});
MF.prototype.onYtServiceRequestError=MF.prototype.onYtServiceRequestError;MF.prototype.onYtServiceRequestCompleted=MF.prototype.onYtServiceRequestCompleted;MF.prototype.onYtServiceRequestSent=MF.prototype.onYtServiceRequestSent;MF.prototype.onYtNavigate=MF.prototype.onYtNavigate;MF.prototype.onYtPopupOpened=MF.prototype.onYtPopupOpened;_.r([_.v(_.Ro.YtOpenPopupBehavior),_.Z("design:type",Object)],MF.prototype,"openPopupBehavior",void 0);
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],MF.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],MF.prototype,"eventForwardingBehavior",void 0);_.r([_.v(_.LC),_.Z("design:type",Object)],MF.prototype,"ironResizableBehavior",void 0);_.r([_.E({observer:"dataChanged"}),_.Z("design:type",Object)],MF.prototype,"data",void 0);
_.r([_.E(),_.Z("design:type",Object)],MF.prototype,"submitting",void 0);_.r([_.E({observer:"submitButtonDisabledChanged"}),_.Z("design:type",Object)],MF.prototype,"submitButtonDisabled",void 0);_.r([_.E(),_.Z("design:type",Object)],MF.prototype,"command",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],MF.prototype,"hideReportForm",void 0);_.r([_.E(),_.Z("design:type",Object)],MF.prototype,"canShowCheckbox",void 0);
_.r([_.E(),_.Z("design:type",Object)],MF.prototype,"canShowAdditionalDetailCheckbox",void 0);_.r([_.E(),_.Z("design:type",Object)],MF.prototype,"canShowNextButton",void 0);_.r([_.E(),_.Z("design:type",Object)],MF.prototype,"additionalDetailCheckboxChecked",void 0);_.r([_.E(),_.Z("design:type",Object)],MF.prototype,"refitJob",void 0);_.r([_.E(),_.Z("design:type",Object)],MF.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.r([_.Yp("#scroller"),_.Z("design:type",Object)],MF.prototype,"JSC$18530_scroller",void 0);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MF.prototype,"onYtPopupOpened",null);_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],MF.prototype,"onYtNavigate",null);
_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],MF.prototype,"onYtServiceRequestSent",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],MF.prototype,"onYtServiceRequestCompleted",null);
_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],MF.prototype,"onYtServiceRequestError",null);MF=_.r([_.fJ({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],MF);var mZi;var $Zz;var kh=function(){return _.c.apply(this,arguments)||this};
_.l(kh,_.c);_.p=kh.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(){if(_.k("web_ephemeral_actions_focus")){var B,R;(R=_.Oz().resolve(_.uj(_.tc)))==null||R.enqueue({label:_.FF((B=this.data)==null?void 0:B.messageTitle),elementToFocus:this.hostElement})}};
_.p.onThumbnailLoaded=function(){_.OI(this.hostElement,"yt-refit")};
_.p.onDismissTap=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.p.computeAlternateIcon=function(B){return B?B==="BACKSTAGE_ARTWORK"?"backstage:artwork":B:null};
_.p.computeFontFamily=function(B){return B==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.p.computeBackgroundStyle=function(B,R){if(B=this.computeBackgroundImage(B,R))if(B=_.Cc(B.thumbnails))return'background-image: url("'+B+'");'};
_.p.computeHasFullHeightImage=function(B){return!(!(B&&B.thumbnails&&B.thumbnails.length>0)||this.modern)};
_.p.isModernStyle=function(B){return B.style==="STYLE_MODERN"};
_.p.computeIcon=function(B,R){if(B&&B.icon)return R?B.iconDark:B.icon};
_.p.computeBackgroundImage=function(B,R){if(B&&B.backgroundImage)return R?B.backgroundImageDark:B.backgroundImage};
_.p.computeLogo=function(B,R){if(B&&B.logo)return R?B.logoDark:B.logo};
_.p.computeShouldShowModernIcon=function(B,R){return B&&!!R};
_.p.getLogoContainerClassName=function(B){return this.logoWithPadding(B)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.p.getLogoImageId=function(B){return this.logoWithPadding(B)?"mealbar-logo-with-padding":"mealbar-logo"};
_.p.logoWithPadding=function(B){var R,V,e;return(B=(R=this.computeLogo(B,this.isDarkTheme))==null?void 0:(V=R.thumbnails)==null?void 0:(e=V[0])==null?void 0:e.height)&&B%31===0?!0:!1};
kh.prototype.onThumbnailLoaded=kh.prototype.onThumbnailLoaded;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.r([_.E({}),_.Z("design:type",Object)],kh.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Z("design:type",Boolean)],kh.prototype,"modern",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],kh.prototype,"isDarkTheme",void 0);
_.r([_.E({computed:"computeIcon(data, isDarkTheme)"}),_.Z("design:type",Object)],kh.prototype,"icon",void 0);_.r([_.E({computed:"computeLogo(data, isDarkTheme)"}),_.Z("design:type",Object)],kh.prototype,"logo",void 0);_.r([_.E({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Z("design:type",Object)],kh.prototype,"backgroundStyle",void 0);_.r([_.E({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Z("design:type",Object)],kh.prototype,"alternateIcon",void 0);
_.r([_.E({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Z("design:type",Boolean)],kh.prototype,"hasFullHeightImage",void 0);_.r([_.E({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Z("design:type",Boolean)],kh.prototype,"useYoutubeSans",void 0);_.r([_.E({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Z("design:type",Boolean)],kh.prototype,"shouldShowModernIcon",void 0);
_.r([_.R_("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kh.prototype,"onThumbnailLoaded",null);kh=_.r([_.fJ({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],kh);
_.F(kh,"yt-mealbar-promo-renderer",function(){if($Zz===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;mZi===void 0&&(mZi=document.createElement("template"));var e=mZi;V.call(R,e.content.cloneNode(!0),B.content.firstChild);$Zz=B}B=$Zz;return B},{mode:2});var Cdn;var Pdo;var De=function(){return _.c.apply(this,arguments)||this};
_.l(De,_.c);_.p=De.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(B){return!(!B.dismissButton&&!B.acceptButton)};
_.p.computeStyle_=function(B){return B||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.p.observeImpressionEndpoints_=function(){var B=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(R){R.clickTrackingParams&&delete R.clickTrackingParams;_.VD(B.hostElement,[R])})};
_.p.onTap_=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
De.prototype.observeImpressionEndpoints_=De.prototype.observeImpressionEndpoints_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],De.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],De.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],De.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],De.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],De.prototype,"positionType",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Z("design:type",Boolean)],De.prototype,"hasButtons_",void 0);_.r([_.E({value:function(){return this.onTap_.bind(this)}}),
_.Z("design:type",Function)],De.prototype,"boundOnTap_",void 0);_.r([_.E({value:{style:"mono-inverse"}}),_.Z("design:type",Object)],De.prototype,"buttonOverride",void 0);_.r([_.XX("data.promoConfig.impressionEndpoints"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],De.prototype,"observeImpressionEndpoints_",null);De=_.r([_.fJ({is:"yt-tooltip-renderer",disableElementRegistration:!0})],De);
_.F(De,"yt-tooltip-renderer",function(){if(Pdo===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Cdn===void 0&&(Cdn=document.createElement("template"));var e=Cdn;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Pdo=B}B=Pdo;return B},{mode:2});var n4e;var uAe;var Ob7={},o7U=(Ob7.WEB_REMIX="music.youtube.com",Ob7),f5=function(){var B=_.c.apply(this,arguments)||this;B.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return B};
_.l(f5,_.c);_.p=f5.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_=o7U[_.vE("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.p.ready=function(){_.w(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.p.computeEmbedCode_=function(B,R,V,e,X){if(!B)return"";var Y=B.videoId,t=B.fullListId,b=[];B.attributionId&&b.push("si="+B.attributionId);e||b.push("controls=0");V&&Number(R)>0&&b.push("start="+R);t&&(Y="videoseries",b.push("list="+t));V="https://"+(X?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+Y;B.clipId&&(b.push("clip="+B.clipId),b.push("clipt="+B.clipTiming));R=b.length>0?V+"?"+b.join("&amp;"):V;B.encryptedEmbedConfig&&b.push("embed_config="+JSON.stringify({enc:B.encryptedEmbedConfig}));
b=b.length>0?V+"?"+b.join("&amp;"):V;_.k("web_sharing_embed_preview_killswitch")?_.w(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(b,B.previewWidth||854,B.previewHeight||480):(_.wE(this.videoPreviewContainer),_.w(this.videoPreviewContainer).appendChild(this.buildIframeElement(b)));return this.getEmbedCode_(R,B.width||560,B.height||315)};
_.p.buildIframeElement=function(B){var R=document.createElement("iframe"),V,e;R.width=""+((e=(V=this.data)==null?void 0:V.previewWidth)!=null?e:854);var X,Y;R.height=""+((Y=(X=this.data)==null?void 0:X.previewHeight)!=null?Y:480);_.Hfo(R,2,B);R.title="YouTube video player";R.frameBorder="0";R.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";R.referrerPolicy="strict-origin-when-cross-origin";R.allowFullscreen=!0;return R};
_.p.computeIsSquareAspectRatio_=function(B){return B.previewHeight&&B.previewWidth?B.previewHeight==B.previewWidth:!1};
_.p.computeShowEmbedOptions_=function(B){return!!B.enablePrivacyModeOptionLabel||!!B.showPlayerControlsOptionLabel};
_.p.getEmbedCode_=function(B,R,V){return'<iframe width="'+R+'" height="'+V+'" src="'+B+'" 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(){_.w(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.p.handleSetTimestamp_=function(B){this.startAtTimeStamp_=(this.startAtChecked_=B.isSet)?B.timestamp:0};
_.p.closePanel_=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.p.onEmbedCode_=function(){_.w(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.p.onYtPopupClosed_=function(){_.wE(_.w(this.hostElement).querySelector("#video-preview"))};
_.p.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.D(this.data.actionButtons[0],_.Ii)&&this.ytRendererBehavior.logExplicitClick(_.D(this.data.actionButtons[0],_.Ii))};
f5.prototype.onYtPopupClosed_=f5.prototype.onYtPopupClosed_;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],f5.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],f5.prototype,"data",void 0);
_.r([_.E({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Z("design:type",String)],f5.prototype,"embedCode_",void 0);_.r([_.E({value:!0}),_.Z("design:type",Boolean)],f5.prototype,"isPlayerControlsOptionChecked_",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],f5.prototype,"isPrivacyModeOptionChecked_",void 0);_.r([_.E({value:!1,notify:!0}),_.Z("design:type",Boolean)],f5.prototype,"startAtChecked_",void 0);
_.r([_.E({value:0}),_.Z("design:type",Number)],f5.prototype,"startAtTimeStamp_",void 0);_.r([_.E({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],f5.prototype,"isSquareAspectRatio_",void 0);_.r([_.Yp("#video-preview"),_.Z("design:type",HTMLElement)],f5.prototype,"videoPreviewContainer",void 0);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],f5.prototype,"onYtPopupClosed_",null);
f5=_.r([_.fJ({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],f5);
_.F(f5,"yt-sharing-embed-renderer",function(){if(uAe===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;n4e===void 0&&(n4e=document.createElement("template"));var e=n4e;V.call(R,e.content.cloneNode(!0),B.content.firstChild);uAe=B}B=uAe;return B},{mode:2});var B_N={};
B_N.YtUnlimitedFamilyInterstitialBehavior=[_.Ro.YtOpenPopupBehavior,_.$Z.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(B){B=_.jNv(_.ii(B),"yt-button-renderer");return B?B.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(B){this.dialogHistory_.push(B)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var B=this.popFromHistory();if(B){var R={openPopupAction:{popupType:"DIALOG",popup:{}}};R.openPopupAction.popup[B.renderer]=B.data;this.showingPreviousDialog_=!0;this.openPopup(R)}},
handleOpenPopupAction_:function(B){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var R=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(e){return!!B.openPopupAction.popup[e]}),V=this.getElementName_();
R&&this.data&&(this.pushToHistory({renderer:V,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(B){if(B=_.D(B,TfN))this.loading=!0,_.oF(this.hostElement,"yt-open-create-family-dialog",[B,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var B=this.hostElement.nodeName.split("-").slice(1).map(function(R){return""+R[0].toUpperCase()+R.slice(1).toLowerCase()}).join("");
return B[0].toLowerCase()+B.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var Rg2;var V$n;var lV=function(){return _.c.apply(this,arguments)||this};
_.l(lV,_.c);_.p=lV.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");_.oF(this.hostElement,"yt-register-create-family-dialog");_.w(this.hostElement).querySelector("#thumbnail").onShow()};
_.p.fireOnCloseCommand_=function(){var B;((B=this.data)==null?0:B.onCloseCommand)&&_.eO(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.p.onYtServiceRequestSent_=function(B,R){R&&R.endpoint&&_.D(R.endpoint,_.hE)||(this.loading=!0)};
_.p.onYtServiceRequestCompleted_=function(){var B=this.hostElement.parentElement;B.close&&B.close();this.loading=!1};
_.p.openPopupHandler_=function(B){if(B.detail==this){var R;((R=this.data)==null?0:R.onOpenCommands)&&_.eO(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.p.closePopupHandler_=function(B,R){this.fireOnCloseCommand_();if(R&&R.canceled===!0||R&&R.canceled===!1&&R.confirmed===!1){var V;((V=this.data)==null?0:V.onDismissCommands)&&_.eO(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.p.dataChanged_=function(){this.loading=!1};
lV.prototype.dataChanged_=lV.prototype.dataChanged_;lV.prototype.closePopupHandler_=lV.prototype.closePopupHandler_;lV.prototype.openPopupHandler_=lV.prototype.openPopupHandler_;lV.prototype.onYtServiceRequestCompleted_=lV.prototype.onYtServiceRequestCompleted_;lV.prototype.onYtServiceRequestSent_=lV.prototype.onYtServiceRequestSent_;_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],lV.prototype,"ytEventForwardingBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(B_N.YtUnlimitedFamilyInterstitialBehavior),_.Z("design:type",Object)],lV.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],lV.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],lV.prototype,"loading",void 0);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],lV.prototype,"onYtServiceRequestSent_",null);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],lV.prototype,"onYtServiceRequestCompleted_",null);
_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],lV.prototype,"openPopupHandler_",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],lV.prototype,"closePopupHandler_",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lV.prototype,"dataChanged_",null);
lV=_.r([_.fJ({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],lV);
_.F(lV,"yt-unlimited-family-message-interstitial-renderer",function(){if(V$n===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Rg2===void 0&&(Rg2=document.createElement("template"));var e=Rg2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);V$n=B}B=V$n;return B},{mode:2});var eg7;var Xh6;var zC=function(){return _.c.apply(this,arguments)||this};
_.l(zC,_.c);zC.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"}}}};
zC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.w(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(B){B.onShow()});
_.w(this.hostElement).querySelector("#main-thumbnail").onShow()};
zC.prototype.onButtonTap_=function(B){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(B)};
zC.prototype.computeMainThumbnailWidth_=function(B){return B&&B.length!==0?72:96};
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],zC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.r([_.v(B_N.YtUnlimitedFamilyInterstitialBehavior),_.Z("design:type",Object)],zC.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],zC.prototype,"data",void 0);
_.r([_.E({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Z("design:type",Number)],zC.prototype,"mainThumbnailWidth_",void 0);_.r([_.E({value:function(){return this.onButtonTap_.bind(this)}}),
_.Z("design:type",Function)],zC.prototype,"boundButtonTap_",void 0);zC=_.r([_.fJ({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],zC);
_.F(zC,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Xh6===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;eg7===void 0&&(eg7=document.createElement("template"));var e=eg7;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Xh6=B}B=Xh6;return B},{mode:2});var phe;var YmN;var al=function(){var B=_.c.apply(this,arguments)||this;B.sliderAriaValueText_=null;B.selectedIndex_=0;B.messages={PAUSE_SLIDER:_.Wz("PAUSE_SLIDER",void 0,"Pause Duration")};return B};
_.l(al,_.c);_.p=al.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(B){B.detail==this&&_.k("enable_premium_voluntary_pause")&&(_.oF(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(B){this.data=B;this.resetSlider_()};
_.p.dataChanged_=function(){this.data&&this.resetSlider_()};
_.p.onSubmitTap_=function(){if(this.data.confirmCommand){var B=this.data.confirmCommand;_.D(B,_.gJS)&&_.VD(this.hostElement,[B,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.p.onExitButtonTap_=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.p.closePopupHandler_=function(B,R){(R&&R.canceled===!0||R.canceled===!1&&R.confirmed===!1)&&this.handleOnDismissCommands_()};
_.p.onSliderChange_=function(){this.selectedIndex_=_.w(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 B=this.data.defaultEndOptionIndex||0,R=_.w(this.hostElement).querySelector("#id-pause-slider");if(R.immediateValue<B)for(;R.immediateValue!=B;)R.increment();else if(B<R.immediateValue)for(;R.immediateValue!=B;)R.decrement();this.selectedIndex_=B;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.p.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.eO(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.p.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.eO(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};
al.prototype.onYtServiceRequestCompleted=al.prototype.onYtServiceRequestCompleted;al.prototype.onYtServiceRequestSent=al.prototype.onYtServiceRequestSent;al.prototype.closePopupHandler_=al.prototype.closePopupHandler_;al.prototype.dataChanged_=al.prototype.dataChanged_;al.prototype.onPopupOpened_=al.prototype.onPopupOpened_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],al.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],al.prototype,"loading",void 0);_.r([_.E(),_.Z("design:type",Number)],al.prototype,"selectIndexMax_",void 0);_.r([_.E(),_.Z("design:type",Object)],al.prototype,"selectedData_",void 0);
_.r([_.E(),_.Z("design:type",Object)],al.prototype,"sliderAriaValueText_",void 0);_.r([_.E({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Z("design:type",Function)],al.prototype,"onButtonTap_",void 0);_.r([_.E({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Z("design:type",Function)],al.prototype,"onSecondaryTap_",void 0);_.r([_.E(),_.Z("design:type",Object)],al.prototype,"messages",void 0);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],al.prototype,"onPopupOpened_",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],al.prototype,"dataChanged_",null);
_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],al.prototype,"closePopupHandler_",null);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],al.prototype,"onYtServiceRequestSent",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],al.prototype,"onYtServiceRequestCompleted",null);al=_.r([_.fJ({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],al);
_.F(al,"yt-unplugged-pause-membership-dialog-renderer",function(){if(YmN===void 0){var B=document.createElement("template");_.a(B,'\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>');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;phe===void 0&&(phe=document.createElement("template"));var e=phe;V.call(R,e.content.cloneNode(!0),B.content.firstChild);YmN=B}B=YmN;return B},{mode:2});var hg6;var t$i;var dW=function(){return _.c.apply(this,arguments)||this};
_.l(dW,_.c);dW.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.d1("vcBalanceRenderer")}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],dW.prototype,"data",void 0);dW=_.r([_.fJ({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],dW);
_.F(dW,"yt-vc-offer-layout-header-renderer",function(){if(t$i===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;hg6===void 0&&(hg6=document.createElement("template"));var e=hg6;V.call(R,e.content.cloneNode(!0),B.content.firstChild);t$i=B}B=t$i;return B},{mode:2});var Ws6;var boU;var JX6;var j1r;var wW=function(){return _.c.apply(this,arguments)||this};
_.l(wW,_.c);wW.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.mh.Object.defineProperties(wW.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)}}});
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.$XS.YtTappableItemBehavior),_.Z("design:type",Object)],wW.prototype,"ytTappableItemBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],wW.prototype,"data",void 0);
_.r([_.E({reflectToAttribute:!0}),_.K("data.accessibilityText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],wW.prototype,"ariaLabel",null);_.r([_.E({reflectToAttribute:!0}),_.K("data.style"),_.Z("design:type",String),_.Z("design:paramtypes",[])],wW.prototype,"vcOfferStyle",null);_.r([_.K("data.style","data.titleText"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],wW.prototype,"showTitleText",null);wW=_.r([_.fJ({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],wW);
_.F(wW,"yt-vc-offer-renderer",function(){if(j1r===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;JX6===void 0&&(JX6=document.createElement("template"));var e=JX6;V.call(R,e.content.cloneNode(!0),B.content.firstChild);j1r=B}B=j1r;return B},{mode:2});var TC=function(){return _.c.apply(this,arguments)||this};
_.l(TC,_.c);TC.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}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],TC.prototype,"data",void 0);TC=_.r([_.fJ({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],TC);
_.F(TC,"yt-vc-offer-layout-renderer",function(){if(boU===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;Ws6===void 0&&(Ws6=document.createElement("template"));var e=Ws6;V.call(R,e.content.cloneNode(!0),B.content.firstChild);boU=B}B=boU;return B},{mode:2});var U0o;var N_U;var GDi;var yXz;var xh=function(){return _.c.apply(this,arguments)||this};
_.l(xh,_.c);xh.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}}}}}};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],xh.prototype,"data",void 0);xh=_.r([_.fJ({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],xh);
_.F(xh,"yt-ypc-offers-modal-top-bar-renderer",function(){if(yXz===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;GDi===void 0&&(GDi=document.createElement("template"));var e=GDi;V.call(R,e.content.cloneNode(!0),B.content.firstChild);yXz=B}B=yXz;return B},{mode:2});var L5=function(){return _.c.apply(this,arguments)||this};
_.l(L5,_.c);L5.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"}}}}};
L5.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
L5.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var B=this.scrollable;B.attached&&typeof B.attached==="function"&&B.attached()};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.Yp("#scrollable"),_.Z("design:type",Object)],L5.prototype,"scrollable",void 0);_.r([_.E(),_.Z("design:type",Object)],L5.prototype,"data",void 0);L5=_.r([_.fJ({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],L5);
_.F(L5,"yt-ypc-offers-modal-renderer",function(){if(N_U===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;U0o===void 0&&(U0o=document.createElement("template"));var e=U0o;V.call(R,e.content.cloneNode(!0),B.content.firstChild);N_U=B}B=N_U;return B},{mode:2});var Smz;var Ho6;var vp=function(){return _.c.apply(this,arguments)||this};
_.l(vp,_.c);_.p=vp.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");_.w(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.p.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.oF(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.p.onYtPopupOpened_=function(B,R){(R==null?void 0:R.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.eO(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.p.onYtPopupClosed_=function(B,R){this.continueButtonTapped||R&&(R.canceled===!0||R.canceled===!1&&R.confirmed===!1)&&this.data.onDismissCommands&&_.eO(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestError_=function(B){this.set("showSpinner",!1);_.VN(this.hostElement,B.detail.error.message)};
_.p.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.k("enable_ypc_spinners")?_.oF(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
vp.prototype.onYtServiceRequestError_=vp.prototype.onYtServiceRequestError_;vp.prototype.onYtPopupClosed_=vp.prototype.onYtPopupClosed_;vp.prototype.onYtPopupOpened_=vp.prototype.onYtPopupOpened_;vp.prototype.onYtServiceRequestCompleted_=vp.prototype.onYtServiceRequestCompleted_;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);
_.r([_.E(),_.Z("design:type",Object)],vp.prototype,"data",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],vp.prototype,"showSpinner",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],vp.prototype,"continueButtonTapped",void 0);_.r([_.E({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Z("design:type",Function)],vp.prototype,"bindOnContinueTapped_",void 0);_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vp.prototype,"onYtServiceRequestCompleted_",null);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],vp.prototype,"onYtPopupOpened_",null);
_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],vp.prototype,"onYtPopupClosed_",null);_.r([_.R_("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vp.prototype,"onYtServiceRequestError_",null);vp=_.r([_.fJ({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],vp);
_.F(vp,"yt-ypc-upgrade-dialog-renderer",function(){if(Ho6===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;Smz===void 0&&(Smz=document.createElement("template"));var e=Smz;V.call(R,e.content.cloneNode(!0),B.content.firstChild);Ho6=B}B=Ho6;return B},{mode:2});var M$o;var kDj;var K5=function(){return _.c.apply(this,arguments)||this};
_.l(K5,_.c);K5.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
K5.prototype.computeHasButtons_=function(B){return!(!B.dismissButton&&!B.confirmButton)};
K5.prototype.computeStyle_=function(B){return B||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],K5.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],K5.prototype,"data",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],K5.prototype,"positionType",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Z("design:type",Boolean)],K5.prototype,"hasButtons_",void 0);_.r([_.E({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],K5.prototype,"style_",void 0);K5=_.r([_.fJ({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],K5);
_.F(K5,"yt-bubble-hint-renderer",function(){if(kDj===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;M$o===void 0&&(M$o=document.createElement("template"));var e=M$o;V.call(R,e.content.cloneNode(!0),B.content.firstChild);kDj=B}B=kDj;return B},{mode:2});var D0e;var fD4;var Il=function(){var B=_.$_.apply(this,arguments)||this;B.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return B};
_.l(Il,_.$_);_.p=Il.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 B=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){B.$.thumbnail.onShow();B.$["header-image"].onShow()})};
_.p.handleCheckBoxUpdateAction_=function(B){this.canShowCheckboxEnabledConfirmButton=B};
_.p.computeUseOverlayForSpinner_=function(B,R){return!!B&&R};
_.p.computeShowSpinner_=function(B,R){return B||!!R};
_.p.fireOnCloseActions_=function(){var B,R=_.h(((B=this.data)==null?void 0:B.onClosedActions)||[]);for(B=R.next();!B.done;B=R.next())this.ytRendererBehavior.resolveCommand(B.value)};
_.p.fireOnOpenCommands_=function(B){var R,V=(R=this.data)==null?void 0:R.onOpenCommands;if(V)for(B.stopImmediatePropagation(),B=_.h(V),R=B.next();!R.done;R=B.next())this.ytRendererBehavior.resolveCommand(R.value)};
_.p.fireOnDismissCommands_=function(B){var R,V=(R=this.data)==null?void 0:R.onDismissCommands;if(V)for(B.stopImmediatePropagation(),B=_.h(V),R=B.next();!R.done;R=B.next())this.ytRendererBehavior.resolveCommand(R.value)};
_.p.openPopupHandler_=function(B){B.detail==this&&this.fireOnOpenCommands_(B)};
_.p.closePopupHandler_=function(B,R){_.Bz(this,"yt-confirm-dialog-close-action",[R]);this.fireOnCloseActions_();(R&&R.canceled===!0||R&&R.canceled===!1&&R.confirmed===!1)&&this.fireOnDismissCommands_(B)};
_.p.onHeaderImageChanged_=function(){var B;((B=this.data)==null?0:B.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.p.computeHasHeaderImageWidth_=function(B){return B!=void 0};
_.p.computeHasLoadingMessage=function(B){return!!B};
_.p.onHeaderImageWidthChanged_=function(){var B,R=(B=this.data)==null?void 0:B.headerImageWidth;if(R){if(B=1.25*R*2+R,this.$.main.style.width=B+"px",R=this.$.scroller.firstElementChild)R.style.minWidth=B+"px"}else this.$.main.style.width="100%"};
_.p.onThumbnailChanged_=function(){var B;((B=this.data)==null?0:B.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(B){B=_.ii(B);B instanceof Node&&_.P$(this.$["confirm-button"]).contains(B)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.p.computePrimaryIsCancel_=function(B){return B};
_.p.computeIsCancelButtonHidden_=function(B){return B.skipCancelButton||!B.cancelButton};
_.p.computeIsCheckboxHidden_=function(B){return!B.checkbox};
_.p.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.p.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.p.onYtServiceRequestCompleted_=function(){var B;((B=this.data)==null?0:B.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.mh.Object.defineProperties(Il,{template:{configurable:!0,enumerable:!0,get:function(){if(fD4===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;D0e===void 0&&(D0e=document.createElement("template"));var e=D0e;V.call(R,e.content.cloneNode(!0),B.content.firstChild);fD4=B}B=fD4;return B}}});
Il.prototype.onYtServiceRequestCompleted_=Il.prototype.onYtServiceRequestCompleted_;Il.prototype.onYtServiceRequestSent_=Il.prototype.onYtServiceRequestSent_;Il.prototype.onThumbnailLoaded_=Il.prototype.onThumbnailLoaded_;Il.prototype.onYtNavigate_=Il.prototype.onYtNavigate_;Il.prototype.onThumbnailChanged_=Il.prototype.onThumbnailChanged_;Il.prototype.onHeaderImageWidthChanged_=Il.prototype.onHeaderImageWidthChanged_;Il.prototype.onHeaderImageChanged_=Il.prototype.onHeaderImageChanged_;
Il.prototype.closePopupHandler_=Il.prototype.closePopupHandler_;Il.prototype.openPopupHandler_=Il.prototype.openPopupHandler_;_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],Il.prototype,"ytActionHandlerBehavior",void 0);_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);
_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],Il.prototype,"ytEventForwardingBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],Il.prototype,"data",void 0);_.r([_.E({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Z("design:type",Boolean)],Il.prototype,"primaryIsCancel",void 0);_.r([_.E({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Z("design:type",Boolean)],Il.prototype,"isCancelButtonHidden",void 0);
_.r([_.E({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Z("design:type",Boolean)],Il.prototype,"isCheckboxHidden",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Il.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.r([_.E({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Il.prototype,"useOverlayForSpinner_",void 0);
_.r([_.E({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Z("design:type",Boolean)],Il.prototype,"showSpinner_",void 0);_.r([_.E({value:!1}),_.Z("design:type",Boolean)],Il.prototype,"isActionInProgress_",void 0);_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Z("design:type",Boolean)],Il.prototype,"hasHeaderImageWidth_",void 0);
_.r([_.E({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Z("design:type",Boolean)],Il.prototype,"hasLoadingMessage",void 0);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Il.prototype,"openPopupHandler_",null);_.r([_.R_("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Il.prototype,"closePopupHandler_",null);
_.r([_.XX("data.headerImage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Il.prototype,"onHeaderImageChanged_",null);_.r([_.XX("data.headerImageWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Il.prototype,"onHeaderImageWidthChanged_",null);_.r([_.XX("data.thumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Il.prototype,"onThumbnailChanged_",null);
_.r([_.R_("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Il.prototype,"onYtNavigate_",null);_.r([_.R_("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Il.prototype,"onThumbnailLoaded_",null);_.r([_.R_("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.IO]),_.Z("design:returntype")],Il.prototype,"onYtServiceRequestSent_",null);
_.r([_.R_("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.r1]),_.Z("design:returntype")],Il.prototype,"onYtServiceRequestCompleted_",null);Il=_.r([_.fJ({is:"yt-confirm-dialog-renderer",noInjection:!0})],Il);var lD4;var zgm;var ER=function(){return _.c.apply(this,arguments)||this};
_.l(ER,_.c);ER.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.w(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
ER.prototype.computeConfirmButton_=function(B){var R={text:B.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};B.confirmNavigationEndpoint?R.navigationEndpoint=B.confirmNavigationEndpoint:B.confirmServiceEndpoint&&(R.serviceEndpoint=B.confirmServiceEndpoint);return R};
ER.prototype.computeShowTitle_=function(B){return!(B==null||!B.title)};
_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],ER.prototype,"data",void 0);_.r([_.E({computed:"computeShowTitle_(data)"}),_.Z("design:type",Boolean)],ER.prototype,"showTitle",void 0);ER=_.r([_.fJ({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],ER);
_.F(ER,"yt-fancy-dismissible-dialog-renderer",function(){if(zgm===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;lD4===void 0&&(lD4=document.createElement("template"));var e=lD4;V.call(R,e.content.cloneNode(!0),B.content.firstChild);zgm=B}B=zgm;return B});var aD2;var d0i;var QQ=function(){var B=_.c.apply(this,arguments)||this;B.spinnerActive=!1;return B};
_.l(QQ,_.c);QQ.prototype.created=function(){$Uz(2201)};
QQ.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
QQ.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
QQ.prototype.onIronOverlayClosed=QQ.prototype.onIronOverlayClosed;QQ.prototype.onIronOverlayOpened=QQ.prototype.onIronOverlayOpened;_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.ZV),_.Z("design:type",Object)],QQ.prototype,"tpYtIronOverlayBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],QQ.prototype,"data",void 0);_.r([_.E(),_.Z("design:type",Object)],QQ.prototype,"spinnerActive",void 0);
_.r([_.R_("iron-overlay-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QQ.prototype,"onIronOverlayOpened",null);_.r([_.R_("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QQ.prototype,"onIronOverlayClosed",null);QQ=_.r([_.fJ({is:"yt-loading-renderer",disableElementRegistration:!0})],QQ);
_.F(QQ,"yt-loading-renderer",function(){if(d0i===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;aD2===void 0&&(aD2=document.createElement("template"));var e=aD2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);d0i=B}B=d0i;return B},{mode:2});var wh2;var T_N;var qF=function(){var B=_.c.apply(this,arguments)||this;B.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);B.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);B.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";B.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return B};
_.l(qF,_.c);_.p=qF.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(B){this.isDarkTheme=B};
_.p.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.p.openPopupHandler_=function(B){B.detail===this.hostElement&&this.hostElement.hidden&&_.oF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.p.onDismissButtonTap_=function(){var B;this.closeOnDismissButton_.has(((B=this.data)==null?void 0:B.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.oF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.p.onAcceptButtonTap_=function(){var B;this.closeOnAcceptButton_.has(((B=this.data)==null?void 0:B.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.oF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.p.computeHasHeader_=function(B){return!!B.headerBackgroundImage};
_.p.computeLayoutStyle_=function(B){return B};
_.p.computePopupSize_=function(B){return B};
_.p.computeIconType_=function(B){return B.dialogIcon&&B.dialogIcon.iconType?B.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":B.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":B.dialogIcon.iconType:""};
_.p.computeIsLogo_=function(B){return!!B.dialogIcon&&!!B.dialogIcon.iconType&&(B.dialogIcon.iconType==="YOUTUBE_LOGO"||B.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||B.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.p.computeHasCustomLogo=function(B){return!(B==null||!B.headerForegroundImage)};
_.p.computeCustomLogo=function(B,R){if(B!=null&&B.headerForegroundImage)return B.headerForegroundImageDark?R?B.headerForegroundImageDark:B.headerForegroundImage:B.headerForegroundImage};
_.p.computeHeaderBackgroundImage=function(B,R){if(B!=null&&B.headerBackgroundImage)return R&&(B==null?0:B.headerBackgroundImageDark)?B.headerBackgroundImageDark:B.headerBackgroundImage};
_.p.shouldShowIconContainer=function(B,R){return B&&!R};
_.p.shouldShowNonYouTubeIcon=function(B,R){return!B&&!R};
_.p.getLogoImageId=function(B){var R,V,e;return(B=(R=this.computeCustomLogo(B,this.isDarkTheme))==null?void 0:(V=R.thumbnails)==null?void 0:(e=V[0])==null?void 0:e.height)&&B%31===0?"custom-logo-with-padding":"custom-logo"};
qF.prototype.openPopupHandler_=qF.prototype.openPopupHandler_;qF.prototype.dataChanged_=qF.prototype.dataChanged_;_.r([_.v(_.mD.YtRendererstamperBehavior),_.Z("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.r([_.E(),_.Z("design:type",Boolean)],qF.prototype,"isDarkTheme",void 0);
_.r([_.E({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Z("design:type",Object)],qF.prototype,"customLogo",void 0);_.r([_.E({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Z("design:type",Object)],qF.prototype,"headerBackgroundImage",void 0);_.r([_.E(),_.Z("design:type",Object)],qF.prototype,"data",void 0);_.r([_.E({computed:"computeHasHeader_(data)"}),_.Z("design:type",Boolean)],qF.prototype,"hasHeader",void 0);
_.r([_.E({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Z("design:type",Object)],qF.prototype,"layoutStyle",void 0);_.r([_.E({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Z("design:type",Object)],qF.prototype,"popupSize",void 0);_.r([_.E({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],qF.prototype,"hasLogo",void 0);
_.r([_.E({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],qF.prototype,"hasCustomLogo",void 0);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qF.prototype,"dataChanged_",null);_.r([_.R_("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],qF.prototype,"openPopupHandler_",null);
qF=_.r([_.fJ({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],qF);
_.F(qF,"yt-upsell-dialog-renderer",function(){if(T_N===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;wh2===void 0&&(wh2=document.createElement("template"));var e=wh2;V.call(R,e.content.cloneNode(!0),B.content.firstChild);T_N=B}B=T_N;return B},{mode:2});var x0N=_.sx(function(B){return _.N("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.N(_.H,{cond:B.title,then:function(R){return _.N("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},R)}}))},"mg"),LsU=_.sx(function(B){return _.N("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.N(_.wb,{data:B.closeButton},{buttonViewModel:function(R){return _.N("div",null,_.N(_.qo,{data:R.data}))}}))},"ng"),v72=_.sx(function(B){var R=
B.data;
return _.N(_.OZ,null,_.N("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.N("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.N(_.H,{cond:function(){return!!R().image&&!!R().title},
then:function(){return _.N(_.ia,{data:function(){return R().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.N("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.N(_.H,{cond:function(){return R().title},
then:function(V){return _.N("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},V)}}),_.N(_.H,{cond:function(){return R().primaryGenre},
then:function(V){return _.N("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},V)}}))),_.N(_.H,{cond:function(){var V=R().description;
return V&&V.length<=150},
then:function(){return _.N("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.N("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return R().description}))}}))},"og"),Ksi=_.sx(function(B){B=B.infoRows;
var R=_.Oz().resolve(_.wQ),V=_.k("enable_displaying_ppn");return _.N("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.N(_.yh,{each:B},function(e){return _.N("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.N(_.H,{cond:function(){return e.label},
then:function(X){return _.N("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},X)}}),_.N(_.H,{cond:function(){return e.attributedLabel},
then:function(X){return _.N("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.N(_.Hr,{text:X,noPreWrap:!0}))}}),_.N(_.H,{cond:function(){return e.value},
then:function(X){return _.N("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},X)}}),_.N(_.H,{cond:function(){return e.attributedValue},
then:function(X){return _.N("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.N(_.Hr,{text:X,noPreWrap:!0}))}}))}),_.N(_.H,{cond:function(){return V&&R.clientData.has("post_play_nonce")},
then:function(){return _.N("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.N("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.N("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},R.getData("post_play_nonce")))}}))},"pg"),IDU=_.sx(function(B){var R=B.data;
return _.N("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.N(x0N,{title:function(){return R().dialogTitle}}),_.N(v72,{data:R}),_.N(_.H,{cond:function(){return R().infoRow},
then:function(V){return _.N(Ksi,{infoRows:V})}}),_.N(LsU,{closeButton:function(){return R().closeButton}}))},"qg");
IDU.idomCompat=!0;_.mR(IDU,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;return _.N("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.N(_.ia,{data:function(){return R().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.N("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.N("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.N(_.H,{cond:function(){var V=R().ytLogo;return V?V.iconType:null},
then:function(V){return _.N(_.Us,{icon:V,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.N("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.N("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.N(_.Hr,{text:function(){return R().title}})),_.N("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.N(_.Hr,{text:function(){return R().body}})),_.N("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.N(_.Hr,{text:function(){return R().verifyStateText}}))),
_.N("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.N("div",null,_.N(_.wb,{data:function(){return R().dismissButton}},{buttonViewModel:_.qo})),_.N("div",null,_.N(_.wb,{data:function(){return R().linkParentButton}},{buttonViewModel:_.qo})))))},"rg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.qq}});var E7N=_.sx(function(B){var R=B.data;return _.N("installment-agreements-view-model",{class:_.XE("ytInstallmentAgreementsViewModelHost")},_.N(_.yh,{each:_.AM(function(){return R().agreements},[])},function(V){return _.N("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.N("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.N(_.Hr,{text:V.label})),_.N("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.N(_.wb,{data:function(){return V.openButton}},{buttonViewModel:_.qo})))}))},
"sg");
E7N.idomCompat=!0;var Q14=_.sx(function(B){return _.N("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.N(_.Hr,{text:function(){return B.data().inviteMessage}})),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.N(_.Hr,{text:function(){return B.data().attributedAccountSectionHeaderText}})),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.N(_.wb,{data:function(){return B.data().accountAvatar}},{avatarViewModel:_.TP}),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.N(_.Hr,{text:function(){return B.data().accountName}}),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.N(_.Hr,{text:function(){return B.data().handle}}))),_.N(_.wb,{data:function(){return B.data().trailingButton}},{buttonViewModel:_.qo})),_.N("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.N(_.Hr,{text:function(){return B.data().termsOfService}})))},"tg");var qmn=_.sx(function(B){var R=_.h(_.J3(function(){var n,Yd;return((n=B.data().createPlaylistDialogFormSchema)==null?0:(Yd=n.initialValues)==null?0:Yd.title)?B.data().createPlaylistDialogFormSchema.initialValues.title:""})),V=R.next().value,e=R.next().value;
R=_.h(_.J3(function(){B.data();return!1}));
var X=R.next().value,Y=R.next().value;R=_.h(_.J3(function(){B.data();return!1}));
var t=R.next().value,b=R.next().value;R=_.h(_.J3(function(){var n,Yd;return(n=B.data().createPlaylistDialogFormSchema)==null?void 0:(Yd=n.initialValues)==null?void 0:Yd.visibility}));
var J=R.next().value,G=R.next().value;R=_.h(_.J3(function(){B.data();return!1}));
var y=R.next().value,S=R.next().value;R=_.h(_.J3(function(){var n,Yd;return(n=B.data().createPlaylistDialogFormSchema)==null?void 0:(Yd=n.initialValues)==null?void 0:Yd.isCollaborative}));
var M=R.next().value,f=R.next().value,z=_.Zh();_.lJ(function(){var n=z.value.querySelector("textarea");n&&(n.value=V())});
_.zM(function(){var n;_.eQn((n=B.data().createPlaylistDialogFormSchema)==null?void 0:n.id,{onSubmit:function(){var Yd=V();var kd=J(),a5=M(),lo=B.data();Yd={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:Yd,privacyStatus:kd,videoIds:lo.videoIds,sourcePlaylistId:lo.sourcePlaylistId,params:a5?lo.createPlaylistParamsCollaborationEnabled:lo.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.Oz().resolve(_.oC).resolveCommand(Yd)},
isValid:function(){return X()&&!t()&&!y()}})});
var T=function(n){if(n!==void 0&&(e(n),!X()&&n.length>0&&Y(!0),X())){var Yd=eZe(B.data());if(Yd){var kd=Yd.minLength;Yd=Yd.maxLength;kd&&n.length<kd?b(!0):Yd&&n.length>Yd?b(!0):b(!1)}}},L=function(){var n=!(!M()||J()!=="PRIVATE");
S(n)},Q=function(n){n!==void 0&&(G(n),L())},q=function(){if(y())return p$2(B.data())},m=function(){f(!M());
L()},g=function(){return{validate:function(n){if(X()){var Yd=eZe(B.data());
if(Yd){var kd=Yd.minLength;Yd=Yd.translations;if(kd&&n.length<kd)return Yd==null?void 0:Yd.minLengthErrorMessage}}}}},Vu=function(){var n=eZe(B.data()),Yd=n==null?void 0:n.maxLength,kd;
n=n==null?void 0:(kd=n.translations)==null?void 0:kd.maxLengthErrorMessage;if(Yd&&n)return{maxChars:Yd,errorMessage:n}};
return _.N("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.N("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:z},_.N(_.wb,{data:function(){return B.data().playlistTitle}},{textFormFieldViewModel:function(n){return _.N(_.AS4,{data:n.data,
text:V,onInput:T,validation:g,characterLimit:Vu})},
textFieldViewModel:function(n){return _.N(_.cSm,{data:n.data,text:V,onInput:T,validation:g,characterLimit:Vu})}})),_.N("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.N(_.wb,{data:function(){return B.data().playlistVisibility}},{dropdownViewModel:function(n){return _.N(_.uWe,{data:n.data,
onSelected:Q,error:q})}})),_.N(_.H,{cond:function(){return!!B.data().playlistCollaborate},
then:function(){return _.N("div",null,_.N(_.wb,{data:function(){return B.data().playlistCollaborate}},{switchListItemViewModel:function(n){return _.N(_.R0T,{data:n.data,
onTap:m})}}))}}))},"ug");var cXN=_.sx(function(B){var R=_.AM(B.noPadding,!1),V=function(){var X,Y;return(Y=(X=B.data().logo.accessibilityData)==null?void 0:X.label)!=null?Y:""},e={};
return _.N("upsell-view-model",{class:_.XE("ytUpsellViewModelHost",(e.ytUpsellViewModelHostNoPadding=function(){return R()},e))},_.N("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.N(_.H,{cond:function(){return _.OQ(B.data().logo)},
then:function(X){return _.N(_.ia,{data:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:V})}})),_.N("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.N(_.Hr,{text:function(){return B.data().title}})),_.N("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.N(_.yh,{each:function(){var X;
return(X=B.data().subtitles)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.N("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.N(_.Hr,{text:X}))})),_.N("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.N(_.yh,{each:function(){var X;
return(X=B.data().benefitInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.N(_.H,{cond:function(){return X().info},
then:function(Y){return _.N("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.N(_.Us,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.N(_.Hr,{text:Y}))}})})),_.N("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.N(_.yh,{each:function(){var X;
return(X=B.data().legalInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.N("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.N(_.Hr,{text:X}))})))},"vg");var AX4=_.sx(function(B){var R=B.data;B={};B=(B.ytMiniAppScoreChallengeViewModelScoreRadial=!0,B.ytMiniAppScoreChallengeViewModelDarkScoreRadial=YXz(),B);return _.N("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.N("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return R().title}),_.N("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return R().subtitle}),_.N("div",{class:_.YB(B)},_.N("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return R().score})),_.N("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return R().prompt}))},"wg");var ioz=function(){this.store=_.QL();this.formId=""};var s1e=_.sx(function(B){function R(b){if(b&&(b=_.D(b,_.Mo)))return Object.assign({},b,{isSelected:Y()})}
var V=_.h(_.J3(function(){var b,J;return(J=(b=_.D(B.data().option,_.Mo))==null?void 0:b.isSelected)!=null?J:!1})),e=V.next().value,X=V.next().value,Y=e;
_.zM(function(){var b;_.eQn((b=B.data().formSchema)==null?void 0:b.id,{onSubmit:function(){var J=_.Oz().resolve(_.oC),G=!!B.data().selectedCommand,y=!!B.data().unselectedCommand;if(Y()){if(G)var S=B.data().selectedCommand}else y&&(S=B.data().unselectedCommand);S=_.dl(S);R(B.data().option)&&!S?(J="",!G&&y?J="selected ":G&&!y&&(J="unselected "),G=new _.H8("No "+J+"command found for SelectionListItemFormViewModel"),_.Tn(G)):S&&J.resolveCommand(S)},
isValid:function(){return!0}})});
var t=function(){X(!Y())};
_.aK(function(){var b,J,G=(b=B.data())==null?void 0:(J=b.formSchema)==null?void 0:J.id;G&&_.RQ2()().delete(G)});
return _.N("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.N("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.N(_.Hr,{text:function(){return B.data().paragraph}})),_.N(_.H,{cond:function(){return R(B.data().option)},
then:function(b){return _.N(_.Dw,{data:b,isCompact:!0,hideSelectionTextChevron:!0,onTap:t,disableHorizontalPadding:!0})}}))},"xg");var FsU=_.sx(function(B){var R=B.data;var V=B.disablePadding;var e=B.className;var X=_.Zh(),Y=function(){return hZe(R().banner,R().assetContainerPaddingStyle)},t=function(){return hZe(R().imageBanner,R().assetContainerPaddingStyle)},b=function(){return R().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.zM(function(){var J=function(){_.oF(X.value,"yt-refit-popups-action")},G;
(G=X.value)==null||G.addEventListener("image-loaded",J);_.aK(function(){var y;(y=X.value)==null||y.removeEventListener("image-loaded",J)})});
B={};return _.N("yt-dialog-header-view-model",{el:X,class:_.XE(e,(B.ytDialogHeaderViewModelHost=!0,B.ytDialogHeaderViewModelHostDisablePadding=V,B))},_.N(_.H,{cond:function(){return R().banner},
then:function(){var J={};return _.N("div",{class:_.XE(e,(J.ytDialogHeaderViewModelBanner=!0,J.ytDialogHeaderViewModelBannerFullBleed=b,J)),style:_.jQ({"max-height":function(){return R().assetContainerMaxHeight?R().assetContainerMaxHeight+"px":""}})},_.N(_.mZ,{data:Y,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.N(_.H,{cond:function(){return R().imageBanner},
then:function(){var J={};return _.N("div",{class:_.XE(e,(J.ytDialogHeaderViewModelBanner=!0,J.ytDialogHeaderViewModelBannerFullBleed=b,J)),style:_.jQ({"max-height":function(){return R().assetContainerMaxHeight!==void 0?R().assetContainerMaxHeight+"px":void 0}})},_.N(_.mZ,{data:t,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.N(_.H,{cond:function(){return R().customAssetContainer},
then:function(J){return _.N("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.N(_.wb,{data:J},{avatarStackViewModel:_.H0}))}}),_.N(_.H,{cond:function(){return R().customBanner},
then:function(J){return _.N("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.N(_.wb,{data:J},{avatarStackViewModel:_.H0}))}}),_.N(_.H,{cond:function(){return R().headline},
then:function(J){return _.N("h2",null,_.N(_.Hr,{text:J,className:"ytDialogHeaderViewModelText"}))}}))},"yg");
FsU.idomCompat=!0;var rXN=_.sx(function(B){var R=_.XnN(function(){return B.data().formId}),V=R.onSubmit,e=R.isValid;
return _.N("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.N(_.wb,{data:function(){return B.data().panelFooter}},{panelFooterViewModel:function(X){return _.N(_.A1,{data:X.data,
disablePadding:!0,disablePrimaryButton:function(){return!e()},
onClickPrimaryButton:function(){V()}})}}))},"zg");var m0z=_.sx(function(B){var R=_.ip(B,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),V=R.elRefCallback;B=R.iconWiz;var e=R.assetWiz,X=R.assetType,Y=R.titleWiz,t=R.leadingActionHeaderWiz,b=R.trailingActionHeaderWiz,J=R.headerPosition,G=R.contentWiz,y=R.buttonLayout,S=R.buttonStyle,M=R.primaryButtonWiz,f=R.secondaryButtonWiz,z=R.contentAlignment,T=R.isFullscreen,L=R.width,Q=R.maxHeight,q=R.isHeaderWizDefined,
m=R.headerWiz,g=R.isFooterWizDefined,Vu=R.footerWiz;R=_.Zh(function(ES){V==null||V(ES)});
var n=e?function(){return e({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,Yd=M?function(){var ES={};
return M({buttonOverrides:function(){return{style:(S==null?void 0:S())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.XE((ES["yt-spec-dialog-layout__dialog-layout-button"]=!0,ES["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(y==null?void 0:y())===0||(y==null?void 0:y())===2},ES))})}:void 0,kd=f?function(){var ES={};
return f({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.XE((ES["yt-spec-dialog-layout__dialog-layout-button"]=!0,ES["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(y==null?void 0:y())===0||(y==null?void 0:y())===2},ES))})}:void 0,a5=function(){return(!!Y||!!t||!!b)&&J()===0},lo={},io={},vd={},cd={};
return _.N("dialog-layout",{el:R,class:_.XE((lo["yt-spec-dialog-layout"]=!0,lo["yt-spec-dialog-layout--dialog-layout-fullscreen"]=T,lo["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!T()},lo["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return Q()===1},lo["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(X==null?void 0:X())===1},lo)),
style:function(){return(L==null?void 0:L())!==void 0?"width: "+L+"px;":""}},B?_.N("div",{class:_.XE((io["yt-spec-dialog-layout__dialog-layout-icon"]=!0,io["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!e&&J()===1},io["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return z()===1},io))},_.N(B,null)):null,_.N(_.H,{cond:q,
then:function(){return m?_.N("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.N(m,null)):null},
else:function(){return _.N(_.OZ,null,_.N(_.H,{cond:a5,then:function(){return _.N(g74,{contentAlignment:z,LeadingActionHeader:t,TrailingActionHeader:b,Title:Y,isAboveAsset:!!n})}}),n?_.N("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.N(n,null)):null)}}),_.N("div",{class:_.XE((vd["yt-spec-dialog-layout__dialog-layout-container"]=!0,vd["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(z==null?void 0:z())===1},vd["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!Y&&!m||!!n&&(J==null?void 0:J())===0},vd))},_.N(_.H,{cond:function(){return Y&&!m&&(J==null?void 0:J())===1},
then:function(){return _.N(g74,{contentAlignment:z,LeadingActionHeader:t,TrailingActionHeader:b,Title:Y,isAboveAsset:!1})}}),G?_.N("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.N("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.N(G,null))):null,_.N(_.H,{cond:g,
then:function(){return Vu?_.N("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.N(Vu,null)):null}}),Yd||kd?_.N(ZoU,{footerClasses:_.XE((cd["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,cd["yt-spec-dialog-layout__dialog-layout-footer"]=!0,cd["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(y==null?void 0:y())===2},cd["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(y==null?void 0:y())===1},cd)),
PrimaryButton:Yd,SecondaryButton:kd}):null))},"Ag"),g74=_.sx(function(B){var R=_.ip(B,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),V=R.contentAlignment,e=R.LeadingActionHeader;B=R.Title;var X=R.TrailingActionHeader,Y=R.isAboveAsset,t=R.enableLeadingActionHeader;R={};return _.N("div",{class:_.XE((R["yt-spec-dialog-layout__dialog-header-container"]=!0,R["yt-spec-dialog-layout__dialog-header"]=!0,R["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=Y,R["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(V==null?void 0:V())===1&&t()},R))},_.N(_.H,{cond:function(){return t()},
then:function(){return e?_.N("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.N(e,null)):null}}),B?_.N("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.N(B,null)):null,X?_.N("div",null,_.N(X,null)):null)},"Bg"),ZoU=_.sx(function(B){var R=B.footerClasses;
var V=B.PrimaryButton;B=B.SecondaryButton;return _.N("div",{class:R},B?_.N(B,null):null,V?_.N(V,null):null)},"Cg");var $0i=_.sx(function(B){var R=B.data;return _.N("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.N("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.N(_.wb,{data:function(){return R().avatar}},{avatarViewModel:_.TP})),_.N("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.N(_.Hr,{text:function(){return R().title}})),_.N(_.Hr,{text:function(){return R().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Dg");var COn=_.sx(function(B){var R=B.data;return _.N("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.N("div",{class:"ytAccessConfirmationViewModelContent"},_.N(_.wb,{data:function(){return R().dualAvatar}},{dualAvatarViewModel:function(V){return _.N("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.N(_.vYv,{data:V.data}))}}),_.N("h2",{class:"ytAccessConfirmationViewModelTitle"},_.N(_.Hr,{text:function(){return R().title}})),_.N(_.Hr,{text:function(){return R().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Eg");var POe=_.sx(function(B){var R=B.data;var V=void 0;B=_.h(_.WU("",void 0,"O14qgc"));var e=B.next().value,X=B.next().value,Y,t=function(){X("");var G;(G=V)!=null&&G.store.dispatch(_.or({type:"RESET_COMMAND_MAP"}))};
_.zM(function(){V=new ioz;window.addEventListener("yt-popup-closed",t)});
_.lJ(function(){if(V&&Y!==R().formId){var G=V,y=R();y.formId&&(G.formId=y.formId,G.store.dispatch(_.or({type:"SET_CURRENT_FORM_ID",payload:{formId:G.formId}})));Y=R().formId}});
_.aK(function(){window.removeEventListener("yt-popup-closed",t)});
var b=function(G,y,S){y.key&&S&&y.key!==e()&&(X(y.key),V&&y.command&&V.store.dispatch(_.or({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:S,command:y.command}})))},J=function(){if(_.D(R().content,_.MAz))return!(e==null?0:e())};
return _.N("yt-dialog-view-model",{class:_.XE("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.N(m0z,{headerWiz:function(){return _.N("span",{skip:!0},_.N(_.wb,{data:function(){return R().header}},{dialogHeaderViewModel:function(G){return _.N(FsU,{data:G.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!R().header},
contentWiz:function(){return _.N("span",{skip:!0},_.N(_.wb,{data:function(){return R().customContent?R().customContent:R().content}},{basicContentViewModel:_.bR4,
createPlaylistDialogFormViewModel:qmn,collaborativePlaylistInviteMessageViewModel:Q14,miniAppScoreChallengeViewModel:AX4,radioButtonGroupViewModel:function(G){return _.N(_.Cjm,{data:G.data,selectedKey:e,onSelected:b})},
selectionListItemFormViewModel:s1e,upsellViewModel:function(G){return _.N(cXN,{data:G.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:$0i,installmentAgreementsViewModel:E7N,accessConfirmationViewModel:COn,listViewModel:_.tib}))},
footerWiz:function(){return _.N("span",{skip:!0},_.N(_.wb,{data:function(){return R().footer}},{panelFooterViewModel:function(G){return _.N(_.A1,{data:G.data,
disablePadding:!0,disablePrimaryButton:J})},
formPanelFooterViewModel:rXN,formFooterViewModel:function(G){return _.N(_.Ejo,{data:G.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!R().footer}}))},"Fg");
POe.idomCompat=!0;_.mR(POe,"yt-dialog-view-model",{props:{data:_.qq},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var n76=_.sx(function(B){var R=B.data;B={};return _.N("yt-panel-header-view-model",{class:_.XE("yt-panel-header-view-model-wiz",(B["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!R().shouldHideDivider},B["yt-panel-header-view-model-wiz--compact"]=function(){return!!R().subtitle},B))},_.N("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.N(_.H,{cond:function(){return R().title},
then:function(V){return _.N(_.Hr,{text:V,className:"yt-panel-header-view-model-wiz__title"})}}),_.N(_.H,{cond:function(){return R().subtitle},
then:function(V){return _.N(_.Hr,{text:V,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.N("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.N(_.wb,{data:function(){return R().trailingButtons}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Gg");
n76.idomCompat=!0;var uhU=_.sx(function(B){var R=_.Wr(function(Y){var t;if((t=B.skipContentClick)==null?0:t.call(B))return!1;B.onContentWrapperClick(Y);return!0}),V,e,X;
return _.N("div",{class:_.XE("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return B.isAnimating()?"transform: translateY("+B.currentY()+"px);transition: 0.2s":""}},(V=B.header)==null?void 0:V.call(B),_.N("div",{id:B.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.jQ({"max-height":(0,_.M8)(B.maxHeightForContentWrapper)}),"on:scroll":JzN(B.onScroll),"on:touchmove":JzN(function(Y){return void Y.stopPropagation()})},_.N("div",{el:{onRender:B.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":R},(e=B.body)==null?void 0:e.call(B))),(X=B.footer)==null?void 0:X.call(B))},"Hg");
uhU.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var OoN=_.sx(function(B){var R=_.AM(B.leadingLabel),V=_.AM(B.trailingLabel),e=_.AM(B.footerButtonType),X=function(){return R()||V()||B.hasPrimaryButton()||B.hasSecondaryButton()},Y={},t=_.XE("yt-spec-bottom-sheet-layout__primary-button",(Y["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return e()===0&&B.hasPrimaryButton()},Y["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return e()===1&&B.hasPrimaryButton()},Y["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return e()===2&&B.hasPrimaryButton()},Y["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return e()===3&&B.hasPrimaryButton()},Y));
Y={};var b=_.XE("yt-spec-bottom-sheet-layout__secondary-button",(Y["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return e()===1&&B.hasSecondaryButton()},Y["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return e()===2&&B.hasSecondaryButton()},Y["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return e()===3&&B.hasPrimaryButton()},Y));
return _.N(_.H,{cond:B.hasFooterOverride,then:function(){var J;return _.N(_.OZ,null,(J=B.footerOverride)==null?void 0:J.call(B))},
else:function(){return _.N(_.H,{cond:X,then:function(){return _.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.N(_.H,{cond:function(){return R()||V()},
then:function(){var J={};return _.N("div",{class:_.XE("yt-spec-bottom-sheet-layout__footer-label-wrapper",(J["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!B.hasPrimaryButton()},J))},_.N(_.H,{cond:R,
then:function(){return _.N("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},R)}}),_.N(_.H,{cond:V,
then:function(){return _.N("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},V)}}))}}),_.N(_.H,{cond:function(){return B.hasPrimaryButton()||B.hasSecondaryButton()},
then:function(){var J={};return _.N("div",{class:_.XE("yt-spec-bottom-sheet-layout__footer-button-wrapper",(J["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.t$G,J))},_.N(_.H,{cond:function(){return B.hasSecondaryButton()&&e()!==0},
then:function(){var G;return _.N("div",{class:b},(G=B.secondaryButton)==null?void 0:G.call(B))}}),_.N(_.H,{cond:B.hasPrimaryButton,
then:function(){var G;return _.N("div",{class:t},(G=B.primaryButton)==null?void 0:G.call(B))}}))}}))}})}})},"Ig");
OoN.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var ore=_.sx(function(B){var R=_.AM(B.title),V=_.AM(B.subtitle),e=_.Wr(function(t){var b;(b=B.touchstart)==null||b.call(B,t);return!1}),X=_.Wr(function(t){var b;
(b=B.touchmove)==null||b.call(B,t);return!1}),Y=_.Wr(function(t){var b;
(b=B.touchend)==null||b.call(B,t);return!1});
return _.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:B.headerId,"on:touchstart":e,"on:touchmove":X,"on:touchend":Y},_.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.N(_.H,{cond:B.hasHeaderOverride,then:function(){var t;return _.N(_.OZ,null,(t=B.headerOverride)==null?void 0:t.call(B))},
else:function(){var t={};return _.N("div",{class:_.XE((t["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,t["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=R,t))},_.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.N(_.H,{cond:R,then:function(){return _.N(_.OZ,null,_.N("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},R),_.N(_.H,{cond:V,then:function(){return _.N("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
V)}}))}})),_.N(_.H,{cond:function(){return R()&&B.hasActionHeader()},
then:function(){var b;return _.N("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(b=B.actionHeader)==null?void 0:b.call(B))}}))}}))},"Jg");
ore.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.sx(function(B){function R(n){if(!Q&&typeof MutationObserver!=="undefined"){var Yd={childList:!0};"MutationObserver"in window&&(Q=new MutationObserver(V.bind(void 0,n)),Q.observe(n,Yd))}}
function V(n){typeof Q!=="undefined"&&(q["content-wrapper"]===void 0&&(q["content-wrapper"]=n.children[0].clientHeight),f(q["content-wrapper"]),M()>z()||T(M()))}
function e(){S(window.innerHeight);M()>z()||T(M());m.isFullScreen[0]()&&M()>z()?g().dispatch("Snap To Full Screen",{maxHeight:L()}):g().dispatch("Snap To Neutral Position",{maxHeight:z()})}
function X(n){document.body.style.overscrollBehavior="none";n.preventDefault();g().dispatch("Touch Start",{event:n})}
function Y(n){n.preventDefault();g().dispatch("Touch Move",{event:n,contentScrollable:M()>z(),fullContentWrapperHeight:L(),contentWrapperHeight:z(),contentHeightMap:q,contentWrapperId:"content-wrapper",header:U1j(B),footer:U1j(B)})}
function t(){document.body.style.overscrollBehavior="";m.isFullScreen[0]()?m.currentY[0]()>=60?g().dispatch("Snap To Neutral Position",{maxHeight:z()}):g().dispatch("Snap To Full Screen",{maxHeight:L()}):m.currentY[0]()>=60?b():m.currentY[0]()<=-60&&M()>z()?g().dispatch("Snap To Full Screen",{maxHeight:L()}):g().dispatch("Snap To Neutral Position",{maxHeight:z()})}
function b(){g().dispatch("Close Sheet",{clientHeight:y(),maxHeight:0});setTimeout(function(){jGo()},250)}
var J=_.h(_.WU(window.innerHeight,void 0,"NWeFS")),G=J.next().value;J=J.next().value;var y=G,S=J;J=_.h(_.WU(0,void 0,"oxfm4"));G=J.next().value;J=J.next().value;var M=G,f=J;J=_.h(_.J3(function(){var n=U1j(B);return.6*y()-tcr(n)-W57(n)}));
G=J.next().value;J=J.next().value;var z=G,T=J,L=function(){var n=U1j(B);return y()-tcr(n)-W57(n)-24-24},Q=null,q={},m={initialY:_.WU(0,void 0,"cYBE5c"),
currentY:_.WU(0,void 0,"RndqHc"),isAnimating:_.WU(!1,void 0,"vO9DVd"),isFullScreen:_.WU(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.J3(z)},g=function(){var n=null;return function(){if(!n){var Yd={initialY:m.initialY[0](),currentY:m.currentY[0](),isAnimating:m.isAnimating[0](),isFullScreen:m.isFullScreen[0](),maxHeightForContentWrapper:m.maxHeightForContentWrapper[0]()};n=bkr(Yd)}return n}}();
_.zM(function(){window.addEventListener("resize",e);g().subscribe(function(n){m.initialY[1](n.initialY);m.currentY[1](n.currentY);m.isAnimating[1](n.isAnimating);m.isFullScreen[1](n.isFullScreen);m.maxHeightForContentWrapper[1](n.maxHeightForContentWrapper)})});
_.aK(function(){window.removeEventListener("resize",e);Q&&(Q.disconnect(),Q=null)});
var Vu=_.XE({"bottom-sheet-content-without-icon":function(){var n;return!((n=B.shouldShowIcons)==null?0:n.call(B))}});
return _.N("bottom-sheet-layout",null,_.N(uhU,{contentWrapperId:"content-wrapper",isAnimating:function(){return m.isAnimating[0]()},
currentY:function(){return m.currentY[0]()},
maxHeightForContentWrapper:function(){return m.maxHeightForContentWrapper[0]()},
shouldShowIcons:B.shouldShowIcons,skipContentClick:B.skipContentClick,onScroll:function(){var n=document.getElementById("header-wrapper"),Yd=document.getElementById("content-wrapper");if(n&&Yd){var kd={};kd=(kd["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,kd["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,kd);n.className=Yd.scrollTop>1?_.YB(kd):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:jGo,contentWrapperEl:function(n){R(n);requestAnimationFrame(function(){V(n)})},
header:function(){return _.N(ore,{touchstart:X,touchmove:Y,touchend:t,title:B.headerTitle,subtitle:B.headerSubtitle,headerId:"header-wrapper",headerOverride:B.headerFn,hasHeaderOverride:B.hasHeaderFn,actionHeader:B.headerActionHeader,hasActionHeader:B.hasHeaderActionHeader})},
footer:function(){return _.N(OoN,{footerButtonType:B.footerButtonType,leadingLabel:B.footerLeadingLabel,trailingLabel:B.footerTrailingLabel,primaryButton:B.footerPrimaryButton,hasPrimaryButton:B.hasFooterPrimaryButton,secondaryButton:B.footerSecondaryButton,hasSecondaryButton:B.hasFooterSecondaryButton,footerOverride:B.footerFn,hasFooterOverride:B.hasFooterFn})},
body:function(){return _.N(_.H,{cond:B.hasContentFn,then:function(){var n;return _.N("div",{class:Vu},(n=B.contentFn)==null?void 0:n.call(B))}})}}))},"Kg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var BIn=_.sx(function(B){var R=_.Oz().resolve(_.HO),V=_.Wr(function(){return void R.closeSheet()});
return _.N("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":V},_.N(_.H,{cond:function(){return!!B.header},
then:function(){return _.N("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},B.header())}}),_.N(_.H,{cond:function(){return!!B.content},
then:function(){return _.N("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},B.content())}}),_.N(_.H,{cond:function(){return!!B.footer},
then:function(){return _.N("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},B.footer())}}))},"Lg");
BIn.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var RLe=_.sx(function(B){B=B.data;var R=_.Zh(function(e){e.addEventListener("focusin",function(){uoo(e)});
return function(){e.removeEventListener("focusin",function(){uoo(e)})}}),V={};
return _.N("yt-sheet-view-model",{class:_.XE("yt-sheet-view-model-wiz",(V["yt-sheet-view-model-wiz--contextual"]=!0,V["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.k("web_disable_backdrop_filter"),V)),el:R,tabindex:-1},_.N(_.H,{cond:B,then:function(e){return _.N(BIn,{header:function(){return _.N(_.wb,{data:function(){return e().header}},{panelHeaderViewModel:n76})},
content:function(){return _.N(_.wb,{data:function(){return e().content}},{listViewModel:function(X){return _.N(_.tib,{data:X.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:cXN,miniAppScoreChallengeViewModel:AX4})},
footer:function(){return _.N(_.wb,{data:function(){return e().footer}},{panelFooterViewModel:_.A1})}})}}))},"Mg");
RLe.idomCompat=!0;_.mR(RLe,"yt-sheet-view-model",{props:{data:_.qq}});var eLU=_.sx(function(B){var R=function(){var V;return(V=B.data().enableDebuggingFeatures)!=null?V:!1};
return _.N("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.N(_.yh,{each:function(){var V;return(V=B.data().stickers)!=null?V:[]}},function(V){return _.N(VNo,{data:function(){return V},
debugMode:R})}))},"Ng"),VNo=_.sx(function(B){var R=_.ip(B,{debugMode:!1}).debugMode,V=_.AM(function(){var J;
return(J=B.data().region)==null?void 0:J.w},0),e=_.AM(function(){var J;
return(J=B.data().region)==null?void 0:J.h},0),X=_.AM(function(){var J;
return(J=B.data().region)==null?void 0:J.x},0),Y=_.AM(function(){var J;
return(J=B.data().region)==null?void 0:J.y},0),t=_.Wr(function(){var J=B.data().onTap;
J&&_.Lc(J)}),b={};
return _.N("div",{class:_.XE("ytStoriesStickerLayerViewModelSticker",(b.ytStoriesStickerLayerViewModelDebugMode=R,b)),style:_.jQ({width:function(){return 100*V()+"%"},
height:function(){return 100*e()+"%"},
left:function(){return 100*X()+"%"},
top:function(){return 100*Y()+"%"},
"flex-direction":function(){return NrU(B.data().flexDirection)},
"justify-content":function(){return GFN(B.data().justifyContent)},
"align-items":function(){return yzi(B.data().alignItems)}}),
"on:click":t},_.N(_.wb,{data:function(){return B.data().button||B.data().toggleButton}},{buttonViewModel:function(J){return _.N(_.qo,{data:J.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(J){return _.N(_.LO,{data:J.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Og");var pZ4=_.sx(function(B){var R=function(){return B.data()},V=_.AM(function(){return R().backgroundColor},0),e=_.AM(function(){return R().actionButtons},[]),X=_.AM(function(){return R().stickerLayer},{}),Y={},t=function(){var J,G;
return{animationRef:Y,animationConfig:{autoplay:!1,loop:!1,path:(G=(J=R().foregroundAnimation)==null?void 0:J.url)!=null?G:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){B.navigateToNextItemOnLottieComplete()}}}},b=function(){var J,G,y,S,M,f,z,T;
return{animationConfig:{autoplay:(f=(J=R().backgroundAnimation)==null?void 0:(G=J.settings)==null?void 0:G.autoplay)!=null?f:!1,loop:(z=(y=R().backgroundAnimation)==null?void 0:(S=y.settings)==null?void 0:S.loop)!=null?z:!1,path:(T=(M=R().backgroundAnimation)==null?void 0:M.url)!=null?T:"",name:"stories_item_background_animation"}}};
_.lJ(function(){if(B.isVisible()){var J;(J=Y.lottieEl)==null||J.play()}else{var G;(G=Y.lottieEl)==null||G.stop()}});
return _.N("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.jQ({"background-color":function(){return _.zF(V())+";"}})},_.N("div",{class:"ytStoriesItemViewModelAssetContent"},_.N(_.H,{cond:function(){return!!R().backgroundAnimation},
then:function(){return _.N(_.pD,{data:b,animationName:function(){return b().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.N(_.H,{cond:function(){return!!R().backgroundImage},
then:function(){return _.N(_.ia,{data:function(){return R().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.N(_.H,{cond:function(){return!!R().foregroundAnimation},
then:function(){return _.N(_.pD,{data:t,animationName:function(){return t().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.N(_.H,{cond:function(){return!!R().foregroundImage},
then:function(){return _.N(_.ia,{data:function(){return R().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.N("div",{class:"ytStoriesItemViewModelTopShadow"}),_.N(_.wb,{data:function(){return X()}},{storiesStickerLayerViewModel:eLU})),_.N("div",{class:"ytStoriesItemViewModelBottomShadow"},_.N("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.Wr(B.pauseAutoNavigation)},_.N(_.yh,{each:e},function(J){return _.N(XZ4,{data:function(){return J}})}))))},"Pg"),XZ4=_.sx(function(B){var R={};
return _.N("div",{class:_.XE("ytStoriesItemViewModelActionButton",(R.ytStoriesItemViewModelStretchedActionButton=function(){return B.data().size==="STORIES_BUTTON_SIZE_STRETCH"},R))},_.N(_.wb,{data:function(){return B.data().button}},{buttonViewModel:function(V){return _.N(_.qo,{data:V.data,
className:"ytStoriesItemViewModelButton"})}}))},"Qg");_.mR(_.sx(function(B){var R=_.h(_.J3(function(){var q;return(q=B.data().startIndex)!=null?q:0})),V=R.next().value,e=R.next().value;
R=_.h(_.WU(!1,void 0,"klmjc"));var X=R.next().value,Y=R.next().value,t=function(){var q;return(q=B.data().storyItems)!=null?q:[]},b=function(){return B.data().dismissButton},J=function(){var q;
return _.D((q=_.D(b(),_.Tr))==null?void 0:q.onTap,_.aT)},G=_.Zh(),y,S=function(){var q;
(q=y)==null||q.cancel();y=M(V()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});y.onfinish=function(){M(V()).style.width="100%";var m=_.D(t()[V()],W8e),g,Vu;m!=null&&m.foregroundAnimation&&((m==null?0:(g=m.foregroundAnimation)==null?0:g.url)||(m==null?0:(Vu=m.foregroundAnimation)==null?0:Vu.payload))||(V()!==t().length-1?(e(V()+1),S()):J()&&_.wl(J()))}},M=function(q){return G.value.children[q].children[0]},f=function(){for(var q=0;q<V();q++)M(q).style.width="100%"};
R=_.Wr(function(){X()?Y(!1):(V()===t().length-1&&J()&&_.wl(J()),M(V()).style.width="100%",V()!==t().length-1&&(e(V()+1),S()))});
var z=_.Wr(function(){X()?Y(!1):(M(V()).style.width="0%",V()!==0?e(V()-1):e(V()),S())}),T=function(){Y(!0)},L=function(){M(V()).style.width="100%";
V()!==t().length-1?(e(V()+1),S()):J()&&_.wl(J())},Q=_.Wr(function(){var q;
(q=y)==null||q.pause()});
_.lJ(function(){if(X()){var q;(q=y)==null||q.pause()}else{var m;(m=y)==null||m.play()}});
_.lJ(function(){f();V()===B.data().startIndex&&S()});
_.zM(function(){f();S()});
return _.N("yt-stories-viewer-view-model",{class:_.XE("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.N("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.N("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":z,"on:mousedown":Q}),_.N("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":R,"on:mousedown":Q})),_.N(_.wb,{data:t},{storiesItemViewModel:function(q,m){var g=q.data;return _.N(_.H,{cond:function(){return Math.abs(m()-
V())<=1},
then:function(){var Vu={};return _.N("div",{class:_.XE("ytStoriesViewerViewModelStoryItem",(Vu.ytStoriesViewerViewModelHiddenStoryItem=function(){return m()!==V()},Vu))},_.N(pZ4,{data:g,
pauseAutoNavigation:T,navigateToNextItemOnLottieComplete:L,isVisible:function(){return m()===V()}}))}})}}),_.N("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:G},_.N(_.yh,{each:t},function(){return _.N("div",{class:"ytStoriesViewerViewModelProgressBar"},_.N("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.N("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.N(_.wb,{data:b},{buttonViewModel:_.qo})))},"Rg"),"yt-stories-viewer-view-model",{props:{data:_.qq}});_.mR(_.sx(function(B){var R=B.data;var V=_.Zh(),e=[];return _.N("yt-gen-ai-feedback-form-view-model",{el:V,class:"ytGenAiFeedbackFormViewModelHost"},_.N(_.Hr,{text:function(){return R().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.N("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.N(_.wb,{data:function(){return R().feedbackChips}},{toggleButtonViewModel:function(X){var Y=X.data;
return _.N(_.LO,{data:Y,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(t){var b=Y();b=_.D(b,_.xx);b=_.D(b==null?void 0:b.defaultButtonViewModel,_.Tr).trackingParams;t?e.push(b):(t=e.indexOf(b),t>-1&&e.splice(t,1))}})}})),_.N(_.Hr,{text:function(){return R().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.N("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.N(_.wb,{data:function(){return R().submitButton}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){SX4(V.value,e,R().uniqueId)}})}}),_.N(_.wb,{data:function(){return R().moreFeedbackButton}},{buttonViewModel:function(X){return _.N(_.qo,{data:X.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Sg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.qq},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var cp=function(){return _.c.apply(this,arguments)||this};
_.l(cp,_.c);cp.prototype.created=function(){$Uz(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(TYr);var B=_.Oz().resolve(_.ZZe);B&&(B.container=this.ytPopupContainerBehavior);if(B=_.Oz().resolve(_.HO))B.container=this.ytPopupContainerBehavior;if(B=_.Oz().resolve(_.M3)){var R=this.ytPopupContainerBehavior;B.containerWasInjected?_.KE(Error("bj")):B.container=R}};
cp.prototype.ensurePopupBelowPlayer=function(B,R){var V=_.Oz().resolve(_.uj(_.$B));if(!V||!V.isOnWatch()||!_.Pr())return!1;V=V.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.N1().height>V+this.getPopupHeight(B,R)?(B.style.top="auto",B.style.bottom="0px"):(B.style.top=V+"px",B.style.bottom="auto");return!0};
cp.prototype.getPopupHeight=function(B,R){R&&(B.cachedPopupHeight=0);if(!B.cachedPopupHeight){R=0;var V=B.clientHeight,e=window.getComputedStyle(B);R+=parseInt(e.marginTop,10);R+=parseInt(e.marginBottom,10);B.cachedPopupHeight=V+R}return B.cachedPopupHeight};
cp.prototype.getElement=function(B){return document.createElement(B)};
_.r([_.v(O3z.YtPopupContainerBehavior),_.Z("design:type",Object)],cp.prototype,"ytPopupContainerBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],cp.prototype,"ytComponentBehavior",void 0);cp=_.r([_.A({disableElementRegistration:!0,is:"ytd-popup-container"})],cp);
_.F(cp,"ytd-popup-container",function(){if(FEo!==void 0)return FEo;var B=document.createElement("template");_.a(B,"\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");B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);return FEo=B},{mode:1});var Ywj;var hLo={};hLo.YtLogYpcFlowCommandsBehavior=[_.$Z.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(B){_.D(B,wL2)&&(B=_.D(B,wL2))&&(B.serializedTransactionFlowLoggingParams?_.EcN(B.serializedTransactionFlowLoggingParams):B.serializedYpcCancelFlowLoggingParams?(B=B.serializedYpcCancelFlowLoggingParams)&&_.xL("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",B):B.serializedYpcResumeFlowLoggingParams?(B=B.serializedYpcResumeFlowLoggingParams)&&_.xL("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",B):B.serializedYpcPauseFlowLoggingParams?(B=B.serializedYpcPauseFlowLoggingParams)&&
_.xL("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",B):B.serializedYpcRefundFlowLoggingParams?(B=B.serializedYpcRefundFlowLoggingParams)&&xee("YPC_EVENT_TYPE_START",B):B.serializedYpcDeactivateFlowLoggingParams?(B=B.serializedYpcDeactivateFlowLoggingParams)&&_.xL("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",B):B.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(B=B.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.xL("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",B))},
handleLogYpcFlowDismiss_:function(B){_.D(B,dfm)&&(B=_.D(B,dfm),B.serializedTransactionFlowLoggingParams?_.Q$d(B.serializedTransactionFlowLoggingParams):B.serializedYpcCancelFlowLoggingParams?(B=B.serializedYpcCancelFlowLoggingParams)&&_.xL("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",B):B.serializedYpcResumeFlowLoggingParams?(B=B.serializedYpcResumeFlowLoggingParams)&&_.xL("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",B):B.serializedYpcPauseFlowLoggingParams?(B=
B.serializedYpcPauseFlowLoggingParams)&&_.xL("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",B):B.serializedYpcRefundFlowLoggingParams&&(B=B.serializedYpcRefundFlowLoggingParams)&&xee("YPC_EVENT_TYPE_CANCEL",B))}}];var tNn={};tNn.YtCancelRecurrenceBehavior=[_.Tk.YtComponentBehavior,_.$g4,{attached:function(){var B=this;LRm(this,function(R,V){return B.ypcCancelRecurrenceHandler(R,V)})},
ypcCancelRecurrenceHandler:function(B,R){var V=this;if(!R||!R.ypcCancelRecurrenceEndpoint)return!1;if(!R.ypcCancelRecurrenceEndpoint.params)return _.IP(Error("ul")),!0;_.PI(this.hostElement);var e=_.QK.instance,X=_.Oz().resolve(_.uj(_.H$));e&&_.qx(e,R)?_.cr(e,R).then(function(Y){V.ypcCancelRecurrenceSuccess_(B,R,{data:Y})},function(Y){V.ypcCancelRecurrenceFailure_(B,R,Y)}).thenCatch(function(){_.IP(Error("vl"))}):X?X.requestDataForServiceEndpoint(R).then(function(Y){V.ypcCancelRecurrenceSuccess_(B,
R,Y)},function(Y){V.ypcCancelRecurrenceFailure_(B,R,Y)}).thenCatch(function(){_.IP(Error("vl"))}):_.IP(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(B,R,V){_.nw(this.hostElement);V.data||(V={data:V});V.data&&V.data.actions&&_.eO(this.hostElement,V.data.actions,this.hostElement);V.data.messageRenderer?vD7(R.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(R=R.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.xL("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",R);_.OI(B,"yt-service-request-completed",V)},
ypcCancelRecurrenceFailure_:function(B,R,V){_.nw(this.hostElement);vD7(R.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.OI(B,"yt-service-request-error",{error:V,params:[B,R]})}}];var WxU=function(B,R){_.o5.call(this,R)};
_.l(WxU,Rwj);var bAN={};bAN.YtCompleteTransactionBehavior=[_.Tk.YtComponentBehavior,_.$g4,{attached:function(){var B=this;LRm(this,function(R,V){return B.ypcCompleteTransactionHandler(R,V)})},
completeTransaction:function(B,R){var V=this;R={payments_payload:window.btoa(R.integratorData),buybucket_params:B.data.buybucketParams,offer_params:B.data.offerParams};var e=_.Oz().resolve(_.H$),X=B.data.completeTransactionEndpoint,Y=this.get("ypcCompleteTransactionEndpoint.actions",X);Y&&_.eO(this.hostElement,Y,this.hostElement);return(Y=_.QK.instance)&&_.qx(Y,X)?_.cr(Y,X,R).then(function(t){return!t||(t==null?0:t.error)?(t=V.get("data.serializedTransactionFlowLoggingParams",B),_.SR(new ot("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
t))):{data:t}}).then(function(t){return V.handleCompleteTransactionSuccess_(t,B)},function(){return V.handleCompleteTransactionFailure_(B)}):e.requestDataForServiceEndpoint(X,R).then(function(t){return V.handleCompleteTransactionSuccess_(t,B)},function(){return V.handleCompleteTransactionFailure_(B)})},
handleCompleteTransactionSuccess_:function(B,R){B.data||(B={data:B});if(B.data.messageRenderer)return _.SR(new WxU(B.data.messageRenderer));if(B.data.trackingParams){var V=_.TE(),e=_.wT();V&&e&&_.EV(V,e,_.U5(B.data.trackingParams))}R=this.get("data.serializedTransactionFlowLoggingParams",R);LAo(R);return _.XT(B)},
handleCompleteTransactionFailure_:function(B){B=this.get("data.serializedTransactionFlowLoggingParams",B);_.q1("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",B);return _.SR(new ot("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",B))},
ypcCompleteTransactionHandler:function(B,R){var V=this;if(!R.ypcCompleteTransactionEndpoint)return!1;if(!R.ypcCompleteTransactionEndpoint.transactionParams)return _.IP(Error("xl")),!0;R.ypcCompleteTransactionEndpoint&&R.ypcCompleteTransactionEndpoint.gtmData&&_.Gk(R.ypcCompleteTransactionEndpoint.gtmData);var e=_.Oz().resolve(_.uj(_.H$));if(e){_.PI(this.hostElement);var X=_.QK.instance;X&&_.qx(X,R)?_.cr(X,R).then(function(Y){return!Y||(Y==null?0:Y.error)?(Y=V.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
R),_.SR(new ot("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",Y))):{data:Y}}).then(function(Y){_.OI(B,"yt-service-request-completed");
V.ypcCompleteTransactionSuccess_(R,Y)},function(){return V.ypcCompleteTransactionFailure_(R)}):e.requestDataForServiceEndpoint(R).then(function(Y){_.OI(B,"yt-service-request-completed");
V.ypcCompleteTransactionSuccess_(R,Y)},function(){return V.ypcCompleteTransactionFailure_(R)})}return!0},
ypcCompleteTransactionSuccess_:function(B,R){_.nw(this.hostElement);R.data||(R={data:R});_.oF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);R.data.messageRenderer||R.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(B):(_.Gk('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",B));R.data.actions&&(B=Z04(R.data.actions),R=md4(R.data.actions),B.length&&_.VD(this.hostElement,
B),R.length&&_.eO(this.hostElement,R,this.hostElement))},
ypcCompleteTransactionFailure_:function(B){_.nw(this.hostElement);_.oF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",B,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(B,R,V){if(R=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",R))R={serializedTransactionFlowLoggingParams:R},V&&(R.errorType=V),_.dn(B,R),_.wn()}}];var Je7={};Je7.YtEndpointHandlerWithYpcBehavior=[_.$g4,_.$Z.YtActionHandlerBehavior,[{openWalletDialog:function(B,R,V,e,X,Y,t){var b=this,J=_.A3();R=R.replace(/-/g,"+").replace(/_/g,"/");var G=_.UV().get("hl");_.MUY(_.hn(_.c$),R,J.resolve,X,function(y){Y&&Y();J.reject(y)},G,function(y){return b.onServerBackendAnalyticEvent_(B,V,y)},this.onDialogClose_.bind(this),e,t);
return J.promise},
openFixFlowDialog:function(B,R,V,e){B=B.replace(/-/g,"+").replace(/_/g,"/");_.hn(_.c$).openFixFlowDialog(B,R,V,e)},
onDialogClose_:function(){_.oF(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(B,R,V){_.OI(B,"yt-commerce-action-init-done");R&&_.VD(this.hostElement,[R,{backend_analytics:V}])}}],
_.Ro.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(B,R){B=this.get("data.nativeFlowEndpoint",R);R=this.get("data.fallbackEndpoint",R);B?_.VD(this.hostElement,[B]):R&&_.OI(this.hostElement,"yt-navigate",{endpoint:R})}}],
tNn.YtCancelRecurrenceBehavior,bAN.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 B=this;LRm(this,function(R,V,e){return B.handleYPCEndpoint(R,V,e)});
this.ypcRegisterActionMapJobId_=_.kD(_.dV,function(){B.registerActionMap(B.buyFlowActionMap_)})},
detached:function(){var B=this;_.dV.cancelJob(this.ypcRegisterActionMapJobId_);_.kD(_.dV,function(){B.unregisterActionMap(B.buyFlowActionMap_)})},
handleYPCEndpoint:function(B,R,V){var e=R.ypcGetCartEndpoint;if(e){_.lF("commerce_transaction");var X=e.gtmId;X&&_.Nq(X);(e=e.gtmData)&&_.Gk(e)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",R)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(B,R),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",R)!=null?(this.handleYPCFixInstrumentEndpoint_(B,R),!0):R.ypcPauseSubscriptionCommand?(d1m(this.hostElement,B,R,V),
!0):R.ypcResumeSubscriptionCommand?(x12(this.hostElement,B,R),!0):R.getPaymentInstrumentsParamsCommand?(lxn(this.hostElement,B,R),!0):R.ypcHandleTransactionEndpoint?(D1e(this.hostElement,B,R,V),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(B,R){var V=this;_.zp("ttcr",void 0,"commerce_transaction");R=R.ypcGetCartEndpoint;var e=R.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,X=e.encryptedPurchaseParams,Y=e.serializedTransactionFlowLoggingParams,t=e.serializedPaymentsClientParams,b=this.createGetCartResponseFromParams_(e,R.offerParams,Y);this.changeButtonState(B,!0);_.fT(this.openWalletDialog(B,X,e.ypcLogWalletAnalyticDataEndpoint,Y,function(){V.changeButtonState(B,!1)},function(){V.changeButtonState(B,
!1)},t).then(function(J){return V.handleBuyFlowCompleteCallback_(B,b,J)},function(){return V.handleOnLoadError(b)}).then(function(J){return void V.handlePostPurchaseSuccess_(B,b,J)},function(J){return void V.handlePostPurchaseError_(J)}),function(){V.changeButtonState(B,!1);
B instanceof Element&&_.OI(B,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(B,R,V){var e=B.completeTransactionEndpoint,X=B.handleTransactionEndpoint;R={data:{offerParams:window.btoa(R),serializedTransactionFlowLoggingParams:V}};X?R.data.handleTransactionEndpoint=X:R.data.completeTransactionEndpoint=e;B.onCartDismissCommand&&(R.data.onCartDismissCommand=B.onCartDismissCommand);return R},
onGetCartServiceRequestCompleted_:function(B,R){var V=this,e=B.target;if(R&&R.data&&R.data.messageRenderer)_.nw(this.hostElement),this.handleMessageRenderer_(R.data.messageRenderer),this.changeButtonState(e,!1);else{var X=this.get("data.encryptedPurchaseParams",R),Y=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",R),t=this.get("data.ypcLogWalletAnalyticDataEndpoint",R),b=this.get("data.serializedPaymentsClientParams",R),J=this.getLoggingParams_(R);if(J||X||Y)B.stopPropagation(),_.zp("ttcr",
void 0,"commerce_transaction"),X||_.nw(this.hostElement),this.changeButtonState(e,!1),Y?_.oF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.vE("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:Y}}},this]):X&&(this.changeButtonState(e,!0),B=null,B=this.openWalletDialog(e,X,t,J,function(){_.nw(V.hostElement);V.changeButtonState(e,!1)},function(){_.nw(V.hostElement);
V.changeButtonState(e,!1)},b),_.fT(B.then(function(G){return V.handleBuyFlowCompleteCallback_(e,R,G)},function(){return V.handleOnLoadError(R)}).then(function(G){return V.handlePostPurchaseSuccess_(e,R,G)},function(G){return V.handlePostPurchaseError_(G)}),function(){V.changeButtonState(e,!1);
_.OI(e,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(B,R){R&&R.endpoint&&R.endpoint.ypcGetCartEndpoint&&!R.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",R.endpoint.ypcGetCartEndpoint)&&_.eO(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",R.endpoint.ypcGetCartEndpoint)],B.target),_.PI(this.hostElement),this.changeButtonState(B.target,!0))},
onServiceRequestError_:function(B,R){if(R&&R.params&&R.params.length){R=_.h(R.params);for(var V=R.next();!V.done;V=R.next())if((V=V.value)&&V.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",V.ypcGetCartEndpoint)&&_.eO(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",V.ypcGetCartEndpoint)],B.target);_.nw(this.hostElement);this.changeButtonState(B.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(B,R,V){var e=V.integratorData;return e==null||e===""||V.error!=null?(e=this.getLoggingParams_(R),String(V.error)==="-1"?(R.data.onCartDismissCommand&&_.eO(this.hostElement,[R.data.onCartDismissCommand],B),_.SR(new ot("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",e,!0))):_.SR(new ot("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",e))):R.data.handleTransactionEndpoint?fxU(this.hostElement,R.data.handleTransactionEndpoint,{payments_payload:e,funds_guarantee_callback_client_data:V.integratorClientCallbackData}):
this.completeTransaction(R,V)},
handlePostPurchaseSuccess_:function(B,R,V){R=V.data;var e=!1,X,Y;if(R&&((X=R.command)==null?0:(Y=X.commandExecutorCommand)==null?0:Y.commands)){var t,b;X=(t=R.command)==null?void 0:(b=t.commandExecutorCommand)==null?void 0:b.commands;for(t=0;t<X.length;t++)if(_.D(X[t],_.Ff4)){e=!0;break}}e||(R&&R.gtmDatas&&R.gtmDatas.length?_.Gk(R.gtmDatas[0]):_.Gk('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));V.data&&V.data.actions&&(R=Z04(V.data.actions),V=md4(V.data.actions),R.length&&
_.VD(this.hostElement,R),V.length&&_.eO(this.hostElement,V,B))},
handlePostPurchaseError_:function(B){B&&B.payload&&B.payload.isUserDismiss||_.Tn(Error("zl"))},
handleOnLoadError:function(B){B=this.getLoggingParams_(B);return _.SR(new ot("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",B))},
getLoggingParams_:function(B){return this.get("data.serializedTransactionFlowLoggingParams",B)},
handleMessageRenderer_:function(B){var R=_.TM(B,"renderer"),V=_.vE("openPopupConfig");R==="confirmDialogRenderer"&&V&&_.oF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:V.popupTypeMap[R],popup:B}},this])},
handleYPCFixInstrumentEndpoint_:function(B,R){var V=this,e=R.ypcFixInstrumentEndpoint;R=e.encryptedFixInstrumentParameters;this.logFixFopEvent_(e,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(B,!0);this.openFixFlowDialog(R,function(X,Y){V.onFixFlowCompleteCallback_(e,X,Y)},function(){return V.changeButtonState(B,!1)},function(){V.changeButtonState(B,!1);
V.logFixFopEvent_(e,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(B,R,V){var e=_.qN("payments.business.integration.scenario.FixInstrument");if(R==e.IntegratorCallbackType.ON_COMPLETE){R="FIX_FOP_EVENT_TYPE_CANCEL";var X=null;V.error!=null?V.error!=e.OnCompleteCallbackError.USER_CANCELLED&&(_.eO(this.hostElement,[B.errorAction],this.hostElement),R="FIX_FOP_EVENT_TYPE_FAILURE",X="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.eO(this.hostElement,[B.successAction],this.hostElement),R="FIX_FOP_EVENT_TYPE_SUCCESS");_.eO(this.hostElement,[B.onFinishAction],
this.hostElement);this.logFixFopEvent_(B,R,X)}},
logFixFopEvent_:function(B,R,V){(B=B.serializedFixFopLoggingParams)?(R={eventType:R,serializedFixFopLoggingParams:B},V!=null&&(R.errorType=V),_.dn("fixFopFlow",R),_.wn()):_.Tn(Error("Al"))},
changeButtonState:function(B,R){_.k("enable_ypc_spinners")&&B&&(B.is==="yt-button-renderer"||B.is==="ytd-button-renderer")&&(B.disabled=R)}}];var jne=function(B){this.JSC$28648_clientRoot=B;this.feedbackCollectorActionMap={"yt-help-dialog-requested":vAn,"yt-feedback-dialog-requested":L56,"yt-signal-action-help":K52,"yt-signal-action-send-feedback":Ixm,"yt-send-feedback-action":QGo,"yt-user-feedback-endpoint":qX6};_.Fo(_.sd.getInstance(),this.feedbackCollectorActionMap,this.JSC$28648_clientRoot)},U8o;var NIn=function(B){this.JSC$28653_clientRoot=B;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":cz4.bind(null,this.JSC$28653_clientRoot),"yt-signal-action-delete-all-downloads":iko,"yt-signal-action-delete-download":sGr,"yt-signal-action-delete-playlist-download":rz4,"yt-signal-action-install-pwa":Pi7,"yt-signal-action-refresh-downloads":$1N,"yt-offline-video-endpoint":us6,"yt-offline-playlist-endpoint":op2,"yt-update-local-app-setting-command":R1o,"yt-offline-orchestration-action-command":e1N,
"yt-signal-action-undo-delete-download":Zki,"yt-local-watch-history-command":Yxe};_.Fo(_.sd.getInstance(),this.downloadManagerActionMap,this.JSC$28653_clientRoot);_.Kk.instance=new _.Kk},G94;var A9=function(){var B=_.c.apply(this,arguments)||this;B.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_"};B.remoteApi_=null;return B};
_.l(A9,_.c);_.p=A9.prototype;
_.p.ready=function(){_.k("polymer_enable_mdx")&&(TMN({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.k("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.k("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.k("enable_cast_short_lived_lounge_token")}),_.Xo("yt-remote-connection-change",this.handleConnectionChange_,this),_.Xo("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=QD6())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.p.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.p.handleConnectionChange_=function(B){(this.mdxConnected=B)?(B=vZz(),!B&&xdU()&&Lyr()&&(B={key:"cast-selector-receiver",name:Lyr()}),B=B.name):B=null;this.receiverName=B;_.Cx(this.remoteApi_);(this.remoteApi_=QD6())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.p.handleReceiverAvailabilityChange_=function(){var B=LDo();xdU()&&_.tp("yt-remote-cast-available")&&B.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=B.length>0};
_.p.handleRemoteQueueChange_=function(){var B=this.currentVideoId_,R=this.currentListId_,V=p1(this.remoteApi_);this.currentVideoId_=V.videoId;this.currentListId_=V.listId;this.currentVideoId_&&_.oF(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.k("polymer_enable_mdx_queue")?this.currentListId_:null,B,R])};
_.p.handleAddToQueueAction_=function(B){B=_.D(B,bt6);this.remoteApi_&&(B.videoId?this.remoteApi_.addVideo(B.videoId):B.playlistId&&this.remoteApi_.addPlaylist(B.playlistId))};
_.p.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.p.handleInsertInQueueAction_=function(B){B=_.D(B,JG4);this.remoteApi_&&B.videoId&&this.remoteApi_.JSC$17481_insertVideo(B.videoId)};
_.p.handleRemoveFromQueueAction_=function(B){B=_.D(B,ji2);this.remoteApi_&&B.videoId&&this.remoteApi_.JSC$17481_removeVideo(B.videoId)};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],A9.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E(),_.Z("design:type",Object)],A9.prototype,"appId",void 0);_.r([_.E(),_.Z("design:type",Boolean)],A9.prototype,"mdxConnected",void 0);_.r([_.E(),_.Z("design:type",Boolean)],A9.prototype,"receiverAvailable",void 0);_.r([_.E(),_.Z("design:type",Object)],A9.prototype,"receiverName",void 0);_.r([_.E(),_.Z("design:type",Object)],A9.prototype,"currentVideoId_",void 0);
_.r([_.E(),_.Z("design:type",Object)],A9.prototype,"currentListId_",void 0);A9=_.r([_.fJ({is:"yt-mdx-manager",disableElementRegistration:!0})],A9);_.F(A9,"yt-mdx-manager",void 0,{mode:2});var yer;var SwU;var iV=function(){var B=_.c.apply(this,arguments)||this;B.APP_IDS={ytr:3,ytm:5};B.JSC$18719_timeoutId_=0;B.actionMap={"yt-open-create-family-dialog":"open"};return B};
_.l(iV,_.c);_.p=iV.prototype;_.p.created=function(){$Uz(2200)};
_.p.detached=function(){this.observer_&&this.observer_.disconnect()};
_.p.open=function(B,R){var V=this,e=B.serializedYpcFamilyCreateLoggingParams;this.JSC$18719_timeoutId_=setTimeout(this.abort_.bind(this,B.postFlowErrorEndpoint,e),3E4);R&&(this.onReadyCallback_=R);var X=_.w(this.hostElement).querySelector("#unicorn-iframe");e&&e&&Tnj("ypcFamilyCreateFlowStarted",e);_.f$x("family_creation",function(){var Y=_.qN("gapi.family_creation.render");_.qN("gapi.config.update")("iframes/family_creation/url",V.getFamilyCreationUrlWithUnicornParams_());var t=3;B.appId&&B.appId in
V.APP_IDS&&(t=V.APP_IDS[B.appId]);t={authUser:_.vE("SESSION_INDEX")||0,clientId:t,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.vE("HL"),initialflow:[4,5,6,7],m:V.isMobile?1:0,onFlowComplete:V.onUnicornFlowComplete_.bind(V,B.postFlowSuccessEndpoint,e),onError:V.onUnicornFlowError_.bind(V,B.postFlowErrorEndpoint,e),onReady:V.onUnicornFlowReady_.bind(V,B.referencePcidParams)};Y(X,t)})};
_.p.close=function(){_.w(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.p.onUnicornFlowComplete_=function(B,R){this.close();R&&R&&Tnj("ypcFamilyCreateFlowSucceeded",R);_.OI(this.hostElement,"yt-navigate",{endpoint:B})};
_.p.onUnicornFlowError_=function(B,R){this.close();R&&Tnj("ypcFamilyCreateFlowCancelled",R);_.OI(this.hostElement,"yt-navigate",{endpoint:B})};
_.p.onUnicornFlowReady_=function(B){var R=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();B&&_.qN("gapi.family_creation.setConfig")(0,B);this.observer_=new MutationObserver(function(){_.w(R.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.w(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.w(this.hostElement).querySelector("#dialog").open()};
_.p.getFamilyCreationUrlWithUnicornParams_=function(){return _.vE("YTR_FAMILY_CREATION_URL")};
_.p.getCurrentUrl_=function(){return document.location.href};
_.p.abort_=function(B,R){this.clearTimeout_();this.onUnicornFlowError_(B,R)};
_.p.clearTimeout_=function(){clearTimeout(this.JSC$18719_timeoutId_)};
_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],iV.prototype,"ytActionHandlerBehavior",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],iV.prototype,"isMobile",void 0);_.r([_.E(),_.Z("design:type",Object)],iV.prototype,"onReadyCallback_",void 0);_.r([_.E(),_.Z("design:type",Object)],iV.prototype,"observer_",void 0);iV=_.r([_.fJ({is:"yt-create-family-dialog",disableElementRegistration:!0})],iV);
_.F(iV,"yt-create-family-dialog",function(){if(SwU===void 0){var B=document.createElement("template");_.a(B,'\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');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);var R=B.content,V=R.insertBefore;yer===void 0&&(yer=document.createElement("template"));var e=yer;V.call(R,e.content.cloneNode(!0),B.content.firstChild);SwU=B}B=SwU;return B},{mode:2});var HAe;var MNj;var sR=function(){var B=_.c.apply(this,arguments)||this;B.STEP=1;B.BLOCK_ON=80;B.MIN_PROGESS=0;B.MAX_PROGESS=100;return B};
_.l(sR,_.c);_.p=sR.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));_.Oz().addProvider({provide:Jdi,useValue:this})};
_.p.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.p.finish=function(){var B=this;this.progress=this.MAX_PROGESS;h14(function(){B.progress==B.MAX_PROGESS&&(B.hostElement.hidden=!0)})};
_.p.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.mh.Object.defineProperties(sR.prototype,{progress:{configurable:!0,enumerable:!0,set:function(B){this.progress_=B;var R="scaleX("+B/this.MAX_PROGESS+")",V=_.w(this.hostElement).querySelector("#progress").style;V.transform=R;V.webkitTransform=R;this.hostElement.setAttribute("aria-valuenow",String(B))},
get:function(){return this.progress_}}});
_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],sR.prototype,"ytComponentBehavior",void 0);sR=_.r([_.fJ({is:"yt-page-navigation-progress",disableElementRegistration:!0})],sR);
_.F(sR,"yt-page-navigation-progress",function(){if(MNj===void 0){var B=document.createElement("template");_.a(B,'\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');B.content.insertBefore(_.u().content.cloneNode(!0),
B.content.firstChild);var R=B.content,V=R.insertBefore;HAe===void 0&&(HAe=document.createElement("template"));var e=HAe;V.call(R,e.content.cloneNode(!0),B.content.firstChild);MNj=B}B=MNj;return B},{mode:2});var k9r={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"},D8m={"font-size":"12px","font-style":"italic"},fwn={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.JMm=function(){return _.W(function(B){_.b3(B)})};_.mR(_.sx(function(){var B=_.w1(_.r9I);return _.N("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var R;return(R=B())==null?void 0:R.announcement})},"Tg"),"yt-ephemeral-actions");var xUn=new Map;var tbo=function(B,R){var V=this;this.handleError=B;this.logEventInternal=R;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){V.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
tbo.prototype.logError=function(B){this.handleError(B)};
tbo.prototype.logEvent=function(B,R){switch(B){case "IDB_DATA_CORRUPTED":_.k("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",R);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",R);break;case "IS_SUPPORTED_COMPLETED":_.k("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",R);break;case "QUOTA_EXCEEDED":lwo(this,R);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",R);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":B=Object.assign({},R,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",B)}};
var lwo=function(B,R){_.bu.getInstance().estimate().then(function(V){V=Object.assign({},R,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:vpn(V==null?void 0:V.usage),deviceStorageQuotaMbytes:vpn(V==null?void 0:V.quota)});B.logEventInternal("idbQuotaExceeded",V)})};var FG=function(){var B=_.c.apply(this,arguments)||this;B.tabGesturesIsActive=!1;B.deprecateFullerscreenUi=_.k("web_watch_fullerscreen_deprecation_ui");B.hasDelegation=!1;B.darkerDarkTheme=_.k("web_darker_dark_theme");B.isFrostedGlassInitialized=!1;B.frostedGlassExp=_.k("web_frosted_glass");B.mastheadHiddenFocusWithinKillswitch=_.k("web_masthead_hidden_focus_within_killswitch");B.ephemeralActionsEnabled=_.k("web_ephemeral_actions");B.scrollAtTop=!0;B.guideScrollTop=0;B.isTheaterModeSession=_.KQ("START_IN_THEATER_MODE");
B.iMaxTheaterMode=_.k("web_watch_imax_theater_mode");B.isFullWindowSession=_.KQ("START_IN_FULL_WINDOW_MODE");B.hasCreateFamilyDialog=!1;B.mastheadHeight=56;B.networkStatusManager=new _.A$;B.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"};B.dynamicActionMap={"yt-run-attestation-command":function(R){var V=_.dHv.instance,e=_.D(R,_.bUJ);return e?_.k("use_rta_manager_for_async")&&
$ni()?q57(V,e,R.clickTrackingParams):QTU(V,e,R.clickTrackingParams):_.SR(Error("li"))}};
B.isFrostedGlassDisabled=!1;B.isChannelOrPlaylistPage=!1;return B};
_.l(FG,_.c);_.p=FG.prototype;_.p.created=function(){var B=_.Oz();_.k("kevlar_clear_duplicate_pref_cookie")&&_.kD(_.dV,function(){var R=_.UB.get("PREF");R&&!/f\d=/.test(R)&&(R=_.V_("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=R?"PREF=null;domain="+R+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.k("gzip_gel_with_worker")&&_.KPS();_.k("jspb_serialize_with_worker")&&H6e();_.k("web_worker_availability_check")&&La4();_.k("nwl_init_killswitch")||y$n().then(function(){_.dV.addLowPriorityJob(qVo)});
this.pageManagerAttachedPromise=_.A3();this.ytdAppBehavior.loadDepsPromise=_.DG([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.o7(this.onThrottledScroll,200,this);_.k("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);W42();BbU=!!_.qN("ytappsettings.initialized");bU=_.qN("ytappsettings.previousValue");WAi=_.qN("ytappsettings.previousSnapshotTime");BbU||(BbU=!0,bE7());rE6();g82();_.LQ("DEFERRED_DETACH",
_.k("kevlar_tuner_should_defer_detach"));_.LQ("REUSE_COMPONENTS",!0);_.LQ("STAMPER_STABLE_LIST",!0);_.LQ("SCHEDULED_LAZY_LIST",!0);_.LQ("openPopupConfig",wP7);_.LQ("useClickHandler",!0);_.k("kevlar_shell_cleanup")&&_.dV.addLowPriorityJob(O64.bind(this,_.R5.caches));_.KQ("IS_SHELL_LOAD")&&_.f0({shellStartupDurationMs:Math.round((0,_.P8)()-_.SO())});Gv2(this.networkStatusManager);_.k("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",tmz(k9r)),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!",
tmz(D8m)),console.log("%cVisit http://go/join-youtube-web to apply today.",tmz(fwn)));_.WoU(B.resolve(_.YL),1E3)};
_.p.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var B=TVU();B&&!_.k("external_fullscreen_killswitch")&&document.addEventListener(B,this.setFullscreen.bind(this));(B=window.matchMedia("(prefers-color-scheme: dark)"))&&B.addEventListener&&B.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.p.attached=function(){var B=this;_.Ep().processSignal("ci");_.k("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.FXd?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.GT(_.r8Z(),"SUCCESS");this.updateIconSet();_.np(this.guideInnerContent,!1);_.pF().initVisibilityObserver();this.guideService.guideElement=this.guide;var R=document.createElement("ytd-miniplayer"),V=_.w(this.hostElement).querySelector("#content");
_.w(this.hostElement).insertBefore(R,V);_.Ep().processSignal("ma");_.Oz().resolve(_.An).init(R);_.KQ("IS_SHELL_LOAD")&&(V=document.createElement("ytd-network-status-banner"),_.w(this.hostElement).insertBefore(V,R));_.k("kevlar_right_click_on_lockups")&&_.rv._onCaptureClick&&document.addEventListener("contextmenu",_.rv._onCaptureClick.bind(_.rv),!0);var e=function(){var X=_.rM("yt-page-navigation-progress");_.w(B.hostElement).appendChild(X)};
setTimeout(function(){_.Ep().parkOrScheduleJob(e,0,"eocs",16)},0);
_.k("service_worker_push_enabled")&&_.kD(_.dV,w56);_.Fo(_.sd.getInstance(),this.dynamicActionMap,this.hostElement);_.OI(this.hostElement,"ytd-app-attached");_.Ep().processSignal("aa");Z6n(this.hostElement);_.mk("gapi.load",_.f$x);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.kD(_.dV,
function(){var X=document.createElement("ytd-video-preview");_.w(_.w(B.hostElement).querySelector("#video-preview")).appendChild(X)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.kD(_.dV,function(){j_2();B.registerViewTransitionTasks()});
if(_.v$()&&this.isAppDarkTheme()!==_.xA())this.onDarkModeToggledAction();else R=_.Lk()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==R&&(_.k("enable_dark_theme_only_on_shorts")?_.TF(_.k("enable_dark_theme_only_on_shorts_control")?window.location.href:_.rg(window.location.href,{theme:"dark"})):_.KE(new _.H8("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(vEU=new Lzj(this.hostElement)),G94=new NIn(this.hostElement),U8o=new jne(this.hostElement),uwz=new nE4(this.hostElement)};
_.p.getThemeSettingsToLog=function(){var B=_.Lk()==="USER_INTERFACE_THEME_DARK";B=_.v$()?_.xA()?"os-dark":"os-light":B?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:B,cookiesEnabled:_.GK()}};
_.p.detached=function(){_.us(this.guideInnerContent);_.dV.cancelJob(pH);pH=0;_.dV.cancelJob(hg);hg=0;_.PiK(gWe);gWe.length=0;suN=_.GxZ=null;_.pF().dispose();_.k("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.rn(_.sd.getInstance(),vEU.playlistHandlerActionMap,vEU.JSC$28349_clientRoot);_.rn(_.sd.getInstance(),G94.downloadManagerActionMap,G94.JSC$28653_clientRoot);_.rn(_.sd.getInstance(),U8o.feedbackCollectorActionMap,U8o.JSC$28648_clientRoot);
for(var B=_.h(uwz.eventListeners),R=B.next();!R.done;R=B.next()){var V=_.h(R.value);R=V.next().value;V=V.next().value;V=_.h(V);for(var e=V.next();!e.done;e=V.next()){var X=_.h(e.value);e=X.next().value;X=X.next().value;R.removeEventListener(e,X)}}_.rn(_.sd.getInstance(),uwz.autonavPauseActionMap,uwz.JSC$17666_clientRoot)};
_.p.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.UV().getFlag(186)};
_.p.computeIsInlinePreviewEnabled=function(B,R,V){return!V&&_.pUn({miniplayerIsActive:B,miniplayerPlaybackState:R})};
_.p.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.or({type:"SET_FROSTED_GLASS_MODE",payload:!_.k("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(B,R,V,e){return B||R||V||e&&_.k("web_frosted_glass_disable_watch")};
_.p.computeIsHomePage=function(B,R){if(!B||R==null||!R.endpoint)return!1;var V;return((V=_.D(R.endpoint,_.Jz))==null?void 0:V.browseId)==="FEwhat_to_watch"};
_.p.updateIsChannelOrPlaylistPage=function(){if(_.k("web_frosted_glass")){var B,R,V=(R=(B=_.Oz().resolve(_.uj(_.$B)))==null?void 0:B.getCurrentPage())==null?void 0:R.pageSubtype;this.isChannelOrPlaylistPage=V?["channel","channels","playlist"].includes(V):!1}};
_.p.scheduleFrostedGlassInitialization=function(){var B=this;_.k("web_frosted_glass")&&_.Ep().parkOrScheduleJob(function(){B.isFrostedGlassInitialized=!0},0,_.Ls(["eocs",
"cr"]),300)};
_.p.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.cQa(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.or({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.or({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.p.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(gBe(!0))};
_.p.onYtSignalActionRequestPersistentStorage=function(){if(!_.k("request_persistent_storage_killswitch")){var B=_.Oz().resolve(_.p2n);B.cachedPersistStatePromise||(B.cachedPersistStatePromise=tQr())}};
_.p.handleYtChannelCreationFormEndpoints=function(B){B&&this.ytComponentBehavior.resolveCommand(B)};
_.p.handleShowEngagementPanelEndpoint=function(B){B&&this.ytComponentBehavior.resolveCommand(B)};
_.p.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(gBe(!1))};
_.p.initIconDefs=function(B,R,V){var e=document.createElement("iron-iconset-svg");e.name=B;B=document.createElementNS("http://www.w3.org/2000/svg","svg");e.appendChild(B);B.appendChild(R);if(V)for(var X in V)e[X]=V[X];document.body.appendChild(e);return e};
_.p.onWindowResized=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var B=_.C2S.getInstance();B.documentWidth_=document.body.clientWidth;WR4(B)};
_.p.onWindowScrolled=function(){var B=_.Oz().resolve(_.$B).getCurrentPage();if(B!=null&&B.getScrollTop){var R=this.ytdReduxBehavior,V=R.dispatch;B=B.getScrollTop()<=0;V.call(R,_.or({type:"SET_SCROLL_AT_TOP",payload:B}))}};
_.p.guideIsVisibleButNotPersistentSelectorChanged=function(){var B=_.Oz().resolve(_.$B).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=B.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"),
B.setScrollTop(this.guideScrollTop));_.Bz(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.p.getCurrentPageScrollableElementType=function(){var B=_.Oz().resolve(_.$B).getCurrentPage();if(B&&B.getPageScrollingElement())return B.getPageScrollingElement().nodeName};
_.p.observeGuideVisibility=function(){var B=_.C2S.getInstance(),R=this.miniGuideVisible;B.guidePersistentAndVisible_=this.guidePersistentAndVisible;B.miniGuideVisible_=R;WR4(B)};
_.p.handleEduDismissAction=function(B){B&&B.eduDismissAction&&(_.oF(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.r5_.getInstance(),_.Cy.set(B.eduDismissAction.key+"-dismissed",!0))};
_.p.handleEduImpressionAction=function(B){if(B&&B.eduImpressionAction){var R=_.r5_.getInstance();B=B.eduImpressionAction.key;R.JSC$10815_eduDisplayedThisLoad_[_.FZS[B].setKey||B]=!0;_.Cy.set(B+"-impression",parseInt(_.Cy.get(B+"-impression")||0,10)+1)}};
_.p.onYtSignalActionConfirmMentionsEdu=function(){_.oF(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.uR.getInstance();_.ny.set("edu-dismissed",!0)};
_.p.onYtSignalActionRecordMentionsEduImpression=function(){_.uR.getInstance();var B=_.ny.set,R=parseInt(_.ny.get("edu-impressions"),10);B.call(_.ny,"edu-impressions",(isFinite(R)?R:0)+1)};
_.p.onYtPageManagerAttached=function(B){var R;((R=_.ii(B))==null?void 0:R.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.p.onInvokeInstrumentManagerAction=function(B,R){Q_7(R,B)};
_.p.updateIconSet=function(){var B=this.hostElement.querySelector("#masthead");if(B){var R=_.P$(B),V=R.querySelector("g#yt-logo-updated");V&&(B=document.createElementNS("http://www.w3.org/2000/svg","defs"),B.appendChild(V.cloneNode(!0)),(R=R.querySelector("g#yt-logo-red-updated"))&&B.appendChild(R.cloneNode(!0)),this.initIconDefs("yt-logos-ext",B))}};
_.p.updateMastheadData=function(){var B=this,R,V,e,X,Y;return _.W(function(t){if(t.nextAddress==1){R=B.data;V=B.hostElement.querySelector("#masthead");if(!V)return t.return();_.gB(B,function(){V.data=B.topbarData});
if(!B.get("response.topbar",R)||B.get("response.topbar.responseContext.maxAgeSeconds",R)===0)return t.jumpTo(0);if(e=_.Oz().resolve(_.sM))return _.U(t,e(),6);X=_.Oz().resolve(_.BO);return _.U(t,X.put("service:topbar:fallback",new _.Rf({innertubeResponse:B.get("response.topbar",R)})),0)}return(Y=t.yieldResult)?_.U(t,Y.put("service:topbar:fallback",new _.Rf({innertubeResponse:B.get("response.topbar",R)})),0):t.jumpTo(0)})};
_.p.computeTopbarData=function(B){if(!B)return null;var R;return this.isShortsPage&&this.topbarData&&!_.D((R=B.response)==null?void 0:R.topbar,u34)?this.topbarData:B.response&&"topbar"in B.response?_.D(B.response.topbar,u34)||null:null};
_.p.onSetTheaterModeEnabled=function(B,R){this.isTheaterModeSession=R.enabled;this.setTheaterModeStyles(R.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 B=_.tu(window.location.href);if(!_.znZ(B)){(B=!!_.FW(window.location.href).themeRefresh)&&_.KE(new _.H8("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!B){bE7();B={themeRefresh:1};var R=_.Oz().resolve(_.$B);if(R.isOnWatch()){var V,e;R=((V=R.getPlayerFromWatch())==null?void 0:(e=V.getPlayer())==null?void 0:e.getCurrentTime())||0;R>=1&&(B.time_continue=Math.floor(R))}_.GK()||_.Lk()!=="USER_INTERFACE_THEME_DARK"||(B.theme="dark");_.TF(_.rg(window.location.href,
B))}_.k("web_appshell_refresh_trigger")&&_.R5.caches&&this.refreshAppShellResponse();V=_.QT(window.location.href);_.Xq(_.Oz().resolve(_.pI),_.mc(V,"theme"))}};
_.p.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.p.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.p.onPlayerFullscreen=function(B){_.Cp();this.playerFullscreen=B};
_.p.setRestrictedMode=function(B){var R=_.UV();_.Nd(0,58,B);R.save();_.Oz().resolve(_.Xk).reload()};
_.p.onPageChanged=function(B){B.detail.newPageType==="ytd-watch-flexy"||B.detail.newPageType==="ytd-watch-fixie"||B.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.xQ("WEB_PAGE_TYPE_WATCH")):B.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.xQ("WEB_PAGE_TYPE_SHORTS")):B.detail.newPageType==="ytd-browse"&&B.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.xQ("WEB_PAGE_TYPE_MINI_APP")):_.k("web_frosted_glass")&&B.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.xQ("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.xQ("WEB_PAGE_TYPE_UNKNOWN"));B.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.p.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.p.onGuideToggleTap=function(){_.OI(this.hostElement,"yt-guide-toggle")};
_.p.onGuideToggleHover=function(){_.OI(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 B=_.P$(this.hostElement).querySelector("#masthead");B&&(B.dark=B.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),B.isDarkThemeForced=!1)};
_.p.onRequestPanelModeChange=function(B,R){this.hideHeaderShadow=R.mode!=="seamed"};
_.p.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.p.onDrawerIronSelect=function(B){_.ii(B).id==="guide"&&this.processDrawerIronSelect()};
_.p.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var B="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(B="opened"));_.OI(this.hostElement,"yt-autonav-pause-guide-"+B)};
_.p.onAddElementToApp=function(B){_.w(this.hostElement).appendChild(B.detail)};
_.p.onThrottledScroll=function(){var B=_.Oz().resolve(_.$B).getCurrentPage();B&&(this.scrollAtTop=B.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.p.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.p.setFullscreen=function(){if(_.k("external_fullscreen")||!this.isWatchPage){var B=_.k("kevlar_fullerscreen_root_only_killswitch")?!!_.Cp():!!_.Cp()&&_.Cp()===document.documentElement;B=(this.isWatchPage||_.k("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(B||this.isFullWindowSession);this.fullscreen!==B&&((this.fullscreen=B)&&_.Bz(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.g6().dispatch(_.ruj(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.oF(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.p.setFullscreenLoggingForShorts=function(B){var R,V,e;return _.W(function(X){if(X.nextAddress==1)return _.U(X,(R=_.Pr())==null?void 0:R.getPlayerPromise(),2);V=X.yieldResult;(e=V)==null||e.setAppFullscreen(B);_.b3(X)})};
_.p.updateMastheadCssHeight=function(){var B=this.mastheadHeight;this.fullscreen&&(B=0);_.o_(this.hostElement,{"--ytd-masthead-height":B+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.p.updateNetworkStatusBannerDisplayStatus=function(){var B="unset";this.fullscreen&&(B="none");_.o_(this.hostElement,{"--ytd-network-status-banner-display":B})};
_.p.updateNetworkStatusBannerCssHeight=function(){var B="unset";this.fullscreen&&(B="0px");_.o_(this.hostElement,{"--ytd-network-status-banner-max-height":B})};
_.p.updateScrollAndMasthead=function(B,R,V,e){this.iMaxTheaterMode||(e=!1);var X=_.Oz().resolve(_.$B).getCurrentPage();B||R||e?(document.body.classList.add("no-scroll"),X.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Bc(this,this.onScroll)),X.setScrollTop(0),_.o_(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.ww()+"px"})):V?_.OI(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.OI(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
X.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Bc(this,this.onScroll)));this.mastheadHidden=B||R||V;this.updateMastheadCssHeight();_.k("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.p.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.p.onYtNavigateAction=function(B){B=this.get("navigateAction.endpoint",B);_.OI(this.hostElement,"yt-navigate",{endpoint:B})};
_.p.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var B=document.createElement("yt-create-family-dialog");_.w(this.hostElement).appendChild(B);this.hasCreateFamilyDialog=!0}};
_.p.onSetPushNotificationsEnabledCommand=function(B){var R=this,V=_.D(B,nI2);V&&typeof V.enabled==="boolean"&&(Notification.permission!=="granted"?fho().then(function(){Notification.permission==="granted"?(p54(!V.enabled).then(tGe),V.successAction&&_.VD(R.hostElement,[V.successAction])):V.failureAction&&_.VD(R.hostElement,[V.failureAction])}):(p54(!V.enabled).then(tGe),V.successAction&&_.VD(this.hostElement,[V.successAction])))};
_.p.onYtSignalActionEnableChromeNotifications=function(){lhe(!0)};
_.p.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.D(this.topbarData.hotkeyDialog,Bfm)}}})};
_.p.onYtSignalActionShowKeyboardShortcutDialog=function(){_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.p.onYtEndpointChangeHandler=function(B,R){var V=_.hn(_.eS);V.pendingPrefetchJob_&&(R=!(!R||R.autonav!="1"),V.pendingPrefetchJob_.resolve(B&&_.yd_(B)?_.SHY(B,R):""),V.pendingPrefetchJob_=null);_.oF(this.hostElement,"yt-pause-active-page-context");_.oF(this.hostElement,"ytd-log-youthere-nav");_.oF(this.hostElement,"yt-prepare-page-dispose")};
_.p.handleCommandWithCommandHandler=function(B,R){_.eR.instance.resolveCommand(B,{form:{element:R}})};
_.p.onYtTimedCommand=function(B){var R=this;B=_.D(B,ATo);var V=B.command;V&&_.db(_.dV,function(){var e=_.D(V,_.NvS);e?(_.eR.instance.resolveCommand(V),R.maybeLogGetAnswerRequestTick(e)):_.eO(R.hostElement,[V],R.hostElement)},B.timeoutMs||0)};
_.p.maybeLogGetAnswerRequestTick=function(B){B&&B.isFirstRequest&&(_.lF("search_overview_answer"),_.zp("so_rq",void 0,"search_overview_answer"))};
_.p.onYtSignalActionSkipNavigation=function(){var B=_.Oz().resolve(_.$B).getCurrentPage();_.Zt(B)};
_.p.onYtSignalActionCopyDebugData=function(){qdN()};
_.p.handleEntityUpdateCommand=function(B){_.bz(_.D(B,_.HT2).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.p.logFlowLoggingEventCommand=function(B){if(B=_.D(B,_.t$_))if(B.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var R=B.flowEventNamespace,V=B.flowEventType,e=B.flowType;e&&R&&V&&_.Wz_(_.pk(R,V,B.flowEventMetadata),e)}else{R=_.hz();V=B.flowEventNamespace;e=B.flowEventType;var X=B.flowType;X&&V&&e&&_.YA(R,_.pk(V,e,B.flowEventMetadata),X,B.flowNonce)}};
_.p.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.p.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.p.onTouchStart=function(){var B=_.YZ();_.TE()&&_.Es(B.JSC$10966_screenManager,{visualElement:B.ve})};
_.p.handleSelectLanguageCommand=function(B){if(B=_.D(B,$ki).hl){var R=_.UV();R.set("hl",B);R.save();_.Oz().resolve(_.Xk).reload()}};
_.p.handleConfirmDialogEndpoint=function(B){(B=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(B))&&this.ytOpenPopupBehavior.openPopup(B)};
_.p.handleOpenPopupNavigationEndpoints=function(B,R){_.k("web_button_rework")&&(B=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(B))&&this.ytOpenPopupBehavior.openPopup(B,R)};
_.p.handleSaveCommandToSessionStorage=function(B){if(B=_.D(B,_.yoR)){var R=B.key;R&&B.command&&window.sessionStorage.setItem(R,JSON.stringify(B.command))}};
_.p.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(B){B&&B.active&&B.active.postMessage({type:"refresh_shell"})}).catch(function(B){B.name!=="SecurityError"&&_.Tn(B)})};
_.p.onDeviceThemeChanged=function(){var B=_.xA();_.Nd(_.UV(),185,B);_.UV().save()};
_.p.handleYtRegisterPromoCommand=function(B){if(_.D(B,Pvz)){var R=_.Oz().resolve(_.$B).getCurrentPage()||this.hostElement;pPn().registerPromoCommand(_.D(B,Pvz),R)}};
_.p.onYtNavigateHomeAction=function(){if(!_.k("kevlar_miniplayer_navigate_home_from_app_killswitch")){var B,R,V,e,X=(e=(B=this.topbarData)==null?void 0:(R=B.logo)==null?void 0:(V=R.topbarLogoRenderer)==null?void 0:V.endpoint)!=null?e:_.Ny;this.ytComponentBehavior.resolveCommand(X)}};
_.p.onYtLocationCollectionCommand=function(B){bJn(_.D(B,tE4))};
_.p.onYtGetLocationCommand=function(B){n8m(_.D(B,hrm),this)};
_.p.updateRenderGuideFromBinding=function(B){this.renderGuide=B.detail.value};
_.p.updateGuidePersistentAndVisibleFromBinding=function(B){this.guidePersistentAndVisible=B.detail.value};
_.p.updateMiniGuideVisibleFromBinding=function(B){this.miniGuideVisible=B.detail.value};
_.p.onThemeSelected=function(B,R){var V=_.UV(),e=B||R?B:_.xA(),X=(e&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!e&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.znZ(_.tu(window.location.href));_.Nd(0,165,B);_.Nd(0,174,R);V.save();X&&_.oF(this.hostElement,"yt-dark-mode-toggled-action",[e]);_.oF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.getCurrentTheme=function(){return _.v$()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Lk()};
_.p.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.p.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.p.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.p.handleShowConsentPrimitive=function(B){var R=this,V,e;return _.W(function(X){if(X.nextAddress==1){try{V=(e=_.Pr())==null?void 0:e.getPlayerPromise()}catch(Y){}return _.U(X,TH7(B,V),2)}_.oF(R.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.b3(X)})};
_.p.handleSelectActiveIdentityEndpointInternal=function(B){_.dr();B=_.D(B,_.Iu4);if(B!=null&&B.supportedTokens){B=_.h(B.supportedTokens);for(var R=B.next();!R.done;R=B.next())R=R.value,R.accountSigninToken&&_.TF(R.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.p.handleUpdatePermissionRoleCommand=function(B){if(B=_.D(B,_.KGR)){var R;this.hasDelegation=!((R=_.D(B.renderer,_.v6b))==null||!R.status)}};
_.p.registerViewTransitionTasks=function(){var B=this,R=_.Oz().resolve(_.uj(_.yO));if(R){var V,e=(V=this.guide)==null?void 0:V.querySelector("#scrim"),X,Y=(X=this.guide)==null?void 0:X.querySelector("#contentContainer");e&&Y&&(V={beforeTransition:function(){var t;(t=B.guide)!=null&&t.persistent||(e.style.viewTransitionName="app-drawer-scrim",Y.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var t;(t=B.guide)!=null&&t.persistent||(e.style.viewTransitionName="",Y.style.viewTransitionName="")}},PV(R,"slide",V),PV(R,"zoom",V))}};
_.mh.Object.defineProperties(FG.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.k("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.mh.Object.defineProperties(FG,{template:{configurable:!0,enumerable:!0,get:function(){if(Ywj===void 0){var B=document.createElement("template");_.a(B,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
B.content.insertBefore(_.u().content.cloneNode(!0),B.content.firstChild);Ywj=B}B=Ywj;return B}}});
FG.prototype.onOpenHotkeyDialog=FG.prototype.onOpenHotkeyDialog;FG.prototype.setFullscreen=FG.prototype.setFullscreen;FG.prototype.onAddElementToApp=FG.prototype.onAddElementToApp;FG.prototype.onDrawerIronSelect=FG.prototype.onDrawerIronSelect;FG.prototype.onGuideOpenButtonHover=FG.prototype.onGuideOpenButtonHover;FG.prototype.onRequestPanelModeChange=FG.prototype.onRequestPanelModeChange;FG.prototype.onPageDataUpdated=FG.prototype.onPageDataUpdated;FG.prototype.onPageChanged=FG.prototype.onPageChanged;
FG.prototype.onSetTheaterModeEnabled=FG.prototype.onSetTheaterModeEnabled;FG.prototype.updateMastheadData=FG.prototype.updateMastheadData;FG.prototype.onYtPageManagerAttached=FG.prototype.onYtPageManagerAttached;FG.prototype.observeGuideVisibility=FG.prototype.observeGuideVisibility;FG.prototype.guideIsVisibleButNotPersistentSelectorChanged=FG.prototype.guideIsVisibleButNotPersistentSelectorChanged;FG.prototype.isInlinePreviewEnabledChanged=FG.prototype.isInlinePreviewEnabledChanged;
FG.prototype.dispatchFrostedGlassMode=FG.prototype.dispatchFrostedGlassMode;_.r([_.v(_.dt),_.Z("design:type",Object)],FG.prototype,"ytdReduxBehavior",void 0);_.r([_.v(_.W0.YtEventForwardingBehavior),_.Z("design:type",Object)],FG.prototype,"ytEventForwardingBehavior",void 0);_.r([_.v(_.Ro.YtOpenPopupBehavior),_.Z("design:type",Object)],FG.prototype,"ytOpenPopupBehavior",void 0);_.r([_.v(_.$Z.YtActionHandlerBehavior),_.Z("design:type",Object)],FG.prototype,"ytActionHandlerBehavior",void 0);
_.r([_.v({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.sd.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.k("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var B;((B=this.actionRouterNode.hostElement)!=null?B:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var B;((B=this.actionRouterNode.hostElement)!=null?B:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(B){this.actionRouter_.handleAction(B.detail)}}),
_.Z("design:type",Object)],FG.prototype,"ytActionRouterBehavior",void 0);_.r([_.v(UGN.YtdAppBehavior),_.Z("design:type",Object)],FG.prototype,"ytdAppBehavior",void 0);_.r([_.v(_.VR.YtEndpointBehavior),_.Z("design:type",Object)],FG.prototype,"ytEndpointBehavior",void 0);_.r([_.v(Je7.YtEndpointHandlerWithYpcBehavior),_.Z("design:type",Object)],FG.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.r([_.v(hLo.YtLogYpcFlowCommandsBehavior),_.Z("design:type",Object)],FG.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.r([_.v(_.O.YtRendererBehavior),_.Z("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.r([_.v(_.Tk.YtComponentBehavior),_.Z("design:type",Object)],FG.prototype,"ytComponentBehavior",void 0);_.r([_.E({selector:_.Aq7}),_.Z("design:type",Object)],FG.prototype,"tabGesturesIsActive",void 0);_.r([_.E(),_.Z("design:type",Boolean)],FG.prototype,"renderGuide",void 0);
_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FG.prototype,"guidePersistentAndVisible",void 0);_.r([_.E({selector:_.cq4}),_.Z("design:type",Boolean)],FG.prototype,"guideIsVisibleButNotPersistent",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],FG.prototype,"standalone",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FG.prototype,"miniGuideVisible",void 0);
_.r([_.E({selector:_.Tf5}),_.Z("design:type",Number)],FG.prototype,"miniplayerPlaybackState",void 0);_.r([_.E({selector:_.d6,reflectToAttribute:!0}),_.Z("design:type",Boolean)],FG.prototype,"miniplayerIsActive",void 0);_.r([_.E({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Z("design:type",Boolean)],FG.prototype,"isInlinePreviewEnabled",void 0);_.r([_.E(),_.Z("design:type",Boolean)],FG.prototype,"isInlinePreviewDisabled",void 0);
_.r([_.E({reflectToAttribute:!0,value:function(){return _.KQ("START_IN_FULL_WINDOW_MODE")}}),
_.Z("design:type",Boolean)],FG.prototype,"mastheadHidden",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FG.prototype,"playerFullscreen",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],FG.prototype,"deprecateFullerscreenUi",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FG.prototype,"fullscreen",void 0);_.r([_.E({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],FG.prototype,"hideHeaderShadow",void 0);
_.r([_.E({value:{GUIDE_ALT_LABEL:_.Wz("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Z("design:type",Object)],FG.prototype,"menuStrings",void 0);_.r([_.E({computed:"computeTopbarData(data)"}),_.Z("design:type",Object)],FG.prototype,"topbarData",void 0);_.r([_.E({selector:_.w6}),_.Z("design:type",Boolean)],FG.prototype,"isWatchPage",void 0);_.r([_.E({selector:_.auq,reflectToAttribute:!0}),_.Z("design:type",Boolean)],FG.prototype,"isShortsPage",void 0);
_.r([_.E({selector:function(B){return B.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Z("design:type",Boolean)],FG.prototype,"isMiniAppPage",void 0);_.r([_.E({selector:function(B){return B.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.Z("design:type",Boolean)],FG.prototype,"isBrowsePage",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FG.prototype,"scrolling",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],FG.prototype,"hasDelegation",void 0);_.r([_.E({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],FG.prototype,"guideScrolledByTouch",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],FG.prototype,"darkerDarkTheme",void 0);
_.r([_.E(),_.Z("design:type",Object)],FG.prototype,"isFrostedGlassInitialized",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],FG.prototype,"frostedGlassExp",void 0);_.r([_.E({selector:function(B){return B.ui.chipBarIsSticky}}),
_.Z("design:type",Boolean)],FG.prototype,"chipBarIsSticky",void 0);_.r([_.E({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Z("design:type",Boolean)],FG.prototype,"isHomePage",void 0);_.r([_.E({reflectToAttribute:!0}),_.Z("design:type",Object)],FG.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.r([_.E(),_.Z("design:type",Object)],FG.prototype,"ephemeralActionsEnabled",void 0);_.r([_.C4("guide"),_.Z("design:type",Object)],FG.prototype,"guide",void 0);
_.r([_.C4("guide-service"),_.Z("design:type",Btj)],FG.prototype,"guideService",void 0);_.r([_.C4("guide-inner-content"),_.Z("design:type",HTMLDivElement)],FG.prototype,"guideInnerContent",void 0);_.r([_.E({selector:_.L8d}),_.Z("design:type",String)],FG.prototype,"frostedGlassMode",void 0);
_.r([_.XX("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FG.prototype,"dispatchFrostedGlassMode",null);_.r([_.E({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Z("design:type",Object)],FG.prototype,"isFrostedGlassDisabled",void 0);
_.r([_.K("isHomePage","chipBarIsSticky"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],FG.prototype,"applyFrostedGlassToChipBar",null);_.r([_.E(),_.Z("design:type",Object)],FG.prototype,"isChannelOrPlaylistPage",void 0);_.r([_.bp("isInlinePreviewEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FG.prototype,"isInlinePreviewEnabledChanged",null);
_.r([_.XX("guideIsVisibleButNotPersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FG.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.r([_.XX("guidePersistentAndVisible","miniGuideVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FG.prototype,"observeGuideVisibility",null);
_.r([_.R_("attached"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],FG.prototype,"onYtPageManagerAttached",null);_.r([_.XX("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],FG.prototype,"updateMastheadData",null);_.r([_.R_("yt-set-theater-mode-enabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],FG.prototype,"onSetTheaterModeEnabled",null);
_.r([_.R_("yt-page-type-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],FG.prototype,"onPageChanged",null);_.r([_.R_("yt-page-data-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FG.prototype,"onPageDataUpdated",null);_.r([_.R_("yt-request-panel-mode-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Object]),_.Z("design:returntype")],FG.prototype,"onRequestPanelModeChange",null);
_.r([_.R_("yt-guide-hover"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FG.prototype,"onGuideOpenButtonHover",null);_.r([_.R_("app-drawer-transitioned"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],FG.prototype,"onDrawerIronSelect",null);_.r([_.R_("yt-add-element-to-app"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],FG.prototype,"onAddElementToApp",null);
_.r([_.R_("yt-set-fullerscreen-styles"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FG.prototype,"setFullscreen",null);_.r([_.R_("yt-open-hotkey-dialog"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FG.prototype,"onOpenHotkeyDialog",null);FG=_.r([_.A({is:"ytd-app"})],FG);_.Ep().processSignal("eor");
_.wz();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
